From 66d1795a8631ea14e5ca9fa183a81b92c8b66685 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 4 Nov 2005 11:48:26 +0000 Subject: [PATCH] Explicitly load symbols from libraries after loading a program. gdb doesn't work quite well when symbols are not loaded -- e.g. stack crawls are usually broken. Also stack crawls ending in a syscall work. gdb can deal well enough with frameless function, which I realized, of course, only after writing code for explicitly supporting syscall functions. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14680 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/gdb/gdb/haiku-nat.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/gdb/gdb/haiku-nat.c b/src/bin/gdb/gdb/haiku-nat.c index 556759aed3..8c0ec4f291 100644 --- a/src/bin/gdb/gdb/haiku-nat.c +++ b/src/bin/gdb/gdb/haiku-nat.c @@ -37,6 +37,7 @@ #include "observer.h" #include "regcache.h" #include "solib-haiku.h" +#include "symfile.h" #include "target.h" //#define TRACE_HAIKU_NAT @@ -1506,6 +1507,11 @@ haiku_init_debug_create_inferior(int pid) } stop_soon = NO_STOP_QUIETLY; + // load shared library symbols + target_terminal_ours_for_output (); + SOLIB_ADD (NULL, 0, ¤t_target, auto_solib_add); + target_terminal_inferior (); + // startup_inferior (START_INFERIOR_TRAPS_EXPECTED); //while (1) {