public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Mahesh Bodapati <maheshbodapati212@gmail.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb@sourceware.org
Subject: Re: GDB - hardware server
Date: Mon, 3 May 2021 11:49:23 +0530	[thread overview]
Message-ID: <CACSfpVaj=zkvjE-WORfDLtrd0vqVZ=mQZKufep9G9vy5TL=48A@mail.gmail.com> (raw)
In-Reply-To: <0b855daa-7659-7270-ffd3-0b86498008f4@polymtl.ca>

Thank You.
It looks like I didn't frame my problem correctly.
server is sending the target descriptions but I have the problem when there
is a mismatch between the "expected number of bytes" and "got number of
bytes"
for instance,
gdb has been built for 32 bit abi by default then
case 1:
if server send 32 bit target description then we didn't see any error

case 2 :
if server send 64 bit target descriptions then it results an error saying
mismatch between  "expected number of bytes" and "got number of bytes"

and my question is "how can we support 2nd case ? "
can we switch the ABI when we receive 64 bit target description from server
? if yes, how can we do that?
or do we need to build a different gdb for 64 bit ABI?

Note : We can read the ABI from executable but here we are not giving
executable file to the gdb.

Thanks,
Mahesh B



On Fri, Apr 30, 2021 at 11:36 PM Simon Marchi <simon.marchi@polymtl.ca>
wrote:

> On 2021-04-29 1:59 a.m., Mahesh Bodapati via Gdb wrote:
> > Hi,
> > we have 3 different target descriptions for the same target.
> >
> > gdb has been built for all the 3 configurations but the 1st target
> > configuration is the default description. we are able to set
> configurations
> > from executable files but how to set the target descriptions from the
> > contents of the server.
> >
> > tar remote host:port ,can I set the target description based on the
> > contents[like arch,register size..]  from the hardware server.I can only
> > see the comparison of what gdb is expecting and what gdb is getting from
> > the server. is there a way to change the gdb target descriptions from the
> > contents of server ?
>
> I'm not sure I understand the problem correctly, but the server can send
> the XML target description to GDB.
>
> Simon
>

  reply	other threads:[~2021-05-03  6:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29  5:59 Mahesh Bodapati
2021-04-30 18:06 ` Simon Marchi
2021-05-03  6:19   ` Mahesh Bodapati [this message]
2021-05-03 14:35     ` Simon Marchi

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='CACSfpVaj=zkvjE-WORfDLtrd0vqVZ=mQZKufep9G9vy5TL=48A@mail.gmail.com' \
    --to=maheshbodapati212@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).