From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28333 invoked by alias); 25 Jul 2002 23:33:02 -0000 Mailing-List: contact insight-prs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-prs-owner@sources.redhat.com Received: (qmail 28240 invoked by uid 71); 25 Jul 2002 23:33:01 -0000 Resent-Date: 25 Jul 2002 23:33:01 -0000 Resent-Message-ID: <20020725233301.28237.qmail@sources.redhat.com> Resent-From: insight-gnats@sources.redhat.com (GNATS Filer) Resent-To: nobody@sources.redhat.com Resent-Cc: insight-prs@sources.redhat.com Resent-Reply-To: insight-gnats@sources.redhat.com, cheng@powertv.com Received: (qmail 27245 invoked by uid 61); 25 Jul 2002 23:31:36 -0000 Message-Id: <20020725233136.27244.qmail@sources.redhat.com> Date: Thu, 25 Jul 2002 16:33:00 -0000 From: cheng@powertv.com Reply-To: cheng@powertv.com To: insight-gnats@sources.redhat.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: insight/174: Cannot see source code when using DWARF or DWARF-2 X-SW-Source: 2002-q3/txt/msg00006.txt.bz2 List-Id: >Number: 174 >Category: insight >Synopsis: Cannot see source code when using DWARF or DWARF-2 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Jul 25 16:33:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: cheng@powertv.com >Release: unknown-1.0 >Organization: >Environment: Cywgin 1.3.10 GDB 5.2.1 with Insight frontend. sparc-elf GCC 2.9.5. Pentium III 850 Mhz PC with 256 MB of memory running Windows 2000 Service Pack 2. >Description: When I compile the attached dwarf.c file with "sparc-elf-gcc -c -gdwarf-2 dwarf.c" I get the attached dwarf.o file. Then I launch sparc-elf-gdb.exe and it goes into assembly language mode. I also see "main" in the listbox that lists all the functions in GDB. However, I cannot switch to source mode. If I click on the file/module listbox, I can select dwarf.c and GDB will show the source lines. However, I cannot set any breakpoints in this mode. I can set breakpoints if I click on "main" in the function listbox and switch to assembly mode. This problem also happens if I compiler dwarf.c with -gdwarf instead of -gdwarf-2. If I use -g1 instead, then GDB can automatically go into source mode after loading dwarf.o and I can set breakpoints without any problem. I don't know much about DWARF, DWARF-2 or GDB and am wondering if this problem is due to the compiler (or linker) generating the wrong DWARF-2 information or if it is a problem of GDB/Insight. Incidentally, I can launch GDB in text only mode (-nw) and then set breakpoint on a line number by entering the commands manually. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/x-zip-compressed; name="dwarf.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="dwarf.zip" UEsDBBQAAgAIALOC+SwwWXAjSwMAAFgIAAAHAAAAZHdhcmYub5VVzU8TQRR/0+3Hli2ypagkJVgT TJHAErDRgIbvUkgQo+LHyWXbbj8SWpptQUhIhLsm1AsnDAdOXjT6BzQmJnokJl6NiRcPHtCgV53Z nV1m1yXRl7yZ93vz9vdm3nzso+TcNPIgsASBR28t4Rb0LqG33RABcfdLY/swvjf1I743sy3G0EG8 cXQQaBw9FYGv9ywSfEjwh0DjcNsDwZfYL26CnmXr3Wd+66vOJRrp0IYaOgVBtYXANqztNPHUVHNn X1A9R2xFn1XUi379bAKERf80+1DRclLGCPd5mO70Cf0ZB24zP8OUYcTxUf4CHxHCqBWJfgCPhFBk NMTxw8JVIR6ajZCBsSZcEx8YztmIB0NvwgZ9XRgKwogA4G8BAXv1FC/0NYAXmdPuz/TX1FKlCqn5 O7HJ2KA01Jcvr1S05b6hIW2gMsDuAugf76CSUiyDsWE71paVOUXLZ0Cvyg5XfwsErxr4GVd/D941 QBwZ9NRr3nVAXsOugK9YroHX5yeOfb197ssUFA2QnzCfNaaM5TXWCT05lQ66GqshO2ZNNjU5ORzr xuu66LIskKrrpZqSxn1NM/qCadXUtRpIWaWmgJSuVkFSC3JOU0oqSJq6pDAwq6ZX8vJSsWwOsQ7D V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