Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Thomas Richter <thor@mail.math.tu-berlin.de>
Cc: gdb@sourceware.org
Subject: Re: [BUG] Tab Expansion for C++
Date: Tue, 13 Feb 2007 19:00:00 -0000	[thread overview]
Message-ID: <je1wkut2ry.fsf@sykes.suse.de> (raw)
In-Reply-To: <200702131613.l1DGDWVX009239@mersenne.math.TU-Berlin.DE> (Thomas 	Richter's message of "Tue, 13 Feb 2007 17:13:32 +0100 (CET)")

Thomas Richter <thor@mail.math.tu-berlin.de> writes:

> Consider finding the constructor of A (clearly, a contrived example)
>
> (gdb) break A::
>
> now type TAB to get the members of A:
>
> A                       __do_global_dtors_aux   char
> A::A(int)               __dso_handle            completed.5556
> A::getA() const         __fini_array_end        data_start
> A::~A()                 __fini_array_start      frame_dummy
> _DYNAMIC                __i686.get_pc_thunk.bx  int
> _GLOBAL_OFFSET_TABLE_   __init_array_end        long int
> _IO_stdin_used          __init_array_start      long long int
> __CTOR_END__            __libc_csu_fini         long long unsigned int
> __CTOR_LIST__           __libc_csu_init         long unsigned int
> __DTOR_END__            __libc_start_main@plt   main
> __DTOR_LIST__           _edata                  p.5554
> __FRAME_END__           _end                    short int
> __JCR_END__             _fini                   short unsigned int
> __JCR_LIST__            _fp_hw                  signed char
> __bss_start             _init                   unsigned char
> __data_start            _start                  unsigned int
> __do_global_ctors_aux   call_gmon_start         ~A
> (gdb) 

See (gdb)Completion, you need to put a single quote before the word to be
completed, so that gdb know where it starts.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


      parent reply	other threads:[~2007-02-13 16:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-13 16:28 Thomas Richter
2007-02-13 16:56 ` Daniel Jacobowitz
2007-02-13 17:08   ` Thomas Richter
2007-02-13 19:33     ` Daniel Jacobowitz
2007-02-14 12:08       ` Thomas Richter
2007-02-14 12:36         ` Daniel Jacobowitz
2007-02-19 11:48           ` Thomas Richter
2007-02-19 12:28             ` Daniel Jacobowitz
2007-02-19 13:03             ` Robert Dewar
2007-02-13 19:00 ` Andreas Schwab [this message]

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=je1wkut2ry.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=gdb@sourceware.org \
    --cc=thor@mail.math.tu-berlin.de \
    /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