[ECOS] Help with gdb stub problems

Christian Sommerfeld csommerfeld@bihl-wiedemann.de
Tue Jan 18 10:53:00 GMT 2011


Hi at all,

i am a newbie and i have a lot of questions about the GDB without ROM
monitor. I hope somebody can help me.

I set up the GDB without ROM monitor. It seems that it works fine, with
a simple program. i am using:
########################################################################
GNU gdb (CodeSourcery Sourcery G++ Lite 2007q3-53) 6.6.50.20070821-cvs
Copyright (C) 2007 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-mingw32 --target=arm-none-eabi".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>.
########################################################################


Question 1+++++++++++
I guess i have to set "breackpoint();" in my program to stop. I cant set 
the breakpoint from the GDB (host=pc), right? If i set it and the 
program reaches the breakpoint it stops always in the hal_misc.c file. 
Is there a possibility that it stops in my c-file? s (step) isn´t 
working at all. same failure like in question 3.

Question 2+++++++++++
If i write more than one breakpoint in my file, the program stops an
every one, but after it reaches the second i get always
"Program received signal SIGTRAP, Trace/breakpoint trap."
Whats that? and how i can solve this problem?

Question 3+++++++++++
I tried to write

HAL_BREAKPOINT(_breakinst);

in my c-file. (normaly it is in the hal_misc.c) the program stops now in 
my file. I can set/print variables and jump to line numbers. All that 
works fine. But if i want to step throut the code lines with s (step) it 
jumps always on the end of the current function. If i use s again the 
GDB(host) jump in the next line and nothing happens anymore. Why? Any idea?

Question 4+++++++++++
I have 6.5.50.20060517 version of Insight. If i tried to set it up with:
target = remote serial and the right baudrate and port, it always hang
up if i start insight with run. Is there a verion of Insight (exe) which 
is working?


If you need some more infromation, please let me know!


Thanks a lot for your help!
Christian


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list