diff options
author | Tom Tromey <tom@tromey.com> | 2018-02-21 16:53:56 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-02-24 10:01:11 -0700 |
commit | 281d762b1a56317171e462666b98d50bfa31a08a (patch) | |
tree | 67e6831f0f8964dcd8ff2ae2bc123ad641b0ae87 /gdb/gdbarch.sh | |
parent | d4333bab0a097f4bfa36d2e49f4dfb12c73dce24 (diff) | |
download | binutils-gdb-281d762b1a56317171e462666b98d50bfa31a08a.tar.gz |
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*.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 10a2aa9f6f2..33dfa6b349d 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -1045,7 +1045,7 @@ v;int;has_global_breakpoints;;;0;0;;0 m;int;has_shared_address_space;void;;;default_has_shared_address_space;;0 # True if a fast tracepoint can be set at an address. -m;int;fast_tracepoint_valid_at;CORE_ADDR addr, char **msg;addr, msg;;default_fast_tracepoint_valid_at;;0 +m;int;fast_tracepoint_valid_at;CORE_ADDR addr, std::string *msg;addr, msg;;default_fast_tracepoint_valid_at;;0 # Guess register state based on tracepoint location. Used for tracepoints # where no registers have been collected, but there's only one location, |