diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-10 17:09:29 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-10 17:09:29 +0000 |
commit | 93eed41f8ee40080a4e5f21fe7e950e5f34534ae (patch) | |
tree | afcac976fe583342ef7c65b8e263eb48c366736c /gdb/buildsym.h | |
parent | d2e5c99a26ed6f9267895cfa477d0d91faf17908 (diff) | |
download | gdb-93eed41f8ee40080a4e5f21fe7e950e5f34534ae.zip gdb-93eed41f8ee40080a4e5f21fe7e950e5f34534ae.tar.gz gdb-93eed41f8ee40080a4e5f21fe7e950e5f34534ae.tar.bz2 |
* buildsym.c (struct pending_block): Move from buildsym.h.
(pending_blocks): Likewise; now static.
(pending_block_obstack): New global.
(free_pending_blocks): Free blocks.
(record_pending_block): Use pending_block_obstack.
* buildsym.h (struct pending_block): Move definition to
buildsym.c.
(pending_blocks): Don't declare.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r-- | gdb/buildsym.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 0db96bf..b7d4a76 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -37,6 +37,7 @@ struct addrmap; this technique. */ struct block; +struct pending_block; #ifndef EXTERN #define EXTERN extern @@ -177,21 +178,6 @@ EXTERN int context_stack_size; EXTERN int within_function; -/* List of blocks already made (lexical contexts already closed). - This is used at the end to make the blockvector. */ - -struct pending_block - { - struct pending_block *next; - struct block *block; - }; - -/* Pointer to the head of a linked list of symbol blocks which have - already been finalized (lexical contexts already closed) and which - are just waiting to be built into a blockvector when finalizing the - associated symtab. */ - -EXTERN struct pending_block *pending_blocks; struct subfile_stack |