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_variables.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ddb/db_variables.c') diff --git a/ddb/db_variables.c b/ddb/db_variables.c index 4442ccbc..0fd9bad0 100644 --- a/ddb/db_variables.c +++ b/ddb/db_variables.c @@ -61,6 +61,8 @@ struct db_variable db_vars[] = { { "thread", 0, db_set_default_thread }, { "task", 0, db_get_task_thread, 1, 2, -1, -1 }, + { "map", 0, db_get_map, + 1, 1, -1, -1 }, { "work", &db_work[0], FCN_NULL, 1, 1, 0, DB_NWORK-1 }, { "arg", 0, db_arg_variable, -- cgit v1.2.3