Bug 7

Summary: Better breakpoints
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: pre-release   
Hardware: PC   
OS: Linux   
Attachments: patch
patch, v2

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.