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/symtab.h | |
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/symtab.h')
-rw-r--r-- | gdb/symtab.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index c313d54..8881f4e 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1383,6 +1383,16 @@ struct symtab m_compunit = compunit; } + struct linetable *linetable () const + { + return m_linetable; + } + + void set_linetable (struct linetable *linetable) + { + m_linetable = linetable; + } + /* Unordered chain of all filetabs in the compunit, with the exception that the "main" source file is the first entry in the list. */ @@ -1395,7 +1405,7 @@ struct symtab /* Table mapping core addresses to line numbers for this file. Can be NULL if none. Never shared between different symtabs. */ - struct linetable *linetable; + struct linetable *m_linetable; /* Name of this source file. This pointer is never NULL. */ @@ -1415,7 +1425,6 @@ struct symtab using symtab_range = next_range<symtab>; -#define SYMTAB_LINETABLE(symtab) ((symtab)->linetable) #define SYMTAB_LANGUAGE(symtab) ((symtab)->language) #define SYMTAB_BLOCKVECTOR(symtab) \ (symtab->compunit ()->blockvector ()) |