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: why does assert(0) corrupt the stack trace?


On Sun, 05 Nov 2017 21:05:04 +0100, 慕冬亮 wrote:
> If I compile the program with "-O0", this problem may be solved. Yes?

You would need to recompile glibc with -g -O0.  Which I am not sure if it is
even possible.


Jan


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