diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:16:51 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:16:51 +0000 |
commit | 1fa515a4a9e71b81be0a2e92e8f6d119a0f838ac (patch) | |
tree | a892319c922830b0d2b6632a7858d3c8897f605f /gdb/solib-svr4.c | |
parent | 6fa4d78a88e9ffb7fd832babc8828b3818421e70 (diff) | |
download | gdb-1fa515a4a9e71b81be0a2e92e8f6d119a0f838ac.tar.gz |
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 6daf0dcca6d..826f8bf0da3 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 (); } |