diff options
author | Mark Kettenis <kettenis@gnu.org> | 2006-02-02 22:15:01 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2006-02-02 22:15:01 +0000 |
commit | 4db8c4a926e43095e8807b2244f6e4331e6ec289 (patch) | |
tree | b811bc53608fe74c8895bab0013ab9907cd57f13 /gdb/solib-svr4.h | |
parent | b1da2477ff65e8bf3bc1fd15d3787557418a047d (diff) | |
download | gdb-4db8c4a926e43095e8807b2244f6e4331e6ec289.tar.gz |
* 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.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gdb/solib-svr4.h b/gdb/solib-svr4.h index 082b3e25fe5..ae2740e0de7 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. */ |