Bug 7 - Better breakpoints
Better breakpoints
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
PC Linux
: P1 blocker
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-02 06:28 EST by Gustavo J. A. M. Carneiro
Modified: 2008-07-01 13:32 EDT (History)
0 users

See Also:


Attachments
patch (3.65 KB, patch)
2007-03-02 06:28 EST, 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 Gustavo J. A. M. Carneiro 2007-03-02 06:28:29 EST
Use int $03 ASM instruction where possible to produce a "clean" breakpoint.  Code copied from GLib.
Comment 1 Gustavo J. A. M. Carneiro 2007-03-02 06:28:52 EST
Created attachment 3 [details]
patch
Comment 2 Gustavo J. A. M. Carneiro 2007-07-31 09:47:09 EDT
Created attachment 34 [details]
patch, v2

Updated patch, moves breakpoint stuff to its own breakpoint.{h,cc} files (and assert.cc removed).
Comment 3 Mathieu Lacage 2007-07-31 09:52:00 EDT
What is the problem you are trying to solve exactly ?
Comment 4 Gustavo J. A. M. Carneiro 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 Mathieu Lacage 2007-08-02 08:13:10 EDT
please, apply.