aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/go-lang.c')
-rw-r--r--gdb/go-lang.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/go-lang.c b/gdb/go-lang.c
index 8b4250b..bad2ccf 100644
--- a/gdb/go-lang.c
+++ b/gdb/go-lang.c
@@ -1,6 +1,6 @@
/* Go language support routines for GDB, the GNU debugger.
- Copyright (C) 2012-2024 Free Software Foundation, Inc.
+ Copyright (C) 2012-2025 Free Software Foundation, Inc.
This file is part of GDB.
@@ -54,9 +54,8 @@ static const char GO_MAIN_MAIN[] = "main.main";
const char *
go_main_name (void)
{
- struct bound_minimal_symbol msym;
-
- msym = lookup_minimal_symbol (GO_MAIN_MAIN, NULL, NULL);
+ bound_minimal_symbol msym
+ = lookup_minimal_symbol (current_program_space, GO_MAIN_MAIN);
if (msym.minsym != NULL)
return GO_MAIN_MAIN;