stack: Show and handle -r,--raw even without USE_DEMANGLE.
authorMark Wielaard <mjw@redhat.com>
Thu, 2 Jan 2014 23:06:31 +0000 (00:06 +0100)
committerMark Wielaard <mjw@redhat.com>
Thu, 2 Jan 2014 23:06:50 +0000 (00:06 +0100)
Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/stack.c

index 8f1df36..d37cd1b 100644 (file)
@@ -1,5 +1,11 @@
 2014-01-02  Mark Wielaard  <mjw@redhat.com>
 
+       * stack.c (show_raw): Declare unconditionally.
+       (parse_opt): Handle '-r' unconditionally.
+       (main): Show "raw" option even without USE_DEMANGLE.
+
+2014-01-02  Mark Wielaard  <mjw@redhat.com>
+
        * stack.c (print_frames): Print 0x before build-id hex-offset.
 
 2014-01-02  Mark Wielaard  <mjw@redhat.com>
index 623dc5f..fdf4b07 100644 (file)
@@ -47,9 +47,7 @@ static bool show_build_id = false;
 static bool show_source = false;
 static bool show_one_tid = false;
 static bool show_quiet = false;
-#ifdef USE_DEMANGLE
 static bool show_raw = false;
-#endif
 static bool show_modules = false;
 
 static int maxframes = 2048;
@@ -395,11 +393,9 @@ parse_opt (int key, char *arg __attribute__ ((unused)),
       show_quiet = true;
       break;
 
-#ifdef USE_DEMANGLE
     case 'r':
       show_raw = true;
       break;
-#endif
 
     case '1':
       show_one_tid = true;
@@ -517,10 +513,8 @@ main (int argc, char **argv)
        N_("Show all additional information (activation, module and source)"), 0 },
       { "quiet", 'q', NULL, 0,
        N_("Do not resolve address to function symbol name"), 0 },
-#ifdef USE_DEMANGLE
       { "raw", 'r', NULL, 0,
        N_("Show raw function symbol names, do not try to demangle names"), 0 },
-#endif
       { "build-id",  'b', NULL, 0,
        N_("Show module build-id, load address and pc offset"), 0 },
       { NULL, '1', NULL, 0,