This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb parse.c parser-defs.h
- To: gdb-cvs at sourceware dot cygnus dot com
- Subject: src/gdb parse.c parser-defs.h
- From: msnyder at sourceware dot cygnus dot com
- Date: 27 Sep 2001 22:39:05 -0000
CVSROOT: /cvs/src
Module name: src
Changes by: msnyder@sources.redhat.com 2001-09-27 15:39:05
Modified files:
gdb : parse.c parser-defs.h
Log message:
2001-09-20 Michael Snyder <msnyder@redhat.com>
Changes by Daniel Berlin <dan@cgsoftware.com>, to support
better parsing of const and volatile type expressions.
* c-exp.y (const_and_volatile, const_or_volatile_noopt,
const_or_volatile): New non-terminals.
(ptype): Use new rule for const_or_volatile.
(typebase): Use new rule for const_or_volatile_noopt.
* parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
* parse.c (follow_types): Handle tp_const and tp_volatile on the
type stack: call make_cv_type to create new const/volatile type.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/parse.c.diff?cvsroot=src&r1=1.15&r2=1.16
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/parser-defs.h.diff?cvsroot=src&r1=1.4&r2=1.5