freebsd-src/usr.sbin/bhyve/gdb/Makefile
Mark Johnston a0ca4af945 bhyve: Add arm64 support to the gdb stub
- Add -G to the arm64 getopt handler.
- Add static register definitions and extensible XML definitions.
- Provide definitions for MD bits such as breakpoint encoding and
  length.
- Ensure that bhyve re-injects breakpoint exceptions that it is not
  responsible for.

Reviewed by:	andrew
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D44740
2024-06-04 15:03:17 -04:00

27 lines
637 B
Makefile

PACKAGE= bhyve
FILESDIR= ${SHAREDIR}/bhyve/gdb
FILES+= target.xml
.if ${MACHINE_ARCH} == "amd64"
XMLARCH= i386:x86-64
FILES+= amd64.xml
.elif ${MACHINE_ARCH} == "aarch64"
XMLARCH= aarch64
FILES+= aarch64-core.xml
.endif
.if !make(install*)
target.xml: .PHONY
@echo "<?xml version=\"1.0\"?>" > ${.TARGET}
@echo "<!DOCTYPE target SYSTEM \"gdb-target.dtd\">" >> ${.TARGET}
@echo "<target>" >> ${.TARGET}
@echo " <architecture>${XMLARCH}</architecture>" >> ${.TARGET}
.for file in ${FILES:Ntarget.xml}
@echo " <xi:include href=\"${file}\"/>" >> ${.TARGET}
.endfor
@echo "</target>" >> ${.TARGET}
.endif
.include <bsd.prog.mk>