This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

About Debugging problem.


Hi all:
   I am using a third party GDB stub not Redboot for my target platform.
also Insight configured for my target from third party. I built the ecos
library with -g switch on(also tried without -O2 ) , link with user
program(say: hello.c) and use the Insight (with GDB stub) to download the
program onto the target platform, I can view the source code (hello.c) and
single step through and set breakpoint(set the mark "-" in the front of each
line of the source code to red) in the user program (hello.c), I also can
view the source code from the ecos library, but I can't set the breakpoint
in the source code from ecos library.(there is no mark ("-") appeared in the
front of each line of source code)? but when the file(from ecos library)
viewed as assembly code (choose the function to display via the option box
at the bottom of Insight, so the assembly code could be viewed in Insight)
then I can set the breakpoint at the assembly code(the  mark ("-") now
appear in the front of each line of the assembly code).  What's the problem?
Does that mean the GDB stub or maybe the Insight configured by third party
don't support the debugging of the source code come from ecos library? or
anyother way I can achieve it? Thanks a lot
.
Best regards.

qiang


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]