[RFC][PATCH 0/6] Step program considering the source column information
Luis Machado
luis.machado@linaro.org
Tue May 19 12:27:38 GMT 2020
On 5/16/20 2:26 PM, Hannes Domani via Gdb-patches wrote:
> Basically, this implements the new commands nextc (nc) and stepc (sc),
> which allow to step through the program until an instruction is reached,
> that belongs to another source column (according to the debug information).
>
> The current column location is visualized in the frame info, and in the TUI.
>
> Also, the column information is added to 'maint info line-table' and the
> python line table interface.
>
> Since the frame info output is different, this certainly breaks the
> testsuite, so this column indicator needs a parameter to disable, but I
> wasn't concerned about this yet.
>
> With the example code from PR25913, it looks like this:
>
> (gdb) start
> Temporary breakpoint 2 at 0x40162d: file gdb-25911.c, line 4.
> Starting program: C:\src\tests\gdb-25911.exe
>
> Temporary breakpoint 2, main () at gdb-25911.c:4
> 4 int a = 4;
> ^
> (gdb) nc
> 6 a = 5; a = 6; a = 7;
> ^
> (gdb) nc
> 6 a = 5; a = 6; a = 7;
> ^
> (gdb) nc
> 6 a = 5; a = 6; a = 7;
> ^
> (gdb) nc
> 8 return 0;
>
>
> What do you think of this so far?
>
>
> [PATCH 1/6] Add column information of dwarf to the symbol information
> [PATCH 2/6] Implement nextc and stepc commands (PR gdb/25913)
> [PATCH 3/6] Add column information to maint info line-table
> [PATCH 4/6] Add LineTableEntry.column to python line table interface
> [PATCH 5/6] Show column of current execution point in frame info (PR
> [PATCH 6/6] Show column of current execution point in TUI
>
Thanks for working on this, it is really useful.
I'm guessing this series would probably handle the following situation
very well:
https://sourceware.org/bugzilla/show_bug.cgi?id=21221
More information about the Gdb-patches
mailing list