This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unable to debug after changing address of the '.stack' section


Hi,

I created a simple 'Hello World' application and built it using gnu 
toolchain for SH target. 

Command used:
sh-elf-gcc foo.c -g 

I could successfully debug the application using SH gdb 
simulator (target sim) with the default linker script provided 
by the toolchain. 

However, if I change the address of the '.stack' section 
(using a custom linker script) from '0x300000' (default) 
to '0xFFFF0000', the following error message is displayed 
while running (r) the application,

===============================================
Program received signal SIGEMT, Emulation trap.
0x000011a8 in atexit ()
===============================================

Also, if the address of the '.stack' section is changed to 
'0x00FF0000', the applications runs successfully.

Is there a limitation on the address range that can be specified 
(in the linker script), while debugging using gdb simulator? 
Are there some additional settings or steps required for 
accessing this memory area (while debugging)?

Any help on this topic will be highly appreciated.
Thanks in advance.

Regards,
Ina Pandit


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]