This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/4915] Incorrect code for accessing function argument
- From: "wcohen at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 10 Aug 2007 21:43:10 -0000
- Subject: [Bug translator/4915] Incorrect code for accessing function argument
- References: <20070810201910.4915.wcohen@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wcohen at redhat dot com 2007-08-10 21:43 -------
Got the raw dwarf information using the following commands:
readelf --debug-dump /tmp/stap_rhel4/vmlinux-2.6.23-rc2 >
/tmp/stap_rhel4/vmlinux-2.6.23-rc2.debug_info
readelf --debug-dump /boot/vmlinux-2.6.23-rc2 >
/tmp/stap_rhel5/vmlinux-2.6.23-rc2.debug_info
It looks like the RHEL4 gcc compiler is generating some questionable debuginfo.
RHEL4 version
<1><61d544>: Abbrev Number: 83 (DW_TAG_subprogram)
DW_AT_sibling : <61d59c>
DW_AT_external : 1
DW_AT_name : (indirect string, offset: 0x393cc): sys_open
DW_AT_decl_file : 1
DW_AT_decl_line : 1048
DW_AT_prototyped : 1
DW_AT_type : <610a64>
DW_AT_low_pc : 0xc017384f
DW_AT_high_pc : 0xc017386b
DW_AT_frame_base : 2 byte block: 74 4 (DW_OP_breg4: 4)
<2><61d561>: Abbrev Number: 84 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0x510e3): filename
DW_AT_decl_file : 1
DW_AT_decl_line : 1047
DW_AT_type : <61121a>
DW_AT_location : 1 byte block: 52 (DW_OP_reg2)
<2><61d56f>: Abbrev Number: 84 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0xcdf17): flags
DW_AT_decl_file : 1
DW_AT_decl_line : 1047
DW_AT_type : <610a35>
DW_AT_location : 1 byte block: 51 (DW_OP_reg1)
<2><61d57d>: Abbrev Number: 84 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0x5c9): mode
DW_AT_decl_file : 1
DW_AT_decl_line : 1047
DW_AT_type : <610a35>
DW_AT_location : 1 byte block: 50 (DW_OP_reg0)
<2><61d58b>: Abbrev Number: 91 (DW_TAG_variable)
DW_AT_name : ret
DW_AT_decl_file : 1
DW_AT_decl_line : 1049
DW_AT_type : <610a64>
DW_AT_location : 0xa6de1 (location list)
RHEL5
<1><65ecd8>: Abbrev Number: 83 (DW_TAG_subprogram)
DW_AT_sibling : <65ed34>
DW_AT_external : 1
DW_AT_name : (indirect string, offset: 0x3982d): sys_open
DW_AT_decl_file : 1
DW_AT_decl_line : 1048
DW_AT_prototyped : 1
DW_AT_type : <652c64>
DW_AT_low_pc : 0xc046ca3b
DW_AT_high_pc : 0xc046ca59
DW_AT_frame_base : 0x9402e (location list)
<2><65ecf6>: Abbrev Number: 89 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0x51af4): filename
DW_AT_decl_file : 1
DW_AT_decl_line : 1047
DW_AT_type : <6533b6>
DW_AT_location : 2 byte block: 91 0 (DW_OP_fbreg: 0)
<2><65ed05>: Abbrev Number: 89 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0xd60b6): flags
DW_AT_decl_file : 1
DW_AT_decl_line : 1047
DW_AT_type : <652c35>
DW_AT_location : 2 byte block: 91 4 (DW_OP_fbreg: 4)
<2><65ed14>: Abbrev Number: 89 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0x836d): mode
DW_AT_decl_file : 1
DW_AT_decl_line : 1047
DW_AT_type : <652c35>
DW_AT_location : 2 byte block: 91 8 (DW_OP_fbreg: 8)
<2><65ed23>: Abbrev Number: 95 (DW_TAG_variable)
DW_AT_name : ret
DW_AT_decl_file : 1
DW_AT_decl_line : 1049
DW_AT_type : <652c64>
DW_AT_location : 0x9404e (location list)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4915
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.