Remove cleanups from check_fast_tracepoint_sals
authorTom Tromey <tom@tromey.com>
Wed, 21 Feb 2018 23:53:56 +0000 (16:53 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 24 Feb 2018 17:01:11 +0000 (10:01 -0700)
commit281d762b1a56317171e462666b98d50bfa31a08a
tree67e6831f0f8964dcd8ff2ae2bc123ad641b0ae87
parentd4333bab0a097f4bfa36d2e49f4dfb12c73dce24
Remove cleanups from check_fast_tracepoint_sals

This changes the gdbarch fast_tracepoint_valid_at method to use a
std::string as its out parameter, and then updates all the uses.  This
allows removing a cleanup from breakpoint.c.

Regression tested by the buildbot.

ChangeLog
2018-02-24  Tom Tromey  <tom@tromey.com>

* i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
std::string.
* gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
std::string*.
* gdbarch.c: Rebuild.
* gdbarch.h: Rebuild.
* breakpoint.c (check_fast_tracepoint_sals): Use std::string.
* arch-utils.h (default_fast_tracepoint_valid_at): Update.
* arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
std::string*.
gdb/ChangeLog
gdb/arch-utils.c
gdb/arch-utils.h
gdb/breakpoint.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/i386-tdep.c