This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] set osabi command


On Mon, Aug 19, 2002 at 07:09:18PM -0400, Andrew Cagney wrote:

 > Are you suggesting that a ``set architecture'' command affect the ``set 
 > osabi'' setting, possibly forcing it to some other value?

Yes.

 > Another option is:
 > 
 > 	...
 > 	(gdb) set architecture mips
 > 	OSABI arm_eabi_v1 invalid for mips architecture

Yah, that's probably good.

 > and possibly even:
 > 
 > 	Force OSABI to ``auto''?  (y or n)
 > 
 > even figuring out that there is a clash is hairy.

Actually, figuring out if there is a clash should be easy.  Traverse the
list of registered OSABIs... each one will have an arch/osabi tuple.  If
you don't find one that matches the current arch/osabi setting, then you
have found a clash, and go into recovery mode.  Otherwise, there is no
clash, and you can safely use the current osabi setting with the new arch
setting.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]