Yahoo Groups archive

Lpc2000

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

Message

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/ 

-----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/> .

Attachments

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.