kernel - ddb: Print raw instruction pointers in ddb backtrace.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 1 Dec 2011 19:11:58 +0000 (11:11 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Thu, 1 Dec 2011 19:11:58 +0000 (11:11 -0800)
sys/platform/pc32/i386/db_trace.c
sys/platform/pc64/x86_64/db_trace.c

index 18a484b..6654ad3 100644 (file)
@@ -163,6 +163,7 @@ db_print_stack_entry(const char *name, int narg, char **argnp, int *argp,
        }
        db_printf(") at ");
        db_printsym(callpc, DB_STGY_PROC);
+        db_printf(" %p ",  (void*) callpc);
        db_printf("\n");
 }
 
index 3f55442..74c83d4 100644 (file)
@@ -210,7 +210,8 @@ db_print_stack_entry(const char *name, int narg, char **argnp, long *argp,
                        db_printf(",");
        }
        db_printf(") at ");
-       db_printsym(callpc, DB_STGY_PROC);
+       db_printsym(callpc, DB_STGY_PROC);      
+       db_printf(" %p ",  (void*) callpc);
        db_printf("\n");
 }