diff options
author | Daniel Jacobowitz <dan@debian.org> | 2004-02-09 19:44:05 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2004-02-09 19:44:05 +0000 |
commit | 20640b2c6f68b40cdaf390b2bfacaeae7d08542b (patch) | |
tree | 7ae5b6dbb66b819e9cdc0aaa44cfb2a538891f86 /gdb/ax-gdb.c | |
parent | e75e4141b0d8ec021587fb45de82c7f046f3357c (diff) | |
download | gdb-20640b2c6f68b40cdaf390b2bfacaeae7d08542b.tar.gz |
Merge drow-cplus-merge-20040208 to drow-cplus-branch.
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r-- | gdb/ax-gdb.c | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index 5692c35f990..dadad8e2549 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -134,7 +134,6 @@ static void gen_sizeof (union exp_element **pc, static void gen_expr (union exp_element **pc, struct agent_expr *ax, struct axs_value *value); -static void print_axs_value (struct ui_file *f, struct axs_value * value); static void agent_command (char *exp, int from_tty); @@ -621,7 +620,12 @@ gen_var_ref (struct agent_expr *ax, struct axs_value *value, struct symbol *var) case LOC_COMPUTED: case LOC_COMPUTED_ARG: - (*SYMBOL_LOCATION_FUNCS (var)->tracepoint_var_ref) (var, ax, value); + /* FIXME: cagney/2004-01-26: It should be possible to + unconditionally call the SYMBOL_OPS method when available. + Unfortunately DWARF 2 stores the frame-base (instead of the + function) location in a function's symbol. Oops! For the + moment enable this when/where applicable. */ + SYMBOL_OPS (var)->tracepoint_var_ref (var, ax, value); break; case LOC_OPTIMIZED_OUT: @@ -1797,33 +1801,6 @@ gen_trace_for_expr (CORE_ADDR scope, struct expression *expr) discard_cleanups (old_chain); return ax; } - - - -/* The "agent" command, for testing: compile and disassemble an expression. */ - -static void -print_axs_value (struct ui_file *f, struct axs_value *value) -{ - switch (value->kind) - { - case axs_rvalue: - fputs_filtered ("rvalue", f); - break; - - case axs_lvalue_memory: - fputs_filtered ("memory lvalue", f); - break; - - case axs_lvalue_register: - fprintf_filtered (f, "register %d lvalue", value->u.reg); - break; - } - - fputs_filtered (" : ", f); - type_print (value->type, "", f, -1); -} - static void agent_command (char *exp, int from_tty) |