This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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] | |
Hi, I am trying to test C++ static class variable, inherited class, and DWARF2 debugging information. I made a very simple/short programs for testing purpose. My compiler version is 3.0.4, and thread model is vxworks. I had two classes, one is base class named "parent", and the other one is derived from the base class named "Son". I followed the VxWorks manual to do all the necessary work to invoke the constructor of the static variables, and it worked just as I expected. The problem I had was if the base class was invoked from the main(), the constructor of the base class will run, but it sounded that the local variable did not provided the DW_AT_location debugging information, so the variable never got right updated. (This is happened in parent.c, the local variable is "i") All the source file, header file, dump output file, and the ELF DWARF2 image are attached below. (See attached file: testdwarf2.gcc)(See attached file: son.h)(See attached file: parent.h) (See attached file: test2.c)(See attached file: parent.c)(See attached file: son.c)(See attached file: test.c)(See attached file: test1.c)(See attached file: __testdwarf2.gcccd.c) Thank for your help. S. C. Chu
Attachment:
testdwarf2.gcc
Description: Binary data
Attachment:
son.h
Description: Binary data
Attachment:
parent.h
Description: Binary data
Attachment:
test2.c
Description: Binary data
Attachment:
parent.c
Description: Binary data
Attachment:
son.c
Description: Binary data
Attachment:
test.c
Description: Binary data
Attachment:
test1.c
Description: Binary data
Attachment:
__testdwarf2.gcccd.c
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |