Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: gdb@sourceware.org
Subject: What about check the bfd_arch_info before load the solib?
Date: Tue, 30 Jun 2009 13:07:00 -0000	[thread overview]
Message-ID: <daef60380906300607g2ab2c140g855cdeae69a08f6e@mail.gmail.com> (raw)

Hi guys,

In cross-compile remote debug environment, the gdb will load the solib
of local host if user doesn't set sysroot or something.
Load the wrong lib will make gdb get error.

I think maybe we can add some check code to check if the bfd_arch_info
of this solib is same with the current_gdbarch before load this solib
in.
If not same, output a warning to let user set gdb to load right lib.

What do you think about it?

Thanks,
Hui


             reply	other threads:[~2009-06-30 13:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30 13:07 Hui Zhu [this message]
2009-07-01  4:11 ` Michael Snyder
2009-07-01  6:55   ` Hui Zhu

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=daef60380906300607g2ab2c140g855cdeae69a08f6e@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=gdb@sourceware.org \
    /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