bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DWARF2


From: Show-Chung Chu
Subject: DWARF2
Date: Wed, 31 Jul 2002 10:28:36 -0600

Hi,

I am Show and I am working on a project to do the source level debugger.
I found some problem, maybe one of the export in there can help me out.
Thanks in advance!
OK, let me start to explain/show my problem in below:
   my gcc compiler version is 3.0.4, thread model is vxworks, target is
   powerpc-wrs-vxworks.
        The executable is attached below.
         (See attached file: ECELL.XB)
   I dumped the ECELL.XB by using the "READELF" tool, and I saw some of the
        const char array variables were represented differently. The output
of READELF is
        attached below.
        (See attached file: ECELL.readelf)
        The variables are declared in following attached file.
         (See attached file: cell_hl.c)
         Please read the ECELL.readelf at line no. 15105, that is the
variable "cfmrdoplonghelp"
         I think this the problem start happen.

         I thought the global variables should have a "DW_AT_location"
attribute to point the initial value,
         if it has one.

         All the variables in cell_hl.c are declared same way, but some
variables has the DW_AT_location
         to point where the value is, and some don't. For the  variables do
not DW_AT_location attribute
         how do they find the initial value?

Best Regards,
Show


Attachment: ECELL.XB
Description: Binary data

Attachment: ECELL.readelf
Description: Binary data

Attachment: cell_hl.c
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]