* sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
info.bfd_arch_info.
This commit is contained in:
parent
de1cb007d9
commit
aca21d9a80
2 changed files with 6 additions and 1 deletions
|
@ -2931,7 +2931,7 @@ sparc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||
return arches->gdbarch;
|
||||
|
||||
/* None found: is the request for a sparc architecture? */
|
||||
if (info.bfd_architecture != bfd_arch_sparc)
|
||||
if (info.bfd_arch_info->arch != bfd_arch_sparc)
|
||||
return NULL; /* No; then it's not for us. */
|
||||
|
||||
/* Yes: create a new gdbarch for the specified machine type. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue