X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fgdbarch.h;h=cc959144986cddfa597b708c2f8ab00737d6388e;hb=93f9a11fbdb8f09428b17180d51a09a1bda39a52;hp=add7e13383b36554ea0285efff55877a4f1ea9b8;hpb=0bc5d801ec836cd4b7d1ab7d05658e7a1d05df22;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index add7e13383..cc95914498 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -677,18 +677,19 @@ extern void set_gdbarch_addr_bits_remove (struct gdbarch *gdbarch, gdbarch_addr_ FIXME/cagney/2001-01-18: The logic is backwards. It should be asking if the target can single step. If not, then implement single step using breakpoints. - A return value of 1 means that the software_single_step breakpoints - were inserted; 0 means they were not. Multiple breakpoints may be - inserted for some instructions such as conditional branch. However, - each implementation must always evaluate the condition and only put - the breakpoint at the branch destination if the condition is true, so - that we ensure forward progress when stepping past a conditional - branch to self. */ + Return a vector of addresses on which the software single step + breakpoints should be inserted. NULL means software single step is + not used. + Multiple breakpoints may be inserted for some instructions such as + conditional branch. However, each implementation must always evaluate + the condition and only put the breakpoint at the branch destination if + the condition is true, so that we ensure forward progress when stepping + past a conditional branch to self. */ extern int gdbarch_software_single_step_p (struct gdbarch *gdbarch); -typedef int (gdbarch_software_single_step_ftype) (struct frame_info *frame); -extern int gdbarch_software_single_step (struct gdbarch *gdbarch, struct frame_info *frame); +typedef VEC (CORE_ADDR) * (gdbarch_software_single_step_ftype) (struct frame_info *frame); +extern VEC (CORE_ADDR) * gdbarch_software_single_step (struct gdbarch *gdbarch, struct frame_info *frame); extern void set_gdbarch_software_single_step (struct gdbarch *gdbarch, gdbarch_software_single_step_ftype *software_single_step); /* Return non-zero if the processor is executing a delay slot and a