Bug 7 - Better breakpoints
: Better breakpoints
Status: RESOLVED FIXED
: ns-3
simulation core
: pre-release
: PC Linux
: P1 blocker
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-03-02 06:28 EDT by
Modified: 2008-07-01 13:32 EDT (History)


Attachments
patch (3.65 KB, patch)
2007-03-02 06:28 EDT, Gustavo J. A. M. Carneiro
Details | Diff
patch, v2 (9.80 KB, patch)
2007-07-31 09:47 EDT, Gustavo J. A. M. Carneiro
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-03-02 06:28:29 EDT
Use int $03 ASM instruction where possible to produce a "clean" breakpoint. 
Code copied from GLib.
------- Comment #1 From 2007-03-02 06:28:52 EDT -------
Created an attachment (id=3) [details]
patch
------- Comment #2 From 2007-07-31 09:47:09 EDT -------
Created an attachment (id=34) [details]
patch, v2

Updated patch, moves breakpoint stuff to its own breakpoint.{h,cc} files (and
assert.cc removed).
------- Comment #3 From 2007-07-31 09:52:00 EDT -------
What is the problem you are trying to solve exactly ?
------- Comment #4 From 2007-07-31 10:03:14 EDT -------
1. breakpoints leave the debugger inside an inner function, not directly where
the breakpoint was generated, the user then must go up the stack;
2. breakpoints produce a segmentation fault and do not allow the program to
continue; you need "hacks" to avoid the segfault...
------- Comment #5 From 2007-08-02 08:13:10 EDT -------
please, apply.