From 0b96b98294901442de8196e21fff7c5fd79750ef Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Sat, 12 Aug 2017 13:29:56 +0200 Subject: ddb: Add magic variable $mapXX. Maps '$mapXX' to a VM map structure address. @var{xx} is a task identification number printed by a @code{show all tasks} command. * ddb/db_task_thread.c (db_get_map): New function. * ddb/db_task_thread.h (db_get_map): New declaration. * ddb/db_variables.c (db_vars): Add new variable. * doc/mach.texi: Document this. --- ddb/db_task_thread.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ddb/db_task_thread.h') diff --git a/ddb/db_task_thread.h b/ddb/db_task_thread.h index cbb36802..55ab4f53 100644 --- a/ddb/db_task_thread.h +++ b/ddb/db_task_thread.h @@ -64,4 +64,10 @@ db_get_task_thread( int flag, db_var_aux_param_t ap); +extern void +db_get_map(struct db_variable *vp, + db_expr_t *valuep, + int flag, + db_var_aux_param_t ap); + #endif /* _DDB_DB_TASK_THREAD_H_ */ -- cgit v1.2.3