This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Breakpoint problem
- From: "N.Suresh" <nsuresh at cdotb dot ernet dot in>
- To: bshiva at cdotb dot ernet dot in, rprakash at cdotb dot ernet dot in, ecos-discuss at sources dot redhat dot com
- Date: Tue, 12 Feb 2002 14:33:35 +0530
- Subject: [ECOS] Breakpoint problem
- Organization: C-DoT
Hi all,
I am testing GDB stubs on ADS8260 board. (I am downloading 'hello'
program using gdb)
Following is the observations i made:
*) When we execute (gdb) b main
It is just doing some memory access ('m' packets) and
updating it's internal data structures.
*) When we execute (gdb) c
The host sends a 'Z' packet to actually put the breakpoint.
But we are not processing this inside the stub. But even then
the target stops at main and GDB prints the
line number properly.
After hitting the breakpoint:
*) When we execute (gdb) c it is sending a 's' packet and our
stub is executing the single_step function and
target gives some errors but if we continue the execution after
that, "Hello World!" is printed. Any
breakpoints after that is not hit.
My questions are :
How the target is stopping even when we are not putting a
breakpoint at the given location ?
Why is the host (gdb) sending 's' packet for the second continue
command?
Any options to be enabled in the stub building or any version
mismatch ?
thanx in advance,
--
!============================================================================!
= Suresh N., Research Engineer, C-DoT, Bangalore. =
= Call me at : OFF: 2383951(Dir) / 2263399 (268) RES: 3334248 =
= Alternate email : nsur_mys@email.com =
= QOT: For fast-acting relief, try slowing down.
!============================================================================!
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss