mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 11:01:35 +08:00
gdb: Add guess_tracepoint_registers hook to gdbarch.
When we're looking at a tracefile trace frame where registers are not available, and the tracepoint has only one location, we supply the location's address as the PC register. However, this only works if PC is not a pseudo register, and individual architectures may want to guess more registers. Add a gdbarch hook that will handle that. gdb/ChangeLog: * arch-utils.c (default_guess_tracepoint_registers): New function. * arch-utils.h (default_guess_tracepoint_registers): New prototype. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * gdbarch.sh: Add guess_tracepoint_registers hook. * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
This commit is contained in:
@ -204,4 +204,8 @@ extern char *default_gcc_target_options (struct gdbarch *gdbarch);
|
||||
extern const char *default_gnu_triplet_regexp (struct gdbarch *gdbarch);
|
||||
extern int default_addressable_memory_unit_size (struct gdbarch *gdbarch);
|
||||
|
||||
extern void default_guess_tracepoint_registers (struct gdbarch *gdbarch,
|
||||
struct regcache *regcache,
|
||||
CORE_ADDR addr);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user