public inbox for insight-prs@sourceware.org
help / color / mirror / Atom feed
* Re: insight/174: Cannot see source code when using DWARF or DWARF-2
@ 2002-08-28 17:03 kseitz
0 siblings, 0 replies; 3+ messages in thread
From: kseitz @ 2002-08-28 17:03 UTC (permalink / raw)
To: cheng, insight-prs, keiths, nobody
Synopsis: Cannot see source code when using DWARF or DWARF-2
Responsible-Changed-From-To: unassigned->keiths
Responsible-Changed-By: kseitz
Responsible-Changed-When: Wed Aug 28 17:03:12 2002
Responsible-Changed-Why:
mine
State-Changed-From-To: open->analyzed
State-Changed-By: kseitz
State-Changed-When: Wed Aug 28 17:03:12 2002
State-Changed-Why:
What happened with this? Last I saw it appeared to be a problem with GDB (but this is unconfirmed). Let me know what's happening.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=insight&pr=174
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: insight/174: Cannot see source code when using DWARF or DWARF-2
@ 2002-09-18 19:54 kseitz
0 siblings, 0 replies; 3+ messages in thread
From: kseitz @ 2002-09-18 19:54 UTC (permalink / raw)
To: cheng, insight-prs, keiths
Synopsis: Cannot see source code when using DWARF or DWARF-2
State-Changed-From-To: analyzed->feedback
State-Changed-By: kseitz
State-Changed-When: Wed Sep 18 19:54:01 2002
State-Changed-Why:
Ping: where are we with this?
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=insight&pr=174
^ permalink raw reply [flat|nested] 3+ messages in thread
* insight/174: Cannot see source code when using DWARF or DWARF-2
@ 2002-07-25 16:33 cheng
0 siblings, 0 replies; 3+ messages in thread
From: cheng @ 2002-07-25 16:33 UTC (permalink / raw)
To: insight-gnats
>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
NMTxw8JVIR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AAAQAg
ALaBcAMAAGR3YXJmLmNQSwUGAAAAAAIAAgBqAAAA3wMAAAAA
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-19 2:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-28 17:03 insight/174: Cannot see source code when using DWARF or DWARF-2 kseitz
-- strict thread matches above, loose matches on Subject: below --
2002-09-18 19:54 kseitz
2002-07-25 16:33 cheng
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).