aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym-legacy.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-03-28 18:17:17 -0400
committerSimon Marchi <simon.marchi@efficios.com>2022-04-04 12:58:07 -0400
commit59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5 (patch)
tree119727391fc7c5e95ace6211cac153fcbfb93876 /gdb/buildsym-legacy.h
parent056b6f879d0b958d470b9ed1df19ec68daf77467 (diff)
downloadgdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.zip
gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.gz
gdb-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.bz2
gdb: rename start_symtab/end_symtab to start_compunit_symtab/end_compunit_symtab
It's a bit confusing because we have both "compunit_symtab" and "symtab" types, and many methods and functions containing "start_symtab" or "end_symtab", which actually deal with compunit_symtabs. I believe this comes from the time before compunit_symtab was introduced, where symtab did the job of both. Rename everything I found containing start_symtab or end_symtab to use start_compunit_symtab or end_compunit_symtab. Change-Id: If3849b156f6433640173085ad479b6a0b085ade2
Diffstat (limited to 'gdb/buildsym-legacy.h')
-rw-r--r--gdb/buildsym-legacy.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/gdb/buildsym-legacy.h b/gdb/buildsym-legacy.h
index b8b5caf..86e1e1c 100644
--- a/gdb/buildsym-legacy.h
+++ b/gdb/buildsym-legacy.h
@@ -30,20 +30,20 @@
The basic way this module is used is as follows:
scoped_free_pendings free_pending;
- cust = start_symtab (...);
+ cust = start_compunit_symtab (...);
... read debug info ...
- cust = end_symtab (...);
+ cust = end_compunit_symtab (...);
- The compunit symtab pointer ("cust") is returned from both start_symtab
- and end_symtab to simplify the debug info readers.
+ The compunit symtab pointer ("cust") is returned from both
+ start_compunit_symtab and end_compunit_symtab to simplify the debug info readers.
dbxread.c and xcoffread.c use another variation:
scoped_free_pendings free_pending;
- cust = start_symtab (...);
+ cust = start_compunit_symtab (...);
... read debug info ...
- cust = end_symtab (...);
- ... start_symtab + read + end_symtab repeated ...
+ cust = end_compunit_symtab (...);
+ ... start_compunit_symtab + read + end_compunit_symtab repeated ...
*/
class scoped_free_pendings
@@ -70,7 +70,8 @@ extern void push_subfile ();
extern const char *pop_subfile ();
-extern struct compunit_symtab *end_symtab (CORE_ADDR end_addr, int section);
+extern struct compunit_symtab *end_compunit_symtab (CORE_ADDR end_addr,
+ int section);
extern struct context_stack *push_context (int desc, CORE_ADDR valu);
@@ -78,11 +79,11 @@ extern struct context_stack pop_context ();
extern void record_line (struct subfile *subfile, int line, CORE_ADDR pc);
-extern struct compunit_symtab *start_symtab (struct objfile *objfile,
- const char *name,
- const char *comp_dir,
- CORE_ADDR start_addr,
- enum language language);
+extern struct compunit_symtab *start_compunit_symtab (struct objfile *objfile,
+ const char *name,
+ const char *comp_dir,
+ CORE_ADDR start_addr,
+ enum language language);
/* Record the name of the debug format in the current pending symbol
table. FORMAT must be a string with a lifetime at least as long as
@@ -106,12 +107,12 @@ extern void set_last_source_file (const char *name);
extern const char *get_last_source_file (void);
/* Set the last source start address. Can only be used between
- start_symtab and end_symtab* calls. */
+ start_compunit_symtab and end_compunit_symtab* calls. */
extern void set_last_source_start_addr (CORE_ADDR addr);
/* Get the last source start address. Can only be used between
- start_symtab and end_symtab* calls. */
+ start_compunit_symtab and end_compunit_symtab* calls. */
extern CORE_ADDR get_last_source_start_addr ();