Yao Qi
a28aa6edd4
Create tdep->rx_psw_type and tdep->rx_fpsw_type lazily
...
I build GDB with all targets enabled, and "set architecture rx",
GDB crashes,
(gdb) set architecture rx
Program received signal SIGSEGV, Segmentation fault.
append_flags_type_flag (type=0x20cc360, bitpos=bitpos@entry=0, name=name@entry=0xd27529 "C") at ../../binutils-gdb/gdb/gdbtypes.c:4926
4926 name);
(gdb) bt 10
#0 append_flags_type_flag (type=0x20cc360, bitpos=bitpos@entry=0, name=name@entry=0xd27529 "C") at ../../binutils-gdb/gdb/gdbtypes.c:4926
#1 0x00000000004ce725 in rx_gdbarch_init (info=..., arches=<optimized out>) at ../../binutils-gdb/gdb/rx-tdep.c:1051
#2 0x00000000006b05a4 in gdbarch_find_by_info (info=...) at ../../binutils-gdb/gdb/gdbarch.c:5269
#3 0x000000000060eee4 in gdbarch_update_p (info=...) at ../../binutils-gdb/gdb/arch-utils.c:557
#4 0x000000000060f8a8 in set_architecture (ignore_args=<optimized out>, from_tty=1, c=<optimized out>) at ../../binutils-gdb/gdb/arch-utils.c:531
#5 0x0000000000593d0b in do_set_command (arg=<optimized out>, arg@entry=0x20bee81 "rx ", from_tty=from_tty@entry=1, c=c@entry=0x20b1540)
at ../../binutils-gdb/gdb/cli/cli-setshow.c:455
#6 0x00000000007665c3 in execute_command (p=<optimized out>, p@entry=0x20bee70 "set architecture rx ", from_tty=1) at ../../binutils-gdb/gdb/top.c:666
#7 0x00000000006935f4 in command_handler (command=0x20bee70 "set architecture rx ") at ../../binutils-gdb/gdb/event-top.c:577
#8 0x00000000006938d8 in command_line_handler (rl=<optimized out>) at ../../binutils-gdb/gdb/event-top.c:767
#9 0x0000000000692c2c in gdb_rl_callback_handler (rl=0x20be7f0 "") at ../../binutils-gdb/gdb/event-top.c:200
The cause is that we want to access some builtin types in gdbarch init, but
it is not initialized yet. I fix it by creating the type when it is to be
used. We've already done this in sparc, sparc64 and m68k.
gdb:
2016-12-09 Yao Qi <yao.qi@linaro.org >
PR tdep/20954
* rx-tdep.c (rx_psw_type): New function.
(rx_fpsw_type): New function.
(rx_register_type): Call rx_psw_type and rx_fpsw_type.
(rx_gdbarch_init): Move code to rx_psw_type and
rx_fpsw_type.
gdb/testsuite:
2016-12-09 Yao Qi <yao.qi@linaro.org >
* gdb.base/all-architectures.exp.in: Remove kfail for "rx".
2016-12-09 15:27:43 +00:00
..
2016-12-01 14:40:05 -06:00
2016-12-09 14:59:09 +00:00
2016-12-09 14:59:09 +00:00
2016-12-09 14:59:09 +00:00
2016-12-09 14:59:09 +00:00
2016-12-09 14:59:09 +00:00
2016-12-09 14:59:09 +00:00
2016-12-09 14:59:09 +00:00
2016-12-09 14:59:09 +00:00
2016-12-09 15:27:43 +00:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-02-24 11:31:58 +00:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-04-19 09:06:53 -07:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-04-25 09:53:51 +01:00
2016-04-27 16:13:52 +01:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:44:38 -06:00
2016-12-01 14:41:23 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:41:23 -06:00
2016-03-01 17:11:57 +00:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-04-27 18:09:14 -04:00
2016-12-01 14:40:05 -06:00
2016-06-29 14:51:41 +01:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-10-13 16:08:17 +01:00
2016-03-09 18:24:58 +00:00
2016-12-02 19:22:48 +00:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:41:23 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-04-27 18:09:14 -04:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:44:38 -06:00
2016-11-23 09:45:22 -05:00
2016-12-01 14:45:32 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:41:23 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:43:42 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:41:23 -06:00
2016-12-01 14:41:23 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:42:48 -06:00
2016-06-09 22:50:47 -07:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-02-09 12:12:17 +00:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:41:23 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-09-06 17:33:15 +02:00
2016-12-01 14:41:23 -06:00
2016-06-17 16:58:05 +08:00
2016-09-06 17:33:15 +02:00
2016-12-01 14:41:23 -06:00
2016-02-04 15:46:37 +00:00
2016-12-01 14:41:23 -06:00
2016-02-04 15:46:37 +00:00
2016-12-01 14:40:05 -06:00
2016-02-04 15:46:37 +00:00
2016-02-04 15:46:37 +00:00
2016-12-01 14:47:50 -06:00
2016-01-25 13:17:34 +00:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-09-02 09:22:13 +01:00
2016-12-01 14:45:32 -06:00
2016-12-01 14:40:05 -06:00
2016-04-27 18:09:14 -04:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:41:23 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:41:23 -06:00
2016-04-07 22:18:49 +02:00
2016-04-07 22:18:49 +02:00
2016-12-01 14:47:50 -06:00
2016-09-09 19:59:53 +02:00
2016-09-09 19:59:53 +02:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-02-09 16:04:45 -08:00
2016-02-09 16:04:45 -08:00
2016-02-09 16:04:45 -08:00
2016-09-28 17:44:57 -04:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-09-29 17:39:39 +02:00
2016-09-29 17:39:39 +02:00
2016-04-08 15:38:53 +02:00
2016-06-17 19:24:08 +01:00
2016-07-01 11:56:39 +01:00
2016-10-06 12:53:52 +01:00
2016-10-06 12:53:52 +01:00
2016-10-06 12:53:52 +01:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-07-01 11:56:39 +01:00
2016-06-17 19:24:08 +01:00
2016-07-01 11:56:39 +01:00
2016-12-01 14:47:50 -06:00
2016-10-19 18:23:09 +01:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-02 13:36:15 -06:00
2016-02-01 18:05:35 +00:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-10-24 14:13:51 +02:00
2016-12-01 14:42:48 -06:00
2016-08-23 16:03:28 +01:00
2016-12-01 14:47:50 -06:00
2016-09-06 23:49:57 +01:00
2016-12-01 14:47:50 -06:00
2016-06-21 01:11:57 +01:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-06-24 21:02:36 -04:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-04-27 18:09:14 -04:00
2016-04-27 18:09:14 -04:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-09-21 11:39:37 -06:00
2016-12-01 14:44:38 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-09-02 15:26:54 +01:00
2016-06-29 17:33:19 +01:00
2016-09-02 09:22:13 +01:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-08-24 13:10:08 -04:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-08-12 11:02:04 +01:00
2016-08-23 14:15:50 +01:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-02-23 13:25:18 -08:00
2016-02-23 13:25:18 -08:00
2016-03-15 12:44:34 -07:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-04-27 18:09:14 -04:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-04-27 18:09:14 -04:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-09-12 00:19:22 -04:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-03-03 09:17:45 +00:00
2016-06-17 10:38:55 +01:00
2016-12-01 14:40:05 -06:00
2016-03-03 09:17:45 +00:00
2016-06-17 10:38:55 +01:00
2016-03-03 09:17:45 +00:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:45:32 -06:00
2016-11-09 13:02:12 +01:00
2016-11-09 13:02:12 +01:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-08-22 20:05:09 +01:00
2016-12-01 14:44:38 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:44:38 -06:00
2016-12-01 14:40:05 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:41:23 -06:00
2016-05-27 13:06:25 +01:00
2016-12-01 14:47:50 -06:00
2016-12-01 14:47:50 -06:00