From Jimi X <jimix@watson.ibm.com>:
* rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from bfd info.
This commit is contained in:
parent
5d57ee30b3
commit
27b1578512
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-04-12 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
From Jimi X <jimix@watson.ibm.com>:
|
||||
* rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
|
||||
bfd info.
|
||||
|
||||
2002-04-12 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
From Jimi X <jimix@watson.ibm.com>:
|
||||
|
|
|
@ -2499,7 +2499,11 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||
}
|
||||
else
|
||||
{
|
||||
wordsize = 4;
|
||||
if (info.bfd_arch_info != NULL && info.bfd_arch_info->bits_per_word != 0)
|
||||
wordsize = info.bfd_arch_info->bits_per_word /
|
||||
info.bfd_arch_info->bits_per_byte;
|
||||
else
|
||||
wordsize = 4;
|
||||
}
|
||||
|
||||
/* Find a candidate among extant architectures. */
|
||||
|
|
Loading…
Add table
Reference in a new issue