X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fsolib-ia64-hpux.c;h=98fad072e2e81476f6e8efb6d0013ba55b80bd20;hb=49b64de6e430e38adcc791398f81a9da0aa95a03;hp=8a45d75f9663bedc095fc85cfa4ff1a4a45ce08b;hpb=0b30217134add051e159a192066a1e568ebd837f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/solib-ia64-hpux.c b/gdb/solib-ia64-hpux.c index 8a45d75f96..98fad072e2 100644 --- a/gdb/solib-ia64-hpux.c +++ b/gdb/solib-ia64-hpux.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2010, 2012 Free Software Foundation, Inc. +/* Copyright (C) 2010-2013 Free Software Foundation, Inc. This file is part of GDB. @@ -164,7 +164,7 @@ ia64_hpux_at_dld_breakpoint_1_p (ptid_t ptid) int ia64_hpux_at_dld_breakpoint_p (ptid_t ptid) { - struct gdb_exception e; + volatile struct gdb_exception e; ptid_t saved_ptid = inferior_ptid; int result = 0; @@ -189,7 +189,7 @@ ia64_hpux_handle_load_event (struct regcache *regcache) CORE_ADDR module_desc_addr; ULONGEST module_desc_size; CORE_ADDR so_path_addr; - char so_path[MAXPATHLEN]; + char so_path[PATH_MAX]; struct load_module_desc module_desc; struct so_list *new_so; @@ -210,7 +210,7 @@ ia64_hpux_handle_load_event (struct regcache *regcache) sizeof (struct load_module_desc), pulongest (module_desc_size)); - read_memory_string (so_path_addr, so_path, MAXPATHLEN); + read_memory_string (so_path_addr, so_path, PATH_MAX); read_memory (module_desc_addr, (gdb_byte *) &module_desc, sizeof (module_desc)); @@ -278,7 +278,7 @@ ia64_hpux_handle_dld_breakpoint_1 (ptid_t ptid) void ia64_hpux_handle_dld_breakpoint (ptid_t ptid) { - struct gdb_exception e; + volatile struct gdb_exception e; ptid_t saved_ptid = inferior_ptid; inferior_ptid = ptid; @@ -396,7 +396,7 @@ ia64_hpux_clear_solib (void) static CORE_ADDR ia64_hpux_get_load_info_addr (void) { - struct type *data_ptr_type = builtin_type (target_gdbarch)->builtin_data_ptr; + struct type *data_ptr_type = builtin_type (target_gdbarch ())->builtin_data_ptr; CORE_ADDR addr; int status; @@ -459,7 +459,8 @@ ia64_hpux_read_dynamic_info (struct gdbarch *gdbarch, bfd *abfd, { CORE_ADDR load_map_addr = bfd_h_get_64 (abfd, &dynp->d_un.d_ptr); - if (target_read_memory (load_map_addr, (char *) &info->load_map, + if (target_read_memory (load_map_addr, + (gdb_byte *) &info->load_map, sizeof (info->load_map)) != 0) error (_("failed to read load map at %s"), paddress (gdbarch, load_map_addr));