mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
PR gdb/14550
* jit.c (finalize_symtab): Ensure that only the global block has a NULL superblock.
This commit is contained in:
parent
7d928dac62
commit
db334a0164
@ -1,3 +1,10 @@
|
||||
2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
|
||||
|
||||
PR gdb/14550
|
||||
|
||||
* jit.c (finalize_symtab): Ensure that only the global block has a
|
||||
NULL superblock.
|
||||
|
||||
2013-01-17 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* acinclude.m4: Include ../config/plugins.m4,
|
||||
|
14
gdb/jit.c
14
gdb/jit.c
@ -724,8 +724,18 @@ finalize_symtab (struct gdb_symtab *stab, struct objfile *objfile)
|
||||
gdb_block_iter = gdb_block_iter->next)
|
||||
{
|
||||
if (gdb_block_iter->parent != NULL)
|
||||
BLOCK_SUPERBLOCK (gdb_block_iter->real_block) =
|
||||
gdb_block_iter->parent->real_block;
|
||||
{
|
||||
/* If the plugin specifically mentioned a parent block, we
|
||||
use that. */
|
||||
BLOCK_SUPERBLOCK (gdb_block_iter->real_block) =
|
||||
gdb_block_iter->parent->real_block;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* And if not, we set a default parent block. */
|
||||
BLOCK_SUPERBLOCK (gdb_block_iter->real_block) =
|
||||
BLOCKVECTOR_BLOCK (symtab->blockvector, STATIC_BLOCK);
|
||||
}
|
||||
}
|
||||
|
||||
/* Free memory. */
|
||||
|
Loading…
Reference in New Issue
Block a user