[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    Re: GDB can't find section '.data' warning and input/output error
From:       kidoshisama <kidoshisama () gmail ! com>
Date:       2011-10-28 21:07:07
Message-ID: CAB+SFK364kpzi3LePTxHRycChbbOpdtZKBkGVjxiajanY4RdMg () mail ! gmail ! com
[Download RAW message or body]

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=92m trying to get gdb to work (to track down another error I=92ll 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/douglive=
sey/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_fe=
atures
>> Warning:
>> Cannot insert breakpoint 1.
>> Error accessing memory address 0x1552: Input/output error.
>
> Could anyone advise me on what I=92m 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=92m on a Macbook Pro, running Snow Leopard,
> using gcc-mp-4.6 from mac ports (it=92s 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,
>
> =A0=A0 Doug.
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic