diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-10-29 13:01:19 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-10-29 13:02:29 -0400 |
commit | 7ca51576b94fb59a41050957d5ee822d21711abc (patch) | |
tree | 1e8ef80866a5fd9ddcdf71962e978c0272387eca /gdb | |
parent | c1342859dc02fd57e013ef544037a9ead4f23f60 (diff) | |
download | fsf-binutils-gdb-7ca51576b94fb59a41050957d5ee822d21711abc.zip fsf-binutils-gdb-7ca51576b94fb59a41050957d5ee822d21711abc.tar.gz fsf-binutils-gdb-7ca51576b94fb59a41050957d5ee822d21711abc.tar.bz2 |
xtensa-xtregs: Fix formatting issues
Fix a few formatting issues in that file.
gdb/ChangeLog:
* xtensa-xtregs.c: Fix formatting issues.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/xtensa-xtregs.c | 31 |
2 files changed, 20 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d278841..a760594 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2017-10-29 Simon Marchi <simon.marchi@ericsson.com> + * xtensa-xtregs.c: Fix formatting issues. + +2017-10-29 Simon Marchi <simon.marchi@ericsson.com> + * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify. 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com> diff --git a/gdb/xtensa-xtregs.c b/gdb/xtensa-xtregs.c index 0d2808d..8507aa2 100644 --- a/gdb/xtensa-xtregs.c +++ b/gdb/xtensa-xtregs.c @@ -17,22 +17,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -typedef struct { - int gdb_regnum; - int gdb_offset; - int ptrace_cp_offset; - int ptrace_offset; - int size; - int coproc; - int dbnum; - const char* name -;} xtensa_regtable_t; - -#define XTENSA_ELF_XTREG_SIZE 4 - -const xtensa_regtable_t xtensa_regmap_table[] = { +typedef struct +{ + int gdb_regnum; + int gdb_offset; + int ptrace_cp_offset; + int ptrace_offset; + int size; + int coproc; + int dbnum; + const char *name; +} xtensa_regtable_t; + +#define XTENSA_ELF_XTREG_SIZE 4 + +const xtensa_regtable_t xtensa_regmap_table[] = +{ /* gnum,gofs,cpofs,ofs,siz,cp, dbnum, name */ { 44, 176, 0, 0, 4, -1, 0x020c, "scompare1" }, { 0 } }; - |