Re: dwarf, step over

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/16/2010 03:07 PM, John Smith wrote:

> 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).

The problem is that we don't know what you don't know.  Stepping is
accomplished by decoding an instruction to find out where the next
instruction will be, setting a temporary breakpoint there, and
restarting the program.  Stepping one line is stepping until the line
changes.  What is it you want to know that isn't obvious?

Andrew.


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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux