public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Default architecture according --target=...configury?
@ 1999-08-18  2:06 Andrew Cagney
  1999-08-18 10:29 ` Ian Lance Taylor
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cagney @ 1999-08-18  2:06 UTC (permalink / raw)
  To: binutils; +Cc: gdb

Hello,

Is it possible to reliably determine the default architecture (struct
bfd_arch_info) as selected by the configuration option --target=....
(even when --enable-targets was specified)?

I suspect not but would like to double check.

My guess at the change required is for archures.c:

  static const bfd_arch_info_type * const bfd_archures_list[] =
  {
  #ifdef SELECT_ARCHITECTURES
    SELECT_ARCHITECTURES,
  #else
    &bfd_a29k_arch,

to be modified to be more like targets.c vs:

  const bfd_target * const bfd_target_vector[] = {

  #ifdef SELECT_VECS

	  SELECT_VECS,

  #else /* not SELECT_VECS */

  #ifdef DEFAULT_VECTOR
	  &DEFAULT_VECTOR,
  #endif

(Add DEFAULT_ARCHITECTURE_VECTOR say).

The function bfd_lookup_arch() could then be modified to detect a user
asking for a default architecture (arch == 0 (bfd_arch_unknown)?).

Comments?

	Andrew

PS: Why?  I'd like GDB to make a better guess at a default
architecture.  bfd_default_arch_struct just isn't very interesting.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-08-18 18:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-18  2:06 Default architecture according --target=...configury? Andrew Cagney
1999-08-18 10:29 ` Ian Lance Taylor
1999-08-18 17:14   ` Andrew Cagney
1999-08-18 17:27     ` Stan Shebs
1999-08-18 18:15       ` Andrew Cagney
1999-08-18 18:33         ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).