public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Dwarf-2 problem in Insight GDB
@ 2002-08-14 13:46 Cheng, Cheuk
  2002-08-15 11:02 ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Cheng, Cheuk @ 2002-08-14 13:46 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

I had tried downloading Insight GDB sources dated 07-18-2002 and built a
sparc-elf version successfully.  Then I compiled a small C program using
my sparc-elf compiler.  But when I loaded the compiled .o file into GDB,
it shows only the assembly language window while the "Current function
name" listbox shows the name "main" and the "Current file name" listbox
is empty.  If I select the name of the source file from the "Current
file name" listbox, then the source code will be displayed in full on
the screen.  However, when I click on the "-" next to a source line to
set a breakpoint, no red circle breakpoint market appears.  I am not
sure whether my compiler is generating the wrong dwarf-2 info in the .o
file or whether my GDB is not working (or built) properly.  The same
problem happens if I compile my test file with -gdwarf instead of
-gdwarf while simply using -g will not have this problem.  I have
attached my small source and .o file here.

Regards,
cheng@powertv.com

[-- Attachment #2: test.zip --]
[-- Type: application/x-zip-compressed, Size: 2499 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <762C0A863A7674478671627FEAF584812C357F@hqmail01.powertv.com>]

end of thread, other threads:[~2002-08-15 18:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-14 13:46 Dwarf-2 problem in Insight GDB Cheng, Cheuk
2002-08-15 11:02 ` Keith Seitz
     [not found] <762C0A863A7674478671627FEAF584812C357F@hqmail01.powertv.com>
2002-08-15 11:26 ` Keith Seitz

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).