diff options
author | Justus Winter <justus@gnupg.org> | 2017-08-12 13:29:56 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-08-12 13:29:56 +0200 |
commit | 0b96b98294901442de8196e21fff7c5fd79750ef (patch) | |
tree | 984ca7c720f9f22eb24e94452f3bed1a37935c85 /ddb/db_variables.c | |
parent | 2996a4cfe987e6feb7c705354908ae2e59366d65 (diff) | |
download | gnumach-0b96b98294901442de8196e21fff7c5fd79750ef.tar.gz gnumach-0b96b98294901442de8196e21fff7c5fd79750ef.tar.bz2 gnumach-0b96b98294901442de8196e21fff7c5fd79750ef.zip |
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.
Diffstat (limited to 'ddb/db_variables.c')
-rw-r--r-- | ddb/db_variables.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |