Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver-6.3 issue
@ 2006-06-16 12:37 vinay hegde
  2006-06-16 23:31 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: vinay hegde @ 2006-06-16 12:37 UTC (permalink / raw)
  To: gdb; +Cc: thisismevinay

Hi, 

I am using a x86 host and a PPC target to test the
gdb-6.3. But, in the gdb session, I get "segmentation
fault" error. I do the following to test the gdb:

1. Boot the target.
2. Copy the test program (simple hello world) on the
target.
3. Issue the following command on the target:
     gdbserver :1234 ./test
4. On the host, launch gdb session.
     gdb ./test
5. In the gdb session, issue following:
     > target extended-remote <target ip>:1234

Then, I get following output:

>>>>>>>>>>>
(gdb) target extended-remote 192.168.4.16:1234
Remote debugging using 192.168.4.16:1234
warning: Remote sent bad register number 64: 300103dc;
Packet: 'T0501:7fa1ee50;40:300103dc;'

warning: Remote register badly formatted:
T0501:7fa1ee50;40:300103dc;
warning:             here: 103dc;
warning: Malformed packet(b) (missing colon):
Packet: 'T0501:7fa1ee50;40:300103dc;'

warning: Remote sent bad register number 66524:
Packet: 'T0501:7fa1ee50;40:300103dc;'

Segmentation fault
<<<<<<<<<<<<<

Can somebody please help in this regard? I browsed
through remote.c and linux-low.c files, but can't see
anything wrong.

Thanks,
Vinay.





		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn
something new
http://in.answers.yahoo.com/


		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


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

* Re: gdbserver-6.3 issue
  2006-06-16 12:37 gdbserver-6.3 issue vinay hegde
@ 2006-06-16 23:31 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-06-16 23:31 UTC (permalink / raw)
  To: vinay hegde; +Cc: gdb

On Fri, Jun 16, 2006 at 05:36:06AM +0100, vinay hegde wrote:
> warning: Remote sent bad register number 64: 300103dc;
> Packet: 'T0501:7fa1ee50;40:300103dc;'
> 
> warning: Remote register badly formatted:
> T0501:7fa1ee50;40:300103dc;

This error almost always means that you have not correctly configured
your gdb and gdbserver for the same target.

To build a cross-gdb, you must use --target.  To build a native
gdbserver, you must use --host.

-- 
Daniel Jacobowitz
CodeSourcery


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

end of thread, other threads:[~2006-06-16 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-16 12:37 gdbserver-6.3 issue vinay hegde
2006-06-16 23:31 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox