diff options
Diffstat (limited to 'gdb/nios2-tdep.c')
-rw-r--r-- | gdb/nios2-tdep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c index 3d39451..c214078 100644 --- a/gdb/nios2-tdep.c +++ b/gdb/nios2-tdep.c @@ -2219,16 +2219,13 @@ nios2_get_next_pc (struct regcache *regcache, CORE_ADDR pc) /* Implement the software_single_step gdbarch method. */ -static VEC (CORE_ADDR) * +static std::vector<CORE_ADDR> nios2_software_single_step (struct regcache *regcache) { struct gdbarch *gdbarch = get_regcache_arch (regcache); CORE_ADDR next_pc = nios2_get_next_pc (regcache, regcache_read_pc (regcache)); - VEC (CORE_ADDR) *next_pcs = NULL; - VEC_safe_push (CORE_ADDR, next_pcs, next_pc); - - return next_pcs; + return {next_pc}; } /* Implement the get_longjump_target gdbarch method. */ |