projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change delegation for to_read_description
[deliverable/binutils-gdb.git]
/
gdb
/
go-exp.y
diff --git
a/gdb/go-exp.y
b/gdb/go-exp.y
index ed403d17ee2c03f94ac02458490a1c07f4684251..974bdb180668ca55caa9ea121ca4a40c5b388ce7 100644
(file)
--- a/
gdb/go-exp.y
+++ b/
gdb/go-exp.y
@@
-1,6
+1,6
@@
/* YACC parser for Go expressions, for GDB.
/* YACC parser for Go expressions, for GDB.
- 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.
@@
-52,7
+52,7
@@
%{
#include "defs.h"
%{
#include "defs.h"
-#include
"gdb_string.h"
+#include
<string.h>
#include <ctype.h>
#include "expression.h"
#include "value.h"
#include <ctype.h>
#include "expression.h"
#include "value.h"
@@
-158,7
+158,7
@@
void yyerror (char *);
%{
/* YYSTYPE gets defined by %union. */
%{
/* YYSTYPE gets defined by %union. */
-static int parse_number (char *, int, int, YYSTYPE *);
+static int parse_number (c
onst c
har *, int, int, YYSTYPE *);
static int parse_go_float (struct gdbarch *gdbarch, const char *p, int len,
DOUBLEST *d, struct type **t);
%}
static int parse_go_float (struct gdbarch *gdbarch, const char *p, int len,
DOUBLEST *d, struct type **t);
%}
@@
-616,12
+616,12
@@
variable: name_not_typename
}
else
{
}
else
{
- struct
minimal_symbol *
msymbol;
+ struct
bound_minimal_symbol
msymbol;
char *arg = copy_name ($1.stoken);
msymbol =
char *arg = copy_name ($1.stoken);
msymbol =
- lookup_
minimal_symbol (arg, NULL, NULL
);
- if (msymbol != NULL)
+ lookup_
bound_minimal_symbol (arg
);
+ if (msymbol
.minsym
!= NULL)
write_exp_msymbol (msymbol);
else if (!have_full_symbols ()
&& !have_partial_symbols ())
write_exp_msymbol (msymbol);
else if (!have_full_symbols ()
&& !have_partial_symbols ())
@@
-704,7
+704,7
@@
parse_go_float (struct gdbarch *gdbarch, const char *p, int len,
as our YYSTYPE is different than c-exp.y's */
static int
as our YYSTYPE is different than c-exp.y's */
static int
-parse_number (char *p, int len, int parsed_float, YYSTYPE *putithere)
+parse_number (c
onst c
har *p, int len, int parsed_float, YYSTYPE *putithere)
{
/* FIXME: Shouldn't these be unsigned? We don't deal with negative values
here, and we do kind of silly things like cast to unsigned. */
{
/* FIXME: Shouldn't these be unsigned? We don't deal with negative values
here, and we do kind of silly things like cast to unsigned. */
@@
-908,8
+908,8
@@
static int tempbuf_init;
number of host characters in the literal. */
static int
number of host characters in the literal. */
static int
-parse_string_or_char (c
har *tokptr, char **outptr, struct typed_stoken *value
,
- int *host_chars)
+parse_string_or_char (c
onst char *tokptr, const char **outptr
,
+
struct typed_stoken *value,
int *host_chars)
{
int quote;
{
int quote;
@@
-1049,7
+1049,7
@@
lex_one_token (void)
int c;
int namelen;
unsigned int i;
int c;
int namelen;
unsigned int i;
- char *tokstart;
+ c
onst c
har *tokstart;
int saw_structop = last_was_structop;
char *copy;
int saw_structop = last_was_structop;
char *copy;
@@
-1143,7
+1143,7
@@
lex_one_token (void)
{
/* It's a number. */
int got_dot = 0, got_e = 0, toktype;
{
/* It's a number. */
int got_dot = 0, got_e = 0, toktype;
- char *p = tokstart;
+ c
onst c
har *p = tokstart;
int hex = input_radix > 10;
if (c == '0' && (p[1] == 'x' || p[1] == 'X'))
int hex = input_radix > 10;
if (c == '0' && (p[1] == 'x' || p[1] == 'X'))
@@
-1190,7
+1190,7
@@
lex_one_token (void)
case '@':
{
case '@':
{
- char *p = &tokstart[1];
+ c
onst c
har *p = &tokstart[1];
size_t len = strlen ("entry");
while (isspace (*p))
size_t len = strlen ("entry");
while (isspace (*p))
@@
-1283,7
+1283,8
@@
lex_one_token (void)
&& strncmp (tokstart, "thread", namelen) == 0
&& (tokstart[namelen] == ' ' || tokstart[namelen] == '\t'))
{
&& strncmp (tokstart, "thread", namelen) == 0
&& (tokstart[namelen] == ' ' || tokstart[namelen] == '\t'))
{
- char *p = tokstart + namelen + 1;
+ const char *p = tokstart + namelen + 1;
+
while (*p == ' ' || *p == '\t')
p++;
if (*p >= '0' && *p <= '9')
while (*p == ' ' || *p == '\t')
p++;
if (*p >= '0' && *p <= '9')
@@
-1365,7
+1366,7
@@
static int
package_name_p (const char *name, const struct block *block)
{
struct symbol *sym;
package_name_p (const char *name, const struct block *block)
{
struct symbol *sym;
-
in
t is_a_field_of_this;
+
struct field_of_this_resul
t is_a_field_of_this;
sym = lookup_symbol (name, block, STRUCT_DOMAIN, &is_a_field_of_this);
sym = lookup_symbol (name, block, STRUCT_DOMAIN, &is_a_field_of_this);
@@
-1406,7
+1407,7
@@
classify_packaged_name (const struct block *block)
{
char *copy;
struct symbol *sym;
{
char *copy;
struct symbol *sym;
-
int is_a_field_of_this = 0
;
+
struct field_of_this_result is_a_field_of_this
;
copy = copy_name (yylval.sval);
copy = copy_name (yylval.sval);
@@
-1415,7
+1416,7
@@
classify_packaged_name (const struct block *block)
if (sym)
{
yylval.ssym.sym = sym;
if (sym)
{
yylval.ssym.sym = sym;
- yylval.ssym.is_a_field_of_this = is_a_field_of_this;
+ yylval.ssym.is_a_field_of_this = is_a_field_of_this
.type != NULL
;
}
return NAME;
}
return NAME;
@@
-1435,7
+1436,7
@@
classify_name (const struct block *block)
struct type *type;
struct symbol *sym;
char *copy;
struct type *type;
struct symbol *sym;
char *copy;
-
int is_a_field_of_this = 0
;
+
struct field_of_this_result is_a_field_of_this
;
copy = copy_name (yylval.sval);
copy = copy_name (yylval.sval);
@@
-1458,7
+1459,7
@@
classify_name (const struct block *block)
if (sym)
{
yylval.ssym.sym = sym;
if (sym)
{
yylval.ssym.sym = sym;
- yylval.ssym.is_a_field_of_this = is_a_field_of_this;
+ yylval.ssym.is_a_field_of_this = is_a_field_of_this
.type != NULL
;
return NAME;
}
return NAME;
}
@@
-1484,7
+1485,7
@@
classify_name (const struct block *block)
{
yylval.ssym.stoken = sval;
yylval.ssym.sym = sym;
{
yylval.ssym.stoken = sval;
yylval.ssym.sym = sym;
- yylval.ssym.is_a_field_of_this = is_a_field_of_this;
+ yylval.ssym.is_a_field_of_this = is_a_field_of_this
.type != NULL
;
return NAME;
}
}
return NAME;
}
}
This page took
0.027099 seconds
and
4
git commands to generate.