I’m very much a beginner at this ARM stuff I hope this is what you were asking about
This is what appears in the console. I saw somewhere how to do a proper log. I see the console getting cleared a couple of times when I launch the debug session so a lot goes on that I don’t see
1-gdb-set confirm off
1^done
(gdb)
2-gdb-set width 0
2^done
(gdb)
3-gdb-set height 0
3^done
(gdb)
4-interpreter-exec console echo
4^done
(gdb)
5-gdb-show prompt
5^done,value="(gdb) "
(gdb)
6-gdb-set new-console on
&“No symbol "new" in current context.\n”
6^error,msg=“No symbol "new" in current context.”
(gdb)
7 target remote localhost:3333
No symbol “new” in current context.
&“target remote localhost:3333\n”
target remote localhost:3333
~“0x00000200 in main () at main.c:137\n”
0x00000200 in main () at main.c:137
&“137\tmain.c: No such file or directory.\n”
~“\tin main.c\n”
in main.c
137 main.c: No such file or directory.
7^done
8 target remote localhost:3333
(gdb)
target remote localhost:3333
&“target remote localhost:3333\n”
~“0x00000200 in main () at main.c:137\n”
0x00000200 in main () at main.c:137
~“137\tin main.c\n”
137 in main.c
8^done
(gdb)
9 monitor sleep 500
&“monitor sleep 500\n”
monitor sleep 500
9^done
(gdb)
10 monitor poll
&“monitor poll\n”
monitor poll
@“target state: halted\n”
@“target halted in ARM state due to debug request, current mode: System\n”
@“cpsr: 0x6000001f pc: 0x00000200\n”
10^done
(gdb)
11 monitor flash probe 0
&“monitor flash probe 0\n”
monitor flash probe 0
@“flash ‘lpc2000’ found at 0x00000000\n”
11^done
(gdb)
12 monitor flash erase 0 0 0
&“monitor flash erase 0 0 0\n”
monitor flash erase 0 0 0
@“Command erase not found\n”
12^done
(gdb)
13 monitor flash write_binary 0 main.bin 0x0
&“monitor flash write_binary 0 main.bin 0x0\n”
monitor flash write_binary 0 main.bin 0x0
monitor reset run
@“Command write_binary not found\n”
13^done
(gdb)
14 monitor reset run
&“monitor reset run\n”
@“JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)\n”
14^done
(gdb)
15 monitor sleep 500
monitor sleep 500
&“monitor sleep 500\n”
15^done
(gdb)
16 monitor soft_reset_halt
monitor soft_reset_halt
&“monitor soft_reset_halt\n”
@“requesting target halt and executing a soft reset\n”
16^done
(gdb)
17 monitor arm7_9 force_hw_bkpts enable
monitor arm7_9 force_hw_bkpts enable
&“monitor arm7_9 force_hw_bkpts enable\n”
@“force hardware breakpoints enabled\n”
17^done
(gdb)
18 symbol-file main.out
symbol-file main.out
&“symbol-file main.out\t\n”
main.out: No such file or directory.
&“main.out: No such file or directory.\n”
18^error,msg=“main.out: No such file or directory.”
(gdb)
19 thbreak main
thbreak main
&“thbreak main\n”
~“Hardware assisted breakpoint 1 at 0xe8: file main.c, line 81.\n”
Hardware assisted breakpoint 1 at 0xe8: file main.c, line 81.
19^done
(gdb)
20 continue
continue
&“continue\n”
~“main () at main.c:81\n”
main () at main.c:81
~“81\tin main.c\n”
81 in main.c
20^done
(gdb)
21 restore L:\ELEC\Pollen\Sprayer\Arm\SprayerGanymede\Sprayer\main.out 0x
restore L:\ELEC\Pollen\Sprayer\Arm\SprayerGanymede\Sprayer\main.out 0x
Invalid number “0x”.
&“restore L:\\ELEC\\Pollen\\Sprayer\\Arm\\SprayerGanymede\\Sprayer\\main.out 0x\n”
&“Invalid number "0x".\n”
21^error,msg=“Invalid number "0x".”
(gdb)
22-break-list
22^done,BreakpointTable={nr_rows=“0”,nr_cols=“6”,hdr=[{width=“7”,alignment=“-1”,col_name=“number”,colhdr=“Num”},{width=“14”,alignment=“-1”,col_name=“type”,colhdr=“Type”},{width=“4”,alignment=“-1”,col_name=“disp”,colhdr=“Disp”},{width=“3”,alignment=“-1”,col_name=“enabled”,colhdr=“Enb”},{width=“10”,alignment=“-1”,col_name=“addr”,colhdr=“Address”},{width=“40”,alignment=“2”,col_name=“what”,colhdr=“What”}],body=}
(gdb)
23 info proc
&“info proc\n”
&“Undefined info command: "proc". Try "help info".\n”
23^error,msg=“Undefined info command: "proc". Try "help info".”
(gdb)
24 info program
&“info program\n”
~“Debugging a target over a serial line.\n”
~“Program stopped at 0xe8.\n”
~“It stopped at a breakpoint that has since been deleted.\n”
~“Type "info stack" or "info registers" for more information.\n”
24^done
(gdb)
25 info threads
&“info threads\n”
&“warning: RMT ERROR : failed to get remote thread list.\n”
25^done
(gdb)
26-stack-info-depth
26^done,depth=“1”
(gdb)
27-stack-list-frames 0 1
27^done,stack=[frame={level=“0”,addr=“0x000000e8”,func=“main”,file=“main.c”,line=“81”}]
(gdb)
28-data-list-changed-registers
28^done,changed-registers=[“0”,“1”,“2”,“3”,“4”,“5”,“6”,“7”,“8”,“9”,“10”,“11”,“12”,“13”,“14”,“15”,“16”,“17”,“18”,“19”,“20”,“21”,“22”,“23”,“24”,“25”]
29 info sharedlibrary
(gdb)
&“info sharedlibrary\n”
~“No shared libraries loaded at this time.\n”
29^done
(gdb)
30-environment-directory L:/ELEC/Pollen/Sprayer/Arm/SprayerGanymede/Sprayer L:/ELEC/Pollen/Sprayer/Arm/SprayerGanymede/Sprayer/.settings
30^done,source-path=“L:/ELEC/Pollen/Sprayer/Arm/SprayerGanymede/Sprayer;L:/ELEC/Pollen/Sprayer/Arm/SprayerGanymede/Sprayer/.settings;$cdir;$cwd”
(gdb)
31-data-list-register-names
31^done,register-names=[“r0”,“r1”,“r2”,“r3”,“r4”,“r5”,“r6”,“r7”,“r8”,“r9”,“r10”,“r11”,“r12”,“sp”,“lr”,“pc”,“f0”,“f1”,“f2”,“f3”,“f4”,“f5”,“f6”,“f7”,“fps”,“cpsr”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”,“”]
(gdb)
32
&“\n”
32^done
(gdb)
33-data-disassemble -f main.c -l 81 -n 100 – 1
33^done,asm_insns=[src_and_asm_line={line=“69”,file=“main.c”,line_asm_insn=[{address=“0x000000d8”,func-name=“main”,offset=“0”,inst=“mov\tr12, sp”},{address=“0x000000dc”,func-name=“main”,offset=“4”,inst="push\t{r11,
I chopped a whole lot of stuff from the bottom of this.