aboutsummaryrefslogtreecommitdiff
path: root/gdb/expression.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-10-27 17:48:36 +0000
committerStu Grossman <grossman@cygnus>1995-10-27 17:48:36 +0000
commitcd10c7e3886bd28dc6ada58dcd5d93685a3ce865 (patch)
treec80e120745cd9901b95aba08398fb4e6cecff5df /gdb/expression.h
parentd6d44ef984d15d089277de11f176ce0775cabc31 (diff)
downloadfsf-binutils-gdb-cd10c7e3886bd28dc6ada58dcd5d93685a3ce865.zip
fsf-binutils-gdb-cd10c7e3886bd28dc6ada58dcd5d93685a3ce865.tar.gz
fsf-binutils-gdb-cd10c7e3886bd28dc6ada58dcd5d93685a3ce865.tar.bz2
* breakpoint.c (breakpoint_re_set): #ifdef GET_LONGJMP_TARGET
around calls to create_longjmp_breakpoint. Why install the breakpoints if we can't find the longjmp target? * infrun.c (wait_for_inferior): Cleanup comments near call test. * remote-mips.c: Fixed a bunch of prototypes to avoid char/int complaint from picky compilers. Add comment to mips_expect. Replace all instances of sr_get_debug with remote_debug. * (mips_readchar): Don't jam init string to monitor. mips_initialize() handles that. * (mips_receive_header): Print better message when we get too much garbage. * (mips_request): Allow caller to pass in buff to allow them to analyze the returned message. * (mips_initialize): Re-do initialization to try sending a BREAK, a ^C, and then a download escape sequence. Cleanup protocol startup. Eliminate sleeps. Clear breakpoints (if using monitor breakpoints). Re-init frame. * (mips_detach): Close down target. start-sanitize-gm * (mips_resume): Pass signal down to target. * (mips_create_inferior): Start target with TARGET_SIGNAL_PWR. end-sanitize-gm * (mips_wait): Handle return status with registers, or breakpoint stuff. * (mips_kill): Add ^C handling. * (mips_insert_breakpoint mips_remove_breakpoint): Call new breakpoint stuff if enabled. * (calculate_mask remote_mips_set_watchpoint remote_mips_remove_watchpoint remote_mips_stopped_by_watchpoint): Hardware watchpoint/breakpoint stuff. * (common_breakpoint): Common code for new monitor breakpoint commands. * (mips_load): Don't use `prompt'. It's a global variable. * top.c (dont_repeat_command): New command for use in user-defined commands to suppress auto-repeat (by hittin return key). start-sanitize-gm * utils.c (request_quit): Call target_kill here. Good idea. Needs a better implementation. end-sanitize-gm * valops.c: Add start of auto function-call abandonment capability. start-sanitize-gm * c-exp.y: Add code (currently disabled) to handle GM dynamic structures (it conflicts with @!). * eval.c (evaluate_subexp_standard): ditto. * expprint.c (print_subexp dump_expression): ditto. * expression.h (enum exp_opcode): ditto. * parse.c (length_of_subexp): ditto. * configure, configure.in: Add mip*-*-magic* target. * magic.c magic.h: Special routines to handle GM stuff (like stepping through dispatcher). end-sanitize-gm
Diffstat (limited to 'gdb/expression.h')
-rw-r--r--gdb/expression.h26
1 files changed, 19 insertions, 7 deletions
diff --git a/gdb/expression.h b/gdb/expression.h
index cac4dad..9561b1c 100644
--- a/gdb/expression.h
+++ b/gdb/expression.h
@@ -15,7 +15,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#if !defined (EXPRESSION_H)
#define EXPRESSION_H 1
@@ -247,6 +247,9 @@ enum exp_opcode
UNOP_ODD,
UNOP_TRUNC,
+ /* Chill builtin functions. */
+ UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH,
+
OP_BOOL, /* Modula-2 builtin BOOLEAN type */
OP_M2_STRING, /* Modula-2 string constants */
@@ -264,6 +267,14 @@ enum exp_opcode
STRUCTOP_STRUCT,
STRUCTOP_PTR,
+/* start-sanitize-gm */
+#ifdef GENERAL_MAGIC_HACKS
+ /* STRUCTOP_FIELD is for handling field access for Magic Cap dynamic objects.
+ */
+ STRUCTOP_FIELD,
+#endif /* GENERAL_MAGIC_HACKS */
+/* end-sanitize-gm */
+
/* C++ */
/* OP_THIS is just a placeholder for the class instance variable.
It just comes in a tight (OP_THIS, OP_THIS) pair. */
@@ -287,7 +298,13 @@ enum exp_opcode
/* OP_TYPE is for parsing types, and used with the "ptype" command
so we can look up types that are qualified by scope, either with
the GDB "::" operator, or the Modula-2 '.' operator. */
- OP_TYPE
+ OP_TYPE,
+
+ /* An un-looked-up identifier. */
+ OP_NAME,
+
+ /* An unparsed expression. Used for Scheme (for now at least) */
+ OP_EXPRSTRING
};
union exp_element
@@ -319,8 +336,6 @@ struct expression
#define BYTES_TO_EXP_ELEM(bytes) \
(((bytes) + sizeof (union exp_element) - 1) / sizeof (union exp_element))
-#include "value.h"
-
/* From parse.c */
extern struct expression *parse_expression PARAMS ((char *));
@@ -354,9 +369,6 @@ enum noside
extern struct value* evaluate_subexp_standard
PARAMS ((struct type *, struct expression *, int*, enum noside));
-extern value_ptr evaluate_subexp_with_coercion PARAMS ((struct expression *,
- int *, enum noside));
-
/* From expprint.c */
extern void print_expression PARAMS ((struct expression *, GDB_FILE *));