[PATCH] hurd: Fix getting VM_MIN/MAX_ADDRESS

Simon Marchi simon.marchi@polymtl.ca
Mon Dec 21 19:40:31 GMT 2020



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


More information about the Gdb-patches mailing list