This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/13841] New: missing debug info for _Complex function arguments
- From: "bob dot wilson at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2004 23:45:04 -0000
- Subject: [Bug debug/13841] New: missing debug info for _Complex function arguments
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Today (23 Jan 2004) I changed the Xtensa port to define SPLIT_COMPLEX_ARGS so
that _Complex function arguments are split into separate real and imaginary
parts. After that change, I noticed that I couldn't see any _Complex arguments
from GDB. The following input will demonstrate the problem:
_Complex int cmplx (_Complex int arg) { return arg; }
int main (void) {
_Complex int c = (1,2);
c = cmplx(c);
return 0;
}
With the default of DWARF2 for this target, the "formal parameter" TAG for "arg"
is produced but it has no AT_location entry. If I use "-gstabs", there is no
".stabs" entry at all for "arg".
I'm not aware of anything specific to the Xtensa port that would cause this, so
the same problem is likely to occur with other ports that define
SPLIT_COMPLEX_ARGS (currently alpha and rs6000/AIX).
--
Summary: missing debug info for _Complex function arguments
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bob dot wilson at acm dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: xtensa-unknown-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13841