summaryrefslogtreecommitdiffstats
path: root/src/addr2line.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2015-05-20 12:10:47 +0200
committerMark Wielaard <[email protected]>2015-05-27 17:17:51 +0200
commit472890f580a83f1511e1ad83c10ea2b1d364cc8d (patch)
treeec33bcd236cb35a4cf68c5fa599d9e323df4facb /src/addr2line.c
parent77482c4bf63a92166191e0b8531e9781f6fddbf3 (diff)
addr2line: Split options in input and output format groups.
This makes it clear that -j, --section=NAME is about how input is treated, not how the output is formatted. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/addr2line.c')
-rw-r--r--src/addr2line.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/addr2line.c b/src/addr2line.c
index 281a91e1..c7ff7f71 100644
--- a/src/addr2line.c
+++ b/src/addr2line.c
@@ -54,7 +54,11 @@ ARGP_PROGRAM_BUG_ADDRESS_DEF = PACKAGE_BUGREPORT;
/* Definitions of arguments for argp functions. */
static const struct argp_option options[] =
{
- { NULL, 0, NULL, 0, N_("Output selection options:"), 2 },
+ { NULL, 0, NULL, 0, N_("Input format options:"), 2 },
+ { "section", 'j', "NAME", 0,
+ N_("Treat addresses as offsets relative to NAME section."), 0 },
+
+ { NULL, 0, NULL, 0, N_("Output format options:"), 3 },
{ "basenames", 's', NULL, 0, N_("Show only base names of source files"), 0 },
{ "absolute", 'A', NULL, 0,
N_("Show absolute file names using compilation directory"), 0 },
@@ -62,8 +66,6 @@ static const struct argp_option options[] =
{ "symbols", 'S', NULL, 0, N_("Also show symbol or section names"), 0 },
{ "symbols-sections", 'x', NULL, 0, N_("Also show symbol and the section names"), 0 },
{ "flags", 'F', NULL, 0, N_("Also show line table flags"), 0 },
- { "section", 'j', "NAME", 0,
- N_("Treat addresses as offsets relative to NAME section."), 0 },
{ "inlines", 'i', NULL, 0,
N_("Show all source locations that caused inline expansion of subroutines at the address."),
0 },