ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DDD and preprocessor macros


From: Andreas Paulsen
Subject: DDD and preprocessor macros
Date: Thu, 1 Jul 2004 14:32:13 +0200

Hello,
I am using DDD as a frontend for gdb 6.1.
My C++ code contains smartpointers implemented by preprocessor macros using the the # stringification operator,
and is compiled with the gcc "-g3" option.
When running gdb without a frontend I can not print the value of such a smartpointer:
> (gdb) print this->smartptr_
> $4 = <incomplete type>
This is not surprising given that chapter 9 of the latest "Debugging with gdb" manual states:
"At the moment, gdb does not support the ## token-splicing operator, the # stringification operator, or variable-arity macros."

Fair enough.
However, if I run gdb with DDD as a frontend and set a breakpoint on a line where a smartpointer is derefenced:
smartptr_->someFunc();
it crashes with the message "GDB terminated abnormally (Segmentation fault)"!
Is there a way to avoid this?

Best regards and thanks a lot in advance for any help,
Andreas W. Paulsen
Software Engineer
Roxar Software Solutions AS
Karenslyst Alle 11
+47 22 54 78 23

   

DISCLAIMER:
This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]