diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-02-09 18:47:40 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-02-09 18:47:40 +0100 |
commit | 2a081c592cf727c5103808374834c4915e83521a (patch) | |
tree | f2badee1b97fcdff0aec81cfc7956b23589cc909 | |
parent | 53291d1f1601d6958248dcfb755af470521c186a (diff) | |
download | gdb-2a081c592cf727c5103808374834c4915e83521a.zip gdb-2a081c592cf727c5103808374834c4915e83521a.tar.gz gdb-2a081c592cf727c5103808374834c4915e83521a.tar.bz2 |
Fix Python stack corruption
The fix is obvious.
gdb/
2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
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>
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/python/py-linetable.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bb64a23..4027ad9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com> + + Fix Python stack corruption. + * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use + gdb_py_longest. + 2014-02-08 Mark Kettenis <kettenis@gnu.org> * Makefile.in (all-lib): Remove. diff --git a/gdb/python/py-linetable.c b/gdb/python/py-linetable.c index e83d46d..8b5362b 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); |