summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-05-25 00:18:46 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:14 +0200
commit9be85650fa6e23534758a4d6e41156282bd03343 (patch)
tree5e19e24d31ec2237e64db55bf6b24cbd50262086 /ddb
parentb4b028498713d9b4a07d0209dadcf75853c33402 (diff)
2008-05-25 Andrei Barbu <teval0@gmail.com>
* ddb/db_aout.c (aout_db_symbol_values): Add stab parameter. * ddb/db_sym.h (db_sym_switch): Add stab parameter to symbol_values member. (X_db_symbol_values): Pass stab parameter to symbole_values function.
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_aout.c3
-rw-r--r--ddb/db_sym.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/ddb/db_aout.c b/ddb/db_aout.c
index b55a4a1..42fa6f7 100644
--- a/ddb/db_aout.c
+++ b/ddb/db_aout.c
@@ -376,7 +376,8 @@ aout_db_search_symbol(symtab, off, strategy, diffp)
* Return the name and value for a symbol.
*/
void
-aout_db_symbol_values(sym, namep, valuep)
+aout_db_symbol_values(stab, sym, namep, valuep)
+ db_symtab_t *stab;
db_sym_t sym;
char **namep;
db_expr_t *valuep;
diff --git a/ddb/db_sym.h b/ddb/db_sym.h
index 216e327..453ac7f 100644
--- a/ddb/db_sym.h
+++ b/ddb/db_sym.h
@@ -181,6 +181,7 @@ extern struct db_sym_switch {
);
void (*symbol_values)(
+ db_symtab_t *stab,
db_sym_t sym,
char **namep,
db_expr_t *valuep
@@ -196,7 +197,7 @@ extern struct db_sym_switch {
#define X_db_lookup(s,n) x_db[(s)->type].lookup(s,n)
#define X_db_search_symbol(s,o,t,d) x_db[(s)->type].search_symbol(s,o,t,d)
#define X_db_line_at_pc(s,p,f,l,a) x_db[(s)->type].line_at_pc(s,p,f,l,a)
-#define X_db_symbol_values(s,p,n,v) x_db[(s)->type].symbol_values(p,n,v)
+#define X_db_symbol_values(s,p,n,v) x_db[(s)->type].symbol_values(s,p,n,v)
extern boolean_t db_line_at_pc(
db_sym_t sym,