* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
architecture to infer the wordsize. Previous architecture may not be a PowerPC.
This commit is contained in:
parent
373688ac81
commit
e712c1cf79
2 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
2001-09-29 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
|
||||
architecture to infer the wordsize. Previous architecture may not
|
||||
be a PowerPC.
|
||||
|
||||
2001-09-27 J. Brobecker <brobecker@gnat.com>
|
||||
|
||||
* infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
|
||||
|
|
|
@ -2163,8 +2163,8 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||
|
||||
osabi = get_elfosabi (info.abfd);
|
||||
|
||||
/* Check word size. If INFO is from a binary file, infer it from that,
|
||||
else use the previously-inferred size. */
|
||||
/* Check word size. If INFO is from a binary file, infer it from
|
||||
that, else choose a likely default. */
|
||||
if (from_xcoff_exec)
|
||||
{
|
||||
if (xcoff_data (info.abfd)->xcoff64)
|
||||
|
@ -2181,10 +2181,6 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||
}
|
||||
else
|
||||
{
|
||||
tdep = TDEP;
|
||||
if (tdep)
|
||||
wordsize = tdep->wordsize;
|
||||
else
|
||||
wordsize = 4;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue