public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: doug livesey <biot023@gmail.com>
To: gdb@sourceware.org
Subject: GDB can't find section '.data' warning and input/output error
Date: Sun, 15 May 2011 09:51:00 -0000	[thread overview]
Message-ID: <BANLkTikkerqJKGth-zP0+aNbqCBiLGSSHQ@mail.gmail.com> (raw)

I’m trying to get gdb to work (to track down another error I’ll have
to deal with later!), but am having little success.
I initially had a load of dwarf errors, so used mac ports to get the
latest gdb, and am now using that (by creating a symlink to the latest
gdb in my $HOME/bin directory).
When I start gdb in EMACS, it confirms that it is version 7.2.
However, when I try to load a file, I get errors like the following:

> Reading symbols from /Users/douglivesey/work/cpp/cell_biots/features/run_features...warning: can't find section '.data' in OSO file /Users/douglivesey/work/cpp/cell_biots/features/generating_a_game_feature.o
> warning: can't find section '.data' in OSO file /Users/douglivesey/work/cpp/cell_biots/features/run_features.o

When I set breakpoints on functions, they seem to be okay, but no red
dot appears to tell me where it is.
Then, when I try to run the program, I get this error:

> Starting program: /Users/douglivesey/work/cpp/cell_biots/features/run_features
> Warning:
> Cannot insert breakpoint 1.
> Error accessing memory address 0x1552: Input/output error.

Could anyone advise me on what I’m doing wrong, or what I can do to fix this?
The full output of my last attempt is here: https://gist.github.com/973003
When I try to set a breakpoint on the file by line number, I get this:
https://gist.github.com/973005

Further information is: I’m on a Macbook Pro, running Snow Leopard,
using gcc-mp-4.6 from mac ports (it’s a beta release, but the most
up-to-date there is on there), and using the latest fsf-gdb from mac
ports, which is 7.2.
Any & all help would be very gratefully received.

Thanks,

   Doug.

             reply	other threads:[~2011-05-15  9:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-15  9:51 doug livesey [this message]
2011-10-29  7:08 ` kidoshisama

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=BANLkTikkerqJKGth-zP0+aNbqCBiLGSSHQ@mail.gmail.com \
    --to=biot023@gmail.com \
    --cc=gdb@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).