public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb-5.3 on mips
@ 2003-06-03 12:35 Amit.Lubovsky
  2003-06-03 13:00 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Amit.Lubovsky @ 2003-06-03 12:35 UTC (permalink / raw)
  To: gdb

Hi,
I need some help in order to guide me where to start...,
my target is mips running uClinux I have compiled gdb-5.3,
gdbserver and gdb for the host,

follows the output when I run gdb on the host, what happens is that
I can't control the target process like setting  breakpoints 
getting info and so on.

any help will be appreciated. 


[test@dragun usr]$ /home/test/gdb/download/gdb-5.3/gdb/gdb  demo.gdb 
GNU gdb 5.3
Copyright 2002 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=i686-pc-linux-gnu
--target=mipseb-linux-elf"...
(gdb) set debug remote 1
(gdb) target remote 192.168.1.90:2345
Remote debugging using 192.168.1.90:2345
Sending packet: $Hc-1#09...Ack
Packet received: OK
Sending packet: $qC#b4...Ack
Packet received: 
Sending packet: $qOffsets#4b...Ack
Packet received: 
Sending packet: $?#3f...Ack
Packet received: T0525:81190060;1d:8119ffa4;
Sending packet: $Hg0#df...Ack
Packet received: OK
Sending packet: $g#67...Ack
Packet received:
0000000081174790000000008117ff8c8117ffb88117ff848117ff8c00000000000001008117
47b000000000000000038116f820000002688114fc58000152688117ff848117ffb88117ffb8
000000038117ff7c811bff9c83f8fc0800000000000017708116dd8000000000000000028116
f8208119ffa4811ffe988116cae40000000000000000000000008010782c0080002081190060
7ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff8
00007ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff80000
7ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff800007ff8
00007ff800007ff800007ff80000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000
0xffffffff81190060 in ?? ()
(gdb) b main
Sending packet: $m400220,4#f5...Ack
Packet received: 00000000
Breakpoint 1 at 0x400220
(gdb) n
Cannot find bounds of current function
(gdb) p
The history is empty.
(gdb) cont
Continuing.
### remote_insert_breakpoint
Sending packet: $Z0,400220,4#3e...Ack
Packet received: 
Packet Z0 (software-breakpoint) is NOT supported
Sending packet: $m400220,4#f5...Ack
Packet received: 00000000
Sending packet: $X400220,0:#16...Ack
Packet received: 
binary downloading NOT suppported by target
Sending packet: $M400220,4:0005000d#c8...Ack
Packet received: OK
### remote_resume
Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack

from this poing the target process starts running.


Thanks, Amit.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gdb-5.3 on mips
  2003-06-03 12:35 gdb-5.3 on mips Amit.Lubovsky
@ 2003-06-03 13:00 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-06-03 13:00 UTC (permalink / raw)
  To: Amit.Lubovsky; +Cc: gdb

On Tue, Jun 03, 2003 at 03:34:14PM +0200, Amit.Lubovsky@infineon.com wrote:
> Hi,
> I need some help in order to guide me where to start...,
> my target is mips running uClinux I have compiled gdb-5.3,
> gdbserver and gdb for the host,
> 
> follows the output when I run gdb on the host, what happens is that
> I can't control the target process like setting  breakpoints 
> getting info and so on.
> 
> any help will be appreciated. 

This looks like a kernel bug on your target to me.

> (gdb) b main
> Sending packet: $m400220,4#f5...Ack
> Packet received: 00000000
> Breakpoint 1 at 0x400220

That's really unlikely.  Main should not start with a nop.  So ptrace
PEEKTEXT isn't working, which suggests that POKETEXT won't either.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-03 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-03 12:35 gdb-5.3 on mips Amit.Lubovsky
2003-06-03 13:00 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).