public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/11969] "catch exec" does not work with follow-exec-mode=new Date: Fri, 16 Apr 2021 20:20:33 +0000 [thread overview] Message-ID: <bug-11969-4717-0uhCyCNOuA@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-11969-4717@http.sourceware.org/bugzilla/> 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.
next parent reply other threads:[~2021-04-16 20:20 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-11969-4717@http.sourceware.org/bugzilla/> 2021-04-16 20:20 ` simark at simark dot ca [this message] 2021-04-17 16:54 ` tromey at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-11969-4717-0uhCyCNOuA@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).