This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Assume solib.h


   Date: Thu, 18 Nov 2004 09:09:43 -0500
   From: Andrew Cagney <cagney@gnu.org>
   Mark wrote:
   > Yup, I'm wrong.  Not *every* embedded target will break.  Some of them
   > include solib-svr4.o or some other solib-xxx.o; powerpc-elf is one of
   > them.  I'm also wrong that it breaks vax-dec-openbsd* for pretty much
   > the same reason.  However, there are plenty of embedded targets for
   > which I'm pretty certain that my analysis is true: arm-elf, mips-elf,
   > i386-elf are among them.

I'm not.

This is for mips-elf:


cagney@to-dhcp51$ ./gdb /tmp/a.out
GNU gdb 6.3.50_2004-11-01-cvs
...
(gdb) b main
Breakpoint 1 at 0xa00202b0: file hello.c, line 5.
(gdb) target sim
Connected to the simulator.
(gdb) load
...
(gdb) run
Starting program: /tmp/a.out
Breakpoint 1, main () at hello.c:5
5       hello.c: No such file or directory.
        in hello.c

sigh,

Joseph,

Given that no one has raised a concern over my original point that it would break _AIX_ and _HPUX_ (the latter doesn't build anyway) (perhaps this key point was lost in the noise), and given that Kevin's also given his approval, you're finally clear to throw the switch and assume solib.

Kevin's dummy solib simplifies things slightly. I think the real patch will just need to add #include "solib.h" where needed, and remove all the existing *.tm:DEPRECATED_TM_FILE=solib.h and {tm,nm}-*.h:#include "solib.h". I'd also test it on a GNU/Linux system.

Have fun, and thank you for your patience. (Hmm, what's left, if Solaris is useable, it's time to add a NEWS entry!)

Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]