User forums > Embedded development

Remote debugging

(1/5) > >>

mandrav:
(I 'm posting in this forum because that's where remote debugging is needed :)).

I just committed preliminary support for remote debugging (using gdb). I tested this with gdbserver running on an avr32-linux system and it worked like a charm.
Please test it and provide any feedback you can regarding this.

killerbot:
Yiannis : makefile.am adjustment for remotedebugging.h

mandrav:

--- Quote from: killerbot on July 24, 2007, 03:55:27 pm ---Yiannis : makefile.am adjustment for remotedebugging.h

--- End quote ---

Thx, will adjust when berlios starts behaving again. It's not important anyway, it will only break "make dist" (nothing else).

Joerg:
Hallo mandrav and others,

I just tried the 25.07 nightly build SVN 4321.
I choose TCP connection for my gdb JTAG server (OpenOCD)
and added some commands:

monitor arm7_9 sw_bkpts enable
thbreak main
load
continue

I removed these from the general 'Settings/Compiler and Debugger' tab of course.
This is my Debugger(debug) output:

PATH=.;;D:\Programme\openocd\bin;D:\Programme\yagarto\tools\bin
Command-line: D:\Programme\yagarto\bin\arm-elf-gdb.exe -nx -fullname  -quiet -args ehzgw.elf
Working dir : D:\Projekte\ehzgw\
> set prompt >>>>>>cb_gdb:
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.5.50.20060612-cvs
.......... snip .............
>>>>>>cb_gdb:
> directory D:/Projekte/ehzgw/
>>>>>>cb_gdb:
> monitor arm7_9 sw_bkpts enable
"monitor" command not supported by this target.
>>>>>>cb_gdb:
> thbreak main
No hardware breakpoint support in the target.
>>>>>>cb_gdb:
> load
You can't do that when your target is `exec'
>>>>>>cb_gdb:
> continue
The program is not being run.
>>>>>>cb_gdb:
> target remote tcp:localhost:3333
0x10002130 in ?? ()
>>>>>>cb_gdb:
> quit

GDB crashes here (or quit).
I don't understand the line
'target remote tcp:localhost:3333'
If this is the command send to gdb than is 'tcp' correct here?

I would expect that my commands to be executed 'after'
the remote connection is established.
But it seems like the commands are send before?
How do you want to split settings between global
and project dependent?
I think the global under 'Settings/Compiler and Debugger' is obsolete
as debugging settings are project specific now?

BTW. I'm missing a stop (break) button for halting execution of target.
As I think the red 'Stop' button shuts down gdb?

Regards,
Joerg

mandrav:

--- Quote ---I would expect that my commands to be executed 'after'
the remote connection is established.
But it seems like the commands are send before?
--- End quote ---

This has been changed recently and those commands are executed after the connection. Mind trying it again now?

Navigation

[0] Message Index

[#] Next page

Go to full version