public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "xdje42 at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug symtab/17602] iterate_name_matcher passes arguments to strcmp_iw in reverse order? Date: Fri, 05 Dec 2014 17:03:00 -0000 [thread overview] Message-ID: <bug-17602-4717-eRQBwaCmG0@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-17602-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=17602 Doug Evans <xdje42 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xdje42 at gmail dot com --- Comment #4 from Doug Evans <xdje42 at gmail dot com> --- Filing for reference sake. To see the bug, apply the attached patch, and do this: # First build the test binary. bash$ make check RUNTESTFLAGS=anon-ns.exp FAIL: gdb.cp/anon-ns.exp: list (anonymous namespace)::doit1(void) The following example doesn't use that failure, but it could. bash$ make run GDBFLAGS=testsuite/gdb.cp/anon-ns (gdb) b doit(void) --> Function "doit(void)" not defined. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) mt expand anon-ns2 (gdb) b doit(void) Breakpoint 1 at 0x40065a: file ../../../linespecs/gdb/testsuite/gdb.cp/anon-ns2.cc, line 76. The problem is that when iterate_name_match gets called to see if the symtab of "doit" should be expanded, "doit" is passed in arg1 to strcmp_iw and "doit()" is passed in arg2 to strcmp_iw, whereas ISTM that it's intended to pass them in the opposite order, as explained in the comments of the currently reverted patch. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2014-12-05 17:03 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-11-14 19:31 [Bug symtab/17602] New: " dje at google dot com 2014-11-15 0:26 ` [Bug symtab/17602] " dje at google dot com 2014-12-03 0:42 ` cvs-commit at gcc dot gnu.org 2014-12-05 9:06 ` cvs-commit at gcc dot gnu.org 2014-12-05 17:03 ` xdje42 at gmail dot com [this message] 2014-12-05 17:06 ` xdje42 at gmail dot com 2014-12-25 0:46 ` cvs-commit at gcc dot gnu.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-17602-4717-eRQBwaCmG0@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).