X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fhppa-tdep.c;h=1ee1b0ba286e29836fa664b8c251448a652537e2;hb=f3f8ece4b1c77c925d1f1566df0bf632790a4d24;hp=b1f71883ec38d68d3c4d986f5be1cac4356a6870;hpb=491144b5e21bbfd41969c175aebb663976f59058;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index b1f71883ec..1ee1b0ba28 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for the HP PA-RISC architecture. - Copyright (C) 1986-2019 Free Software Foundation, Inc. + Copyright (C) 1986-2020 Free Software Foundation, Inc. Contributed by the Center for Software Science at the University of Utah (pa-gdb-bugs@cs.utah.edu). @@ -88,7 +88,7 @@ static const struct objfile_key> hppa_objfile_priv_data; -/* Get at various relevent fields of an instruction word. */ +/* Get at various relevant fields of an instruction word. */ #define MASK_5 0x1f #define MASK_11 0x7ff #define MASK_14 0x3fff @@ -357,7 +357,7 @@ read_unwind_info (struct objfile *objfile) struct hppa_unwind_info *ui; struct hppa_objfile_private *obj_private; - text_offset = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); + text_offset = objfile->section_offsets[SECT_OFF_TEXT (objfile)]; ui = (struct hppa_unwind_info *) obstack_alloc (&objfile->objfile_obstack, sizeof (struct hppa_unwind_info)); @@ -367,7 +367,7 @@ read_unwind_info (struct objfile *objfile) /* For reasons unknown the HP PA64 tools generate multiple unwinder sections in a single executable. So we just iterate over every - section in the BFD looking for unwinder sections intead of trying + section in the BFD looking for unwinder sections instead of trying to do a lookup with bfd_get_section_by_name. First determine the total size of the unwind tables so that we @@ -380,7 +380,7 @@ read_unwind_info (struct objfile *objfile) if (strcmp (unwind_sec->name, "$UNWIND_START$") == 0 || strcmp (unwind_sec->name, ".PARISC.unwind") == 0) { - unwind_size = bfd_section_size (objfile->obfd, unwind_sec); + unwind_size = bfd_section_size (unwind_sec); unwind_entries = unwind_size / UNWIND_ENTRY_SIZE; total_entries += unwind_entries; @@ -393,7 +393,7 @@ read_unwind_info (struct objfile *objfile) if (stub_unwind_sec) { - stub_unwind_size = bfd_section_size (objfile->obfd, stub_unwind_sec); + stub_unwind_size = bfd_section_size (stub_unwind_sec); stub_entries = stub_unwind_size / STUB_UNWIND_ENTRY_SIZE; } else @@ -421,7 +421,7 @@ read_unwind_info (struct objfile *objfile) if (strcmp (unwind_sec->name, "$UNWIND_START$") == 0 || strcmp (unwind_sec->name, ".PARISC.unwind") == 0) { - unwind_size = bfd_section_size (objfile->obfd, unwind_sec); + unwind_size = bfd_section_size (unwind_sec); unwind_entries = unwind_size / UNWIND_ENTRY_SIZE; internalize_unwinds (objfile, &ui->table[index], unwind_sec, @@ -1182,7 +1182,7 @@ hppa64_return_value (struct gdbarch *gdbarch, struct value *function, if (len > 16) { - /* All return values larget than 128 bits must be aggregate + /* All return values larger than 128 bits must be aggregate return values. */ gdb_assert (!hppa64_integral_or_pointer_p (type)); gdb_assert (!hppa64_floating_p (type)); @@ -1296,7 +1296,7 @@ hppa64_frame_align (struct gdbarch *gdbarch, CORE_ADDR addr) return align_up (addr, 16); } -CORE_ADDR +static CORE_ADDR hppa_read_pc (readable_regcache *regcache) { ULONGEST ipsw; @@ -1431,7 +1431,7 @@ is_branch (unsigned long inst) - stw: 0x1a, store a word from a general register. - stwm: 0x1b, store a word from a general register and perform base - register modification (2.0 will still treate it as stw). + register modification (2.0 will still treat it as stw). - std: 0x1c, store a doubleword from a general register (2.0 only). @@ -1592,7 +1592,7 @@ restart: For unoptimized GCC code and for any HP CC code this will never ever examine any user instructions. - For optimzied GCC code we're faced with problems. GCC will schedule + For optimized GCC code we're faced with problems. GCC will schedule its prologue and make prologue instructions available for delay slot filling. The end result is user code gets mixed in with the prologue and a prologue instruction may be in the delay slot of the first branch @@ -1759,7 +1759,7 @@ restart: final_iteration = 1; } - /* We've got a tenative location for the end of the prologue. However + /* We've got a tentative location for the end of the prologue. However because of limitations in the unwind descriptor mechanism we may have went too far into user code looking for the save of a register that does not exist. So, if there registers we expected to be saved @@ -2537,7 +2537,7 @@ hppa_lookup_stub_minimal_symbol (const char *name, { for (minimal_symbol *msym : objfile->msymbols ()) { - if (strcmp (MSYMBOL_LINKAGE_NAME (msym), name) == 0) + if (strcmp (msym->linkage_name (), name) == 0) { struct unwind_table_entry *u; @@ -2869,7 +2869,7 @@ hppa_match_insns (struct gdbarch *gdbarch, CORE_ADDR pc, return 1; } -/* This relaxed version of the insstruction matcher allows us to match +/* This relaxed version of the instruction matcher allows us to match from somewhere inside the pattern, by looking backwards in the instruction scheme. */