[EMAIL PROTECTED] writes:

> GDB crashes when I'm trying to print a function.

You are not trying to "print a function".

You are trying to print return value from a void function, which
itself is not very meaningful (but should not cause debugger
to crash).

> Here is the code snippet. When I'm trying to print "d.foo()"  in main
> function from GDB, it crashes. I'm using GNU gdb 4.18. Is there anyway
> to prevent this crash (without making changes to the code)?

No. 

Note that gdb 4.18 is *ancient*; current gdb is 6.3 (and may
have that bug fixed).

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to