Resolve crash-stack build issue in emulator 90/104290/2 accepted/tizen/3.0/common/20161213.164254 accepted/tizen/3.0/ivi/20161213.064926 accepted/tizen/3.0/mobile/20161213.064846 accepted/tizen/3.0/tv/20161213.064858 accepted/tizen/3.0/wearable/20161213.064912 submit/tizen_3.0/20161213.043921
authorKunhoon Baik <knhoon.baik@samsung.com>
Tue, 13 Dec 2016 04:27:31 +0000 (13:27 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Tue, 13 Dec 2016 04:35:14 +0000 (13:35 +0900)
32 bit: Add stub function for _crash_stack_print_regs
64 bit: correct output format specifier

Change-Id: I4d95ab2ebee9c86a4fa05015f6ca5b3ccc8ea151

src/crash-stack/crash-stack-stub.c
src/crash-stack/crash-stack-x86_64.c

index 610b1f6..eef97ea 100644 (file)
@@ -9,3 +9,9 @@ void _crash_stack_set_ptrace_registers(void *regbuf)
 {
 }
 
+void _crash_stack_print_regs(FILE* outputfile)
+{
+       fprintf(outputfile, "\nRegister Information\n");
+       fprintf(outputfile,"\n");
+}
+
index 1690c7a..8956d30 100644 (file)
@@ -46,16 +46,16 @@ void _crash_stack_set_ptrace_registers(void *regbuf)
 void _crash_stack_print_regs(FILE* outputfile)
 {
 #define _PRINT_REGISTERS(a,b,c)                                                \
-       fprintf(outputfile, "%3s: %016lx %3s: %016lx %3s: %016lx\n", \
+       fprintf(outputfile, "%3s: %016llx %3s: %016llx %3s: %016llx\n", \
                #a, g_registers.a, \
                #b, g_registers.b, \
                #c, g_registers.c)
        fprintf(outputfile, "\nRegister Information\n");
 #ifdef __x86_64__
-       fprintf(outputfile, "rip: %04lx:[<%016lx>]\n",
+       fprintf(outputfile, "rip: %04llx:[<%016llx>]\n",
                g_registers.cs & 0xffff,
                g_registers.rip);
-       fprintf(outputfile, "rsp: %04lx:%016lx eflags: %08lx\n",
+       fprintf(outputfile, "rsp: %04llx:%016llx eflags: %08llx\n",
                g_registers.ss,
                g_registers.rsp,
                g_registers.eflags);