diff options
author | Stan Shebs <shebs@codesourcery.com> | 2010-04-20 18:52:59 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2010-04-20 18:52:59 +0000 |
commit | 08922a10505b89e293906fbbd94d403b29f7aed9 (patch) | |
tree | 3663dcc9b7fb391ff59f67c19ec9092f528f7114 /gdb/symtab.h | |
parent | 2dc7f7b33b425c6c19078f29e4e8c9e0ddca41e6 (diff) | |
download | gdb-08922a10505b89e293906fbbd94d403b29f7aed9.zip gdb-08922a10505b89e293906fbbd94d403b29f7aed9.tar.gz gdb-08922a10505b89e293906fbbd94d403b29f7aed9.tar.bz2 |
2010-04-20 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
* dwarf2loc.c (struct axs_var_loc): New struct.
(dwarf2_tracepoint_var_loc): New function.
(dwarf2_tracepoint_var_access): New function.
(dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
with DW_OP_piece.
(locexpr_describe_location_piece): New function.
(locexpr_describe_location_1): New function.
(locexpr_describe_location): Call it, update signature.
(loclist_describe_location): Rewrite to loop over locations,
update signature.
* symtab.h (struct symbol_computed_ops): Add address to
describe_location arguments, return void.
* printcmd.c (address_info): Get context PC, pass to computed
location description.
* tracepoint.c (scope_info): Ditto.
* ax-gdb.c (trace_kludge): Export.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 975190f..a0da0db 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -516,8 +516,9 @@ struct symbol_computed_ops int (*read_needs_frame) (struct symbol * symbol); /* Write to STREAM a natural-language description of the location of - SYMBOL. */ - int (*describe_location) (struct symbol * symbol, struct ui_file * stream); + SYMBOL, in the context of ADDR. */ + void (*describe_location) (struct symbol * symbol, CORE_ADDR addr, + struct ui_file * stream); /* Tracepoint support. Append bytecodes to the tracepoint agent expression AX that push the address of the object SYMBOL. Set |