From 8bfff021143c52d1d83b544f846bc705e20e02c2 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 14 Feb 2015 14:33:43 -0500 Subject: [PATCH] debugger templates - include address. --- bin/template.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/template.cpp b/bin/template.cpp index ff927a5..9792156 100644 --- a/bin/template.cpp +++ b/bin/template.cpp @@ -210,8 +210,8 @@ namespace Debug { unsigned s = (type & 0x0f00) >> 8; for (unsigned i = 0; i < indent; ++i) fputc('>',stdout); - fputs(e->name->c_str(),stdout); - for(unsigned i = indent + e->name->length(); i < 40; ++i) fputc(' ',stdout); + printf("%08x %s", address + offset, e->name->c_str()); + for(unsigned i = indent + e->name->length(); i < 32; ++i) fputc(' ',stdout); // todo -- support arrays // todo -- pretty print values (boolean, oserr, ostype, etc.)