mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
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>
This commit is contained in:
@@ -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-06 Joel Brobecker <brobecker@adacore.com>
|
2014-02-06 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* version.in: Set GDB version number to 7.7.0.DATE-cvs.
|
* version.in: Set GDB version number to 7.7.0.DATE-cvs.
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ static PyObject *
|
|||||||
ltpy_get_pcs_for_line (PyObject *self, PyObject *args)
|
ltpy_get_pcs_for_line (PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
struct symtab *symtab;
|
struct symtab *symtab;
|
||||||
int py_line;
|
gdb_py_longest py_line;
|
||||||
struct linetable_entry *best_entry = NULL;
|
struct linetable_entry *best_entry = NULL;
|
||||||
linetable_entry_object *result;
|
linetable_entry_object *result;
|
||||||
VEC (CORE_ADDR) *pcs = NULL;
|
VEC (CORE_ADDR) *pcs = NULL;
|
||||||
@@ -200,7 +200,7 @@ static PyObject *
|
|||||||
ltpy_has_line (PyObject *self, PyObject *args)
|
ltpy_has_line (PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
struct symtab *symtab;
|
struct symtab *symtab;
|
||||||
int py_line;
|
gdb_py_longest py_line;
|
||||||
int index;
|
int index;
|
||||||
|
|
||||||
LTPY_REQUIRE_VALID (self, symtab);
|
LTPY_REQUIRE_VALID (self, symtab);
|
||||||
|
|||||||
Reference in New Issue
Block a user