diff options
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 5450056..a4bc0bd 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -1669,7 +1669,7 @@ arm_analyze_load_stack_chk_guard(CORE_ADDR pc, struct gdbarch *gdbarch, ldr Rn, .Label .... - .Lable: + .Label: .word __stack_chk_guard Since ldr/str is a very popular instruction, we can't use them as @@ -2504,15 +2504,15 @@ static const registry<bfd>::key<arm_exidx_data> arm_exidx_data_key; static struct obj_section * arm_obj_section_from_vma (struct objfile *objfile, bfd_vma vma) { - for (obj_section *osect : objfile->sections ()) - if (bfd_section_flags (osect->the_bfd_section) & SEC_ALLOC) + for (obj_section &osect : objfile->sections ()) + if (bfd_section_flags (osect.the_bfd_section) & SEC_ALLOC) { bfd_vma start, size; - start = bfd_section_vma (osect->the_bfd_section); - size = bfd_section_size (osect->the_bfd_section); + start = bfd_section_vma (osect.the_bfd_section); + size = bfd_section_size (osect.the_bfd_section); if (start <= vma && vma < start + size) - return osect; + return &osect; } return NULL; @@ -11015,9 +11015,7 @@ static void arm_analyze_prologue_test (); } #endif -void _initialize_arm_tdep (); -void -_initialize_arm_tdep () +INIT_GDB_FILE (arm_tdep) { long length; int i, j; |