Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to set breakpoints in asm sources?




On Jun 27, 2008, at 5:37 PM, Terry Simons wrote:

Is it possible to set graphical breakpoints in assembly sources with Xcode, or does one have to use gdb's command line?

I have a project with a .c driver and an assembly file (ending with .nasm) and I can compile the project just fine, and set breakpoints in the driver, but I can't set breakpoints in the assembly file.

Am I missing something or is what I am trying to do not possible?

No, the nasm assembler does not generate any debug output, so no symbols or lines in nasm files are available to the debugger as source code.


You can set a symbolic breakpoint at the entry point to a nasm function, then use the split-window view in the debugger to set breakpoints in the binary code at the instruction level, but not in the source.

Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Is it possible to set breakpoints in asm sources? (From: Terry Simons <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.