This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: found gdbarch solib issue
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: "Daniel Jacobowitz" <drow at mvista dot com>
- Cc: "Gdb at Sources dot Redhat dot Com" <gdb at sources dot redhat dot com>, "Mark Kettenis" <kettenis at chello dot nl>
- Date: Mon, 16 Jun 2003 20:50:39 -0400
- Subject: Re: found gdbarch solib issue
- References: <074f01c33447$d404c2b0$0202040a@catdog> <20030616215630.GB12729@nevyn.them.org>
> Shouldn't it be returning arch_info anyway? Why isn't it? Is it
> returning handler->arch_info?
That's what was puzzling me. I was looking through the linked list of 10
million mips arches and thinking what the odds were of compatible ever
equalling the handler arch_info. Seems to me that the return value might be
useful in some circumstances but in this case it should be a boolean, "am I
compatible or not?"
> > - compatible = arch_info->compatible (arch_info,
handler->arch_info);
> > - if (compatible == handler->arch_info)
> > + if(arch_info->compatible (arch_info, handler->arch_info))
cheers,
Kris