RDBG "almost" working with mpc860

Phil Torre ptorre at zetron.com
Mon Aug 19 23:39:34 UTC 2002


I've almost got rdbg working over Ethernet to my mpc860 target.
I'm using rtems-ss-20020628 and gdb-5.0.  My Init() task starts
a separate task which does rtems_rdbg_initialize() and enterRdbg();
the Init thread then does "hello, world" forever so I can tell it's
still running.

It hooks up over the network, but I can't get it to do much useful
besides displaying the running threads and examining memory.  If I
try to set a breakpoint and continue, something bad happens:


$ powerpc-RTEMS-gdb --nx

GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i586-pc-linux-gnu
--target=powerpc-RTEMS".
(gdb) setrpcmode sun
(gdb) setdaemontype rdbg
(gdb) target rtems 192.168.15.10
Attaching remote machine across net...
Connected to 192.168.15.10.
Now the "run" command will start a remote process.
(gdb) file o-debug/hello.exe
Reading symbols from o-debug/hello.exe...done.
(gdb) attach 1
Attaching program: /home/phil/projects/puyallup/hello/o-debug/hello.exe pid
1
[Switching to process 134283274]
0xff80b350 in enterRdbg ()
(gdb) info threads
There are 8 threads:
Id.         Name     Detached   Suspended

134283265            No         No 
134283266   ntwk     No         No 
134283267   SCtx     No         No 
134283268   SCrx     No         No 
134283269   Bob      No         No 
134283270   RDBG     No         No 
134283272   Rini     No         No 
134283273   Evnt     No         No 
(gdb) break init.c:123
Breakpoint 1 at 0xff8002b8: file init.c, line 123.
(gdb) c
Continuing.
ptrace: Input/output error.
0xff80b350 in enterRdbg ()
(gdb)

Poking around inside of GDB, it looks like the first call to the
remote stub (RPT_PEEKTEXT) succeeds, as does the RPT_SETBREAK,
but the RPT_CONT message causes the i/o error.
This is the first time I've tried to use gdb remote via Ethernet, so 
I don't even know if something's broken or I'm just using it wrong.
Any suggestions would be helpful.

Many thanks!

-- 

=====================================================================
Phil Torre                               phone: 425-820-6363 x234
Design Engineer                          email: ptorre at zetron.com
Switching Systems Group                    fax: 425-820-7031
Zetron, Inc.                               web: http://www.zetron.com


----- End forwarded message -----

-- 

=====================================================================
Phil Torre                               phone: 425-820-6363 x234
Design Engineer                          email: ptorre at zetron.com
Switching Systems Group                    fax: 425-820-7031
Zetron, Inc.                               web: http://www.zetron.com


  




More information about the users mailing list