projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use bound_minsym as result for lookup_minimal_symbol et al
[deliverable/binutils-gdb.git]
/
gdb
/
go-lang.c
diff --git
a/gdb/go-lang.c
b/gdb/go-lang.c
index 21f2427031dd112ff2eb3689432f6b7fb94e370f..42535dfd02dc1622812f27b037477b3d1475b7ff 100644
(file)
--- a/
gdb/go-lang.c
+++ b/
gdb/go-lang.c
@@
-1,6
+1,6
@@
/* Go language support routines for GDB, the GNU debugger.
/* Go language support routines for GDB, the GNU debugger.
- Copyright (C) 2012 Free Software Foundation, Inc.
+ Copyright (C) 2012
-2014
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-34,10
+34,11
@@
#include "defs.h"
#include "gdb_assert.h"
#include "gdb_obstack.h"
#include "defs.h"
#include "gdb_assert.h"
#include "gdb_obstack.h"
-#include
"gdb_string.h"
+#include
<string.h>
#include "block.h"
#include "symtab.h"
#include "language.h"
#include "block.h"
#include "symtab.h"
#include "language.h"
+#include "varobj.h"
#include "go-lang.h"
#include "c-lang.h"
#include "parser-defs.h"
#include "go-lang.h"
#include "c-lang.h"
#include "parser-defs.h"
@@
-55,10
+56,10
@@
static const char GO_MAIN_MAIN[] = "main.main";
const char *
go_main_name (void)
{
const char *
go_main_name (void)
{
- struct
minimal_symbol *
msym;
+ struct
bound_minimal_symbol
msym;
msym = lookup_minimal_symbol (GO_MAIN_MAIN, NULL, NULL);
msym = lookup_minimal_symbol (GO_MAIN_MAIN, NULL, NULL);
- if (msym != NULL)
+ if (msym
.minsym
!= NULL)
return GO_MAIN_MAIN;
/* No known entry procedure found, the main program is probably not Go. */
return GO_MAIN_MAIN;
/* No known entry procedure found, the main program is probably not Go. */
@@
-560,6
+561,7
@@
go_language_arch_info (struct gdbarch *gdbarch,
static const struct language_defn go_language_defn =
{
"go",
static const struct language_defn go_language_defn =
{
"go",
+ "Go",
language_go,
range_check_off,
case_sensitive_on,
language_go,
range_check_off,
case_sensitive_on,
@@
-596,6
+598,7
@@
static const struct language_defn go_language_defn =
c_get_string,
NULL,
iterate_over_symbols,
c_get_string,
NULL,
iterate_over_symbols,
+ &default_varobj_ops,
LANG_MAGIC
};
LANG_MAGIC
};
This page took
0.024976 seconds
and
4
git commands to generate.