Return unique_xmalloc_ptr from call_site_find_chain
authorTom Tromey <tromey@adacore.com>
Fri, 14 Feb 2020 16:24:42 +0000 (09:24 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 14 Feb 2020 19:38:04 +0000 (12:38 -0700)
commit8084e579e114e607cb65482c43566e2c5c844bf6
treec0edbce2fa66e260c02c6d50cc8e9a41a8e7448a
parent07d9838745fa0fcd4e4a92a090bdc467ff12cf0a
Return unique_xmalloc_ptr from call_site_find_chain

call_site_find_chain returns a pointer that the caller must
deallocate.  It seemed better here to return a unique_xmalloc_ptr
instead.

gdb/ChangeLog
2020-02-14  Tom Tromey  <tromey@adacore.com>

* dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
Update.
* dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
* dwarf2/loc.c (call_site_find_chain_1): Return
unique_xmalloc_ptr.
(call_site_find_chain): Likewise.
gdb/ChangeLog
gdb/dwarf2/frame-tailcall.c
gdb/dwarf2/loc.c
gdb/dwarf2/loc.h