diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-02-22 03:01:27 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-02-22 03:01:27 +0000 |
commit | d7fa2ae2549091f294e6dd103a57ddf1219dfe6c (patch) | |
tree | f28343094d9deb829390fe4468891a1f17aac86e /gdb/solib-svr4.c | |
parent | 33d01f331b0673ed67fa8a71c9cb90f7d35d16b7 (diff) | |
download | gdb-d7fa2ae2549091f294e6dd103a57ddf1219dfe6c.zip gdb-d7fa2ae2549091f294e6dd103a57ddf1219dfe6c.tar.gz gdb-d7fa2ae2549091f294e6dd103a57ddf1219dfe6c.tar.bz2 |
Made changes to shared library support and added more of the support needed
for AIX/IA-64.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 07cd2d0..1c451f3 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1085,24 +1085,28 @@ match_main (char *soname) } -#ifdef SVR4_SHARED_LIBS - /* Return 1 if PC lies in the dynamic symbol resolution code of the SVR4 run time loader. */ - +#ifdef SVR4_SHARED_LIBS static CORE_ADDR interp_text_sect_low; static CORE_ADDR interp_text_sect_high; static CORE_ADDR interp_plt_sect_low; static CORE_ADDR interp_plt_sect_high; -int -in_svr4_dynsym_resolve_code (CORE_ADDR pc) +static int +svr4_in_dynsym_resolve_code (CORE_ADDR pc) { return ((pc >= interp_text_sect_low && pc < interp_text_sect_high) || (pc >= interp_plt_sect_low && pc < interp_plt_sect_high) || in_plt_section (pc, NULL)); } -#endif +#else /* !SVR4_SHARED_LIBS */ +static int +svr4_in_dynsym_resolve_code (CORE_ADDR pc) +{ + return 0; +} +#endif /* SVR4_SHARED_LIBS */ /* @@ -1303,7 +1307,7 @@ enable_break (void) load_addr = read_pc () - tmp_bfd->start_address; /* Record the relocated start and end address of the dynamic linker - text and plt section for in_svr4_dynsym_resolve_code. */ + text and plt section for svr4_in_dynsym_resolve_code. */ interp_sect = bfd_get_section_by_name (tmp_bfd, ".text"); if (interp_sect) { @@ -1694,6 +1698,8 @@ _initialize_svr4_solib (void) svr4_so_ops.special_symbol_handling = svr4_special_symbol_handling; svr4_so_ops.current_sos = svr4_current_sos; svr4_so_ops.open_symbol_file_object = open_symbol_file_object; + svr4_so_ops.open_symbol_file_object = open_symbol_file_object; + svr4_so_ops.in_dynsym_resolve_code = svr4_in_dynsym_resolve_code; /* FIXME: Don't do this here. *_gdbarch_init() should set so_ops. */ current_target_so_ops = &svr4_so_ops; |