From 2a081c592cf727c5103808374834c4915e83521a Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 9 Feb 2014 18:47:40 +0100 Subject: Fix Python stack corruption The fix is obvious. gdb/ 2014-02-09 Jan Kratochvil Fix Python stack corruption. * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use gdb_py_longest. Message-ID: <20140207171701.GA25187@host2.jankratochvil.net> --- gdb/python/py-linetable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/python') diff --git a/gdb/python/py-linetable.c b/gdb/python/py-linetable.c index e83d46d7052..8b5362b2108 100644 --- a/gdb/python/py-linetable.c +++ b/gdb/python/py-linetable.c @@ -168,7 +168,7 @@ static PyObject * ltpy_get_pcs_for_line (PyObject *self, PyObject *args) { struct symtab *symtab; - int py_line; + gdb_py_longest py_line; struct linetable_entry *best_entry = NULL; linetable_entry_object *result; VEC (CORE_ADDR) *pcs = NULL; @@ -200,7 +200,7 @@ static PyObject * ltpy_has_line (PyObject *self, PyObject *args) { struct symtab *symtab; - int py_line; + gdb_py_longest py_line; int index; LTPY_REQUIRE_VALID (self, symtab); -- cgit v1.2.1