aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-10-29 14:40:59 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-10-29 14:40:59 +0000
commit3c0173a6666abfe554dc054d41ef90b6608ba3d4 (patch)
treed5feb950306db1aa2bc73b5622035bc2a35152c8 /gnu
parent89674a9f772f83f769666b3287939fdabc23a6cd (diff)
downloadsrc-3c0173a6666abfe554dc054d41ef90b6608ba3d4.tar.gz
src-3c0173a6666abfe554dc054d41ef90b6608ba3d4.zip
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
Notes
Notes: svn path=/head/; revision=121683
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 72d4807fad8d..190e6e668716 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