История изменений
Исправление trex6, (текущая версия) :
Большое спасибо. Теперь вроде нормально слинковалось, но при попытке поставить брейкпоинт отвечает:
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0x00000000 in ?? ()
(gdb) monitor reset halt
JTAG tap: lpc1788.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x000000f8 msp: 0x10004860
(gdb) load
Loading section .stack, size 0x300 lma 0x10000000
Start address 0x0, load size 768
Transfer rate: 6144 bits in <1 sec, 768 bytes/write.
(gdb) break main
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n])
Это нормально или я опять что-то не так сделал?
P.S. На всякий случай:
$ arm-none-eabi-objdump -h ./test1.elf
./test1.elf: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .stack 00000300 10000000 10000000 00008000 2**3
CONTENTS, ALLOC, LOAD, DATA
1 .ARM.attributes 00000025 00000000 00000000 00008300 2**0
CONTENTS, READONLY
2 .heap 00001000 00000000 00000000 00008328 2**3
CONTENTS
3 .comment 0000002a 00000000 00000000 00009328 2**0
CONTENTS, READONLY
4 .debug_aranges 00000048 00000000 00000000 00009358 2**3
CONTENTS, READONLY, DEBUGGING
5 .debug_pubnames 0000001b 00000000 00000000 000093a0 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_info 000000cb 00000000 00000000 000093bb 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_abbrev 0000005d 00000000 00000000 00009486 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_line 000000ae 00000000 00000000 000094e3 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_frame 0000002c 00000000 00000000 00009594 2**2
CONTENTS, READONLY, DEBUGGING
10 .debug_str 00000044 00000000 00000000 000095c0 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_loc 00000038 00000000 00000000 00009604 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_macinfo 000021b8 00000000 00000000 0000963c 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_ranges 00000030 00000000 00000000 0000b7f8 2**3
CONTENTS, READONLY, DEBUGGING
Исходная версия trex6, :
Большое спасибо. Теперь вроде нормально слинковалось, но при попытке поставить брейкпоинт отвечает:
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0x00000000 in ?? ()
(gdb) monitor reset halt
JTAG tap: lpc1788.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Only resetting the Cortex-M3 core, use a reset-init event handler to reset any peripherals
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x000000f8 msp: 0x10004860
(gdb) load
Loading section .stack, size 0x300 lma 0x10000000
Start address 0x0, load size 768
Transfer rate: 6144 bits in <1 sec, 768 bytes/write.
(gdb) break main
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n])
Это нормально или я опять что-то не так сделал?