diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-09-29 21:32:01 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-09-29 21:32:01 +0000 |
commit | e712c1cf7924dd0944f2f3c55c172a0a55ef7618 (patch) | |
tree | 61c1cae18cbb16d2cd99bc2fe5a329e54bd02bff /gdb | |
parent | 373688ac8121ea89db0b80d0c12a706c4955cf9e (diff) | |
download | gdb-e712c1cf7924dd0944f2f3c55c172a0a55ef7618.zip gdb-e712c1cf7924dd0944f2f3c55c172a0a55ef7618.tar.gz gdb-e712c1cf7924dd0944f2f3c55c172a0a55ef7618.tar.bz2 |
* rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
architecture to infer the wordsize. Previous architecture may not
be a PowerPC.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/rs6000-tdep.c | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2c74a85..7061859 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 6f5ade6..82c18c1 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -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,11 +2181,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) } else { - tdep = TDEP; - if (tdep) - wordsize = tdep->wordsize; - else - wordsize = 4; + wordsize = 4; } /* Find a candidate among extant architectures. */ |