public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11734] New: break c::bar() broken, can't find bar
@ 2010-06-21  6:59 dje at google dot com
  2010-06-21 20:38 ` [Bug c++/11734] " keiths at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: dje at google dot com @ 2010-06-21  6:59 UTC (permalink / raw)
  To: gdb-prs

With the appended testcase, I get the following:

$ g++ --version
g++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
[...]
$ g++ -g foo.cc foo2.cc
$ ./gdb -nx ./a.out
GNU gdb (GDB) 7.1.50.20100619-cvs
[...]
(gdb) start
[...]
(gdb) b 'c::foo()'
the class c does not have any method named foo()
Hint: try 'c::foo()<TAB> or 'c::foo()<ESC-?>
(Note leading single quote.)
Make breakpoint pending on future shared library load? (y or [n])

This is a regression from 7.1.

fyi, the following does work:

(gdb) b c::foo     # Do this first ...
(gdb) b c::foo()   # ... and then this works.

---
foo.h:

class c
{
 public:
  void foo ();
};
---
foo.cc:

#include "foo.h"

int
main ()
{
  c* p = new c;
  p->foo ();
  return 0;
}
---
foo2.cc:

#include "foo.h"

void
c::foo ()
{
}

-- 
           Summary: break c::bar() broken, can't find bar
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: dje at google dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: amd64-linux
  GCC host triplet: amd64-linux
GCC target triplet: amd64-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=11734

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-03-29 20:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11734-4717@http.sourceware.org/bugzilla/>
2010-12-07 17:26 ` [Bug c++/11734] break c::bar() broken, can't find bar rohlfing at ieee dot org
2010-12-07 19:22 ` keiths at redhat dot com
2010-12-16 17:29 ` thahn01@t-online.de
2010-12-17  2:10 ` keiths at redhat dot com
2011-03-16 21:09 ` cvs-commit at gcc dot gnu.org
2011-03-16 21:12 ` cvs-commit at gcc dot gnu.org
2011-03-29 20:50 ` keiths at redhat dot com
2010-06-21  6:59 [Bug c++/11734] New: " dje at google dot com
2010-06-21 20:38 ` [Bug c++/11734] " keiths at redhat dot com
2010-06-21 21:01 ` keiths at redhat dot com
2010-06-22  1:23 ` keiths at redhat dot com

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).