List Info

Thread: Problem using GDB and Eclipse with my stub




Problem using GDB and Eclipse with my stub
country flaguser name
United States
2008-01-18 04:30:48
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 -> 
$000074A3400010544000105440001054400010544000105440001054400
010540001C4A940001054400010544000105440001054400010544000105
4400010540003137F4000105440001054400010544000105440001054400
010544000105440001054400010544000105440001054400010544000105
440001054400010544000105440001054400010544000105440001054400
010544000105440001054400010544000105440001054400010544000105
440001054400010544000105440001054400010544000105440001054400
010544000105440001054400010544000105440001054400010544000105
44000105440001054400010544000105400000000009000E600000002400
00000400012584A71AA200000404000000000#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-tp14948068p14948
068.html
Sent from the Sourceware - gdb list mailing list archive at
Nabble.com.


Re: Problem using GDB and Eclipse with my stub
country flaguser name
South Africa
2008-01-18 05:13:42
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 ->         +




Re: Problem using GDB and Eclipse with my stub
country flaguser name
United States
2008-01-18 09:29:52
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

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )