vries at gcc dot gnu.org
2018-07-04 10:19:21 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=23368
Bug ID: 23368
Summary: gdb goes to into background when hitting exec
catchpoint
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
Consider test executable t from PR 23366.
When hitting an exec catchpoint with follow-exec-mode new mode, gdb goes to the
background:
...
$ ./install/bin/gdb -q t -ex "catch exec" -ex "set follow-exec-mode new" -ex
"run"
Reading symbols from t...done.
Catchpoint 1 (exec)
Starting program: /data/gdb_versions/devel/t
process 27010 is executing new program: /usr/bin/ls
[New inferior 2 (process 0)]
[New process 27010]
Thread 2.1 "ls" hit Catchpoint 1 (exec'd /usr/bin/ls), 0x00007ffff7dd7ea0 in
_start ()
from /lib64/ld-linux-x86-64.so.2
[3]+ Stopped ./install/bin/gdb -q t -ex "catch exec" -ex "set
follow-exec-mode new" -ex "run"
$ fg
./install/bin/gdb -q t -ex "catch exec" -ex "set follow-exec-mode new" -ex
"run"
(gdb) q
A debugging session is active.
Inferior 2 [process 27010] will be killed.
Quit anyway? (y or n) y
$
...
Bug ID: 23368
Summary: gdb goes to into background when hitting exec
catchpoint
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
Consider test executable t from PR 23366.
When hitting an exec catchpoint with follow-exec-mode new mode, gdb goes to the
background:
...
$ ./install/bin/gdb -q t -ex "catch exec" -ex "set follow-exec-mode new" -ex
"run"
Reading symbols from t...done.
Catchpoint 1 (exec)
Starting program: /data/gdb_versions/devel/t
process 27010 is executing new program: /usr/bin/ls
[New inferior 2 (process 0)]
[New process 27010]
Thread 2.1 "ls" hit Catchpoint 1 (exec'd /usr/bin/ls), 0x00007ffff7dd7ea0 in
_start ()
from /lib64/ld-linux-x86-64.so.2
[3]+ Stopped ./install/bin/gdb -q t -ex "catch exec" -ex "set
follow-exec-mode new" -ex "run"
$ fg
./install/bin/gdb -q t -ex "catch exec" -ex "set follow-exec-mode new" -ex
"run"
(gdb) q
A debugging session is active.
Inferior 2 [process 27010] will be killed.
Quit anyway? (y or n) y
$
...
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.