This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Setting breakpoints
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 4 Jun 2003 18:11:00 +0200
- Subject: [ECOS] Setting breakpoints
Just a small addition to the last e-mail.
After a bit more tinkering, I tried to use the .data section.
It appears to work(i.e. my lamps are still flashing for
my app), and I can set breakpoint in ram without getting
error messages.
However, the debug information seems to be a bit confused.
I can set breakpoints in the source window of insight,
for the function I placed in the .data section, but the
red breakpoint icon does not appear. When I continue and
break and step, the program steps into the expected OS function
(for which I see source). Local variables do not show up.
When I did a arm-elf-objdump --disassemble, the code of
the function that I put in main, is no longer disassembled.
Presumably because arm-elf-objdump knows not to try to disassemble
the .data section.
Here is the warning I got when compiling:
/ecos-C/temp/ccpgULnw.s: Assembler messages:
/ecos-C/temp/ccpgULnw.s:17: Warning: ignoring changed section attributes
for .data
Øyvind
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss