Re: How to switch GDB disassembly from Thumb to ARM?

2011-11-09 Thread Greg Parker
On Nov 9, 2011, at 9:39 AM, Don Quixote de la Mancha wrote: > GDB's disassembly is correct for the Thumb code, but when I am in ARM > mode, it disassembles the ARM instructions as if each one were a pair > of completely nonsensical Thumb instructions. Is there some way I can > tell GDB to switch t

Re: How to switch GDB disassembly from Thumb to ARM?

2011-11-09 Thread Conrad Shultz
This doesn't have anything to do with Cocoa. You might have better luck taking it up on the Xcode-users list. (Sent from my iPad.) -- Conrad Shultz On Nov 9, 2011, at 9:39, Don Quixote de la Mancha wrote: > My iOS App is build with the Apple LLVM 3.0 compiler in Thumb mode. > For armv7, I'm

Re: How to switch GDB disassembly from Thumb to ARM?

2011-11-09 Thread Don Quixote de la Mancha
On Wed, Nov 9, 2011 at 9:39 AM, Don Quixote de la Mancha wrote: > .globl _IntNoArgs > .align 2 > .code 16 That should actually be ".align 1". The parameter to .align is the power to which two is raised to yield the alignment. ".code 16" generates Thumb code, which wants 2-byte alignment. > .al

How to switch GDB disassembly from Thumb to ARM?

2011-11-09 Thread Don Quixote de la Mancha
My iOS App is build with the Apple LLVM 3.0 compiler in Thumb mode. For armv7, I'm pretty sure that's actually Thumb-2. I'm reimplementing my two most time-consuming functions in ARM assembly code. The callers of these functions are Thumb, so I use Thumb to ARM interworking instructions to switch