diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 08:40:12 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:19 -0500 |
commit | 5b6074611edfdd1590e8da1ca443950b47942bbb (patch) | |
tree | a8bd20dacac08b7c4d6ddfe627474e33fe36fb71 /gdb/symmisc.c | |
parent | c61596525811d9b0fe79be8f11e5a142ade96dab (diff) | |
download | gdb-5b6074611edfdd1590e8da1ca443950b47942bbb.zip gdb-5b6074611edfdd1590e8da1ca443950b47942bbb.tar.gz gdb-5b6074611edfdd1590e8da1ca443950b47942bbb.tar.bz2 |
gdb: remove SYMTAB_LINETABLE macro, add getter/setter
Add a getter and a setter for a symtab's linetable. Remove the
corresponding macro and adjust all callers.
Change-Id: I159183fc0ccd8e18ab937b3c2f09ef2244ec6e9c
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index d079ac4..2fdd0f6 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -77,7 +77,7 @@ print_objfile_statistics (void) for (symtab *s : cu->filetabs ()) { i++; - if (SYMTAB_LINETABLE (s) != NULL) + if (s->linetable () != NULL) linetables++; } } @@ -259,7 +259,7 @@ dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile) language_str (symtab->language)); /* First print the line table. */ - l = SYMTAB_LINETABLE (symtab); + l = symtab->linetable (); if (l) { fprintf_filtered (outfile, "\nLine table:\n\n"); @@ -824,7 +824,8 @@ maintenance_info_symtabs (const char *regexp, int from_tty) : "(null)"); printf_filtered ("\t " "linetable ((struct linetable *) %s)\n", - host_address_to_string (symtab->linetable)); + host_address_to_string + (symtab->linetable ())); printf_filtered ("\t}\n"); } } @@ -968,7 +969,7 @@ maintenance_print_one_line_table (struct symtab *symtab, void *data) styled_string (file_name_style.style (), symtab_to_fullname (symtab)), host_address_to_string (symtab)); - linetable = SYMTAB_LINETABLE (symtab); + linetable = symtab->linetable (); printf_filtered (_("linetable: ((struct linetable *) %s):\n"), host_address_to_string (linetable)); |