Skip to content

Instantly share code, notes, and snippets.

@doug65536
Last active June 7, 2021 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doug65536/23a5b9acfd83035ce59937301e1ea9a0 to your computer and use it in GitHub Desktop.
Save doug65536/23a5b9acfd83035ce59937301e1ea9a0 to your computer and use it in GitHub Desktop.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from emb-aarch64...
(gdb) target remote :1234
Remote debugging using :1234
target description (line 1): Starting:
<?xml version="1.0"?><!DOCTYPE target SYSTEM "gdb-target.dtd"><target><architecture>arm</architecture><xi:include href="arm-core.xml"/><xi:include href="arm-neon.xml"/><xi:include href="system-registers.xml"/></target>
target description (line 1): Entering element <target>
target description (line 1): Entering element <architecture>
target description (line 1): Leaving element <architecture>
target description (line 1): Entering element <http://www.w3.org/2001/XInclude!include>
target description (line 1): Parsing attribute href="arm-core.xml"
target description (line 1): Processing XInclude of "arm-core.xml"
target description (line 1): Starting:
<?xml version="1.0"?>
<!-- Copyright (C) 2008 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. -->
<!DOCTYPE feature SYSTEM "gdb-target.dtd">
<feature name="org.gnu.gdb.arm.core">
<reg name="r0" bitsize="32"/>
<reg name="r1" bitsize="32"/>
<reg name="r2" bitsize="32"/>
<reg name="r3" bitsize="32"/>
<reg name="r4" bitsize="32"/>
<reg name="r5" bitsize="32"/>
<reg name="r6" bitsize="32"/>
<reg name="r7" bitsize="32"/>
<reg name="r8" bitsize="32"/>
<reg name="r9" bitsize="32"/>
<reg name="r10" bitsize="32"/>
<reg name="r11" bitsize="32"/>
<reg name="r12" bitsize="32"/>
<reg name="sp" bitsize="32" type="data_ptr"/>
<reg name="lr" bitsize="32"/>
<reg name="pc" bitsize="32" type="code_ptr"/>
<!-- The CPSR is register 25, rather than register 16, because
the FPA registers historically were placed between the PC
and the CPSR in the "g" packet. -->
<reg name="cpsr" bitsize="32" regnum="25"/>
</feature>
/usr/local/bin/qemu-system-aarch64 -s -S -trace 'gdb*' -bios emb-aarch64.rom -M virt -machine gic-version=3 -machine virtualization=true -machine secure=true -m 8G -vga none -device secondary-vga -device secondary-vga -device secondary-vga -device secondary-vga -device secondary-vga -device secondary-vga -device secondary-vga -serial stdio -smp 4 -no-reboot -no-shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment