diff options
author | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-12-15 14:04:11 +0100 |
---|---|---|
committer | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-12-16 13:39:52 +0100 |
commit | 97f00e367c8222cda51bc7c0e9d3073a487a5976 (patch) | |
tree | cdcb54612ac6eac7c8dea74c881933e481cd29ae /gprof | |
parent | db7b55faa1a11e632ddf57505c9bb64bc783471a (diff) | |
download | gdb-97f00e367c8222cda51bc7c0e9d3073a487a5976.zip gdb-97f00e367c8222cda51bc7c0e9d3073a487a5976.tar.gz gdb-97f00e367c8222cda51bc7c0e9d3073a487a5976.tar.bz2 |
Darwin: Fix gdb compilation.
Due to changes introduced by
commit 4d01a485d29732b19743e8b138897f3509e071b0
('struct expression *' -> gdb::unique_xmalloc_ptr<expression>)
compilation is broken on Darwin.
../gdb/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);
Beside compilation, memory leak was solved as 'make_clean_up' was not called in previous
version.
2016-12-16 Bernhard Heckel <bernhard.heckel@intel.com>
gdb/Changelog:
* darwin-nat-info.c (info_mach_region_command): Use expression_up.
Diffstat (limited to 'gprof')
0 files changed, 0 insertions, 0 deletions