* symfile.c (decrement_reading_symtab): Add assert.
(increment_reading_symtab): Ditto.
This commit is contained in:
parent
ceae87f3fe
commit
2cb9c8590a
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-05-09 Doug Evans <dje@google.com>
|
||||
|
||||
* symfile.c (decrement_reading_symtab): Add assert.
|
||||
(increment_reading_symtab): Ditto.
|
||||
|
||||
2013-05-09 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* source.c (forward_search_command): Replace call to getc
|
||||
|
|
|
@ -160,6 +160,7 @@ static void
|
|||
decrement_reading_symtab (void *dummy)
|
||||
{
|
||||
currently_reading_symtab--;
|
||||
gdb_assert (currently_reading_symtab >= 0);
|
||||
}
|
||||
|
||||
/* Increment currently_reading_symtab and return a cleanup that can be
|
||||
|
@ -169,6 +170,7 @@ struct cleanup *
|
|||
increment_reading_symtab (void)
|
||||
{
|
||||
++currently_reading_symtab;
|
||||
gdb_assert (currently_reading_symtab > 0);
|
||||
return make_cleanup (decrement_reading_symtab, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue