Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Kris Warkentin" <kewarken@qnx.com>
To: "Daniel Jacobowitz" <drow@mvista.com>
Cc: <gdb@sources.redhat.com>
Subject: Re: problem with exec-file when targetting remote machine
Date: Wed, 26 Mar 2003 21:56:00 -0000	[thread overview]
Message-ID: <019c01c2f3e2$a0e02dc0$0202040a@catdog> (raw)
In-Reply-To: <20030324203652.GA27939@nevyn.them.org>

> > Can anyone give me an idea as to what gdb might be doing differently
when
> > exec-file has been set?
>
> This means shared library handling is messed up, I bet.  It only
> triggers based on exec_bfd.
>
> Probably the app is being relocated in memory by the shared library
> code, and ending up wrong.

I think I maybe misled you in the beginning with this.  I had been told that
it affected all targets but it seems that it affects sh4 but not x86.  I
don't know about our other platforms.

By brute force and stupidity I determined that in exec.c:exec_file_attach()
there is a call to set_gdbarch_from_file().  This is what causes the screw
up.  It looks like something is getting buggered up in there, possibly
because the architecture is not getting recognized properly from the file
and the defaults aren't working.

Can anyone tell me the possible ramifications of commenting out this line?
I wouldn't normally contemplate this kind of fix but I have only a short
while to get this in a patch.  In my preliminary tests, everything seems to
work but I'm worried that there might be other consequences.

cheers,

Kris


  reply	other threads:[~2003-03-26 21:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 20:07 Kris Warkentin
2003-03-24 20:36 ` Daniel Jacobowitz
2003-03-26 21:56   ` Kris Warkentin [this message]
2003-03-26 22:25     ` Andrew Cagney
2003-03-30  1:12       ` Kris Warkentin

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='019c01c2f3e2$a0e02dc0$0202040a@catdog' \
    --to=kewarken@qnx.com \
    --cc=drow@mvista.com \
    --cc=gdb@sources.redhat.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