aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-20 10:25:53 -0600
committerTom Tromey <tom@tromey.com>2018-07-16 08:55:14 -0600
commite62cca7ccb9ea47d18a0812a2c27f00e5048367b (patch)
tree7d7695c27c725706d19a063ce07ba62741551004 /gdb/buildsym.c
parent905eb0e293820ae91941100ebed291a8f74e1f12 (diff)
downloadgdb-e62cca7ccb9ea47d18a0812a2c27f00e5048367b.zip
gdb-e62cca7ccb9ea47d18a0812a2c27f00e5048367b.tar.gz
gdb-e62cca7ccb9ea47d18a0812a2c27f00e5048367b.tar.bz2
Add assert in prepare_for_building
This adds an assertion in prepare_for_building. This was useful for verifying whether some subsequent changes were valid. gdb/ChangeLog 2018-07-16 Tom Tromey <tom@tromey.com> * buildsym.c (prepare_for_building): Add assert.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index b548c52..035bdb2 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1021,6 +1021,7 @@ prepare_for_building (const char *name, CORE_ADDR start_addr)
gdb_assert (pending_macros == NULL);
gdb_assert (pending_addrmap == NULL);
gdb_assert (current_subfile == NULL);
+ gdb_assert (buildsym_compunit == nullptr);
}
/* Start a new symtab for a new source file in OBJFILE. Called, for example,