X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_debug.c;h=85bd8d22300ee734d5f6a593a2d0f496b7ad5f83;hp=c2401e878e0ed8ff0b1bfc50f942a893297e6921;hb=3e937e5468169b8183a22a90f6d07ff370abde0c;hpb=fc4b7290edb57a3528a26f95c4478fe07d45a581 diff --git a/palacios/src/palacios/vmm_debug.c b/palacios/src/palacios/vmm_debug.c index c2401e8..85bd8d2 100644 --- a/palacios/src/palacios/vmm_debug.c +++ b/palacios/src/palacios/vmm_debug.c @@ -406,17 +406,21 @@ void v3_print_backtrace(struct guest_info * core) { tmp_ptr += 3; // pass over symbol type if (sym_offset > rip_val) { - char * end_ptr = strchr(sym_ptr, '\n'); - - if (end_ptr) { - *end_ptr = 0; // null terminate symbol... + if (sym_ptr) { + char * end_ptr = strchr(sym_ptr, '\n'); + + if (end_ptr) { + *end_ptr = 0; // null terminate symbol... + } + sym_name = sym_ptr; + } else { + sym_name = NULL; } - - sym_name = sym_ptr; break; } sym_ptr = tmp_ptr; + { char * end_ptr2 = strchr(tmp_ptr, '\n');