summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-10-29 14:40:59 +0000
committersimokawa <simokawa@FreeBSD.org>2003-10-29 14:40:59 +0000
commitf965698ed4683de29221f38b96189223a4cf0b2e (patch)
treed5feb950306db1aa2bc73b5622035bc2a35152c8 /gnu
parent6bce6afbe7fdd1d2d6f8d6d50002cc47fdfa3b96 (diff)
downloadFreeBSD-src-f965698ed4683de29221f38b96189223a4cf0b2e.zip
FreeBSD-src-f965698ed4683de29221f38b96189223a4cf0b2e.tar.gz
Implement gdb_solib_create_inferior_hook().
This function is used for autoloading kld module symbols for remote kgdb. We still need a patch(*) for src/contrib/gdb/gdb/solib-svr4.c to enable this function. (*) http://people.freebsd.org/~simokawa/gdb/patch-solib-svr4.c
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/gdb/solib-fbsd-kld.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/gdb/solib-fbsd-kld.c b/gnu/usr.bin/binutils/gdb/solib-fbsd-kld.c
index 72d4807..190e6e6 100644
--- a/gnu/usr.bin/binutils/gdb/solib-fbsd-kld.c
+++ b/gnu/usr.bin/binutils/gdb/solib-fbsd-kld.c
@@ -159,7 +159,13 @@ kgdb_special_symbol_handling (void)
static void
kgdb_solib_create_inferior_hook (void)
{
- warning ("kgdb_solib_create_inferior_hook called\n");
+ struct so_list *inferior_sos;
+
+ inferior_sos = kgdb_current_sos ();
+ if (inferior_sos)
+ {
+ solib_add (NULL, /*from_tty*/0, NULL, auto_solib_add);
+ }
}
static void
OpenPOWER on IntegriCloud