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;
}
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"));
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. */
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. */
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);