This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch to gdb on Tru64 5.1
> >alpha-nat.c:
> >------------
> >fetch_osf_core_registers: adapt the table used to map the regnum to
> > the core register section index to work on Tru64 5.1 as well.
>
> I did that slightly differently:
Thanks for you suggestion. However, I tried your change, but then I
could not build gdb on Dec Unix 4.0f...
> >alpha-osf5.mh:
> >--------------
> >new file. This is a modified version of alpha-osf3.mh where
> > -DUSE_LDR_ROUTINES is added to the compilation flags. This forces gdb to
> > use the xproc library to load the symbols, instead of relying on an
> > empirical algorithm (which does not work on Tru64 5.1 anymore).
>
> That didn't work when I tried it, because the xproc routines only allow a
> process to examine itself. It _seems_ to work because GDB happens to load
> the same shared libraries as most programs it debugs (libc.so and
> libm.so), but it doesn't when debugging programs linked against other
> shared libs.
>
> I'll post an alternative patch for shared library support in a separate
> message.
I am looking forward to it.
--
Joel