[0/6] Use gdb::array_view some more, plug leaks

Message ID 20181015151115.6356-1-palves@redhat.com
Headers show
Series
  • Use gdb::array_view some more, plug leaks
Related show

Message

Pedro Alves Oct. 15, 2018, 3:11 p.m.
This is the series that I had pointed Gary at in review of one of his
Coverity leak fixes:

  https://sourceware.org/ml/gdb-patches/2018-10/msg00258.html

It fixes that leak and the others I pointed at by converting
badness_vector to a std::vector.

I had originally written that std::vector patch as part of a series to
make more use of gdb::array_view.  I tried splitting it out of the
rest of the series, but quickly gave that up as it was messier than it
sounded, and was just pointless make work.  Instead, I've now rebased
the whole series, cleaned it up some more, wrote ChangeLogs, etc.  The
last patch is new too.

Pedro Alves (6):
  Use gdb:array_view in call_function_by_hand & friends
  invoke_xmethod & array_view
  Eliminate make_symbol_overload_list-related globals & cleanup
  C++ify badness_vector, fix leaks
  valops.c: Some more gdb::array_view
  valops.c: Overload resolution code: Rename parameters/locals

 gdb/ada-lang.c                       |   4 +-
 gdb/common/array-view.h              |  52 +++++
 gdb/compile/compile-object-run.c     |   4 +-
 gdb/cp-support.c                     | 142 +++++++-------
 gdb/cp-support.h                     |  13 +-
 gdb/elfread.c                        |   2 +-
 gdb/eval.c                           |  32 ++--
 gdb/extension.c                      |  12 +-
 gdb/extension.h                      |  32 ++--
 gdb/gcore.c                          |   2 +-
 gdb/gdbtypes.c                       |  50 +++--
 gdb/gdbtypes.h                       |  18 +-
 gdb/guile/scm-value.c                |   4 +-
 gdb/infcall.c                        |  29 +--
 gdb/infcall.h                        |   7 +-
 gdb/linux-fork.c                     |   7 +-
 gdb/linux-tdep.c                     |   4 +-
 gdb/objc-lang.c                      |  13 +-
 gdb/python/py-value.c                |   6 +-
 gdb/python/py-xmethods.c             |  40 ++--
 gdb/rust-lang.c                      |   2 +-
 gdb/unittests/array-view-selftests.c |  35 ++++
 gdb/valarith.c                       |  53 +++---
 gdb/valops.c                         | 355 ++++++++++++++++-------------------
 gdb/value.c                          |  13 +-
 gdb/value.h                          |   6 +-
 26 files changed, 484 insertions(+), 453 deletions(-)

-- 
2.14.4