GDB test connection from FreeBSD 13.0 x86_64 (GhostBSD ) to Black Magic Probe hardware
GDB test connection from FreeBSD 13.0 x86_64 (GhostBSD ) to Black Magic Probe hardware
https://black-magic.org/usage/gdb-commands.html BMP GDB commands
https://sourceware.org/gdb/ GDB command listing
sudo gdb
GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) set arch aarch64
The target architecture is set to "aarch64".
(gdb) target extended-remote /dev/ttyu0
/dev/ttyu0: No such file or directory.pstat -t listing
fred@fredTC93-pc ~> pstat -t
LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE
ttyu2 23040 0 0 2304 23064 0 2307 11 0 0 ICOiX
ttyv0 1920 0 0 192 1984 0 199 625 4081 4081 Oicl
ttyv1 1920 0 0 192 1984 0 199 7 4082 4082 Oil
ttyv2 1920 0 0 192 1984 0 199 7 4083 4083 Oil
ttyv3 1920 0 0 192 1984 0 199 7 4084 4084 Oil
ttyv4 1920 0 0 192 1984 0 199 7 4085 4085 Oil
ttyv5 1920 0 0 192 1984 0 199 7 4086 4086 Oil
ttyv6 1920 0 0 192 1984 0 199 7 4087 4087 Oil
ttyv7 1920 0 0 192 1984 0 199 7 4088 4088 Oil
ttyv8 1920 1920 0 192 1984 0 199 0 0 0 OiHil
ttyv9 0 0 0 0 0 0 0 0 0 0 -
ttyva 0 0 0 0 0 0 0 0 0 0 -
ttyvb 0 0 0 0 0 0 0 0 0 0 -
ttyU0 0 0 0 0 0 0 0 0 0 0 IC
ttyU1 23040 0 0 2304 23064 0 2307 567 0 0 ICOiX
pts/0 1920 0 0 192 1984 0 199 13 4481 8524 Oi
pts/1 0 0 0 0 0 0 0 11 5057 0 G
pts/2 1920 0 0 192 1984 0 199 21719 5310 5439 Oi
pts/3 1920 0 0 192 1984 0 199 4 5465 5465 Oi
pts/4 1920 0 0 192 1984 0 199 0 8660 8780 Oi
fred@fredTC93-pc ~>
LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE
ttyu2 23040 0 0 2304 23064 0 2307 11 0 0 ICOiX
ttyv0 1920 0 0 192 1984 0 199 625 4081 4081 Oicl
ttyv1 1920 0 0 192 1984 0 199 7 4082 4082 Oil
ttyv2 1920 0 0 192 1984 0 199 7 4083 4083 Oil
ttyv3 1920 0 0 192 1984 0 199 7 4084 4084 Oil
ttyv4 1920 0 0 192 1984 0 199 7 4085 4085 Oil
ttyv5 1920 0 0 192 1984 0 199 7 4086 4086 Oil
ttyv6 1920 0 0 192 1984 0 199 7 4087 4087 Oil
ttyv7 1920 0 0 192 1984 0 199 7 4088 4088 Oil
ttyv8 1920 1920 0 192 1984 0 199 0 0 0 OiHil
ttyv9 0 0 0 0 0 0 0 0 0 0 -
ttyva 0 0 0 0 0 0 0 0 0 0 -
ttyvb 0 0 0 0 0 0 0 0 0 0 -
ttyU0 0 0 0 0 0 0 0 0 0 0 IC
ttyU1 23040 0 0 2304 23064 0 2307 567 0 0 ICOiX
pts/0 1920 0 0 192 1984 0 199 13 4481 8524 Oi
pts/1 0 0 0 0 0 0 0 11 5057 0 G
pts/2 1920 0 0 192 1984 0 199 21719 5310 5439 Oi
pts/3 1920 0 0 192 1984 0 199 4 5465 5465 Oi
pts/4 1920 0 0 192 1984 0 199 0 8660 8780 Oi
fred@fredTC93-pc ~>
sudo gdb
password:
(gdb) set arch aarch64
The target architecture is set to "aarch64".
(gdb) target extended-remote /dev/ttyU0
Remote debugging using /dev/ttyU0
(gdb) mon version
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb)
The target architecture is set to "aarch64".
(gdb) target extended-remote /dev/ttyU0
Remote debugging using /dev/ttyU0
(gdb) mon version
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb)
(gdb) set arch aarch64
The target architecture is set to "aarch64".
(gdb) target extended-remote /dev/ttyU0
Remote debugging using /dev/ttyU0
(gdb) mon version
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb) Quit
(gdb) monitor jtag_scan
Target voltage: 3.3V
Available Targets:
No. Att Driver
No usable targets found.
(gdb) monitor swdp_scan
Target voltage: 3.3V
SW-DP scan failed!
(gdb) mon targets
Available Targets:
No. Att Driver
No usable targets found.
(gdb) mon vers
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb) mon help
General commands:
version -- Display firmware version info
help -- Display help for monitor commands
jtag_scan -- Scan JTAG chain for devices
swdp_scan -- Scan SW-DP for devices
targets -- Display list of available targets
morse -- Display morse error message
halt_timeout -- Timeout (ms) to wait until Cortex-M is halted: (Default 2000)
connect_srst -- Configure connect under SRST: (enable|disable)
hard_srst -- Force a pulse on the hard SRST line - disconnects target
tpwr -- Supplies power to the target: (enable|disable)
traceswo -- Start trace capture, Manchester mode: (decode channel ...)
heapinfo -- Set semihosting heapinfo
(gdb) mon tpwr
Target Power: disabled
(gdb) mon traceswo
BFE3DFEC:05:85
(gdb) mon heapinfo
not attached
(gdb)
The target architecture is set to "aarch64".
(gdb) target extended-remote /dev/ttyU0
Remote debugging using /dev/ttyU0
(gdb) mon version
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb) Quit
(gdb) monitor jtag_scan
Target voltage: 3.3V
Available Targets:
No. Att Driver
No usable targets found.
(gdb) monitor swdp_scan
Target voltage: 3.3V
SW-DP scan failed!
(gdb) mon targets
Available Targets:
No. Att Driver
No usable targets found.
(gdb) mon vers
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb) mon help
General commands:
version -- Display firmware version info
help -- Display help for monitor commands
jtag_scan -- Scan JTAG chain for devices
swdp_scan -- Scan SW-DP for devices
targets -- Display list of available targets
morse -- Display morse error message
halt_timeout -- Timeout (ms) to wait until Cortex-M is halted: (Default 2000)
connect_srst -- Configure connect under SRST: (enable|disable)
hard_srst -- Force a pulse on the hard SRST line - disconnects target
tpwr -- Supplies power to the target: (enable|disable)
traceswo -- Start trace capture, Manchester mode: (decode channel ...)
heapinfo -- Set semihosting heapinfo
(gdb) mon tpwr
Target Power: disabled
(gdb) mon traceswo
BFE3DFEC:05:85
(gdb) mon heapinfo
not attached
(gdb)
(gdb) mon halt_timeout
Cortex-M timeout to wait for device haltes: 2000
(gdb) mon morse
(gdb) mon version
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb)
Cortex-M timeout to wait for device haltes: 2000
(gdb) mon morse
(gdb) mon version
Black Magic Probe (Firmware v1.7.1-1-g0e7e276) (Hardware Version 3)
Copyright (C) 2015 Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb)
Comments
Post a Comment