On 12/24/18 6:23 AM, Fabian Wolff wrote: > Control: tags -1 + upstream > > Dear Tj, > > thanks for reporting this problem. I am hereby forwarding it to dwarfdump's > upstream developer, David Anderson. > > David, could you have a look at this? Thank you! > > Best regards, and happy holidays, > Fabian > > On 12/20/18 10:18 PM, Tj wrote: >> Package: dwarfdump >> Version: 20180809-1 >> Severity: important >> >> Whilst using dwarfdump (amd64 build) on MIPS ELF files I discovered that >> adding any >> command-line options (such as '-v' or '-x abi=mips') somehow prevents >> the program from writing any output. >> >> I then tried it on x86_64 ELF files, and on another system, and got someone >> else to verify it. >> >> This affects (at least) the package versions 20180129-1 and 20180809-1. >> >> I then fetched and built the upstream source and it exhibits the same >> problem. >>
TJ reported this to me some days ago. My response to him at that time was...almost correct... and he now prints what he wanted. Tj assumed that dwarfdump -x abi=mips a.out will print frame data. It won't because one must pass -a, -f or -F to dwarfdump to request it print frame data and only frame data uses the abi designation to name registers. If any options present (other than the object name) then the base default set of things-to-print is not set, as dwarfdump assumes one will be specifying what to print or check somehow (with -a, -f, or any number of other options). Doing simply dwarfdump -v a.out prints nothing for the same reason. So the problems above are really all the same issue: Any - or -- option means you have to specify what to print or check, there is no default action. This was not always true. For example a (randomly chosen) look at a 2006 dwarfdump shows that at that time just adding -v or -x abi=mips did -not- have the effect of removing the base default set of things-to-print. But the set of options has grown enormously in complexity since then. It no longer makes sense (IMO) to restore that 2006 behavior. I simply plan to document the situation in the man page and in dwarfdump/NEWS (likely not today). Happy New Year to all. David Anderson -- He attacked everything in life with a mix of extraordinary genius and naive incompetence, and it was often difficult to tell which was which. -- Douglas Adams