This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: Can't set architecture to m32c on m32c-elf-gdb.


On Thursday 04 December 2008 13:12:24, Daniel Jacobowitz wrote:
> On Thu, Dec 04, 2008 at 03:47:05PM +0900, Masaki Muranaka wrote:
> > > See bfd_default_scan for more.  I guess it's because the architecture
> > > is named "m32c", but the default flag is set for m16c.  If that's so,
> > > "set architecture m32c:m32c" should work - does it?
> > 
> > | For bug reporting instructions, please see:
> > | <http://www.gnu.org/software/gdb/bugs/>.
> > | (gdb) set architecture m32c:m32c
> > | Undefined item: "m32c:m32c".
> > | (gdb) set architecture m32c:m16c
> > | Undefined item: "m32c:m16c".
> > 
> > Should I put any commands before 'set architecture'?
> 
> Strange.  I guess I don't understand how this works, then.  I thought
> this would do it:
> 
>   /* Given that printable_name contains no colon, attempt to match:
>      ARCH_NAME [ ":" ] PRINTABLE_NAME?  */
> 

The "Undefined item:" error comes from the fact that "set architecture" is
an "enum" command, and gdb is complaining that those entries aren't listed
as possible enumerations.

All settings gdb will accept are shown with 'set architecture <tab><tab>'.
What options does that show?

-- 
Pedro Alves


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