diff options
Diffstat (limited to 'gdb/tic6x-tdep.c')
-rw-r--r-- | gdb/tic6x-tdep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c index 23b7b28..012b749 100644 --- a/gdb/tic6x-tdep.c +++ b/gdb/tic6x-tdep.c @@ -699,15 +699,12 @@ tic6x_get_next_pc (struct regcache *regcache, CORE_ADDR pc) /* This is the implementation of gdbarch method software_single_step. */ -static VEC (CORE_ADDR) * +static std::vector<CORE_ADDR> tic6x_software_single_step (struct regcache *regcache) { CORE_ADDR next_pc = tic6x_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}; } /* This is the implementation of gdbarch method frame_align. */ |