Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Daniel Miller \(IMI\)" <dan@imi-test.com>
To: "Michael Chastain" <mec.gnu@mindspring.com>
Cc: <gdb@sources.redhat.com>
Subject: Re: cannot subscript something of type <data variable, no debug info>
Date: Tue, 24 Aug 2004 16:25:00 -0000	[thread overview]
Message-ID: <00c401c489f6$ee56e9d0$0401a8c0@dan> (raw)
In-Reply-To: <412B30D2.nailETK1H2VST@mindspring.com>

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

Well, this gets odder and odder... I'm enclosing the newly-built binary,
compiled exactly as you specified.  I'm also enclosing the screen dump from
the build, you can see my build command at the top...

But, when I run 'objdump tester -g', it says:

$ objdump tester -g

tester:     file format elf32-i386

objdump: tester: no recognized debugging information

!!!!!!!!!!!!!!
I tried -ggdb, and it says the same thing... clearly, something's wrong with
my system, or at least with my compiler installation...

hmmm... 'nm' *does* show some symbol info, including an entry for 'Mod', tho
it doesn't recognize it as an array, and it doesn't say anything about a
struct.  I'm not sure what that tells me, if anything...

It looks like I have the "expert" mode compiler installed, which doesn't
allow debugging, on the theory that *real* linux programmers don't need
crutches like that!!!  8-{P

Do you have any other insights on this??

In the meantime, I'm going to go ahead and take your suggestion to install
3.3.4 and see what comes out of that...

(BTW, is there any reason why you suggested 3.3.4 rather than 3.4.1, which
is current??  Is it not yet stable?)

I thank you VERY much for all the effort your providing on this problem!!

    Dan Miller




[-- Attachment #2: tester --]
[-- Type: application/octet-stream, Size: 9591 bytes --]

[-- Attachment #3: tester.build.txt --]
[-- Type: application/octet-stream, Size: 2083 bytes --]

$ g++ -v -Wall -g tester.cpp -o tester
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.3 (SuSE Linux)
 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 -D_GNU_SOURCE tester.cpp -D__GNUG__=3 -quiet -dumpbase tester.cpp -auxbase tester -g -Wall -version -o /tmp/ccMRprIv.s
GNU C++ version 3.3.3 (SuSE Linux) (i586-suse-linux)
        compiled by GNU C version 3.3.3 (SuSE Linux).
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63475
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++
 /usr/include/g++/i586-suse-linux
 /usr/include/g++/backward
 /usr/local/include
 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include
 /usr/i586-suse-linux/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/as -V -Qy -o /tmp/ccWMXgJT.o /tmp/ccMRprIv.s
GNU assembler version 2.15.90.0.1.1 (i586-suse-linux) using BFD version 2.15.90.0.1.1 20040303 (SuSE Linux)
 /usr/lib/gcc-lib/i586-suse-linux/3.3.3/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o tester /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crt1.o /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crti.o /usr/lib/gcc-lib/i586-suse-linux/3.3.3/crtbegin.o -L/usr/lib/gcc-lib/i586-suse-linux/3.3.3 -L/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/lib -L/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../.. /tmp/ccWMXgJT.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-lib/i586-suse-linux/3.3.3/crtend.o /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../crtn.o


  reply	other threads:[~2004-08-24 16:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-21  1:23 Daniel Miller (IMI)
2004-08-21  2:11 ` Daniel Jacobowitz
2004-08-23 20:49   ` Daniel Miller (IMI)
2004-08-23 21:15     ` Michael Chastain
2004-08-23 21:28     ` Michael Chastain
2004-08-23 22:30       ` Daniel Miller (IMI)
2004-08-24  2:20         ` Michael Chastain
2004-08-24 12:12         ` Michael Chastain
2004-08-24 16:25           ` Daniel Miller (IMI) [this message]
2004-08-24 16:34             ` Daniel Jacobowitz
2004-08-24 16:40               ` Daniel Miller (IMI)
2004-08-24 16:54             ` Michael Chastain
2004-08-24 16:32           ` Daniel Miller (IMI)
2004-08-24 16:54           ` Daniel Miller (IMI)
2004-08-24 16:55             ` Daniel Jacobowitz
2004-08-24 17:20               ` Michael Chastain
2004-08-24 17:48                 ` Daniel Miller (IMI)
2004-08-24 17:52                   ` Daniel Jacobowitz
     [not found]                 ` <00e001c48a01$014b02b0$0401a8c0@dan>
2004-08-24 17:54                   ` Michael Chastain
2004-08-23 20:56 Daniel Miller (IMI)

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='00c401c489f6$ee56e9d0$0401a8c0@dan' \
    --to=dan@imi-test.com \
    --cc=gdb@sources.redhat.com \
    --cc=mec.gnu@mindspring.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: link
Be 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