X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Farch%2Farm-get-next-pcs.c;h=840486979874daac10300a55b0edd038fd0e76c8;hb=ed443b61e1f6e4eb7919fe9122dd947d1e87e767;hp=e84014742ebff69343617581d9e6b05e87395390;hpb=020ecd38e74681cb14987baf1a4d3c3ee3be0006;p=binutils-gdb.git diff --git a/gdb/arch/arm-get-next-pcs.c b/gdb/arch/arm-get-next-pcs.c index e84014742eb..84048697987 100644 --- a/gdb/arch/arm-get-next-pcs.c +++ b/gdb/arch/arm-get-next-pcs.c @@ -923,5 +923,16 @@ arm_get_next_pcs (struct arm_get_next_pcs *self) next_pcs = arm_get_next_pcs_raw (self); } + if (self->ops->fixup != NULL) + { + CORE_ADDR nextpc; + int i; + + for (i = 0; VEC_iterate (CORE_ADDR, next_pcs, i, nextpc); i++) + { + nextpc = self->ops->fixup (self, nextpc); + VEC_replace (CORE_ADDR, next_pcs, i, nextpc); + } + } return next_pcs; }