mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 06:23:58 +08:00
symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated.
gdb/ChangeLog: * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses updated.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user