Index: infcmd.c =================================================================== RCS file: /cvs/src/src/gdb/infcmd.c,v retrieving revision 1.143 diff -u -p -r1.143 infcmd.c --- infcmd.c 24 Jan 2006 22:34:34 -0000 1.143 +++ infcmd.c 27 Jan 2006 19:16:53 -0000 @@ -419,7 +419,7 @@ post_create_inferior (struct target_ops /* Create the hooks to handle shared library load and unload events. */ #ifdef SOLIB_CREATE_INFERIOR_HOOK - SOLIB_CREATE_INFERIOR_HOOK (pid); + SOLIB_CREATE_INFERIOR_HOOK (PIDGET (inferior_ptid)); #else solib_create_inferior_hook (); #endif