This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: conditional breakpoints for strings


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]