summaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-10-15 22:13:22 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-10-15 22:13:23 -0400
commit8676616596351876612aa84be798537625348086 (patch)
tree090f51b7fa34e88f9320b630f07ea0e06d5e99b0 /gdb/tracepoint.c
parent86e17b6fbc9b224ecceece7a8bb4dd7989f07c7d (diff)
downloadbinutils-gdb-8676616596351876612aa84be798537625348086.tar.gz
Fix GDB build without expat
An earlier patch of mine changed parse_traceframe_info to make it return a unique_ptr. I forgot to update the version of the function used in an expat-less build, this patch fixes it. gdb/ChangeLog: * tracepoint.c (parse_traceframe_info): Return a unique_ptr (the !HAVE_LIBEXPAT version).
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 9dd8d8736ee..9c073157b91 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3958,7 +3958,7 @@ sdata_make_value (struct gdbarch *gdbarch, struct internalvar *var,
#if !defined(HAVE_LIBEXPAT)
-struct traceframe_info *
+struct std::unique_ptr<traceframe_info>
parse_traceframe_info (const char *tframe_info)
{
static int have_warned;