[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
readelf - process multiple options to -w
From: |
Nick Clifton |
Subject: |
readelf - process multiple options to -w |
Date: |
13 Oct 2001 10:55:54 +0100 |
Hi Guys,
I am applying the following patch to readelf to allow it process
multiple options to the -w switch. Thus for example if you want to
display the debug information in the .debug_info and the .debug_line
sections you can now go "readelf -wli" as well as "readelf -wl -wi".
Cheers
Nick
2001-10-13 Nick Clifton <address@hidden>
* readelf.c (parse_args): Handle multiple options to the -w
switch.
Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.127
diff -p -w -r1.127 readelf.c
*** readelf.c 2001/10/12 09:23:29 1.127
--- readelf.c 2001/10/13 09:58:17
*************** parse_args (argc, argv)
*** 2202,2209 ****
do_debugging = 1;
else
{
do_debugging = 0;
! switch (optarg[0])
{
case 'i':
case 'I':
--- 2202,2213 ----
do_debugging = 1;
else
{
+ unsigned int index = 0;
+
do_debugging = 0;
!
! while (optarg[index])
! switch (optarg[index++])
{
case 'i':
case 'I':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- readelf - process multiple options to -w,
Nick Clifton <=