summaryrefslogtreecommitdiff
path: root/gdb/buildsym.h
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2018-07-08 10:19:10 -0600
committerTom Tromey <tom@tromey.com>2018-07-20 09:42:56 -0600
commitcbb09508e4b515501273288aaa11a8ef5e15e0ff (patch)
treea5118a40721a71c8926ff3615ae2c471d1fd13a9 /gdb/buildsym.h
parentbfe2e011c004b88687ae4514cfdb00072a9cee63 (diff)
downloadbinutils-gdb-cbb09508e4b515501273288aaa11a8ef5e15e0ff.tar.gz
Rename remaining members of buildsym_compunit to start with "m_"
This renames all the remaining members of buildsym_compunit to start with "m_" to follow the general naming convention. gdb/ChangeLog 2018-07-20 Keith Seitz <keiths@redhat.com> * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles, m_main_subfile, m_comp_dir, m_producer, m_debugformat, m_compunit_symtab, m_language>: Add "m_" prefix. Update all uses. * buildsym.c: Update all uses.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r--gdb/buildsym.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 141adfdebe4..2f46deba779 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -128,11 +128,11 @@ struct buildsym_compunit
buildsym_compunit (struct objfile *objfile_, const char *name,
const char *comp_dir_, enum language language_,
CORE_ADDR last_addr, struct compunit_symtab *cust)
- : objfile (objfile_),
+ : m_objfile (objfile_),
m_last_source_file (name == nullptr ? nullptr : xstrdup (name)),
- comp_dir (comp_dir_ == nullptr ? nullptr : xstrdup (comp_dir_)),
- compunit_symtab (cust),
- language (language_),
+ m_comp_dir (comp_dir_ == nullptr ? nullptr : xstrdup (comp_dir_)),
+ m_compunit_symtab (cust),
+ m_language (language_),
m_last_source_start_addr (last_addr)
{
}
@@ -189,7 +189,7 @@ struct buildsym_compunit
struct compunit_symtab *get_compunit_symtab ()
{
- return compunit_symtab;
+ return m_compunit_symtab;
}
void set_last_source_start_addr (CORE_ADDR addr)
@@ -256,12 +256,12 @@ struct buildsym_compunit
void record_debugformat (const char *format)
{
- debugformat = format;
+ m_debugformat = format;
}
void record_producer (const char *producer)
{
- this->producer = producer;
+ m_producer = producer;
}
struct context_stack *push_context (int desc, CORE_ADDR valu);
@@ -300,16 +300,16 @@ private:
(struct block *static_block, int section, int expandable);
/* The objfile we're reading debug info from. */
- struct objfile *objfile;
+ struct objfile *m_objfile;
/* List of subfiles (source files).
Files are added to the front of the list.
This is important mostly for the language determination hacks we use,
which iterate over previously added files. */
- struct subfile *subfiles = nullptr;
+ struct subfile *m_subfiles = nullptr;
/* The subfile of the main source file. */
- struct subfile *main_subfile = nullptr;
+ struct subfile *m_main_subfile = nullptr;
/* Name of source file whose symbol data we are now processing. This
comes from a symbol of type N_SO for stabs. For DWARF it comes
@@ -317,21 +317,21 @@ private:
gdb::unique_xmalloc_ptr<char> m_last_source_file;
/* E.g., DW_AT_comp_dir if DWARF. Space for this is malloc'd. */
- gdb::unique_xmalloc_ptr<char> comp_dir;
+ gdb::unique_xmalloc_ptr<char> m_comp_dir;
/* Space for this is not malloc'd, and is assumed to have at least
the same lifetime as objfile. */
- const char *producer = nullptr;
+ const char *m_producer = nullptr;
/* Space for this is not malloc'd, and is assumed to have at least
the same lifetime as objfile. */
- const char *debugformat = nullptr;
+ const char *m_debugformat = nullptr;
/* The compunit we are building. */
- struct compunit_symtab *compunit_symtab = nullptr;
+ struct compunit_symtab *m_compunit_symtab = nullptr;
/* Language of this compunit_symtab. */
- enum language language;
+ enum language m_language;
/* The macro table for the compilation unit whose symbols we're
currently reading. */