aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2013-03-14 11:40:08 +0000
committerSergio Durigan Junior <sergiodj@redhat.com>2013-03-14 11:40:08 +0000
commiteeb56fa757d613c28cb8b17ba966a2036090dff6 (patch)
tree41d1239681c4409aaa7b57874fe5982fb206f410 /gdb
parentbb869963da27d88c24f770f0a5aae61112e568f9 (diff)
downloadgdb-eeb56fa757d613c28cb8b17ba966a2036090dff6.zip
gdb-eeb56fa757d613c28cb8b17ba966a2036090dff6.tar.gz
gdb-eeb56fa757d613c28cb8b17ba966a2036090dff6.tar.bz2
2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
* tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing compiler warning.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/tracepoint.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 057133f..75599ca 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
+ compiler warning.
+
2013-03-13 Joel Brobecker <brobecker@adacore.com>
* linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index bea6202..419765b 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -2804,7 +2804,7 @@ static void
cmd_qtv (char *own_buf)
{
ULONGEST num;
- LONGEST val;
+ LONGEST val = 0;
int err;
char *packet = own_buf;