From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: "Joseph S. Myers" <joseph@codesourcery.com>,
Yao Qi <yao@codesourcery.com>
Subject: Re: [RFA 5/8] New port: TI C6x: gdb port
Date: Thu, 04 Aug 2011 17:45:00 -0000 [thread overview]
Message-ID: <201108041845.35876.pedro@codesourcery.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1108041510140.26774@digraph.polyomino.org.uk>
On Thursday 04 August 2011 16:11:35, Joseph S. Myers wrote:
> On Thu, 4 Aug 2011, Pedro Alves wrote:
>
> > Seems like there are a lot of non-core registers here. Now that
> > the gdbserver patch has been updated to send in standard tic6x xml
> > register description features, all registers the target includes in the
> > description that are not part of the defined features should not need
> > to be hardcoded in gdb, since the xml description itself will describe
> > their sizes and names. See arm-tdep.c:arm_register_name for example.
> > More comments on this further down.
>
> Won't GDB need a list of how the register names correspond to DWARF
> register numbers (which are allocated for all these registers) somewhere?
AFAICS, gdbserver only exposes A0-A15, CSR, PC, A16-A31
B16-B31, TSR, ILC, RILC, so I assumed all other registers would be
system dependent non general purpose control registers, but it's
probably then that they are only not "user space" registers, and will
be acessible by bare metal probes/stubs? Linux programs won't access
those, right? I now browsed the ABI's dwarf section and I got that
impression.
The default is to assume 1-1 mapping between gdb numbers and dwarf
numbers, so it's easier to ensure the numbers are the same.
I guess that clears up my comment to the register numbers.
As for names, types and sizes, if the target doesn't include those
registers in the description, then it's as if they don't exist. A
description that reports those extra registers should include those
properties (name, bitsize, type, regnum) per register, so gdb would still
get them from the description. I can't tell if it would make sense
to add a new feature or features for those extra registers though.
--
Pedro Alves
next prev parent reply other threads:[~2011-08-04 17:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 2:10 Yao Qi
2011-07-25 11:32 ` Yao Qi
2011-08-03 1:15 ` ping: " Yao Qi
2011-08-04 12:34 ` Pedro Alves
2011-08-04 15:11 ` Joseph S. Myers
2011-08-04 17:45 ` Pedro Alves [this message]
2011-08-04 19:48 ` Joseph S. Myers
2011-08-05 2:13 ` Yao Qi
2011-08-06 2:26 ` Yao Qi
2011-08-08 13:04 ` Pedro Alves
2011-08-09 2:52 ` Yao Qi
2011-08-09 14:01 ` Pedro Alves
2011-08-09 15:16 ` Yao Qi
2011-08-09 15:42 ` Pedro Alves
2011-08-10 2:37 ` Yao Qi
2011-08-10 13:44 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201108041845.35876.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=joseph@codesourcery.com \
--cc=yao@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox