public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: "Dave Korn" <dave.korn@artimi.com>
To: "'Daniel Jacobowitz'" <drow@false.org>,
		"'Anitha Boyapati'" <anithab@sankhya.com>
Cc: <gdb@sourceware.org>
Subject: RE: conditional breakpoints for strings
Date: Wed, 24 Oct 2007 14:26:00 -0000	[thread overview]
Message-ID: <026f01c81649$e2cdc920$2e08a8c0@CAM.ARTIMI.COM> (raw)
In-Reply-To: <20071024123559.GA21751@caradoc.them.org>

On 24 October 2007 13:36, Daniel Jacobowitz wrote:

>> This is quite interesting. Maybe I would just look into its internals.
>> Generally speaking, why is this char*->string so hard ?
> 
> Two parts.  One is that GDB does not know how to construct new
> objects.  The other is that figuring out which constructors or
> operators to call is complicated; do you convert std::string to
> char * or char * to std::string, for instance.  The C++ language
> standard has pages and pages of rules for this sort of thing.

  We probably want to get the compiler to do it for us then.  LTO might well
make this almost trivial, when it's ready.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....

  parent reply	other threads:[~2007-10-24 14:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24  6:51 Anitha Boyapati
2007-10-24 11:53 ` Daniel Jacobowitz
2007-10-24 12:22   ` Anitha Boyapati
2007-10-24 12:36     ` Daniel Jacobowitz
2007-10-24 13:05       ` Anitha Boyapati
2007-10-24 14:26       ` Dave Korn [this message]
2007-10-24 14:35         ` 'Daniel Jacobowitz'

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='026f01c81649$e2cdc920$2e08a8c0@CAM.ARTIMI.COM' \
    --to=dave.korn@artimi.com \
    --cc=anithab@sankhya.com \
    --cc=drow@false.org \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).