Re: gdb not breaking on break statements
Re: gdb not breaking on break statements
- Subject: Re: gdb not breaking on break statements
- From: Steve Checkoway <email@hidden>
- Date: Thu, 8 Nov 2007 17:28:03 -0800
On Nov 8, 2007, at 4:44 PM, Jason Molenda wrote:
As far as the debugger knows, line 7 is a blank line or a comment or
something like that. Even though this is compiled without
optimization, the way that the compiler generates assembly for this
source code is not exactly what you might have expected. The older
compilers that you compared against may have generated code in a
different way, or possibly you were comparing a ppc compiler which
would result in different codegen.
I was seeing the same behavior on ppc as intel. The real code I was
working with was more complex, of course, but it amounted to if some
complex condition, then break. I wanted to understand what was causing
the code to break out of the loop early. Is there a better way to do
that other than insert something like asm volatile ( "nop\n" ) before
my break statements?
--
Steve Checkoway
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden