aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-02-02 22:15:01 +0000
committerMark Kettenis <kettenis@gnu.org>2006-02-02 22:15:01 +0000
commite4cd0d6a2669159e399359ff2cb59dd93668f056 (patch)
tree6954ecef430a59241e88db40ab413e0f99f95f1e /gdb/solib-svr4.h
parentde205c03b963123f4f7fecd0520861b161b3795e (diff)
downloadgdb-e4cd0d6a2669159e399359ff2cb59dd93668f056.zip
gdb-e4cd0d6a2669159e399359ff2cb59dd93668f056.tar.gz
gdb-e4cd0d6a2669159e399359ff2cb59dd93668f056.tar.bz2
* solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
r_map_size members. Add r_version_offset, r_version_size and r_ldsomap_offset members. * solib-svr4.c (solib_svr4_r_map): Renamed from fetch_link_map_member. Simplify using read_memory_typed_address. (solib_svr4_r_ldsomap): New function. (open_symbol_file_object): Use solib_svr_r_map. (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic linker by using solib_svr4_r_ldsomap. (svr4_ilp32_fetch_link_map_offsets) (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct link_map_offsets'. * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for changes to `struct link_map_offsets'. * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets) (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to `struct link_map_offsets'.
Diffstat (limited to 'gdb/solib-svr4.h')
-rw-r--r--gdb/solib-svr4.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/solib-svr4.h b/gdb/solib-svr4.h
index 082b3e2..ae2740e 100644
--- a/gdb/solib-svr4.h
+++ b/gdb/solib-svr4.h
@@ -1,6 +1,6 @@
/* Handle shared libraries for GDB, the GNU Debugger.
- Copyright (C) 2000, 2004
+ Copyright (C) 2000, 2004, 2006
Free Software Foundation, Inc.
This file is part of GDB.
@@ -31,15 +31,14 @@ struct objfile;
struct link_map_offsets
{
- /* Size of struct r_debug (or equivalent), or at least enough of it to
- be able to obtain the r_map field. */
- int r_debug_size;
+ /* Offset and size of r_debug.r_version. */
+ int r_version_offset, r_version_size;
- /* Offset to the r_map field in struct r_debug. */
+ /* Offset of r_debug.r_map. */
int r_map_offset;
- /* Size of the r_map field in struct r_debug. */
- int r_map_size;
+ /* Offset of r_debug.r_ldsomap. */
+ int r_ldsomap_offset;
/* Size of struct link_map (or equivalent), or at least enough of it
to be able to obtain the fields below. */