aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-02-05 17:20:38 +1030
committerAlan Modra <amodra@gmail.com>2015-02-05 17:50:37 +1030
commit7cc78d0780858b2f4a76c2867351cbfbb339c327 (patch)
tree4184050b2687c00b28dbf9f9e56e7f3e0f485394 /binutils
parent54ebc97a0dcfd178839462f9260c91978aaab90a (diff)
downloadgdb-7cc78d0780858b2f4a76c2867351cbfbb339c327.zip
gdb-7cc78d0780858b2f4a76c2867351cbfbb339c327.tar.gz
gdb-7cc78d0780858b2f4a76c2867351cbfbb339c327.tar.bz2
Don't refer to optarg in dwarf.c function
This one is passed in optarg as its argument. PR binutils/17926 * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index d5cec77..5182809 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-05 Alan Modra <amodra@gmail.com>
+
+ PR binutils/17926
+ * dwarf.c (dwarf_select_sections_by_letters): Don't refer to optarg.
+
2015-02-04 Nick Clifton <nickc@redhat.com>
PR binutils/17531
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index b65bb7b..aa19725 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -7414,7 +7414,7 @@ dwarf_select_sections_by_letters (const char *letters)
break;
default:
- warn (_("Unrecognized debug option '%s'\n"), optarg);
+ warn (_("Unrecognized debug option '%s'\n"), letters);
break;
}
}