Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: gdb@sourceware.org
Subject: Breakpoint menus with overloaded constructors
Date: Thu, 03 Jan 2008 21:41:00 -0000	[thread overview]
Message-ID: <18301.21862.895127.476459@kahikatea.snap.net.nz> (raw)


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);
}


             reply	other threads:[~2008-01-03 21:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-03 21:41 Nick Roberts [this message]
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

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=18301.21862.895127.476459@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb@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: link
Be 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