This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] babeltrace compilation regression
- From: Jan Kratochvil <jkratoch at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 5 Jul 2016 08:49:22 -0000
- Subject: [binutils-gdb] babeltrace compilation regression
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=13cdc2afb7873547ec2910ba647fb4a68602252f
commit 13cdc2afb7873547ec2910ba647fb4a68602252f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Tue Jul 5 10:47:18 2016 +0200
babeltrace compilation regression
Since:
commit 2d681be471cf8aff8f296cb7713c39e9aa4fc2bb
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
Date: Wed Apr 27 15:52:16 2016 +0200
Avoid non-C++-enabled babeltrace versions
tested with:
libbabeltrace-devel-1.2.4-4.fc24.x86_64
libbabeltrace-devel-1.4.0-2.fc25.x86_64
it can no longer build due to:
configure:16435: gcc -o conftest -m64 -g3 -pipe -Wall -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -fno-diagno
stics-show-caret -Werror -static-libstdc++ -static-libgcc conftest.c -ldl -ldl -lncurses -lm -ldl -lbabeltrace -lbabeltrace-ctf >&5
conftest.c: In function 'main':
conftest.c:208:7: error: 'pos' is a pointer; did you mean to use '->'?
gdb/ChangeLog
2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
* configure: Regenerate.
* configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/configure | 2 +-
gdb/configure.ac | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 85a5444..acd29c3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure: Regenerate.
+ * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
+
2016-07-01 Don Breazeal <donb@codesourcery.com>
* remote.c (remote_get_memory_xfer_limit): New function.
diff --git a/gdb/configure b/gdb/configure
index ea11b50..81a037a 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -16422,7 +16422,7 @@ struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
struct bt_ctf_event *event = NULL;
const struct bt_definition *scope;
- pos.type = BT_SEEK_BEGIN;
+ pos->type = BT_SEEK_BEGIN;
bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
scope = bt_ctf_get_top_level_scope (event,
BT_STREAM_EVENT_HEADER);
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 920c228..5e2e938 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -2309,7 +2309,7 @@ else
struct bt_ctf_event *event = NULL;
const struct bt_definition *scope;
- pos.type = BT_SEEK_BEGIN;
+ pos->type = BT_SEEK_BEGIN;
bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
scope = bt_ctf_get_top_level_scope (event,
BT_STREAM_EVENT_HEADER);