diff options
author | Carl Love <cel@us.ibm.com> | 2021-11-15 20:31:06 +0000 |
---|---|---|
committer | Carl Love <cel@us.ibm.com> | 2021-11-18 10:17:31 -0600 |
commit | 90ad9178f19221a836cae3b4b2298ee0a968017a (patch) | |
tree | 4610ce75897ca7be088511b63fb22ee303f09792 /gdb/ppc-tdep.h | |
parent | 2888fe8d193bd1e82e1e155b9795308184fe923b (diff) | |
download | gdb-90ad9178f19221a836cae3b4b2298ee0a968017a.zip gdb-90ad9178f19221a836cae3b4b2298ee0a968017a.tar.gz gdb-90ad9178f19221a836cae3b4b2298ee0a968017a.tar.bz2 |
gdb: PowerPC fix gdb.base/break-interp.exp
This patch fixes eight test failures on PowerPC for the test
gdb.base/break-interp.exp. The patch adds a funtion and registers it to
setup the displaced stepping for ppc-linux platform. The patch moves the
struct ppc_inferior_data to the ppc-tdep.h include file to make it visible
to the ppc-linux-tdep.c and rs6000-tdep.c files. Additionally the function
get_ppc_per_inferior is made external in ppc-tdep.h to make it visible in
both files.
Tested on Power 10 ppc64le-linux with no regressions.
Diffstat (limited to 'gdb/ppc-tdep.h')
-rw-r--r-- | gdb/ppc-tdep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h index 6b305c4..cfd0aac 100644 --- a/gdb/ppc-tdep.h +++ b/gdb/ppc-tdep.h @@ -438,4 +438,14 @@ extern int ppc_process_record (struct gdbarch *gdbarch, /* Estimate for the maximum number of instructions in a function epilogue. */ #define PPC_MAX_EPILOGUE_INSTRUCTIONS 52 +struct ppc_inferior_data +{ + /* This is an optional in case we add more fields to ppc_inferior_data, we + don't want it instantiated as soon as we get the ppc_inferior_data for an + inferior. */ + gdb::optional<displaced_step_buffers> disp_step_buf; +}; + +extern ppc_inferior_data * get_ppc_per_inferior (inferior *inf); + #endif /* ppc-tdep.h */ |