From: Daniel Jacobowitz <drow@mvista.com>
To: Kris Warkentin <kewarken@qnx.com>
Cc: "Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>,
Mark Kettenis <kettenis@chello.nl>
Subject: Re: found gdbarch solib issue
Date: Mon, 16 Jun 2003 21:57:00 -0000 [thread overview]
Message-ID: <20030616215630.GB12729@nevyn.them.org> (raw)
In-Reply-To: <074f01c33447$d404c2b0$0202040a@catdog>
On Mon, Jun 16, 2003 at 04:42:39PM -0400, Kris Warkentin wrote:
> So I was tracing around trying to figure out why my
> sysv_fetch_link_map_offsets function was getting lost when architectures
> were changing. I noticed that <arch>_init_abi was being called which then
> calls my <arch>nto_init_abi through gdbarch_init_osabi().
>
> Problem was, at some point we're changing arches for some reason, whether
> setting it from a file or whatever, and the generic init_abi is called
> again. This time, however, my handler for nto_init_abi isn't called.
>
> The change that makes this problem go away is below but I'm not entirely
> confident that it's the right thing to do. If you look at the 'compatible'
> function, ie. mips_compatible, all it's doing is comparing arches. The
> original test below is comparing pointers which I think might not be right.
> Either way, if I do this change, all my worries fly away.
>
> Any reason anyone can think of why this might be bad?
Shouldn't it be returning arch_info anyway? Why isn't it? Is it
returning handler->arch_info?
> - compatible = arch_info->compatible (arch_info, handler->arch_info);
> - if (compatible == handler->arch_info)
> + if(arch_info->compatible (arch_info, handler->arch_info))
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-06-16 21:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-16 20:42 Kris Warkentin
2003-06-16 21:57 ` Daniel Jacobowitz [this message]
2003-06-17 0:40 ` 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=20030616215630.GB12729@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=kettenis@chello.nl \
--cc=kewarken@qnx.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