[Dwarf-Discuss] dwarf, step over

John Smith ds0163 at gmail.com
Mon Jul 19 05:45:36 PDT 2010


Hi,

Im working on a C source level debugger. The debug info available in elf
format. How could be 'step over' implemented?
The problem is at 'Point1', anyway I can wait for the
next source line (reading it from the .debug_line table).

Even if I put a breakpoint
after the last call the line number information wont be correct,
because Im highlighting the current line based on the line info table
(or should I use another structs?)

...
if (a == 1)
 x = 1; //Point1
else if (a == 2)
 x = 1;

z = 1;
...


Here is my small example
http://www.sendspace.com/file/li4giu


Thanks



More information about the Dwarf-Discuss mailing list