diff options
author | Tom Tromey <tom@tromey.com> | 2022-01-14 09:06:11 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-18 10:01:20 -0700 |
commit | 5947982f1dadfa72a6913f25cc4f56e137c7217e (patch) | |
tree | 10300e6cbb942bfa03a00af19c99027edea507e8 /gdb/location.h | |
parent | 85e428a69f5b34770ec4f76168d3c8dbb3a454bf (diff) | |
download | gdb-5947982f1dadfa72a6913f25cc4f56e137c7217e.zip gdb-5947982f1dadfa72a6913f25cc4f56e137c7217e.tar.gz gdb-5947982f1dadfa72a6913f25cc4f56e137c7217e.tar.bz2 |
Simplify event_location_probe
event_location_probe currently stores two strings, but really only
needs one. This patch simplifies it and removes some unnecessary
copies as well.
Diffstat (limited to 'gdb/location.h')
-rw-r--r-- | gdb/location.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/location.h b/gdb/location.h index 4cabf26..848f645 100644 --- a/gdb/location.h +++ b/gdb/location.h @@ -169,7 +169,7 @@ extern const char * /* Create a new probe location. */ -extern event_location_up new_probe_location (const char *probe); +extern event_location_up new_probe_location (std::string &&probe); /* Return the probe location (a string) of the given event_location (which must be of type PROBE_LOCATION). */ |