Re: [PATCH] hurd: Fix getting VM_MIN/MAX_ADDRESS

Samuel Thibault via Gdb-patches
2020-12-22T22:39:16Z

(For the record, I don't have commit access).

Simon Marchi, le lun. 21 déc. 2020 14:40:31 -0500, a ecrit:
>
>
> On 2020-12-21 12:59 p.m., Samuel Thibault via Gdb-patches wrote:
> > gnu-nat.c was getting the inclusion of vm_param.h only by luck. We
> > need to explicitly include it to be sure to get the definitions of
> > VM_MIN/MAX_ADDRESS.
> >
> > gdb/ChangeLog:
> >
> > * gnu-nat.c: Include <mach/vm_param.h>.
> >
> > diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
> > index 1693ce0c43..6f290be0d5 100644
> > --- a/gdb/gnu-nat.c
> > +++ b/gdb/gnu-nat.c
> > @@ -32,6 +32,7 @@ extern "C"
> > #include <mach/message.h>
> > #include <mach/notify.h>
> > #include <mach/vm_attributes.h>
> > +#include <mach/vm_param.h>
> >
> > #include <hurd.h>
> > #include <hurd/interrupt.h>
> >
>
> Thanks, this is ok.
>
> Simon
>