[PATCH] Fix type of expr in info_mach_region_command (fixes OSX build)

Pedro Alves palves@redhat.com
Fri Dec 16 11:36:00 GMT 2016

On 12/15/2016 08:17 PM, Manish Goregaokar wrote:
> gdb wasn't building on OSX. Colleague fixed it.
> error was
> darwin-nat-info.c:733:8: error: assigning to 'struct expression *'
> from incompatible type 'expression_up' (aka
>       'std::__1::unique_ptr<expression, gdb::xfree_deleter<expression> >')
>   expr = parse_expression (exp);
>        ^ ~~~~~~~~~~~~~~~~~~~~~~

Oh, I just approved Bernhard's patch without noticing this one,
sorry about that:


I prefer his version for moving the declaration, but any
is fine...

Pedro Alves

More information about the Gdb-patches mailing list