Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Eager <eager@eagercon.com>
To: Michael Eager <eager@eagercon.com>,  gdb@sources.redhat.com
Subject: Re: Identifying PowerPC architecture
Date: Thu, 11 Jan 2007 21:04:00 -0000	[thread overview]
Message-ID: <45A6A63D.9090007@eagercon.com> (raw)
In-Reply-To: <20070111205144.GA29057@nevyn.them.org>

Daniel Jacobowitz wrote:
> On Thu, Jan 11, 2007 at 12:46:55PM -0800, Michael Eager wrote:
>> I'm looking at how gdb decides which arch/mach it is
>> working with for PowerPC.  It looks like it always picks up
>> rs6000:6000 as processor type.
>>
>> When rs6000_gdbarch_init(struct gdbarch_info info,
>> struct gdbarch_list *arches) is called, arches is NULL.
>> As a result, it creates up a default arch/mach based on
>> info.bfd_arch_info.
> 
> ->arches is a list of previously initialized gdbarches.  They're
> initialized by other calls to rs6000_gdbarch_init.

I don't see where that happens, but I'll take your word.

> gdbarch_list_lookup_by_info will only return something with the
> same bfd_arch_info as it is passed.
> 
> So, if you're not getting the right arch, you're probably not
> starting with the right bfd_arch_info.  I don't know if PowerPC
> tags binaries with the processor; I don't remember any such markings
> for PowerPC.

Nope, there's no model info for PowerPC in the ELF file.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


  reply	other threads:[~2007-01-11 21:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11 20:47 Michael Eager
2007-01-11 20:51 ` Daniel Jacobowitz
2007-01-11 21:04   ` Michael Eager [this message]
2007-01-11 21:22     ` Daniel Jacobowitz
2007-01-11 21:31 ` Mark Kettenis

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=45A6A63D.9090007@eagercon.com \
    --to=eager@eagercon.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