diff options
Diffstat (limited to 'gdb/proc-service.c')
-rw-r--r-- | gdb/proc-service.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/proc-service.c b/gdb/proc-service.c index 1889a00..4f2be0f 100644 --- a/gdb/proc-service.c +++ b/gdb/proc-service.c @@ -1,6 +1,6 @@ /* <proc_service.h> implementation. - Copyright (C) 1999-2024 Free Software Foundation, Inc. + Copyright (C) 1999-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -99,7 +99,8 @@ ps_pglobal_lookup (struct ps_prochandle *ph, const char *obj, set_current_program_space (inf->pspace); /* FIXME: kettenis/2000-09-03: What should we do with OBJ? */ - bound_minimal_symbol ms = lookup_minimal_symbol (name, NULL, NULL); + bound_minimal_symbol ms + = lookup_minimal_symbol (current_program_space, name); if (ms.minsym == NULL) return PS_NOSYM; @@ -205,9 +206,7 @@ ps_getpid (struct ps_prochandle *ph) return ph->thread->ptid.pid (); } -void _initialize_proc_service (); -void -_initialize_proc_service () +INIT_GDB_FILE (proc_service) { /* This function solely exists to make sure this module is linked into the final binary. */ |