• R/O
  • HTTP
  • SSH
  • HTTPS

List of commits

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


users/palves/catch_exceptions
RSS
Rev. Time Author
2a015c4 users/palves/catch_exceptions 2017-09-28 07:37:48 Pedro Alves

zap catch_exceptions

bea0a5a 2017-09-28 06:43:26 Pedro Alves

zap catch_errors

021f945 2017-09-28 06:43:09 Tom Tromey

Change exceptions.h functions to use gdb::function_view

This changes some functions in exceptions.h to use gdb::function_view,
then fixes up the fallout. This lead to some surprising places, like
a function pointer in target_so_ops.

While writing this I found that catch_exception_ftype was unused, so I
removed this.

Note that I did not compile the windows-nat.c change, so I don't know
if it works.

Regression tested by the buildbot.

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* windows-nat.c (get_windows_debug_event): Update.
(handle_load_dll): Remove argument.
* solib-target.c (solib_target_open_symbol_file_object): Change
type.
* solib-svr4.c (open_symbol_file_object): Change type.
* solib-frv.c (open_symbol_file_object): Change type.
* solib-dsbt.c (open_symbol_file_object): Change type.
* solib-darwin.c (open_symbol_file_object): Change type.
* solib-aix.c (solib_aix_open_symbol_file_object): Change type.
* thread.c (do_captured_list_thread_ids): Remove argument.
(enum gdb_rc): Update.
(do_captured_thread_select): Change type.
(enum gdb_rc): Update.
* symmisc.c (struct print_symbol_args): Remove.
(print_symbol): Change type.
(dump_symtab_1): Update.
* solib.c (update_solib_list): Update.
* solist.h (struct target_so_ops) <open_symbol_file_object>:
Change type.
* record-full.c (struct record_full_message_args): Remove.
(record_full_message_wrapper): Remove.
(record_full_message_wrapper_safe): Update.
* objc-lang.c (find_objc_msgcall_submethod_helper): Remove.
(find_objc_msgcall_submethod): Update.
(struct objc_submethod_helper_data): Remove.
* main.c (captured_command_loop): Remove parameter.
(captured_main): Update.
* infrun.c (hook_stop_stub): Remove.
(normal_stop): Update.
(restore_selected_frame): Change type.
(restore_infcall_control_state): Update.
* breakpoint.c (bpstat_check_watchpoint)
(bpstat_check_breakpoint_conditions, gdb_breakpoint_query)
(struct captured_breakpoint_query_args): Remove.
(do_captured_breakpoint_query): Change type.
(breakpoint_re_set): Update.
* symfile-mem.c (add_vsyscall_page): Update.
* remote-fileio.c (remote_fileio_request): Update.
* exceptions.c (catch_exceptions): Use gdb::function_view.
(catch_exceptions_with_msg, catch_errors): Likewise.
* exceptions.h (catch_errors, catch_exceptions_with_msg)
(catch_errors): Update.
(catch_exceptions_ftype): Remove args.
(catch_exception_ftype): Remove.

96a5a1d 2017-09-28 02:05:21 Ulrich Weigand

Complete tdep move to convert_typed_floating

Many tdep files need to perform conversions between two floating-point
types, usually when accessing FP registers. Most targets now use the
convert_typed_floating helper routine to do so. However, a small number
still use the old method of converting via a DOUBLEST. Since we want
to get rid of DOUBLEST, these targets need to be moved to the new
method as well.

The main obstacle is that for convert_typed_floating we need an actual
*type*, not just a floatformat.

In arm-tdep.c, this is very straightforward, since there is already a
type using the ARM extended floatformat.

For sh-tdep.c and sh64-tdep.c, no such type already exists, so I've
added one to the gdbarch_tdep struct as done on other targets.

gdb/ChangeLog
2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>

* arm-tdep.c: (convert_from_extended): Remove.
(convert_to_extended): Likewise.
(arm_extract_return_value): Use convert_typed_floating.
(arm_store_return_value): Likewise.

* sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
* sh-tdep.c: Do not include "floatformat.h".
(sh_littlebyte_bigword_type): New function.
(sh_register_convert_to_virtual): Use convert_typed_floating.
(sh_register_convert_to_raw): Likewise.
* sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
(sh64_littlebyte_bigword_type): New function.
(sh64_extract_return_value): Use convert_typed_floating.
(sh64_register_convert_to_virtual): Likewise.
(sh64_register_convert_to_raw): Likewise.

0db7851 2017-09-28 02:03:36 Ulrich Weigand

Simplify floatformat_from_type

For historical reasons, the TYPE_FLOATFORMAT element is still set to hold
an array of two floatformat structs, one for big-endian and the other for
little-endian. When accessing the element via floatformat_from_type,
the code would check the type's byte order and return the appropriate
floatformat.

However, these days this is quite unnecessary, since the type's byte order
is already known at the time the type is allocated and the floatformat is
installed into TYPE_FLOATFORMAT. Therefore, we can just install the correct
version here.

Also, moves the (now trivially simple) floatformat_from_type accessor to
gdbtypes.{c,h}, since it doesn't really need to be in doublest.c now.

gdb/ChangeLog
2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>

* doublest.h (floatformat_from_type): Move to gdbtypes.h.
* doublest.c (floatformat_from_type): Move to gdbtypes.c.

* gdbtypes.h (union type_specific): Make field floatformat hold
just a single struct floatformat, not an array.
(floatformat_from_type): Move here.
* gdbtypes.c (floatformat_from_type): Move here. Update to
changed TYPE_FLOATFORMAT definition.
(verify_floatformat): Update to changed TYPE_FLOATFORMAT.
(recursive_dump_type): Likewise.
(init_float_type): Install correct floatformat for byte order.
(arch_float_type): Likewise.

77b7c78 2017-09-28 02:02:00 Ulrich Weigand

Make init_type/arch_type take a size in bits

This changes the interfaces to init_type and arch_type to take the
type length in bits as input (instead of as bytes). The routines
assert that the length is a multiple of TARGET_CHAR_BIT.

For consistency, arch_flags_type is changed likewise, so that now
all type creation interfaces always use length in bits.

All callers are updated in the straightforward manner.

The assert actually found a bug in read_range_type, where the
init_integer_type routine was called with a wrong argument (probably
a bug introduced with the conversion to use init_integer_type).

gdb/ChangeLog
2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>

* gdbtypes.c (init_type): Change incoming argument from
length-in-bytes to length-in-bits. Assert length is a
multiple of TARGET_CHAR_BITS.
(arch_type, arch_flags_type): Likewise.
(init_integer_type): Update call to init_type.
(init_character_type): Likewise.
(init_boolean_type): Likewise.
(init_float_type): Likewise.
(init_decfloat_type): Likewise.
(init_complex_type): Likewise.
(init_pointer_type): Likewise.
(objfile_type): Likewise.
(arch_integer_type): Update call to arch_type.
(arch_character_type): Likewise.
(arch_boolean_type): Likewise.
(arch_float_type): Likewise.
(arch_decfloat_type): Likewise.
(arch_complex_type): Likewise.
(arch_pointer_type): Likewise.
(gdbtypes_post_init): Likewise.

* dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
(read_base_type): Likewise.
* mdebugread.c (basic_type): Likewise.
* stabsread.c (dbx_init_float_type): Likewise.
(rs6000_builtin_type): Likewise.
(read_range_type): Likewise. Also, fix call to init_integer_type
with erroneous length argument.

* ada-lang.c (ada_language_arch_info): Update call to arch_type.
* d-lang.c (build_d_types): Likewise.
* f-lang.c (build_fortran_types): Likewise.
* go-lang.c (build_go_types): Likewise.
* opencl-lang.c (build_opencl_types): Likewise.
* jit.c (finalize_symtab): Likewise.
* gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
(build_std_type_info_type): Likewise.
* target-descriptions.c (tdesc_gdb_type): Likewise. Also,
update call to arch_flags_type.

* linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
arch_type.
* fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
* windows-tdep.c (windows_get_tlb_type): Likewise.

* avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
* ft32-tdep.c (ft32_gdbarch_init): Likewise.
* m32c-tdep.c (make_types): Likewise.
* rl78-tdep.c (rl78_gdbarch_init): Likewise.
(rl78_psw_type): Update call to arch_flags_type.
* m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
* rx-tdep.c (rx_psw_type): Likewise.
(rx_fpsw_type): Likewise.
* sparc-tdep.c (sparc_psr_type): Likewise.
(sparc_fsr_type): Likewise.
* sparc64-tdep.c (sparc64_pstate_type): Likewise.
(sparc64_ccr_type): Likewise.
(sparc64_fsr_type): Likewise.
(sparc64_fprs_type): Likewise.

8e43602 2017-09-28 00:21:36 Nick Clifton

Add support for the new names of the RISC-V fmv.x.s and fmv.s.x instructions, vis: fmv.x.w and fmv.w.x.

PR 22179
opcodes * riscv-opc.c (riscv_opcodes): Add fmv.x.w and fmv.w.x as the new
names for the fmv.x.s and fmv.s.x instructions respectively.

gas * testsuite/gas/riscv/fmv.x.s: New file: Tests the support for the
renamed fmv.x.s and fmv.s.x instructions.
* testsuite/gas/riscv/fmv.x.d: New file: Test driver.

f21b4d5 2017-09-27 23:45:11 Tom Tromey

Constify find_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* findcmd.c (find_command): Constify.

643c2ff 2017-09-27 23:45:10 Tom Tromey

Constify some commands in ada-tasks.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* ada-tasks.c (task_command_1, task_command): Constify.

510e5e5 2017-09-27 23:45:09 Tom Tromey

Constify some commands in symtab.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* symtab.c (maintenance_print_symbol_cache)
(maintenance_flush_symbol_cache)
(maintenance_print_symbol_cache_statistics): Constify.

e503b19 2017-09-27 23:45:08 Tom Tromey

Constify some commands in inferior.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* inferior.c (detach_inferior_command, kill_inferior_command)
(inferior_command): Constify.

4e00131 2017-09-27 23:45:07 Tom Tromey

Constify some commands in regcache.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* regcache.c (regcache_print, maintenance_print_registers)
(maintenance_print_raw_registers)
(maintenance_print_cooked_registers)
(maintenance_print_register_groups)
(maintenance_print_remote_registers): Constify.

7776370 2017-09-27 23:45:06 Tom Tromey

Constify some commands in printcmd.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* printcmd.c (map_display_numbers, undisplay_command)
(enable_disable_display_command, enable_display_command)
(disable_display_command): Constify.

4495129 2017-09-27 23:45:05 Tom Tromey

Constify some commands in breakpoint.c

This also makes delete_command static; but now I wonder if it is used
in Insight and should not be touched.

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* breakpoint.h (delete_command): Don't declare.
* breakpoint.c (delete_command, enable_once_command)
(enable_count_command, enable_delete_command, breakpoint_1)
(maintenance_info_breakpoints, stopin_command, stopat_command)
(delete_command, delete_trace_command, save_breakpoints)
(save_breakpoints_command, save_tracepoints_command): Constify.

3088cf4 2017-09-27 23:45:04 Tom Tromey

Constify some commands in macrocmd.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* macrocmd.c (macro_expand_command, macro_expand_once_command)
(skip_ws, extract_identifier, macro_define_command)
(macro_undef_command, macro_list_command): Constify.

69f476a 2017-09-27 23:45:03 Tom Tromey

Constify some commands in infcmd.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* infcmd.c (environment_info, set_environment_command)
(unset_environment_command, path_info, info_proc_cmd_1)
(info_proc_cmd_mappings, info_proc_cmd_stat)
(info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
(info_proc_cmd_exe, info_proc_cmd_all): Constify.

c4a3e68 2017-09-27 23:45:03 Tom Tromey

Constify some commands in i386-tdep.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
Constify.

c9d31bd 2017-09-27 23:45:02 Tom Tromey

Constify add_symbol_file_from_memory_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* symfile-mem.c (add_symbol_file_from_memory_command): Constify.

1f3f85e 2017-09-27 23:45:01 Tom Tromey

Constify demangle_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* demangle.c (demangle_command): Constify.

9c504b5 2017-09-27 23:45:00 Tom Tromey

Constify maintenance_info_program_spaces_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* progspace.c (maintenance_info_program_spaces_command):
Constify.

6663cf9 2017-09-27 23:44:59 Tom Tromey

Constify some commands in compile.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* compile/compile.c (check_raw_argument, compile_file_command)
(compile_code_command, compile_print_command): Constify.

34e5fa2 2017-09-27 23:44:58 Tom Tromey

Constify maintenance_print_reggroups

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* reggroups.c (maintenance_print_reggroups): Constify.

8384c35 2017-09-27 23:44:57 Tom Tromey

Constify save_gdb_index_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* dwarf2read.c (save_gdb_index_command): Constify.

884beb0 2017-09-27 23:44:57 Tom Tromey

Constify info_probes_stap_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* stap-probe.c (info_probes_stap_command): Constify.

e0b2930 2017-09-27 23:44:56 Tom Tromey

Constify unset_exec_wrapper_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* fork-child.c (unset_exec_wrapper_command): Constify.

f938677 2017-09-27 23:44:55 Tom Tromey

Constify some commands in btrace.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* btrace.c (get_uint, get_context_size, no_chunk)
(maint_btrace_packet_history_cmd)
(maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
(maint_info_btrace_cmd): Constify.

8949cb8 2017-09-27 23:44:54 Tom Tromey

Constify delete_bookmark_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* reverse.c (delete_bookmark_command): Constify.

ac88e2d 2017-09-27 23:44:53 Tom Tromey

Constify some commands in remote.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* remote.c (set_memory_packet_size)
(set_memory_write_packet_size, show_memory_write_packet_size)
(set_memory_read_packet_size, show_memory_read_packet_size)
(compare_sections_command, packet_command, remote_put_command)
(remote_get_command, remote_delete_command): Constify.

bd4c9df 2017-09-27 23:44:52 Tom Tromey

Constify some commands in mips-tdep.c

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
(set_mipsfpu_double_command, set_mipsfpu_none_command)
(set_mipsfpu_auto_command): Constify.

5e93d4c 2017-09-27 23:44:51 Tom Tromey

Constify cd_command

gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>

* cli/cli-cmds.h (cd_command): Constify.
* cli/cli-cmds.c (cd_command): Constify.