Bug 1264532

Summary: pahole output is ugly
Product: [Fedora] Fedora Reporter: Tom Tromey <tom>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: gbenson, jan.kratochvil, palves, pmuldoon, sergiodj, tom
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 7.9.1-19.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-24 08:22:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tom Tromey 2015-09-18 17:34:23 UTC
I compiled this with -g:

pokyo. cat r.c
struct x {
  int a;
  float b;
  char c;
};

struct x x;


Then in gdb I used pahole.  The output is pretty ugly, I suppose
fallout from making it python3 compatible.

(gdb) pahole struct x
              
struct x {
 /*   0   4 */
  
int a
 /*   4   4 */
  
float b
 /*   8   1 */
  
char c
  /* XXX 24 bit hole, try to pack */
              
} 

Making it more like the real pahole would be nice.
That's how it used to work.

pokyo. pahole --class_name=x r.o
struct x {
	int                        a;                    /*     0     4 */
	float                      b;                    /*     4     4 */
	char                       c;                    /*     8     1 */

	/* size: 12, cachelines: 1, members: 3 */
	/* padding: 3 */
	/* last cacheline: 12 bytes */
};

Comment 1 Fedora Update System 2015-09-18 19:37:13 UTC
gdb-7.9.1-19.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16181

Comment 2 Fedora Update System 2015-09-18 19:38:05 UTC
gdb-7.10-23.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16182

Comment 3 Fedora Update System 2015-09-20 14:58:14 UTC
gdb-7.10-23.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update gdb'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16182

Comment 4 Fedora Update System 2015-09-20 15:22:02 UTC
gdb-7.10-23.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-09-20 16:50:14 UTC
gdb-7.9.1-19.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update gdb'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16181

Comment 6 Fedora Update System 2015-09-24 08:22:07 UTC
gdb-7.9.1-19.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.