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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user