diff --git a/thermosphere/Makefile b/thermosphere/Makefile index 0e7b0c108..6e8386692 100644 --- a/thermosphere/Makefile +++ b/thermosphere/Makefile @@ -148,7 +148,7 @@ export QEMU := qemu-system-aarch64 QEMUFLAGS := -nographic -machine virt,virtualization=on,accel=tcg,gic-version=2 -cpu cortex-a57 -smp 4 -m 1024\ -kernel thermosphere.elf -d unimp,guest_errors -semihosting-config enable,target=native\ - -chardev socket,id=uart,port=4567,host=0.0.0.0,server,nowait -chardev stdio,id=test -serial chardev:uart\ + -chardev socket,id=uart,port=2222,host=0.0.0.0,server,nowait -chardev stdio,id=test -serial chardev:uart\ -monitor tcp:localhost:3333,server,nowait qemu: all diff --git a/thermosphere/src/gdb/xfer.c b/thermosphere/src/gdb/xfer.c index 53a725450..9f6accf84 100644 --- a/thermosphere/src/gdb/xfer.c +++ b/thermosphere/src/gdb/xfer.c @@ -24,11 +24,12 @@ struct { static void GDB_GenerateTargetXml(char *buf) { int pos; - const char *hdr = ""; + const char *hdr = ""; const char *cpuDescBegin = ""; const char *cpuDescEnd = - ""; + "" + "" + ""; const char *fpuDescBegin = "" @@ -46,7 +47,7 @@ static void GDB_GenerateTargetXml(char *buf) "" ""; - const char *fpuDescEnd = "\r\n \r\n"; + const char *fpuDescEnd = "\r\n\r\n"; const char *footer = ""; strcpy(buf, hdr); @@ -67,6 +68,8 @@ static void GDB_GenerateTargetXml(char *buf) strcat(buf, fpuDescEnd); strcat(buf, footer); + + DEBUG("target.xml length is 0x%x\n", strlen(buf)); } GDB_DECLARE_XFER_HANDLER(Features)