Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb.old/dist/gdb Sync with external/gpl3/gdb/d...
details: https://anonhg.NetBSD.org/src/rev/d7113ea54653
branches: trunk
changeset: 943978:d7113ea54653
user: rin <rin%NetBSD.org@localhost>
date: Mon Sep 14 06:50:31 2020 +0000
description:
Sync with external/gpl3/gdb/dist/gdb by removing unused files:
- rust-exp.c is generated file.
- x86bsd-nat.[ch] were replaced by x86-bsd-nat.[ch] when 8.0.1 was merged.
diffstat:
external/gpl3/gdb.old/dist/gdb/rust-exp.c | 4946 ---------------------------
external/gpl3/gdb.old/dist/gdb/x86bsd-nat.c | 156 -
external/gpl3/gdb.old/dist/gdb/x86bsd-nat.h | 31 -
3 files changed, 0 insertions(+), 5133 deletions(-)
diffs (truncated from 5145 to 300 lines):
diff -r a1385b383be7 -r d7113ea54653 external/gpl3/gdb.old/dist/gdb/rust-exp.c
--- a/external/gpl3/gdb.old/dist/gdb/rust-exp.c Mon Sep 14 06:44:50 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4946 +0,0 @@
-/* original parser id follows */
-/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
-/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
-
-#define YYBYACC 1
-#define YYMAJOR 1
-#define YYMINOR 9
-
-#define YYEMPTY (-1)
-#define yyclearin (yychar = YYEMPTY)
-#define yyerrok (yyerrflag = 0)
-#define YYRECOVERING() (yyerrflag != 0)
-#define YYENOMEM (-2)
-#define YYEOF 0
-#undef YYBTYACC
-#define YYBTYACC 0
-#define YYDEBUGSTR YYPREFIX "debug"
-#define YYPREFIX "yy"
-
-#define YYPURE 0
-
-#line 23 "/p/netbsd/cvsroot/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/rust-exp.y"
-
-#include "defs.h"
-
-#include "block.h"
-#include "charset.h"
-#include "cp-support.h"
-#include "gdb_obstack.h"
-#include "gdb_regex.h"
-#include "rust-lang.h"
-#include "parser-defs.h"
-#include "selftest.h"
-#include "value.h"
-#include "vec.h"
-
-#define GDB_YY_REMAP_PREFIX rust
-#include "yy-remap.h"
-
-#define RUSTSTYPE YYSTYPE
-
-extern initialize_file_ftype _initialize_rust_exp;
-
-struct rust_op;
-typedef const struct rust_op *rust_op_ptr;
-DEF_VEC_P (rust_op_ptr);
-
-/* A typed integer constant. */
-
-struct typed_val_int
-{
- LONGEST val;
- struct type *type;
-};
-
-/* A typed floating point constant. */
-
-struct typed_val_float
-{
- DOUBLEST dval;
- struct type *type;
-};
-
-/* An identifier and an expression. This is used to represent one
- element of a struct initializer. */
-
-struct set_field
-{
- struct stoken name;
- const struct rust_op *init;
-};
-
-typedef struct set_field set_field;
-
-DEF_VEC_O (set_field);
-
-
-static int rustyylex (void);
-static void rust_push_back (char c);
-static const char *rust_copy_name (const char *, int);
-static struct stoken rust_concat3 (const char *, const char *, const char *);
-static struct stoken make_stoken (const char *);
-static struct block_symbol rust_lookup_symbol (const char *name,
- const struct block *block,
- const domain_enum domain);
-static struct type *rust_lookup_type (const char *name,
- const struct block *block);
-static struct type *rust_type (const char *name);
-
-static const struct rust_op *crate_name (const struct rust_op *name);
-static const struct rust_op *super_name (const struct rust_op *name,
- unsigned int n_supers);
-
-static const struct rust_op *ast_operation (enum exp_opcode opcode,
- const struct rust_op *left,
- const struct rust_op *right);
-static const struct rust_op *ast_compound_assignment
- (enum exp_opcode opcode, const struct rust_op *left,
- const struct rust_op *rust_op);
-static const struct rust_op *ast_literal (struct typed_val_int val);
-static const struct rust_op *ast_dliteral (struct typed_val_float val);
-static const struct rust_op *ast_structop (const struct rust_op *left,
- const char *name,
- int completing);
-static const struct rust_op *ast_structop_anonymous
- (const struct rust_op *left, struct typed_val_int number);
-static const struct rust_op *ast_unary (enum exp_opcode opcode,
- const struct rust_op *expr);
-static const struct rust_op *ast_cast (const struct rust_op *expr,
- const struct rust_op *type);
-static const struct rust_op *ast_call_ish (enum exp_opcode opcode,
- const struct rust_op *expr,
- VEC (rust_op_ptr) **params);
-static const struct rust_op *ast_path (struct stoken name,
- VEC (rust_op_ptr) **params);
-static const struct rust_op *ast_string (struct stoken str);
-static const struct rust_op *ast_struct (const struct rust_op *name,
- VEC (set_field) **fields);
-static const struct rust_op *ast_range (const struct rust_op *lhs,
- const struct rust_op *rhs);
-static const struct rust_op *ast_array_type (const struct rust_op *lhs,
- struct typed_val_int val);
-static const struct rust_op *ast_slice_type (const struct rust_op *type);
-static const struct rust_op *ast_reference_type (const struct rust_op *type);
-static const struct rust_op *ast_pointer_type (const struct rust_op *type,
- int is_mut);
-static const struct rust_op *ast_function_type (const struct rust_op *result,
- VEC (rust_op_ptr) **params);
-static const struct rust_op *ast_tuple_type (VEC (rust_op_ptr) **params);
-
-/* The state of the parser, used internally when we are parsing the
- expression. */
-
-static struct parser_state *pstate = NULL;
-
-/* A regular expression for matching Rust numbers. This is split up
- since it is very long and this gives us a way to comment the
- sections. */
-
-static const char *number_regex_text =
- /* subexpression 1: allows use of alternation, otherwise uninteresting */
- "^("
- /* First comes floating point. */
- /* Recognize number after the decimal point, with optional
- exponent and optional type suffix.
- subexpression 2: allows "?", otherwise uninteresting
- subexpression 3: if present, type suffix
- */
- "[0-9][0-9_]*\\.[0-9][0-9_]*([eE][-+]?[0-9][0-9_]*)?(f32|f64)?"
-#define FLOAT_TYPE1 3
- "|"
- /* Recognize exponent without decimal point, with optional type
- suffix.
- subexpression 4: if present, type suffix
- */
-#define FLOAT_TYPE2 4
- "[0-9][0-9_]*[eE][-+]?[0-9][0-9_]*(f32|f64)?"
- "|"
- /* "23." is a valid floating point number, but "23.e5" and
- "23.f32" are not. So, handle the trailing-. case
- separately. */
- "[0-9][0-9_]*\\."
- "|"
- /* Finally come integers.
- subexpression 5: text of integer
- subexpression 6: if present, type suffix
- subexpression 7: allows use of alternation, otherwise uninteresting
- */
-#define INT_TEXT 5
-#define INT_TYPE 6
- "(0x[a-fA-F0-9_]+|0o[0-7_]+|0b[01_]+|[0-9][0-9_]*)"
- "([iu](size|8|16|32|64))?"
- ")";
-/* The number of subexpressions to allocate space for, including the
- "0th" whole match subexpression. */
-#define NUM_SUBEXPRESSIONS 8
-
-/* The compiled number-matching regex. */
-
-static regex_t number_regex;
-
-/* True if we're running unit tests. */
-
-static int unit_testing;
-
-/* Obstack for data temporarily allocated during parsing. */
-
-static struct obstack work_obstack;
-
-/* Result of parsing. Points into work_obstack. */
-
-static const struct rust_op *rust_ast;
-
-#ifdef YYSTYPE
-#undef YYSTYPE_IS_DECLARED
-#define YYSTYPE_IS_DECLARED 1
-#endif
-#ifndef YYSTYPE_IS_DECLARED
-#define YYSTYPE_IS_DECLARED 1
-#line 196 "/p/netbsd/cvsroot/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/rust-exp.y"
-typedef union
-{
- /* A typed integer constant. */
- struct typed_val_int typed_val_int;
-
- /* A typed floating point constant. */
- struct typed_val_float typed_val_float;
-
- /* An identifier or string. */
- struct stoken sval;
-
- /* A token representing an opcode, like "==". */
- enum exp_opcode opcode;
-
- /* A list of expressions; for example, the arguments to a function
- call. */
- VEC (rust_op_ptr) **params;
-
- /* A list of field initializers. */
- VEC (set_field) **field_inits;
-
- /* A single field initializer. */
- struct set_field one_field_init;
-
- /* An expression. */
- const struct rust_op *op;
-
- /* A plain integer, for example used to count the number of
- "super::" prefixes on a path. */
- unsigned int depth;
-} YYSTYPE;
-#endif /* !YYSTYPE_IS_DECLARED */
-#line 229 "/p/netbsd/cvsroot/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/rust-exp.y"
-
- /* Rust AST operations. We build a tree of these; then lower them
- to gdb expressions when parsing has completed. */
-
-struct rust_op
-{
- /* The opcode. */
- enum exp_opcode opcode;
- /* If OPCODE is OP_TYPE, then this holds information about what type
- is described by this node. */
- enum type_code typecode;
- /* Indicates whether OPCODE actually represents a compound
- assignment. For example, if OPCODE is GTGT and this is false,
- then this rust_op represents an ordinary ">>"; but if this is
- true, then this rust_op represents ">>=". Unused in other
- cases. */
- unsigned int compound_assignment : 1;
- /* Only used by a field expression; if set, indicates that the field
- name occurred at the end of the expression and is eligible for
- completion. */
- unsigned int completing : 1;
- /* Operands of expression. Which one is used and how depends on the
- particular opcode. */
- RUSTSTYPE left;
- RUSTSTYPE right;
-};
-
-#line 262 "/p/netbsd/cvsroot/src/external/gpl3/gdb.old/lib/libgdb/../../dist/gdb/rust-exp.c"
-
-/* compatibility with bison */
-#ifdef YYPARSE_PARAM
-/* compatibility with FreeBSD */
-# ifdef YYPARSE_PARAM_TYPE
-# define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM)
-# else
-# define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM)
-# endif
-#else
-# define YYPARSE_DECL() yyparse(void)
-#endif
-
-/* Parameters sent to lex. */
-#ifdef YYLEX_PARAM
-# define YYLEX_DECL() yylex(void *YYLEX_PARAM)
-# define YYLEX yylex(YYLEX_PARAM)
-#else
-# define YYLEX_DECL() yylex(void)
-# define YYLEX yylex()
-#endif
-
-#if !(defined(yylex) || defined(YYSTATE))
-int YYLEX_DECL();
-#endif
-
-/* Parameters sent to yyerror. */
-#ifndef YYERROR_DECL
-#define YYERROR_DECL() yyerror(const char *s)
-#endif
-#ifndef YYERROR_CALL
-#define YYERROR_CALL(msg) yyerror(msg)
-#endif
-
-extern int YYPARSE_DECL();
Home |
Main Index |
Thread Index |
Old Index