Difference between revisions of "Template:MCU resources"
(→GDB) |
(→Resources) |
||
Line 18: | Line 18: | ||
target remote localhost:12345 |
target remote localhost:12345 |
||
continue |
continue |
||
====A few essential GDB commands==== |
|||
== GDB dažas komandas == |
|||
{| border=1 |
|||
| GDB command |
|||
| Shortcut |
|||
| Description |
|||
|+ |
|||
| run |
|||
| |
|||
| Run the program from start |
|||
|- |
|||
| continue |
|||
| c |
|||
| Continue (or start) the execution of the program |
|||
|- |
|||
| step |
|||
| s |
|||
| Execute the current line from the source. If there is a function call, step into it. |
|||
This command can have a parameter n that tells how many steps to make. |
|||
|- |
|||
| next |
|||
| n |
|||
| Execute the current line from the source. If there is a function call, stop after running it. |
|||
This command can have a parameter n that tells how many steps to make. |
|||
|- |
|||
| break <x> |
|||
| b <x> |
|||
| |
|||
Set a "breakpoint" to <x>, where <x> could be: |
|||
* line_number in the current source code file |
|||
* filename:line_number |
|||
* function_name |
|||
* filename:function_name |
|||
* *address |
|||
*...and many others |
|||
|- |
|||
| list |
|||
| l |
|||
| Shows the source code (lines). Could be followed by a function_name or file:filename |
|||
|- |
|||
| info registers |
|||
| i r |
|||
| Prints all registers and their values. Can be followed by one or more register names. |
|||
|- |
|||
| set step mode on |
|||
| |
|||
| Set running mode such that "step" will enter the code that has no debug information available. |
|||
Using "off" instead of "on" resets this mode. |
|||
|} |
|||
====ARM==== |
====ARM==== |
Revision as of 23:17, 28 October 2021
Contents
Resources
Make
GDB
- GDB tutorial from UMD
- GDB getting started tutorial
- GDB commands in short from PDX
- GDB manual
- Remote debugging example, using 12345 as the communications port on localhost
qemu-arm -L /usr/arm-linux-gnueabi -g 12345 md1 10 & gdb-multiarch md1 target remote localhost:12345 continue
A few essential GDB commands
GDB dažas komandas
GDB command | Shortcut | Description |
run | Run the program from start | |
continue | c | Continue (or start) the execution of the program |
step | s | Execute the current line from the source. If there is a function call, step into it.
This command can have a parameter n that tells how many steps to make. |
next | n | Execute the current line from the source. If there is a function call, stop after running it.
This command can have a parameter n that tells how many steps to make. |
break <x> | b <x> |
Set a "breakpoint" to <x>, where <x> could be:
|
list | l | Shows the source code (lines). Could be followed by a function_name or file:filename |
info registers | i r | Prints all registers and their values. Can be followed by one or more register names. |
set step mode on | Set running mode such that "step" will enter the code that has no debug information available.
Using "off" instead of "on" resets this mode. |
ARM
- ARM instruction set quick reference - from U.Wisconsin.
- A32 instruction summary
- Application Binary Interface (ABI) for the Arm architecture
- ARM A32 instruction set. Note, that ARM has several instruction sets described here
Xscale
- Intel XScale Microarchitecture Assembly Language Quick Reference Card ARM Instruction Set, Intel Corporation, 2001
- Intel IXP42X Product Line of Network Processors and IXC1100 Control Plane Processor Developer’s Manual, ON: 252480-006US, Intel Corporation, 2006
- Intel XScale(R) Core Developer’s Manual
- Intel XScale R Core Developer’s Manual, ON: 273473-002, Intel Corporation, 2004