diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:16:52 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:16:52 +0000 |
commit | 4175219298aa7428db899c2f7022146cf8482885 (patch) | |
tree | 0bea09cdf9eb57ea9b02ea9303a504d0945a8e95 /gdb/solib-svr4.c | |
parent | 9f2982ff0bf5e33d54b085b98970ab15ba4fac46 (diff) | |
download | gdb-4175219298aa7428db899c2f7022146cf8482885.zip gdb-4175219298aa7428db899c2f7022146cf8482885.tar.gz gdb-4175219298aa7428db899c2f7022146cf8482885.tar.bz2 |
gdb/
* solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
Replace exec_entry_point call by bfd_get_start_address.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 6daf0dc..826f8bf 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1620,13 +1620,15 @@ static CORE_ADDR svr4_exec_displacement (void) { int found; + /* ENTRY_POINT is a possible function descriptor - before + a call to gdbarch_convert_from_func_ptr_addr. */ CORE_ADDR entry_point; if (exec_bfd == NULL) return 0; if (target_auxv_search (¤t_target, AT_ENTRY, &entry_point) == 1) - return entry_point - exec_entry_point (exec_bfd, ¤t_target); + return entry_point - bfd_get_start_address (exec_bfd); return svr4_static_exec_displacement (); } |