* Problem using GDB and Eclipse with my stub
@ 2008-01-18 10:31 Guillaume MENANT
2008-01-18 11:14 ` Gerrit van Niekerk
2008-01-18 15:30 ` Daniel Jacobowitz
0 siblings, 2 replies; 3+ messages in thread
From: Guillaume MENANT @ 2008-01-18 10:31 UTC (permalink / raw)
To: gdb
I'm making a new topic because I had a problem in the last one (i've edited
my message but it hasn't been seen by mailing list users)
I'm working on the GDB startup management in my stub. The log of the sent
commands is the following :
GDB -> (command sent by GDB through Eclipse)
Wrapper reply -> (reply from my stub to GDB)
GDB -> $Hc-1#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
GDB -> $qC#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
GDB -> $qOffsets#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
GDB -> $?#
Wrapper reply -> $+#
Call ? method
Sending stop reply
Wrapper reply -> $S12#B6
GDB -> $+#
GDB -> $Hg0#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
GDB -> $p44#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
GDB -> $g#
Wrapper reply -> $+#
Call g command method
Wrapper reply ->
$000074A3400010544000105440001054400010544000105440001054400010540001C4A9400010544000105440001054400010544000105440001054400010540003137F400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105440001054400010544000105400000000009000E60000000240000000400012584A71AA200000404000000000#52
GDB -> $+#
GDB -> $!#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
GDB -> $qSymbol::#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
GDB -> $k#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $k#
Wrapper reply -> $+#
Call unsupported or unrecognized command method
Wrapper reply -> $#00
GDB -> $+#
Deleting socket.
And here is the log received in Eclipse (send by GDB I think) :
0x40001258 in ?? ()
In Extended remote serial target in gdb-specific protocol,
#0 0x40001258 in ?? ()
target extended-remote localhost:3000
load
Invalid download offset: Eclipse/Blink/blink_ram_noflush.
info remote-process
Undefined info command: "remote-process". Try "help info".
mi_cmd_env_cd: Usage DIRECTORY
kill
1- The first line 0x40001258 in ?? () correspond to the value of the PC sent
in the g command reply, but then I don't know what does GDB makes. Can you
help me ?
2 - Moreover, at the end of this exchange, GDB closes the TCP/IP socket ?
Why ?
Thanks a lot for your answers which will be very usefull to me :)
--
View this message in context: http://www.nabble.com/Problem-using-GDB--and-Eclipse-with-my-stub-tp14948068p14948068.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem using GDB and Eclipse with my stub
2008-01-18 10:31 Problem using GDB and Eclipse with my stub Guillaume MENANT
@ 2008-01-18 11:14 ` Gerrit van Niekerk
2008-01-18 15:30 ` Daniel Jacobowitz
1 sibling, 0 replies; 3+ messages in thread
From: Gerrit van Niekerk @ 2008-01-18 11:14 UTC (permalink / raw)
To: Guillaume MENANT, gdb
On 18 Jan 2008 at 2:30, Guillaume MENANT wrote:
> I'm making a new topic because I had a problem in the last one (i've edited my message but it
> hasn't been seen by mailing list users)
> I'm working on the GDB startup management in my stub. The log of the sent commands is the
> following :
> GDB -> (command sent by GDB through Eclipse)
> Wrapper reply -> (reply from my stub to GDB)
> GDB -> $Hc-1#
> Wrapper reply -> $+#
> Call unsupported or unrecognized command method
> Wrapper reply -> $#00
> GDB -> $+#
I think you are misinterpreting the GDB commands and wrapper replies. You won't get a $+# command,
because + (on it's own is a positive acknowledgement. In fact, the wrapper also has to send a +
when it receives a command with a valid syntax and checksum.
This is what it *should* look like:
GDB -> $Hc-1#nn (where nn is the checksum)
Wrapper ack -> +
Wrapper reply -> $#00 (Call unsupported or unrecognized command method)
GDB ack -> +
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem using GDB and Eclipse with my stub
2008-01-18 10:31 Problem using GDB and Eclipse with my stub Guillaume MENANT
2008-01-18 11:14 ` Gerrit van Niekerk
@ 2008-01-18 15:30 ` Daniel Jacobowitz
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2008-01-18 15:30 UTC (permalink / raw)
To: Guillaume MENANT; +Cc: gdb
On Fri, Jan 18, 2008 at 02:30:48AM -0800, Guillaume MENANT wrote:
> And here is the log received in Eclipse (send by GDB I think) :
No. Some of these are clearly sent by Eclipse (target, load, info,
kill). You need to figure out what your Eclipse is doing, possibly by
debugging CDT. GDB closed the connection because Eclipse sent a kill
and probably closed GDB.
> Invalid download offset: Eclipse/Blink/blink_ram_noflush.
> mi_cmd_env_cd: Usage DIRECTORY
These two look kind of like your Eclipse and GDB do not work with
spaces in pathnames.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-18 15:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-18 10:31 Problem using GDB and Eclipse with my stub Guillaume MENANT
2008-01-18 11:14 ` Gerrit van Niekerk
2008-01-18 15:30 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox