1 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
3 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
4 (m68hc11_unwind_sp): Delete.
5 (m68hc11_gdbarch_init): Don't register deleted functions with
8 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10 * m32r-tdep.c (m32r_unwind_sp): Delete.
11 (m32r_unwind_pc): Delete.
12 (m32r_dummy_id): Delete.
13 (m32r_gdbarch_init): Don't register deleted functions with
16 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
18 * m32c-tdep.c (m32c_unwind_pc): Delete.
19 (m32c_unwind_sp): Delete.
20 (m32c_dummy_id): Delete.
21 (m32c_gdbarch_init): Don't register deleted functions with
24 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
26 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
27 (lm32_unwind_pc): Delete.
28 (lm32_dummy_id): Delete.
29 (lm32_gdbarch_init): Don't register deleted functions with
32 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
34 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
35 (iq2000_unwind_pc): Delete.
36 (iq2000_dummy_id): Delete.
37 (iq2000_gdbarch_init): Don't register deleted functions with
40 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
42 * nds32-tdep.c (nds32_type_align): Delete.
43 (nds32_push_dummy_call): Use type_align instead.
45 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
47 * arm-tdep.c (arm_type_align): Only handle vector override case.
48 (arm_push_dummy_call): Use type_align.
49 (arm_gdbarch_init): Register arm_type_align gdbarch function.
51 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
53 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
55 (pass_on_stack): Use type_align.
56 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
59 2019-04-23 Tom Tromey <tromey@adacore.com>
61 * dwarf2read.c (line_header::file_name_at): Remove unused
64 2019-04-23 Tom de Vries <tdevries@suse.de>
67 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
71 2019-03-27 Ali Tamur <tamur@google.com>
73 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
74 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
75 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
76 (dwarf_expr_context::get_addr_index): Likewise
77 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
78 (symbol_needs_eval_context::get_addr_index): Likewise
79 (disassemble_dwarf_expression): Add DW_OP_addrx
80 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
81 (read_cutu_die_from_dwo): Update comment
82 (skip_one_die): Add DW_FORM_addrx
83 (read_attribute_value): Likewise
84 (var_decode_location): Add DW_OP_addrx
85 (dwarf2_const_value_attr): Add DW_FORM_addrx
86 (dump_die_shallow): Likewise
87 (dwarf2_fetch_constant_bytes): Likewise
88 (decode_locdesc): Add DW_OP_addrx
89 (skip_form_bytes): Add DW_FORM_addrx
91 2019-04-22 Ali Tamur <tamur@google.com>
93 * MAINTAINERS (Write After Approval): Add self.
95 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
97 * solib-svr4.c (get_svr4_info): Add pspace parameter.
98 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
99 (open_symbol_file_object): Likewise.
100 (svr4_default_sos): Add info parameter.
101 (svr4_read_so_list): Likewise.
102 (svr4_current_sos_direct): Adjust functions calls to pass down
104 (svr4_current_sos_1): Add info parameter.
105 (svr4_current_sos): Call get_svr4_info, pass info down to
107 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
109 (svr4_in_dynsym_resolve_code): Pass current_program_space to
111 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
113 (probes_table_remove_objfile_probes): Likewise.
114 (register_solib_event_probe): Add info parameter.
115 (solist_update_incremental): Pass info parameter down to
117 (disable_probes_interface): Add info parameter.
118 (svr4_handle_solib_event): Pass current_program_space to
119 get_svr4_info. Adjust disable_probes_interface cleanup.
120 (svr4_create_probe_breakpoints): Add info parameter, pass it
121 down to register_solib_event_probe.
122 (svr4_create_solib_event_breakpoints): Add info parameter,
123 pass it down to svr4_create_probe_breakpoints.
124 (enable_break): Pass info down to
125 svr4_create_solib_event_breakpoints.
126 (svr4_solib_create_inferior_hook): Pass current_program_space to
128 (svr4_clear_solib): Likewise.
130 2019-04-22 Pedro Alves <palves@redhat.com>
132 * solib-svr4.c (svr4_free_objfile_observer): New.
133 (probe_and_action::objfile): New field.
134 (probes_table_htab_remove_objfile_probes)
135 (probes_table_remove_objfile_probes): New functions.
136 (register_solib_event_probe): Add 'objfile' parameter. Store it
137 in the new probe_and_action. Don't store the probe in 'lookup'.
138 (svr4_create_probe_breakpoints): Pass objfile to
139 register_solib_event_probe.
140 (_initialize_svr4_solib): Register a free_objfile observer.
142 2019-04-19 Tom Tromey <tom@tromey.com>
144 * common/queue.h: Remove.
146 2019-04-19 Tom Tromey <tom@tromey.com>
148 * event-loop.c: Don't include "common/queue.h".
150 2019-04-19 Tom Tromey <tom@tromey.com>
152 * remote.c (remote_target): Use delete.
153 * remote-notif.h: Include <list>, not "common/queue.h".
154 (notif_client_p): Remove typedef.
155 (remote_notif_state): Add constructor, destructor, initializer.
156 <notif_queue>: Now a std::list.
157 (remote_notif_state_xfree): Don't declare.
158 * remote-notif.c (remote_notif_process, handle_notification)
159 (remote_notif_state_allocate): Update.
160 (~remote_notif_state): Rename from remote_notif_state_xfree.
162 2019-04-19 Tom Tromey <tom@tromey.com>
164 * symfile.c (reread_symbols): Update.
165 * objfiles.c (objfile_register_static_link)
166 (objfile_lookup_static_link): Update
167 (~objfile) Don't delete static_links.
168 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
170 2019-04-19 Tom Tromey <tom@tromey.com>
172 * type-stack.h (struct type_stack) <insert>: Constify string.
173 * type-stack.c (type_stack::insert): Constify string.
174 * gdbtypes.h (lookup_template_type): Update.
175 (address_space_name_to_int): Update.
176 * gdbtypes.c (address_space_name_to_int): Make space_identifier
178 (lookup_template_type): Make name const.
179 * c-exp.y: Update rules.
180 (lex_one_token, classify_name, classify_inner_name)
181 (c_print_token): Update.
182 * p-exp.y: Update rules.
184 * f-exp.y: Update rules.
186 * d-exp.y: Update rules.
187 (lex_one_token, classify_name, classify_inner_name): Update.
188 * parse.c (write_dollar_variable, copy_name): Return std::string.
189 * parser-defs.h (copy_name): Change return type.
190 * m2-exp.y: Update rules.
192 * go-exp.y (lex_one_token): Update.
194 (classify_unsafe_function, classify_packaged_name)
195 (classify_name, yylex): Update.
197 2019-04-19 Sergei Trofimovich <siarheit@google.com>
199 * configure.ac: add --enable-source-highlight switch.
200 * configure: Regenerate.
201 * top.c (print_gdb_version): plumb --enable-source-highlight
202 status to "show configuration".
204 2019-04-19 Tom Tromey <tromey@adacore.com>
206 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
208 (empty_record, ada_template_to_fixed_record_type_1)
209 (template_to_static_fixed_type)
210 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
211 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
212 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
215 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
218 * source.c (print_source_lines_base): Advance "iter" when a
219 control character is seen.
221 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
223 * inferior.h (struct infcall_suspend_state_deleter):
224 Catch exception in destructor to avoid crash.
226 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
228 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
229 close to the add_com "shell".
231 2019-04-18 Tom Tromey <tromey@adacore.com>
233 * process-stratum-target.h (class process_stratum_target)
234 <stratum>: Add "final".
236 2019-04-17 Tom Tromey <tromey@adacore.com>
238 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
239 against nullptr before use.
241 2019-04-17 Alan Hayward <alan.hayward@arm.com>
243 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
245 2019-04-17 Jim Wilson <jimw@sifive.com>
246 Andrew Burgess <andrew.burgess@embecosm.com>
248 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
249 code read might fail, assume 4-byte breakpoint in that case.
251 2019-04-15 Leszek Swirski <leszeks@google.com>
253 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
254 rather than a hand-rolled POD check when checking for forced MEMORY
257 2019-04-15 Alan Hayward <alan.hayward@arm.com>
259 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
260 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
262 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
263 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
264 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
267 2019-04-15 Alan Hayward <alan.hayward@arm.com>
269 * aarch64-linux-nat.c
270 (aarch64_linux_nat_target::thread_architecture): Add override.
271 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
274 2019-04-15 Alan Hayward <alan.hayward@arm.com>
276 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
278 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
280 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
281 target types of size 96-bits, add some additional comments, and
282 check that the builtin type we found was the correct size.
284 2019-04-12 Eli Zaretskii <eliz@gnu.org>
286 * utils.c (prompt_for_continue): Don't restore the styling at the
287 end, as applied_style has the wrong value. This fixes styling in
288 long lists of file names that are interrupted by the "Continue?"
291 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
293 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
294 * c-lang.c (c_language_defn): Likewise.
295 (cplus_language_defn): Likewise.
296 (asm_language_defn): Likewise.
297 (minimal_language_defn): Likewise.
298 * d-lang.c (d_language_defn): Likewise.
299 * f-lang.c (f_language_defn): Likewise.
300 * go-lang.c (go_language_defn): Likewise.
301 * language.c (unknown_language_defn): Likewise.
302 (auto_language_defn): Likewise.
303 * language.h (struct language_defn): Remove la_magic field.
304 (LANG_MAGIC): Delete.
305 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
306 * objc-lang.c (objc_language_defn): Likewise.
307 * opencl-lang.c (opencl_language_defn): Likewise.
308 * p-lang.c (pascal_language_defn): Likewise.
309 * rust-lang.c (rust_language_defn): Likewise.
311 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
313 * riscv-tdep.c (riscv_type_align): New function.
314 (riscv_type_alignment): Delete.
315 (riscv_arg_location): Use 'type_align'.
316 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
318 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
320 * gdbtypes.c (type_align): A struct with no non-static fields also
323 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
325 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
327 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
329 (riscv_struct_info::analyse): New implementation using new
330 analyse_inner member function.
331 (riscv_struct_info::field_offset): New member function.
332 (riscv_struct_info::m_offsets): New member variable.
333 (riscv_struct_info::analyse_inner): New private member function,
334 takes the old implementation of riscv_struct_info::analyse but
335 extended to track field offsets.
336 (riscv_call_arg_struct): Update the struct folding special cases
337 to handle cases where empty C++ structs, which are non-zero
339 (riscv_arg_location): Initialise the length of each location, a
340 non-zero length now indicates the location is in use.
341 (riscv_push_dummy_call): Allow for the first location having a
342 non-zero offset when setting up arguments.
343 (riscv_return_value): Likewise, but for return values.
345 2019-04-11 Tom Tromey <tromey@adacore.com>
347 * utils.c (internal_vproblem): Make "msg" const.
349 2019-04-11 Alan Hayward <alan.hayward@arm.com>
351 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
352 * trad-frame.c (trad_frame_reset_saved_regs): New function.
353 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
354 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
356 2019-04-10 Kevin Buettner <kevinb@redhat.com>
358 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
360 (fill_gregset): Call amd64_linux_collect_native_gregset instead
361 of amd64_collect_native_gregset.
362 (amd64_linux_nat_target::store_registers): Likewise.
364 2019-04-10 Tom Tromey <tom@tromey.com>
366 * symtab.c (lookup_global_symbol_from_objfile)
367 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
368 * objfiles.h (class separate_debug_iterator): New.
369 (class separate_debug_range): New.
370 (struct objfile) <separate_debug_objfiles>: New method.
371 (objfile_separate_debug_iterate): Don't declare.
372 * objfiles.c (separate_debug_iterator::operator++): Rename from
373 objfile_separate_debug_iterate.
374 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
376 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
379 2019-04-10 Tom Tromey <tom@tromey.com>
381 * symfile.c (reread_symbols): Remove old comment.
382 * objfiles.c (free_all_objfiles): Fix a typo.
384 2019-04-10 Tom Tromey <tom@tromey.com>
386 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
387 * minsyms.c (lookup_minimal_symbol): Use foreach.
388 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
389 (lookup_minimal_symbol_solib_trampoline): Likewise.
390 * symfile.c (reread_symbols): Use foreach.
392 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
393 Tom Tromey <tromey@adacore.com>
396 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
397 (rust_lex_int_test): Change "value" to be LONGEST.
398 (rust_lex_tests): Add test for long integer literal.
400 2019-04-09 Tom Tromey <tromey@adacore.com>
402 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
404 (extended_remote_target::attach): Update.
405 (remote_target::remote_notice_new_inferior): Update.
406 (remote_target::add_current_inferior_and_thread): Update.
407 * inferior.c (exit_inferior_1): Use "false".
408 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
410 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
412 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
415 2019-04-08 Kevin Buettner <kevinb@redhat.com>
417 * python/py-inferior.c (infpy_thread_from_thread_handle):
418 Adjust comments to reflect renaming of thread_from_thread_handle
419 to thread_from_handle. Adjust keywords. Fix type error message.
420 (inferior_object_methods): Add thread_from_handle. Retain
421 thread_from_thread_handle, but mark it as deprecated.
423 2019-04-08 Kevin Buettner <kevinb@redhat.com>
425 * gdbthread.h (find_thread_by_handle): Revise declaration.
426 * thread.c (find_thread_by_handle): Likewise. Adjust
428 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
429 support for buffer objects as handles.
431 2019-04-08 Kevin Buettner <kevinb@redhat.com>
433 * python/py-infthread.c (thpy_thread_handle): New function.
434 (thread_object_methods): Register thpy_thread_handle.
436 2019-04-08 Kevin Buettner <kevinb@redhat.com>
438 * gdbthread.h (thread_to_thread_handle): Declare.
439 * thread.c (gdbtypes.h): Include.
440 (thread_to_thread_handle): New function.
442 * target.h (struct target_ops): Add thread_info_to_thread_handle.
443 (target_thread_info_to_thread_handle): Declare.
444 * target.c (target_thread_info_to_thread_handle): New function.
445 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
446 * target-delegates.c: Regenerate.
448 * linux-thread-db.c (class thread_db_target): Add method
449 thread_info_to_thread_handle.
450 (thread_db_target::thread_info_to_thread_handle): Define.
451 * remote.c (class remote_target): Add new method
452 thread_info_to_thread_handle.
453 (remote_target::thread_info_to_thread_handle): Define.
455 2019-04-08 Pedro Alves <palves@redhat.com>
457 * common/common-exceptions.c (throw_exception): Don't create
458 named object to throw; throw directly.
459 (throw_it): Likewise. Don't initialize gdb_exception::message
460 here, with new; pass FMT and AP to the ctor instead.
461 * common/common-exceptions.h: Include <string>.
462 (gdb_exception::gdb_exception(enum return_reason, enum errors,
463 const char *, va_list)): New ctor. Use std::make_shared.
464 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
466 (gdb_exception_error::gdb_exception_error(enum errors, const char
468 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
470 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
472 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
473 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
476 2019-04-08 Tom Tromey <tom@tromey.com>
478 * valops.c (value_rtti_indirect_type): Replace throw_exception
480 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
482 * thread.c (thr_try_catch_cmd): Replace throw_exception with
484 * target.c (target_translate_tls_address): Replace throw_exception
486 * stack.c (frame_apply_command_count): Replace throw_exception
488 * solib-spu.c (append_ocl_sos): Replace throw_exception with
490 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
492 * rs6000-tdep.c (rs6000_frame_cache)
493 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
494 * remote.c: Replace throw_exception with throw.
495 * record-full.c (record_full_message, record_full_wait_1)
496 (record_full_restore): Replace throw_exception with throw.
498 (get_thread_current_frame_id, record_btrace_start_replaying)
499 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
500 (cmd_record_btrace_start): Replace throw_exception with throw.
501 * parse.c (parse_exp_in_context_1): Replace throw_exception with
503 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
504 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
506 (find_linespec_symbols): Replace throw_exception with throw.
507 * infrun.c (displaced_step_prepare, resume): Replace
508 throw_exception with throw.
509 * infcmd.c (post_create_inferior): Replace throw_exception with
511 * inf-loop.c (inferior_event_handler): Replace throw_exception
513 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
514 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
515 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
516 (get_prev_frame_always, get_frame_pc_if_available)
517 (get_frame_address_in_block_if_available, get_frame_language):
518 Replace throw_exception with throw.
519 * frame-unwind.c (frame_unwind_try_unwinder): Replace
520 throw_exception with throw.
521 * eval.c (fetch_subexp_value, evaluate_var_value)
522 (evaluate_funcall, evaluate_subexp_standard): Replace
523 throw_exception with throw.
524 * dwarf2loc.c (call_site_find_chain)
525 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
526 Replace throw_exception with throw.
527 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
529 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
531 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
532 * completer.c (complete_line_internal): Replace throw_exception
534 * compile/compile-object-run.c (compile_object_run): Replace
535 throw_exception with throw.
536 * cli/cli-script.c (process_next_line): Replace throw_exception
538 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
539 (btrace_enable, btrace_maint_update_pt_packets): Replace
540 throw_exception with throw.
541 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
542 throw_exception with throw.
543 * break-catch-throw.c (re_set_exception_catchpoint): Replace
544 throw_exception with throw.
545 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
546 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
547 * aarch64-tdep.c (aarch64_make_prologue_cache)
548 (aarch64_make_stub_cache): Replace throw_exception with throw.
550 2019-04-08 Tom Tromey <tom@tromey.com>
552 * common/common-exceptions.c (throw_exception): Rename from
553 throw_exception_cxx. Remove old copy. Make argument const.
554 (throw_it): Create and throw exception objects directly.
555 * common/common-exceptions.h (throw_exception): Make argument
557 (struct gdb_exception_error): Add constructor.
558 (struct gdb_exception_quit): Add constructor.
560 2019-04-08 Tom Tromey <tom@tromey.com>
562 * common/common-exceptions.h (exception_rethrow): Don't declare.
563 (TRY_SJLJ): Update comment.
564 (TRY, CATCH, END_CATCH): Remove.
565 * common/common-exceptions.c (exception_rethrow): Remove.
567 2019-04-08 Tom Tromey <tom@tromey.com>
569 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
571 (gdb_exception_error): Rename from
572 gdb_exception_RETURN_MASK_ERROR.
573 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
574 (gdb_quit_bad_alloc): Update.
575 * aarch64-tdep.c: Update.
576 * ada-lang.c: Update.
577 * ada-typeprint.c: Update.
578 * ada-valprint.c: Update.
579 * amd64-tdep.c: Update.
580 * arch-utils.c: Update.
581 * break-catch-throw.c: Update.
582 * breakpoint.c: Update.
584 * c-varobj.c: Update.
585 * cli/cli-cmds.c: Update.
586 * cli/cli-interp.c: Update.
587 * cli/cli-script.c: Update.
588 * common/common-exceptions.c: Update.
589 * common/new-op.c: Update.
590 * common/selftest.c: Update.
591 * compile/compile-c-symbols.c: Update.
592 * compile/compile-cplus-symbols.c: Update.
593 * compile/compile-object-load.c: Update.
594 * compile/compile-object-run.c: Update.
595 * completer.c: Update.
598 * cp-support.c: Update.
599 * cp-valprint.c: Update.
600 * darwin-nat.c: Update.
601 * disasm-selftests.c: Update.
602 * dtrace-probe.c: Update.
603 * dwarf-index-cache.c: Update.
604 * dwarf-index-write.c: Update.
605 * dwarf2-frame-tailcall.c: Update.
606 * dwarf2-frame.c: Update.
607 * dwarf2loc.c: Update.
608 * dwarf2read.c: Update.
610 * event-loop.c: Update.
611 * event-top.c: Update.
613 * f-valprint.c: Update.
614 * fbsd-tdep.c: Update.
615 * frame-unwind.c: Update.
617 * gdbtypes.c: Update.
618 * gnu-v3-abi.c: Update.
619 * guile/guile-internal.h: Update.
620 * guile/scm-block.c: Update.
621 * guile/scm-breakpoint.c: Update.
622 * guile/scm-cmd.c: Update.
623 * guile/scm-disasm.c: Update.
624 * guile/scm-frame.c: Update.
625 * guile/scm-lazy-string.c: Update.
626 * guile/scm-math.c: Update.
627 * guile/scm-param.c: Update.
628 * guile/scm-ports.c: Update.
629 * guile/scm-pretty-print.c: Update.
630 * guile/scm-symbol.c: Update.
631 * guile/scm-symtab.c: Update.
632 * guile/scm-type.c: Update.
633 * guile/scm-value.c: Update.
634 * i386-linux-tdep.c: Update.
635 * i386-tdep.c: Update.
636 * inf-loop.c: Update.
641 * language.c: Update.
642 * linespec.c: Update.
643 * linux-fork.c: Update.
644 * linux-nat.c: Update.
645 * linux-tdep.c: Update.
646 * linux-thread-db.c: Update.
648 * mi/mi-cmd-break.c: Update.
649 * mi/mi-cmd-stack.c: Update.
650 * mi/mi-interp.c: Update.
651 * mi/mi-main.c: Update.
652 * objc-lang.c: Update.
653 * p-valprint.c: Update.
655 * ppc-linux-tdep.c: Update.
656 * printcmd.c: Update.
657 * python/py-arch.c: Update.
658 * python/py-breakpoint.c: Update.
659 * python/py-cmd.c: Update.
660 * python/py-finishbreakpoint.c: Update.
661 * python/py-frame.c: Update.
662 * python/py-framefilter.c: Update.
663 * python/py-gdb-readline.c: Update.
664 * python/py-inferior.c: Update.
665 * python/py-infthread.c: Update.
666 * python/py-lazy-string.c: Update.
667 * python/py-linetable.c: Update.
668 * python/py-objfile.c: Update.
669 * python/py-param.c: Update.
670 * python/py-prettyprint.c: Update.
671 * python/py-progspace.c: Update.
672 * python/py-record-btrace.c: Update.
673 * python/py-record.c: Update.
674 * python/py-symbol.c: Update.
675 * python/py-type.c: Update.
676 * python/py-unwind.c: Update.
677 * python/py-utils.c: Update.
678 * python/py-value.c: Update.
679 * python/python.c: Update.
680 * record-btrace.c: Update.
681 * record-full.c: Update.
682 * remote-fileio.c: Update.
684 * riscv-tdep.c: Update.
685 * rs6000-aix-tdep.c: Update.
686 * rs6000-tdep.c: Update.
687 * rust-exp.y: Update.
688 * rust-lang.c: Update.
689 * s390-tdep.c: Update.
690 * selftest-arch.c: Update.
691 * solib-dsbt.c: Update.
692 * solib-frv.c: Update.
693 * solib-spu.c: Update.
694 * solib-svr4.c: Update.
696 * sparc64-linux-tdep.c: Update.
698 * symfile-mem.c: Update.
703 * tracefile-tfile.c: Update.
705 * typeprint.c: Update.
706 * unittests/cli-utils-selftests.c: Update.
707 * unittests/parse-connection-spec-selftests.c: Update.
709 * valprint.c: Update.
712 * windows-nat.c: Update.
713 * x86-linux-nat.c: Update.
714 * xml-support.c: Update.
716 2019-04-08 Tom Tromey <tom@tromey.com>
718 * xml-support.c: Use C++ exception handling.
719 * x86-linux-nat.c: Use C++ exception handling.
720 * windows-nat.c: Use C++ exception handling.
721 * varobj.c: Use C++ exception handling.
722 * value.c: Use C++ exception handling.
723 * valprint.c: Use C++ exception handling.
724 * valops.c: Use C++ exception handling.
725 * unittests/parse-connection-spec-selftests.c: Use C++ exception
727 * unittests/cli-utils-selftests.c: Use C++ exception handling.
728 * typeprint.c: Use C++ exception handling.
729 * tui/tui.c: Use C++ exception handling.
730 * tracefile-tfile.c: Use C++ exception handling.
731 * top.c: Use C++ exception handling.
732 * thread.c: Use C++ exception handling.
733 * target.c: Use C++ exception handling.
734 * symmisc.c: Use C++ exception handling.
735 * symfile-mem.c: Use C++ exception handling.
736 * stack.c: Use C++ exception handling.
737 * sparc64-linux-tdep.c: Use C++ exception handling.
738 * solib.c: Use C++ exception handling.
739 * solib-svr4.c: Use C++ exception handling.
740 * solib-spu.c: Use C++ exception handling.
741 * solib-frv.c: Use C++ exception handling.
742 * solib-dsbt.c: Use C++ exception handling.
743 * selftest-arch.c: Use C++ exception handling.
744 * s390-tdep.c: Use C++ exception handling.
745 * rust-lang.c: Use C++ exception handling.
746 * rust-exp.y: Use C++ exception handling.
747 * rs6000-tdep.c: Use C++ exception handling.
748 * rs6000-aix-tdep.c: Use C++ exception handling.
749 * riscv-tdep.c: Use C++ exception handling.
750 * remote.c: Use C++ exception handling.
751 * remote-fileio.c: Use C++ exception handling.
752 * record-full.c: Use C++ exception handling.
753 * record-btrace.c: Use C++ exception handling.
754 * python/python.c: Use C++ exception handling.
755 * python/py-value.c: Use C++ exception handling.
756 * python/py-utils.c: Use C++ exception handling.
757 * python/py-unwind.c: Use C++ exception handling.
758 * python/py-type.c: Use C++ exception handling.
759 * python/py-symbol.c: Use C++ exception handling.
760 * python/py-record.c: Use C++ exception handling.
761 * python/py-record-btrace.c: Use C++ exception handling.
762 * python/py-progspace.c: Use C++ exception handling.
763 * python/py-prettyprint.c: Use C++ exception handling.
764 * python/py-param.c: Use C++ exception handling.
765 * python/py-objfile.c: Use C++ exception handling.
766 * python/py-linetable.c: Use C++ exception handling.
767 * python/py-lazy-string.c: Use C++ exception handling.
768 * python/py-infthread.c: Use C++ exception handling.
769 * python/py-inferior.c: Use C++ exception handling.
770 * python/py-gdb-readline.c: Use C++ exception handling.
771 * python/py-framefilter.c: Use C++ exception handling.
772 * python/py-frame.c: Use C++ exception handling.
773 * python/py-finishbreakpoint.c: Use C++ exception handling.
774 * python/py-cmd.c: Use C++ exception handling.
775 * python/py-breakpoint.c: Use C++ exception handling.
776 * python/py-arch.c: Use C++ exception handling.
777 * printcmd.c: Use C++ exception handling.
778 * ppc-linux-tdep.c: Use C++ exception handling.
779 * parse.c: Use C++ exception handling.
780 * p-valprint.c: Use C++ exception handling.
781 * objc-lang.c: Use C++ exception handling.
782 * mi/mi-main.c: Use C++ exception handling.
783 * mi/mi-interp.c: Use C++ exception handling.
784 * mi/mi-cmd-stack.c: Use C++ exception handling.
785 * mi/mi-cmd-break.c: Use C++ exception handling.
786 * main.c: Use C++ exception handling.
787 * linux-thread-db.c: Use C++ exception handling.
788 * linux-tdep.c: Use C++ exception handling.
789 * linux-nat.c: Use C++ exception handling.
790 * linux-fork.c: Use C++ exception handling.
791 * linespec.c: Use C++ exception handling.
792 * language.c: Use C++ exception handling.
793 * jit.c: Use C++ exception handling.
794 * infrun.c: Use C++ exception handling.
795 * infcmd.c: Use C++ exception handling.
796 * infcall.c: Use C++ exception handling.
797 * inf-loop.c: Use C++ exception handling.
798 * i386-tdep.c: Use C++ exception handling.
799 * i386-linux-tdep.c: Use C++ exception handling.
800 * guile/scm-value.c: Use C++ exception handling.
801 * guile/scm-type.c: Use C++ exception handling.
802 * guile/scm-symtab.c: Use C++ exception handling.
803 * guile/scm-symbol.c: Use C++ exception handling.
804 * guile/scm-pretty-print.c: Use C++ exception handling.
805 * guile/scm-ports.c: Use C++ exception handling.
806 * guile/scm-param.c: Use C++ exception handling.
807 * guile/scm-math.c: Use C++ exception handling.
808 * guile/scm-lazy-string.c: Use C++ exception handling.
809 * guile/scm-frame.c: Use C++ exception handling.
810 * guile/scm-disasm.c: Use C++ exception handling.
811 * guile/scm-cmd.c: Use C++ exception handling.
812 * guile/scm-breakpoint.c: Use C++ exception handling.
813 * guile/scm-block.c: Use C++ exception handling.
814 * guile/guile-internal.h: Use C++ exception handling.
815 * gnu-v3-abi.c: Use C++ exception handling.
816 * gdbtypes.c: Use C++ exception handling.
817 * frame.c: Use C++ exception handling.
818 * frame-unwind.c: Use C++ exception handling.
819 * fbsd-tdep.c: Use C++ exception handling.
820 * f-valprint.c: Use C++ exception handling.
821 * exec.c: Use C++ exception handling.
822 * event-top.c: Use C++ exception handling.
823 * event-loop.c: Use C++ exception handling.
824 * eval.c: Use C++ exception handling.
825 * dwarf2read.c: Use C++ exception handling.
826 * dwarf2loc.c: Use C++ exception handling.
827 * dwarf2-frame.c: Use C++ exception handling.
828 * dwarf2-frame-tailcall.c: Use C++ exception handling.
829 * dwarf-index-write.c: Use C++ exception handling.
830 * dwarf-index-cache.c: Use C++ exception handling.
831 * dtrace-probe.c: Use C++ exception handling.
832 * disasm-selftests.c: Use C++ exception handling.
833 * darwin-nat.c: Use C++ exception handling.
834 * cp-valprint.c: Use C++ exception handling.
835 * cp-support.c: Use C++ exception handling.
836 * cp-abi.c: Use C++ exception handling.
837 * corelow.c: Use C++ exception handling.
838 * completer.c: Use C++ exception handling.
839 * compile/compile-object-run.c: Use C++ exception handling.
840 * compile/compile-object-load.c: Use C++ exception handling.
841 * compile/compile-cplus-symbols.c: Use C++ exception handling.
842 * compile/compile-c-symbols.c: Use C++ exception handling.
843 * common/selftest.c: Use C++ exception handling.
844 * common/new-op.c: Use C++ exception handling.
845 * cli/cli-script.c: Use C++ exception handling.
846 * cli/cli-interp.c: Use C++ exception handling.
847 * cli/cli-cmds.c: Use C++ exception handling.
848 * c-varobj.c: Use C++ exception handling.
849 * btrace.c: Use C++ exception handling.
850 * breakpoint.c: Use C++ exception handling.
851 * break-catch-throw.c: Use C++ exception handling.
852 * arch-utils.c: Use C++ exception handling.
853 * amd64-tdep.c: Use C++ exception handling.
854 * ada-valprint.c: Use C++ exception handling.
855 * ada-typeprint.c: Use C++ exception handling.
856 * ada-lang.c: Use C++ exception handling.
857 * aarch64-tdep.c: Use C++ exception handling.
859 2019-04-08 Tom Tromey <tom@tromey.com>
861 * xml-support.c (gdb_xml_parser::parse): Update.
862 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
863 * value.c (show_convenience): Update.
864 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
865 (test_parse_flags_qcs): Update.
866 * thread.c (thr_try_catch_cmd): Update.
867 * target.c (target_translate_tls_address): Update.
868 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
869 (info_frame_command_core, frame_apply_command_count): Update.
870 * rust-exp.y (rust_lex_exception_test): Update.
871 * riscv-tdep.c (riscv_print_one_register_info): Update.
872 * remote.c (remote_target::enable_btrace): Update.
873 * record-btrace.c (record_btrace_enable_warn): Update.
874 * python/py-utils.c (gdbpy_convert_exception): Update.
875 * printcmd.c (do_one_display, print_variable_and_value): Update.
876 * mi/mi-main.c (mi_print_exception): Update.
877 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
878 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
879 * linux-nat.c (linux_nat_target::attach): Update.
880 * linux-fork.c (class scoped_switch_fork_info): Update.
881 * infrun.c (displaced_step_prepare): Update.
882 * infcall.c (call_function_by_hand_dummy): Update.
883 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
884 * gnu-v3-abi.c (print_one_vtable): Update.
885 * frame.c (get_prev_frame_always): Update.
886 * f-valprint.c (info_common_command_for_block): Update.
887 * exec.c (try_open_exec_file): Update.
888 * exceptions.c (print_exception, exception_print)
889 (exception_fprintf, exception_print_same): Update.
890 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
891 * dwarf-index-cache.c (index_cache::store)
892 (index_cache::lookup_gdb_index): Update.
893 * darwin-nat.c (maybe_cache_shell): Update.
894 * cp-valprint.c (cp_print_value_fields): Update.
895 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
896 (gcc_cplus_symbol_address): Update.
897 * compile/compile-c-symbols.c (gcc_convert_symbol)
898 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
899 * common/selftest.c: Update.
900 * common/common-exceptions.h (struct gdb_exception) <message>: Now
902 (exception_try_scope_entry, exception_try_scope_exit): Don't
904 (struct exception_try_scope): Remove.
905 (TRY): Don't use exception_try_scope.
906 (struct gdb_exception): Add constructor, operator=.
908 (struct gdb_exception_RETURN_MASK_ALL)
909 (struct gdb_exception_RETURN_MASK_ERROR)
910 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
911 (struct gdb_quit_bad_alloc): Update.
912 * common/common-exceptions.c (exception_none): Change
914 (struct catcher) <state, exception>: Initialize inline.
915 <prev>: Remove member.
916 (current_catcher): Remove.
917 (catchers): New global.
918 (exceptions_state_mc_init): Simplify.
919 (catcher_pop): Remove.
920 (exceptions_state_mc, exceptions_state_mc_catch): Update.
921 (try_scope_depth, exception_try_scope_entry)
922 (exception_try_scope_exit): Remove.
923 (throw_exception_sjlj): Update.
924 (exception_messages, exception_messages_size): Remove.
925 (throw_it): Simplify.
926 (gdb_exception_sliced_copy): Remove.
927 (throw_exception_cxx): Update.
928 * cli/cli-script.c (script_from_file): Update.
929 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
931 * ada-valprint.c (ada_val_print): Update.
932 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
933 (create_excep_cond_exprs): Update.
935 2019-04-08 Tom Tromey <tom@tromey.com>
937 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
938 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
939 (TRY, CATCH, END_CATCH): Remove some definitions.
940 * common/common-exceptions.c: Don't use GDB_XCPT.
941 (catcher_list_size): Remove.
942 (throw_exception, throw_it): Simplify.
944 2019-04-05 Tom Tromey <tom@tromey.com>
946 Revert the header-sorting patch.
947 * ft32-tdep.c: Revert.
948 * frv-tdep.c: Revert.
949 * frv-linux-tdep.c: Revert.
951 * frame-unwind.c: Revert.
952 * frame-base.c: Revert.
953 * fork-child.c: Revert.
956 * filesystem.c: Revert.
957 * filename-seen-cache.h: Revert.
958 * filename-seen-cache.c: Revert.
959 * fbsd-tdep.c: Revert.
960 * fbsd-nat.h: Revert.
961 * fbsd-nat.c: Revert.
962 * f-valprint.c: Revert.
963 * f-typeprint.c: Revert.
965 * extension.h: Revert.
966 * extension.c: Revert.
967 * extension-priv.h: Revert.
968 * expprint.c: Revert.
971 * exceptions.c: Revert.
972 * event-top.c: Revert.
973 * event-loop.c: Revert.
976 * dwarf2read.h: Revert.
977 * dwarf2read.c: Revert.
978 * dwarf2loc.c: Revert.
979 * dwarf2expr.h: Revert.
980 * dwarf2expr.c: Revert.
981 * dwarf2-frame.c: Revert.
982 * dwarf2-frame-tailcall.c: Revert.
983 * dwarf-index-write.h: Revert.
984 * dwarf-index-write.c: Revert.
985 * dwarf-index-common.c: Revert.
986 * dwarf-index-cache.h: Revert.
987 * dwarf-index-cache.c: Revert.
988 * dummy-frame.c: Revert.
989 * dtrace-probe.c: Revert.
992 * disasm-selftests.c: Revert.
993 * dictionary.c: Revert.
994 * dicos-tdep.c: Revert.
995 * demangle.c: Revert.
998 * darwin-nat.h: Revert.
999 * darwin-nat.c: Revert.
1000 * darwin-nat-info.c: Revert.
1001 * d-valprint.c: Revert.
1002 * d-namespace.c: Revert.
1005 * csky-tdep.c: Revert.
1006 * csky-linux-tdep.c: Revert.
1007 * cris-tdep.c: Revert.
1008 * cris-linux-tdep.c: Revert.
1009 * cp-valprint.c: Revert.
1010 * cp-support.c: Revert.
1011 * cp-namespace.c: Revert.
1013 * corelow.c: Revert.
1014 * corefile.c: Revert.
1015 * continuations.c: Revert.
1016 * completer.h: Revert.
1017 * completer.c: Revert.
1018 * complaints.c: Revert.
1019 * coffread.c: Revert.
1020 * coff-pe-read.c: Revert.
1021 * cli-out.h: Revert.
1022 * cli-out.c: Revert.
1023 * charset.c: Revert.
1024 * c-varobj.c: Revert.
1025 * c-valprint.c: Revert.
1026 * c-typeprint.c: Revert.
1028 * buildsym.c: Revert.
1029 * buildsym-legacy.c: Revert.
1030 * build-id.h: Revert.
1031 * build-id.c: Revert.
1033 * bsd-uthread.c: Revert.
1034 * breakpoint.h: Revert.
1035 * breakpoint.c: Revert.
1036 * break-catch-throw.c: Revert.
1037 * break-catch-syscall.c: Revert.
1038 * break-catch-sig.c: Revert.
1039 * blockframe.c: Revert.
1041 * bfin-tdep.c: Revert.
1042 * bfin-linux-tdep.c: Revert.
1043 * bfd-target.c: Revert.
1045 * ax-general.c: Revert.
1048 * avr-tdep.c: Revert.
1050 * auto-load.c: Revert.
1051 * arm-wince-tdep.c: Revert.
1052 * arm-tdep.c: Revert.
1053 * arm-symbian-tdep.c: Revert.
1054 * arm-pikeos-tdep.c: Revert.
1055 * arm-obsd-tdep.c: Revert.
1056 * arm-nbsd-tdep.c: Revert.
1057 * arm-nbsd-nat.c: Revert.
1058 * arm-linux-tdep.c: Revert.
1059 * arm-linux-nat.c: Revert.
1060 * arm-fbsd-tdep.c: Revert.
1061 * arm-fbsd-nat.c: Revert.
1062 * arm-bsd-tdep.c: Revert.
1063 * arch-utils.c: Revert.
1064 * arc-tdep.c: Revert.
1065 * arc-newlib-tdep.c: Revert.
1066 * annotate.h: Revert.
1067 * annotate.c: Revert.
1068 * amd64-windows-tdep.c: Revert.
1069 * amd64-windows-nat.c: Revert.
1070 * amd64-tdep.c: Revert.
1071 * amd64-sol2-tdep.c: Revert.
1072 * amd64-obsd-tdep.c: Revert.
1073 * amd64-obsd-nat.c: Revert.
1074 * amd64-nbsd-tdep.c: Revert.
1075 * amd64-nbsd-nat.c: Revert.
1076 * amd64-nat.c: Revert.
1077 * amd64-linux-tdep.c: Revert.
1078 * amd64-linux-nat.c: Revert.
1079 * amd64-fbsd-tdep.c: Revert.
1080 * amd64-fbsd-nat.c: Revert.
1081 * amd64-dicos-tdep.c: Revert.
1082 * amd64-darwin-tdep.c: Revert.
1083 * amd64-bsd-nat.c: Revert.
1084 * alpha-tdep.c: Revert.
1085 * alpha-obsd-tdep.c: Revert.
1086 * alpha-nbsd-tdep.c: Revert.
1087 * alpha-mdebug-tdep.c: Revert.
1088 * alpha-linux-tdep.c: Revert.
1089 * alpha-linux-nat.c: Revert.
1090 * alpha-bsd-tdep.c: Revert.
1091 * alpha-bsd-nat.c: Revert.
1092 * aix-thread.c: Revert.
1094 * addrmap.c: Revert.
1095 * ada-varobj.c: Revert.
1096 * ada-valprint.c: Revert.
1097 * ada-typeprint.c: Revert.
1098 * ada-tasks.c: Revert.
1099 * ada-lang.c: Revert.
1100 * aarch64-tdep.c: Revert.
1101 * aarch64-ravenscar-thread.c: Revert.
1102 * aarch64-newlib-tdep.c: Revert.
1103 * aarch64-linux-tdep.c: Revert.
1104 * aarch64-linux-nat.c: Revert.
1105 * aarch64-fbsd-tdep.c: Revert.
1106 * aarch64-fbsd-nat.c: Revert.
1107 * aarch32-linux-nat.c: Revert.
1109 2019-04-05 Tom Tromey <tom@tromey.com>
1111 * ft32-tdep.c: Sort headers.
1112 * frv-tdep.c: Sort headers.
1113 * frv-linux-tdep.c: Sort headers.
1114 * frame.c: Sort headers.
1115 * frame-unwind.c: Sort headers.
1116 * frame-base.c: Sort headers.
1117 * fork-child.c: Sort headers.
1118 * findvar.c: Sort headers.
1119 * findcmd.c: Sort headers.
1120 * filesystem.c: Sort headers.
1121 * filename-seen-cache.h: Sort headers.
1122 * filename-seen-cache.c: Sort headers.
1123 * fbsd-tdep.c: Sort headers.
1124 * fbsd-nat.h: Sort headers.
1125 * fbsd-nat.c: Sort headers.
1126 * f-valprint.c: Sort headers.
1127 * f-typeprint.c: Sort headers.
1128 * f-lang.c: Sort headers.
1129 * extension.h: Sort headers.
1130 * extension.c: Sort headers.
1131 * extension-priv.h: Sort headers.
1132 * expprint.c: Sort headers.
1133 * exec.h: Sort headers.
1134 * exec.c: Sort headers.
1135 * exceptions.c: Sort headers.
1136 * event-top.c: Sort headers.
1137 * event-loop.c: Sort headers.
1138 * eval.c: Sort headers.
1139 * elfread.c: Sort headers.
1140 * dwarf2read.h: Sort headers.
1141 * dwarf2read.c: Sort headers.
1142 * dwarf2loc.c: Sort headers.
1143 * dwarf2expr.h: Sort headers.
1144 * dwarf2expr.c: Sort headers.
1145 * dwarf2-frame.c: Sort headers.
1146 * dwarf2-frame-tailcall.c: Sort headers.
1147 * dwarf-index-write.h: Sort headers.
1148 * dwarf-index-write.c: Sort headers.
1149 * dwarf-index-common.c: Sort headers.
1150 * dwarf-index-cache.h: Sort headers.
1151 * dwarf-index-cache.c: Sort headers.
1152 * dummy-frame.c: Sort headers.
1153 * dtrace-probe.c: Sort headers.
1154 * disasm.h: Sort headers.
1155 * disasm.c: Sort headers.
1156 * disasm-selftests.c: Sort headers.
1157 * dictionary.c: Sort headers.
1158 * dicos-tdep.c: Sort headers.
1159 * demangle.c: Sort headers.
1160 * dcache.h: Sort headers.
1161 * dcache.c: Sort headers.
1162 * darwin-nat.h: Sort headers.
1163 * darwin-nat.c: Sort headers.
1164 * darwin-nat-info.c: Sort headers.
1165 * d-valprint.c: Sort headers.
1166 * d-namespace.c: Sort headers.
1167 * d-lang.c: Sort headers.
1168 * ctf.c: Sort headers.
1169 * csky-tdep.c: Sort headers.
1170 * csky-linux-tdep.c: Sort headers.
1171 * cris-tdep.c: Sort headers.
1172 * cris-linux-tdep.c: Sort headers.
1173 * cp-valprint.c: Sort headers.
1174 * cp-support.c: Sort headers.
1175 * cp-namespace.c: Sort headers.
1176 * cp-abi.c: Sort headers.
1177 * corelow.c: Sort headers.
1178 * corefile.c: Sort headers.
1179 * continuations.c: Sort headers.
1180 * completer.h: Sort headers.
1181 * completer.c: Sort headers.
1182 * complaints.c: Sort headers.
1183 * coffread.c: Sort headers.
1184 * coff-pe-read.c: Sort headers.
1185 * cli-out.h: Sort headers.
1186 * cli-out.c: Sort headers.
1187 * charset.c: Sort headers.
1188 * c-varobj.c: Sort headers.
1189 * c-valprint.c: Sort headers.
1190 * c-typeprint.c: Sort headers.
1191 * c-lang.c: Sort headers.
1192 * buildsym.c: Sort headers.
1193 * buildsym-legacy.c: Sort headers.
1194 * build-id.h: Sort headers.
1195 * build-id.c: Sort headers.
1196 * btrace.c: Sort headers.
1197 * bsd-uthread.c: Sort headers.
1198 * breakpoint.h: Sort headers.
1199 * breakpoint.c: Sort headers.
1200 * break-catch-throw.c: Sort headers.
1201 * break-catch-syscall.c: Sort headers.
1202 * break-catch-sig.c: Sort headers.
1203 * blockframe.c: Sort headers.
1204 * block.c: Sort headers.
1205 * bfin-tdep.c: Sort headers.
1206 * bfin-linux-tdep.c: Sort headers.
1207 * bfd-target.c: Sort headers.
1208 * bcache.c: Sort headers.
1209 * ax-general.c: Sort headers.
1210 * ax-gdb.h: Sort headers.
1211 * ax-gdb.c: Sort headers.
1212 * avr-tdep.c: Sort headers.
1213 * auxv.c: Sort headers.
1214 * auto-load.c: Sort headers.
1215 * arm-wince-tdep.c: Sort headers.
1216 * arm-tdep.c: Sort headers.
1217 * arm-symbian-tdep.c: Sort headers.
1218 * arm-pikeos-tdep.c: Sort headers.
1219 * arm-obsd-tdep.c: Sort headers.
1220 * arm-nbsd-tdep.c: Sort headers.
1221 * arm-nbsd-nat.c: Sort headers.
1222 * arm-linux-tdep.c: Sort headers.
1223 * arm-linux-nat.c: Sort headers.
1224 * arm-fbsd-tdep.c: Sort headers.
1225 * arm-fbsd-nat.c: Sort headers.
1226 * arm-bsd-tdep.c: Sort headers.
1227 * arch-utils.c: Sort headers.
1228 * arc-tdep.c: Sort headers.
1229 * arc-newlib-tdep.c: Sort headers.
1230 * annotate.h: Sort headers.
1231 * annotate.c: Sort headers.
1232 * amd64-windows-tdep.c: Sort headers.
1233 * amd64-windows-nat.c: Sort headers.
1234 * amd64-tdep.c: Sort headers.
1235 * amd64-sol2-tdep.c: Sort headers.
1236 * amd64-obsd-tdep.c: Sort headers.
1237 * amd64-obsd-nat.c: Sort headers.
1238 * amd64-nbsd-tdep.c: Sort headers.
1239 * amd64-nbsd-nat.c: Sort headers.
1240 * amd64-nat.c: Sort headers.
1241 * amd64-linux-tdep.c: Sort headers.
1242 * amd64-linux-nat.c: Sort headers.
1243 * amd64-fbsd-tdep.c: Sort headers.
1244 * amd64-fbsd-nat.c: Sort headers.
1245 * amd64-dicos-tdep.c: Sort headers.
1246 * amd64-darwin-tdep.c: Sort headers.
1247 * amd64-bsd-nat.c: Sort headers.
1248 * alpha-tdep.c: Sort headers.
1249 * alpha-obsd-tdep.c: Sort headers.
1250 * alpha-nbsd-tdep.c: Sort headers.
1251 * alpha-mdebug-tdep.c: Sort headers.
1252 * alpha-linux-tdep.c: Sort headers.
1253 * alpha-linux-nat.c: Sort headers.
1254 * alpha-bsd-tdep.c: Sort headers.
1255 * alpha-bsd-nat.c: Sort headers.
1256 * aix-thread.c: Sort headers.
1257 * agent.c: Sort headers.
1258 * addrmap.c: Sort headers.
1259 * ada-varobj.c: Sort headers.
1260 * ada-valprint.c: Sort headers.
1261 * ada-typeprint.c: Sort headers.
1262 * ada-tasks.c: Sort headers.
1263 * ada-lang.c: Sort headers.
1264 * aarch64-tdep.c: Sort headers.
1265 * aarch64-ravenscar-thread.c: Sort headers.
1266 * aarch64-newlib-tdep.c: Sort headers.
1267 * aarch64-linux-tdep.c: Sort headers.
1268 * aarch64-linux-nat.c: Sort headers.
1269 * aarch64-fbsd-tdep.c: Sort headers.
1270 * aarch64-fbsd-nat.c: Sort headers.
1271 * aarch32-linux-nat.c: Sort headers.
1273 2019-04-04 Tom Tromey <tom@tromey.com>
1275 * varobj.c (varobj_create): Update.
1276 * rust-exp.y (struct rust_parser) <update_innermost_block,
1277 lookup_symbol>: New methods.
1278 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1280 (rust_parser::rust_lookup_type)
1281 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1282 * printcmd.c (display_command, do_one_display): Update.
1283 * parser-defs.h (struct parser_state) <parser_state>: Add
1284 "tracker" parameter.
1285 (block_tracker): New member.
1286 (class innermost_block_tracker) <innermost_block_tracker>: Add
1288 <reset>: Remove method.
1289 (innermost_block): Don't declare.
1290 (null_post_parser): Update.
1291 * parse.c (innermost_block): Remove global.
1292 (write_dollar_variable): Update.
1293 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1294 Remove "tracker_types" parameter.
1295 (parse_expression): Add "tracker" parameter.
1296 (parse_expression_for_completion): Update.
1297 (null_post_parser): Add "tracker" parameter.
1298 * p-exp.y: Update rules.
1299 * m2-exp.y: Update rules.
1300 * language.h (struct language_defn) <la_post_parser>: Add
1301 "tracker" parameter.
1302 * go-exp.y: Update rules.
1303 * f-exp.y: Update rules.
1304 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1306 * d-exp.y: Update rules.
1307 * c-exp.y: Update rules.
1308 * breakpoint.c (set_breakpoint_condition): Create an
1309 innermost_block_tracker.
1310 (watch_command_1): Likewise.
1311 * ada-lang.c (resolve): Add "tracker" parameter.
1312 (resolve_subexp): Likewise.
1313 * ada-exp.y (write_var_from_sym): Update.
1315 2019-04-04 Tom Tromey <tom@tromey.com>
1317 * type-stack.h: New file.
1318 * type-stack.c: New file.
1319 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1321 (insert_into_type_stack, insert_type, push_type, push_type_int)
1322 (insert_type_address_space, pop_type, pop_type_int)
1323 (pop_typelist, pop_type_stack, append_type_stack)
1324 (push_type_stack, get_type_stack, push_typelist)
1325 (follow_type_instance_flags, follow_types): Don't declare.
1326 * parse.c (type_stack): Remove global.
1327 (parse_exp_in_context): Update.
1328 (insert_into_type_stack, insert_type, push_type, push_type_int)
1329 (insert_type_address_space, pop_type, pop_type_int)
1330 (pop_typelist, pop_type_stack, append_type_stack)
1331 (push_type_stack, get_type_stack, push_typelist)
1332 (follow_type_instance_flags, follow_types): Remove (moved to
1334 * f-exp.y (type_stack): New global.
1336 (push_kind_type, f_parse): Update.
1337 * d-exp.y (type_stack): New global.
1340 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1342 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1343 (HFILES_NO_SRCDIR): Add type-stack.h.
1345 2019-04-04 Tom Tromey <tom@tromey.com>
1347 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1348 (rust_parser::convert_ast_to_expression, rust_parse)
1349 (rust_lex_test_completion, rust_lex_tests): Update.
1350 * parser-defs.h (struct expr_completion_state): New.
1351 (struct parser_state) <parser_state>: Add completion parameter.
1352 <mark_struct_expression, mark_completion_tag>: New methods.
1353 <parse_completion, m_completion_state>: New members.
1354 (prefixify_expression, null_post_parser): Update.
1355 (mark_struct_expression, mark_completion_tag): Don't declare.
1356 * parse.c (parse_completion, expout_last_struct)
1357 (expout_tag_completion_type, expout_completion_name): Remove
1359 (parser_state::mark_struct_expression)
1360 (parser_state::mark_completion_tag): Now methods.
1361 (prefixify_expression): Add last_struct parameter.
1362 (prefixify_subexp): Likewise.
1363 (parse_exp_1): Update.
1364 (parse_exp_in_context): Add cstate parameter. Update.
1365 (parse_expression_for_completion): Create an
1366 expr_completion_state.
1367 (null_post_parser): Add "completion" parameter.
1368 * p-exp.y: Update rules.
1370 * language.h (struct language_defn) <la_post_parser>: Add
1371 "completing" parameter.
1372 * go-exp.y: Update rules.
1373 (lex_one_token): Update.
1374 * expression.h (parse_completion): Don't declare.
1375 * d-exp.y: Update rules.
1376 (lex_one_token): Update rules.
1377 * c-exp.y: Update rules.
1378 (lex_one_token): Update.
1379 * ada-lang.c (resolve): Add "parse_completion" parameter.
1380 (resolve_subexp): Likewise.
1381 (ada_resolve_function): Likewise.
1383 2019-04-04 Tom Tromey <tom@tromey.com>
1385 * parser-defs.h (struct parser_state) <start_arglist,
1386 end_arglist>: New methods.
1387 <arglist_len, m_funcall_chain>: New members.
1388 (arglist_len, start_arglist, end_arglist): Don't declare.
1389 * parse.c (arglist_len, funcall_chain): Remove global.
1390 (start_arglist, end_arglist): Remove functions.
1391 (parse_exp_in_context): Update.
1392 * p-exp.y: Update rules.
1393 * m2-exp.y: Update rules.
1394 * go-exp.y: Update rules.
1395 * f-exp.y: Update rules.
1396 * d-exp.y: Update rules.
1397 * c-exp.y: Update rules.
1399 2019-04-04 Tom Tromey <tom@tromey.com>
1401 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1402 lex_operator, push_back>: New methods.
1404 (rust_parser::lex_hex, lex_escape): Rename and update.
1405 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1406 (rust_parser::lex_operator): Rename and update.
1407 (rust_parser::lex_number, rustyylex, rustyyerror)
1408 (rust_lex_test_init, rust_lex_test_sequence)
1409 (rust_lex_test_push_back, rust_lex_tests): Update.
1410 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1412 <lexptr, prev_lexptr>: New members.
1413 (lexptr, prev_lexptr): Don't declare.
1414 * parse.c (lexptr, prev_lexptr): Remove globals.
1415 (parse_exp_in_context): Update.
1416 * p-exp.y (yylex, yyerror): Update.
1417 * m2-exp.y (parse_number, yylex, yyerror): Update.
1418 * go-exp.y (lex_one_token, yyerror): Update.
1419 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1420 * d-exp.y (lex_one_token, yyerror): Update.
1421 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1422 (lex_one_token, yyerror): Update.
1423 * ada-lex.l (YY_INPUT): Update.
1424 (rewind_to_char): Update.
1425 * ada-exp.y (yyerror): Update.
1427 2019-04-04 Tom Tromey <tom@tromey.com>
1429 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1430 * parser-defs.h (struct parser_state) <parser_state>: Add new
1432 <comma_terminates>: New member.
1433 (comma_terminates): Don't declare global.
1434 * parse.c (comma_terminates): Remove global.
1435 (parse_exp_in_context): Update.
1436 * p-exp.y (yylex): Update.
1437 * m2-exp.y (yylex): Update.
1438 * go-exp.y (lex_one_token): Update.
1439 * f-exp.y (yylex): Update.
1440 * d-exp.y (lex_one_token): Update.
1441 * c-exp.y (lex_one_token): Update.
1442 * ada-lex.l: Update.
1444 2019-04-04 Tom Tromey <tom@tromey.com>
1446 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1447 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1448 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1449 * parser-defs.h (paren_depth): Don't declare.
1450 * parse.c (paren_depth): Remove global.
1451 (parse_exp_in_context): Update.
1452 * p-exp.y (paren_depth): New global.
1453 (pascal_parse): Initialize it.
1454 * m2-exp.y (paren_depth): New global.
1455 (m2_parse): Initialize it.
1456 * go-exp.y (paren_depth): New global.
1457 (go_parse): Initialize it.
1458 * f-exp.y (paren_depth): New global.
1459 (f_parse): Initialize it.
1460 * d-exp.y (paren_depth): New global.
1461 (d_parse): Initialize it.
1462 * c-exp.y (paren_depth): New global.
1463 (c_parse): Initialize it.
1464 * ada-lex.l (paren_depth): New global.
1465 (lexer_init): Initialize it.
1467 2019-04-04 Tom Tromey <tom@tromey.com>
1469 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1470 (rust_parser::convert_ast_to_type)
1471 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1472 * parser-defs.h (struct parser_state) <parser_state>: Add
1473 parameters. Initialize new members.
1474 <expression_context_block, expression_context_pc>: New members.
1475 * parse.c (expression_context_block, expression_context_pc):
1477 (parse_exp_in_context): Update.
1478 * p-exp.y: Update all rules.
1480 * m2-exp.y: Update all rules.
1482 * go-exp.y (yylex): Update.
1483 * f-exp.y (yylex): Update.
1484 * d-exp.y: Update all rules.
1486 * c-exp.y: Update all rules.
1487 (lex_one_token, classify_name, yylex, c_parse): Update.
1488 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1490 2019-04-04 Tom Tromey <tom@tromey.com>
1492 * gdbarch.h, gdbarch.c: Rebuild.
1493 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1495 (struct stap_parse_info): Replace "parser_state" with
1497 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1498 (parser_state): New class.
1499 * parse.c (expr_builder): Rename.
1500 (expr_builder::release): Rename.
1501 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1502 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1503 (write_exp_elt_longcst, write_exp_elt_floatcst)
1504 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1505 (write_exp_string_vector, write_exp_bitstring)
1506 (write_exp_msymbol, mark_struct_expression)
1507 (write_dollar_variable)
1508 (insert_type_address_space, increase_expout_size): Replace
1509 "parser_state" with "expr_builder".
1510 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1511 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1512 "parser_state" with "expr_builder".
1514 2019-04-04 Tom Tromey <tom@tromey.com>
1516 * rust-exp.y: Replace "parse_language" with method call.
1518 (yylex): Replace "parse_language" with method call.
1520 (yylex): Replace "parse_language" with method call.
1521 * go-exp.y (classify_name): Replace "parse_language" with method
1523 * f-exp.y (yylex): Replace "parse_language" with method call.
1524 * d-exp.y (lex_one_token): Replace "parse_language" with method
1527 (lex_one_token, classify_name, yylex): Replace "parse_language"
1529 * ada-exp.y (find_primitive_type, type_char)
1530 (type_system_address): Replace "parse_language" with method call.
1532 2019-04-04 Tom Tromey <tom@tromey.com>
1534 * rust-exp.y: Replace "parse_gdbarch" with method call.
1535 * parse.c (write_dollar_variable, insert_type_address_space):
1536 Replace "parse_gdbarch" with method call.
1537 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
1539 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
1541 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
1542 "parse_gdbarch" with method call.
1543 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
1545 * f-exp.y (parse_type, parse_f_type, yylex): Replace
1546 "parse_gdbarch" with method call.
1547 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
1548 "parse_gdbarch" with method call.
1549 * c-exp.y (parse_type, parse_number, classify_name): Replace
1550 "parse_gdbarch" with method call.
1551 * ada-lex.l: Replace "parse_gdbarch" with method call.
1552 * ada-exp.y (parse_type, find_primitive_type, type_char)
1553 (type_system_address): Replace "parse_gdbarch" with method call.
1555 2019-04-04 Tom Tromey <tom@tromey.com>
1557 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1558 * stap-probe.c (stap_parse_argument): Update.
1559 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
1560 initial_size parameter.
1561 * rust-exp.y (rust_lex_tests): Update.
1562 * parse.c (parser_state): Update.
1563 (parse_exp_in_context): Update.
1564 * parser-defs.h (struct parser_state) <parser_state>: Remove
1565 "initial_size" parameter.
1567 2019-04-04 Tom Tromey <tom@tromey.com>
1569 * parser-defs.h (increase_expout_size): Don't declare.
1570 * parse.c (increase_expout_size): Now static.
1572 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
1574 * gnu-nat.c (gnu_nat_target::wait): Fix
1575 target_waitstatus_to_string call.
1577 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1579 * eval.c (evaluate_subexp_standard): Handle internal functions
1580 during Fortran function call handling.
1582 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
1584 * NEWS: Mention new internal functions.
1585 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
1586 (read_base_type): Use dwarf2_init_complex_target_type.
1587 * value.c (creal_internal_fn): New function.
1588 (cimag_internal_fn): New function.
1589 (_initialize_values): Register new internal functions.
1591 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1593 * infrun.c (stop_all_threads): If debug_infrun, always
1594 trace the wait status after wait_one, using
1595 target_waitstatus_to_string and target_pid_to_str.
1596 (handle_inferior_event): Replace various trace of
1597 wait status kind by a single trace.
1598 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
1599 wait status kind image by target_waitstatus_to_string.
1600 * target/waitstatus.c (target_waitstatus_to_string): Fix
1603 2019-04-01 Tom Tromey <tromey@adacore.com>
1606 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
1608 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
1609 Pedro Alves <palves@redhat.com>
1611 * top.c (quit_force): Call 'finalize_values'.
1612 * value.c (finalize_values): New function.
1613 * value.h (finalize_values): Declare.
1615 2019-03-30 Eli Zaretskii <eliz@gnu.org>
1617 * NEWS: Announce $_gdb_major and $_gdb_minor.
1619 * top.c (init_gdb_version_vars): New function.
1620 (gdb_init): Call init_gdb_version_vars.
1622 2019-03-29 Tom Tromey <tromey@adacore.com>
1624 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
1625 help text. Remove dead code.
1627 2019-03-29 Keith Seitz <keiths@redhat.com>
1629 From Siddhesh Poyarekar:
1630 * f-lang.h (f77_get_upperbound): Return LONGEST.
1631 (f77_get_lowerbound): Likewise.
1632 * f-typeprint.c (f_type_print_varspec_suffix): Expand
1633 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
1635 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
1636 plongest to format print it.
1637 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
1638 (f77_get_upperbound): Likewise.
1639 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
1640 LOWER_BOUND to LONGEST.
1641 (f77_create_arrayprint_offset_tbl): Likewise.
1643 2019-03-29 Keith Seitz <keiths@redhat.com>
1645 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
1646 %s/pulongest for TYPE_LENGTH instead of %d in format
1648 * ada-typerint.c (ada_print_type): Likewise.
1649 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
1650 * compile/compile-c-support.c (generate_register_struct): Likewise.
1651 * gdbtypes.c (recursive_dump_type): Likewise.
1652 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
1653 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
1654 instead of %d in format strings.
1655 * riscv-tdep.c (riscv_type_alignment): Cast second argument
1656 to std::min to ULONGEST.
1657 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
1658 instead of %d in format strings.
1659 * tracepoint.c (info_scope_command): Likewise.
1660 * typeprint.c (print_offset_data::update)
1661 (print_offset_data::finish): Likewise.
1662 * xtensa-tdep.c (xtensa_store_return_value)
1663 (xtensa_push_dummy_call): Likewise.
1665 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
1667 * windows-nat.c (display_selector): Fixed format specifications
1670 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1672 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
1674 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
1676 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
1677 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
1678 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
1679 (nios2_linux_init_abi): Install it.
1681 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1683 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
1685 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1687 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
1689 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1690 Tom Tromey <tromey@adacore.com>
1692 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
1694 2019-03-26 Joel Brobecker <brobecker@adacore.com>
1696 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
1697 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
1698 method to compute the bounds of range types. Also print "[evaluated]"
1699 if the bounds' values come from a dynamic evaluation.
1701 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
1703 * cp-valprint.c (cp_print_value_fields): Don't print trailing
1704 whitespace when pretty printing is on.
1706 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1708 * ppc-linux-nat.c: Add include.
1710 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1712 * NEWS: Mention AArch64 Pointer Authentication.
1714 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1716 * arm-linux-nat.c: Add include.
1718 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
1720 * source-cache.c (source_cache::get_source_lines): Re-read
1721 fullname after calling open_source_file.
1723 2019-03-25 John Baldwin <jhb@FreeBSD.org>
1725 * NEWS: Mention TLS support for FreeBSD.
1727 2019-03-25 Tom Tromey <tromey@adacore.com>
1729 * minsyms.c (BUNCH_SIZE): Update comment.
1730 (~minimal_symbol_reader): Remove old comment.
1731 (compact_minimal_symbols): Update comment.
1732 (minimal_symbol_reader::install): Remove old comment. Update
1735 2019-03-25 Alan Hayward <alan.hayward@arm.com>
1737 * s390-linux-nat.c: Add include.
1739 2019-03-25 Alan Hayward <alan.hayward@arm.com>
1741 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1742 Call linux_get_hwcap.
1743 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1745 (aarch64_linux_get_hwcap): Remove function.
1746 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
1748 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
1750 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
1751 * linux-tdep.c (linux_get_hwcap): Add function.
1752 (linux_get_hwcap2): Likewise.
1753 * linux-tdep.h (linux_get_hwcap): Add declaration.
1754 (linux_get_hwcap2): Likewise.
1755 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
1756 (ppc_linux_get_hwcap2): Likewise.
1757 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
1759 (ppc_linux_nat_target::insert_watchpoint): Likewise.
1760 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
1761 (ppc_linux_nat_target::read_description): Likewise.
1762 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
1763 * s390-linux-nat.c: Likewise.
1764 * s390-linux-tdep.c (s390_core_read_description): Likewise.
1766 2019-03-24 Tom Tromey <tom@tromey.com>
1768 * ada-lang.c (standard_lookup): Simplify initialization.
1769 (ada_lookup_symbol_nonlocal): Simplify return.
1770 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
1771 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
1772 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
1773 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
1775 * solib.c (solib_global_lookup): Simplify.
1776 * symtab.c (null_block_symbol): Remove.
1777 (symbol_cache_lookup): Simplify returns.
1778 (lookup_language_this): Simplify returns.
1779 (lookup_symbol_aux): Simplify return.
1780 (lookup_local_symbol): Simplify returns.
1781 (lookup_global_symbol_from_objfile): Simplify return.
1782 (lookup_symbol_in_objfile_symtabs)
1783 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
1784 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
1785 (lookup_static_symbol, lookup_global_symbol): Simplify return.
1786 * cp-namespace.c (cp_lookup_bare_symbol)
1787 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
1788 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
1789 (cp_lookup_nested_symbol): Don't use null_block_symbol.
1790 (cp_lookup_symbol_via_imports): Simplify initialization.
1791 (find_symbol_in_baseclass): Likewise.
1792 * symtab.h (null_block_symbol): Remove.
1793 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
1794 (d_lookup_nested_symbol, d_lookup_symbol_imports)
1795 (d_lookup_symbol_module): Likewise.
1796 (find_symbol_in_baseclass): Simplify initialization.
1798 2019-03-24 Tom Tromey <tom@tromey.com>
1800 * expression.h: Don't include symtab.h.
1801 (struct block): Forward declare.
1803 2019-03-24 Tom Tromey <tom@tromey.com>
1805 * c-exp.y (typebase): Remove casts.
1806 * gdbtypes.c (lookup_unsigned_typename, )
1807 (lookup_signed_typename): Remove cast.
1808 * eval.c (parse_to_comma_and_eval): Remove cast.
1809 * parse.c (write_dollar_variable): Remove cast.
1810 * block.h (struct block) <superblock>: Now const.
1811 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
1812 * psymtab.c (psym_map_matching_symbols): Make "block" const.
1813 (map_block): Make "block" const.
1814 * symfile.h (struct quick_symbol_functions)
1815 <map_matching_symbols>: Constify block argument to "callback".
1816 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
1818 (find_pc_sect_compunit_symtab): Make "b" const.
1819 (find_symbol_at_address): Likewise.
1820 (search_symbols): Likewise.
1821 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
1822 (dw2_debug_names_lookup_symbol): Likewise.
1823 (dw2_map_matching_symbols): Update.
1824 * p-valprint.c (pascal_val_print): Remove "block".
1825 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
1826 (aux_add_nonlocal_symbols): Make "block" const.
1827 (resolve_subexp): Remove cast.
1828 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
1830 (iterate_over_file_blocks): Likewise.
1831 * f-exp.y (%union) <bval>: Remove.
1832 * coffread.c (patch_opaque_types): Make "b" const.
1833 * spu-tdep.c (spu_catch_start): Make "block" const.
1834 * c-valprint.c (print_unpacked_pointer): Remove "block".
1835 * symmisc.c (dump_symtab_1): Make "b" const.
1836 (block_depth): Make "block" const.
1837 * d-exp.y (%union) <bval>: Remove.
1838 * cp-support.h (cp_lookup_rtti_type): Update.
1839 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
1840 * psymtab.c (psym_lookup_symbol): Make "block" const.
1841 (maintenance_check_psymtabs): Make "b" const.
1842 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
1843 (enumerate_locals, enumerate_args): Update.
1844 * python/py-symtab.c (stpy_global_block): Make "block" const.
1845 (stpy_static_block): Likewise.
1846 * inline-frame.c (block_starting_point_at): Make "new_block"
1848 * block.c (find_block_in_blockvector): Make return type const.
1849 (blockvector_for_pc_sect): Make "b" const.
1850 (find_block_in_blockvector): Make "b" const.
1852 2019-03-23 Tom Tromey <tom@tromey.com>
1854 * varobj.c (varobj_create): Update.
1855 * symfile.c (clear_symtab_users): Don't reset innermost_block.
1856 * printcmd.c (display_command, do_one_display): Don't reset
1858 * parser-defs.h (enum innermost_block_tracker_type): Move to
1860 (innermost_block): Update comment.
1861 * parse.c (parse_exp_1): Add tracker_types parameter.
1862 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
1863 tracker_types parameter. Reset innermost_block.
1864 (parse_exp_in_context): Remove.
1865 (parse_expression_for_completion): Update.
1866 * objfiles.c (~objfile): Don't reset expression_context_block or
1868 * expression.h (enum innermost_block_tracker_type): Move from
1870 (parse_exp_1): Add tracker_types parameter.
1871 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
1872 reset innermost_block.
1874 2019-03-23 Tom Tromey <tom@tromey.com>
1876 * objfiles.h: Include bcache.h.
1878 2019-03-23 Tom Tromey <tom@tromey.com>
1880 * linespec.c (get_current_search_block): Use
1881 scoped_restore_current_language.
1882 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
1884 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1885 Jiong Wang <jiong.wang@arm.com>
1887 * aarch64-linux-tdep.c
1888 (aarch64_linux_iterate_over_regset_sections): Check for pauth
1890 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
1892 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1893 Jiong Wang <jiong.wang@arm.com>
1895 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
1897 (aarch64_analyze_prologue_test): Add PACIASP test.
1898 (aarch64_prologue_prev_register): Unmask PC value.
1900 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1901 Jiong Wang <jiong.wang@arm.com>
1903 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
1904 (aarch64_dwarf2_prev_register): Unmask PC value.
1905 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
1906 (aarch64_execute_dwarf_cfa_vendor_op): Check for
1907 DW_CFA_AARCH64_negate_ra_state.
1908 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
1910 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1911 Jiong Wang <jiong.wang@arm.com>
1913 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
1915 (aarch64_pseudo_register_name): Likewise.
1916 (aarch64_pseudo_register_type): Likewise.
1917 (aarch64_pseudo_register_reggroup_p): Likewise.
1918 (aarch64_gdbarch_init): Add pauth registers.
1919 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
1920 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
1921 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
1922 (struct gdbarch_tdep): Add regnum for ra_state.
1924 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1925 Jiong Wang <jiong.wang@arm.com>
1927 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
1929 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1930 Jiong Wang <jiong.wang@arm.com>
1932 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
1934 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
1935 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
1936 (aarch64_gdbarch_init): Add puth registers.
1937 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
1938 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
1939 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
1941 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1942 Jiong Wang <jiong.wang@arm.com>
1944 * aarch64-linux-nat.c
1945 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
1946 * aarch64-linux-tdep.c
1947 (aarch64_linux_core_read_description): Likewise.
1948 (aarch64_linux_get_hwcap): New function.
1949 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
1950 (aarch64_linux_get_hwcap): New declaration.
1952 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1953 Jiong Wang <jiong.wang@arm.com>
1955 * aarch64-linux-nat.c
1956 (aarch64_linux_nat_target::read_description): Add pauth param.
1957 * aarch64-linux-tdep.c
1958 (aarch64_linux_core_read_description): Likewise.
1959 * aarch64-tdep.c (struct target_desc): Add in pauth.
1960 (aarch64_read_description): Add pauth param.
1961 (aarch64_gdbarch_init): Likewise.
1962 * aarch64-tdep.h (aarch64_read_description): Likewise.
1963 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1964 * arch/aarch64.h (aarch64_create_target_description): Likewise.
1965 * features/Makefile: Add new files.
1966 * features/aarch64-pauth.c: New file.
1967 * features/aarch64-pauth.xml: New file.
1969 2019-03-20 Tom Tromey <tromey@adacore.com>
1971 * infrun.c (handle_inferior_event): Rename from
1972 handle_inferior_event_1. Create a scoped_value_mark.
1973 (handle_inferior_event): Remove.
1975 2019-03-19 Tom Tromey <tromey@adacore.com>
1977 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
1978 * infrun.h (print_stop_event): Add "displays" parameter.
1979 * infrun.c (print_stop_event): Add "displays" parameter.
1981 2019-03-19 Pedro Alves <palves@redhat.com>
1983 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
1984 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
1985 to -1. Fix TABs vs spaces.
1986 (tui_ui_out::tui_ui_out): Don't initialize fields here.
1987 * tui/tui-out.h (tui_ui_out) Add intro comments.
1988 <m_line, m_start_of_line>: In-class initialize, and add describing
1991 2019-03-18 Alan Hayward <alan.hayward@arm.com>
1993 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
1995 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
1997 2019-03-18 Pedro Alves <palves@redhat.com>
1998 Eli Zaretskii <eliz@gnu.org>
2000 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2001 m_line and m_start_of_line.
2003 2019-03-18 Eli Zaretskii <eliz@gnu.org>
2005 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2006 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2007 it returns a newline. This fixes a regression in TU mode, whereby
2008 the next line is output on the same screen line as the user input.
2010 2019-03-18 Tom Tromey <tromey@adacore.com>
2012 * minsyms.c (minimal_symbol_reader::install): Remove call to
2015 2019-03-18 Pedro Alves <palves@redhat.com>
2017 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2019 (apply_style): New, factored out from ...
2020 (apply_ansi_escape): ... this. Handle reverse video mode.
2021 (tui_set_reverse_mode): New function.
2022 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2023 * tui/tui-winsource.c (tui_show_source_line): Use
2024 tui_set_reverse_mode instead of setting A_STANDOUT.
2025 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2028 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
2030 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2033 2019-03-18 Tom Tromey <tromey@adacore.com>
2035 * ada-lang.c (empty_array): Add "high" parameter.
2036 (ada_evaluate_subexp): Update.
2038 2019-03-17 Sergei Trofimovich <siarheit@google.com>
2040 * unittests/string_view-selftests.c: Define
2041 _initialize_string_view_selftests unconditionally.
2043 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2046 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2048 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2051 * windows-nat.c (display_selector): Fix format specifiers.
2053 2019-03-17 Eli Zaretskii <eliz@gnu.org>
2055 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2056 tui_refill_source_window instead of tui_refresh_win, to update the
2057 current execution line. This fixes redisplay of the current line
2058 when stepping through the code with "next" or "step".
2060 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2062 * source-cache.c (source_cache::get_source_lines): Call
2063 find_source_lines to initialize s->nlines. This fixes vertical
2064 scrolling of TUI source window when the DOWN arrow is pressed.
2066 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2068 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2069 linux-thread-db.c (_initialize_thread_db): Likewise.
2071 2019-03-16 Eli Zaretskii <eliz@gnu.org>
2073 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2074 wclrtoeol in tui_show_source_line". This reverts changes made in
2075 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2077 2019-03-15 Tom Tromey <tom@tromey.com>
2079 * symtab.h (struct minimal_symbol): Derive from
2080 general_symbol_info.
2081 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2082 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2083 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2084 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2085 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2086 (MSYMBOL_SEARCH_NAME): Update.
2087 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2088 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2089 * minsyms.c (minimal_symbol_reader::record_full): Update.
2091 2019-03-15 Tom Tromey <tom@tromey.com>
2093 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2095 2019-03-15 Tom Tromey <tom@tromey.com>
2097 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2099 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2101 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2102 (build_minimal_symbol_hash_tables)
2103 (minimal_symbol_reader::install): Update.
2105 2019-03-15 Tom Tromey <tom@tromey.com>
2107 * symtab.c (create_demangled_names_hash): Update.
2108 (symbol_set_names): Update.
2109 * objfiles.h (struct objfile_per_bfd_storage)
2110 <demangled_names_hash>: Now an htab_up.
2111 * objfiles.c (objfile_per_bfd_storage): Simplify.
2113 2019-03-15 Tom Tromey <tom@tromey.com>
2115 * objfiles.h (struct objfile_per_bfd_storage): Declare
2117 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2119 (get_objfile_bfd_data): Use new. Don't initialize
2121 (free_objfile_per_bfd_storage): Remove.
2122 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2124 2019-03-15 Tom Tromey <tom@tromey.com>
2126 * symfile.c (reread_symbols): Update.
2127 * objfiles.c (objfile::objfile): Update.
2128 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2129 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2131 (minimal_symbol_reader::install): Update.
2132 (terminate_minimal_symbol_table): Remove.
2133 * jit.c (jit_object_close_impl): Update.
2135 2019-03-15 Tom Tromey <tom@tromey.com>
2137 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2140 2019-03-15 Tom Tromey <tom@tromey.com>
2142 * objfiles.h (struct objfile_per_bfd_storage)
2143 <demangled_hash_languages>: Now a bitset.
2144 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2145 (lookup_minimal_symbol): Update.
2147 2019-03-15 Tom Tromey <tom@tromey.com>
2149 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2150 Don't return the symbol.
2151 * coffread.c (record_minimal_symbol): Use record_full.
2153 2019-03-14 Eli Zaretskii <eliz@gnu.org>
2155 The MS-Windows port of ncurses fails to switch to a color pair if
2156 one or both of the colors are the implicit default colors. This
2157 change records the default colors when TUI is initialized, and
2158 then specifies them explicitly when a color pair uses the default
2159 colors. This allows color styling in TUI mode on MS-Windows.
2161 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2163 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2164 colors in ncurses_norm_attr.
2165 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2166 "none", replace it with the default color recorded in
2169 2019-03-14 Tom Tromey <tromey@adacore.com>
2171 * source-cache.h (class source_cache) <get_source_lines>: Return
2173 * source-cache.c (source_cache::extract_lines): Handle case where
2174 first_pos==npos. Return std::string.
2175 (source_cache::get_source_lines): Update.
2177 2019-03-14 Tom Tromey <tromey@adacore.com>
2179 * NEWS: Add item for "style sources" commands.
2180 * source-cache.c (source_cache::get_source_lines): Check
2182 * cli/cli-style.c (source_styling): New global.
2183 (_initialize_cli_style): Add "style sources" commands.
2184 (show_style_sources): New function.
2185 * cli/cli-style.h (source_styling): Declare.
2187 2019-03-14 Pedro Alves <palves@redhat.com>
2188 Tom Tromey <tromey@adacore.com>
2190 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2191 * tui/tui-winsource.c (tui_refill_source_window): New function,
2193 (tui_horizontal_source_scroll): ... here. Move some logic.
2194 * cli/cli-style.c (set_style_enabled): Notify new observable.
2195 * tui/tui-hooks.c (tui_redisplay_source): New function.
2196 (tui_attach_detach_observers): Attach or detach
2197 tui_redisplay_source.
2198 * observable.h (source_styling_changed): New observable.
2199 * observable.c: Define source_styling_changed observable.
2201 2019-03-13 Tom Tromey <tromey@adacore.com>
2203 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2204 (i386_gnu_nat_target::store_registers): Update.
2205 * target-debug.h (target_debug_print_std_string): New macro.
2206 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2207 * windows-tdep.c (display_one_tib): Update.
2208 * tui/tui-stack.c (tui_make_status_line): Update.
2209 * top.c (print_inferior_quit_action): Update.
2210 * thread.c (thr_try_catch_cmd): Update.
2211 (add_thread_with_info): Update.
2212 (thread_target_id_str): Update.
2213 (thr_try_catch_cmd): Update.
2214 (thread_command): Update.
2215 (thread_find_command): Update.
2216 * record-btrace.c (record_btrace_target::info_record)
2217 (record_btrace_resume_thread, record_btrace_target::resume)
2218 (record_btrace_cancel_resume, record_btrace_step_thread)
2219 (record_btrace_target::wait, record_btrace_target::wait)
2220 (record_btrace_target::wait, record_btrace_target::stop): Update.
2221 * progspace.c (print_program_space): Update.
2222 * process-stratum-target.c
2223 (process_stratum_target::thread_address_space): Update.
2224 * linux-fork.c (linux_fork_mourn_inferior)
2225 (detach_checkpoint_command, info_checkpoints_command)
2226 (linux_fork_context): Update.
2227 (linux_fork_detach): Update.
2228 (class scoped_switch_fork_info): Update.
2229 (delete_checkpoint_command): Update.
2230 * infrun.c (follow_fork_inferior): Update.
2231 (follow_fork_inferior): Update.
2232 (proceed_after_vfork_done): Update.
2233 (handle_vfork_child_exec_or_exit): Update.
2234 (follow_exec): Update.
2235 (displaced_step_prepare_throw): Update.
2236 (displaced_step_restore): Update.
2237 (start_step_over): Update.
2239 (clear_proceed_status_thread): Update.
2241 (print_target_wait_results): Update.
2242 (do_target_wait): Update.
2243 (context_switch): Update.
2244 (stop_all_threads): Update.
2245 (restart_threads): Update.
2246 (finish_step_over): Update.
2247 (handle_signal_stop): Update.
2248 (switch_back_to_stepped_thread): Update.
2249 (keep_going_pass_signal): Update.
2250 (print_exited_reason): Update.
2251 (normal_stop): Update.
2252 * inferior.c (inferior_pid_to_str): Change return type.
2253 (print_selected_inferior): Update.
2254 (add_inferior): Update.
2255 (detach_inferior): Update.
2256 * dummy-frame.c (fprint_dummy_frames): Update.
2257 * dcache.c (dcache_info_1): Update.
2258 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2259 (btrace_fetch, btrace_clear): Update.
2260 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2261 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2263 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2264 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2265 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2266 * gdbarch.c, gdbarch.h: Rebuild.
2267 * gdbarch.sh (core_pid_to_str): Change return type.
2268 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2270 (windows_nat_target::pid_to_str): Change return type.
2271 (windows_delete_thread): Update.
2272 (windows_nat_target::attach): Update.
2273 (windows_nat_target::files_info): Update.
2274 * target-delegates.c: Rebuild.
2275 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2277 (sol_thread_target::pid_to_str): Change return type.
2278 * remote.c (class remote_target) <pid_to_str>: Change return
2280 (remote_target::pid_to_str): Change return type.
2281 (extended_remote_target::attach, remote_target::remote_stop_ns)
2282 (remote_target::remote_notif_remove_queued_reply)
2283 (remote_target::push_stop_reply, remote_target::disable_btrace):
2285 (extended_remote_target::attach): Update.
2286 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2288 (gdbsim_target::pid_to_str): Change return type.
2289 * ravenscar-thread.c (struct ravenscar_thread_target)
2290 <pid_to_str>: Change return type.
2291 (ravenscar_thread_target::pid_to_str): Change return type.
2292 * procfs.c (class procfs_target) <pid_to_str>: Change return
2294 (procfs_target::pid_to_str): Change return type.
2295 (procfs_target::attach): Update.
2296 (procfs_target::detach): Update.
2297 (procfs_target::fetch_registers): Update.
2298 (procfs_target::store_registers): Update.
2299 (procfs_target::wait): Update.
2300 (procfs_target::files_info): Update.
2301 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2302 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2304 (nto_procfs_target::pid_to_str): Change return type.
2305 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2306 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2308 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2310 (attach_proc_task_lwp_callback, get_detach_signal)
2311 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2312 (linux_nat_target::resume, wait_lwp, stop_callback)
2313 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2314 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2315 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2316 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2317 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2319 (inf_ptrace_target::attach): Update.
2320 (inf_ptrace_target::files_info): Update.
2321 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2323 (go32_nat_target::pid_to_str): Change return type.
2324 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2325 (gnu_nat_target::wait): Update.
2326 (gnu_nat_target::wait): Update.
2327 (gnu_nat_target::resume): Update.
2328 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2329 (fbsd_nat_target::wait): Update.
2330 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2332 (darwin_nat_target::attach): Update.
2333 * corelow.c (class core_target) <pid_to_str>: Change return type.
2334 (core_target::pid_to_str): Change return type.
2335 * target.c (normal_pid_to_str): Change return type.
2336 (default_pid_to_str): Likewise.
2337 (target_pid_to_str): Change return type.
2338 (target_translate_tls_address): Update.
2339 (target_announce_detach): Update.
2340 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2342 (bsd_uthread_target::pid_to_str): Change return type.
2343 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2345 (bsd_kvm_target::pid_to_str): Change return type.
2346 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2348 (aix_thread_target::pid_to_str): Change return type.
2349 * target.h (struct target_ops) <pid_to_str>: Change return type.
2350 (target_pid_to_str, normal_pid_to_str): Likewise.
2351 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2353 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2355 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2357 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2359 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2361 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2364 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2366 * NEWS: Mention that the new default MI version is 3. Mention
2367 changes to the output of commands and events that deal with
2368 multi-location breakpoints.
2369 * breakpoint.c: Include "mi/mi-out.h".
2370 (print_one_breakpoint): Change output syntax if using MI version
2372 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2374 (mi_multi_location_breakpoint_output_fixed): New.
2375 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2376 (mi_cmd_fix_multi_location_breakpoint_output): New.
2377 (mi_multi_location_breakpoint_output_fixed): New.
2378 * mi/mi-cmds.c (mi_cmds): Register command
2379 -fix-multi-location-breakpoint-output.
2380 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2383 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2385 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2386 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2387 instantiate mi_ui_out based on interpreter name.
2388 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2389 * mi/mi-main.c (mi_load_progress): Likewise.
2391 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2393 * NEWS: Combine separate "New targets" sections for 8.3.
2395 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2397 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2398 (ppcfbsd_init_abi): Install gdbarch
2399 "fetch_tls_load_module_address" and "get_thread_local_address"
2402 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2404 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2405 (riscv_fbsd_init_abi): Install gdbarch
2406 "fetch_tls_load_module_address" and "get_thread_local_address"
2409 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2411 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2412 (i386fbsd_init_abi): Install gdbarch
2413 "fetch_tls_load_module_address" and "get_thread_local_address"
2416 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2418 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2419 (amd64fbsd_init_abi): Install gdbarch
2420 "fetch_tls_load_module_address" and "get_thread_local_address"
2423 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2425 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2426 (struct fbsd_pspace_data): New type.
2427 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2428 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2429 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2430 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2431 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2433 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2435 * gdbtypes.c (lookup_struct_elt): New function.
2436 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2437 * gdbtypes.h (struct struct_elt): New type.
2438 (lookup_struct_elt): New prototype.
2440 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2442 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2443 remove disabled code block.
2445 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2447 * gdbarch.sh (get_thread_local_address): New method.
2448 * gdbarch.h, gdbarch.c: Regenerate.
2449 * target.c (target_translate_tls_address): Use
2450 gdbarch_get_thread_local_address if present instead of
2451 target::get_thread_local_address.
2453 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2455 * target.h (target::get_thread_local_address): Update comment.
2457 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2459 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2460 objfile->separate_debug_objfile_backlink if not NULL.
2462 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2464 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2465 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2466 (amd64bsd_store_inferior_registers): Likewise.
2467 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2468 Enable segment base registers.
2469 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2470 PT_GETFSBASE and PT_GETGSBASE.
2471 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2473 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2474 segment base registers.
2475 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2477 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2479 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2480 Update calls to i386_target_description to add 'segments'
2482 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2483 add segment base registers.
2484 * arch/i386.c (i386_create_target_description): Add 'segments'
2485 parameter to enable segment base registers.
2486 * arch/i386.h (i386_create_target_description): Likewise.
2487 * features/i386/32bit-segments.xml: New file.
2488 * features/i386/32bit-segments.c: Generate.
2489 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2490 call to i386_target_description to add 'segments' parameter.
2491 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2492 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2493 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2494 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2495 if feature is present.
2496 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2497 Add 'segments' parameter to call to i386_target_description.
2498 (i386_target_description): Add 'segments' parameter to enable
2499 segment base registers.
2500 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2501 to call to i386_target_description.
2502 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2503 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2504 Define I386_NUM_REGS.
2505 (i386_target_description): Add 'segments' parameter to enable
2506 segment base registers.
2508 2019-03-12 Eli Zaretskii <eliz@gnu.org>
2511 * source-cache.c: #undef open and close, to avoid unresolved
2512 externals during linking.
2514 2019-03-12 Tom Tromey <tromey@adacore.com>
2516 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2517 const. Add initializers.
2518 (_initialize_remote): Don't initialize ptid globals.
2520 2019-03-12 Pedro Alves <palves@redhat.com>
2522 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2524 2019-03-12 Pedro Alves <palves@redhat.com>
2526 * cp-name-parser.y (main): Remove unused 'len' variable.
2528 2019-03-12 Tom Tromey <tromey@adacore.com>
2530 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
2531 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
2533 2019-03-12 Tom Tromey <tromey@adacore.com>
2535 * linux-nat.c (iterate_over_lwps): Update.
2536 (stop_callback): Remove parameter.
2537 (stop_wait_callback, detach_callback, resume_set_callback)
2538 (select_singlestep_lwp_callback, set_ignore_sigint)
2539 (status_callback, resumed_callback, resume_clear_callback)
2540 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
2542 (linux_nat_target::detach, linux_nat_target::resume)
2543 (linux_stop_and_wait_all_lwps, select_event_lwp)
2544 (linux_nat_filter_event, linux_nat_wait_1)
2545 (linux_nat_target::kill, linux_nat_target::stop)
2546 (linux_nat_target::stop): Update.
2547 (linux_nat_resume_callback): Change type.
2548 (resume_stopped_resumed_lwps, count_events_callback)
2549 (select_event_lwp_callback): Likewise.
2550 (linux_stop_lwp, linux_nat_stop_lwp): Update.
2551 * arm-linux-nat.c (struct update_registers_data): Remove.
2552 (update_registers_callback): Change type.
2553 (arm_linux_insert_hw_breakpoint1): Update.
2554 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
2556 (x86_linux_dr_set_addr): Update.
2557 (x86_linux_dr_set_control): Update.
2558 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
2559 (iterate_over_lwps): Use gdb::function_view.
2560 * nat/aarch64-linux-hw-point.c (struct
2561 aarch64_dr_update_callback_param): Remove.
2562 (debug_reg_change_callback): Change type.
2563 (aarch64_notify_debug_reg_change): Update.
2564 * s390-linux-nat.c (s390_refresh_per_info): Update.
2566 2019-03-11 Tom Tromey <tromey@adacore.com>
2568 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
2569 redundant assignment to "this_cu".
2571 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2573 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
2575 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2577 * gdbtypes.c (rank_one_type_parm_set): New function extracted
2579 (rank_one_type): ... this.
2581 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2583 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
2585 (rank_one_type): ... this.
2587 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2589 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
2591 (rank_one_type): ... this.
2593 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2595 * gdbtypes.c (rank_one_type_parm_float): New function extracted
2597 (rank_one_type): ... this.
2599 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2601 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
2603 (rank_one_type): ... this.
2605 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2607 * gdbtypes.c (rank_one_type_parm_range): New function extracted
2609 (rank_one_type): ... this.
2611 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2613 * gdbtypes.c (rank_one_type_parm_char): New function extracted
2615 (rank_one_type): ... this.
2617 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2619 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
2621 (rank_one_type): ... this.
2623 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2625 * gdbtypes.c (rank_one_type_parm_int): New function extracted
2627 (rank_one_type): ... this.
2629 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2631 * gdbtypes.c (rank_one_type_parm_func): New function extracted
2633 (rank_one_type): ... this.
2635 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2637 * gdbtypes.c (rank_one_type_parm_array): New function extracted
2639 (rank_one_type): ... this.
2641 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
2643 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
2645 (rank_one_type): ... this.
2647 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2649 * inferior.c (initialize_inferiors): Ensure 'help set/show print
2650 inferior-events' shows the example events.
2652 2019-03-08 Eli Zaretskii <eliz@gnu.org>
2654 Support styling on native MS-Windows console
2657 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
2658 on MS-Windows if $TERM is not defined.
2660 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
2662 * posix-hdep.c (gdb_console_fputs):
2663 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
2665 * ui-file.h (gdb_console_fputs): Add prototype.
2667 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
2668 back to fputs only if the former returns zero.
2670 2019-03-07 Tom Tromey <tom@tromey.com>
2672 * symmisc.c (print_symbol_bcache_statistics): Update.
2673 (print_objfile_statistics): Update.
2674 * symfile.c (allocate_symtab): Update.
2675 * stabsread.c: Don't include bcache.h.
2676 * psymtab.h (struct psymbol_bcache): Don't declare.
2677 (class psymtab_storage) <psymbol_cache>: Now a bcache.
2678 (psymbol_bcache_init, psymbol_bcache_free)
2679 (psymbol_bcache_get_bcache): Don't declare.
2680 * psymtab.c (struct psymbol_bcache): Remove.
2681 (psymtab_storage::psymtab_storage): Update.
2682 (psymtab_storage::~psymtab_storage): Update.
2683 (psymbol_bcache_init, psymbol_bcache_free)
2684 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
2685 (add_psymbol_to_bcache): Update.
2686 (allocate_psymtab): Update.
2687 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2688 macro_cache>: No longer pointers.
2689 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
2690 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
2691 * macrotab.c (macro_bcache): Update.
2692 * macroexp.c: Don't include bcache.h.
2693 * gdbtypes.c (check_types_worklist): Update.
2694 (types_deeply_equal): Remove TRY/CATCH. Update.
2695 * elfread.c (elf_symtab_read): Update.
2696 * dwarf2read.c: Don't include bcache.h.
2697 * buildsym.c (buildsym_compunit::get_macro_table): Update.
2698 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
2699 (print_bcache_statistics, bcache_memory_used): Don't declare.
2700 (struct bcache): Move from bcache.c. Add constructor, destructor,
2701 methods. Rename all data members.
2702 * bcache.c (struct bcache): Move to bcache.h.
2703 (bcache::expand_hash_table): Rename from expand_hash_table.
2705 (bcache::insert): Rename from bcache_full.
2706 (bcache::compare): Rename from bcache_compare.
2707 (bcache_xmalloc): Remove.
2708 (bcache::~bcache): Rename from bcache_xfree.
2709 (bcache::print_statistics): Rename from print_bcache_statistics.
2710 (bcache::memory_used): Rename from bcache_memory_used.
2712 2019-03-07 Pedro Alves <palves@redhat.com>
2714 * infrun.c (normal_stop): Also check for
2715 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
2717 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
2719 * f-lang.c (value_from_host_double): Moved to...
2720 * value.c (value_from_host_double): ...here.
2721 * value.h (value_from_host_double): Declare.
2722 * guile/scm-math.c (vlscm_convert_typed_number): Use
2723 value_from_host_double.
2724 (vlscm_convert_number): Likewise.
2725 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
2726 * python/py-value.c (convert_value_from_python): Likewise.
2728 2019-03-06 Tom Tromey <tom@tromey.com>
2730 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
2732 2019-03-06 Tom Tromey <tom@tromey.com>
2734 * utils.h (free_current_contents): Don't declare.
2735 * utils.c (free_current_contents): Remove.
2737 2019-03-06 Tom Tromey <tom@tromey.com>
2739 * top.c (quit_force): Update.
2740 * main.c (captured_command_loop): Update.
2741 * common/new-op.c (operator new): Update.
2742 * common/common-exceptions.c (struct catcher)
2743 <save_cleanup_chain>: Remove member.
2744 (exceptions_state_mc_init): Update.
2745 (exception_try_scope_entry): Return nullptr.
2746 (exception_try_scope_exit, exception_rethrow)
2747 (throw_exception_sjlj, throw_exception_cxx): Update.
2748 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
2749 (all_cleanups, do_cleanups, discard_cleanups)
2750 (discard_final_cleanups, save_cleanups, save_final_cleanups)
2751 (restore_cleanups, restore_final_cleanups): Don't declare.
2752 (do_final_cleanups): Remove parameter.
2753 * common/cleanups.c (cleanup_chain, make_cleanup)
2754 (make_cleanup_dtor, all_cleanups, do_cleanups)
2755 (discard_my_cleanups, discard_cleanups)
2756 (discard_final_cleanups, save_my_cleanups, save_cleanups)
2757 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
2758 (null_cleanup): Remove.
2759 (do_final_cleanups): Remove parameter.
2761 2019-03-06 Tom Tromey <tom@tromey.com>
2763 * remote.c (remote_target::remote_parse_stop_reply): Use
2766 2019-03-06 Tom Tromey <tom@tromey.com>
2768 * stabsread.c (struct stabs_field_info): Rename from field_info.
2769 <list, fnlist>: Add initializers.
2770 <obstack>: New member.
2771 (read_member_functions, read_struct_fields, read_baseclasses):
2772 Allocate on obstack. Don't use cleanups.
2773 (read_one_struct_field, read_member_functions, read_struct_fields)
2774 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
2775 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
2776 (read_struct_type): Update.
2778 2019-03-06 Tom Tromey <tom@tromey.com>
2780 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
2781 * common/filestuff.h (make_cleanup_close): Don't declare.
2782 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
2785 2019-03-06 Tom Tromey <tom@tromey.com>
2787 * solib-aix.c: Use make_scope_exit.
2789 2019-03-06 Tom Tromey <tom@tromey.com>
2791 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
2792 Use make_scope_exit.
2794 2019-03-06 Tom Tromey <tom@tromey.com>
2796 * solib-svr4.c (disable_probes_interface): Remove parameter.
2797 (svr4_handle_solib_event): Use make_scope_exit.
2799 2019-03-06 Tom Tromey <tom@tromey.com>
2801 * remote.c (struct stop_reply_deleter): Remove.
2802 (stop_reply_up): Update.
2803 (struct stop_reply): Derive from notif_event. Don't typedef.
2804 <regcache>: Now a std::vector.
2805 (stop_reply_xfree): Remove.
2806 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
2807 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
2808 (remote_target::discard_pending_stop_replies): Use delete.
2809 (remote_target::remote_parse_stop_reply): Update.
2810 (remote_target::process_stop_reply): Update.
2811 * remote-notif.h (struct notif_event): Add virtual destructor.
2812 Remove "dtr" member.
2813 (struct notif_client) <alloc_event>: Return a unique_ptr.
2814 (notif_event_xfree): Don't declare.
2815 (notif_event_up): New typedef.
2816 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
2817 (notif_event_xfree, do_notif_event_xfree): Remove.
2818 (remote_notif_state_xfree): Update.
2820 2019-03-06 Tom Tromey <tom@tromey.com>
2822 * infrun.c (displaced_step_clear_cleanup): Now a
2823 forward_scope_exit type.
2824 (displaced_step_prepare_throw): Update.
2825 (displaced_step_fixup): Update.
2827 2019-03-06 Tom Tromey <tom@tromey.com>
2829 * inferior.h (class inferior): Update comment.
2830 * gdbthread.h (class thread_info): Update comment.
2832 2019-03-06 Joel Brobecker <brobecker@adacore.com>
2833 Tom Tromey <tom@tromey.com>
2835 * stabsread.h (struct stab_section_list): Remove.
2836 (coffstab_build_psymtabs): Update.
2837 * dbxread.c (symbuf_sections): Now a std::vector.
2838 (sect_idx): New global.
2839 (fill_symbuf): Update.
2840 (coffstab_build_psymtabs): Change type of stabsects parameter.
2842 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
2844 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
2845 (coff_locate_sections): Update.
2846 (coff_symfile_read): Remove cleanups. Update.
2847 (init_stringtab): Add storage parameter.
2848 (free_stringtab, free_stringtab_cleanup): Remove.
2849 (init_lineno): Add storage parameter.
2850 (free_linetab, free_linetab_cleanup): Remove.
2852 2019-03-06 Pedro Alves <palves@redhat.com>
2854 * linux-fork.c (fork_info::clobber_regs): Delete.
2855 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
2856 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
2858 (scoped_switch_fork_info::scoped_switch_fork_info)
2859 (checkpoint_command, linux_fork_context): Adjust
2860 fork_save_infrun_state calls.
2862 2019-03-06 Pedro Alves <palves@redhat.com>
2864 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
2865 (inf_has_multiple_threads): Return 'bool' and rewrite using
2866 inferior_info::threads().
2868 2019-03-06 Pedro Alves <palves@redhat.com>
2870 * linux-fork.c: Include <list>.
2871 (fork_list): Now a std::list instance.
2872 (fork_info): Add ctor, dtor, and in-class initialize all fields.
2873 (forks_exist_p, find_last_fork): Adjust.
2877 (free_fork): Delete, folded into fork_info::~fork_info().
2878 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
2880 (init_fork_list): Delete.
2881 (linux_fork_killall, linux_fork_mourn_inferior)
2882 (linux_fork_detach, info_checkpoints_command): Adjust.
2883 (_initialize_linux_fork): No longer call init_fork_list.
2885 2019-03-06 Pedro Alves <palves@redhat.com>
2887 * linux-fork.c (new_fork): New, split out of ...
2888 (add_fork): ... this. Return void. Move "first fork" special
2889 case from here, to ...
2890 (checkpoint_command): ... here.
2891 * linux-linux.h (add_fork): Return void.
2893 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2895 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
2897 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2898 Chris January <chris.january@arm.com>
2899 David Lecomber <david.lecomber@arm.com>
2901 * f-exp.y: New token, UNOP_INTRINSIC.
2902 (exp): New pattern using UNOP_INTRINSIC token.
2903 (f77_keywords): Add 'abs' keyword.
2904 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
2905 (value_from_host_double): New function.
2906 (evaluate_subexp_f): Support UNOP_ABS.
2908 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2910 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
2913 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2915 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
2916 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
2917 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
2919 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2921 * f-exp.y (convert_to_kind_type): Handle more type kinds.
2923 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2924 Chris January <chris.january@arm.com>
2926 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
2927 * f-exp.y: Define 'KIND' token.
2928 (exp): New pattern for KIND expressions.
2929 (ptype): Handle types with a kind extension.
2930 (direct_abs_decl): Extend to spot kind extensions.
2931 (f77_keywords): Add 'kind' to the list.
2932 (push_kind_type): New function.
2933 (convert_to_kind_type): New function.
2934 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
2935 * parse.c (operator_length_standard): Likewise.
2936 * parser-defs.h (enum type_pieces): Add tp_kind.
2937 * std-operator.def: Add UNOP_KIND.
2939 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2941 * f-exp.y (f_parse): Set yydebug.
2943 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2945 * f-lang.c (evaluate_subexp_f): New function.
2946 (exp_descriptor_f): New global.
2947 (f_language_defn): Use exp_descriptor_f instead of
2948 exp_descriptor_standard.
2950 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2952 * f-exp.y (struct token): Add comments.
2953 (dot_ops): Remove uppercase versions and the end marker.
2954 (f77_keywords): Likewise.
2955 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
2956 entries in the dot_ops array are case insensitive, and use
2957 strncasecmp to compare strings. Also some whitespace cleanup in
2958 this area. Similar for the f77_keywords array, except entries in
2959 this list might be case sensitive.
2961 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2963 * f-exp.y (struct f77_boolean_val): Add comments.
2964 (boolean_values): Remove uppercase versions, and end marker.
2965 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
2966 and use strncasecmp to achieve case insensitivity. Additionally,
2967 perform whitespace cleanup around this code.
2969 2019-03-06 Tom Tromey <tromey@adacore.com>
2971 * remote-sim.c (gdbsim_target_open): Use result of
2974 2019-03-06 Richard Bunt <richard.bunt@arm.com>
2975 Dirk Schubert <dirk.schubert@arm.com>
2976 Chris January <chris.january@arm.com>
2978 * eval.c (evaluate_subexp_standard): Call Fortran argument
2980 * f-lang.c (struct value): A value which can be passed into a
2981 Fortran function call.
2982 (fortran_argument_convert): Wrap Fortran arguments in a pointer
2984 (struct type): Value ready for a Fortran function call.
2985 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
2987 * f-lang.h (fortran_argument_convert): Declaration.
2988 (fortran_preserve_arg_pointer): Declaration.
2989 * infcall.c (value_arg_coerce): Call Fortran argument logic.
2991 2019-03-05 Tom Tromey <tromey@adacore.com>
2993 * python/py-prettyprint.c (print_string_repr): Remove #if.
2994 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
2996 2019-03-05 Tom Tromey <tromey@adacore.com>
2998 * target.c (the_dummy_target): Move later. Change type to
3000 (initialize_targets): Don't initialize the_dummy_target.
3002 2019-03-05 Tom Tromey <tromey@adacore.com>
3004 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3005 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3007 2019-03-05 Tom Tromey <tromey@adacore.com>
3009 * windows-nat.c (windows_nat_target::attach)
3010 (windows_nat_target::detach): Don't call gdb_flush.
3011 * valprint.c (generic_val_print, val_print, val_print_string):
3012 Don't call gdb_flush.
3013 * utils.c (defaulted_query): Don't call gdb_flush.
3014 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3015 * target.c (target_announce_detach): Don't call gdb_flush.
3016 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3017 * remote.c (extended_remote_target::attach): Don't call
3019 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3020 * printcmd.c (do_examine): Don't call gdb_flush.
3021 (info_display_command): Don't call gdb_flush.
3022 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3023 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3024 * memattr.c (info_mem_command): Don't call gdb_flush.
3025 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3026 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3027 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3028 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3029 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3030 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3031 (gnu_nat_target::detach): Don't call gdb_flush.
3032 * f-valprint.c (f_val_print): Don't call gdb_flush.
3033 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3034 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3035 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3037 * c-valprint.c (c_val_print): Don't call gdb_flush.
3038 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3040 2019-03-05 Tom Tromey <tromey@adacore.com>
3042 * varobj.c (update_dynamic_varobj_children): Update.
3043 (install_default_visualizer): Use reset, not release.
3044 * value.c (set_internalvar): Update.
3045 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3046 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3047 ATTRIBUTE_UNUSED_RESULT.
3049 2019-03-05 Tom Tromey <tromey@adacore.com>
3051 * remote.c (class scoped_remote_fd) <release>: Add
3052 ATTRIBUTE_UNUSED_RESULT.
3054 2019-03-05 Tom Tromey <tromey@adacore.com>
3056 * macroexp.c (struct macro_buffer) <release>: Add
3057 ATTRIBUTE_UNUSED_RESULT.
3059 2019-03-05 Tom Tromey <tromey@adacore.com>
3061 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3062 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3063 ATTRIBUTE_UNUSED_RESULT.
3065 2019-03-05 Tom Tromey <tromey@adacore.com>
3067 * common/scoped_fd.h (class scoped_fd) <release>: Add
3068 ATTRIBUTE_UNUSED_RESULT.
3070 2019-03-05 Tom Tromey <tromey@adacore.com>
3072 * parser-defs.h (struct parser_state) <release>: Add
3073 ATTRIBUTE_UNUSED_RESULT.
3075 2019-03-05 Tom Tromey <tromey@adacore.com>
3077 * utils.h (class gdb_argv) <release>: Add
3078 ATTRIBUTE_UNUSED_RESULT.
3079 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3081 2019-03-02 Eli Zaretskii <eliz@gnu.org>
3083 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3084 for-loop range, to avoid compiler warnings.
3086 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3087 avoid compiler warnings about unused variables.
3089 * NEWS: Mention end of support for native debugging on MS-Windows
3093 * common/netstuff.c:
3094 * gdbserver/gdbreplay.c
3095 * gdbserver/remote-utils.c:
3097 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3098 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3099 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3100 'getaddrinfo' and 'freeaddrinfo' were not available before
3101 Windows XP, and mingw.org's MinGW headers by default define
3102 _WIN32_WINNT to 0x500.
3104 2019-03-01 Gary Benson <gbenson@redhat.com>
3106 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3108 2019-02-28 Brian Vandenberg <phantall@gmail.com>
3109 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3112 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3113 set_sigint_trap, clear_sigint_trap.
3115 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3117 * target.c (target_detach): Clear the regcache and the
3120 2019-02-27 Pedro Alves <palves@redhat.com>
3122 * utils.c (set_screen_size): When we cap the height/width sizes,
3123 tweak the corresponding command variable to show "unlimited":
3125 2019-02-27 Saagar Jha <saagar@saagarjha.com>
3126 Pedro Alves <palves@redhat.com>
3128 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3129 before calling rl_set_screen_size.
3131 2019-02-27 Tom Tromey <tromey@adacore.com>
3133 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3135 * python/py-value.c: Remove Python 2.4 workaround.
3136 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3138 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3139 Python 2.4 workaround.
3140 * python/python-internal.h: Remove Python 2.4 comment.
3141 (Py_ssize_t): Don't define.
3142 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3143 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3144 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3145 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3146 * python/python.c (do_start_initialization): Remove Python 2.4
3148 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3149 (print_children): Remove Python 2.4 workaround.
3150 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3152 (CHARBUFFERPROC_NAME): Remove.
3153 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3154 Python 2.4 workaround.
3156 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3158 * NEWS: Note minimum Python version.
3160 2019-02-27 Kevin Buettner <kevinb@redhat.com>
3162 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3163 code from these functions. Remove corresponding ifdefs. Use
3164 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3165 Remove gotos and target of gotos.
3166 (infpy_search_memory): Likewise.
3168 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3170 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3171 (hppa_gdbarch_init): Don't register deleted functions with
3174 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3176 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3177 (h8300_unwind_sp): Delete.
3178 (h8300_dummy_id): Delete.
3179 (h8300_gdbarch_init): Don't register deleted functions with
3182 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3184 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3185 (ft32_unwind_pc): Delete.
3186 (ft32_unwind_sp): Delete.
3187 (ft32_gdbarch_init): Don't register deleted functions with
3190 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3192 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3193 (frv_unwind_pc): Delete.
3194 (frv_unwind_sp): Delete.
3195 (frv_gdbarch_init): Don't register deleted functions with
3198 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3200 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3201 (riscv_unwind_pc): Delete.
3202 (riscv_unwind_sp): Delete.
3203 (riscv_gdbarch_init): Don't register deleted functions with
3206 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3208 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3209 (csky_unwind_pc): Delete.
3210 (csky_unwind_sp): Delete.
3211 (csky_gdbarch_init): Don't register deleted functions with
3214 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3216 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3217 (cris_unwind_pc): Delete.
3218 (cris_unwind_sp): Delete.
3219 (cris_gdbarch_init): Don't register deleted functions with
3222 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3224 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3225 (bfin_unwind_pc): Delete.
3226 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3228 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3230 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3231 (arm_unwind_pc): Delete.
3232 (arm_unwind_sp): Delete.
3233 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3235 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3237 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3238 (arc_unwind_pc): Delete.
3239 (arc_unwind_sp): Delete.
3240 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3242 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3244 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3245 (alpha_unwind_pc): Delete.
3246 (alpha_gdbarch_init): Don't register deleted functions with
3249 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3251 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3252 (aarch64_unwind_pc): Delete.
3253 (aarch64_unwind_sp): Delete.
3254 (aarch64_gdbarch_init): Don't register deleted functions with
3257 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3259 * gdbtypes.c (type_align): Don't consider static members when
3260 computing structure alignment.
3262 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3264 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3265 return 0 for other types.
3266 * arch-utils.c (default_type_align): Always return 0.
3267 * gdbarch.h: Regenerate.
3268 * gdbarch.sh (type_align): Extend comment.
3269 * gdbtypes.c (type_align): Add additional comments, always call
3270 gdbarch_type_align before applying the default rules.
3271 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3272 generic code will then apply a suitable default.
3273 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3274 types, return 0 for other types.
3276 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3278 * NEWS: Create a new section for the next release branch.
3279 Rename the section of the current branch, now that it has
3282 2019-02-27 Joel Brobecker <brobecker@adacore.com>
3284 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3285 * version.in: Bump version to 8.3.50.DATE-git.
3287 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
3289 * aix-thread.c (ptid_cmp): Remove unused variable.
3290 (get_signaled_thread): Likewise.
3291 (store_regs_user_thread): Likewise.
3292 (store_regs_kernel_thread): Likewise.
3293 (fetch_regs_kernel_thread): Remove shadowed variable.
3295 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3297 * features/riscv/32bit-cpu.xml: Add register numbers.
3298 * features/riscv/32bit-fpu.c: Regenerate.
3299 * features/riscv/32bit-fpu.xml: Add register numbers.
3300 * features/riscv/64bit-cpu.xml: Add register numbers.
3301 * features/riscv/64bit-fpu.c: Regenerate.
3302 * features/riscv/64bit-fpu.xml: Add register numbers.
3304 2019-02-26 Kevin Buettner <kevinb@redhat.com>
3306 * NEWS: Mention two argument form of gdb.Value constructor.
3307 * python/py-value.c (convert_buffer_and_type_to_value): New
3309 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3310 Add support for handling an optional second argument. Call
3311 convert_buffer_and_type_to_value as appropriate.
3312 * python/python-internal.h (Py_buffer_deleter): New struct.
3313 (Py_buffer_up): New typedef.
3315 2019-02-25 John Baldwin <jhb@FreeBSD.org>
3317 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3318 instead of releasing ownership.
3320 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
3322 * dwarf2read.c (open_and_init_dwp_file): Call
3323 elf_numsections instead of bfd_count_sections to initialize
3324 dwp_file->num_sections.
3326 2019-02-25 Tom Tromey <tromey@adacore.com>
3328 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3330 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3332 * gcore.in: Add '--readnever' option when invoking GDB.
3334 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3336 * MAINTAINERS: Update my email address.
3338 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3340 * build-id.c (build_id_to_debug_bfd_1): New function.
3341 (build_id_to_debug_bfd): Look for separate debug file in
3344 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3346 * gdbarch.sh: Update the copyright year range that is placed into
3349 2019-02-22 Keith Seitz <keiths@redhat.com>
3352 * linespec.c (create_sals_line_offset): Search for the default
3353 symtab's filename instead of its fullname.
3355 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3357 * NEWS: Update style defaults.
3359 2019-02-21 Alan Hayward <alan.hayward@arm.com>
3361 * main.c (captured_main_1): Disable styling in batch mode.
3363 2019-02-20 Tom Tromey <tom@tromey.com>
3365 * symtab.c (symtab_symbol_info): Fix typos.
3367 2019-02-20 Tom Tromey <tromey@adacore.com>
3369 * findcmd.c (_initialize_mem_search): Use upper case for
3370 metasyntactic variables.
3372 2019-02-20 Alan Hayward <alan.hayward@arm.com>
3374 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3375 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3377 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3379 * top.h (source_file_name): Change to std::string.
3380 * top.c (source_file_name): Likewise.
3381 (command_line_input): Adjust.
3382 * cli/cli-script.c (script_from_file): Adjust.
3384 2019-02-19 Tom Tromey <tromey@adacore.com>
3386 * ravenscar-thread.c
3387 (ravenscar_thread_target::update_thread_list): Don't call
3388 ada_build_task_list.
3389 * ada-lang.h (ada_build_task_list): Don't declare.
3390 * ada-tasks.c (struct ada_tasks_inferior_data)
3391 <task_list_valid_p>: Now bool.
3392 (read_known_tasks, ada_task_list_changed)
3393 (ada_tasks_invalidate_inferior_data): Update.
3394 (read_known_tasks_array): Return bool.
3395 (read_known_tasks_list): Likewise.
3396 (read_known_tasks): Return void.
3397 (ada_build_task_list): Now static.
3399 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3401 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3402 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3404 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3406 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3407 variant for ada_tasks_pspace_data_handle and
3408 ada_tasks_inferior_data_handle.
3409 (ada_tasks_pspace_data_cleanup): New function.
3410 (ada_tasks_inferior_data_cleanup): New function.
3412 2019-02-17 Tom Tromey <tom@tromey.com>
3414 * macrotab.h (macro_source_fullname): Return a std::string.
3415 * macrotab.c (macro_include, check_for_redefinition)
3416 (macro_undef, macro_lookup_definition, foreach_macro)
3417 (foreach_macro_in_scope): Update.
3418 (macro_source_fullname): Return a std::string.
3419 * macrocmd.c (show_pp_source_pos): Update.
3421 2019-02-17 Tom Tromey <tom@tromey.com>
3423 * macrocmd.c (show_pp_source_pos): Style the file names.
3425 2019-02-17 Tom Tromey <tom@tromey.com>
3428 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3430 2019-02-17 Tom Tromey <tom@tromey.com>
3432 * ada-lang.c (user_select_syms): Use filtered printing.
3433 * utils.c (wrap_style): New global.
3434 (desired_style): Remove.
3435 (emit_style_escape): Add stream parameter.
3436 (set_output_style, reset_terminal_style, prompt_for_continue):
3438 (flush_wrap_buffer): Only flush gdb_stdout.
3439 (wrap_here): Set wrap_style.
3440 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3441 treat escape sequences as a character. Change when wrap buffer is
3443 (fputs_styled): Do not set the output style when the default is
3445 * ui-style.h (struct ui_file_style) <is_default>: New method.
3446 * source.c (print_source_lines_base): Emit escape sequences in one
3449 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3451 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3452 integers and enumeration types.
3454 2019-02-17 Joel Brobecker <brobecker@adacore.com>
3456 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3457 instead of lookup_symbol_in_language
3458 (do_exact_match): New function.
3459 (ada_get_symbol_name_matcher): Return do_exact_match when
3460 doing a verbatim match.
3462 2019-02-15 Tom Tromey <tromey@adacore.com>
3464 * ravenscar-thread.c (ravenscar_thread_target::resume)
3465 (ravenscar_thread_target::wait): Special case wildcard requests.
3467 2019-02-15 Tom Tromey <tromey@adacore.com>
3469 * ravenscar-thread.c (base_ptid): Remove.
3470 (struct ravenscar_thread_target) <close>: New method.
3471 <m_base_ptid>: New member.
3472 <update_inferior_ptid, active_task, task_is_currently_active,
3473 runtime_initialized>: Declare methods.
3474 <ravenscar_thread_target>: Add constructor.
3475 (ravenscar_thread_target::task_is_currently_active)
3476 (ravenscar_thread_target::update_inferior_ptid)
3477 (ravenscar_runtime_initialized): Rename. Now methods.
3478 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3479 (ravenscar_thread_target::update_thread_list): Update.
3480 (ravenscar_thread_target::active_task): Now method.
3481 (ravenscar_thread_target::store_registers)
3482 (ravenscar_thread_target::prepare_to_store)
3483 (ravenscar_thread_target::prepare_to_store)
3484 (ravenscar_thread_target::mourn_inferior): Update.
3485 (ravenscar_inferior_created): Use "new" to create target.
3486 (ravenscar_thread_target::get_ada_task_ptid): Update.
3487 (_initialize_ravenscar): Don't initialize base_ptid.
3488 (ravenscar_ops): Remove global.
3490 2019-02-15 Tom Tromey <tromey@adacore.com>
3492 * target.h (push_target): Declare new overload.
3493 * target.c (push_target): New overload, taking an rvalue reference.
3494 * remote.c (remote_target::open_1): Use push_target overload.
3495 * corelow.c (core_target_open): Use push_target overload.
3497 2019-02-15 Tom Tromey <tromey@adacore.com>
3499 * ravenscar-thread.c (is_ravenscar_task)
3500 (ravenscar_task_is_currently_active): Return bool.
3501 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3502 (_initialize_ravenscar): Remove "(void)".
3503 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3506 2019-02-15 Tom Tromey <tromey@adacore.com>
3508 * ravenscar-thread.c (ravenscar_runtime_initializer)
3509 (has_ravenscar_runtime, get_running_thread_id)
3510 (ravenscar_thread_target::resume): Fix indentation.
3512 2019-02-15 Tom Tromey <tromey@adacore.com>
3514 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3515 from ravenscar_arch_ops.
3516 (sparc_ravenscar_ops::fetch_registers)
3517 (sparc_ravenscar_ops::store_registers): Now methods.
3518 (sparc_ravenscar_prepare_to_store): Remove.
3519 (sparc_ravenscar_ops): Redefine.
3520 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3521 methods and destructor. Remove members.
3522 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3523 (ravenscar_thread_target::store_registers)
3524 (ravenscar_thread_target::prepare_to_store): Update.
3525 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
3527 (struct ppc_ravenscar_powerpc_ops): Derive from
3529 (ppc_ravenscar_powerpc_ops::fetch_registers)
3530 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
3531 (ppc_ravenscar_powerpc_ops): Redefine.
3532 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
3533 (ppc_ravenscar_e500_ops::fetch_registers)
3534 (ppc_ravenscar_e500_ops::store_registers): Now methods.
3535 (ppc_ravenscar_e500_ops): Redefine.
3536 * aarch64-ravenscar-thread.c
3537 (aarch64_ravenscar_generic_prepare_to_store): Remove.
3538 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
3539 (aarch64_ravenscar_fetch_registers)
3540 (aarch64_ravenscar_store_registers): Now methods.
3541 (aarch64_ravenscar_ops): Redefine.
3543 2019-02-15 Tom Tromey <tromey@adacore.com>
3545 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
3546 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3547 (ravenscar_thread_target::stopped_by_watchpoint)
3548 (ravenscar_thread_target::stopped_data_address)
3549 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
3551 2019-02-15 Tom Tromey <tromey@adacore.com>
3553 * ravenscar-thread.c: Fix some typos.
3555 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3556 Tom Tromey <tromey@adacore.com>
3558 * ada-lang.c (ada_exception_sal): Change addr_string to a
3560 (create_ada_exception_catchpoint): Update.
3562 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3563 Tom Tromey <tromey@adacore.com>
3565 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
3566 (bp_location_ops): Remove.
3567 (base_breakpoint_allocate_location): Update.
3568 (free_bp_location): Update.
3569 * ada-lang.c (class ada_catchpoint_location)
3570 <ada_catchpoint_location>: Remove ops parameter.
3571 (ada_catchpoint_location_dtor): Remove.
3572 (ada_catchpoint_location_ops): Remove.
3573 (allocate_location_exception): Update.
3574 * breakpoint.h (struct bp_location_ops): Remove.
3575 (class bp_location) <bp_location>: Remove bp_location_ops
3577 <~bp_location>: Add destructor.
3580 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3581 Pedro Alves <palves@redhat.com>
3583 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
3586 2019-02-14 David Michael <fedora.dm0@gmail.com>
3587 Samuel Thibault <samuel.thibault@gnu.org>
3588 Thomas Schwinge <thomas@codesourcery.com>
3590 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
3591 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
3593 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
3595 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
3596 (check_empty): Use "const char *".
3598 * gnu-nat.c (gnu_nat_target::detach): Instead of
3599 'detach_inferior (pid)' call
3600 'detach_inferior (find_inferior_pid (pid))'.
3602 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
3603 'nat/fork-inferior.o'.
3604 * gnu-nat.c: #include "nat/fork-inferior.h".
3606 * gnu-nat.c (gnu_nat_target::detach): Instead of
3607 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
3608 * gnu-nat.h: #include "inf-child.h".
3609 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
3610 'i386_gnu_nat_target::fetch_registers'.
3611 (gnu_store_registers): Rename/move to
3612 'i386_gnu_nat_target::store_registers'.
3614 * config/i386/nm-i386gnu.h: Don't "#include" any files.
3615 * gnu-nat.h (mach_thread_info): New function.
3616 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
3618 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
3620 2019-02-14 Frederic Konrad <konrad@adacore.com>
3622 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
3624 2019-02-14 Joel Brobecker <brobecker@adacore.com>
3626 * windows-nat.c (windows_add_thread): Add new parameter
3627 "main_thread_p" with default value set to false. Update
3628 function documentation as well as all callers.
3629 (windows_delete_thread): Likewise.
3630 (fake_create_process): Update call to windows_add_thread.
3631 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
3632 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
3633 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
3634 call to windows_delete_thread.
3636 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
3638 * MAINTAINERS: Add Andrew Burgess as global maintainer.
3640 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3642 * symfile.c (find_separate_debug_file): Use canonical path of
3643 sysroot with child_path instead of gdb_sysroot if it is valid.
3645 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3647 * symfile.c (find_separate_debug_file): Use child_path to
3648 determine if an object file is under a sysroot.
3650 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3652 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3653 unittests/child-path-selftests.c.
3654 * common/pathstuff.c (child_path): New function.
3655 * common/pathstuff.h (child_path): New prototype.
3656 * unittests/child-path-selftests.c: New file.
3658 2019-02-12 John Baldwin <jhb@FreeBSD.org>
3660 * symfile.c (find_separate_debug_file): Look for separate debug
3661 files in debug directories under the sysroot.
3663 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3665 * symtab.h (struct minimal_symbol data_p): New const method.
3666 (struct minimal_symbol text_p): Likewise.
3667 * symtab.c (output_source_filename): Use file name style
3669 (print_symbol_info): Likewise.
3670 (print_msymbol_info): Use address style to print addresses.
3671 Use function name style to print executable text symbols.
3672 (expand_symtab_containing_pc): Use data_p.
3673 (find_pc_sect_compunit_symtab): Likewise.
3675 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3677 * breakpoint.c (describe_other_breakpoints): Use address style
3679 (say_where): Likewise.
3681 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3683 * ada-typeprint.c (print_func_type): Print function name
3684 style to print function name.
3685 * c-typeprint.c (c_print_type_1): Likewise.
3687 2019-02-11 Alan Hayward <alan.hayward@arm.com>
3689 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
3692 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3694 * c-exp.y (direct_abs_decl): Use emplace_back to record the
3697 2019-02-10 Joel Brobecker <brobecker@adacore.com>
3699 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
3700 TYPE_CODE_REF types.
3702 2019-02-08 Jim Wilson <jimw@sifive.com>
3704 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
3705 (riscv_linux_fregset): New.
3706 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
3708 2019-02-07 Tom Tromey <tom@tromey.com>
3710 * thread.c (thread_cancel_execution_command): Update.
3711 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
3713 (struct thread_fsm_ops): Remove.
3714 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
3715 (thread_fsm_should_stop, thread_fsm_return_value)
3716 (thread_fsm_set_finished, thread_fsm_finished_p)
3717 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
3719 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
3720 * infrun.c (clear_proceed_status_thread)
3721 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
3722 (print_stop_event): Update.
3723 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
3725 (step_command_fsm_ops): Remove.
3726 (new_step_command_fsm): Remove.
3728 (step_command_fsm::should_stop): Rename from
3729 step_command_fsm_should_stop.
3730 (step_command_fsm::clean_up): Rename from
3731 step_command_fsm_clean_up.
3732 (step_command_fsm::do_async_reply_reason): Rename from
3733 step_command_fsm_async_reply_reason.
3734 (struct until_next_fsm): Inherit from thread_fsm. Add
3736 (until_next_fsm_ops): Remove.
3737 (new_until_next_fsm): Remove.
3738 (until_next_fsm::should_stop): Rename from
3739 until_next_fsm_should_stop.
3740 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
3741 (until_next_fsm::do_async_reply_reason): Rename from
3742 until_next_fsm_async_reply_reason.
3743 (struct finish_command_fsm): Inherit from thread_fsm. Add
3744 constructor. Change type of breakpoint.
3745 (finish_command_fsm_ops): Remove.
3746 (new_finish_command_fsm): Remove.
3747 (finish_command_fsm::should_stop): Rename from
3748 finish_command_fsm_should_stop.
3749 (finish_command_fsm::clean_up): Rename from
3750 finish_command_fsm_clean_up.
3751 (finish_command_fsm::return_value): Rename from
3752 finish_command_fsm_return_value.
3753 (finish_command_fsm::do_async_reply_reason): Rename from
3754 finish_command_fsm_async_reply_reason.
3755 (finish_command): Update.
3756 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
3758 (call_thread_fsm_ops): Remove.
3759 (call_thread_fsm::call_thread_fsm): Rename from
3760 new_call_thread_fsm.
3761 (call_thread_fsm::should_stop): Rename from
3762 call_thread_fsm_should_stop.
3763 (call_thread_fsm::should_notify_stop): Rename from
3764 call_thread_fsm_should_notify_stop.
3765 (run_inferior_call, call_function_by_hand_dummy): Update.
3766 * cli/cli-interp.c (should_print_stop_to_console): Update.
3767 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
3768 Add constructor. Change type of location_breakpoint,
3770 (until_break_fsm_ops): Remove.
3771 (new_until_break_fsm): Remove.
3772 (until_break_fsm::should_stop): Rename from
3773 until_break_fsm_should_stop.
3774 (until_break_fsm::clean_up): Rename from
3775 until_break_fsm_clean_up.
3776 (until_break_fsm::do_async_reply_reason): Rename from
3777 until_break_fsm_async_reply_reason.
3778 (until_break_command): Update.
3779 * thread-fsm.c: Remove.
3780 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
3782 2019-02-07 Tom Tromey <tom@tromey.com>
3784 * yy-remap.h: Add include guard.
3785 * xtensa-tdep.h: Add include guard.
3786 * xcoffread.h: Rename include guard.
3787 * varobj-iter.h: Add include guard.
3788 * tui/tui.h: Rename include guard.
3789 * tui/tui-winsource.h: Rename include guard.
3790 * tui/tui-wingeneral.h: Rename include guard.
3791 * tui/tui-windata.h: Rename include guard.
3792 * tui/tui-win.h: Rename include guard.
3793 * tui/tui-stack.h: Rename include guard.
3794 * tui/tui-source.h: Rename include guard.
3795 * tui/tui-regs.h: Rename include guard.
3796 * tui/tui-out.h: Rename include guard.
3797 * tui/tui-layout.h: Rename include guard.
3798 * tui/tui-io.h: Rename include guard.
3799 * tui/tui-hooks.h: Rename include guard.
3800 * tui/tui-file.h: Rename include guard.
3801 * tui/tui-disasm.h: Rename include guard.
3802 * tui/tui-data.h: Rename include guard.
3803 * tui/tui-command.h: Rename include guard.
3804 * tic6x-tdep.h: Add include guard.
3805 * target/waitstatus.h: Rename include guard.
3806 * target/wait.h: Rename include guard.
3807 * target/target.h: Rename include guard.
3808 * target/resume.h: Rename include guard.
3809 * target-float.h: Rename include guard.
3810 * stabsread.h: Add include guard.
3811 * rs6000-tdep.h: Add include guard.
3812 * riscv-fbsd-tdep.h: Add include guard.
3813 * regformats/regdef.h: Rename include guard.
3814 * record.h: Rename include guard.
3815 * python/python.h: Rename include guard.
3816 * python/python-internal.h: Rename include guard.
3817 * python/py-stopevent.h: Rename include guard.
3818 * python/py-ref.h: Rename include guard.
3819 * python/py-record.h: Rename include guard.
3820 * python/py-record-full.h: Rename include guard.
3821 * python/py-record-btrace.h: Rename include guard.
3822 * python/py-instruction.h: Rename include guard.
3823 * python/py-events.h: Rename include guard.
3824 * python/py-event.h: Rename include guard.
3825 * procfs.h: Add include guard.
3826 * proc-utils.h: Add include guard.
3827 * p-lang.h: Add include guard.
3828 * or1k-tdep.h: Rename include guard.
3829 * observable.h: Rename include guard.
3830 * nto-tdep.h: Rename include guard.
3831 * nat/x86-linux.h: Rename include guard.
3832 * nat/x86-linux-dregs.h: Rename include guard.
3833 * nat/x86-gcc-cpuid.h: Add include guard.
3834 * nat/x86-dregs.h: Rename include guard.
3835 * nat/x86-cpuid.h: Rename include guard.
3836 * nat/ppc-linux.h: Rename include guard.
3837 * nat/mips-linux-watch.h: Rename include guard.
3838 * nat/linux-waitpid.h: Rename include guard.
3839 * nat/linux-ptrace.h: Rename include guard.
3840 * nat/linux-procfs.h: Rename include guard.
3841 * nat/linux-osdata.h: Rename include guard.
3842 * nat/linux-nat.h: Rename include guard.
3843 * nat/linux-namespaces.h: Rename include guard.
3844 * nat/linux-btrace.h: Rename include guard.
3845 * nat/glibc_thread_db.h: Rename include guard.
3846 * nat/gdb_thread_db.h: Rename include guard.
3847 * nat/gdb_ptrace.h: Rename include guard.
3848 * nat/fork-inferior.h: Rename include guard.
3849 * nat/amd64-linux-siginfo.h: Rename include guard.
3850 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
3851 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
3852 * nat/aarch64-linux.h: Rename include guard.
3853 * nat/aarch64-linux-hw-point.h: Rename include guard.
3854 * mn10300-tdep.h: Add include guard.
3855 * mips-linux-tdep.h: Add include guard.
3856 * mi/mi-parse.h: Rename include guard.
3857 * mi/mi-out.h: Rename include guard.
3858 * mi/mi-main.h: Rename include guard.
3859 * mi/mi-interp.h: Rename include guard.
3860 * mi/mi-getopt.h: Rename include guard.
3861 * mi/mi-console.h: Rename include guard.
3862 * mi/mi-common.h: Rename include guard.
3863 * mi/mi-cmds.h: Rename include guard.
3864 * mi/mi-cmd-break.h: Rename include guard.
3865 * m2-lang.h: Add include guard.
3866 * location.h: Rename include guard.
3867 * linux-record.h: Rename include guard.
3868 * linux-nat.h: Add include guard.
3869 * linux-fork.h: Add include guard.
3870 * i386-darwin-tdep.h: Rename include guard.
3871 * hppa-linux-offsets.h: Add include guard.
3872 * guile/guile.h: Rename include guard.
3873 * guile/guile-internal.h: Rename include guard.
3874 * gnu-nat.h: Rename include guard.
3875 * gdb-stabs.h: Rename include guard.
3876 * frv-tdep.h: Add include guard.
3877 * f-lang.h: Add include guard.
3878 * event-loop.h: Add include guard.
3879 * darwin-nat.h: Rename include guard.
3880 * cp-abi.h: Rename include guard.
3881 * config/sparc/nm-sol2.h: Rename include guard.
3882 * config/nm-nto.h: Rename include guard.
3883 * config/nm-linux.h: Add include guard.
3884 * config/i386/nm-i386gnu.h: Rename include guard.
3885 * config/djgpp/nl_types.h: Rename include guard.
3886 * config/djgpp/langinfo.h: Rename include guard.
3887 * compile/gcc-cp-plugin.h: Add include guard.
3888 * compile/gcc-c-plugin.h: Add include guard.
3889 * compile/compile.h: Rename include guard.
3890 * compile/compile-object-run.h: Rename include guard.
3891 * compile/compile-object-load.h: Rename include guard.
3892 * compile/compile-internal.h: Rename include guard.
3893 * compile/compile-cplus.h: Rename include guard.
3894 * compile/compile-c.h: Rename include guard.
3895 * common/xml-utils.h: Rename include guard.
3896 * common/x86-xstate.h: Rename include guard.
3897 * common/version.h: Rename include guard.
3898 * common/vec.h: Rename include guard.
3899 * common/tdesc.h: Rename include guard.
3900 * common/selftest.h: Rename include guard.
3901 * common/scoped_restore.h: Rename include guard.
3902 * common/scoped_mmap.h: Rename include guard.
3903 * common/scoped_fd.h: Rename include guard.
3904 * common/safe-iterator.h: Rename include guard.
3905 * common/run-time-clock.h: Rename include guard.
3906 * common/refcounted-object.h: Rename include guard.
3907 * common/queue.h: Rename include guard.
3908 * common/ptid.h: Rename include guard.
3909 * common/print-utils.h: Rename include guard.
3910 * common/preprocessor.h: Rename include guard.
3911 * common/pathstuff.h: Rename include guard.
3912 * common/observable.h: Rename include guard.
3913 * common/netstuff.h: Rename include guard.
3914 * common/job-control.h: Rename include guard.
3915 * common/host-defs.h: Rename include guard.
3916 * common/gdb_wait.h: Rename include guard.
3917 * common/gdb_vecs.h: Rename include guard.
3918 * common/gdb_unlinker.h: Rename include guard.
3919 * common/gdb_unique_ptr.h: Rename include guard.
3920 * common/gdb_tilde_expand.h: Rename include guard.
3921 * common/gdb_sys_time.h: Rename include guard.
3922 * common/gdb_string_view.h: Rename include guard.
3923 * common/gdb_splay_tree.h: Rename include guard.
3924 * common/gdb_setjmp.h: Rename include guard.
3925 * common/gdb_ref_ptr.h: Rename include guard.
3926 * common/gdb_optional.h: Rename include guard.
3927 * common/gdb_locale.h: Rename include guard.
3928 * common/gdb_assert.h: Rename include guard.
3929 * common/filtered-iterator.h: Rename include guard.
3930 * common/filestuff.h: Rename include guard.
3931 * common/fileio.h: Rename include guard.
3932 * common/environ.h: Rename include guard.
3933 * common/common-utils.h: Rename include guard.
3934 * common/common-types.h: Rename include guard.
3935 * common/common-regcache.h: Rename include guard.
3936 * common/common-inferior.h: Rename include guard.
3937 * common/common-gdbthread.h: Rename include guard.
3938 * common/common-exceptions.h: Rename include guard.
3939 * common/common-defs.h: Rename include guard.
3940 * common/common-debug.h: Rename include guard.
3941 * common/cleanups.h: Rename include guard.
3942 * common/buffer.h: Rename include guard.
3943 * common/btrace-common.h: Rename include guard.
3944 * common/break-common.h: Rename include guard.
3945 * cli/cli-utils.h: Rename include guard.
3946 * cli/cli-style.h: Rename include guard.
3947 * cli/cli-setshow.h: Rename include guard.
3948 * cli/cli-script.h: Rename include guard.
3949 * cli/cli-interp.h: Rename include guard.
3950 * cli/cli-decode.h: Rename include guard.
3951 * cli/cli-cmds.h: Rename include guard.
3952 * charset-list.h: Add include guard.
3953 * buildsym-legacy.h: Rename include guard.
3954 * bfin-tdep.h: Add include guard.
3955 * ax.h: Rename include guard.
3956 * arm-linux-tdep.h: Add include guard.
3957 * arm-fbsd-tdep.h: Add include guard.
3958 * arch/xtensa.h: Rename include guard.
3959 * arch/tic6x.h: Add include guard.
3960 * arch/i386.h: Add include guard.
3961 * arch/arm.h: Rename include guard.
3962 * arch/arm-linux.h: Rename include guard.
3963 * arch/arm-get-next-pcs.h: Rename include guard.
3964 * arch/amd64.h: Add include guard.
3965 * arch/aarch64-insn.h: Rename include guard.
3966 * arch-utils.h: Rename include guard.
3967 * annotate.h: Add include guard.
3968 * amd64-darwin-tdep.h: Rename include guard.
3969 * aarch64-linux-tdep.h: Add include guard.
3970 * aarch64-fbsd-tdep.h: Add include guard.
3971 * aarch32-linux-nat.h: Add include guard.
3973 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3975 * macrotab.c (macro_define_internal): New function that
3976 factorizes macro_define_object_internal and macro_define_function
3978 (macro_define_object_internal): Use macro_define_internal.
3979 (macro_define_function): Likewise.
3981 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3983 * macrocmd.c (extract_identifier): Return
3984 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
3987 2019-02-06 John Baldwin <jhb@FreeBSD.org>
3989 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
3991 2019-02-05 Tom Tromey <tom@tromey.com>
3993 * target.c (target_stack::unpush): Move assertion earlier.
3995 2019-01-30 Tom Tromey <tom@tromey.com>
3998 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
3999 (gdbpy_parse_and_eval): Likewise.
4000 * python/python-internal.h (gdbpy_allow_threads): New class.
4002 2019-01-28 John Baldwin <jhb@FreeBSD.org>
4004 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4005 (aarch64_fbsd_fpregmap): Move earlier.
4006 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4007 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4008 instead of individual calls to trad_frame_set_reg_addr.
4009 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4011 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4012 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4013 instead of individual calls to trad_frame_set_reg_addr.
4015 2019-01-28 Alan Hayward <alan.hayward@arm.com>
4017 * CONTRIBUTE: Replace contribution list with wiki link.
4019 2019-01-25 Tom Tromey <tom@tromey.com>
4021 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4023 2019-01-25 Tom Tromey <tom@tromey.com>
4025 * xtensa-linux-nat.c: Fix common/ includes.
4026 * xml-support.h: Fix common/ includes.
4027 * xml-support.c: Fix common/ includes.
4028 * x86-linux-nat.c: Fix common/ includes.
4029 * windows-nat.c: Fix common/ includes.
4030 * varobj.h: Fix common/ includes.
4031 * varobj.c: Fix common/ includes.
4032 * value.c: Fix common/ includes.
4033 * valops.c: Fix common/ includes.
4034 * utils.c: Fix common/ includes.
4035 * unittests/xml-utils-selftests.c: Fix common/ includes.
4036 * unittests/utils-selftests.c: Fix common/ includes.
4037 * unittests/unpack-selftests.c: Fix common/ includes.
4038 * unittests/tracepoint-selftests.c: Fix common/ includes.
4039 * unittests/style-selftests.c: Fix common/ includes.
4040 * unittests/string_view-selftests.c: Fix common/ includes.
4041 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4042 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4043 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4044 * unittests/rsp-low-selftests.c: Fix common/ includes.
4045 * unittests/parse-connection-spec-selftests.c: Fix common/
4047 * unittests/optional-selftests.c: Fix common/ includes.
4048 * unittests/offset-type-selftests.c: Fix common/ includes.
4049 * unittests/observable-selftests.c: Fix common/ includes.
4050 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4051 * unittests/memrange-selftests.c: Fix common/ includes.
4052 * unittests/memory-map-selftests.c: Fix common/ includes.
4053 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4054 * unittests/function-view-selftests.c: Fix common/ includes.
4055 * unittests/environ-selftests.c: Fix common/ includes.
4056 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4057 * unittests/common-utils-selftests.c: Fix common/ includes.
4058 * unittests/cli-utils-selftests.c: Fix common/ includes.
4059 * unittests/array-view-selftests.c: Fix common/ includes.
4060 * ui-file.c: Fix common/ includes.
4061 * tui/tui-io.c: Fix common/ includes.
4062 * tracepoint.h: Fix common/ includes.
4063 * tracepoint.c: Fix common/ includes.
4064 * tracefile-tfile.c: Fix common/ includes.
4065 * top.h: Fix common/ includes.
4066 * top.c: Fix common/ includes.
4067 * thread.c: Fix common/ includes.
4068 * target/waitstatus.h: Fix common/ includes.
4069 * target/waitstatus.c: Fix common/ includes.
4070 * target.h: Fix common/ includes.
4071 * target.c: Fix common/ includes.
4072 * target-memory.c: Fix common/ includes.
4073 * target-descriptions.c: Fix common/ includes.
4074 * symtab.h: Fix common/ includes.
4075 * symfile.c: Fix common/ includes.
4076 * stap-probe.c: Fix common/ includes.
4077 * spu-linux-nat.c: Fix common/ includes.
4078 * sparc-nat.c: Fix common/ includes.
4079 * source.c: Fix common/ includes.
4080 * solib.c: Fix common/ includes.
4081 * solib-target.c: Fix common/ includes.
4082 * ser-unix.c: Fix common/ includes.
4083 * ser-tcp.c: Fix common/ includes.
4084 * ser-pipe.c: Fix common/ includes.
4085 * ser-base.c: Fix common/ includes.
4086 * selftest-arch.c: Fix common/ includes.
4087 * s12z-tdep.c: Fix common/ includes.
4088 * rust-exp.y: Fix common/ includes.
4089 * rs6000-aix-tdep.c: Fix common/ includes.
4090 * riscv-tdep.c: Fix common/ includes.
4091 * remote.c: Fix common/ includes.
4092 * remote-notif.h: Fix common/ includes.
4093 * remote-fileio.h: Fix common/ includes.
4094 * remote-fileio.c: Fix common/ includes.
4095 * regcache.h: Fix common/ includes.
4096 * regcache.c: Fix common/ includes.
4097 * record-btrace.c: Fix common/ includes.
4098 * python/python.c: Fix common/ includes.
4099 * python/py-type.c: Fix common/ includes.
4100 * python/py-inferior.c: Fix common/ includes.
4101 * progspace.h: Fix common/ includes.
4102 * producer.c: Fix common/ includes.
4103 * procfs.c: Fix common/ includes.
4104 * proc-api.c: Fix common/ includes.
4105 * printcmd.c: Fix common/ includes.
4106 * ppc-linux-nat.c: Fix common/ includes.
4107 * parser-defs.h: Fix common/ includes.
4108 * osdata.c: Fix common/ includes.
4109 * obsd-nat.c: Fix common/ includes.
4110 * nat/x86-linux.c: Fix common/ includes.
4111 * nat/x86-linux-dregs.c: Fix common/ includes.
4112 * nat/x86-dregs.h: Fix common/ includes.
4113 * nat/x86-dregs.c: Fix common/ includes.
4114 * nat/ppc-linux.c: Fix common/ includes.
4115 * nat/mips-linux-watch.h: Fix common/ includes.
4116 * nat/mips-linux-watch.c: Fix common/ includes.
4117 * nat/linux-waitpid.c: Fix common/ includes.
4118 * nat/linux-ptrace.h: Fix common/ includes.
4119 * nat/linux-ptrace.c: Fix common/ includes.
4120 * nat/linux-procfs.c: Fix common/ includes.
4121 * nat/linux-personality.c: Fix common/ includes.
4122 * nat/linux-osdata.c: Fix common/ includes.
4123 * nat/linux-namespaces.c: Fix common/ includes.
4124 * nat/linux-btrace.h: Fix common/ includes.
4125 * nat/linux-btrace.c: Fix common/ includes.
4126 * nat/fork-inferior.c: Fix common/ includes.
4127 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4128 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4129 * nat/aarch64-linux.c: Fix common/ includes.
4130 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4131 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4132 * namespace.h: Fix common/ includes.
4133 * mips-linux-tdep.c: Fix common/ includes.
4134 * minsyms.c: Fix common/ includes.
4135 * mi/mi-parse.h: Fix common/ includes.
4136 * mi/mi-main.c: Fix common/ includes.
4137 * mi/mi-cmd-env.c: Fix common/ includes.
4138 * memrange.h: Fix common/ includes.
4139 * memattr.c: Fix common/ includes.
4140 * maint.h: Fix common/ includes.
4141 * maint.c: Fix common/ includes.
4142 * main.c: Fix common/ includes.
4143 * machoread.c: Fix common/ includes.
4144 * location.c: Fix common/ includes.
4145 * linux-thread-db.c: Fix common/ includes.
4146 * linux-nat.c: Fix common/ includes.
4147 * linux-fork.c: Fix common/ includes.
4148 * inline-frame.c: Fix common/ includes.
4149 * infrun.c: Fix common/ includes.
4150 * inflow.c: Fix common/ includes.
4151 * inferior.h: Fix common/ includes.
4152 * inferior.c: Fix common/ includes.
4153 * infcmd.c: Fix common/ includes.
4154 * inf-ptrace.c: Fix common/ includes.
4155 * inf-child.c: Fix common/ includes.
4156 * ia64-linux-nat.c: Fix common/ includes.
4157 * i387-tdep.c: Fix common/ includes.
4158 * i386-tdep.c: Fix common/ includes.
4159 * i386-linux-tdep.c: Fix common/ includes.
4160 * i386-linux-nat.c: Fix common/ includes.
4161 * i386-go32-tdep.c: Fix common/ includes.
4162 * i386-fbsd-tdep.c: Fix common/ includes.
4163 * i386-fbsd-nat.c: Fix common/ includes.
4164 * guile/scm-type.c: Fix common/ includes.
4165 * guile/guile.c: Fix common/ includes.
4166 * go32-nat.c: Fix common/ includes.
4167 * gnu-nat.c: Fix common/ includes.
4168 * gdbthread.h: Fix common/ includes.
4169 * gdbarch-selftests.c: Fix common/ includes.
4170 * gdb_usleep.c: Fix common/ includes.
4171 * gdb_select.h: Fix common/ includes.
4172 * gdb_bfd.c: Fix common/ includes.
4173 * gcore.c: Fix common/ includes.
4174 * fork-child.c: Fix common/ includes.
4175 * findvar.c: Fix common/ includes.
4176 * fbsd-nat.c: Fix common/ includes.
4177 * event-top.c: Fix common/ includes.
4178 * event-loop.c: Fix common/ includes.
4179 * dwarf2read.c: Fix common/ includes.
4180 * dwarf2loc.c: Fix common/ includes.
4181 * dwarf2-frame.c: Fix common/ includes.
4182 * dwarf-index-cache.c: Fix common/ includes.
4183 * dtrace-probe.c: Fix common/ includes.
4184 * disasm-selftests.c: Fix common/ includes.
4185 * defs.h: Fix common/ includes.
4186 * csky-tdep.c: Fix common/ includes.
4187 * cp-valprint.c: Fix common/ includes.
4188 * cp-support.h: Fix common/ includes.
4189 * cp-support.c: Fix common/ includes.
4190 * corelow.c: Fix common/ includes.
4191 * completer.h: Fix common/ includes.
4192 * completer.c: Fix common/ includes.
4193 * compile/compile.c: Fix common/ includes.
4194 * compile/compile-loc2c.c: Fix common/ includes.
4195 * compile/compile-cplus-types.c: Fix common/ includes.
4196 * compile/compile-cplus-symbols.c: Fix common/ includes.
4197 * command.h: Fix common/ includes.
4198 * cli/cli-dump.c: Fix common/ includes.
4199 * cli/cli-cmds.c: Fix common/ includes.
4200 * charset.c: Fix common/ includes.
4201 * build-id.c: Fix common/ includes.
4202 * btrace.h: Fix common/ includes.
4203 * btrace.c: Fix common/ includes.
4204 * breakpoint.h: Fix common/ includes.
4205 * breakpoint.c: Fix common/ includes.
4207 (enum agent_op): Fix common/ includes.
4208 * ax-general.c (struct aop_map): Fix common/ includes.
4209 * ax-gdb.c: Fix common/ includes.
4210 * auxv.c: Fix common/ includes.
4211 * auto-load.c: Fix common/ includes.
4212 * arm-tdep.c: Fix common/ includes.
4213 * arch/riscv.c: Fix common/ includes.
4214 * arch/ppc-linux-common.c: Fix common/ includes.
4215 * arch/i386.c: Fix common/ includes.
4216 * arch/arm.c: Fix common/ includes.
4217 * arch/arm-linux.c: Fix common/ includes.
4218 * arch/arm-get-next-pcs.c: Fix common/ includes.
4219 * arch/amd64.c: Fix common/ includes.
4220 * arch/aarch64.c: Fix common/ includes.
4221 * arch/aarch64-insn.c: Fix common/ includes.
4222 * arch-utils.c: Fix common/ includes.
4223 * amd64-windows-tdep.c: Fix common/ includes.
4224 * amd64-tdep.c: Fix common/ includes.
4225 * amd64-sol2-tdep.c: Fix common/ includes.
4226 * amd64-obsd-tdep.c: Fix common/ includes.
4227 * amd64-nbsd-tdep.c: Fix common/ includes.
4228 * amd64-linux-tdep.c: Fix common/ includes.
4229 * amd64-linux-nat.c: Fix common/ includes.
4230 * amd64-fbsd-tdep.c: Fix common/ includes.
4231 * amd64-fbsd-nat.c: Fix common/ includes.
4232 * amd64-dicos-tdep.c: Fix common/ includes.
4233 * amd64-darwin-tdep.c: Fix common/ includes.
4234 * agent.c: Fix common/ includes.
4235 * ada-lang.h: Fix common/ includes.
4236 * ada-lang.c: Fix common/ includes.
4237 * aarch64-tdep.c: Fix common/ includes.
4239 2019-01-25 Tom Tromey <tom@tromey.com>
4241 * common/create-version.sh: Use common/version.h.
4243 2019-01-24 Pedro Alves <palves@redhat.com>
4245 * infrun.c (signal_stop, signal_print, signal_program)
4246 (signal_catch, signal_pass): Now arrays instead of pointers.
4247 (update_signals_program_target, do_target_resume)
4248 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4249 * linux-nat.c (linux_nat_target::pass_signals)
4250 (linux_nat_target::create_inferior, linux_nat_target::attach):
4252 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4253 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4254 * procfs.c (procfs_target::pass_signals): Adjust.
4255 * record-full.c (record_full_target::resume): Adjust.
4256 * remote.c (remote_target::pass_signals)
4257 (remote_target::program_signals): Adjust.
4258 * target-debug.h (target_debug_print_signals): Now takes a
4259 gdb::array_view as parameter. Adjust.
4260 * target.h (target_ops) <pass_signals, program_signals>: Replace
4261 pointer and length parameters with gdb::array_view.
4262 (target_pass_signals, target_program_signals): Likewise.
4263 * target-delegates.c: Regenerate.
4265 2019-01-24 Pedro Alves <palves@redhat.com>
4267 * common/forward-scope-exit.h
4268 (forward_scope_exit::forward_scope_exit): Pass arguments to
4269 m_bind_function directly, instead of creating a std::bind and
4272 2019-01-24 Alan Hayward <alan.hayward@arm.com>
4274 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4276 (pass_in_v_vfp_candidate): Likewise.
4278 2019-01-23 Tom Tromey <tom@tromey.com>
4279 Pedro Alves <palves@redhat.com>
4281 * regcache.c (class regcache_invalidator): Remove.
4282 (regcache::raw_write): Use make_scope_exit.
4284 2019-01-23 Tom Tromey <tom@tromey.com>
4286 * ui-out.h (class ui_out_emit_type): Update comment.
4288 2019-01-23 Tom Tromey <tom@tromey.com>
4290 * infrun.c (fetch_inferior_event): Update comment.
4292 2019-01-23 Tom Tromey <tom@tromey.com>
4293 Pedro Alves <palves@redhat.com>
4295 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4297 (fetch_inferior_event): Use SCOPE_EXIT.
4300 2019-01-23 Tom Tromey <tom@tromey.com>
4301 Pedro Alves <palves@redhat.com>
4303 * infrun.c (disable_thread_events): Delete.
4304 (stop_all_threads): Use SCOPE_EXIT.
4306 2019-01-23 Tom Tromey <tom@tromey.com>
4307 Pedro Alves <palves@redhat.com>
4309 * symfile.c: Include forward-scope-exit.h.
4310 (clear_symtab_users_cleanup): Replace forward declaration with
4311 a FORWARD_SCOPE_EXIT.
4312 (syms_from_objfile_1): Use the forward_scope_exit and
4313 gdb::optional instead of cleanup_function.
4314 (reread_symbols): Use the forward_scope_exit instead of
4316 (clear_symtab_users_cleanup): Remove function.
4318 2019-01-23 Tom Tromey <tom@tromey.com>
4319 Pedro Alves <palves@redhat.com>
4321 * linux-nat.c: Include scope-exit.h.
4322 (cleanup_target_stop): Remove.
4323 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4326 2019-01-23 Tom Tromey <tom@tromey.com>
4327 Pedro Alves <palves@redhat.com>
4329 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4330 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4332 2019-01-23 Tom Tromey <tom@tromey.com>
4333 Andrew Burgess <andrew.burgess@embecosm.com>
4334 Pedro Alves <palves@redhat.com>
4336 * infrun.c (fetch_inferior_event): Use scope_exit.
4337 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4338 * top.c (execute_command): Use scope_exit.
4339 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4340 * utils.c (do_bpstat_clear_actions_cleanup)
4341 (make_bpstat_clear_actions_cleanup): Remove.
4343 2019-01-23 Tom Tromey <tom@tromey.com>
4344 Pedro Alves <palves@redhat.com>
4346 * infrun.c: Include "common/scope-exit.h"
4347 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4348 (wait_for_inferior): Use SCOPE_EXIT.
4349 (fetch_inferior_event): Use scope_exit.
4351 2019-01-23 Tom Tromey <tom@tromey.com>
4352 Pedro Alves <palves@redhat.com>
4354 * breakpoint.c (create_breakpoint): Remove cleanup.
4356 2019-01-23 Tom Tromey <tom@tromey.com>
4357 Andrew Burgess <andrew.burgess@embecosm.com>
4358 Pedro Alves <palves@redhat.com>
4360 2019-01-23 Pedro Alves <palves@redhat.com>
4362 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4364 2019-01-23 Pedro Alves <palves@redhat.com>
4365 Andrew Burgess <andrew.burgess@embecosm.com>
4367 * gdbthread.h: Include "common/forward-scope-exit.h".
4368 (scoped_finish_thread_state): Redefine custom class in terms of
4371 2019-01-23 Pedro Alves <palves@redhat.com>
4372 Andrew Burgess <andrew.burgess@embecosm.com>
4374 * common/forward-scope-exit.h: New file.
4376 2019-01-23 Pedro Alves <palves@redhat.com>
4377 Andrew Burgess <andrew.burgess@embecosm.com>
4378 Tom Tromey <tom@tromey.com>
4380 * common/scope-exit.h: New file.
4382 2019-01-23 Pedro Alves <palves@redhat.com>
4384 * common/preprocessor.h (ESC): Rename to ...
4385 (ESC_PARENS): ... this.
4386 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4387 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4389 2019-01-23 Tom Tromey <tom@tromey.com>
4391 * language.h (class scoped_switch_to_sym_language_if_auto):
4392 Initialize m_lang in both cases.
4394 2019-01-23 Alan Hayward <alan.hayward@arm.com>
4396 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4399 2019-01-22 Tom Tromey <tom@tromey.com>
4401 * corelow.c: Do not include sys/file.h.
4403 2019-01-22 Tom Tromey <tom@tromey.com>
4405 * tui/tui-wingeneral.h: Include gdb_curses.h.
4407 2019-01-22 Tom Tromey <tom@tromey.com>
4409 * source-cache.h (class source_cache) <get_source_lines,
4410 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4412 2019-01-22 Tom Tromey <tom@tromey.com>
4414 * remote-fileio.h (struct remote_target): Declare.
4416 2019-01-22 Tom Tromey <tom@tromey.com>
4418 * python/py-arch.c: Do not include py-ref.h.
4419 * python/py-bpevent.c: Do not include py-ref.h.
4420 * python/py-cmd.c: Do not include py-ref.h.
4421 * python/py-continueevent.c: Do not include py-ref.h.
4422 * python/py-event.h: Do not include py-ref.h.
4423 * python/py-evtregistry.c: Do not include py-ref.h.
4424 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4425 * python/py-frame.c: Do not include py-ref.h.
4426 * python/py-framefilter.c: Do not include py-ref.h.
4427 * python/py-function.c: Do not include py-ref.h.
4428 * python/py-infevents.c: Do not include py-ref.h.
4429 * python/py-linetable.c: Do not include py-ref.h.
4430 * python/py-objfile.c: Do not include py-ref.h.
4431 * python/py-param.c: Do not include py-ref.h.
4432 * python/py-prettyprint.c: Do not include py-ref.h.
4433 * python/py-progspace.c: Do not include py-ref.h.
4434 * python/py-symbol.c: Do not include py-ref.h.
4435 * python/py-symtab.c: Do not include py-ref.h.
4436 * python/py-type.c: Do not include py-ref.h.
4437 * python/py-unwind.c: Do not include py-ref.h.
4438 * python/py-utils.c: Do not include py-ref.h.
4439 * python/py-value.c: Do not include py-ref.h.
4440 * python/py-varobj.c: Do not include py-ref.h.
4441 * python/py-xmethods.c: Do not include py-ref.h.
4442 * python/python.c: Do not include py-ref.h.
4443 * varobj.c: Do not include py-ref.h.
4445 2019-01-22 Tom Tromey <tom@tromey.com>
4447 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4450 2019-01-22 Tom Tromey <tom@tromey.com>
4452 * compile/compile-cplus-types.c: Remove a comment by #include.
4454 2019-01-22 Tom Tromey <tom@tromey.com>
4456 * compile/gcc-c-plugin.h: Include compile-internal.h.
4458 2019-01-22 Tom Tromey <tom@tromey.com>
4460 * stabsread.c (EXTERN): Do not define.
4461 (symnum, next_symbol_text_func, processing_gcc_compilation)
4462 (within_function, global_sym_chain, global_stabs)
4463 (previous_stab_code, this_object_header_files)
4464 (n_this_object_header_files)
4465 (n_allocated_this_object_header_files): Define.
4466 * stabsread.h (EXTERN): Never define. Use "extern".
4468 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4470 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4473 2019-01-21 Tom Tromey <tom@tromey.com>
4475 * ui-out.c: Fix includes.
4476 * tui/tui-source.c: Fix includes.
4477 * target.c: Fix includes.
4478 * remote.c: Fix includes.
4479 * regcache.c: Fix includes.
4480 * python/py-block.c: Fix includes.
4481 * printcmd.c: Fix includes.
4482 * or1k-tdep.c: Fix includes.
4483 * mi/mi-main.c: Fix includes.
4484 * m32r-tdep.c: Fix includes.
4485 * csky-tdep.c: Fix includes.
4486 * compile/compile-cplus-types.c: Fix includes.
4487 * cli/cli-interp.c: Fix includes.
4489 2019-01-21 Alan Hayward <alan.hayward@arm.com>
4491 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4494 2019-01-16 Tom Tromey <tom@tromey.com>
4496 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4498 (struct objfile) <msymbols_range>: Move from top level.
4499 <msymbols>: New method.
4500 (class objfile_msymbols): Remove.
4501 * symtab.c (default_collect_symbol_completion_matches_break_on):
4503 * symmisc.c (dump_msymbols): Update.
4504 * stabsread.c (scan_file_globals): Update.
4505 * objc-lang.c (info_selectors_command, info_classes_command)
4506 (find_methods): Update.
4507 * minsyms.c (find_solib_trampoline_target): Update.
4508 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4509 * coffread.c (coff_symfile_read): Update.
4510 * ada-lang.c (ada_lookup_simple_minsym)
4511 (ada_collect_symbol_completion_matches): Update.
4513 2019-01-16 Tom Tromey <tom@tromey.com>
4515 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4516 type. Remove no-argument constructor.
4517 <iterator::operator++>: Simplify.
4519 <end>: Use minimal_symbol_count.
4521 2019-01-16 Tom Tromey <tom@tromey.com>
4523 * objfiles.h (struct objfile) <psymtabs>: New method.
4524 (class objfile_psymtabs): Remove.
4525 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
4527 <range>: New method.
4528 (require_partial_symbols): Change return type.
4529 * psymtab.c (require_partial_symbols)
4530 (psym_expand_symtabs_matching): Update.
4531 * mdebugread.c (parse_partial_symbols): Update.
4532 * dbxread.c (dbx_end_psymtab): Update.
4534 2019-01-15 Tom Tromey <tom@tromey.com>
4536 * symtab.c (lookup_objfile_from_block)
4537 (lookup_symbol_in_objfile_symtabs)
4538 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
4539 (find_line_symtab, info_sources_command)
4540 (default_collect_symbol_completion_matches_break_on)
4541 (make_source_files_completion_list): Update.
4542 * symmisc.c (print_objfile_statistics, dump_objfile)
4543 (maintenance_print_symbols, maintenance_info_symtabs)
4544 (maintenance_check_symtabs, maintenance_info_line_tables):
4546 * source.c (select_source_symtab)
4547 (forget_cached_source_info_for_objfile): Update.
4548 * objfiles.h (class objfile_compunits): Remove.
4549 (struct objfile) <compunits_range>: New typedef.
4550 (compunits): New method.
4551 * objfiles.c (objfile_relocate1): Update.
4552 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4553 * maint.c (count_symtabs_and_blocks): Update.
4554 * linespec.c (iterate_over_all_matching_symtabs): Update.
4555 * cp-support.c (add_symbol_overload_list_qualified): Update.
4556 * coffread.c (coff_symtab_read): Update.
4557 * ada-lang.c (add_nonlocal_symbols)
4558 (ada_collect_symbol_completion_matches)
4559 (ada_add_global_exceptions): Update.
4561 2019-01-15 Tom Tromey <tom@tromey.com>
4563 * progspace.h (program_space) <objfiles_safe_range>: New
4565 <objfiles_safe>: New method.
4566 * objfiles.h (class all_objfiles_safe): Remove.
4567 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
4568 * jit.c (jit_inferior_exit_hook): Update.
4570 2019-01-17 Tom Tromey <tom@tromey.com>
4572 * progspace.h (program_space) <objfiles_range>: New typedef.
4573 <objfiles>: New method.
4574 <objfiles_head>: Rename from objfiles.
4575 (object_files): Update.
4576 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
4577 * guile/scm-pretty-print.c
4578 (ppscm_find_pretty_printer_from_objfiles): Update.
4579 * guile/scm-objfile.c (gdbscm_objfiles): Update.
4580 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
4582 * python/py-progspace.c (pspy_get_objfiles): Update.
4583 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
4585 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
4586 (objfpy_lookup_objfile_by_build_id): Update.
4587 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
4588 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
4590 * symtab.c (iterate_over_symtabs, matching_obj_sections)
4591 (expand_symtab_containing_pc, lookup_objfile_from_block)
4592 (lookup_static_symbol, basic_lookup_transparent_type)
4593 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4594 (find_line_symtab, info_sources_command)
4595 (default_collect_symbol_completion_matches_break_on)
4596 (make_source_files_completion_list, find_main_name): Update.
4597 * symmisc.c (print_symbol_bcache_statistics)
4598 (print_objfile_statistics, maintenance_print_symbols)
4599 (maintenance_print_msymbols, maintenance_print_objfiles)
4600 (maintenance_info_symtabs, maintenance_check_symtabs)
4601 (maintenance_expand_symtabs, maintenance_info_line_tables):
4603 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
4604 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
4605 (map_overlay_command, unmap_overlay_command)
4606 (simple_overlay_update, expand_symtabs_matching)
4607 (map_symbol_filenames): Update.
4608 * symfile-debug.c (set_debug_symfile): Update.
4609 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
4611 * source.c (select_source_symtab, forget_cached_source_info):
4613 * solib.c (solib_read_symbols): Update.
4614 * solib-spu.c (append_ocl_sos): Update.
4615 * psymtab.c (maintenance_print_psymbols)
4616 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
4617 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
4618 * printcmd.c (info_symbol_command): Update.
4619 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
4621 * objfiles.h (class all_objfiles): Remove.
4622 * objfiles.c (have_partial_symbols, have_full_symbols)
4623 (have_minimal_symbols, qsort_cmp, update_section_map)
4624 (shared_objfile_contains_address_p)
4625 (default_iterate_over_objfiles_in_search_order): Update.
4626 * objc-lang.c (info_selectors_command, info_classes_command)
4627 (find_methods): Update.
4628 * minsyms.c (find_solib_trampoline_target): Update.
4629 * maint.c (maintenance_info_sections)
4630 (maintenance_translate_address, count_symtabs_and_blocks):
4632 * main.c (captured_main_1): Update.
4633 * linux-thread-db.c (try_thread_db_load_from_pdir)
4634 (has_libpthread): Update.
4635 * linespec.c (iterate_over_all_matching_symtabs)
4636 (search_minsyms_for_name): Update.
4637 * jit.c (jit_find_objf_with_entry_addr): Update.
4638 * hppa-tdep.c (find_unwind_entry)
4639 (hppa_lookup_stub_minimal_symbol): Update.
4640 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
4642 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
4643 (elf_gnu_ifunc_resolve_by_got): Update.
4644 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
4645 * dwarf-index-write.c (save_gdb_index_command): Update.
4646 * cp-support.c (add_symbol_overload_list_qualified): Update.
4647 * breakpoint.c (create_overlay_event_breakpoint)
4648 (create_longjmp_master_breakpoint)
4649 (create_std_terminate_master_breakpoint)
4650 (create_exception_master_breakpoint): Update.
4651 * blockframe.c (find_pc_partial_function): Update.
4652 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
4653 (ada_collect_symbol_completion_matches)
4654 (ada_add_global_exceptions): Update.
4656 2019-01-17 Tom Tromey <tom@tromey.com>
4658 * solib-target.c (lm_info_target_p): Remove typedef. Don't
4660 (solib_target_parse_libraries): Change return type.
4661 (library_list_start_segment, library_list_start_section)
4662 (library_list_end_library, library_list_start_library); Update.
4663 (solib_target_free_library_list): Remove.
4664 (solib_target_parse_libraries): Remove cleanup. Change return
4666 (solib_target_current_sos): Update.
4668 2019-01-17 Tom Tromey <tromey@bapiya>
4670 * valprint.c: Replace "the the" with "the".
4671 * symtab.c: Replace "the the" with "the".
4672 * solib.c: Replace "the the" with "the".
4673 * solib-dsbt.c: Replace "the the" with "the".
4674 * linespec.c: Replace "the the" with "the".
4675 * dwarf2loc.h: Replace "the the" with "the".
4676 * amd64-windows-tdep.c: Replace "the the" with "the".
4677 * aarch64-tdep.c: Replace "the the" with "the".
4679 2019-01-16 Keith Seitz <keiths@redhat.com>
4682 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
4683 <builder>: Rename to ..
4684 <m_builder>: ... this and make private.
4685 (dwarf2_cu::get_builder): New method. Change all users of
4686 `builder' to use this method.
4687 (dwarf2_start_symtab): Move to ...
4688 (dwarf2_cu::start_symtab): ... here. Update all callers
4689 (setup_type_unit_groups): Move to ...
4690 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
4692 (dwarf2_cu::reset_builder): New method.
4693 (process_full_compunit, process_full_type_unit): Use
4694 dwarf2_cu::reset_builder.
4695 (follow_die_offset): Record the ancestor CU if it is different
4696 from the followed DIE's CU.
4697 (follow_die_sig_1): Likewise.
4699 2019-01-15 Tom Tromey <tom@tromey.com>
4701 * remote.c (class remote_state) <buf>: Now a char_vector.
4703 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
4705 (remote_target::getpkt_or_notif_sane_1)
4706 (remote_target::getpkt_sane)
4707 (remote_target::getpkt_or_notif_sane): Likewise.
4708 (class remote_target) <putpkt>: New overload.
4709 (remote_target::read_frame): Change type of "buf_p". Remove
4711 (packet_ok): New overload.
4712 (packet_check_result): New overload.
4715 2019-01-14 Tom Tromey <tom@tromey.com>
4717 * remote-notif.c (handle_notification, remote_notif_ack)
4718 (remote_notif_parse): Make "buf" const.
4719 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
4721 (remote_notif_parse, remote_notif_ack, handle_notification):
4723 * remote.c (remote_notif_stop_parse): Make "buf" const.
4724 (remote_target::remote_parse_stop_reply): Make "buf" const.
4725 (remote_notif_stop_ack): Make "buf" const.
4727 2019-01-14 Tom Tromey <tom@tromey.com>
4729 * remote.c (remote_console_output): Make parameter const.
4731 2019-01-14 Tom Tromey <tom@tromey.com>
4733 * target-debug.h (target_debug_print_signals): Constify.
4734 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
4735 * procfs.c (procfs_target::pass_signals): Update.
4736 * linux-nat.c (linux_nat_target::pass_signals): Update.
4737 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
4738 * target-delegates.c: Rebuild.
4739 * remote.c (remote_target::program_signals): Update.
4740 (remote_target::pass_signals): Update.
4741 * target.c (target_pass_signals): Constify argument.
4742 (target_program_signals): Likewise.
4743 * target.h (struct target_ops) <pass_signals, program_signals>:
4745 (target_pass_signals, target_program_signals): Constify argument.
4747 2019-01-14 Tom Tromey <tom@tromey.com>
4750 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
4752 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4754 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
4756 * rs6000-tdep.c: Include reggroups.h.
4757 (IS_V_ALIAS_PSEUDOREG): Define.
4758 (rs6000_register_name): Return names for the "vX" aliases.
4759 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
4760 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
4761 aliases. Call default_register_reggroup_p for all other
4763 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
4765 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
4766 Handle "vX" aliases.
4767 (v_alias_pseudo_register_collect): New function.
4768 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
4769 (rs6000_gdbarch_init): Initialize "vX" aliases as
4770 pseudo-registers. Restore registration of
4771 rs6000_pseudo_register_reggroup_p with
4772 set_tdesc_pseudo_register_reggroup_p.
4774 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
4776 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
4777 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
4778 set_gdbarch_num_pseudo_regs.
4780 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4782 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
4783 Remove arg prefixname, add do_set and do_show.
4784 Add member functions set_list and show_list.
4785 * cli/cli-style.c (class cli_style_option): Update accordingly.
4786 (style_set_list): Move to file scope.
4787 (style_show_list): Likewise.
4788 (set_style): Call help_list.
4789 (show_style): Call cmd_show_list.
4790 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
4791 Update to use the new macro.
4793 2019-10-12 Joel Brobecker <brobecker@adacore.com>
4795 * ada-lang.c (_initialize_ada_language): Expand the help text
4796 for the "catch exception" command.
4798 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4800 * symtab.c (matching_obj_sections): Initialize obj,
4801 declare it closer to its usage.
4803 2019-01-10 Tom Tromey <tom@tromey.com>
4805 * thread-iter.h (inf_threads_iterator): Use next_iterator.
4806 (basic_inf_threads_range): Remove.
4807 (inf_threads_range, inf_non_exited_threads_range)
4808 (safe_inf_threads_range): Use next_adapter.
4810 2019-01-10 Keith Seitz <keiths@redhat.com>
4814 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
4815 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
4817 2019-01-10 Keith Seitz <keiths@redhat.com>
4821 * dictionary.c (pending_to_vector): Remove.
4822 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4823 Remove _1 suffix, replacing functions of the same name. Update
4825 (dict_create_hashed, dict_create_hashed_expandable)
4826 (dict_create_linear, dict_create_linear_expandable, dict_free)
4827 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
4828 Make functions static.
4830 2019-01-10 Keith Seitz <keiths@redhat.com>
4834 * dictionary.h (struct dictionary): Replace declaration with
4836 (dict_create_hashed, dict_create_hashed_expandable)
4837 (dict_create_linear, dict_create_linear_expandable)
4838 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
4839 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
4840 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
4841 taking multidictionary argument.
4842 [ALL_DICT_SYMBOLS]: Update for multidictionary.
4843 * block.h (struct block) <dict>: Change to multidictionary
4844 and rename `multidict'.
4845 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
4846 symmisc.c: Update all dictionary references to multidictionary.
4848 2019-01-10 Keith Seitz <keiths@redhat.com>
4852 * dictionary.c: Include unordered_map.
4853 (pending_to_vector): New function.
4854 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
4855 Rewrite the non-"_1" functions to take vector instead
4857 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
4858 "new" _1 versions of the same name.
4859 (multidictionary): Define.
4860 (std::hash<enum language): New definition.
4861 (collate_pending_symbols_by_language, mdict_create_hashed)
4862 (mdict_create_hashed_expandable, mdict_create_linear)
4863 (mdict_create_linear_expandable, mdict_free)
4864 (find_language_dictionary, create_new_language_dictionary)
4865 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
4866 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
4867 (mdict_size, mdict_empty): New functions.
4868 * dictionary.h (mdict_iterator): Define.
4870 2019-01-10 Pedro Alves <palves@redhat.com>
4872 * breakpoint.c (read_uploaded_action)
4873 (create_tracepoint_from_upload): Adjust to use
4874 gdb::unique_xmalloc_ptr.
4875 * ctf.c (ctf_write_uploaded_tp):
4876 (SET_ARRAY_FIELD): Use emplace_back.
4877 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
4878 * tracefile-tfile.c (tfile_write_uploaded_tp):
4879 * tracepoint.c (parse_tracepoint_definition): Adjust to use
4880 gdb::unique_xmalloc_ptr.
4881 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
4882 at_string, cond_string, cmd_strings>: Replace char pointers
4883 with gdb::unique_xmalloc_ptr.
4885 2019-01-10 Pedro Alves <palves@redhat.com>
4887 * solib-target.c (library_list_start_library): Don't xstrdup name.
4889 2019-01-10 Pedro Alves <palves@redhat.com>
4891 * mdebugread.c (parse_partial_symbols): Use
4892 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
4894 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
4896 * linux-fork.c (scoped_switch_fork_info)
4897 <~scoped_switch_fork_info>: Fix incorrect variable name.
4899 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
4901 * linux-fork.c (scoped_switch_fork_info)
4902 <scoped_switch_fork_info>: Make explicit.
4903 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
4905 2019-01-10 Tom Tromey <tom@tromey.com>
4907 * objfiles.h (objfile::reset_psymtabs): Update.
4908 * objfiles.c (objfile::objfile): Update.
4909 * psymtab.h (psymtab_storage::obstack): Update.
4910 (psymtab_storage::m_obstack): Use gdb::optional.
4911 (class psymtab_storage): Update comment. Remove objfile
4913 * psymtab.c (psymtab_storage::psymtab_storage): Update.
4915 2019-01-10 Tom Tromey <tom@tromey.com>
4917 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
4918 <free_psymtabs>: Now private.
4919 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
4920 (allocate_psymtab): Use new method.
4922 2019-01-10 Tom Tromey <tom@tromey.com>
4924 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
4925 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
4926 * mdebugread.c (parse_partial_symbols): Use
4927 allocate_dependencies.
4928 * dwarf2read.c (dwarf2_create_include_psymtab): Use
4929 allocate_dependencies.
4930 (process_psymtab_comp_unit_reader)
4931 (build_type_psymtab_dependencies): Likewise.
4932 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
4934 2019-01-10 Tom Tromey <tom@tromey.com>
4936 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
4937 PSYMBOL_SET_LANGUAGE.
4938 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
4940 2019-01-10 Tom Tromey <tom@tromey.com>
4942 * psymtab.h (psymtab_storage::obstack): New method.
4943 <m_obstack>: Rename from obstack; now private.
4944 * psymtab.c (psymtab_storage): Update.
4945 * dwarf2read.c (create_addrmap_from_index)
4946 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
4949 2019-01-10 Tom Tromey <tom@tromey.com>
4951 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
4952 * objfiles.h (objfile::reset_psymtabs): New method.
4954 2019-01-10 Tom Tromey <tom@tromey.com>
4956 * symmisc.c (print_symbol_bcache_statistics): Update.
4957 (print_objfile_statistics): Update.
4958 * symfile.c (reread_symbols): Update.
4959 * psymtab.h (class psymtab_storage): New.
4960 * psymtab.c (psymtab_storage): New constructor.
4961 (~psymtab_storage): New destructor.
4962 (require_partial_symbols): Update.
4963 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
4964 (find_pc_sect_psymtab, find_pc_sect_psymbol)
4965 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
4966 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
4967 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
4968 (start_psymtab_common, end_psymtab_common)
4969 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
4970 (allocate_psymtab): Update.
4971 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
4973 (dump_psymtab_addrmap, maintenance_print_psymbols)
4974 (maintenance_check_psymtabs): Update.
4975 (class objfile_psymtabs): Move to objfiles.h.
4976 * psympriv.h (discard_psymtab): Now inline.
4977 (psymtab_discarder::psymtab_discarder): Update.
4978 (psymtab_discarder::~psymtab_discarder): Update.
4979 (ALL_OBJFILE_PSYMTABS): Rewrite.
4980 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
4981 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
4983 <partial_symtabs>: New field.
4984 (class objfile_psymtabs): Move from psymtab.h. Update.
4985 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
4987 (objfile::~objfile): Don't destroy psymbol_cache.
4988 * mdebugread.c (parse_partial_symbols): Update.
4989 * dwarf2read.c (create_addrmap_from_index)
4990 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4991 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
4992 (add_partial_subprogram, dwarf2_ranges_read): Update.
4993 * dwarf-index-write.c (write_address_map)
4994 (write_one_signatured_type, recursively_write_psymbols)
4995 (class debug_names, class debug_names, write_psymtabs_to_index):
4998 2019-01-10 Tom Tromey <tom@tromey.com>
5000 * symtab.h (SYMBOL_SET_NAMES): Update.
5001 (symbol_set_names): Update.
5002 (MSYMBOL_SET_NAMES): Update.
5003 * symtab.c (symbol_set_names): Change argument to be an
5004 objfile_per_bfd_storage.
5005 * psymtab.c (add_psymbol_to_bcache): Update.
5006 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5008 2019-01-10 Tom Tromey <tom@tromey.com>
5010 * symtab.c (create_demangled_names_hash): Change argument to be an
5011 objfile_per_bfd_storage.
5012 (symbol_set_names): Update.
5014 2019-01-10 Tom Tromey <tom@tromey.com>
5016 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5018 * psymtab.c (init_psymbol_list): Do nothing if already called.
5019 * psympriv.h (init_psymbol_list): Add comment.
5020 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5022 * dbxread.c (dbx_symfile_read): Unconditionally call
5025 2019-01-10 Tom Tromey <tom@tromey.com>
5027 * xcoffread.c (scan_xcoff_symtab): Update.
5028 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5030 * mdebugread.c (parse_partial_symbols)
5031 (handle_psymbol_enumerators): Update.
5032 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5033 * dbxread.c (read_dbx_symtab): Update.
5034 * psympriv.h (psymbol_placement): New enum.
5035 (add_psymbol_to_list): Update.
5037 2019-01-10 Tom Tromey <tom@tromey.com>
5039 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5040 static_psymbols parameters.
5041 (scan_xcoff_symtab): Update.
5042 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5043 static_psymbols parameters.
5044 * psympriv.h (start_psymtab_common): Update.
5045 * mdebugread.c (parse_partial_symbols): Update.
5046 * dwarf2read.c (create_partial_symtab): Update.
5047 * dbxread.c (read_dbx_symtab): Update.
5048 (start_psymtab): Remove global_psymbols and static_psymbols
5051 2019-01-10 Tom Tromey <tom@tromey.com>
5053 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5054 * psymtab.c (allocate_psymtab): Add comment.
5055 * psympriv.h (allocate_psymtab): Add comment.
5056 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5058 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5060 2019-01-10 Tom Tromey <tom@tromey.com>
5062 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5064 * mipsread.c: Include mdebugread.h.
5065 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5067 * elfread.c: Include mdebugread.h.
5069 2019-01-09 Tom Tromey <tom@tromey.com>
5071 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5072 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5073 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5074 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5075 (psym_lookup_symbol, psym_find_last_source_symtab)
5076 (psym_forget_cached_source_info, psym_print_stats)
5077 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5078 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5079 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5080 (psym_find_compunit_symtab_by_address)
5081 (maintenance_print_psymbols, maintenance_info_psymtabs)
5082 (maintenance_check_psymtabs): Use ranged for.
5083 * psymtab.h (class objfile_psymtabs): New.
5084 (require_partial_symbols): Return objfile_psymtabs.
5085 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5087 2019-01-09 Tom Tromey <tom@tromey.com>
5089 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5090 (find_pc_mapped_section, list_overlays_command)
5091 (map_overlay_command, unmap_overlay_command)
5092 (simple_overlay_update): Use all_objfiles.
5093 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5094 * printcmd.c (info_symbol_command): Use all_objfiles.
5095 * objfiles.h (ALL_OBJSECTIONS): Remove.
5096 * maint.c (maintenance_translate_address): Use all_objfiles.
5097 * gcore.c (gcore_create_callback): Use all_objfiles.
5098 (objfile_find_memory_regions): Likewise.
5100 2019-01-09 Tom Tromey <tom@tromey.com>
5102 * symtab.c (find_line_symtab, info_sources_command)
5103 (make_source_files_completion_list): Use objfile_compunits.
5104 * source.c (select_source_symtab): Use objfile_compunits.
5105 * objfiles.h (struct objfile): Update comment.
5106 (ALL_OBJFILES): Remove.
5107 (ALL_FILETABS): Remove.
5108 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5111 2019-01-09 Tom Tromey <tom@tromey.com>
5113 * symmisc.c (print_objfile_statistics, dump_objfile)
5114 (maintenance_print_symbols): Use compunit_filetabs.
5115 * source.c (forget_cached_source_info_for_objfile): Use
5117 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5118 (ALL_FILETABS): Use compunit_filetabs.
5119 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5120 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5122 2019-01-09 Tom Tromey <tom@tromey.com>
5124 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5125 (compunit_filetabs): New.
5126 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5128 (info_sources_command, make_source_files_completion_list): Remove
5130 * symmisc.c (print_objfile_statistics, dump_objfile)
5131 (maintenance_print_symbols): Remove declaration.
5132 (maintenance_info_symtabs): Use compunit_filetabs.
5133 (maintenance_info_line_tables): Likewise.
5134 * source.c (select_source_symtab): Change local variable name.
5135 (forget_cached_source_info_for_objfile): Remove declaration.
5136 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5137 * objfiles.c (objfile_relocate1): Remove declaration.
5138 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5140 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5141 * coffread.c (coff_symtab_read): Remove declaration.
5142 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5145 2019-01-09 Tom Tromey <tom@tromey.com>
5147 * symtab.c (lookup_objfile_from_block)
5148 (find_pc_sect_compunit_symtab, search_symbols)
5149 (default_collect_symbol_completion_matches_break_on): Use
5151 * objfiles.h (ALL_COMPUNITS): Remove.
5152 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5153 * cp-support.c (add_symbol_overload_list_qualified): Use
5155 * ada-lang.c (ada_collect_symbol_completion_matches)
5156 (ada_add_global_exceptions): Use objfile_compunits.
5158 2019-01-09 Tom Tromey <tom@tromey.com>
5160 * source.c (select_source_symtab)
5161 (forget_cached_source_info_for_objfile): Remove declaration.
5162 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5164 * maint.c (count_symtabs_and_blocks): Remove declaration.
5165 * cp-support.c (add_symbol_overload_list_qualified): Remove
5167 * coffread.c (coff_symtab_read): Remove declaration.
5168 * symtab.c (lookup_symbol_in_objfile_symtabs)
5169 (basic_lookup_transparent_type_1): Use objfile_compunits.
5170 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5171 (info_sources_command, search_symbols)
5172 (default_collect_symbol_completion_matches_break_on)
5173 (make_source_files_completion_list): Remove declaration.
5174 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5175 (ada_collect_symbol_completion_matches)
5176 (ada_add_global_exceptions): Remove declaration.
5177 * linespec.c (iterate_over_all_matching_symtabs): Use
5179 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5180 (class objfile_compunits): New.
5181 (ALL_COMPUNITS): Use objfile_compunits.
5182 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5183 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5185 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5187 2019-01-09 Tom Tromey <tom@tromey.com>
5189 * symtab.c (search_symbols)
5190 (default_collect_symbol_completion_matches_break_on): Use
5192 * ada-lang.c (ada_lookup_simple_minsym)
5193 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5194 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5195 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5197 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5198 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5199 * objc-lang.c (find_methods): Use objfile_msymbols.
5200 (info_selectors_command, info_classes_command): Likewise.
5201 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5202 * objfiles.h (class objfile_msymbols): New.
5203 (ALL_OBJFILE_MSYMBOLS): Remove.
5204 (ALL_MSYMBOLS): Remove.
5206 2019-01-09 Tom Tromey <tom@tromey.com>
5208 * common/next-iterator.h (next_adapter): Add Iterator template
5210 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5211 (class all_objfiles_safe): New.
5212 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5213 * objfiles.c (put_objfile_before): Update comment.
5214 (add_separate_debug_objfile): Likewise.
5215 (free_all_objfiles): Use all_objfiles_safe.
5216 (objfile_purge_solibs): Likewise.
5218 2019-01-09 Tom Tromey <tom@tromey.com>
5220 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5221 (expand_symtab_containing_pc, lookup_static_symbol)
5222 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5223 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5225 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5226 * breakpoint.c (create_overlay_event_breakpoint)
5227 (create_longjmp_master_breakpoint)
5228 (create_std_terminate_master_breakpoint)
5229 (create_exception_master_breakpoint): Use all_objfiles.
5230 * linux-thread-db.c (try_thread_db_load_from_pdir)
5231 (has_libpthread): Use all_objfiles.
5232 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5233 * linespec.c (iterate_over_all_matching_symtabs)
5234 (search_minsyms_for_name): Use all_objfiles.
5235 * maint.c (maintenance_info_sections): Use all_objfiles.
5236 * main.c (captured_main_1): Use all_objfiles.
5237 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5238 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5239 * guile/scm-pretty-print.c
5240 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5241 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5242 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5243 (maintenance_print_msymbols): Use all_objfiles.
5244 * source.c (select_source_symtab): Use all_objfiles.
5245 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5246 * symfile.c (remove_symbol_file_command)
5247 (expand_symtabs_matching, map_symbol_filenames): Use
5249 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5251 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5252 * objc-lang.c (find_methods): Use all_objfiles.
5253 * objfiles.c (have_partial_symbols, have_full_symbols)
5254 (have_minimal_symbols, qsort_cmp)
5255 (default_iterate_over_objfiles_in_search_order): Use
5257 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5258 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5259 (maintenance_check_psymtabs): Use all_objfiles.
5260 (ALL_PSYMTABS): Remove.
5261 * compile/compile-object-run.c (do_module_cleanup): Use
5263 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5264 * cp-support.c (add_symbol_overload_list_qualified): Use
5266 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5268 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5269 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5271 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5272 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5273 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5275 * solib.c (solib_read_symbols): Use all_objfiles
5277 2019-01-09 Tom Tromey <tom@tromey.com>
5279 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5280 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5282 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5283 * symmisc.c (print_symbol_bcache_statistics)
5284 (print_objfile_statistics, maintenance_print_objfiles)
5285 (maintenance_info_symtabs, maintenance_check_symtabs)
5286 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5288 * source.c (forget_cached_source_info): Use all_objfiles.
5289 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5290 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5291 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5292 * objfiles.c (update_section_map): Use all_objfiles.
5293 (shared_objfile_contains_address_p): Likewise.
5294 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5295 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5297 2019-01-09 Tom Tromey <tom@tromey.com>
5299 * common/next-iterator.h: New file.
5300 * objfiles.h (class all_objfiles): New.
5301 (struct objfile_iterator): New.
5303 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5305 * NEWS: Move the description of the changed "frame", "select-frame",
5306 and "info frame" commands to the Changed commands section.
5308 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5310 * gdbtypes.c (check_stub_method_group): Remove handling of old
5312 * linespec.c (find_methods): Likewise.
5313 * stabsread.c (read_member_functions): Likewise.
5314 * valops.c (search_struct_method): Likewise.
5315 (value_struct_elt_for_reference): Likewise.
5316 * NEWS: Mention this change.
5318 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5320 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5322 * source.c (print_source_lines_base): Update line number check.
5323 (print_source_lines): New function.
5324 (source_lines_range::source_lines_range): New function.
5325 * source.h (class source_lines_range): New class.
5326 (print_source_lines): New declaration.
5328 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5330 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5332 2019-01-08 Tom Tromey <tom@tromey.com>
5333 Simon Marchi <simon.marchi@ericsson.com>
5336 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5337 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5338 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5339 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5340 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5341 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5343 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5345 * source.c (select_source_symtab): Move header comment to
5346 declaration in source.h.
5347 (forget_cached_source_info_for_objfile): Likewise.
5348 (forget_cached_source_info): Likewise.
5349 (identify_source_line): Likewise.
5350 * source.h (identify_source_line): Move declaration from symtab.h
5351 and add comment from source.c
5352 (print_source_lines): Likewise.
5353 (forget_cached_source_info_for_objfile): Likewise.
5354 (forget_cached_source_info): Likewise.
5355 (select_source_symtab): Likewise.
5356 (enum print_source_lines_flag): Move definition from symtab.h.
5357 * symtab.h (identify_source_line): Move declaration to source.h.
5358 (print_source_lines): Likewise.
5359 (forget_cached_source_info_for_objfile): Likewise.
5360 (forget_cached_source_info): Likewise.
5361 (select_source_symtab): Likewise.
5362 (enum print_source_lines_flag): Move definition to source.h.
5363 * tui/tui-hooks.c: Add 'source.h' include.
5365 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5367 * source.c (print_source_lines_base): Handle requests to print
5368 reverse line number sequences, and guard against empty lines
5371 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5373 * source.c (print_source_lines_base): Fix skip of '\r' if next
5376 2019-01-06 Tom Tromey <tom@tromey.com>
5378 * c-exp.y (struct c_parse_state) <macro_original_text,
5379 expansion_obstack>: New member.
5380 (macro_original_text, expansion_obstack): Remove globals.
5381 (scan_macro_expansion, scanning_macro_expansion)
5382 (finished_macro_expansion): Update.
5383 (scan_macro_cleanup): Remove.
5384 (yylex, c_parse): Update.
5386 2019-01-06 Tom Tromey <tom@tromey.com>
5388 * c-exp.y (struct c_parse_state) <strings>: New member.
5389 (operator_stoken): Update.
5391 2019-01-06 Tom Tromey <tom@tromey.com>
5393 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5394 (union type_stack_elt) <typelist_val>: Now a pointer to
5396 (type_stack_cleanup): Don't declare.
5397 (push_typelist): Update.
5398 * parse.c (pop_typelist): Return a std::vector.
5399 (push_typelist): Take a std::vector.
5400 (follow_types): Update. Do not free args.
5401 (type_stack_cleanup): Remove.
5402 * c-exp.y (struct c_parse_state): New.
5403 (cpstate): New global.
5404 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5405 (nonempty_typelist): Update.
5406 (func_mod): Create a new vector.
5407 (c_parse): Create a c_parse_state.
5408 (check_parameter_typelist): Do not delete params.
5409 (function_method): Update. Do not delete type_list.
5411 2019-01-06 Tom Tromey <tom@tromey.com>
5414 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5416 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5417 (print_return_value): Likewise.
5419 2019-01-05 Tom Tromey <tom@tromey.com>
5421 * contrib/cleanup_check.py: Remove.
5422 * contrib/gcc-with-excheck: Remove.
5423 * contrib/exsummary.py: Remove.
5424 * contrib/excheck.py: Remove.
5426 2019-01-05 Joel Brobecker <brobecker@adacore.com>
5428 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5429 NULL. Initialize tpprev to NULL instead of assigning it
5430 to NULL on the next statement.
5431 * windows-nat.c (windows_delete_thread): Remove check for
5432 main_thread_id before printing thread exit notifications.
5433 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5434 Remove thread ID check against main_thread_id.
5435 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5436 windows_delete_thread.
5437 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5439 2019-01-04 Tom Tromey <tom@tromey.com>
5441 * compile/compile.c (_initialize_compile): Use upper case for
5442 metasyntactic variables.
5443 * symmisc.c (_initialize_symmisc): Use upper case for
5444 metasyntactic variables.
5445 * psymtab.c (_initialize_psymtab): Use upper case for
5446 metasyntactic variables.
5447 * demangle.c (demangle_command): Use upper case for metasyntactic
5449 (_initialize_demangler): Likewise.
5450 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5453 2019-01-03 Tom Tromey <tom@tromey.com>
5455 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5457 2019-01-03 Tom Tromey <tom@tromey.com>
5459 * python/py-symtab.c (salpy_str): Update.
5460 (struct salpy_sal_object) <symtab>: Now a PyObject.
5461 (salpy_dealloc): Update.
5462 (del_objfile_sal): Use gdbpy_ref.
5464 2019-01-03 Tom Tromey <tom@tromey.com>
5466 * python/py-type.c (convert_field): Use new_reference. Return
5468 (make_fielditem): Return gdbpy_ref.
5469 (typy_fields): Update.
5470 (typy_getitem): Update.
5471 (field_name): Return gdbpy_ref. Use new_reference.
5472 (typy_iterator_iternext): Update.
5474 2019-01-03 Tom Tromey <tom@tromey.com>
5476 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5478 2019-01-03 Tom Tromey <tom@tromey.com>
5480 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5481 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5482 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5483 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5484 (pspy_set_type_printers): Likewise.
5485 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5486 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5487 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5488 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5489 (objfpy_set_type_printers): Likewise.
5491 2019-01-03 Tom Tromey <tom@tromey.com>
5493 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5494 (gdbpy_print_stack): Use gdbpy_err_fetch.
5495 * python/python-internal.h (class gdbpy_err_fetch): New class.
5496 (class gdbpy_enter) <m_error_type, m_error_value,
5497 m_error_traceback>: Remove.
5498 <m_error>: New member.
5499 (gdbpy_exception_to_string): Don't declare.
5500 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5501 * python/py-value.c (convert_value_from_python): Use
5503 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5504 gdbpy_exception_to_string.
5505 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5506 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5509 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5511 * linux-nat.c (delete_lwp_cleanup): Delete.
5512 (struct lwp_deleter): New struct.
5513 (lwp_info_up): New typedef.
5514 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5517 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5519 * linux-fork.c (class scoped_switch_fork_info): New class.
5520 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5522 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5524 * valops.c (find_overload_match): Remove use of null_cleanup, and
5525 calls to do_cleanups.
5527 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5529 * compile/compile-cplus-types.c
5530 (compile_cplus_instance::decl_name): Handle changes to
5532 * cp-support.c (cp_func_name): Update header comment, update
5534 * cp-support.h (cp_func_name): Update return type in declaration.
5535 * valops.c (find_overload_match): Move temp_func local to top
5536 level of function and change its type. Use temp_func to hold and
5537 delete temporary string obtained from cp_func_name.
5539 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5541 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
5542 gdb::char_vector, remove cleanup, and update uses of `msg`.
5544 2019-01-03 Jim Wilson <jimw@sifive.com>
5546 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
5548 2019-01-02 Tom Tromey <tom@tromey.com>
5550 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
5551 (tdesc_parse_xml): Remove cleanups.
5552 * target-descriptions.h (make_cleanup_free_target_description):
5554 (target_desc_deleter): New struct.
5555 (target_desc_up): New typedef.
5556 * target-descriptions.c (target_desc_deleter::operator()): Rename
5557 from free_target_description.
5558 (make_cleanup_free_target_description): Remove.
5560 2019-01-02 Tom Tromey <tom@tromey.com>
5562 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
5563 constructor, destructor.
5564 (linespec_parser): Remove typedef.
5565 (~linespec_parser): Rename from linespec_parser_delete.
5566 (linespec_lex_to_end, linespec_complete_label)
5567 (linespec_complete): Update.
5568 (decode_line_full): Remove cleanups.
5569 (decode_line_1): Update.
5571 2019-01-02 Tom Tromey <tom@tromey.com>
5573 * python/python-internal.h (inferior_to_inferior_object): Change
5575 * python/py-exitedevent.c (create_exited_event_object): Update.
5576 * python/py-inferior.c (inferior_to_inferior_object): Return
5578 (python_new_inferior, python_inferior_deleted)
5579 (thread_to_thread_object, delete_thread_object)
5580 (build_inferior_list, gdbpy_selected_inferior): Update.
5581 * python/py-infthread.c (create_thread_object): Update. Also fail
5582 if inferior_to_inferior_object fails.
5584 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
5586 * inferior.h (class inferior) <displaced_step_state>: New field.
5587 * infrun.h (struct displaced_step_state): Move here from
5588 infrun.c. Initialize fields, add constructor.
5589 <inf>: Remove field.
5590 <reset>: New method.
5591 * infrun.c (struct displaced_step_inferior_state): Move to
5593 (displaced_step_inferior_states): Remove.
5594 (get_displaced_stepping_state): Adust.
5595 (displaced_step_in_progress_any_inferior): Adjust.
5596 (displaced_step_in_progress_thread): Adjust.
5597 (displaced_step_in_progress): Adjust.
5598 (add_displaced_stepping_state): Remove.
5599 (get_displaced_step_closure_by_addr): Adjust.
5600 (remove_displaced_stepping_state): Remove.
5601 (infrun_inferior_exit): Call displaced_step_state.reset.
5602 (use_displaced_stepping): Don't check for NULL.
5603 (displaced_step_prepare_throw): Call
5604 get_displaced_stepping_state.
5605 (displaced_step_fixup): Don't check for NULL.
5606 (prepare_for_detach): Don't check for NULL.
5608 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5610 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
5611 in case of call that did not complete.
5613 2019-01-02 Andrey Utkin <autkin@undo.io>
5615 * symfile.c (find_separate_debug_file): Fix search of debug files for
5618 2019-01-02 Tom Tromey <tom@tromey.com>
5620 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
5622 * python/py-frame.c (frapy_older): Remove cast.
5623 (frapy_newer): Likewise.
5624 * python/py-breakpoint.c (local_setattro): Remove cast.
5625 * python/py-arch.c (archpy_name): Remove local variable.
5626 * python/py-type.c (gdbpy_lookup_type): Remove cast.
5628 2019-01-02 Joel Brobecker <brobecker@adacore.com>
5630 * unittests/basic_string_view/element_access/char/empty.cc:
5631 Fix year range in copyright header.
5633 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
5635 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
5637 <operator==>: Update with for removed field.
5639 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
5640 <isa_features>: ...this.
5641 <abi_features>: New field.
5642 (riscv_isa_flen): Update comment.
5643 (riscv_abi_xlen): New declaration.
5644 (riscv_abi_flen): New declaration.
5645 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
5647 (riscv_abi_xlen): New function.
5648 (riscv_isa_flen): Update to get answer from isa_features.
5649 (riscv_abi_flen): New function.
5650 (riscv_has_fp_abi): Update to get answer from abi_features.
5651 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
5653 (riscv_call_info) <xlen, flen>: Update comment.
5654 (riscv_call_arg_struct): Remove invalid assertions
5655 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
5657 (riscv_gdbarch_init): Gather isa features and abi features
5658 separately, ensure both match on the gdbarch when reusing an old
5659 gdbarch. Relax an error check to allow 32-bit abi float to run on
5660 a target with 64-bit float hardware.
5662 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5664 * source.c (search_command_helper): Stop reverse search
5665 when line 1 has been searched.
5667 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5669 * record-full.c (record_full_base_target::close): Rewrite
5670 record_full_core_buf_list free logic.
5672 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5674 * break-catch-syscall.c (print_one_catch_syscall): xfree
5677 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5679 * top.c (print_gdb_version): Update Copyright year in version
5682 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5684 Update copyright year range in all GDB files.
5686 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
5688 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
5690 For older changes see ChangeLog-2018.
5696 version-control: never