This is the mail archive of the gdb-patches@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: [patch] avoid the crash of gdb+pretty printer on initialized local variables


On 2011-12-6 5:44, Tom Tromey wrote:
>>>>>> ">" == ext asmwarrior <asmwarrior@gmail.com> writes:
> 
> Tom> I forget, something to do with not using the right gcc flag?
> 
>>> My app was build with -O0 and -g, no extra flag is used.
> 
> I mean a missing flag when building gdb.  I vaguely recall a need for
> -fno-omit-frame-pointer, and that without this, gdb exceptions cause
> crashes.
> 
> Tom

Hi, Tom, thanks.

Yes, gdb build under mingw should have -fno-omit-frame-pointer flag, otherwise, it will crash.

I forget to mention that My gdb was build with -O0 and -g, so I think no optimization was used in building gdb.

The problem is that gdb still crash when it try to pretty-print the uninitialized local variables.

asmwarrior
ollydbg from codeblocks' forum




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