summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2014-01-03 00:06:31 +0100
committerMark Wielaard <mjw@redhat.com>2014-01-03 00:06:50 +0100
commitda91c5bb6997aa562d82ed964ab798bd6c7ac8cd (patch)
treeef8b73d3679c8e9773a8d64f7b60695b453bbff5
parent36490c9e861b6ba93d839d2c09f6dc66d60ed87e (diff)
stack: Show and handle -r,--raw even without USE_DEMANGLE.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
-rw-r--r--src/ChangeLog6
-rw-r--r--src/stack.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8f1df367..d37cd1bb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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>
diff --git a/src/stack.c b/src/stack.c
index 623dc5f0..fdf4b074 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -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,