diff options
| author | Tom de Vries <tdevries@suse.de> | 2026-02-17 15:45:23 +0100 |
|---|---|---|
| committer | Tom de Vries <tdevries@suse.de> | 2026-02-17 15:45:23 +0100 |
| commit | 928e6f5a728f6cb917ee6bdceed45e8f9da7203e (patch) | |
| tree | 5615bda3b4c1f49dc3d59990845e42b4cdd12dd0 /config/bitfields.m4 | |
| parent | 0c8be8e9c447b75174b88eb9f198f6cf67e543a0 (diff) | |
| download | binutils-master.zip binutils-master.tar.gz binutils-master.tar.bz2 | |
The "info line" command can be used with or without arguments.
About using it without arguments, the documentation [1] says the following:
...
info line
With no locspec, information about the current source line is printed.
...
After info line, using info line again without specifying a location will
display information about the next source line.
...
That does not describe the fact that the command may also show the last line
listed:
...
(gdb) info line
No line number information available.
(gdb) list main
20 #include "interps.h"
21 #include "run-on-main-thread.h"
22
23 int
24 main (int argc, char **argv)
25 {
26 /* The first call to is_main_thread () should be from the main thread.
27 If this is the first call, then that requirement is fulfilled here.
28 If this is not the first call, then this verifies that the first call
29 fulfilled that requirement. */
(gdb) info line
Line 29 of "gdb/gdb.c" is at address 0x419684 <main(int, char**)+30>
but contains no code.
(gdb)
...
Update the documentation to list this additional functionality.
Approved-By: Eli Zaretskii <eliz@gnu.org>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33783
[1] https://www.sourceware.org/gdb/current/onlinedocs/gdb.html/Machine-Code.html#index-info-line
Diffstat (limited to 'config/bitfields.m4')
0 files changed, 0 insertions, 0 deletions
