* objfiles.c (objfile_relocate): Do not relocate the same
BLOCKVECTOR_MAP address map multiple times.
This commit is contained in:
parent
217f1f7954
commit
b101f7a125
|
@ -1,3 +1,8 @@
|
||||||
|
2009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
|
* objfiles.c (objfile_relocate): Do not relocate the same
|
||||||
|
BLOCKVECTOR_MAP address map multiple times.
|
||||||
|
|
||||||
2009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
|
2009-07-14 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* remote.c (process_stop_reply): Access expedited target registers
|
* remote.c (process_stop_reply): Access expedited target registers
|
||||||
|
|
|
@ -570,6 +570,10 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bv = BLOCKVECTOR (s);
|
bv = BLOCKVECTOR (s);
|
||||||
|
if (BLOCKVECTOR_MAP (bv))
|
||||||
|
addrmap_relocate (BLOCKVECTOR_MAP (bv),
|
||||||
|
ANOFFSET (delta, s->block_line_section));
|
||||||
|
|
||||||
for (i = 0; i < BLOCKVECTOR_NBLOCKS (bv); ++i)
|
for (i = 0; i < BLOCKVECTOR_NBLOCKS (bv); ++i)
|
||||||
{
|
{
|
||||||
struct block *b;
|
struct block *b;
|
||||||
|
@ -579,9 +583,6 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
|
||||||
b = BLOCKVECTOR_BLOCK (bv, i);
|
b = BLOCKVECTOR_BLOCK (bv, i);
|
||||||
BLOCK_START (b) += ANOFFSET (delta, s->block_line_section);
|
BLOCK_START (b) += ANOFFSET (delta, s->block_line_section);
|
||||||
BLOCK_END (b) += ANOFFSET (delta, s->block_line_section);
|
BLOCK_END (b) += ANOFFSET (delta, s->block_line_section);
|
||||||
if (BLOCKVECTOR_MAP (bv))
|
|
||||||
addrmap_relocate (BLOCKVECTOR_MAP (bv),
|
|
||||||
ANOFFSET (delta, s->block_line_section));
|
|
||||||
|
|
||||||
ALL_BLOCK_SYMBOLS (b, iter, sym)
|
ALL_BLOCK_SYMBOLS (b, iter, sym)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue