aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-02-28 20:01:10 +0000
committerDoug Evans <dje@google.com>2013-02-28 20:01:10 +0000
commit62d7fb51718b98d4322ebd15df5907d4a0984100 (patch)
tree17a02d6653b56a824d7fa49e8662fcd785a786eb /gdb
parentc4a9e8b4e322868fd065dcbe70232cc25eedb6c2 (diff)
downloadgdb-62d7fb51718b98d4322ebd15df5907d4a0984100.zip
gdb-62d7fb51718b98d4322ebd15df5907d4a0984100.tar.gz
gdb-62d7fb51718b98d4322ebd15df5907d4a0984100.tar.bz2
* python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
* python/python.c (gdbpy_find_pc_line): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/python/py-finishbreakpoint.c3
-rw-r--r--gdb/python/python.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c793593..d92a703 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-28 Doug Evans <dje@google.com>
+
+ * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
+ * python/python.c (gdbpy_find_pc_line): Ditto.
+
2013-02-28 Tom Tromey <tromey@redhat.com>
* contrib/excheck.py: New file.
diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c
index d3d6bfd..6e095b5 100644
--- a/gdb/python/py-finishbreakpoint.c
+++ b/gdb/python/py-finishbreakpoint.c
@@ -160,7 +160,8 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs)
int type = bp_breakpoint;
PyObject *frame_obj = NULL;
int thread;
- struct frame_info *frame, *prev_frame = NULL;
+ struct frame_info *frame = NULL; /* init for gcc -Wall */
+ struct frame_info *prev_frame = NULL;
struct frame_id frame_id;
PyObject *internal = NULL;
int internal_bp = 0;
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 405eb5b..24be906 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -740,7 +740,7 @@ gdbpy_find_pc_line (PyObject *self, PyObject *args)
{
gdb_py_ulongest pc_llu;
volatile struct gdb_exception except;
- PyObject *result;
+ PyObject *result = NULL; /* init for gcc -Wall */
if (!PyArg_ParseTuple (args, GDB_PY_LLU_ARG, &pc_llu))
return NULL;