This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug pascal/12375] New: Patch for handling class-constants (fpc)


http://sourceware.org/bugzilla/show_bug.cgi?id=12375

           Summary: Patch for handling class-constants (fpc)
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pascal
        AssignedTo: unassigned@sourceware.org
        ReportedBy: joost@cnoc.nl


Created attachment 5184
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5184
patch for class constants in Pascal

Attached patch fixes a segfault when printing class-constants. 

value_from_longest can't be used here, because some (all?) constants don't have
a valid valaddr, because the constant isn't stored in a memory-location.

Wit this patch applied, the same mechanism to write out class constants is used
as in used for c++.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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