aboutsummaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.h
diff options
context:
space:
mode:
authorMaxim Grigoriev <maxim2405@gmail.com>2007-02-15 19:51:59 +0000
committerMaxim Grigoriev <maxim2405@gmail.com>2007-02-15 19:51:59 +0000
commitff7a4c00e04ec3cd412da0a239852ca928afe02e (patch)
treeed1cd1281a29de2335bbdaf77013ae0cc6f87f1d /gdb/xtensa-tdep.h
parenta8e24a5610be18628902ac204f862e7276c96987 (diff)
downloadgdb-ff7a4c00e04ec3cd412da0a239852ca928afe02e.zip
gdb-ff7a4c00e04ec3cd412da0a239852ca928afe02e.tar.gz
gdb-ff7a4c00e04ec3cd412da0a239852ca928afe02e.tar.bz2
* xtensa-tdep.h (xtensa_reg_mask_t): New.
(xtensa_mask_t): Change mask field to be a separate array. * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read) (xtensa_pseudo_register_write, xtensa_unwind_pc) (xtensa_unwind_dummy_id, xtensa_push_dummy_call) (xtensa_breakpoint_from_pc): Remove implicit type casting. * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5) (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13) (mask14, mask15): Rename to (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3) (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7) (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11) (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this. (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3) (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7) (xtensa_submask8, xtensa_submask9, xtensa_submask10) (xtensa_submask11, xtensa_submask12, xtensa_submask13) (xtensa_submask14, xtensa_submask15): New. (rmap): Follow strict aliasing rules doing static initialization.
Diffstat (limited to 'gdb/xtensa-tdep.h')
-rw-r--r--gdb/xtensa-tdep.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h
index f76debe..b6ed965 100644
--- a/gdb/xtensa-tdep.h
+++ b/gdb/xtensa-tdep.h
@@ -103,13 +103,15 @@ typedef struct
typedef struct
{
+ int reg_num;
+ int bit_start;
+ int bit_size;
+} xtensa_reg_mask_t;
+
+typedef struct
+{
int count;
- struct
- {
- int reg_num;
- int bit_start;
- int bit_size;
- } mask[0];
+ xtensa_reg_mask_t *mask;
} xtensa_mask_t;