casmac <1482995...@qq.com> writes:
> Hi all, > I am working on a TI DSP architecture extension for QEMU. Now, > we are adding GDB debugging features. > We have done the following, but not sure we are on the right > track : > - add a xml description file in gdb-xml, without > understanding the purpose of the file, why some architectures don't > provide such xml file? XML descriptions are an extension to the GDB protocol which avoids having to have knowledge baked into GDB itself. The older well supported architectures don't need to send them for their base config as GDB already knows what they should have. However most extensions are reported as XML. You may well need to have logic in your target code which decides which XML variant to send. > - add ***_cpu_gdb_read_register(), ***_cpu_gdb_write_register(); > - added dsp_cpu_get_phys_page_attrs_debug(), but uncertain > about what to return > dsp_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr > addr, MemTxAttrs *attrs) > { > return addr & TARGET_PAGE_MASK; > } > > We run QEMU with the these arguments > qemu-system-dsp ... -kernel filename.out -S -s > > It turns out that gdb reads incorrect register values, > and complains : "warning: Target-supplied registers are not supported > by the current architecture". > <feature name="org.gnu.gdb.tic3x.core"> Does this match something in gdb? -- Alex Bennée