Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

ARM/THUMB debug info

ARM/THUMB debug info

2004-01-25 by James Dabbs

My debugger (nohau) takes offense when it steps into thumb code, telling
me I need to change compiler debug options for disassembly to work
properly.  It sees the 'T' bit get set, but does not understand that
it's stepping into a THUMB region.

Is there an arm-elf-gcc compiler option required to include debug info
saying whether a file has been compiled in thumb mode or not?

Re: ARM/THUMB debug info

2004-01-26 by hanley2k

--- In lpc2100@yahoogroups.com, "James Dabbs" <jdabbs@t...> wrote:
> My debugger (nohau) takes offense when it steps into thumb code, 
telling
> me I need to change compiler debug options for disassembly to work
> properly.  It sees the 'T' bit get set, but does not understand that
> it's stepping into a THUMB region.
> 
> Is there an arm-elf-gcc compiler option required to include debug 
info
> saying whether a file has been compiled in thumb mode or not?

I seem to remeber that Nohau did not support Thumb but it was to be 
added......I may be wrong

RE: [lpc2100] ARM/THUMB debug info

2004-01-27 by Hugh O'Keeffe

There is no specific option for thumb debug and none is needed.  
 
The GNU linker emits info that tells the debugger the code is either ARM
or THUMB. Within the ELF file (actually the ELF symbol table i.e.
independent of the DWARF debug info) symbols are used to distinguish
between ARM and THUMB code (the ST_TYPE function symbol have an
attribute of STT_FUNC 0x2 for ARM and STT_TFUNC 0x13 for THUMB).
 
Every ARM compiler I am aware of (ARM Ltd., GNU, IAR, GHS etc). handle
this in a slightly different way and we have had to adopt our PathFinder
debugger to support the numerous methods used.
 
Our PathFinder debugger fully supports ARM/THUMB/Mixed debugging for all
of the above compilers including GNU

Hugh @ http://www.ashling.com/support/lpc2100/ 
Show quoted textHide quoted text
-----Original Message-----
From: James Dabbs [mailto:jdabbs@...] 
Sent: 25 January 2004 01:22
To: lpc2100@yahoogroups.com
Subject: [lpc2100] ARM/THUMB debug info


My debugger (nohau) takes offense when it steps into thumb code, telling
me I need to change compiler debug options for disassembly to work
properly.  It sees the 'T' bit get set, but does not understand that
it's stepping into a THUMB region.

Is there an arm-elf-gcc compiler option required to include debug info
saying whether a file has been compiled in thumb mode or not?



  _____  

Yahoo! Groups Links


*	To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2100/
  

*	To unsubscribe from this group, send an email to:
lpc2100-unsubscribe@yahoogroups.com
<mailto:lpc2100-unsubscribe@yahoogroups.com?subject=Unsubscribe> 
  

*	Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .

Re: ARM/THUMB debug info

2004-01-30 by sten_larsson

--- In lpc2100@yahoogroups.com, "hanley2k" <hanley2k@y...> wrote:

> I seem to remeber that Nohau did not support Thumb but it was to be 
> added......I may be wrong

We do fully support Thumb mode, and we are looking into reproducing 
the problems experienced by Mr. Dabbs. 

The problem experienced is a warning that says that breakpoints may 
not work because that we were in Thumb mode without expecting it.

Sten Larsson
Nohau Corp
stenl@...

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.