mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
configure, tests/tcg: simplify GDB conditionals
Unify HAVE_GDB_BIN (currently in config-host.mak) and HOST_GDB_SUPPORTS_ARCH into a single GDB variable in config-target.mak. Reviewed-by: Emmanouil Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
730be6138e
commit
a47dd5c516
6 changed files with 33 additions and 46 deletions
|
@ -14,13 +14,12 @@ VPATH+=$(MULTIARCH_SYSTEM_SRC)
|
|||
MULTIARCH_TEST_SRCS=$(wildcard $(MULTIARCH_SYSTEM_SRC)/*.c)
|
||||
MULTIARCH_TESTS = $(patsubst $(MULTIARCH_SYSTEM_SRC)/%.c, %, $(MULTIARCH_TEST_SRCS))
|
||||
|
||||
ifneq ($(HAVE_GDB_BIN),)
|
||||
ifeq ($(HOST_GDB_SUPPORTS_ARCH),y)
|
||||
ifneq ($(GDB),)
|
||||
GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py
|
||||
|
||||
run-gdbstub-memory: memory
|
||||
$(call run-test, $@, $(GDB_SCRIPT) \
|
||||
--gdb $(HAVE_GDB_BIN) \
|
||||
--gdb $(GDB) \
|
||||
--qemu $(QEMU) \
|
||||
--output $<.gdb.out \
|
||||
--qargs \
|
||||
|
@ -29,7 +28,7 @@ run-gdbstub-memory: memory
|
|||
softmmu gdbstub support)
|
||||
run-gdbstub-interrupt: interrupt
|
||||
$(call run-test, $@, $(GDB_SCRIPT) \
|
||||
--gdb $(HAVE_GDB_BIN) \
|
||||
--gdb $(GDB) \
|
||||
--qemu $(QEMU) \
|
||||
--output $<.gdb.out \
|
||||
--qargs \
|
||||
|
@ -38,7 +37,7 @@ run-gdbstub-interrupt: interrupt
|
|||
softmmu gdbstub support)
|
||||
run-gdbstub-untimely-packet: hello
|
||||
$(call run-test, $@, $(GDB_SCRIPT) \
|
||||
--gdb $(HAVE_GDB_BIN) \
|
||||
--gdb $(GDB) \
|
||||
--gdb-args "-ex 'set debug remote 1'" \
|
||||
--output untimely-packet.gdb.out \
|
||||
--stderr untimely-packet.gdb.err \
|
||||
|
@ -51,11 +50,7 @@ run-gdbstub-untimely-packet: hello
|
|||
"GREP", file untimely-packet.gdb.err)
|
||||
else
|
||||
run-gdbstub-%:
|
||||
$(call skip-test, "gdbstub test $*", "no guest arch support")
|
||||
endif
|
||||
else
|
||||
run-gdbstub-%:
|
||||
$(call skip-test, "gdbstub test $*", "need working gdb")
|
||||
$(call skip-test, "gdbstub test $*", "need working gdb with $(patsubst -%,,$(TARGET_NAME)) support")
|
||||
endif
|
||||
|
||||
MULTIARCH_RUNS += run-gdbstub-memory run-gdbstub-interrupt run-gdbstub-untimely-packet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue