public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* GDB can't find section '.data' warning and input/output error
@ 2011-05-15  9:51 doug livesey
  2011-10-29  7:08 ` kidoshisama
  0 siblings, 1 reply; 2+ messages in thread
From: doug livesey @ 2011-05-15  9:51 UTC (permalink / raw)
  To: gdb

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GDB can't find section '.data' warning and input/output error
  2011-05-15  9:51 GDB can't find section '.data' warning and input/output error doug livesey
@ 2011-10-29  7:08 ` kidoshisama
  0 siblings, 0 replies; 2+ messages in thread
From: kidoshisama @ 2011-10-29  7:08 UTC (permalink / raw)
  To: doug livesey; +Cc: gdb

Doug,

I am tearing my (quite rare, very precious) hair out over this same
problem. I have compiled, signed and tested 7.1, 7.2 7.3 and 7.3.1
with the same results. Did you ever get anywhere with this?

Best regards,

Keith

On Sun, May 15, 2011 at 5:51 AM, doug livesey <biot023@gmail.com> wrote:
> 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.
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-28 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-15  9:51 GDB can't find section '.data' warning and input/output error doug livesey
2011-10-29  7:08 ` kidoshisama

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