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 9 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 3f3aaf4e95972f6d6393cbff0a4652f4ee2c0dbf Author: Richard Lowe <firstname.lastname@example.org> Date: 2015-01-09T18:28:14.000Z 5510 elfdump doesn't print the member header before pr_reg Reviewed by: Dan McDonald <email@example.com> Reviewed by: Josef 'Jeff' Sipek <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>