diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:32:10 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:32:10 -0800 |
commit | 8435453b810d8ab0574e509446003d10d04abfd4 (patch) | |
tree | 81596d7c347ed52caa1edb74412662b1c54f24b1 /gdb/symtab.c | |
parent | ee6f8984bbdbf340816a7f2aebe736f100601b22 (diff) | |
download | gdb-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/symtab.c')
-rw-r--r-- | gdb/symtab.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 5b00b1b..58aa6e9 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2329,7 +2329,7 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent) continue; /* Find the best line in this symtab. */ - l = LINETABLE (s); + l = SYMTAB_LINETABLE (s); if (!l) continue; len = l->nitems; @@ -2469,7 +2469,7 @@ find_line_symtab (struct symtab *symtab, int line, struct symtab *best_symtab; /* First try looking it up in the given symtab. */ - best_linetable = LINETABLE (symtab); + best_linetable = SYMTAB_LINETABLE (symtab); best_symtab = symtab; best_index = find_line_common (best_linetable, line, &exact, 0); if (best_index < 0 || !exact) @@ -2511,7 +2511,7 @@ find_line_symtab (struct symtab *symtab, int line, if (FILENAME_CMP (symtab_to_fullname (symtab), symtab_to_fullname (s)) != 0) continue; - l = LINETABLE (s); + l = SYMTAB_LINETABLE (s); ind = find_line_common (l, line, &exact, 0); if (ind >= 0) { @@ -2561,13 +2561,14 @@ find_pcs_for_symtab_line (struct symtab *symtab, int line, int was_exact; int idx; - idx = find_line_common (LINETABLE (symtab), line, &was_exact, start); + idx = find_line_common (SYMTAB_LINETABLE (symtab), line, &was_exact, + start); if (idx < 0) break; if (!was_exact) { - struct linetable_entry *item = &LINETABLE (symtab)->item[idx]; + struct linetable_entry *item = &SYMTAB_LINETABLE (symtab)->item[idx]; if (*best_item == NULL || item->line < (*best_item)->line) *best_item = item; @@ -2575,7 +2576,8 @@ find_pcs_for_symtab_line (struct symtab *symtab, int line, break; } - VEC_safe_push (CORE_ADDR, result, LINETABLE (symtab)->item[idx].pc); + VEC_safe_push (CORE_ADDR, result, + SYMTAB_LINETABLE (symtab)->item[idx].pc); start = idx + 1; } @@ -2600,7 +2602,7 @@ find_line_pc (struct symtab *symtab, int line, CORE_ADDR *pc) symtab = find_line_symtab (symtab, line, &ind, NULL); if (symtab != NULL) { - l = LINETABLE (symtab); + l = SYMTAB_LINETABLE (symtab); *pc = l->item[ind].pc; return 1; } @@ -2754,7 +2756,7 @@ skip_prologue_using_lineinfo (CORE_ADDR func_addr, struct symtab *symtab) int i; /* Give up if this symbol has no lineinfo table. */ - l = LINETABLE (symtab); + l = SYMTAB_LINETABLE (symtab); if (l == NULL) return func_addr; @@ -2995,7 +2997,7 @@ skip_prologue_using_sal (struct gdbarch *gdbarch, CORE_ADDR func_addr) do this. */ if (prologue_sal.symtab->language != language_asm) { - struct linetable *linetable = LINETABLE (prologue_sal.symtab); + struct linetable *linetable = SYMTAB_LINETABLE (prologue_sal.symtab); int idx = 0; /* Skip any earlier lines, and any end-of-sequence marker |