summaryrefslogtreecommitdiff
path: root/libhurd-mm
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-11-18 14:24:58 +0100
committerNeal H. Walfield <neal@gnu.org>2008-11-18 14:24:58 +0100
commitcadfdbcc0128ca382f619d52a837167c6dc20782 (patch)
treeb68cfab9e4291c1f355269e6fed312cbe6bd968b /libhurd-mm
parentdaefcff069e290d474d1c1c92ee47a2a96d6bc32 (diff)
Improve as_dump output.
2008-11-18 Neal H. Walfield <neal@gnu.org> * as-dump.c (do_walk): Don't print the prefix if it is the empty string. (as_dump_from): Print a backtrace. Don't actually dump the address space by default.
Diffstat (limited to 'libhurd-mm')
-rw-r--r--libhurd-mm/ChangeLog7
-rw-r--r--libhurd-mm/as-dump.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/libhurd-mm/ChangeLog b/libhurd-mm/ChangeLog
index b8e3068..dc6fecc 100644
--- a/libhurd-mm/ChangeLog
+++ b/libhurd-mm/ChangeLog
@@ -1,5 +1,12 @@
2008-11-18 Neal H. Walfield <neal@gnu.org>
+ * as-dump.c (do_walk): Don't print the prefix if it is the empty
+ string.
+ (as_dump_from): Print a backtrace. Don't actually dump the
+ address space by default.
+
+2008-11-18 Neal H. Walfield <neal@gnu.org>
+
* anonymous.c (fault): Add code to prefault the pages. Leave
disabled.
diff --git a/libhurd-mm/as-dump.c b/libhurd-mm/as-dump.c
index bdedbc4..839013e 100644
--- a/libhurd-mm/as-dump.c
+++ b/libhurd-mm/as-dump.c
@@ -77,7 +77,7 @@ do_walk (activity_t activity, int index,
/* Cap is there but the object has been deallocated. */
return;
- if (output_prefix)
+ if (output_prefix && *output_prefix)
S_PRINTF ("%s: ", output_prefix);
for (i = 0; i < indent; i ++)
S_PRINTF (".");
@@ -183,5 +183,9 @@ do_walk (activity_t activity, int index,
void
as_dump_from (activity_t activity, struct cap *root, const char *prefix)
{
- do_walk (activity, -1, root, ADDR (0, 0), 0, true, prefix);
+ debug (0, "Dumping address space.");
+ backtrace_print ();
+
+ if (0)
+ do_walk (activity, -1, root, ADDR (0, 0), 0, true, prefix);
}