[Bug breakpoints/24666] skip function broken with -readnow
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Tue Jun 11 07:54:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=24666
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat dot com
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Without -readnow:
...
$ ./gdb -batch -ex "skip function dupname" -ex "start" -ex step
/data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.linespec/skip-two/skip-two
Function dupname will be skipped when stepping.
Temporary breakpoint 1 at 0x4004f7: file
/data/gdb_versions/devel/src/gdb/testsuite/gdb.linespec/lspec.cc, line 18.
Temporary breakpoint 1, main () at
/data/gdb_versions/devel/src/gdb/testsuite/gdb.linespec/lspec.cc:18
18 return dupname(0) + m(0) + n(0) + f1() + f2() + body_elsewhere();
m (x=0) at
/data/gdb_versions/devel/src/gdb/testsuite/gdb.linespec/base/one/thefile.cc:19
19 return x + 23 + twodup (); /* thefile breakpoint */
...
With -readnow:
...
$ ./gdb -batch -readnow -ex "skip function dupname" -ex "start" -ex step
/data/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.linespec/skip-two/skip-two
Function dupname will be skipped when stepping.
Temporary breakpoint 1 at 0x4004f7: file
/data/gdb_versions/devel/src/gdb/testsuite/gdb.linespec/lspec.cc, line 18.
Temporary breakpoint 1, main () at
/data/gdb_versions/devel/src/gdb/testsuite/gdb.linespec/lspec.cc:18
18 return dupname(0) + m(0) + n(0) + f1() + f2() + body_elsewhere();
dupname (x=0) at
/data/gdb_versions/devel/src/gdb/testsuite/gdb.linespec/lspec.cc:3
3 static int dupname (int x) { label: return x; }
...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list