Revision history for GnuDebugger


Revision [33771]

Last edited on 2021-06-06 22:11:09 by ToBo

No Differences

Revision [33770]

Edited on 2021-06-06 22:11:09 by ToBo
Additions:
==a==Links==a==
==a==Verwendung==a==
==a==Kommandos==a==
==a==Installation von gdb-multiarch==a==
Install [[GnuDebugger]] for other archtectures if not at ARM anyway e.g. Raspberry Pi
%%sudo apt install gdb-multiarch%%
Execute with example from [[STM32L412]]
%%gdb-multiarch asm.o%%
%%
Type "apropos word" to search for commands related to "word"...
Reading symbols from asm.o...
(gdb) disassemble led_setup
Dump of assembler code for function led_setup:
0x0000007e <+0>: push {r0, r1, lr}
0x00000080 <+2>: ldr.w r1, [pc, #-4] ; 0x80 <led_setup+2>
0x00000084 <+6>: ldr r0, [r1, #0]
0x00000086 <+8>: orr.w r0, r0, #2
0x0000008a <+12>: str r0, [r1, #0]
0x0000008c <+14>: ldr.w r1, [pc, #-4] ; 0x8c <led_setup+14>
0x00000090 <+18>: ldr.w r0, [pc, #-4] ; 0x90 <led_setup+18>
0x00000094 <+22>: str r0, [r1, #0]
0x00000096 <+24>: bl 0x9c <led_on>
0x0000009a <+28>: pop {r0, r1, pc}
%%
Disassemble and show binary code
%%
(gdb) disassemble /r led_setup
%%
%%
(gdb) disassemble /r main
Dump of assembler code for function main:
0x00000000 <+0>: 00 f0 30 f8 bl 0x64 <systick_setup>
0x00000004 <+4>: 00 f0 3b f8 bl 0x7e <led_setup>
0x00000008 <+8>: 4f f0 00 00 mov.w r0, #0
0x0000000c <+12>: 4f f0 05 01 mov.w r1, #5
0x00000010 <+16>: 4f f0 01 02 mov.w r2, #1
0x00000014 <+20>: 4f f0 00 03 mov.w r3, #0
0x00000018 <+24>: af f2 04 04 subw r4, pc, #4
0x0000001c <+28>: 25 68 ldr r5, [r4, #0]
0x0000001e <+30>: 5f f8 04 60 ldr.w r6, [pc, #-4] ; 0x1c <main+28>
0x00000022 <+34>: 5f f8 04 70 ldr.w r7, [pc, #-4] ; 0x20 <main+32>
0x00000026 <+38>: 5f f8 04 a0 ldr.w r10, [pc, #-4] ; 0x24 <main+36>
%%
%%
(gdb) dump binary memory asm_memory.bin 0x0 0xbc
%%
Deletions:
===Links===
===Verwendung===
===Kommandos===


Revision [33659]

Edited on 2021-06-05 19:01:39 by ToBo

No Differences

Revision [33658]

Edited on 2021-06-05 19:01:39 by ToBo
Additions:
Für andere Architekturen siege gdb-multiarch oder Beispiel [[STM32L412]] and [[STLink]]
Deletions:
Für andere Architekturen siege gdb-multiarch oder Beispiel [[STM32L412]]


Revision [33657]

Edited on 2021-06-05 18:49:29 by ToBo

No Differences

Revision [33656]

Edited on 2021-06-05 18:49:29 by ToBo
Additions:
Für andere Architekturen siege gdb-multiarch oder Beispiel [[STM32L412]]


Revision [7565]

Edited on 2009-01-21 23:03:51 by ToBo
Additions:
Kommandos für den gdb


Revision [7548]

Edited on 2009-01-21 15:42:40 by ToBo
Additions:
[[http://wap-pool.math.uni-bayreuth.de/prog/main.html Über Debugger auf den Seiten der Universität Bayreuth]] (gdb, GVD, DDD, Watcom)


Revision [5516]

The oldest known version of this page was created on 2008-09-29 01:04:58 by ToBo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki