This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/859: dwarf2 CIE instruction missing operands


>Number:         859
>Category:       gdb
>Synopsis:       dwarf2 CIE instruction missing operands
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 02 14:48:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     malachi000@hotmail.com
>Release:        GDB 5.2
>Organization:
>Environment:
Solaris 2.5/2.8
>Description:
Per the Dwarf2 standard, the CIE instructions DW_CFA_undefined and DW_CFA_same_value each are supposed to take a uleb128 register number as an argument.  In dwarf2cfi.c:execute_cfa_program, they are not read and the insn_ptr is not advanced properly, corrupting the rest of the reads.

It does not appear to be fixed in the 5.3 branch.
>How-To-Repeat:
.
>Fix:
In execute_cfa_program, insert read_uleb128 (objfile->obfd, &insn_ptr) for cases DW_CFA_undefined and DW_CFA_same_value.

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]