elfdump doesn't print the member header before pr_reg
There are a couple of missing variable initializations in elfdump. The most important one is that dump_prgregset passes stack junk when calling indent_enter, and thus does not (necessarily) print the member header before printing the member data.
The other is that that we try to decode pr_what even if we haven't been able to read pr_why. This is very unlikely to happen in practice, but we should fix it anyway.
(these aren't the only initialization problems in elfdump, but they are the only ones in corenote.c, which is where I was having to look to debug the missing member name).
Updated by Electric Monk about 6 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 3f3aaf4e95972f6d6393cbff0a4652f4ee2c0dbf Author: Richard Lowe <email@example.com> Date: 2015-01-09T18:28:14.000Z 5510 elfdump doesn't print the member header before pr_reg Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Josef 'Jeff' Sipek <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>