Re: Small patch to enable build of gdb-7.6 for GNU/Hurd

Svante Signell
2013-05-27T13:57:15Z

On Mon, 2013-05-27 at 15:48 +0200, Svante Signell wrote:
> On Mon, 2013-05-27 at 14:21 +0200, Svante Signell wrote:
> > On Mon, 2013-05-27 at 16:10 +0400, Joel Brobecker wrote:
> > > > 2013-05-27 Svante Signell <srs@hurd-2013.my.own.domain>
> > > >
> > > > * nto-tdep.c (nto_init_solib_absolute_prefix): Solve build
> > > > problems for systems not defining PATH_MAX by using xstrprintf and
> > > > a cleanup.
> > >
> > > Is the domain name above really valid?
> >
> > No, it's a local one. I forgot to change that one.
>
> Attaching an ChangeLog entry with a correct domain
>
> > > While looking at this code, I don't think you'll need 2 xstrprintf
> > > either. Can you try the attached patch?
> >
> > Yes, of course this code is much neater. I will report build status
> > soon.
>
> I had to change the second make_cleanup call to do_cleanups instead, see
> the updated patch. OK now?

Additionally, I think the char buf; statement should read char *buf; in
the patch.