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


Hello,

The result of <tab><tab> is :

| This GDB was configured as "--host=i386-apple-darwin9.5.0 --target=m32c-elf".
| For bug reporting instructions, please see:
| <http://www.gnu.org/software/gdb/bugs/>.
| (gdb) set architecture 
| auto  m16c  m32c  


On 2008/12/04, at 23:22, Pedro Alves wrote:

> 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
>

Masaki Muranaka
Monami Software





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