aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-18 09:32:10 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-18 09:32:10 -0800
commit8435453b810d8ab0574e509446003d10d04abfd4 (patch)
tree81596d7c347ed52caa1edb74412662b1c54f24b1 /gdb/python
parentee6f8984bbdbf340816a7f2aebe736f100601b22 (diff)
downloadgdb-8435453b810d8ab0574e509446003d10d04abfd4.zip
gdb-8435453b810d8ab0574e509446003d10d04abfd4.tar.gz
gdb-8435453b810d8ab0574e509446003d10d04abfd4.tar.bz2
symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated.
gdb/ChangeLog: * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-linetable.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/python/py-linetable.c b/gdb/python/py-linetable.c
index bb82c8c..a890410 100644
--- a/gdb/python/py-linetable.c
+++ b/gdb/python/py-linetable.c
@@ -207,16 +207,16 @@ ltpy_has_line (PyObject *self, PyObject *args)
if (! PyArg_ParseTuple (args, GDB_PY_LL_ARG, &py_line))
return NULL;
- if (LINETABLE (symtab) == NULL)
+ if (SYMTAB_LINETABLE (symtab) == NULL)
{
PyErr_SetString (PyExc_RuntimeError,
_("Linetable information not found in symbol table"));
return NULL;
}
- for (index = 0; index < LINETABLE (symtab)->nitems; index++)
+ for (index = 0; index < SYMTAB_LINETABLE (symtab)->nitems; index++)
{
- struct linetable_entry *item = &(symtab->linetable->item[index]);
+ struct linetable_entry *item = &(SYMTAB_LINETABLE (symtab)->item[index]);
if (item->line == py_line)
Py_RETURN_TRUE;
}
@@ -240,7 +240,7 @@ ltpy_get_all_source_lines (PyObject *self, PyObject *args)
LTPY_REQUIRE_VALID (self, symtab);
- if (LINETABLE (symtab) == NULL)
+ if (SYMTAB_LINETABLE (symtab) == NULL)
{
PyErr_SetString (PyExc_RuntimeError,
_("Linetable information not found in symbol table"));
@@ -251,9 +251,9 @@ ltpy_get_all_source_lines (PyObject *self, PyObject *args)
if (source_dict == NULL)
return NULL;
- for (index = 0; index < LINETABLE (symtab)->nitems; index++)
+ for (index = 0; index < SYMTAB_LINETABLE (symtab)->nitems; index++)
{
- item = &(LINETABLE (symtab)->item[index]);
+ item = &(SYMTAB_LINETABLE (symtab)->item[index]);
/* 0 is used to signify end of line table information. Do not
include in the source set. */
@@ -430,10 +430,10 @@ ltpy_iternext (PyObject *self)
LTPY_REQUIRE_VALID (iter_obj->source, symtab);
- if (iter_obj->current_index >= LINETABLE (symtab)->nitems)
+ if (iter_obj->current_index >= SYMTAB_LINETABLE (symtab)->nitems)
goto stop_iteration;
- item = &(LINETABLE (symtab)->item[iter_obj->current_index]);
+ item = &(SYMTAB_LINETABLE (symtab)->item[iter_obj->current_index]);
/* Skip over internal entries such as 0. 0 signifies the end of
line table data and is not useful to the API user. */
@@ -442,9 +442,9 @@ ltpy_iternext (PyObject *self)
iter_obj->current_index++;
/* Exit if the internal value is the last item in the line table. */
- if (iter_obj->current_index >= symtab->linetable->nitems)
+ if (iter_obj->current_index >= SYMTAB_LINETABLE (symtab)->nitems)
goto stop_iteration;
- item = &(symtab->linetable->item[iter_obj->current_index]);
+ item = &(SYMTAB_LINETABLE (symtab)->item[iter_obj->current_index]);
}
obj = build_linetable_entry (item->line, item->pc);