public inbox for insight-prs@sourceware.org help / color / mirror / Atom feed
From: cheng@powertv.com To: insight-gnats@sources.redhat.com Subject: insight/174: Cannot see source code when using DWARF or DWARF-2 Date: Thu, 25 Jul 2002 16:33:00 -0000 [thread overview] Message-ID: <20020725233136.27244.qmail@sources.redhat.com> (raw) >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 TJHAErDRg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8d22+IeZmBFcKtO/wMTct/M0mX7WFs34P1BLAwQUAAIACABJV/Msl+xto0oAAABZAAAABwAAAGR3 YXJmLmPLzCtRyE3MzNPIBDISi9KTdRSSMxKLFLSA7LLoWE1ermpeLgUFkGyFgq2CoTWMVwnkVSho KRgBRUBiRaklpUV5ChXalUCBWl4uAFBLAQIUABQAAgAIALOC+SwwWXAjSwMAAFgIAAAHAAAAAAAA AAAAIAC2gQAAAABkd2FyZi5vUEsBAhQAFAACAAgASVfzLJfsbaNKAAAAWQAAAAcAAAAAAAAAAQAg ALaBcAMAAGR3YXJmLmNQSwUGAAAAAAIAAgBqAAAA3wMAAAAA
next reply other threads:[~2002-07-25 23:33 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-07-25 16:33 cheng [this message] 2002-08-28 17:03 kseitz 2002-09-18 19:54 kseitz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020725233136.27244.qmail@sources.redhat.com \ --to=cheng@powertv.com \ --cc=insight-gnats@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).