help-gplusplus
[Top][All Lists]
Advanced

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

Re: gdb crashes with multiple inheritence


From: Paul Pluzhnikov
Subject: Re: gdb crashes with multiple inheritence
Date: Tue, 17 Jan 2006 23:06:41 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

deb.mohanty@gmail.com 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.


reply via email to

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