And I have run a simple bare metal example !

(gdb) set architecture aarch64
The target architecture is set to "aarch64".
(gdb) target remote :1234
Remote debugging using :1234

Program received signal SIGTRAP, Trace/breakpoint trap.
Python Exception <class 'NameError'>: Installation error:
gdb._execute_unwinders function is missing
0x0000000040000000 in ?? ()
(gdb) add-symbol-file gnumach.elf 0xffff000040200000
add symbol table from file "gnumach.elf" at
.text_addr = 0xffff000040200000
(y or n) y
Reading symbols from gnumach.elf...
(gdb) hbreak Panic
Note: breakpoint 1 also set at pc 0x3bb0.
Note: breakpoint 1 also set at pc 0xffff000040203bb0.
Hardware assisted breakpoint 4 at 0x3bb0: Panic. (2 locations)
(gdb) hbreak halt_all_cpus
Note: breakpoint 2 also set at pc 0x844.
Note: breakpoint 2 also set at pc 0xffff000040200844.
Hardware assisted breakpoint 5 at 0x844: halt_all_cpus. (2 locations)
(gdb) hbreak psci_system_reset
Note: breakpoint 3 also set at pc 0x23cc.
Note: breakpoint 3 also set at pc 0xffff0000402023cc.
Hardware assisted breakpoint 6 at 0x23cc: psci_system_reset. (2 locations)
(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
Python Exception <class 'NameError'>: Installation error:
gdb._execute_unwinders function is missing
0x0000000000400144 in ?? ()
(gdb) printf "%s\n", (char *)0xffff0000402b4bc0
GNU Mach 1.8
Kernel command line: gnumach -H
Booting in EL1
vm_page: page table size: 262144 entries (24576k)
vm_page: DMA: pages: 262144 (1024M), free: 220847 (862M)
vm_page: DMA: min:13107 low:15728 high:26214
Model name: linux dummy-virt
module 0: example --host-priv-port=${host-port}
--device-master-port=${device-port} $(task-create) $(task-resume)
1 bootstrap modules
task loaded: example --host-priv-port=1 --device-master-port=2

start example: Hello from Mach bare-metal example!

(gdb)

Reply via email to