All of lore.kernel.org
 help / color / mirror / Atom feed
* GDB get wrong debug infos on TI DSP architecture extension
@ 2020-05-27  6:48 casmac
  2020-05-27  7:19 ` Philippe Mathieu-Daudé
  2020-05-27  9:11 ` GDB get wrong debug infos on TI DSP architecture extension Alex Bennée
  0 siblings, 2 replies; 9+ messages in thread
From: casmac @ 2020-05-27  6:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2874 bytes --]

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?
   - 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".
   
   Something is missing here, or we do it in a wrong way.  Any advise would be helpful to us.
   
   Thanks.
   
xiaolei

   ----- ti_dsp.xml  -----
   
&nbsp;&nbsp; <?xml version="1.0"?&gt;
<!DOCTYPE feature SYSTEM "gdb-target.dtd"&gt;
<feature name="org.gnu.gdb.tic3x.core"&gt;
&nbsp;&nbsp;&nbsp; <reg name="r0"&nbsp; bitsize="32"&gt;</reg&gt;
&nbsp;<reg name="r1"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="r2"&nbsp; bitsize="32"&gt;</reg&gt;
&nbsp;<reg name="r3"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="r4"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="r5"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="r6"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="r7"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="ar0" bitsize="32"/&gt;
&nbsp;<reg name="ar1" bitsize="32"/&gt;
&nbsp;<reg name="ar2" bitsize="32"/&gt;
&nbsp;<reg name="ar3" bitsize="32"/&gt;
&nbsp;<reg name="ar4" bitsize="32"/&gt;
&nbsp;<reg name="ar5" bitsize="32"/&gt;
&nbsp;<reg name="ar6" bitsize="32"/&gt;
&nbsp;<reg name="ar7" bitsize="32"/&gt;
&nbsp;<reg name="dp"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="ir0" bitsize="32"/&gt;
&nbsp;<reg name="ir1" bitsize="32"/&gt;
&nbsp;<reg name="bk"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="sp"&nbsp; bitsize="32" type="data_ptr"/&gt;
&nbsp;<reg name="st"&nbsp; bitsize="32"&gt;</reg&gt;
&nbsp;<reg name="ie"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="if"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="iof" bitsize="32"/&gt;
&nbsp;<reg name="rs"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="re"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="rc"&nbsp; bitsize="32"/&gt;
&nbsp;<reg name="pc"&nbsp; bitsize="32" type="data_ptr"/&gt;
&nbsp;<reg name="clk"&nbsp; bitsize="32"/&gt;
</feature&gt;
&nbsp;&nbsp;

[-- Attachment #2: Type: text/html, Size: 3200 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-05-29 15:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27  6:48 GDB get wrong debug infos on TI DSP architecture extension casmac
2020-05-27  7:19 ` Philippe Mathieu-Daudé
2020-05-27 21:41   ` Taylor Simpson
2020-05-29  7:27     ` casmac
2020-05-29 15:19       ` Taylor Simpson
2020-05-28  1:16   ` casmac
2020-05-28  8:34     ` Alex Bennée
2020-05-28  9:49       ` =?gb18030?B?u9i4tKO6IEdEQiBnZXQgd3JvbmcgZGVidWcgaW5mb3Mgb24gVEkgRFNQIGFyY2hpdGVjdHVyZSBleHRlbnNpb24=?= =?gb18030?B?eGlhb2xlaQ==?=
2020-05-27  9:11 ` GDB get wrong debug infos on TI DSP architecture extension Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.