From ff56144ec8eba32480048784f58dc76415dbadc7 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sun, 13 Jun 1993 03:18:18 +0000 Subject: [PATCH] * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]: Don't try to get the debug base yet. --- gdb/ChangeLog | 3 +++ gdb/solib.c | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a55334b6c5..b69e5b77b0e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Sat Jun 12 14:40:54 1993 Jim Kingdon (kingdon@cygnus.com) + * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]: + Don't try to get the debug base yet. + * dbxread.c (process_one_symbol): Set n_opt_found based on whether a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro which returns 0 or 1 to say whether to do it. diff --git a/gdb/solib.c b/gdb/solib.c index e4bf9d73ec4..79a0e01f51e 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -1198,12 +1198,17 @@ FIXME void solib_create_inferior_hook() { - + /* If we are using the BKPT_AT_SYMBOL code, then we don't need the base + yet. In fact, in the case of a SunOS4 executable being run on + Solaris, we can't get it yet. find_solib will get it when it needs + it. */ +#if !(defined (SVR4_SHARED_LIBS) && defined (BKPT_AT_SYMBOL)) if ((debug_base = locate_base ()) == 0) { /* Can't find the symbol or the executable is statically linked. */ return; } +#endif if (!enable_break ()) { -- 2.30.2