From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19429 invoked by alias); 11 Dec 2006 10:16:41 -0000 Received: (qmail 19420 invoked by uid 22791); 11 Dec 2006 10:16:40 -0000 X-Spam-Check-By: sourceware.org Received: from mxout.hispeed.ch (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 11 Dec 2006 10:16:30 +0000 Received: from indel.ch (84-73-11-232.dclient.hispeed.ch [84.73.11.232]) by smtp.hispeed.ch (8.12.11.20060308/8.12.6/taifun-1.0) with SMTP id kBBAGQAw029365 for ; Mon, 11 Dec 2006 11:16:26 +0100 Received: from FABI.indel.ch [192.168.1.91] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Mon, 11 Dec 2006 11:15:37 +0100 Message-Id: <5.2.0.9.1.20061211104829.0186dcc0@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 11 Dec 2006 10:16:00 -0000 To: gdb@sourceware.org From: Fabian Cenedese Subject: Wrong source location in symbols Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sourceware.org X-Return-Path: cenedese@indel.ch X-Virus-Status: Clean X-DCC-spamcheck-01.tornado.cablecom.ch-Metrics: smtp-07.tornado.cablecom.ch 1377; Body=1 Fuz1=1 Fuz2=1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00081.txt.bz2 Hi I seem to have a problem with the code loaction of symbols. gdb 6.5, gcc 4.1.0, compiled for ppc-eabi, running on WinXP Here's a snippet from the generated map file: .text 0x0000f6f4 0x41c N:/Indel-PPC/Tests/gccext3/bin41/CTaskTemplateClass.603 0x0000fa28 _TASK_CLASS_NAME_::_TASK_CLASS_NAME_(char*) ...(snip)... .text 0x00097bfc 0x14 N:/IMD/Lib41/libnosys.a(write.o) 0x00097bfc write .ctors 0x00097c10 0x98 ...(snip)... .dtors 0x00097ca8 0x10 ...(snip)... .got 0x00097cb8 PROVIDE (__STARTUP_BEGIN, .) .startup 0x00097cb8 0x12320 *(.startup) .startup 0x00097cb8 0x6c N:/Indel-PPC/Tests/gccext3/bin41/CTaskTemplateClass.603 0x00097cb8 _INI_1000__TASK_CLASS_NAME_() But when I dump the symbol tables I get this: [1001] T 0xeb20 _ZN17_TASK_CLASS_NAME_6ActionEv section .text _TASK_CLASS_NAME_::Action() write.c [1002] T 0xebdc _ZN17_TASK_CLASS_NAME_D0Ev section .text _TASK_CLASS_NAME_::~_TASK_CLASS_NAME_() write.c ...(snip)... [3549] B 0x98d44 Reg_INI_0101_INOS_TGT section .bss write.c [3550] B 0x98d50 Reg_INI_0145_INOS_TGT section .bss write.c [3551] B 0x98d5c Reg_INI_0205_INOS_TGT section .bss write.c [3552] B 0x98d68 Reg_INI_0160_INOS_TGT section .bss write.c ...(snip)... [3567] T 0x99bec _Z27_INI_1000__TASK_CLASS_NAME_v section .startup _INI_1000__TASK_CLASS_NAME_() write.c [3575] T 0x9a530 _Z18_INI_0002_INCO_NETv section .startup _INI_0002_INCO_NET() write.c [3576] T 0x9a5fc _Z18_INI_0150_INCO_NETv section .startup _INI_0150_INCO_NET() write.c [3577] T 0x9a744 _Z27_INI_0002_CSAMDeviceSioLoadv section .startup _INI_0002_CSAMDeviceSioLoad() write.c No matter where they are defined, the symbols get as location the (wrong) file write.c, so the last valid file from the .text section. I tried with both -gstabs or -gdwarf-2, but that didn't change anything. I also tried with forward and back slashes in the paths of the compiled files, no luck. Where's the code in gdb that would set these locations? Thanks bye Fabi