public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11969] "catch exec" does not work with follow-exec-mode=new
[not found] <bug-11969-4717@http.sourceware.org/bugzilla/>
@ 2021-04-16 20:20 ` simark at simark dot ca
2021-04-17 16:54 ` tromey at sourceware dot org
1 sibling, 0 replies; 2+ messages in thread
From: simark at simark dot ca @ 2021-04-16 20:20 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=11969
Simon Marchi <simark at simark dot ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simark at simark dot ca
--- Comment #1 from Simon Marchi <simark at simark dot ca> ---
I just tried this, it seems to work:
$ ./gdb -q -nx --data-directory=data-directory --args ./execer args-for-execer
Reading symbols from ./execer...
(gdb) set follow-exec-mode new
(gdb) start
Temporary breakpoint 1 at 0x1158: file execer.c, line 5.
Starting program: /home/simark/build/binutils-gdb/gdb/execer args-for-execer
Temporary breakpoint 1, main (argc=2, argv=0x7fffffffdf58) at execer.c:5
a5 printf("I am execer and my argv[1] is: %s\n", argv[1]);
(gdb) catch exec
Catchpoint 2 (exec)
(gdb) c
Continuing.
I am execer and my argv[1] is: args-for-execer
process 1483262 is executing new program:
/home/simark/build/binutils-gdb/gdb/execee
[New inferior 2]
[New process 1483262]
Thread 2.1 "execee" hit Catchpoint 2 (exec'd
/home/simark/build/binutils-gdb/gdb/execee), 0x00007ffff7fcd090 in _start ()
from /lib64/ld-linux-x86-64.so.2
(gdb) info inferiors
Num Description Connection Executable
1 <null> 1 (native)
/home/simark/build/binutils-gdb/gdb/execer
* 2 process 1483262 1 (native)
/home/simark/build/binutils-gdb/gdb/execee
Would you like to test your original use case again, or can we close this? I
think that the test case gdb.base/catch-follow-exec.exp covers this now.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug gdb/11969] "catch exec" does not work with follow-exec-mode=new
[not found] <bug-11969-4717@http.sourceware.org/bugzilla/>
2021-04-16 20:20 ` [Bug gdb/11969] "catch exec" does not work with follow-exec-mode=new simark at simark dot ca
@ 2021-04-17 16:54 ` tromey at sourceware dot org
1 sibling, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2021-04-17 16:54 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=11969
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
CC| |tromey at sourceware dot org
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
> Would you like to test your original use case again, or can we close this?
I think it's fine to close. Thanks for looking at it.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-17 16:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-11969-4717@http.sourceware.org/bugzilla/>
2021-04-16 20:20 ` [Bug gdb/11969] "catch exec" does not work with follow-exec-mode=new simark at simark dot ca
2021-04-17 16:54 ` tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).