public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Breakpoint menus with overloaded constructors
@ 2008-01-03 21:41 Nick Roberts
  2008-01-04 12:53 ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Roberts @ 2008-01-03 21:41 UTC (permalink / raw)
  To: gdb


Breakpoint menus don't seem to work with overloaded constructors.  Is that a
known problem?

They can be found with completion, however:

(gdb) b 'A::A(<TAB><TAB>
A::A(double)  A::A(int)     
(gdb) b 'A::A(



GNU gdb 6.7.50.20080103-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) b A::A
[0] cancel
[1] all
?HERE
?HERE
> 1
Note: breakpoint -1 (disabled) also set at pc 0x0.
Breakpoint 1 at 0x0
Note: breakpoints -1 (disabled) and 1 also set at pc 0x0.
Breakpoint 2 at 0x0
warning: Multiple breakpoints were set.
Use the "delete" command to delete unwanted breakpoints.
(gdb) info break
Num     Type           Disp Enb  Address    What
1       breakpoint     keep y 0x00000000 
2       breakpoint     keep y 0x00000000 
(gdb) 


-- 
Nick                                           http://www.inet.net.nz/~nickrob


/*  -*- compile-command: "cc -g -o overgdb overgdb.cc -lstdc++"; -*- */

#include <iostream>

using namespace std;

class A
{
public:
A (int a)
{
  cout << "int" << endl;
}

A (double b)
{
  cout << "double" << endl;
}
};

main ()
{
  A *a, *b;
  a = new A (6);
  b = new A (10.11);
}

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

end of thread, other threads:[~2008-01-07 23:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-03 21:41 Breakpoint menus with overloaded constructors Nick Roberts
2008-01-04 12:53 ` Daniel Jacobowitz
2008-01-04 19:14   ` Vladimir Prus
2008-01-07 13:36     ` Vladimir Prus
2008-01-07 21:44       ` Nick Roberts
2008-01-07 21:55         ` Daniel Jacobowitz
2008-01-07 23:20         ` Nick Roberts

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