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] |
Kevin Hilman wrote:
Correct, although GDB has the concept of per-thread breakpoints. See the GDB documentation for details...I'm working on the eCos gdb stub for new architecture, and I'm a bit confused about the correct gdb behavior for breaking/stepping for multi-threaded programs. For example, if you have a function being called by multiple threads and you set a breakpoint at that function. I presume that for breakpoints, whenever ANY thread calls that function, the breakpoint should be hit, right?
Since GDB has per-thread breakpoints it certainly can do it for only one thread, and I believe it does (bugs aside).What about stepping in that function (via the "step" command)? Should gdb stop whenever ANY thread hits the next source line? or just the thread that hit the breakpoint? And what about "stepi"?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |