1 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * gnu-v3-abi.c (enum definition_style): New enum type.
4 (get_def_style): New function.
5 (is_user_provided_def): New function.
6 (is_implicit_def): New function.
7 (is_copy_or_move_constructor_type): New function.
8 (is_copy_constructor_type): New function.
9 (is_move_constructor_type): New function.
10 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
13 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15 * language.h (struct language_pass_by_ref_info): New struct.
16 (struct language_defn)<la_pass_by_reference>: Change the signature
17 to return a language_pass_by_ref_info instead of an int.
18 (language_pass_by_reference): Ditto.
19 (default_pass_by_reference): Ditto.
20 Adjust the users listed below.
21 * arch-utils.c (default_return_in_first_hidden_param_p):
23 * cp-abi.c (cp_pass_by_reference): Update.
24 * cp-abi.h (cp_pass_by_reference): Update declaration.
25 (struct cp_abi_ops)<pass_by_reference>: Update.
26 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
27 * infcall.c (call_function_by_hand_dummy): Update.
28 * language.c (language_pass_by_reference): Update.
29 (default_pass_by_reference): Update.
30 * tic6x-tdep.c (tic6x_return_value): Update.
32 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
34 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
35 and DW_AT_deleted attributes of a function.
36 (read_structure_type): Read the DW_AT_calling_convention attribute
38 (is_valid_DW_AT_defaulted): New function.
39 (is_valid_DW_AT_calling_convention_for_type): New function.
40 * gdbtypes.h: Include dwarf2.h.
41 (struct fn_field)<defaulted>: New field to store the
42 DW_AT_defaulted attribute.
43 (struct fn_field)<is_deleted>: New field to store the
44 DW_AT_deleted attribute.
45 (struct cplus_struct_type)<calling_convention>: New field to store
46 the DW_AT_calling_convention attribute.
47 (TYPE_FN_FIELD_DEFAULTED): New macro.
48 (TYPE_FN_FIELD_DELETED): New macro.
49 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
50 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
52 (print_cplus_stuff): Likewise.
54 2019-12-20 Tom Tromey <tom@tromey.com>
56 * tui/tui.c (tui_show_source): Remove.
57 * tui/tui.h (tui_show_source): Don't declare.
58 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
61 2019-12-20 Tom Tromey <tom@tromey.com>
63 * tui/tui-stack.h (tui_show_frame_info): Return bool.
64 * tui/tui-stack.c (tui_show_frame_info): Return bool.
65 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
68 2019-12-20 Tom Tromey <tom@tromey.com>
71 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
72 Rename parameters. Handle the not-from-stack-frame case.
73 (from_stack, from_source_symtab): New globals.
74 (tui_before_prompt, tui_normal_stop): Update.
75 (tui_context_changed, tui_symtab_changed): New functions.
76 (tui_attach_detach_observers): Attach new observers.
78 2019-12-20 Tom Tromey <tom@tromey.com>
80 * source.c (struct current_source_location) <set, symtab, line>:
82 <m_symtab, m_line>: Rename. Now private.
83 (get_current_source_symtab_and_line)
84 (set_default_source_symtab_and_line)
85 (set_current_source_symtab_and_line)
86 (clear_current_source_symtab_and_line, select_source_symtab)
87 (info_source_command, print_source_lines_base)
88 (info_line_command, search_command_helper): Update.
89 * observable.h (current_source_symtab_and_line_changed): Declare
91 * observable.c (current_source_symtab_and_line_changed): Define
94 2019-12-20 Tom Tromey <tom@tromey.com>
96 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
97 (tui_before_prompt, tui_normal_stop): Update.
99 2019-12-20 Tom Tromey <tom@tromey.com>
101 * tui/tui-winsource.c
102 (tui_source_window_base::update_source_window_as_is): Don't call
103 set_current_source_symtab_and_line.
105 2019-12-20 Tom Tromey <tom@tromey.com>
107 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
108 Take a symtab_and_line.
109 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
111 (tui_show_frame_info): Update.
113 2019-12-20 Tom Tromey <tom@tromey.com>
115 * tui/tui-stack.c (tui_show_frame_info): Don't call
118 2019-12-20 Tom Tromey <tom@tromey.com>
120 * tui/tui.c (tui_enable): Call tui_display_main.
122 2019-12-20 Tom Tromey <tom@tromey.com>
124 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
125 get_current_source_symtab_and_line, and main_name.
127 2019-12-20 Tom Tromey <tom@tromey.com>
129 * tui/tui.c (tui_show_source): Update.
130 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
131 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
132 a symtab_symbol_info, not a separate symtab and line. Simplify.
134 2019-12-20 Tom Tromey <tom@tromey.com>
136 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
139 2019-12-20 Tom Tromey <tom@tromey.com>
141 * tui/tui-winsource.h (struct tui_source_window_base)
142 <set_contents, update_source_window_as_is, update_source_window>:
143 Take a sal, not a separate symtab and tui_line_or_address.
144 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
145 (tui_source_window_base::update_source_window_as_is): Take a sal,
146 not a separate symtab and tui_line_or_address.
147 (tui_update_source_windows_with_addr)
148 (tui_update_source_windows_with_line)
149 (tui_source_window_base::rerender)
150 (tui_source_window_base::refill): Update.
151 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
152 a sal, not a separate symtab and tui_line_or_address.
153 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
154 not a separate symtab and tui_line_or_address.
155 (tui_source_window::maybe_update): Update.
156 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
157 a sal, not a separate symtab and tui_line_or_address.
158 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
159 not a separate symtab and tui_line_or_address.
160 (tui_disasm_window::do_scroll_vertical)
161 (tui_disasm_window::maybe_update): Update.
163 2019-12-20 Tom Tromey <tom@tromey.com>
165 * tui/tui-winsource.c (tui_source_window_base::refill): Use
167 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
169 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
172 2019-12-20 Tom Tromey <tom@tromey.com>
174 * tui/tui-winsource.h (struct tui_source_window_base)
175 <set_contents>: Return bool.
176 * tui/tui-winsource.c
177 (tui_source_window_base::update_source_window_as_is): Update.
178 * tui/tui-source.h (struct tui_source_window) <set_contents>:
180 * tui/tui-source.c (tui_source_window::set_contents): Return
182 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
184 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
187 2019-12-20 Tom Tromey <tom@tromey.com>
189 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
190 (tui_update_source_windows_with_line): Call update_source_window.
191 * tui/tui-source.h (struct tui_source_window)
192 <show_symtab_source>: Don't declare.
193 * tui/tui-source.c (tui_source_window::show_symtab_source):
196 2019-12-20 Tom Tromey <tom@tromey.com>
198 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
199 update_source_window directly.
200 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
201 * tui/tui-disasm.c (tui_show_disassem): Remove.
203 2019-12-20 Tom Tromey <tom@tromey.com>
205 * tui/tui-winsource.c
206 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
207 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
209 2019-12-20 Tom Tromey <tom@tromey.com>
211 * tui/tui-winsource.h (struct tui_source_window_base)
212 <maybe_update>: Remove line_no and addr parameters.
213 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
214 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
216 * tui/tui-source.c (tui_source_window::maybe_update): Remove
217 line_no and addr parameters.
218 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
220 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
221 line_no and addr parameters.
223 2019-12-20 Tom Tromey <tom@tromey.com>
225 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
226 (tui_source_window_base::update_breakpoint_info): Remove asserts.
228 2019-12-20 Tom Tromey <tom@tromey.com>
230 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
232 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
234 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
236 2019-12-20 Tom Tromey <tom@tromey.com>
238 * tui/tui.h (tui_show_source): Remove parameters.
239 * tui/tui.c (tui_show_source): Remove parameters.
240 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
242 2019-12-20 Tom Tromey <tom@tromey.com>
244 * tui/tui.c (tui_show_source): Update.
245 * tui/tui-winsource.c (tui_display_main): Update.
246 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
248 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
250 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
252 2019-12-20 Tom Tromey <tom@tromey.com>
255 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
256 (tui_redisplay_readline): Use rl_display_prompt.
257 (tui_prep_terminal): Update.
259 2019-12-19 Christian Biesinger <cbiesinger@google.com>
261 * configure: Regenerate.
262 * configure.ac: Quote variable arguments of test.
263 * gdbsupport/common.m4: Likewise.
265 2019-12-19 Christian Biesinger <cbiesinger@google.com>
267 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
270 2019-12-19 Christian Biesinger <cbiesinger@google.com>
272 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
273 log10 to double to fix Solaris 11 with gcc 5.5.
275 2019-12-19 Christian Biesinger <cbiesinger@google.com>
277 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
280 2019-12-19 Tom Tromey <tromey@adacore.com>
282 * ui-out.h (enum class field_kind): Fix comment.
284 2019-12-11 Tom Tromey <tromey@adacore.com>
286 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
288 2019-12-18 Tom Tromey <tromey@adacore.com>
291 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
292 type on macOS. Add comment.
294 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
296 * c-lang.c (c_get_string, asm_language_defn): Remove space
299 2019-12-18 Tom Tromey <tromey@adacore.com>
302 * ui-out.c (ui_out::vmessage): Update.
303 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
305 (string_field): Update.
306 (signed_field): Update.
308 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
310 * top.c (print_gdb_configuration): Adjust indentation.
312 2019-12-17 Christian Biesinger <cbiesinger@google.com>
314 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
316 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
318 * tui/tui-layout.h (class tui_layout_base): Add virtual
321 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
323 * infcmd.c (prepare_one_step): Step over skipped inline functions.
324 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
325 (process_event_stop_test): Keep stepping over skipped inline functions.
327 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
329 * jit.c (struct gdb_block) <next>: Remove field.
330 (struct gdb_symtab) <~gdb_symtab>: Remove.
331 <blocks>: Change type to std::forward_list<gdb_block>.
332 (compare_block): Remove.
333 (jit_block_open_impl): Adjust to std::forward_list. Place the new
334 block at the beginning, don't mind about sorting.
335 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
338 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
340 * jit.c (struct gdb_block): Add constructor, initialize
341 real_block and next fields.
342 <name>: Change type to gdb::unique_xmalloc_ptr.
343 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
344 (jit_block_open_impl): Allocate gdb_block with new.
345 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
347 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
349 * jit.c: Include forward_list.
350 (struct gdb_symtab) <next>: Remove field.
351 (struct gdb_object) <symtabs>: Change type to
352 std::forward_list<gdb_symtab>.
353 (jit_object_open_impl): Allocate gdb_object with new.
354 (jit_symtab_open_impl): Adjust to std::forward_list.
355 (finalize_symtab): Don't delete symtab.
356 (jit_object_close_impl): Adjust to std::forward_list. Free
357 gdb_object with delete.
359 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
361 * jit.c (struct gdb_symtab): Add constructor, destructor,
363 <linetable>: Change type to unique_xmalloc_ptr.
364 <file_name>: Change type to std::string.
365 (jit_symtab_open_impl): Allocate gdb_symtab with new.
366 (jit_symtab_line_mapping_add_impl): Adjust.
367 (finalize_symtab): Adjust, call delete on stab.
369 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
371 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
373 2019-12-16 Tom Tromey <tromey@adacore.com>
375 * windows-nat.c (windows_nat_target::attach): Update.
376 * remote.c (extended_remote_target::attach): Update.
377 * procfs.c (procfs_target::attach): Update.
378 * nto-procfs.c (nto_procfs_target::attach): Update.
379 (nto_procfs_target::create_inferior): Update.
380 * inf-ptrace.c (inf_ptrace_target::attach): Update.
381 * gnu-nat.c (gnu_nat_target::attach): Update.
382 (gnu_nat_target::detach): Update.
383 * darwin-nat.c (darwin_nat_target::attach): Update.
384 * corefile.c (get_exec_file): Constify result. Remove extraneous
386 * bsd-kvm.c (bsd_kvm_target_open): Update.
387 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
389 2019-12-16 Christian Biesinger <cbiesinger@google.com>
391 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
392 (we no longer need to include time.h before pathmax.h)
394 2019-12-15 Christian Biesinger <cbiesinger@google.com>
396 * ada-exp.y (write_ambiguous_var): Update.
397 * coffread.c (process_coff_symbol): Update.
398 * ctfread.c (ctf_add_enum_member_cb): Update.
399 (new_symbol): Update.
400 * dwarf2read.c (fixup_go_packaging): Update.
401 (new_symbol): Update.
402 * language.c (language_alloc_type_symbol): Update.
403 * mdebugread.c (new_symbol): Update.
404 * minsyms.c (minimal_symbol_reader::record_full): Update.
405 * psymtab.c (add_psymbol_to_bcache): Update.
406 * stabsread.c (define_symbol): Update.
407 (read_enum_type): Update.
408 * symtab.c (symbol_set_language): Make this a member function...
409 (general_symbol_info::set_language): ... here.
410 * symtab.h (struct general_symbol_info) <set_language>: New function.
411 (SYMBOL_SET_LANGUAGE): Remove.
412 (symbol_set_language): Remove.
414 2019-12-15 Christian Biesinger <cbiesinger@google.com>
416 * ada-lang.c (ada_add_block_symbols): Update.
417 (ada_collect_symbol_completion_matches): Update.
418 * ax-gdb.c (gen_expr): Update.
419 * block.c (block_lookup_symbol): Update.
420 (block_lookup_symbol_primary): Update.
421 (block_find_symbol): Update.
422 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
423 * dbxread.c (process_one_symbol): Update.
424 * dictionary.c (insert_symbol_hashed): Update.
425 (collate_pending_symbols_by_language): Update.
426 (mdict_add_symbol): Update.
427 * dwarf-index-write.c (write_psymbols): Update.
428 * dwarf2read.c (fixup_go_packaging): Update.
429 * findvar.c (read_var_value): Update.
430 * ft32-tdep.c (ft32_skip_prologue): Update.
431 * go-lang.c (go_symbol_package_name): Update.
432 * language.h (scoped_switch_to_sym_language_if_auto::
433 scoped_switch_to_sym_language_if_auto): Update.
434 * linespec.c (find_method): Update.
435 (find_label_symbols_in_block): Update.
436 * mdebugread.c (parse_symbol): Update.
437 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
438 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
439 (minimal_symbol_reader::install): Update.
440 * moxie-tdep.c (moxie_skip_prologue): Update.
441 * parse.c (parse_exp_in_context): Update.
442 * psymtab.c (psymbol_name_matches): Update.
443 (match_partial_symbol): Update.
444 (lookup_partial_symbol): Update.
445 (psymbol_hash): Update.
446 (psymbol_compare): Update.
447 * python/py-framefilter.c (extract_sym): Update.
448 (py_print_single_arg): Update.
449 * stabsread.c (define_symbol): Update.
450 * stack.c (print_frame_arg): Update.
451 (find_frame_funname): Update.
452 (info_frame_command_core): Update.
453 * symfile.c (set_initial_language): Update.
454 * symtab.c (symbol_set_demangled_name): Update.
455 (symbol_get_demangled_name): Update.
456 (symbol_set_language): Update.
457 (symbol_find_demangled_name): Update.
458 (symbol_set_names): Update.
459 (general_symbol_info::natural_name): Update.
460 (general_symbol_info::demangled_name): Update.
461 (general_symbol_info::search_name): Update.
462 (symbol_matches_search_name): Update.
463 (eq_symbol_entry): Update.
464 (iterate_over_symbols): Update.
465 (completion_list_add_symbol): Update.
466 (completion_list_add_msymbol): Update.
467 (completion_list_add_fields): Update.
468 * symtab.h (struct general_symbol_info) <language>: New function.
469 <language>: Rename to...
470 <m_language>: ...this.
471 (SYMBOL_LANGUAGE): Remove.
472 (MSYMBOL_LANGUAGE): Remove.
473 (struct symbol) <ctor>: Update.
474 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
476 2019-12-15 Christian Biesinger <cbiesinger@google.com>
478 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
479 set the language of sym.
480 * language.c (language_alloc_type_symbol): Likewise.
482 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
484 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
486 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
487 * corelow.c: Include 'gdbsupport/pathstuff.h'.
488 (core_target_open): Use 'gdb_abspath'.
489 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
490 'current_directory == NULL' case.
491 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
492 explain what happens when 'current_directory' is NULL.
493 * go32-nat.c (go32_nat_target::wait): Check if
494 'current_directory' is NULL before call to 'chdir'.
495 * source.c (add_path): Use 'gdb_abspath'.
496 * top.c: Include 'gdbsupport/pathstuff.h'.
497 (init_history): Use 'gdb_abspath'.
498 (set_history_filename): Likewise.
499 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
500 (tfile_target_open): Use 'gdb_abspath'.
502 2019-12-13 Tom Tromey <tromey@adacore.com>
504 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
507 2019-12-13 Tom Tromey <tromey@adacore.com>
509 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
511 2019-12-13 Tom Tromey <tromey@adacore.com>
513 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
515 2019-12-13 Tom Tromey <tromey@adacore.com>
517 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
519 2019-12-13 Tom Tromey <tromey@adacore.com>
521 * gdbsupport/common-utils.c (string_printf, string_vprintf)
522 (string_vappendf): Add ARI comment.
524 2019-12-13 Tom Tromey <tromey@adacore.com>
526 * contrib/ari/gdb_ari.sh: Remove "fix" call for
527 floatformat_to_double.
528 * target-float.c (host_float_ops<T>::from_target): Add ARI
531 2019-12-13 Tom Tromey <tromey@adacore.com>
533 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
534 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
536 * event-top.c (handle_sigsegv): Add ARI marker to abort.
538 2019-12-13 Tom Tromey <tromey@adacore.com>
540 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
542 2019-12-13 Tom Tromey <tromey@adacore.com>
544 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
546 2019-12-13 Tom Tromey <tromey@adacore.com>
548 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
551 2019-12-13 Tom Tromey <tromey@adacore.com>
553 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
554 end>: No longer "const".
556 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
558 * jit.c: Fix indentation, replace spaces with tabs where
561 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
563 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
565 2019-12-12 Tom Tromey <tom@tromey.com>
567 * objfiles.h (struct objfile) <partial_symtabs>: Now a
570 2019-12-12 Tom Tromey <tom@tromey.com>
572 * progspace.h (objfile_list): New typedef.
573 (class unwrapping_objfile_iterator)
574 (struct unwrapping_objfile_range): Newl
575 (struct program_space) <objfiles_range>: Change type.
576 <objfiles>: Change return type.
577 <add_objfile>: Change type of "objfile" parameter.
578 <objfiles_list>: Now a list of shared_ptr.
579 * progspace.c (program_space::add_objfile): Change type of
581 (program_space::remove_objfile): Update.
582 * objfiles.h (struct objfile) <~objfile>: Make public.
583 * objfiles.c (objfile::make): Update.
584 (objfile::unlink): Don't call delete.
586 2019-12-12 Tom Tromey <tom@tromey.com>
588 * symfile.c (symbol_file_clear): Update.
589 * progspace.h (struct program_space) <free_all_objfiles>: Declare
591 * progspace.c (program_space::free_all_objfiles): New method.
592 * objfiles.h (free_all_objfiles): Don't declare.
593 * objfiles.c (free_all_objfiles): Move to program_space.
595 2019-12-12 Tom Tromey <tom@tromey.com>
597 * progspace.c (program_space::add_objfile)
598 (program_space::remove_objfile): Update.
599 (program_space::multi_objfile_p): Remove.
600 * objfiles.h (struct objfile) <next>: Remove.
601 * objfiles.c (objfile::objfile): Update.
602 (put_objfile_before): Update.
603 (unlink_objfile): Update.
604 * progspace.h (object_files): Remove.
605 (struct program_space) <objfiles_head>: Remove.
606 <objfiles_list>: New member.
607 <objfiles_range, objfiles_safe_range>: Change type.
608 (objfiles): Change return type.
609 (objfiles_safe): Update.
610 (multi_objfile_p): Rewrite and inline.
611 (object_files): Remove macro.
613 2019-12-12 Tom Tromey <tom@tromey.com>
615 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
617 (basic_safe_range): New class.
619 2019-12-12 Tom Tromey <tom@tromey.com>
621 * progspace.c (program_space::multi_objfile_p): New method.
622 * printcmd.c (info_symbol_command): Update.
623 * maint.c (maintenance_translate_address): Update.
624 * objfiles.h (MULTI_OBJFILE_P): Remove.
625 * progspace.h (struct program_space) <multi_objfile_p>: New
628 2019-12-12 Tom Tromey <tom@tromey.com>
630 * progspace.h (struct program_space) <remove_objfile>: Declare.
631 * progspace.c (program_space::remove_objfile): New method.
632 * objfiles.c (unlink_objfile): Remove.
633 (objfile::unlink): Call remove_objfile.
634 (objfile): Don't call unlink_objfile.
636 2019-12-12 Tom Tromey <tom@tromey.com>
638 * progspace.h (struct program_space) <add_objfile>: Declare
640 * progspace.c (program_space::add_objfile): New method.
641 * objfiles.c (~objfile): Don't unlink objfile.
642 (put_objfile_before): Remove.
643 (add_separate_debug_objfile): Don't call put_objfile_before.
644 (objfile::make): Call add_objfile. Set new_objfiles_available on
645 the per-program-space data.
647 2019-12-12 Tom Tromey <tom@tromey.com>
649 * symfile.c (syms_from_objfile_1): Use objfile_up.
650 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
652 (reread_symbols): Use objfile_up.
653 * solib.c (update_solib_list, reload_shared_libraries_1): Call
655 * objfiles.h (struct objfile) <~objfile>: Now private.
656 <unlink>: New method.
657 (struct objfile_deleter): New.
658 (objfile_up): New typedef.
659 * objfiles.c (objfile::unlink): New method.
660 (free_objfile_separate_debug, free_all_objfiles)
661 (objfile_purge_solibs): Use it.
662 * jit.c (jit_unregister_code): Remove.
663 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
665 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
667 * compile/compile-object-load.c (compile_object_load): Use
670 2019-12-12 Tom Tromey <tom@tromey.com>
672 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
674 * objfiles.h (struct objjfile) <make>: No longer inline.
675 (add_separate_debug_objfile): Don't declare.
676 * objfiles.c (add_separate_debug_objfile): Now static.
677 (objfile::make): Move from objfiles.h. Call
678 add_separate_debug_objfile. Add "parent" parameter.
680 2019-12-12 Tom Tromey <tom@tromey.com>
682 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
683 * objfiles.h (struct objfile): Make constructor private.
684 <make>: New static method.
685 * jit.c (jit_object_close_impl): Update.
687 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
689 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
692 2019-12-12 Tom Tromey <tromey@adacore.com>
694 * xml-support.c (xml_fetch_content_from_file): Don't call
696 * utils.h (class gdb_argv): Remove malloc_failure comment.
697 * utils.c (gdb_argv::reset): Don't call malloc_failure.
699 2019-12-12 Tom Tromey <tromey@adacore.com>
701 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
702 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
703 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
704 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
705 * riscv-ravenscar-thread.c: New file.
706 * riscv-ravenscar-thread.h: New file.
707 * riscv-tdep.c (riscv_gdbarch_init): Call
708 register_riscv_ravenscar_ops.
710 2019-12-12 Tom Tromey <tromey@adacore.com>
712 * gdbsupport/thread-pool.c (set_thread_name): Use
715 2019-12-12 Luis Machado <luis.machado@linaro.org>
717 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
718 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
721 2019-12-11 Tom Tromey <tom@tromey.com>
723 * tui/tui-win.c (tui_set_win_height_command): Call
724 tui_adjust_window_height.
725 (tui_adjust_win_heights, new_height_ok): Remove.
726 * tui/tui-layout.h (tui_adjust_window_height): Declare.
727 * tui/tui-layout.c (tui_adjust_window_height): New function.
729 2019-12-11 Tom Tromey <tom@tromey.com>
731 * tui/tui-win.c (tui_resize_all): Remove code, call
732 tui_apply_current_layout.
734 2019-12-11 Tom Tromey <tom@tromey.com>
736 * tui/tui-layout.h (tui_apply_current_layout): Declare.
737 * tui/tui-layout.c (standard_layouts, applied_layout): New
739 (tui_apply_current_layout): New function.
740 (show_layout): Set applied_layout. Call
741 tui_apply_current_layout.
742 (show_source_command, show_disasm_command)
743 (show_source_disasm_command, show_data)
744 (show_source_or_disasm_and_command): Remove.
745 (initialize_layouts): New function.
746 (_initialize_tui_layout): Call initialize_layouts.
748 2019-12-11 Tom Tromey <tom@tromey.com>
750 * tui/tui-layout.h (class tui_layout_base)
751 (class tui_layout_window, class tui_layout_split): New.
752 * tui/tui-layout.c (tui_get_window_by_name)
753 (tui_layout_window::clone, tui_layout_window::apply)
754 (tui_layout_window::get_sizes, tui_layout_window::add_split)
755 (tui_layout_split::add_window, tui_layout_split::clone)
756 (tui_layout_split::get_sizes)
757 (tui_layout_split::set_weights_from_heights)
758 (tui_layout_split::adjust_size, tui_layout_split::apply): New
760 (tui_layout_split::add_split, tui_layout_split::add_split)
761 (tui_layout_split::set_weights_from_heights)
762 (tui_layout_split::set_weights_from_heights): New functions.
764 2019-12-11 Tom Tromey <tom@tromey.com>
766 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
767 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
768 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
769 * tui/tui-data.h (struct tui_point): Remove.
770 (struct tui_gen_win_info) <origin>: Remove.
772 * tui/tui-command.c (tui_cmd_window::resize): Update.
774 2019-12-11 Tom Tromey <tom@tromey.com>
776 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
778 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
780 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
782 (struct tui_win_info) <min_height>: Implement.
784 2019-12-11 Tom Tromey <tom@tromey.com>
786 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
787 (struct tui_win_info) <can_box>: Update.
789 2019-12-11 Tom Tromey <tom@tromey.com>
791 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
793 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
795 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
797 (struct tui_win_info) <max_height>: Now override.
799 2019-12-11 Joel Brobecker <brobecker@adacore.com>
801 * NEWS: Create a new section for the next release branch.
802 Rename the section of the current branch, now that it has
805 2019-12-11 Joel Brobecker <brobecker@adacore.com>
807 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
808 * version.in: Bump version to 10.0.50.DATE-git.
810 2019-12-11 Tom Tromey <tromey@adacore.com>
813 * gdbsupport/thread-pool.c (set_thread_name): New function.
814 (thread_pool::set_thread_count): Don't call pthread_setname_np.
815 (thread_pool::thread_function): Call set_thread_name.
817 2019-12-11 Tom Tromey <tromey@adacore.com>
819 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
822 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
824 * NEWS: Document -raw-values option and the related setting commands.
825 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
826 only set it on when /r is given.
827 * valprint.c (value_print_option_defs): New element raw-values.
828 * Makefile.in: Add the new file.
830 2019-12-10 Christian Biesinger <cbiesinger@google.com>
832 * gdbsupport/safe-strerror.c: Supress the unused function warning
833 for select_strerror_r.
835 2019-12-10 Christian Biesinger <cbiesinger@google.com>
837 * config.in: Regenerate.
838 * configure: Regenerate.
839 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
840 safe_strerror instead of strerror.
841 * gdbsupport/common.m4: Don't check for strerror.
842 * gdbsupport/safe-strerror.c: Support both the glibc version
843 of strerror_r and the XSI version.
845 2019-12-10 Tom Tromey <tromey@adacore.com>
847 * ada-typeprint.c (print_choices): Use a single "?".
848 (print_variant_part): Print "?" if the discriminant name
851 2019-12-10 George Barrett <bob@bob131.so>
853 Fix scripted probe breakpoints.
854 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
856 (breakpoint_ops_for_event_location_type)
857 (breakpoint_ops_for_event_location): Add function definitions.
858 (break_command_1, trace_command): Use
859 breakpoint_ops_for_event_location.
860 * breakpoint.h (breakpoint_ops_for_event_location): Add function
862 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
863 breakpoint_ops_for_event_location.
864 * python/py-breakpoint.c (bppy_init): Use
865 breakpoint_ops_for_event_location.
867 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
869 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
870 when ranking an lvalue argument for an rvalue parameter.
872 2019-12-08 Wataru Ashihara <wataash@wataash.com>
874 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
875 template argument for scoped_restore_tmpl from bool to int.
877 2019-12-07 Keith Seitz <keiths@redhat.com>
879 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
880 (build_id_to_debug_bfd): Make static, rewriting to use
881 build_id_to_bfd_suffix.
882 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
883 adding `suffix' parameter. Append SUFFIX to file names
884 when searching for matching files.
885 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
886 (build_id_to_exec_bfd): Likewise.
887 * build-id.h (build_id_to_debug_bfd): Clarify that function
888 searches for BFD of debug info file.
889 (build_id_to_exec_bfd): Declare.
890 * corelow.c: Include build-id.h.
891 (locate_exec_from_corefile_build_id): New function.
892 (core_target_open): If no executable BFD is found,
893 search for a core file BFD using build-id.
895 2019-12-06 Christian Biesinger <cbiesinger@google.com>
897 * bcache.c: Put in namespace gdb.
898 * bcache.h: Likewise.
899 * gdbtypes.c (check_types_worklist): Update.
900 (types_deeply_equal): Update.
901 * macrotab.c (struct macro_table) <bcache>: Update.
902 (new_macro_table): Update.
903 * macrotab.h (struct bcache): Put this forward declaration
904 inside namespace gdb.
905 (new_macro_table): Update.
906 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
908 <macro_cache>: Update.
909 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
911 2019-12-06 Tom de Vries <tdevries@suse.de>
914 * block.c (best_symbol, better_symbol): New function.
915 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
918 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
920 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
921 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
922 for ranking see-through reference cases.
924 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
925 * stack.c (faas_command): Check a command is provided.
926 * thread.c (taas_command, tfaas_command): Likewise.
928 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
929 * inferior.c (prune_inferiors): Only call delete_inferior,
930 Do not modify the inferior list.
932 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
934 * c-exp.y: Update calls to lookup_typename,
935 lookup_signed_typename and lookup_unsigned_typename.
936 * c-lang.c (evaluate_subexp_c): Likewise.
937 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
939 * eval.c (binop_promote): Likewise.
940 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
941 (lookup_unsigned_typename): Likewise.
942 (lookup_signed_typename): Likewise.
943 * gdbtypes.h (lookup_unsigned_typename): Likewise.
944 (lookup_signed_typename): Likewise.
945 (lookup_typename): Likewise.
946 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
947 lookup_typename, lookup_signed_typename,
948 lookup_unsigned_typename.
949 * m2-exp.y: Likewise.
950 * printcmd.c (printf_wide_c_string): Likewise.
951 (ui_printf): Likewise.
952 * python/py-type.c (typy_lookup_typename): Likewise.
953 * python/py-xmethods.c (python_xmethod_worker::invoke):
955 * rust-exp.y: Likewise.
957 2019-12-04 Christian Biesinger <cbiesinger@google.com>
959 * configure.nat (obsd64): Add missing files x86-nat.o and
962 2019-12-04 Tom Tromey <tom@tromey.com>
964 * valprint.c (val_print_string): Use metadata_style.
965 * go-valprint.c (print_go_string): Use metadata style.
966 * p-valprint.c (pascal_object_print_static_field): Use metadata
968 * cp-valprint.c (cp_print_static_field): Use metadata style.
970 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
971 Chris January <chris.january@arm.com>
973 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
975 (typebase): New patterns for complex, single/double precision, and
976 single/double complex.
977 (f77_keywords): Change token for complex keyword, and add single,
978 double, and precision keywords.
980 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
982 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
985 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
987 * regcache.c (cooked_read_test): Initialize thread list of
990 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
992 * aarch64-linux-tdep.c: Remove includes.
994 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
996 * aarch64-tdep.c: Remove includes.
998 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
1000 * filtered-iterator.h (filtered_iterator) <operator==,
1001 operator!=>: Compare wrapped iterators, not wrapped pointers.
1002 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1003 unittests/filtered_iterator-selftests.c.
1004 * unittests/filtered_iterator-selftests.c: New file.
1006 2019-12-04 Tom Tromey <tromey@adacore.com>
1008 * gdbtypes.c (create_range_type): Inherit endianity
1011 2019-12-04 Tom Tromey <tromey@adacore.com>
1013 * ada-lang.c (decode_constrained_packed_array)
1014 (ada_value_assign, value_assign_to_component): Update.
1015 * dwarf2loc.c (rw_pieced_value, access_memory)
1016 (dwarf2_compile_expr_to_ax): Update.
1017 * dwarf2read.c (dwarf2_add_field): Update.
1018 * eval.c (evaluate_subexp_standard): Update.
1019 * gdbarch.c, gdbarch.h: Rebuild.
1020 * gdbarch.sh (bits_big_endian): Remove.
1021 * gdbtypes.h (union field_location): Update comment.
1022 * target-descriptions.c (make_gdb_type): Update.
1023 * valarith.c (value_bit_index): Update.
1024 * value.c (struct value) <bitpos>: Update comment.
1025 (unpack_bits_as_long, modify_field): Update.
1026 * value.h (value_bitpos): Update comment.
1028 2019-12-04 Tom Tromey <tromey@adacore.com>
1030 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1033 2019-12-04 Tom Tromey <tromey@adacore.com>
1035 * dwarf2read.c (dwarf2_init_float_type)
1036 (dwarf2_init_complex_target_type): Add byte_order parameter.
1037 (read_base_type): Compute byte order earlier.
1038 * gdbtypes.c (init_float_type): Add byte_order parameter.
1039 * gdbtypes.h (init_float_type): Add byte_order parameter.
1041 2019-12-04 Tom Tromey <tromey@adacore.com>
1043 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1045 2019-12-04 Tom Tromey <tromey@adacore.com>
1047 * dwarf2read.c (process_structure_scope): Initialize
1050 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1052 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1053 add it into the search spec.
1054 (parse_max_results_option): New function.
1055 (mi_info_functions_or_variables): Parse -max-results flag and pass
1056 it to mi_symbol_info.
1057 (mi_cmd_symbol_info_modules): Likewise.
1058 (mi_cmd_symbol_info_types): Likewise.
1059 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1060 return type to bool, change result container into a set, and don't
1061 add new results if we have enough already.
1062 (global_symbol_searcher::add_matching_msymbols): Change return
1063 type to bool, and don't add new results if we have enough already.
1064 (sort_search_symbols_remove_dups): Delete.
1065 (global_symbol_searcher::search): Early exit from search loop when
1066 we have enough results. Use a std::set to collect the results
1067 from calling add_matching_symbols.
1068 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1070 (global_symbol_searcher) <m_max_search_results>: New member
1072 (global_symbol_searcher) <add_matching_symbols>: Update header
1073 comment and change return type to bool.
1074 (global_symbol_searcher) <add_matching_msymbols>: Update header
1075 comment and change return type to bool.
1077 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * symtab.c (symbol_search::compare_search_syms): Update header
1081 (global_symbol_searcher::is_suitable_msymbol): New function.
1082 (global_symbol_searcher::expand_symtabs): New function.
1083 (global_symbol_searcher::add_matching_symbols): New function.
1084 (global_symbol_searcher::add_matching_msymbols): New function.
1085 (global_symbol_searcher::search): Move most of the content
1086 into the new functions above, and call them as needed.
1087 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1089 (global_symbol_searcher) <add_matching_symbols>: New member
1091 (global_symbol_searcher) <add_matching_msymbols>: New member
1093 (global_symbol_searcher) <is_suitable_msymbol>: New member
1096 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1098 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1099 -symbol-info-module-variables entries.
1100 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1101 (mi_cmd_symbol_info_module_variables): Declare.
1102 * mi/mi-symbol-cmds.c
1103 (module_symbol_search_iterator): New typedef.
1104 (output_module_symbols_in_single_module_and_file): New function.
1105 (output_module_symbols_in_single_module): New function.
1106 (mi_info_module_functions_or_variables): New function.
1107 (mi_cmd_symbol_info_module_functions): New function.
1108 (mi_cmd_symbol_info_module_variables): New function.
1109 * NEWS: Mention new MI command.
1111 2019-12-03 Christian Biesinger <cbiesinger@google.com>
1113 * bcache.c (hash): Remove.
1114 (hash_continue): Remove.
1115 * bcache.h (hash): Remove.
1116 (hash_continue): Remove.
1117 (struct bcache) <ctor>: Update.
1118 * psymtab.c (psymbol_hash): Update.
1119 * stabsread.c (hashname): Update.
1120 * utils.h (fast_hash): Add an argument for a start value,
1123 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1124 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1125 (destroy_block_symbol_cache): New function.
1126 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1127 (resize_symbol_cache): Likewise.
1129 2019-12-02 Tom Tromey <tom@tromey.com>
1131 * unittests/tui-selftests.c (run_tests): Make conditional.
1132 (_initialize_tui_selftest): Make conditional.
1134 2019-12-02 Christian Biesinger <cbiesinger@google.com>
1136 * aix-thread.c (debug_aix_thread): Change type to bool.
1138 2019-12-02 Luis Machado <luis.machado@linaro.org>
1140 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1142 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1144 * dwarf2read.c (read_tag_string_type): Read the fields required to
1145 make a dynamic string, and possibly create a dynamic range for the
1147 (attr_to_dynamic_prop): Setup is_reference based on the type of
1148 attribute being processed.
1149 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1150 (resolve_dynamic_array): Rename to...
1151 (resolve_dynamic_array_or_string): ...this, update header comment,
1152 and accept TYPE_CODE_STRING.
1153 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1155 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1157 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1158 of its implementation from...
1159 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1162 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1164 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1165 create a range with stride where appropriate.
1166 * f-valprint.c: Include 'gdbarch.h'.
1167 (f77_print_array_1): Take the stride into account when walking the
1168 array. Also convert the stride into addressable units.
1169 * gdbtypes.c (create_range_type): Initialise the stride to
1171 (create_range_type_with_stride): New function, initialise the
1172 range as normal, and then setup the stride.
1173 (has_static_range): Include the stride here. Also change the
1174 return type to bool.
1175 (create_array_type_with_stride): Consider the range stride if the
1176 array isn't given its own stride.
1177 (resolve_dynamic_range): Resolve the stride if needed.
1178 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1179 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1180 (TYPE_BIT_STRIDE): Define.
1181 (TYPE_ARRAY_BIT_STRIDE): Define.
1182 (create_range_type_with_stride): Declare.
1183 * valarith.c (value_subscripted_rvalue): Take range stride into
1184 account when walking the array.
1186 2019-12-01 Tom Tromey <tom@tromey.com>
1188 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1191 2019-12-01 Tom Tromey <tom@tromey.com>
1193 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1195 * unittests/tui-selftests.c: New file.
1196 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1198 2019-12-01 Tom Tromey <tom@tromey.com>
1200 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1202 2019-12-01 Tom Tromey <tom@tromey.com>
1204 * NEWS: Document new settings.
1205 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1206 * tui/tui-win.c (_initialize_tui_win): Add border style
1208 * tui/tui-io.h (tui_apply_style): Declare.
1209 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1211 (apply_ansi_escape, tui_set_reverse_mode): Update.
1212 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1213 Add "skip_intensity" parameter.
1214 <changed>: New member.
1215 <do_set_value>: Declare.
1216 (tui_border_style, tui_active_border_style): Declare.
1217 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1219 (cli_style_option): Initialize "changed".
1220 (cli_style_option::do_set_value): New function.
1221 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1223 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1224 (_initialize_cli_style): Update. Create TUI border style
1227 2019-12-01 Tom Tromey <tom@tromey.com>
1229 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1231 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1233 * tui/tui-win.h (compact_source): Declare.
1234 * tui/tui-win.c (compact_source): New global.
1235 (tui_set_compact_source, tui_show_compact_source): New functions.
1236 (_initialize_tui_win): Add "compact-source" setting.
1237 * tui/tui-source.c (tui_source_window::set_contents): Handle
1238 compact_source setting.
1239 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1240 * NEWS: Document new setting.
1242 2019-11-30 Tom Tromey <tom@tromey.com>
1244 * dwarf2read.c (dwarf2_add_field): Include field offset when
1245 computing variant part length.
1247 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1248 * NEWS: Mention define-prefix. Tell that command names can now
1249 contain a . character.
1251 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1253 * command.h (valid_cmd_char_p): Declare.
1254 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1255 the check of valid command char.
1256 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1258 * cli/cli-script.c (validate_comname): Likewise.
1259 * completer.c (gdb_completer_command_word_break_characters):
1260 Do not remove . from the word break char, update comments.
1261 (complete_line_internal_1): Use valid_cmd_char_p.
1262 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1263 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1265 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1267 * cli/cli-script.c (do_define_command): Ensure a redefined
1268 prefix command is kept as a prefix command.
1269 (define_prefix_command): New function.
1270 (show_user_1): Report user defined prefixes.
1271 (_initialize_cli_script): Create the new 'define-prefix' command.
1272 Add completers for 'define' and 'document'.
1273 * top.c (execute_command): If command is a user-defined prefix only
1274 command, report the list of commands for this prefix command.
1276 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1278 * valops.c (find_oload_champ): Improve debug output.
1280 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1282 * valops.c (find_oload_champ): Print part of debug messages
1283 before the badness vector is std::move'd.
1285 2019-11-28 Tom Tromey <tom@tromey.com>
1287 * value.c (creal_internal_fn): Fix comment.
1289 2019-11-28 Tom Tromey <tom@tromey.com>
1291 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1292 flag_bound_evaluated>: Now unsigned.
1294 2019-11-28 Tom Tromey <tom@tromey.com>
1296 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1299 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1301 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1303 * jit.c (jit_unregister_code): Add debug print to match
1304 `jit_register_code`.
1306 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1308 * NEWS: Mention the new multithreaded symbol loading.
1310 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1312 * maint.c (n_worker_threads): Default to 0.
1313 (worker_threads_disabled): New function.
1314 * maint.h (worker_threads_disabled): New function.
1315 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1316 here if worker_threads_disabled () is true.
1317 (minimal_symbol_reader::install): Skip all threading if
1318 worker_threads_disabled () is true.
1320 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1322 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1323 hash code if possible.
1324 (add_minsym_to_demangled_hash_table): Likewise.
1325 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1326 on the background thread.
1327 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1330 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1332 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1333 of the mangled name on the background thread.
1334 * symtab.c (symbol_set_names): Allow passing in the hash of the
1336 * symtab.h (symbol_set_names): Likewise.
1338 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1340 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1341 physnames are computed for inherited DIEs.
1343 2019-11-27 Tom Tromey <tromey@adacore.com>
1345 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1347 * cp-support.c: Remove unnecessary backslashes.
1349 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1351 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1352 with sym->set_linkage_name.
1353 * coffread.c (coff_read_enum_type): Likewise.
1354 * mdebugread.c (parse_symbol): Likewise.
1355 * stabsread.c (patch_block_stabs): Likewise.
1356 (define_symbol): Likewise.
1357 (read_enum_type): Likewise.
1358 (common_block_end): Likewise.
1359 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1361 (SYMBOL_SET_LINKAGE_NAME): Remove.
1362 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1363 with sym->set_linkage_name.
1365 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1367 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1368 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1369 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1370 * NEWS: Mention new MI command.
1372 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1374 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1375 '-symbol-info-types', and '-symbol-info-variables'.
1376 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1377 (mi_cmd_symbol_info_types): Declare.
1378 (mi_cmd_symbol_info_variables): Declare.
1379 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1380 (output_debug_symbol): New function.
1381 (output_nondebug_symbol): New function.
1382 (mi_symbol_info): New function.
1383 (mi_info_functions_or_variables): New function.
1384 (mi_cmd_symbol_info_functions): New function.
1385 (mi_cmd_symbol_info_types): New function.
1386 (mi_cmd_symbol_info_variables): New function.
1387 * NEWS: Mention new commands.
1389 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1391 * symtab.c (symbol_to_info_string): New function, most content
1392 moved from print_symbol_info, but updated to return a std::string.
1393 (print_symbol_info): Update to use symbol_to_info_string and print
1395 * symtab.h (symbol_to_info_string): Declare new function.
1397 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1399 * python/python.c (gdbpy_rbreak): Convert to using
1400 global_symbol_searcher.
1401 * symtab.c (file_matches): Convert return type to bool, change
1402 file list to std::vector, update header comment.
1403 (search_symbols): Rename to...
1404 (global_symbol_searcher::search): ...this and update now its
1405 a member function of global_symbol_searcher. Take account of the
1406 changes to file_matches.
1407 (symtab_symbol_info): Convert to using global_symbol_searcher.
1408 (rbreak_command): Likewise.
1409 (search_module_symbols): Likewise.
1410 * symtab.h (enum symbol_search): Update comment.
1411 (search_symbols): Remove declaration.
1412 (class global_symbol_searcher): New class.
1414 2019-11-26 Tom Tromey <tromey@adacore.com>
1416 * cp-support.c (_initialize_cp_support): Conditionally initialize
1417 gdb_demangle_attempt_core_dump.
1419 2019-11-26 Tom Tromey <tom@tromey.com>
1421 * python/py-function.c (fnpy_init): Update.
1422 * value.h (add_internal_function): Adjust declaration.
1423 * value.c (function_destroyer): Remove.
1424 (do_add_internal_function): Don't set destroyer or copy name.
1425 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1427 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1428 (cmdpy_init): Set name_allocated.
1429 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1431 (~cmd_list_element): Free "name" if needed.
1433 2019-11-26 Tom Tromey <tom@tromey.com>
1435 * value.h (add_internal_function): Add new overload. Move
1436 documentation from value.h.
1437 * value.c (do_add_internal_function): New function.
1438 (add_internal_function): Use it. Add new overload.
1439 (function_destroyer): Don't free doc.
1440 * python/py-function.c (fnpy_init): Update.
1442 2019-11-26 Tom Tromey <tom@tromey.com>
1444 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1445 (cmdpy_init): Set "doc_allocated".
1447 2019-11-26 Tom Tromey <tom@tromey.com>
1449 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1450 name of worker thread.
1451 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1453 * configure, config.in: Rebuild.
1455 2019-11-26 Tom Tromey <tom@tromey.com>
1457 * python/python.c (class gdbpy_gil): New.
1458 (struct gdbpy_event): Add constructor, destructor, operator().
1459 (gdbpy_post_event): Use run_on_main_thread.
1460 (gdbpy_initialize_events): Remove.
1461 (do_start_initialization): Update.
1463 2019-11-26 Tom Tromey <tom@tromey.com>
1466 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1467 commands. Call update_thread_pool_size.
1468 (update_thread_pool_size, maintenance_set_worker_threads): New
1470 (n_worker_threads): New global.
1472 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1473 Tom Tromey <tom@tromey.com>
1475 * minsyms.c (minimal_symbol_reader::install): Use
1477 * gdbsupport/parallel-for.h: New file.
1478 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1480 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1481 Tom Tromey <tom@tromey.com>
1483 * gdbsupport/thread-pool.h: New file.
1484 * gdbsupport/thread-pool.c: New file.
1485 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1486 (HFILES_NO_SRCDIR): Add thread-pool.h.
1488 2019-11-26 Tom Tromey <tom@tromey.com>
1490 * event-top.h (thread_local_segv_handler): Declare.
1491 * event-top.c (thread_local_segv_handler): New global.
1492 (install_handle_sigsegv, handle_sigsegv): New functions.
1493 (async_init_signals): Install SIGSEGV handler.
1494 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1496 (report_failed_demangle): New function.
1497 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1498 handler-setting code, instead use segv_handler. Run warning code
1501 2019-11-26 Tom Tromey <tom@tromey.com>
1503 * run-on-main-thread.c: New file.
1504 * run-on-main-thread.h: New file.
1505 * unittests/main-thread-selftests.c: New file.
1506 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1507 main-thread-selftests.c.
1508 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1509 (COMMON_SFILES): Add run-on-main-thread.c.
1511 2019-11-26 Tom Tromey <tom@tromey.com>
1513 * main.c (setup_alternate_signal_stack): Remove.
1514 (captured_main_1): Use gdb::alternate_signal_stack.
1515 * gdbsupport/alt-stack.h: New file.
1517 2019-11-26 Tom Tromey <tom@tromey.com>
1519 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1521 (save_original_signals_state, restore_original_signals_state): Use
1523 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1524 (_initialize_linux_nat): Use gdb_sigmask.
1525 * guile/guile.c (_initialize_guile): Use block_signals.
1526 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1527 * gdbsupport/gdb-sigmask.h: New file.
1528 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1529 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1530 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1532 * configure, config.in: Rebuild.
1533 * gdbsupport/block-signals.h: New file.
1535 2019-11-26 Tom Tromey <tom@tromey.com>
1537 * acinclude.m4: Include ax_pthread.m4.
1538 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1539 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1540 (CLIBS): Use PTHREAD_LIBS.
1541 (aclocal_m4_deps): Add ax_pthread.m4.
1542 * config.in, configure: Rebuild.
1543 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1545 2019-11-26 Tom Tromey <tom@tromey.com>
1547 * symtab.h (struct minimal_symbol) <name_set>: New member.
1548 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1549 Don't call symbol_set_names.
1550 (minimal_symbol_reader::install): Call symbol_set_names.
1552 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1554 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1555 restore_active_ext_lang, as GIL is needed for (indirectly)
1556 called PyOS_InterruptOccurred.
1558 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1560 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1563 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1565 * remote-sim.c (simulator_command): Make static, remove
1568 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1570 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1572 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1573 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1575 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1577 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1579 * unittests/basic_string_view/element_access/char/1.cc (test01):
1582 * unittests/basic_string_view/element_access/char/empty.cc (main):
1584 * unittests/basic_string_view/element_access/char/front_back.cc
1587 * unittests/basic_string_view/inserters/char/2.cc (test05):
1590 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1593 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1596 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1598 * unittests/basic_string_view/operations/compare/char/1.cc
1601 * unittests/basic_string_view/operations/compare/char/13650.cc
1603 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1606 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1609 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1612 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1615 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1618 * unittests/basic_string_view/operations/find/char/4.cc (main):
1620 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1623 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1626 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1629 * unittests/basic_string_view/operations/substr/char/1.cc
1632 * unittests/basic_string_view/operators/char/2.cc (main):
1634 * unittests/optional/assignment/1.cc (test): Likewise.
1635 * unittests/optional/assignment/2.cc (test): Likewise.
1636 * unittests/optional/assignment/3.cc (test): Likewise.
1637 * unittests/optional/assignment/4.cc (test): Likewise.
1638 * unittests/optional/assignment/5.cc (test): Likewise.
1639 * unittests/optional/assignment/6.cc (test): Likewise.
1640 * unittests/optional/assignment/7.cc (test): Likewise.
1641 * unittests/optional/cons/copy.cc (test): Likewise.
1642 * unittests/optional/cons/default.cc (test): Likewise.
1643 * unittests/optional/cons/move.cc (test): Likewise.
1644 * unittests/optional/cons/value.cc (test): Likewise.
1645 * unittests/optional/in_place.cc (test): Likewise.
1646 * unittests/optional/observers/1.cc (test): Likewise.
1647 * unittests/optional/observers/2.cc (test): Likewise.
1649 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1651 * tui-win.h (tui_set_var_cmd): Remove.
1652 * tui-win.c (tui_set_var_cmd): Make static.
1654 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1656 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1657 rbreak_command_wrapper): Remove.
1658 * symtab.c (rbreak_command_wrapper): Remove.
1660 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1662 * inferior.h (info_terminal_command): Remove declaration.
1663 * inflow.c (info_terminal_command): Make static.
1665 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1667 * inferior.c (exit_inferior_silent): Remove.
1669 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1671 * dictionary.c (dict_empty, mdict_empty): Remove.
1672 * dictionary.c (mdict_empty): Remove.
1674 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1676 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1677 (arc_insn_get_memory_offset): Likewise.
1678 (arc_insn_dump): Likewise.
1679 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1680 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1681 * dictionary.c (dict_iterator_next): Likewise.
1682 (dict_iter_match_first): Likewise.
1683 (dict_iter_match_next): Likewise.
1684 * f-lang.c (evaluate_subexp_f): Likewise.
1685 * hppa-tdep.c (hppa_read_pc): Likewise.
1686 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1687 * parse.c (write_exp_elt_msym): Likewise.
1688 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1689 * remote.c (remote_packet_size): Likewise.
1690 (remote_notif_stop_parse): Likewise.
1691 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1692 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1693 * source.c (prepare_path_for_appending): Likewise.
1694 * sparc64-linux-tdep.c
1695 (sparc64_linux_handle_segmentation_fault); Likewise.
1696 * stack.c (frame_selection_by_function_completer): Likewise.
1698 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1700 * completer.c (set_gdb_completion_word_break_characters):
1703 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1705 * dwarf-index-write.c: Include dwarf-index-write.h.
1706 * mi/mi-interp.c: Include mi/mi-interp.h.
1708 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1710 * aarch32-tdep.c: Include aarch32-tdep.h.
1711 * aarch32-tdep.h: Forward-declare struct target_desc.
1713 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1715 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1717 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1718 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1720 2019-11-25 Tom de Vries <tdevries@suse.de>
1722 * contrib/words.sh: Add -c option.
1724 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1726 * solib.c (solib_find_1): Change int to bool.
1727 (exec_file_find): Change int to bool.
1728 (solib_find): Change int to bool.
1729 (solib_read_symbols): Change int to bool.
1730 (solib_used): Change int to bool.
1731 (solib_add): Change int to bool.
1732 (info_sharedlibrary_command): Change int to bool.
1733 (solib_contains_address_p): Change int to bool.
1734 (solib_keep_data_in_core): Change int to bool.
1735 (in_solib_dynsym_resolve_code): Change int to bool.
1736 (reload_shared_libraries_1): Change int to bool.
1737 (gdb_sysroot_changed): Change int to bool.
1738 * solib.h (solib_read_symbols): Change int to bool.
1739 (solib_contains_address_p): Change int to bool.
1740 (solib_keep_data_in_core): Change int to bool.
1741 (in_solib_dynsym_resolve_code): Change int to bool.
1742 (libpthread_name_p): Change int to bool.
1744 2019-11-25 Luis Machado <luis.machado@linaro.org>
1746 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1747 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1748 (remote_packet_max_chars): New static global.
1749 (show_remote_packet_max_chars): New function.
1750 (remote_target::putpkt_binary): Adjust to use new
1751 remote_packet_max_chars option.
1752 (remote_target::getpkt_or_notif_sane_1): Likewise.
1753 (_initialize_remote): Register new remote-packet-max-chars option.
1755 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1757 * m68k-linux-nat.c: Include gdbarch.h.
1759 2019-11-24 Tom Tromey <tom@tromey.com>
1761 * symfile.c (read_symbols): Update.
1762 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1764 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1765 (psym_lookup_symbol, psym_find_last_source_symtab)
1766 (psym_forget_cached_source_info, psym_print_stats)
1767 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1768 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1769 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1770 (psym_find_compunit_symtab_by_address)
1771 (maintenance_print_psymbols, maintenance_info_psymtabs)
1772 (maintenance_check_psymtabs): Update.
1773 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1776 2019-11-22 Tom Tromey <tom@tromey.com>
1778 * observable.h: Update comments.
1780 2019-11-22 Tom Tromey <tromey@adacore.com>
1782 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1783 (print_ada_task_info): Don't try to fetch thread id if task is not
1786 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1788 * ada-exp.y: Update.
1789 * ada-lang.c (sort_choices): Update.
1790 (ada_print_symbol_signature): Update.
1791 (resolve_subexp): Update.
1792 (ada_parse_renaming): Update.
1793 (ada_read_renaming_var_value): Update.
1794 (lesseq_defined_than): Update.
1795 (remove_extra_symbols): Update.
1796 (remove_irrelevant_renamings): Update.
1797 (ada_add_block_symbols): Update.
1798 (ada_collect_symbol_completion_matches): Update.
1799 (ada_is_renaming_symbol): Update.
1800 (aggregate_assign_from_choices): Update.
1801 (ada_evaluate_subexp): Update.
1802 (ada_has_this_exception_support): Update.
1803 (ada_is_non_standard_exception_sym): Update.
1804 (ada_add_exceptions_from_frame): Update.
1805 (ada_add_global_exceptions): Update.
1806 (ada_print_subexp): Update.
1807 * ax-gdb.c (gen_var_ref): Update.
1808 (gen_maybe_namespace_elt): Update.
1809 (gen_expr_for_cast): Update.
1812 * blockframe.c (find_pc_partial_function): Update.
1813 * breakpoint.c (print_breakpoint_location): Update.
1814 (update_static_tracepoint): Update.
1815 * btrace.c (ftrace_print_function_name): Update.
1816 (ftrace_function_switched): Update.
1817 * buildsym.c (find_symbol_in_list): Update.
1819 * c-typeprint.c (c_print_typedef): Update.
1820 (c_type_print_template_args): Update.
1821 * cli/cli-cmds.c (edit_command): Update.
1822 (list_command): Update.
1823 (print_sal_location): Update.
1824 * coffread.c (patch_opaque_types): Update.
1825 (process_coff_symbol): Update.
1826 (coff_read_enum_type): Update.
1827 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1828 (convert_one_symbol): Update.
1829 (hash_symname): Update.
1830 (eq_symname): Update.
1831 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1832 * compile/compile-cplus-types.c (debug_print_scope): Update.
1833 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1834 * compile/compile-object-load.c (get_out_value_type): Update.
1835 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1836 (search_symbol_list): Update.
1837 (cp_lookup_symbol_imports_or_template): Update.
1838 * cp-support.c (overload_list_add_symbol): Update.
1839 * ctfread.c (psymtab_to_symtab): Update.
1840 * dbxread.c (cp_set_block_scope): Update.
1841 * dictionary.c (iter_match_first_hashed): Update.
1842 (iter_match_next_hashed): Update.
1843 (insert_symbol_hashed): Update.
1844 (iter_match_next_linear): Update.
1845 * dictionary.h: Update.
1846 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1847 (locexpr_describe_location_piece): Update.
1848 (locexpr_describe_location_1): Update.
1849 (locexpr_generate_c_location): Update.
1850 (loclist_describe_location): Update.
1851 (loclist_generate_c_location): Update.
1852 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1853 (read_func_scope): Update.
1854 (process_enumeration_scope): Update.
1855 (new_symbol): Update.
1856 (dwarf2_const_value): Update.
1857 (dwarf2_symbol_mark_computed): Update.
1858 * eval.c (evaluate_funcall): Update.
1859 (evaluate_subexp_standard): Update.
1860 * expprint.c (print_subexp_standard): Update.
1861 (dump_subexp_body_standard): Update.
1862 * f-valprint.c (info_common_command_for_block): Update.
1863 * findvar.c (get_hosting_frame): Update.
1864 (default_read_var_value): Update.
1865 * go-lang.c (go_symbol_package_name): Update.
1866 * guile/scm-block.c (bkscm_print_block_smob): Update.
1867 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1868 (gdbscm_symbol_name): Update.
1869 (gdbscm_symbol_linkage_name): Update.
1870 (gdbscm_symbol_print_name): Update.
1871 * infcall.c (get_function_name): Update.
1872 * infcmd.c (jump_command): Update.
1873 (finish_command): Update.
1874 * infrun.c (insert_exception_resume_breakpoint): Update.
1875 * linespec.c (canonicalize_linespec): Update.
1876 (create_sals_line_offset): Update.
1877 (convert_linespec_to_sals): Update.
1878 (complete_label): Update.
1879 (find_label_symbols_in_block): Update.
1880 * m2-typeprint.c (m2_print_typedef): Update.
1881 * mdebugread.c (mdebug_reg_to_regnum): Update.
1882 (parse_symbol): Update.
1883 (mylookup_symbol): Update.
1884 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1885 (list_args_or_locals): Update.
1886 * objc-lang.c (compare_selectors): Update.
1887 (info_selectors_command): Update.
1888 (compare_classes): Update.
1889 (info_classes_command): Update.
1890 (find_imps): Update.
1891 * p-typeprint.c (pascal_print_typedef): Update.
1892 * printcmd.c (build_address_symbolic): Update.
1893 (info_address_command): Update.
1894 (print_variable_and_value): Update.
1895 * python/py-framefilter.c (extract_sym): Update.
1896 (py_print_single_arg): Update.
1897 * python/py-symbol.c (sympy_str): Update.
1898 (sympy_get_name): Update.
1899 (sympy_get_linkage_name): Update.
1900 * python/python.c (gdbpy_rbreak): Update.
1901 * record-btrace.c (btrace_get_bfun_name): Update.
1902 (btrace_call_history): Update.
1903 * rust-lang.c (rust_print_typedef): Update.
1904 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1905 * stabsread.c (stab_reg_to_regnum): Update.
1906 (define_symbol): Update.
1907 (read_enum_type): Update.
1908 (common_block_end): Update.
1909 (cleanup_undefined_types_1): Update.
1910 (scan_file_globals): Update.
1911 * stack.c (print_frame_arg): Update.
1912 (print_frame_args): Update.
1913 (find_frame_funname): Update.
1914 (info_frame_command_core): Update.
1915 (iterate_over_block_locals): Update.
1916 (print_block_frame_labels): Update.
1917 (do_print_variable_and_value): Update.
1918 (iterate_over_block_arg_vars): Update.
1919 (return_command): Update.
1920 * symmisc.c (dump_symtab_1): Update.
1921 (print_symbol): Update.
1922 * symtab.c (eq_symbol_entry): Update.
1923 (symbol_cache_dump): Update.
1924 (lookup_language_this): Update.
1925 (find_pc_sect_line): Update.
1926 (skip_prologue_sal): Update.
1927 (symbol_search::compare_search_syms): Update.
1928 (treg_matches_sym_type_name): Update.
1929 (search_symbols): Update.
1930 (print_symbol_info): Update.
1931 (rbreak_command): Update.
1932 (completion_list_add_symbol): Update.
1933 (find_gnu_ifunc): Update.
1934 (get_symbol_address): Update.
1935 (search_module_symbols): Update.
1936 (info_module_subcommand): Update.
1937 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1938 (SYMBOL_LINKAGE_NAME): Remove.
1939 (SYMBOL_DEMANGLED_NAME): Remove.
1940 (SYMBOL_PRINT_NAME): Remove.
1941 (SYMBOL_SEARCH_NAME): Remove.
1942 * tracepoint.c (set_traceframe_context): Update.
1943 (validate_actionline): Update.
1944 (collection_list::collect_symbol): Update.
1945 (encode_actions_1): Update.
1946 (info_scope_command): Update.
1947 (print_one_static_tracepoint_marker): Update.
1948 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1949 * valops.c (address_of_variable): Update.
1950 (find_overload_match): Update.
1951 (find_oload_champ): Update.
1953 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1955 * ada-lang.c (ada_lookup_simple_minsym): Update.
1956 (ada_collect_symbol_completion_matches): Update.
1957 * ada-tasks.c (read_atcb): Update.
1958 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1959 (amd64_windows_skip_trampoline_code): Update.
1960 * arm-tdep.c (skip_prologue_function): Update.
1961 (arm_skip_stack_protector): Update.
1962 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1963 (arm_wince_skip_main_prologue): Update.
1964 * ax-gdb.c (gen_expr): Update.
1965 * block.c (call_site_for_pc): Update.
1966 * blockframe.c (find_pc_partial_function): Update.
1967 * breakpoint.c (set_breakpoint_location_function): Update.
1968 * btrace.c (ftrace_print_function_name): Update.
1969 (ftrace_function_switched): Update.
1970 * c-valprint.c (print_unpacked_pointer): Update.
1971 * coffread.c (coff_symfile_read): Update.
1972 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1973 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1974 * dwarf-index-write.c (write_psymbols): Update.
1975 * dwarf2loc.c (call_site_to_target_addr): Update.
1976 (func_verify_no_selftailcall): Update.
1977 (tailcall_dump): Update.
1978 (call_site_find_chain_1): Update.
1979 (dwarf_expr_reg_to_entry_parameter): Update.
1980 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1981 * eval.c (evaluate_funcall): Update.
1982 (evaluate_subexp_standard): Update.
1983 (evaluate_subexp_for_sizeof): Update.
1984 * expprint.c (print_subexp_standard): Update.
1985 (dump_subexp_body_standard): Update.
1986 * frame.c (get_prev_frame_always_1): Update.
1987 * frv-tdep.c (frv_skip_main_prologue): Update.
1988 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1989 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1990 (gnuv3_get_typename_from_type_info): Update.
1991 (gnuv3_skip_trampoline): Update.
1992 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1993 * i386-tdep.c (i386_skip_main_prologue): Update.
1994 (i386_pe_skip_trampoline_code): Update.
1995 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1996 * infcall.c (get_function_name): Update.
1997 * linespec.c (minsym_found): Update.
1998 * linux-fork.c (info_checkpoints_command): Update.
1999 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2000 (m32c_m16c_pointer_to_address): Update.
2001 * maint.c (maintenance_translate_address): Update.
2002 * minsyms.c (add_minsym_to_hash_table): Update.
2003 (add_minsym_to_demangled_hash_table): Update.
2004 (lookup_minimal_symbol_mangled): Update.
2005 (lookup_minimal_symbol_demangled): Update.
2006 (lookup_minimal_symbol_linkage): Update.
2007 (lookup_minimal_symbol_text): Update.
2008 (lookup_minimal_symbol_by_pc_name): Update.
2009 (minimal_symbol_is_less_than): Update.
2010 (compact_minimal_symbols): Update.
2011 (build_minimal_symbol_hash_tables): Update.
2012 (find_solib_trampoline_target): Update.
2013 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2014 (mips_skip_pic_trampoline_code): Update.
2015 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2016 * objc-lang.c (info_selectors_command): Update.
2017 (info_classes_command): Update.
2018 (find_methods): Update.
2019 (find_imps): Update.
2020 * p-valprint.c (pascal_val_print): Update.
2021 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2022 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2023 * printcmd.c (build_address_symbolic): Update.
2024 (info_symbol_command): Update.
2025 * psymtab.c (psymbol_name_matches): Update.
2026 (match_partial_symbol): Update.
2027 (lookup_partial_symbol): Update.
2028 (print_partial_symbols): Update.
2029 (sort_pst_symbols): Update.
2030 (maintenance_check_psymtabs): Update.
2031 * python/py-framefilter.c (py_print_frame): Update.
2032 * python/python.c (gdbpy_rbreak): Update.
2033 * record-btrace.c (btrace_get_bfun_name): Update.
2034 (btrace_call_history): Update.
2035 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2036 (rs6000_skip_trampoline_code): Update.
2037 * sol-thread.c (info_cb): Update.
2038 * stabsread.c (scan_file_globals): Update.
2039 * stack.c (find_frame_funname): Update.
2040 (info_frame_command_core): Update.
2041 * symmisc.c (dump_msymbols): Update.
2042 * symtab.c (symbol_natural_name): Rename to..,
2043 (general_symbol_info::natural_name): ...this.
2044 (symbol_demangled_name): Rename to...
2045 (general_symbol_info::demangled_name): ...this.
2046 (symbol_search_name): Rename to...
2047 (general_symbol_info::search_name): ...this.
2048 (symbol_matches_search_name): Update.
2049 (find_pc_sect_line): Update.
2050 (skip_prologue_sal): Update.
2051 (search_symbols): Update.
2052 (print_msymbol_info): Update.
2053 (rbreak_command): Update.
2054 (completion_list_add_msymbol): Update.
2055 (completion_list_objc_symbol): Update.
2056 (get_msymbol_address): Update.
2057 * symtab.h (struct general_symbol_info): Add member functions
2058 natural_name (), linkage_name (), print_name (), demangled_name (),
2060 (SYMBOL_NATURAL_NAME): Update.
2061 (symbol_natural_name): Move to a member function on general_symbol_info.
2062 (SYMBOL_DEMANGLED_NAME): Update.
2063 (symbol_demangled_name): Move to a member function on
2064 general_symbol_info.
2065 (SYMBOL_SEARCH_NAME): Update.
2066 (symbol_search_name): Move to a member function on general_symbol_info.
2067 (MSYMBOL_NATURAL_NAME): Remove.
2068 (MSYMBOL_LINKAGE_NAME): Remove.
2069 (MSYMBOL_PRINT_NAME): Remove.
2070 (MSYMBOL_DEMANGLED_NAME): Remove.
2071 (MSYMBOL_SEARCH_NAME): Remove.
2072 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2074 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2076 * symtab.c (create_demangled_names_hash): Use per_bfd->
2077 minimal_symbol_count for computing the initial size, if greater
2078 than our default size.
2080 2019-11-22 Tom de Vries <tdevries@suse.de>
2082 * contrib/words.sh: Improve words extraction.
2084 2019-11-22 Tom de Vries <tdevries@suse.de>
2086 * contrib/words.sh: Combine sed invocations.
2088 2019-11-21 Christian Biesinger <cbiesinger@google.com>
2090 * Makefile.in: Update.
2091 * demangle.c: Rename to...
2092 * gdb-demangle.c: ..this.
2093 (is_cplus_marker): Change return type to bool.
2094 (_initialize_demangler): Rename to...
2095 (_initialize_gdb_demangle): ...this.
2096 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2097 * symtab.h (demangle): Remove declaration; instead include
2100 2019-11-21 Tom Tromey <tromey@adacore.com>
2102 * gdbsupport/format.c (format_pieces): Parse %I64d.
2103 * unittests/format_pieces-selftests.c (test_windows_formats): New
2105 (run_tests): Call it.
2107 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2109 Byte reverse display of variables with DW_END_big, DW_END_little
2110 (DW_AT_endianity) dwarf attributes if different than the native
2112 * ada-lang.c (ada_value_binop):
2113 Use type_byte_order instead of gdbarch_byte_order.
2114 * ada-valprint.c (printstr):
2115 (ada_val_print_string):
2116 * ada-lang.c (value_pointer):
2118 Use type_byte_order instead of gdbarch_byte_order.
2119 * c-lang.c (c_get_string):
2120 Use type_byte_order instead of gdbarch_byte_order.
2121 * c-valprint.c (c_val_print_array):
2122 Use type_byte_order instead of gdbarch_byte_order.
2123 * cp-valprint.c (cp_print_class_member):
2124 Use type_byte_order instead of gdbarch_byte_order.
2125 * dwarf2loc.c (rw_pieced_value):
2126 Use type_byte_order instead of gdbarch_byte_order.
2127 * dwarf2read.c (read_base_type): Handle DW_END_big,
2129 * f-lang.c (f_get_encoding):
2130 Use type_byte_order instead of gdbarch_byte_order.
2131 * findvar.c (default_read_var_value):
2132 Use type_byte_order instead of gdbarch_byte_order.
2133 * gdbtypes.c (check_types_equal):
2134 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2135 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2136 and TYPE_ENDIANITY_LITTLE if set.
2137 (type_byte_order): new function.
2138 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2139 (struct main_type) <flag_endianity_not_default>:
2141 (type_byte_order): New function.
2142 * infcmd.c (default_print_one_register_info):
2143 Use type_byte_order instead of gdbarch_byte_order.
2144 * p-lang.c (pascal_printstr):
2145 Use type_byte_order instead of gdbarch_byte_order.
2146 * p-valprint.c (pascal_val_print):
2147 Use type_byte_order instead of gdbarch_byte_order.
2148 * printcmd.c (print_scalar_formatted):
2149 Use type_byte_order instead of gdbarch_byte_order.
2150 * solib-darwin.c (darwin_current_sos):
2151 Use type_byte_order instead of gdbarch_byte_order.
2152 * solib-svr4.c (solib_svr4_r_ldsomap):
2153 Use type_byte_order instead of gdbarch_byte_order.
2154 * stap-probe.c (stap_modify_semaphore):
2155 Use type_byte_order instead of gdbarch_byte_order.
2156 * target-float.c (target_float_same_format_p):
2157 Use type_byte_order instead of gdbarch_byte_order.
2158 * valarith.c (scalar_binop):
2160 Use type_byte_order instead of gdbarch_byte_order.
2161 * valops.c (value_cast):
2162 Use type_byte_order instead of gdbarch_byte_order.
2163 * valprint.c (generic_emit_char):
2166 Use type_byte_order instead of gdbarch_byte_order.
2167 * value.c (unpack_long):
2168 (unpack_bits_as_long):
2169 (unpack_value_bitfield):
2172 (pack_unsigned_long):
2173 Use type_byte_order instead of gdbarch_byte_order.
2174 * findvar.c (unsigned_pointer_to_address):
2175 (signed_pointer_to_address):
2176 (unsigned_address_to_pointer):
2177 (address_to_signed_pointer):
2178 (default_read_var_value):
2179 (default_value_from_register):
2180 Use type_byte_order instead of gdbarch_byte_order.
2181 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2182 Use type_byte_order instead of gdbarch_byte_order.
2183 * riscv-tdep.c (riscv_print_one_register_info):
2184 Use type_byte_order instead of gdbarch_byte_order.
2186 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2188 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2189 (current_ui_gdb_stdin_ptr): Likewise.
2190 (current_ui_gdb_stderr_ptr): Likewise.
2191 (current_ui_gdb_stdlog_ptr): Likewise.
2192 (current_ui_current_uiout_ptr): Likewise.
2193 (gen_ret_current_ui_field_ptr): Remove.
2195 2019-11-21 Tom de Vries <tdevries@suse.de>
2198 * cli/cli-script.c (execute_control_command): Only switch to
2199 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2201 2019-11-19 Tom Tromey <tom@tromey.com>
2203 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2204 Now static. Change type of "name".
2205 (tui_set_win_height_command): Don't copy "arg".
2206 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2207 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2209 2019-11-19 Ali Tamur <tamur@google.com>
2211 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2212 "if (attr != nullptr)".
2213 (dwarf2_find_base_address): Likewise.
2214 (dwarf2_build_include_psymtabs): Likewise.
2215 (read_cutu_die_from_dwo): Likewise.
2216 (read_func_scope): Likewise.
2217 (read_call_site_scope): Likewise.
2218 (dwarf2_get_pc_bounds): Likewise.
2219 (dwarf2_record_block_ranges): Likewise.
2220 (dwarf2_add_field): Likewise.
2221 (dwarf2_add_member_fn): Likewise.
2222 (read_structure_type): Likewise.
2223 (read_enumeration_type): Likewise.
2224 (read_array_type): Likewise.
2225 (read_array_order): Likewise.
2226 (read_set_type): Likewise.
2227 (read_common_block): Likewise.
2228 (read_tag_reference_type): Likewise.
2229 (read_tag_string_type): Likewise.
2230 (read_subroutine_type): Likewise.
2231 (read_base_type): Likewise.
2232 (read_subrange_type): Likewise.
2233 (new_symbol): Likewise.
2234 (prepare_one_comp_unit): Likewise.
2236 2019-11-19 Tom Tromey <tromey@adacore.com>
2238 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2239 result in error when DebugActiveProcess fails.
2241 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2242 Pedro Alves <palves@redhat.com>
2244 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2245 * target.c (target_stack::push): Call 'unpush' if there's a
2246 target on top of the stack.
2248 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2250 * python/py-block.c (blpy_dealloc): Call tp_free.
2251 (blpy_block_syms_dealloc): Likewise.
2252 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2253 * python/py-inferior.c (infpy_dealloc): Likewise.
2254 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2255 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2256 * python/py-symbol.c (sympy_dealloc): Likewise.
2257 * python/py-symtab.c (stpy_dealloc): Likewise.
2258 * python/py-type.c (typy_iterator_dealloc): Likewise.
2260 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2262 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2263 constructor instead of using a class initializer.
2265 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2267 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2268 * configure: Regenerate.
2269 * configure.ac: Don't source common.host.
2270 * gdbsupport/common.host: Remove.
2271 * gdbsupport/mingw-strerror.c: Remove.
2272 * gdbsupport/posix-strerror.c: Rename to...
2273 * gdbsupport/safe-strerror.c: ...this.
2275 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2277 * maint.c (scoped_command_stats::print_time): Use localtime_r
2278 instead of localtime (provided through gnulib if necessary).
2279 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2282 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2284 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2285 avoid compile errors.
2287 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2289 * config.in: Regenerate.
2290 * configure: Regenerate.
2291 * gdbsupport/common.m4: No longer check for strerror_r.
2292 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2293 POSIX version of strerror_r, now that gnulib provides it if
2296 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2298 * README (`configure' options): Update.
2300 2019-11-14 Tom Tromey <tromey@adacore.com>
2302 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2303 expected type for the RHS if the LHS is a convenience variable.
2305 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2307 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2308 Provide explicit default and copy constructor.
2310 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2312 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2313 only call Py_INCREF (newbp) in the bppy_pending_object case.
2315 2019-11-13 Tom Tromey <tromey@adacore.com>
2318 * psympriv.h (partial_symbol): Remove static assert.
2319 * symtab.h (general_symbol_info, symbol): Remove static assert.
2321 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2323 * gdbsupport/format.c (format_pieces::format_pieces): Support
2324 printf 'z' size modifier.
2325 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2326 * printcmd.c (ui_printf): Handle size_t_arg.
2327 * ui-out.c (ui_out::vmessage): Likewise.
2328 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2330 (run_tests): Call test_format_int_sizes.
2332 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2334 * ada-exp.y (write_ambiguous_var): Update.
2335 * buildsym.c (add_symbol_to_list): Update.
2336 * dwarf2read.c (read_variable): Update.
2337 (new_symbol): Update.
2338 * jit.c (finalize_symtab): Update.
2339 * language.c (language_alloc_type_symbol): Update.
2340 * symtab.c (fixup_symbol_section): Update.
2341 (initialize_objfile_symbol_1): Move code to...
2342 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2343 (allocate_symbol): Update.
2344 (allocate_template_symbol): Update.
2345 (get_symbol_address): Update.
2346 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2347 of having as a field, and add a constructor.
2348 (SYMBOL_VALUE): Update.
2349 (SYMBOL_VALUE_ADDRESS): Update.
2350 (SET_SYMBOL_VALUE_ADDRESS): Update.
2351 (SYMBOL_VALUE_BYTES): Update.
2352 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2353 (SYMBOL_BLOCK_VALUE): Update.
2354 (SYMBOL_VALUE_CHAIN): Update.
2355 (SYMBOL_LANGUAGE): Update.
2356 (SYMBOL_SECTION): Update.
2357 (SYMBOL_OBJ_SECTION): Update.
2358 (SYMBOL_SET_LANGUAGE): Update.
2359 (SYMBOL_SET_LINKAGE_NAME): Update.
2360 (SYMBOL_SET_NAMES): Update.
2361 (SYMBOL_NATURAL_NAME): Update.
2362 (SYMBOL_LINKAGE_NAME): Update.
2363 (SYMBOL_DEMANGLED_NAME): Update.
2364 (SYMBOL_SEARCH_NAME): Update.
2365 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2366 (struct symbol): Update.
2367 (struct template_symbol): Update.
2368 (struct rust_vtable_symbol): Update.
2369 * xcoffread.c (SYMBOL_DUP): Update.
2371 2019-11-12 Tom Tromey <tom@tromey.com>
2373 * tui/tui-layout.c (show_layout): Set current_layout.
2374 (show_source_disasm_command, show_data)
2375 (show_source_or_disasm_and_command): Don't set current_layout.
2377 2019-11-12 Tom Tromey <tom@tromey.com>
2379 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2381 2019-11-12 Tom Tromey <tom@tromey.com>
2383 * tui/tui-win.c (resize_message): New global.
2384 (show_tui_resize_message): New function.
2385 (tui_async_resize_screen): Print message if requested.
2386 (_initialize_tui_win): Add tui-resize-message setting.
2387 * NEWS: Add entry for new commands.
2389 2019-11-11 Tom Tromey <tom@tromey.com>
2391 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2394 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2396 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2398 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2400 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2402 * python/python-internal.h (gdbpy_lookup_static_symbols):
2403 Declare new function.
2404 * python/python.c (python_GdbMethods): Add
2405 gdb.lookup_static_symbols method.
2406 * NEWS: Mention gdb.lookup_static_symbols.
2408 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2410 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2411 static block of current object file first. Also fix typo in
2414 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2416 * stack.c (set_last_displayed_sal): Delete.
2417 (last_displayed_sal_valid): Delete.
2418 (last_displayed_pspace): Delete.
2419 (last_displayed_addr): Delete.
2420 (last_displayed_symtab): Delete.
2421 (last_displayed_line): Delete.
2422 (class last_displayed_symtab_info_type): New.
2423 (last_displayed_symtab_info): New static global variable.
2424 (print_frame_info): Call methods on last_displayed_symtab_info.
2425 (clear_last_displayed_sal): Update header comment, and make use of
2426 last_displayed_symtab_info.
2427 (last_displayed_sal_is_valid): Likewise.
2428 (get_last_displayed_pspace): Likewise.
2429 (get_last_displayed_addr): Likewise.
2430 (get_last_displayed_symtab): Likewise.
2431 (get_last_displayed_line): Likewise.
2432 (get_last_displayed_sal): Likewise.
2433 * stack.h (clear_last_displayed_sal): Update header comment.
2434 (last_displayed_sal_is_valid): Likewise.
2435 (get_last_displayed_pspace): Likewise.
2436 (get_last_displayed_addr): Likewise.
2437 (get_last_displayed_symtab): Likewise.
2438 (get_last_displayed_line): Likewise.
2439 (get_last_displayed_sal): Likewise.
2441 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2443 * stack.c (frame_show_address): Convert return type to bool.
2444 * stack.h (frame_show_address): Likewise, and update header
2447 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2449 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2450 * unittests/vec-utils-selftests.c: New file.
2451 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2453 2019-11-10 Tom Tromey <tom@tromey.com>
2455 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2456 (tui_highlight_win): Likewise.
2457 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2458 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2459 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2460 Don't set can_highlight.
2462 2019-11-10 Tom Tromey <tom@tromey.com>
2464 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2465 Remove unused declaration.
2467 2019-11-08 Tom Tromey <tromey@adacore.com>
2469 * top.c (read_command_file): Update.
2470 (command_line_input): Make return type const.
2471 * python/py-gdb-readline.c: Update.
2472 * linespec.c (decode_line_2): Update.
2473 * defs.h (command_line_input): Make return type const.
2474 * cli/cli-script.c (read_next_line): Make return type const.
2475 * ada-lang.c (get_selections): Update.
2477 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2479 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2480 * mi/mi-main.c (output_cores): Likewise.
2481 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2482 (linux_xfer_osdata_modules): Likewise.
2483 * remote.c (register_remote_support_xml): Likewise.
2484 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2485 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2487 2019-11-06 Tom Tromey <tom@tromey.com>
2489 * tui/tui-interp.c: Don't include readline.h.
2490 * tui/tui-hooks.c: Don't include readline.h.
2491 * symmisc.c: Include tilde.h, not readline.h.
2492 * symfile.c: Include tilde.h, not readline.h.
2493 * source.c: Include tilde.h, not readline.h.
2494 * solib.c: Include tilde.h, not readline.h.
2495 * psymtab.c: Include tilde.h, not readline.h.
2496 * exec.c: Include tilde.h, not readline.h.
2497 * corelow.c: Include tilde.h, not readline.h.
2498 * cli/cli-dump.c: Include tilde.h, not readline.h.
2499 * cli/cli-cmds.c: Don't include readline.h.
2501 2019-11-05 Tom Tromey <tom@tromey.com>
2503 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2504 (tui_disassemble): Set addr_size.
2505 (tui_disasm_window::set_contents): Use addr_size.
2507 2019-11-05 Tom Tromey <tom@tromey.com>
2509 * rust-lang.c (rust_language_defn): Update.
2510 * python/py-value.c (valpy_string): Call c_get_string.
2511 * p-lang.c (pascal_language_defn): Update.
2512 * opencl-lang.c (opencl_language_defn): Update.
2513 * objc-lang.c (objc_language_defn): Update.
2514 * m2-lang.c (m2_language_defn): Update.
2515 * language.c (unknown_language_defn, auto_language_defn): Update.
2516 (default_get_string): Remove.
2517 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2518 * go-lang.c (go_language_defn): Update.
2519 * f-lang.c (f_language_defn): Update.
2520 * d-lang.c (d_language_defn): Update.
2521 * c-lang.c (c_language_defn, cplus_language_defn)
2522 (asm_language_defn, minimal_language_defn): Update.
2523 * ada-lang.c (ada_language_defn): Update.
2524 * language.h (struct language_defn) <la_get_string>: Remove.
2525 (LA_GET_STRING): Remove.
2526 (default_get_string): Don't declare.
2528 2019-11-05 Tom Tromey <tom@tromey.com>
2530 * tui/tui-source.h (struct tui_source_window): Inline
2531 constructor. Remove destructor.
2532 <style_changed, m_observable>: Move to superclass.
2533 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2534 (struct tui_source_window_base): Move private members to end.
2535 <style_changed, m_observable>: Move from tui_source_window.
2536 * tui/tui-winsource.c (tui_copy_source_line): Move from
2537 tui-source.c. Rename from copy_source_line. Add special handling
2538 for negative line number.
2539 (tui_source_window_base::style_changed): Move from
2541 (tui_source_window_base): Register observer.
2542 (~tui_source_window_base): New.
2543 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2545 (tui_source_window::set_contents): Use tui_copy_source_line.
2546 (tui_source_window::tui_source_window): Move to tui-source.h.
2547 (tui_source_window::~tui_source_window): Remove.
2548 (tui_source_window::style_changed): Move to superclass.
2549 * tui/tui-disasm.c (tui_disassemble): Create string file with
2550 styling, when possible. Add "addr_size" parameter.
2551 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2552 Don't compute maximum size.
2553 (len_without_escapes): New function
2555 2019-11-05 Tom Tromey <tom@tromey.com>
2557 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2559 * tui/tui-winsource.c (tui_show_source_line): Update.
2560 * tui/tui-source.c (tui_source_window::set_contents): Update.
2561 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2563 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2565 * symtab.h (gdb_static_assert): Put && operator at the beginning
2566 of the line instead of the end.
2568 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2570 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2571 and sizeof (symbol).
2572 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2574 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2576 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2577 * configure.host: Mark *-*-solaris2.10* obsolete.
2578 * configure.tgt: Mark Solaris < 11 obsolete.
2579 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2580 Update target triplet.
2582 2019-11-01 Tom Tromey <tromey@adacore.com>
2584 * utils.c (print_sys_errmsg): Simplify.
2586 2019-11-01 Tom Tromey <tromey@adacore.com>
2588 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2590 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2592 * configure: Regenerate.
2593 * configure.ac: Remove check for strerror_r.
2594 * gdbsupport/common.m4: Check for strerror_r.
2596 2019-11-01 Luis Machado <luis.machado@linaro.org>
2600 * arm-tdep.c (arm_per_objfile): Rename to ...
2601 (arm_per_bfd): ... this.
2602 (arm_objfile_data_key): Rename to ...
2603 (arm_bfd_data_key): ... this.
2604 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2606 (arm_record_special_symbol): Likewise.
2608 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2610 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2612 * c-typeprint.c (c_print_typedef): Likewise.
2613 * f-typeprint.c (f_print_typedef): Likewise.
2614 * m2-typeprint.c (m2_print_typedef): Likewise.
2615 * p-typeprint.c (pascal_print_typedef): Likewise.
2616 * rust-lang.c (rust_print_typedef): Likewise.
2617 * symtab.c (print_symbol_info): Print a newline after calling
2620 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2622 * symtab.c (info_module_cmdlist): New variable.
2623 (info_module_command): New function.
2624 (search_module_symbols): New function.
2625 (info_module_subcommand): New function.
2626 (struct info_modules_var_func_options): New struct.
2627 (info_modules_var_func_options_defs): New variable.
2628 (make_info_modules_var_func_options_def_group): New function.
2629 (info_module_functions_command): New function.
2630 (info_module_variables_command): New function.
2631 (info_module_var_func_command_completer): New function.
2632 (_initialize_symtab): Register new 'info module functions' and
2633 'info module variables' commands.
2634 * symtab.h (typedef symbol_search_in_module): New typedef.
2635 (search_module_symbols): Declare new function.
2636 * NEWS: Mention new commands.
2638 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2640 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2641 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2642 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2644 (scan_partial_symbols): Only create partial module symbols for non
2646 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2648 * symtab.c (search_domain_name): Likewise.
2649 (search_symbols): Likewise.
2650 (print_symbol_info): Likewise.
2651 (symtab_symbol_info): Likewise.
2652 (info_modules_command): New function.
2653 (_initialize_symtab): Register 'info modules' command.
2654 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2655 * NEWS: Mention new 'info modules' command.
2657 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2659 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2660 and $_gdb_maint_setting_str.
2662 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2664 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2665 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2666 (str_value_from_setting, gdb_setting_str_internal_fn)
2667 (gdb_maint_setting_str_internal_fn): New functions.
2668 (_initialize_cli_cmds): Define the new convenience functions.
2669 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2670 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2672 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2674 * agent.c (set_can_use_agent): When the setting is turned on,
2675 look up agent symbols if we don't have them yet.
2676 (agent_new_objfile): Don't look up agent symbols when the agent
2679 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2681 * config.in: Regenerate.
2683 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2685 * configure: Regenerate.
2686 * configure.ac: Check for strerror_r.
2687 * gdbsupport/common-utils.h (safe_strerror): Change return value
2688 to const char * and document that this function is now threadsafe.
2689 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2690 thread_local and call strerror_r, if available.
2691 * utils.c (perror_string): Update.
2692 (print_sys_errmsg): Update.
2694 2019-10-31 Luis Machado <luis.machado@linaro.org>
2696 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2698 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2699 objfile to fetch per-bfd data.
2700 (arm_find_exidx_entry): Likewise.
2702 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2704 * gdbsupport/agent.c (debug_agent): Change type to bool.
2705 (use_agent): Likewise.
2706 (all_agent_symbols_look_up): Likewise.
2707 (agent_loaded_p): Change return value to bool.
2708 (agent_look_up_symbols): Update.
2709 (agent_capability_check): Change return value to bool.
2710 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2711 (debug_agent): Change type to bool.
2712 (use_agent): Likewise.
2713 (agent_capability_check): Change return value to bool.
2715 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2717 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2718 (build_minimal_symbol_hash_tables): Code to clear the table moved
2719 to clear_minimal_symbol_hash_tables.
2720 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2723 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2725 * infcmd.c: Remove includes.
2726 * infrun.c: Remove includes.
2728 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2730 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2731 (grow_vect): Remove declaration.
2732 (ada_type_of_array): Remove declaration.
2733 (ada_update_initial_language): Remove declaration.
2734 (ada_fold_name): Remove declaration.
2735 (ada_fill_in_ada_prototype): Remove declaration.
2736 (user_select_syms): Remove declaration.
2737 (get_selections): Remove declaration.
2738 (ada_tag_type): Remove declaration.
2739 (ada_value_tag): Remove declaration.
2740 (ada_is_others_clause): Remove declaration.
2741 (ada_in_variant): Remove declaration.
2742 (ada_value_struct_elt): Remove declaration.
2743 (ada_attribute_name): Remove declaration.
2744 (ada_system_address_type): Remove declaration.
2745 * ada-lang.c (ada_watch_location_expression): Make static.
2746 (GROW_VECT): Move here from ada-lang.h.
2747 (grow_vect): Make static.
2748 (ada_update_initial_language): Make static.
2749 (ada_fold_name): Make static.
2750 (ada_type_of_array): Make static.
2751 (encoded_ordered_before): Move up.
2752 (sort_choices): Move up.
2753 (print_signatures): Move up.
2754 (ada_print_symbol_signature): Move up.
2755 (get_selections): Move up and make static.
2756 (user_select_syms): Move up and make static.
2757 (ada_value_struct_elt): Move up and make static.
2758 (ada_tag_type): Make static.
2759 (ada_value_tag): Make static.
2760 (ada_is_others_clause): Make static.
2761 (ada_in_variant): Make static.
2762 (ada_attribute_name): Make static.
2764 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2766 * ada-lang.c: Remove includes.
2767 * ada-typeprint.c: Remove includes.
2768 * ada-valprint.c: Remove includes.
2770 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2772 * addrmap.c: Add static assertions of type size, moved from
2773 _initialize_addrmap.
2774 (_initialize_addrmap): Remove.
2776 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2778 * coffread.c (record_minimal_symbol): Update.
2779 (process_coff_symbol): Update.
2780 * dbxread.c (read_dbx_symtab): Update.
2781 * dwarf2read.c (add_partial_symbol): Update.
2782 (fixup_go_packaging): Update.
2783 (load_partial_dies): Update.
2784 (new_symbol): Update.
2785 * elfread.c (record_minimal_symbol): Change signature to use
2786 gdb::string_view instead of name+len.
2787 (elf_symtab_read): Update.
2788 (elf_rel_plt_read): Update.
2789 * mdebugread.c (parse_partial_symbols): Update.
2790 (handle_psymbol_enumerators): Update.
2791 (new_symbol): Update.
2792 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2793 to use gdb::string_view instead of name+len.
2794 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2795 * psympriv.h (add_psymbol_to_list): Likewise.
2796 * psymtab.c (add_psymbol_to_bcache): Likewise.
2797 (add_psymbol_to_list): Likewise.
2798 * stabsread.c (define_symbol): Update.
2799 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2800 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2801 (symbol_set_names): Likewise.
2802 * xcoffread.c (scan_xcoff_symtab): Update.
2804 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2806 * symtab.h (symbol_set_names): Document that copy_name must be
2807 set to true for non-nullterminated strings.
2808 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2809 linkage_name if the entry was not found and we need to demangle.
2811 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2813 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2814 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2815 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2816 * gdbsupport/gdb_binary_search.h: New file.
2818 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2820 * NEWS: Mention new --with-system-gdbinit-dir option.
2821 * config.in: Regenerate.
2822 * configure: Regenerate.
2823 * configure.ac: Add new option --with-system-gdbinit-dir.
2824 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2825 for a ".gdb" suffix.
2826 * main.c (get_init_files): Change system_gdbinit argument to
2827 a vector and return the files in SYSTEM_GDBINIT_DIR in
2828 addition to SYSTEM_GDBINIT.
2829 (captured_main_1): Update.
2830 (print_gdb_help): Update.
2831 * top.c (print_gdb_configuration): Also print the value of
2834 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2836 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2837 that takes gdb::string_view arguments.
2839 2019-10-26 Tom de Vries <tdevries@suse.de>
2841 * aarch64-linux-tdep.c: Fix typos in comments.
2842 * aarch64-tdep.c: Same.
2844 * amd64-nat.c: Same.
2846 * arch/aarch64-insn.c: Same.
2848 * breakpoint.h: Same.
2851 * cli/cli-decode.c: Same.
2852 * cli/cli-script.c: Same.
2853 * cli/cli-utils.h: Same.
2854 * coff-pe-read.c: Same.
2856 * compile/compile-cplus-symbols.c: Same.
2857 * compile/compile-object-run.c: Same.
2858 * completer.c: Same.
2860 * cp-support.c: Same.
2862 * dwarf-index-write.c: Same.
2863 * dwarf2-frame.c: Same.
2864 * dwarf2-frame.h: Same.
2866 * frame-base.h: Same.
2871 * guile/scm-objfile.c: Same.
2872 * i386-tdep.c: Same.
2873 * i386-tdep.h: Same.
2876 * linux-nat.c: Same.
2877 * m68k-tdep.c: Same.
2880 * mi/mi-cmd-disas.c: Same.
2881 * mi/mi-getopt.h: Same.
2882 * mi/mi-main.c: Same.
2884 * nat/aarch64-sve-linux-sigcontext.h: Same.
2886 * ppc-linux-nat.c: Same.
2887 * ppc-linux-tdep.c: Same.
2889 * progspace.h: Same.
2890 * prologue-value.h: Same.
2891 * python/py-evtregistry.c: Same.
2892 * python/py-instruction.h: Same.
2893 * record-btrace.c: Same.
2894 * record-full.c: Same.
2896 * rs6000-tdep.c: Same.
2898 * sol-thread.c: Same.
2899 * sparc-sol2-tdep.c: Same.
2900 * sparc64-tdep.c: Same.
2901 * stabsread.c: Same.
2905 * tracepoint.c: Same.
2906 * tui/tui-data.h: Same.
2907 * tui/tui-io.c: Same.
2908 * tui/tui-win.c: Same.
2910 * unittests/rsp-low-selftests.c: Same.
2911 * user-regs.h: Same.
2922 * xtensa-tdep.c: Same.
2924 2019-10-25 Ali Tamur <tamur@google.com>
2926 * charset.c (find_charset_names): Reflect API change.
2928 2019-10-25 Christian Biesinger <cbiesinger@google.com>
2930 * symtab.c (struct demangled_name_entry): Change demangled name
2931 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2932 part of the struct anymore.
2933 (symbol_set_names): No longer obstack allocate + copy the demangled
2934 name, just store the allocated name from bfd.
2936 2019-10-25 Tom Tromey <tromey@adacore.com>
2938 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2939 (bsearch_cie_cmp, add_cie): Remove.
2940 (find_cie): Reimplement.
2941 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2942 (dwarf2_build_frame_info): Update.
2944 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2947 * symfile.c (reread_symbols): Call forget_cached_source_info to
2948 clear the stale source cache.
2950 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2952 * configure: Regenerate.
2953 * configure.ac: Remove code that sets python_has_threads.
2955 2019-10-24 Christian Biesinger <cbiesinger@google.com>
2957 * config.in: Regenerate.
2958 * configure: Regenerate.
2959 * configure.ac: Remove the code that uses sed to get the python
2960 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2962 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2964 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2967 2019-10-23 Tom Tromey <tom@tromey.com>
2969 * arc-tdep.c: Remove ".." from include.
2970 * frv-tdep.c: Remove ".." from include.
2971 * lm32-tdep.c: Remove ".." from include.
2972 * microblaze-tdep.c: Remove ".." from include.
2973 * or1k-tdep.h: Remove ".." from include.
2974 * s12z-tdep.c: Remove ".." from include.
2975 * Makefile.in (OPCODES_CFLAGS): Add comment.
2976 (TOP_CFLAGS): New variable.
2977 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2979 2019-10-23 Tom Tromey <tom@tromey.com>
2981 * Makefile.in (READLINE_DIR): Update.
2983 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2985 * infcall.c (call_function_by_hand_dummy): Fix the function
2986 comment. And extract out a code section into...
2987 (reserve_stack_space): ...this new function.
2989 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2991 * infcall.c (value_arg_coerce): Remove an unused parameter.
2992 (call_function_by_hand_dummy): Update the call to
2995 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2997 * infcall.c (call_function_by_hand_dummy): Refactor.
2999 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3001 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3003 2019-10-23 Tom Tromey <tom@tromey.com>
3005 * configure: Rebuild.
3006 * configure.ac: Don't check for sigprocmask.
3007 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3009 2019-10-23 Tom Tromey <tom@tromey.com>
3011 * configure: Rebuild.
3012 * acinclude.m4: Use m4_include, not sinclude.
3014 2019-10-23 Tom de Vries <tdevries@suse.de>
3016 PR breakpoints/24687
3017 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3019 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3021 * symtab.c (struct demangled_name_entry) <language>: Change from
3022 bitfield to regular variable.
3024 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3026 * symtab.c (struct demangled_name_entry): Add a constructor.
3027 (free_demangled_name_entry): New function to call the destructor
3028 for demangled_name_entry.
3029 (create_demangled_names_hash): Pass free_demangled_name_entry to
3031 (symbol_set_names): Call placement new for demangled_name_entry.
3032 * utils.c: No longer include xxhash.h here, now that fast_hash
3033 is inlined in the header.
3034 * utils.h: Instead, include it here.
3036 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3038 * Makefile.in: Link with libxxhash.
3039 * config.in: Regenerate.
3040 * configure: Regenerate.
3041 * configure.ac: Search for libxxhash.
3042 * utils.c (fast_hash): Use xxhash if present.
3044 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3046 * utils.h (fast_hash): New function.
3047 * symtab.c (hash_demangled_name_entry): Call new function
3050 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3052 * symtab.c (struct demangled_name_entry): Change type of mangled
3053 to gdb::string_view. Also adds a constructor that takes the
3055 (hash_demangled_name_entry): Update.
3056 (eq_demangled_name_entry): Update.
3057 (free_demangled_name_entry): New function to call the destructor
3058 now that this is not a POD anymore.
3059 (create_demangled_names_hash): Pass free_demangled_name_entry to
3061 (symbol_set_names): Update.
3063 2019-10-21 Ali Tamur <tamu@google.com>
3065 * dwarf2read.c (dir_index): Change type.
3066 (file_name_index): Likewise.
3067 (line_header::include_dir_at): Change comment and implementation on
3068 whether it is DWARF 5.
3069 (line_header::is_valid_file_index): New function.
3070 (line_header::file_name_at): Change comment and implementation on
3071 whether it is DWARF 5.
3072 (line_header::file_names): Change to private field renamed as
3073 m_file_names and introduce a new accessor method.
3074 (line_header::file_names_size): New method.
3075 (line_header::include_dirs): Change to private field and rename as
3077 (dw2_get_file_names_reader): Define local var at a smaller scope and
3079 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3080 (process_structure_scope): Likewise.
3081 (line_header::add_include_dir): Change message and reflect renaming.
3082 (line_header::add_file_name): Likewise.
3083 (read_formatted_entries): Handle DW_FORM_data16.
3084 (dwarf_decode_line_header): Fix line header length calculation.
3085 (psymtab_include_file_name): Change comment and API.
3086 (lnp_state_machine::m_file): Update comment and reflect type change.
3087 (lnp_state_machine::record_line): Reflect type change.
3088 (dwarf_decode_lines): Reflect API change.
3089 (file_file_name): Likewise.
3090 (file_full_name): Likewise.
3092 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3094 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3096 2019-10-21 Tom Tromey <tom@tromey.com>
3098 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3100 2019-10-21 Tom Tromey <tom@tromey.com>
3102 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3103 NM_H. Use AC_CONFIG_LINKS.
3104 * configure: Rebuild.
3105 * Makefile.in (NM_H): New variable.
3106 (generated_files): Add NM_H. Remove gcore.
3107 (nm.h, stamp-nmh): New targets.
3109 2019-10-20 Tom Tromey <tom@tromey.com>
3111 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3112 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3114 (put_objfile_before): Now static.
3116 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3118 * gdbsupport/common-utils.h (startswith): Change return type to
3121 2019-10-19 Christian Biesinger <cbiesinger@google.com>
3123 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3124 * breakpoint.c (bp_locations_compare): Rename to...
3125 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3126 (update_global_location_list): Use std::sort instead of qsort.
3127 * buildsym.c (compare_line_numbers): Rename to...
3128 (lte_is_less_than): ...this, and change to std::sort semantics.
3129 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3131 * disasm.c (compare_lines): Rename to...
3132 (line_is_less_than): ...this, and change to std::sort semantics.
3133 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3135 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3136 (fde_is_less_than): ...this, and change to std::sort semantics.
3137 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3138 * mdebugread.c (compare_blocks):
3139 (block_is_less_than): ...this, and change to std::sort semantics.
3140 (sort_blocks): Call std::sort instead of qsort.
3141 * objfiles.c (qsort_cmp): Rename to...
3142 (sort_cmp): ...this, and change to std::sort semantics.
3143 (update_section_map): Call std::sort instead of qsort.
3144 * remote.c (compare_pnums): Remove.
3145 (map_regcache_remote_table): Call std::sort instead of qsort.
3146 * utils.c (compare_positive_ints): Remove.
3147 * utils.h (compare_positive_ints): Remove.
3148 * xcoffread.c (compare_lte): Remove.
3149 (arrange_linetable): Call std::sort instead of qsort.
3151 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3153 * symfile.c (init_entry_point_info): Fix typo.
3154 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3156 2019-10-18 Tom de Vries <tdevries@suse.de>
3158 * aarch64-tdep.c: Fix typos in comments.
3160 * ada-tasks.c: Same.
3161 * alpha-tdep.c: Same.
3162 * alpha-tdep.h: Same.
3163 * amd64-nat.c: Same.
3164 * amd64-windows-tdep.c: Same.
3167 * arch-utils.c: Same.
3168 * arm-nbsd-tdep.c: Same.
3171 * blockframe.c: Same.
3174 * coff-pe-read.c: Same.
3176 * cris-tdep.c: Same.
3177 * darwin-nat.c: Same.
3181 * dtrace-probe.c: Same.
3182 * dwarf-index-write.c: Same.
3183 * dwarf2-frame-tailcall.c: Same.
3184 * dwarf2-frame.c: Same.
3185 * dwarf2read.c: Same.
3187 * exceptions.c: Same.
3188 * fbsd-tdep.c: Same.
3192 * gnu-v3-abi.c: Same.
3194 * h8300-tdep.c: Same.
3195 * hppa-tdep.c: Same.
3196 * i386-linux-tdep.c: Same.
3197 * i386-tdep.c: Same.
3198 * ia64-libunwind-tdep.c: Same.
3199 * ia64-tdep.c: Same.
3203 * linux-nat.c: Same.
3204 * linux-thread-db.c: Same.
3205 * machoread.c: Same.
3206 * mdebugread.c: Same.
3208 * mn10300-tdep.c: Same.
3209 * namespace.c: Same.
3211 * opencl-lang.c: Same.
3212 * or1k-tdep.c: Same.
3214 * ppc-linux-nat.c: Same.
3215 * ppc-linux-tdep.c: Same.
3216 * ppc-sysv-tdep.c: Same.
3219 * record-btrace.c: Same.
3220 * record-full.c: Same.
3221 * remote-fileio.c: Same.
3223 * rs6000-tdep.c: Same.
3224 * s12z-tdep.c: Same.
3225 * score-tdep.c: Same.
3229 * sol-thread.c: Same.
3230 * solib-svr4.c: Same.
3233 * sparc-nat.c: Same.
3234 * sparc-sol2-tdep.c: Same.
3235 * sparc-tdep.c: Same.
3236 * sparc64-tdep.c: Same.
3237 * stabsread.c: Same.
3241 * target-descriptions.c: Same.
3242 * target-float.c: Same.
3249 * windows-nat.c: Same.
3250 * xcoffread.c: Same.
3251 * xstormy16-tdep.c: Same.
3252 * xtensa-tdep.c: Same.
3254 2019-10-17 Tom Tromey <tromey@adacore.com>
3256 * configure: Rebuild.
3257 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3258 in AC_CONFIG_FILES invocation.
3259 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3260 new-style config.status invocation.
3262 2019-10-17 Tom de Vries <tdevries@suse.de>
3264 * arm-nbsd-nat.c: Fix typos in comments.
3266 * darwin-nat-info.c: Same.
3267 * dwarf2read.c: Same.
3269 * event-top.c: Same.
3272 * hppa-tdep.c: Same.
3273 * i386-tdep.c: Same.
3276 * mdebugread.c: Same.
3277 * moxie-tdep.c: Same.
3278 * nto-procfs.c: Same.
3280 * ppc-linux-tdep.c: Same.
3282 * riscv-tdep.c: Same.
3283 * s390-tdep.c: Same.
3285 * sparc-linux-tdep.c: Same.
3286 * sparc-nat.c: Same.
3288 * target-descriptions.c: Same.
3292 2019-10-16 Tom Tromey <tom@tromey.com>
3294 * objfiles.h (struct objfile) <original_name>: Now const.
3296 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3298 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3299 pass on to sigsetjmp's second argument.
3300 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3302 2019-10-16 Keith Seitz <keiths@redhat.com>
3305 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3306 sections whose size is greater than the file size.
3308 2019-10-16 Jim Wilson <jimw@sifive.com>
3310 * riscv-tdep.c (riscv_gcc_target_options): New.
3311 (riscv_gnu_triplet_regexp): New.
3312 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3313 set_gdbarch_gnu_triplet_regexp.
3315 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3317 * Makefile.in: Add xml-builtin.h.
3318 * features/feature_to_c.sh: Add an include for xml-builtin.h
3319 to ensure that the compiler checks that the types match.
3320 * xml-builtin.h: New file.
3321 * xml-support.c (fetch_xml_builtin): Add missing const.
3322 * xml-support.h: Remove declaration of xml_builtins.
3324 2019-10-16 Tom de Vries <tdevries@suse.de>
3327 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3328 (amd64_classify_aggregate): ... here.
3329 (amd64_classify_aggregate_field): Handled fiels of nested structs
3332 2019-10-16 Tom de Vries <tdevries@suse.de>
3335 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3336 that handles 'theclass'.
3338 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3340 * linespec.c (decode_digits_ordinary): Update comment.
3341 * make-target-delegates: No longer need to handle VEC case.
3342 * memrange.c (normalize_mem_ranges): Update comment.
3343 * namespace.c (add_using_directive): Update comment.
3344 * objc-lang.c (uniquify_strings): Update comment.
3345 * ppc-linux-nat.c (struct thread_points): Update comment.
3346 * probe.h (find_probes_in_objfile): Update comment.
3347 * target.h (enum flash_preserve_mode): Update comment.
3348 * varobj.c (varobj_restrict_range): Update comment.
3349 * varobj.h (varobj_list_children): Update comment.
3351 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3353 * Makefile.in: Remove references to vec.h and vec.c.
3354 * aarch64-tdep.c: No longer include vec.h.
3355 * ada-lang.c: Likewise.
3356 * ada-lang.h: Likewise.
3357 * arm-tdep.c: Likewise.
3359 * breakpoint.h: Likewise.
3360 * charset.c: Likewise.
3361 * cp-support.h: Likewise.
3362 * dtrace-probe.c: Likewise.
3363 * dwarf2read.c: Likewise.
3364 * extension.h: Likewise.
3365 * gdb_bfd.c: Likewise.
3366 * gdbsupport/gdb_vecs.h: Likewise.
3367 * gdbsupport/vec.c: Remove.
3368 * gdbsupport/vec.h: Remove.
3369 * gdbthread.h: Likewise.
3370 * guile/scm-type.c: Likewise.
3371 * inline-frame.c: Likewise.
3372 * machoread.c: Likewise.
3373 * memattr.c: Likewise.
3374 * memrange.h: Likewise.
3375 * namespace.h: Likewise.
3376 * nat/linux-btrace.h: Likewise.
3377 * osdata.c: Likewise.
3378 * parser-defs.h: Likewise.
3379 * progspace.h: Likewise.
3380 * python/py-type.c: Likewise.
3381 * record-btrace.c: Likewise.
3382 * rust-exp.y: Likewise.
3383 * solib-target.c: Likewise.
3384 * stap-probe.c: Likewise.
3385 * target-descriptions.c: Likewise.
3386 * target-memory.c: Likewise.
3387 * target.h: Likewise.
3388 * varobj.c: Likewise.
3389 * varobj.h: Likewise.
3390 * xml-support.h: Likewise.
3392 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3394 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3395 Update for new std::vector based implementation.
3396 (process_psymtab_comp_unit_reader): Likewise.
3397 (scan_partial_symbols): Likewise.
3398 (recursively_compute_inclusions): Likewise.
3399 (compute_compunit_symtab_includes): Likewise.
3400 (process_imported_unit_die): Likewise.
3401 (queue_and_load_dwo_tu): Likewise.
3402 (follow_die_sig_1): Likewise.
3403 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3404 (typedef dwarf2_per_cu_ptr): Remove.
3405 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3407 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3408 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3409 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3410 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3413 2019-10-15 Tom Tromey <tromey@adacore.com>
3415 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3418 2019-10-15 Tom Tromey <tromey@adacore.com>
3420 * windows-nat.c (windows_nat_target::fetch_registers)
3421 (windows_nat_target::store_registers): Rename "pid" to "tid".
3423 2019-10-15 Tom Tromey <tromey@adacore.com>
3425 * gdbarch.h, gdbarch.c: Rebuild.
3426 * gdbarch.sh (gcc_target_options): Change return type to
3428 * compile/compile.c (get_args): Update.
3429 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3430 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3432 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3434 * arch-utils.c (default_gcc_target_options): Return std::string.
3435 * arch-utils.h (default_gcc_target_options): Return std::string.
3436 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3438 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3440 * breakpoint.c (breakpoint_chain): Make static.
3441 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3442 of accessing breakpoint_chain.
3444 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3446 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3447 to a gdb::function_view and return value to bool.
3448 * breakpoint.h (iterate_over_breakpoints): Likewise.
3449 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3450 (pop_dummy_frame): Update.
3451 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3452 (gdbscm_breakpoints): Update.
3453 * python/py-breakpoint.c (build_bp_list): Update.
3454 (gdbpy_breakpoints): Update.
3455 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3457 (bpfinishpy_handle_stop): Update.
3458 (bpfinishpy_handle_exit): Update.
3459 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3460 (svr4_update_solib_event_breakpoints): Update.
3462 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3464 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3465 when unwrapping single-field structs.
3467 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3469 * dwarf2read.c: Remove includes.
3471 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3473 * ui-out.c (ui_out::call_do_message): Silence
3474 -Wformat-nonliteral warning.
3476 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3478 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3479 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3480 include: readline/tilde.h.
3482 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3484 * remote.c (remote_target::get_trace_status): Remove declaration of
3485 trace_regblock_size.
3487 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3489 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3490 (show_user): Remove declaration of cmdlist.
3491 * cli/cli-cmds.h (max_user_call_depth): Declare.
3492 * cli/cli-script.c (execute_user_command): Remove declaration
3493 of max_user_call_depth.
3495 2019-10-11 Jim Wilson <jimw@sifive.com>
3497 * gdbsupport/print-utils.h (pulongest): Fix comment.
3498 (plongest): Likewise.
3499 (phex): Add missing comment, mention leading zeros.
3500 (phex_nz): Add mention of no leading zeros to comment.
3502 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3503 plongest instead of unsigned long long cast.
3505 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3507 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3508 for external_editor_command and gdbtk_test.
3510 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3512 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3513 * varobj.c (varobjdebug): Move comment to...
3514 * varobj.h (varobjdebug): ...here, and declare.
3516 2019-10-09 Tom Tromey <tom@tromey.com>
3518 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3521 2019-10-09 Tom Tromey <tom@tromey.com>
3523 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3524 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3525 * tui/tui-command.c (tui_cmd_window::resize)
3526 (tui_refresh_cmd_win): Update.
3527 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3528 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3529 * tui/tui-data.c (~tui_gen_win_info): Remove.
3530 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3531 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3532 (tui_redisplay_readline, tui_mld_flush)
3533 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3534 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3535 (tui_data_window::erase_data_content)
3536 (tui_data_item_window::rerender)
3537 (tui_data_item_window::refresh_window): Update.
3538 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3539 (box_win, tui_gen_win_info::make_window)
3540 (tui_gen_win_info::make_visible): Update.
3541 (tui_delete_win): Remove.
3542 * tui/tui-winsource.c
3543 (tui_source_window_base::do_erase_source_content): Update.
3544 (tui_show_source_line, tui_source_window_base::update_tab_width)
3545 (tui_source_window_base::update_exec_info): Update.
3546 * tui/tui-data.h (struct curses_deleter): New.
3547 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3548 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3550 2019-10-09 Tom Tromey <tom@tromey.com>
3552 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3554 2019-10-09 Tom Tromey <tom@tromey.com>
3556 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3557 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3559 2019-10-09 Tom Tromey <tom@tromey.com>
3561 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3562 window height directly.
3563 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3565 * tui/tui-layout.c (tui_default_win_height): Remove.
3566 (tui_default_win_viewport_height): Remove.
3568 2019-10-09 Tom Tromey <tom@tromey.com>
3570 * tui/tui.h: Remove comments.
3572 2019-10-09 Tom de Vries <tdevries@suse.de>
3574 * python/lib/gdb/printer/bound_registers.py: Use
3575 '^builtin_type_bound128' as regexp argument for
3576 add_builtin_pretty_printer.
3578 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3580 * guile/guile.c (guile_extension_script_ops): Remove forward
3581 declaration and mark as static.
3582 (guile_script_ops): Likewise.
3583 (extension_language_guile): Move further down in the file so
3584 it can reference the definitions for guile_{extension_,}script_ops.
3586 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3588 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3589 except SORTL, DFLTCC, and KDSA.
3591 2019-10-08 Tom Tromey <tromey@adacore.com>
3593 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3594 (struct safe_symbol_file_add_args): Remove.
3596 2019-10-08 Tom Tromey <tromey@adacore.com>
3598 * windows-nat.c: Don't include buildsym-legacy.h.
3600 2019-10-08 Tom Tromey <tromey@adacore.com>
3602 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3604 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3606 * gdbtypes.c (overload_debug): Move comment to header.
3607 * gdbtypes.h (overload_debug): Declare.
3608 * valops.c: Remove declaration of overload_debug, instead
3611 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3613 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3615 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3617 * language.h (lang_frame_mismatch_warn): ... here. Also add
3619 * top.c (lang_frame_mismatch_warn): Remove declaration.
3620 (check_frame_language_change): Pass lang_frame_mismatch_warn
3623 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3625 * c-lang.h (vtbl_ptr_name): Declare.
3626 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3628 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3630 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3632 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3635 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3637 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3638 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3639 * ctfread.c: New file.
3640 * ctfread.h: New file.
3641 * elfread.c: Include ctfread.h.
3642 (struct elfinfo text_p): New member ctfsect.
3643 (elf_locate_sections): Mark CTF section.
3644 (elf_symfile_read): Call elfctf_build_psymtabs.
3645 * Makefile.in (LIBCTF): Add.
3648 (DIST): Add ctfread.c.
3650 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3652 * ctfread.c (struct nextfield): Renamed to ...
3653 (struct ctf_nextfield): ... this.
3654 (struct field_info): Renamed to ...
3655 (strut ctf_field_info): ... this.
3656 (attach_fields_to_type): Update for renamed structures.
3657 (ctf_add_member_cb): Likewise.
3658 (ctf_add_enum_member_cb): Likewise.
3659 (process_struct_members): Likewise.
3660 (process_enum_type): Likewise.
3662 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3664 * tracectf.h: Rename, was ctf.h.
3665 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3666 * tracefile.c: Likewise.
3667 * tracepoint.c: Remove unused include ctf.h.
3668 * mi/mi-main.c: Likewise.
3669 * Makefile.in Replace ctf.c with tracectf.c.
3671 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3673 * version.in: Change version number to "9.0.50.DATE-git".
3675 2019-10-03 Tom Tromey <tom@tromey.com>
3678 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3680 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3682 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3683 cp_search_name_hash.
3684 * NEWS: Add entry about nested function support.
3686 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3687 Andrew Burgess <andrew.burgess@embecosm.com>
3689 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3690 for nested static variables when searchin VAR_DOMAIN.
3691 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3692 global scope, update comment.
3693 (add_partial_subprogram): Call add_partial_subprogram recursively
3694 for nested subroutines when processinng Fortran.
3695 (load_partial_dies): Process the child entities of a subprogram
3696 when processing Fortran.
3697 (partial_die_parent_scope): Handle building scope
3698 for Fortran nested functions.
3699 (process_die): Record that nested functions have a scope.
3700 (new_symbol): Always record Fortran subprograms on the global
3702 (determine_prefix): How to build the prefix for Fortran
3705 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3707 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3708 have just sent the thread a SIGSTOP and are waiting for it to
3711 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3713 * btrace.c (btrace_add_pc): Remove whitespace before the template
3714 parameter in 'std::vector <...>'.
3715 (parse_xml_btrace_block): Likewise.
3716 (btrace_maint_decode_pt): Likewise.
3717 (btrace_maint_update_packets): Likewise.
3718 (btrace_maint_print_packets): Likewise.
3719 * btrace.h (struct btrace_maint_info): Likewise.
3720 * dwarf2read.c (struct type_unit_group): Likewise.
3721 (build_type_psymtabs_reader): Likewise.
3722 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3723 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3724 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3726 2019-10-03 Tom de Vries <tdevries@suse.de>
3728 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3729 the first line of the help text for set/show style metadata.
3731 2019-10-02 Tom Tromey <tromey@adacore.com>
3733 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3734 * gdbsupport/common-inferior.c: New file.
3735 * infcmd.c (startup_with_shell): Don't define.
3736 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3737 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3738 * inferior.h (startup_with_shell): Don't declare.
3740 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3742 * gdbsupport/gdb_assert.h: Include errors.h.
3743 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3745 2019-10-02 Tom Tromey <tromey@adacore.com>
3747 * NEWS: Add $_ada_exception entry.
3748 * ada-lang.c (struct ada_catchpoint): Add constructor.
3749 <m_kind>: New member.
3750 (allocate_location_exception, re_set_exception): Remove
3752 (should_stop_exception): Compute $_ada_exception.
3753 (check_status_exception, print_it_exception)
3754 (print_one_exception, print_mention_exception): Remove
3756 (allocate_location_catch_exception, re_set_catch_exception)
3757 (check_status_exception, print_it_catch_exception)
3758 (print_one_catch_exception, print_mention_catch_exception)
3759 (print_recreate_catch_exception)
3760 (allocate_location_catch_exception_unhandled)
3761 (re_set_catch_exception_unhandled)
3762 (check_status_exception, print_it_catch_exception_unhandled)
3763 (print_one_catch_exception_unhandled)
3764 (print_mention_catch_exception_unhandled)
3765 (print_recreate_catch_exception_unhandled)
3766 (allocate_location_catch_assert, re_set_catch_assert)
3767 (check_status_assert, print_it_catch_assert)
3768 (print_one_catch_assert, print_mention_catch_assert)
3769 (print_recreate_catch_assert)
3770 (allocate_location_catch_handlers, re_set_catch_handlers)
3771 (check_status_handlers, print_it_catch_handlers)
3772 (print_one_catch_handlers, print_mention_catch_handlers)
3773 (print_recreate_catch_handlers): Remove.
3774 (create_ada_exception_catchpoint): Update.
3775 (initialize_ada_catchpoint_ops): Update.
3777 2019-10-02 Tom Tromey <tromey@adacore.com>
3779 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3780 (create_excep_cond_exprs): Simplify exception string computation.
3781 (ada_exception_catchpoint_cond_string): Likewise.
3783 2019-10-02 Tom Tromey <tromey@adacore.com>
3785 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3786 * ada-lang.c (lesseq_defined_than): Handle
3788 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3790 (dwarf2_has_info): Likewise.
3791 (new_symbol): Set maybe_copied on symbol when
3793 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3795 <can_copy>: New member.
3796 * elfread.c (record_minimal_symbol): Set maybe_copied
3797 on symbol when appropriate.
3798 (elf_symfile_read): Update call to dwarf2_has_info.
3799 * minsyms.c (lookup_minimal_symbol_linkage): New
3801 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3802 * symtab.c (get_symbol_address, get_msymbol_address):
3804 * symtab.h (get_symbol_address, get_msymbol_address):
3806 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3808 (struct symbol, struct minimal_symbol) <maybe_copied>:
3811 2019-10-02 Tom Tromey <tromey@adacore.com>
3813 * source.c (struct current_source_location): New.
3814 (current_source_key): New global.
3815 (current_source_symtab, current_source_line)
3816 (current_source_pspace): Remove.
3817 (get_source_location): New function.
3818 (get_current_source_symtab_and_line)
3819 (set_default_source_symtab_and_line)
3820 (set_current_source_symtab_and_line)
3821 (clear_current_source_symtab_and_line, select_source_symtab)
3822 (info_source_command, print_source_lines_base)
3823 (info_line_command, search_command_helper, _initialize_source):
3826 2019-10-02 Tom Tromey <tromey@adacore.com>
3828 * source.c (select_source_symtab): Don't call
3829 decode_line_with_current_source.
3831 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3833 * symtab.c (lookup_global_symbol): Search global block.
3835 2019-10-02 Tom Tromey <tromey@adacore.com>
3837 * coffread.c (process_coff_symbol): Update.
3838 * dwarf2read.c (var_decode_location, new_symbol): Update.
3839 * mdebugread.c (parse_symbol): Update.
3840 * objfiles.c (relocate_one_symbol): Update.
3841 * stabsread.c (define_symbol, fix_common_block)
3842 (scan_file_globals): Update.
3843 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3844 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3845 * xcoffread.c (process_xcoff_symbol): Update.
3847 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3849 * MAINTAINERS: Update my email address.
3851 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3853 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3855 (build_type_psymtabs_reader): Update for std::vector.
3856 (build_type_psymtab_dependencies): Likewise.
3857 * dwarf2read.h: Remove use of DEF_VEC_P.
3858 (typedef sig_type_ptr): Delete.
3860 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3862 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3864 (btrace_maint_decode_pt): Likewise, and move allocation of the
3865 vector outside of the loop.
3866 (btrace_maint_update_packets): Update to handle change from VEC to
3868 (btrace_maint_print_packets): Likewise.
3869 (maint_info_btrace_cmd): Likewise.
3870 * btrace.h: Remove use of DEF_VEC_O.
3871 (typedef btrace_pt_packet_s): Delete.
3872 (struct btrace_maint_info) <packets>: Change fromm VEC to
3874 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3876 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3878 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3879 make accesses into the vector constant references.
3880 (btrace_add_pc): Update for std::vector.
3881 (btrace_stitch_bts): Likewise.
3882 (parse_xml_btrace_block): Likewise.
3883 (btrace_maint_update_packets): Likewise.
3884 (btrace_maint_print_packets): Likewise.
3885 (maint_info_btrace_cmd): Likewise.
3886 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3888 (btrace_data::empty): Likewise.
3889 (btrace_data_append): Likewise.
3890 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3891 (typedef btrace_block_s): Delete.
3892 (struct btrace_block): Add constructor.
3893 (struct btrace_data_bts) <blocks>: Change to std::vector.
3894 * nat/linux-btrace.c (perf_event_read_bts): Update for
3896 (linux_read_bts): Likewise.
3898 2019-10-01 Tom Tromey <tom@tromey.com>
3900 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3902 2019-10-01 Tom Tromey <tom@tromey.com>
3904 * stack.c (print_frame, info_frame_command_core): Use
3906 * linux-thread-db.c (try_thread_db_load_1)
3907 (try_thread_db_load_from_pdir_1): Use styled_string.
3908 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3909 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3910 (maybe_print_unsupported_script_warning)
3911 (maybe_print_script_not_found_warning): Use styled_string.
3912 * ada-lang.c (user_select_syms): Use styled_string.
3914 2019-10-01 Tom Tromey <tom@tromey.com>
3916 * p-lang.c (pascal_printstr): Use metadata style.
3917 * value.c (show_convenience): Use metadata style.
3918 * valprint.c (valprint_check_validity, val_print_optimized_out)
3919 (val_print_not_saved, val_print_unavailable)
3920 (val_print_invalid_address, generic_val_print, val_print)
3921 (value_check_printable, val_print_array_elements): Use metadata
3923 * ui-out.h (class ui_out) <field_fmt>: New overload.
3924 <do_field_fmt>: Add style parameter.
3925 * ui-out.c (ui_out::field_fmt): New overload.
3926 * typeprint.c (type_print_unknown_return_type)
3927 (val_print_not_allocated, val_print_not_associated): Use metadata
3929 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3931 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3932 * tracepoint.c (tvariables_info_1): Use metadata style.
3933 * stack.c (print_frame_arg, print_frame_info, print_frame)
3934 (info_frame_command_core): Use metadata style.
3935 * skip.c (info_skip_command): Use metadata style.
3936 * rust-lang.c (rust_print_enum): Use metadata style.
3937 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3939 * python/py-framefilter.c (py_print_single_arg): Use metadata
3941 * printcmd.c (do_one_display, print_variable_and_value): Use
3943 * p-valprint.c (pascal_val_print)
3944 (pascal_object_print_value_fields): Use metadata style.
3945 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3946 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3948 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3949 * m2-valprint.c (m2_print_long_set): Use metadata style.
3950 * m2-typeprint.c (m2_print_type): Use metadata style.
3951 * infcmd.c (print_return_value_1): Use metadata style.
3952 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3953 * f-valprint.c (info_common_command_for_block): Use metadata
3955 * f-typeprint.c (f_type_print_base): Use metadata style.
3956 * expprint.c (print_subexp_standard): Use metadata style.
3957 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3958 * cli/cli-style.h (class cli_style_option): Add constructor.
3959 (metadata_style): Declare.
3960 * cli/cli-style.c (metadata_style): New global.
3961 (_initialize_cli_style): Register metadata style.
3962 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3964 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3965 * c-typeprint.c (c_type_print_base_struct_union)
3966 (c_type_print_base_1): Use metadata style.
3967 * breakpoint.c (watchpoint_value_print)
3968 (print_one_breakpoint_location): Use metadata style.
3969 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3971 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3973 * ada-valprint.c (val_print_packed_array_elements, printstr)
3974 (print_field_values, ada_val_print_ref, ada_val_print): Use
3976 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3978 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3980 * ada-lang.c (user_select_syms): Use metadata style.
3982 2019-10-01 Tom Tromey <tom@tromey.com>
3984 * cli/cli-cmds.c (pwd_command): Style output.
3986 2019-10-01 Pedro Alves <palves@redhat.com>
3987 Tom Tromey <tom@tromey.com>
3989 * symtab.c (print_symbol_info): Use %ps.
3990 (print_msymbol_info): Use %ps.
3991 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3992 * printcmd.c (print_variable_and_value): Use %ps.
3993 * macrocmd.c (show_pp_source_pos): Use %ps.
3994 * infrun.c (print_exited_reason): Use ui_out::message.
3995 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3996 (describe_other_breakpoints): Use ui_out::message and new
3998 (say_where): Use new formats.
3999 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4002 2019-10-01 Pedro Alves <palves@redhat.com>
4003 Tom Tromey <tom@tromey.com>
4005 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4006 (test_gdb_formats): New function.
4007 (run_tests): Call it.
4008 (test_format_specifier): Update.
4009 * utils.h (fputs_filtered): Update comment.
4010 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4011 (fputs_styled_unfiltered): Declare.
4012 * utils.c (fputs_styled_unfiltered): New function.
4013 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4014 (vfprintf_filtered): Update.
4015 (vfprintf_unfiltered, vprintf_filtered): Update.
4016 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4017 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4018 disallow_ui_out_field>: New constants.
4019 (enum class field_kind): New.
4020 (struct base_field_s, struct signed_field_s): New.
4021 (signed_field): New function.
4022 (struct string_field_s): New.
4023 (string_field): New function.
4024 (struct styled_string_s): New.
4025 (styled_string): New function.
4026 (class ui_out) <message>: Add comment.
4027 <vmessage, call_do_message>: New methods.
4028 <do_message>: Add style parameter.
4029 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4031 (ui_out::message): Rewrite.
4032 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4034 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4035 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4036 gdb_extensions parameter.
4037 (class format_piece): Add parameter to constructor.
4038 (n_int_args): New field.
4039 * gdbsupport/format.c (format_pieces::format_pieces): Add
4040 gdb_extensions parameter. Handle '*'.
4041 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4042 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4043 vfprintf_styled_no_gdbfmt.
4044 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4045 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4047 * ui-style.h (struct ui_file_style) <ptr>: New method.
4049 2019-10-01 Tom Tromey <tom@tromey.com>
4051 * unittests/format_pieces-selftests.c: Update. Add final format.
4052 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4053 empty literal pieces.
4055 2019-10-01 Tom Tromey <tom@tromey.com>
4057 * ui-out.h (enum class ui_out_style_kind): Remove.
4058 (class ui_out) <field_string, field_stsream, do_field_string>:
4059 Change type of "style".
4060 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4061 (ui_out::field_string): Update.
4062 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4064 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4065 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4066 * stack.c (print_frame_arg, print_frame_info, print_frame):
4068 * source.c (print_source_lines_base): Update.
4069 * solib.c (info_sharedlibrary_command): Update.
4070 * skip.c (info_skip_command): Update.
4071 * record-btrace.c (btrace_call_history_src_line)
4072 (btrace_call_history): Update.
4073 * python/py-framefilter.c (py_print_frame): Update.
4074 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4076 * mi/mi-out.c (mi_ui_out::do_table_header)
4077 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4078 (mi_ui_out::do_field_string): Update.
4079 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4081 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4083 * cli-out.c (cli_ui_out::do_table_header)
4084 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4085 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4086 (cli_ui_out::do_field_fmt): Update.
4087 * breakpoint.c (print_breakpoint_location): Update.
4088 (update_static_tracepoint): Update.
4090 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4092 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4093 conversion of gdb_datadir.
4094 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4095 remove not needed c_str ().
4097 2019-09-30 Ali Tamur <tamur@google.com>
4099 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4100 (dwarf2_string_attr): Likewise.
4102 2019-09-30 Ali Tamur <tamur@google.com>
4104 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4105 (process_full_type_unit): Likewise.
4106 (dump_die_shallow): Likewise.
4107 (cu_debug_loc_section): Likewise.
4109 2019-09-28 Christian Biesinger <cbiesinger@google.com>
4111 * minsyms.c (compare_minimal_symbols): Rename to...
4112 (minimal_symbol_is_less_than): ...this, and adjust to STL
4113 conventions (return bool, take arguments as references)
4114 (minimal_symbol_reader::install): Call std::sort instead
4117 2019-09-29 Christian Biesinger <cbiesinger@google.com>
4119 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4121 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4122 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4124 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4126 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4127 * psympriv.h (add_psymbol_to_list): Move comment here and update
4130 2019-09-29 Tom de Vries <tdevries@suse.de>
4132 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4133 Use $tmpdir/$(basename "$output_file").dwz instead of
4134 "${output_file}.dwz".
4136 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4139 * hppa-linux-nat.c: Include gdbarch.h.
4141 2019-09-26 Christian Biesinger <cbiesinger@google.com>
4143 * blockframe.c (find_pc_partial_function): Change return type to bool.
4144 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4145 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4146 (stub_gnu_ifunc_resolve_name): Likewise.
4147 * symtab.c (compare_filenames_for_search): Likewise.
4148 (compare_glob_filenames_for_search): Likewise.
4149 (matching_obj_sections): Likewise.
4150 (symbol_matches_domain): Likewise.
4151 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4152 (find_line_pc): Change return type to bool.
4153 (find_line_pc_range): Likewise.
4154 (producer_is_realview): Likewise.
4155 * symtab.h (symbol_matches_domain): Likewise.
4156 (find_pc_partial_function): Likewise.
4157 (find_pc_line_pc_range): Likewise.
4158 (in_gnu_ifunc_stub): Likewise.
4159 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4160 (find_line_pc): Likewise.
4161 (find_line_pc_range): Likewise.
4162 (matching_obj_sections): Likewise.
4163 (find_line_symtab): Change out parameter to bool.
4164 (producer_is_realview): Change return type to bool.
4165 (compare_filenames_for_search): Likewise.
4166 (compare_glob_filenames_for_search): Likewise.
4168 2019-09-26 Tom Tromey <tom@tromey.com>
4170 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4171 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4172 * gdb_usleep.h: Remove.
4173 * gdb_usleep.c: Remove.
4174 * utils.c: Don't include gdb_usleep.h.
4176 2019-09-26 Tom Tromey <tromey@adacore.com>
4178 * python/py-type.c (type_to_type_object): Call check_typedef
4181 2019-09-26 Tom Tromey <tom@tromey.com>
4183 * utils.h (initialize_utils): Don't declare.
4184 * top.c (gdb_init): Don't call initialize_utils.
4185 * utils.c (initialize_utils): Remove. Move contents...
4186 (_initialize_utils): ... here.
4188 2019-09-25 Tom Tromey <tom@tromey.com>
4190 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4191 * utils.h (make_hex_string): Don't declare.
4192 * utils.c (make_hex_string): Remove.
4194 2019-09-24 Tom de Vries <tdevries@suse.de>
4197 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4198 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4200 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4202 * NEWS: Mention new simulator port for PRU.
4204 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4206 * ada-exp.y (write_object_remaining): Update.
4207 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4208 and eliminate the static buffer.
4209 (ada_decode_symbol): Update.
4210 (ada_la_decode): Update.
4211 (ada_sniff_from_mangled_name): Update.
4212 (is_valid_name_for_wild_match): Update.
4213 (ada_lookup_name_info::matches): Update and simplify.
4214 (name_matches_regex): Update.
4215 (ada_add_global_exceptions): Update.
4216 * ada-lang.h (ada_decode): Update signature.
4217 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4218 * dwarf-index-write.c (debug_names::insert): Update.
4220 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4222 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4225 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4227 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4228 Change "nonzero" to "true" in documentation.
4230 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4232 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4233 (_initialize_darwin_solib): Don't set
4234 darwin_so_ops.lookup_lib_global_symbol.
4235 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4236 set_gdbarch_iterate_over_objfiles_in_search_order.
4237 (elf_lookup_lib_symbol): Rename to...
4238 (svr4_iterate_over_objfiles_in_search_order): this, and update
4239 to iterate semantics.
4240 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4241 * solib.c (solib_global_lookup): Remove.
4242 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4243 (solib_global_lookup): Remove.
4244 * symtab.c (lookup_global_or_static_symbol): Remove call to
4245 solib_global_lookup.
4247 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4249 * NEWS: Move entries about default MI version now being
4250 version 3, and about the GDB/MI fix for multi-location
4251 breakpoints to the "since GDB 8.3" section.
4253 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4257 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4259 * NEWS: Mention that Cell/B.E. debugging support was removed.
4260 * MAINTAINERS: Remove spu target.
4262 * config/djgpp/fnchange.lst: Remove entries for removed files.
4264 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4265 spu-multiarch.o, and spu-tdep.o.
4266 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4267 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4268 spu-multiarch.c, and spu-tdep.c.
4269 * spu-linux-nat.c: Remove file.
4270 * spu-multiarch.c: Remove file.
4271 * spu-tdep.c: Remove file.
4272 * spu-tdep.h: Remove file.
4273 * solib-spu.c: Remove file.
4274 * solib-spu.h: Remove file.
4276 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4277 * configure.nat (spu-linux): Remove.
4278 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4279 solib-multiarch.o from gdb_target_obs.
4282 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4284 (ppc_linux_no_features): Update.
4285 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4287 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4288 (tdesc_powerpc_cell64l): Likewise.
4289 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4290 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4292 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4293 Do not include "features/rs6000/powerpc-cell32l.c" or
4294 "features/rs6000/powerpc-cell64l.c".
4295 (ppc_linux_spu_section): Remove.
4296 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4297 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4298 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4299 (ppc_linux_spe_context_lookup): Remove.
4300 (ppc_linux_spe_context_inferior_created): Remove.
4301 (ppc_linux_spe_context_solib_loaded): Remove.
4302 (ppc_linux_spe_context_solib_unloaded): Remove.
4303 (ppc_linux_spe_context): Remove.
4304 (struct ppu2spu_cache): Remove.
4305 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4306 (struct ppu2spu_data): Remove.
4307 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4308 ppu2spu_unwind): Remove.
4309 (ppc_linux_init_abi): Remove Cell/B.E. support.
4310 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4312 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4313 (rs6000/powerpc-cell64l-expedite): Likewise
4314 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4315 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4316 rs6000/powerpc-cell64l.xml.
4317 * features/rs6000/powerpc-cell32l.xml: Remove.
4318 * features/rs6000/powerpc-cell64l.xml: Likewise.
4319 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4320 * features/rs6000/powerpc-cell64l.c: Likewise.
4321 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4322 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4323 * regformats/reg-spu.dat: Remove.
4325 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4326 * corelow.c (struct spuid_list): Remove.
4327 (add_to_spuid_list): Remove.
4328 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4329 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4330 (remote_protocol_features): Remove associated entries.
4331 (_initialize_remote): No longer initialize them.
4332 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4333 * linux-nat.c (SPUFS_MAGIC): Remove.
4334 (linux_proc_xfer_spu): Remove.
4335 (spu_enumerate_spu_ids): Remove.
4336 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4337 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4338 (linux_make_corefile_notes): No longer call it.
4340 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4341 (cooked_write_test): Likewise.
4343 2019-09-20 Tom Tromey <tom@tromey.com>
4345 * NEWS: Mention case-sensitivity of TUI commands.
4346 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4347 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4348 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4350 2019-09-20 Tom Tromey <tom@tromey.com>
4352 * tui/tui-source.c (tui_source_window::set_contents): Use
4353 make_unique_xstrdup.
4354 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4355 make_unique_xstrdup.
4357 2019-09-20 Tom Tromey <tom@tromey.com>
4359 * tui/tui-data.c: Remove separator comments.
4360 * tui/tui-layout.c: Remove separator comments.
4361 * tui/tui-win.c: Remove separator comments.
4362 * tui/tui-wingeneral.c: Remove separator comments.
4364 2019-09-20 Tom Tromey <tom@tromey.com>
4366 * tui/tui.h (strcat_to_buf): Don't declare.
4367 * tui/tui.c (strcat_to_buf): Remove.
4369 2019-09-20 Tom Tromey <tom@tromey.com>
4371 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4373 * tui/tui-source.c (tui_source_window::set_contents)
4374 (tui_source_window::location_matches_p)
4375 (tui_source_window::maybe_update): Update.
4377 2019-09-20 Tom Tromey <tom@tromey.com>
4379 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4381 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4383 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4384 (tui_data_window::line_from_reg_element_no)
4385 (tui_data_window::first_reg_element_no_inline)
4386 (tui_data_window::show_registers)
4387 (tui_data_window::show_register_group)
4388 (tui_data_window::display_registers_from)
4389 (tui_data_window::display_registers_from_line)
4390 (tui_data_window::first_data_item_displayed)
4391 (tui_data_window::delete_data_content_windows)
4392 (tui_data_window::erase_data_content)
4393 (tui_data_window::do_scroll_vertical)
4394 (tui_data_window::refresh_window)
4395 (tui_data_window::check_register_values): Update.
4397 2019-09-20 Tom Tromey <tom@tromey.com>
4399 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4400 (struct tui_locator_window) <full_name, proc_name>: Now
4402 * tui/tui-stack.c (tui_locator_window::make_status_line)
4403 (tui_locator_window::set_locator_fullname)
4404 (tui_locator_window::set_locator_info): Update.
4405 * tui/tui-source.c (tui_source_window::set_contents)
4406 (tui_source_window::showing_source_p): Update.
4408 2019-09-20 Tom Tromey <tom@tromey.com>
4410 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4411 Don't call tui_locator_win_info_ptr.
4413 2019-09-20 Tom Tromey <tom@tromey.com>
4415 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4417 2019-09-20 Tom Tromey <tom@tromey.com>
4419 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4421 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4422 * tui/tui-layout.c (show_source_disasm_command, show_data)
4423 (show_source_or_disasm_and_command): Use 1 as height for locator.
4425 2019-09-20 Tom Tromey <tom@tromey.com>
4427 * tui/tui.c (tui_enable): Update.
4428 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4430 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4432 * tui/tui-data.c (win_resized): Now bool.
4433 (tui_win_resized): Return bool.
4434 (tui_set_win_resized_to): Accept a bool.
4436 2019-09-20 Tom Tromey <tom@tromey.com>
4438 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4439 Change type of "refresh_values_only".
4440 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4441 type of "refresh_values_only".
4443 2019-09-20 Tom Tromey <tom@tromey.com>
4445 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4447 (tui_disassemble): Add "pos" parameter.
4448 (tui_disasm_window::set_contents): Simplify.
4450 2019-09-20 Tom Tromey <tom@tromey.com>
4452 * tui/tui-winsource.h (struct tui_source_window_base)
4453 <show_source_content>: Now private.
4454 * tui/tui-winsource.c
4455 (tui_source_window_base::show_source_content): Don't handle empty
4458 2019-09-20 Tom Tromey <tom@tromey.com>
4460 * tui/tui-layout.c (show_source_disasm_command)
4461 (show_source_or_disasm_and_command): Don't call
4462 show_source_content.
4464 2019-09-20 Tom Tromey <tom@tromey.com>
4466 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4468 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4469 from tui_make_status_line.
4470 (tui_locator_window::rerender): Update.
4472 2019-09-20 Tom Tromey <tom@tromey.com>
4474 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4475 (tui_locator_window::rerender): Update.
4477 2019-09-20 Tom Tromey <tom@tromey.com>
4479 * tui/tui-winsource.h (struct tui_source_window_base)
4480 <~tui_source_window_base>: Don't declare.
4482 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4483 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4485 * tui/tui-source.c (tui_source_window::set_contents): Update.
4486 (tui_source_window::location_matches_p)
4487 (tui_source_window::maybe_update): Update.
4489 2019-09-20 Tom Tromey <tom@tromey.com>
4491 * tui/tui-winsource.h (~tui_source_element): Remove.
4492 (tui_source_element): Update.
4493 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4494 * tui/tui-winsource.c (tui_show_source_line): Update.
4495 * tui/tui-source.c (tui_source_window::set_contents): Update.
4496 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4498 2019-09-20 Tom Tromey <tom@tromey.com>
4500 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4502 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4503 tui_clear_source_windows_detail.
4504 * tui/tui-winsource.h (struct tui_source_window_base)
4505 <clear_detail>: Don't declare.
4506 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4508 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4510 2019-09-20 Tom Tromey <tromey@adacore.com>
4513 * block.c (contained_in): Fix final return value.
4515 2019-09-20 Alan Modra <amodra@gmail.com>
4517 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4518 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4519 (read_indirect_string_from_dwz): Use bfd accessor.
4520 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4521 * machoread.c (macho_symfile_read_all_oso): Likewise.
4522 * solib.c (solib_bfd_open): Likewise.
4524 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4526 * eval.c: Move declaration of overload_resolution to...
4529 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4531 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4532 * arm-linux-tdep.c: Likewise.
4533 * arm-nbsd-nat.c: Likewise.
4534 * arm-tdep.h: Declare arm_apcs_32.
4535 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4537 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4539 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4540 * dwarf2read.h: Declare dwarf_always_disassemble.
4542 2019-09-19 Tom de Vries <tdevries@suse.de>
4545 * source-cache.c (source_cache::ensure): Catch exception thrown during
4546 construction of the highlighter.
4548 2019-09-18 Alan Modra <amodra@gmail.com>
4550 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4551 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4552 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4553 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4554 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4555 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4556 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4557 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4558 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4559 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4560 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4561 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4562 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4563 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4564 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4565 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4566 * mi/mi-interp.c: Update throughout for bfd section macro and
4568 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4569 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4571 2019-09-18 Tom Tromey <tom@tromey.com>
4574 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4576 (tui_enable): Do not call rl_initialize.
4578 2019-09-18 Christian Groessler <chris@groessler.org>
4580 * alpha-linux-nat.c: Include gdbarch.h.
4582 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4584 * ui-file.c: Include cli/cli-style.h.
4585 (term_cli_styling): Remove cli_styling declaration.
4587 2019-09-18 Alan Modra <amodra@gmail.com>
4589 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4590 to bfd_asymbol_section.
4592 2019-09-18 Alan Modra <amodra@gmail.com>
4594 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4595 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4596 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4598 2019-09-18 Alan Modra <amodra@gmail.com>
4600 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4601 * spu-linux-nat.c (spu_bfd_open): Likewise.
4603 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4605 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4606 to bool to match definition in dwarf2read.c.
4608 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4610 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4611 (print_signatures): Likewise.
4612 (trust_pad_over_xvs): Likewise.
4613 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4614 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4615 * arm-linux-nat.c (arm_apcs_32): Likewise.
4616 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4617 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4618 * arm-tdep.c (arm_debug): Likewise.
4619 (arm_apcs_32): Likewise.
4620 * auto-load.c (debug_auto_load): Likewise.
4621 (auto_load_gdb_scripts): Likewise.
4622 (global_auto_load): Likewise.
4623 (auto_load_local_gdbinit): Likewise.
4624 (auto_load_local_gdbinit_loaded): Likewise.
4625 * auto-load.h (global_auto_load): Likewise.
4626 (auto_load_local_gdbinit): Likewise.
4627 (auto_load_local_gdbinit_loaded): Likewise.
4628 * breakpoint.c (disconnected_dprintf): Likewise.
4629 (breakpoint_proceeded): Likewise.
4630 (automatic_hardware_breakpoints): Likewise.
4631 (always_inserted_mode): Likewise.
4632 (target_exact_watchpoints): Likewise.
4633 (_initialize_breakpoint): Update.
4634 * breakpoint.h (target_exact_watchpoints): Change to bool.
4635 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4636 * cli/cli-cmds.c (trace_commands): Likewise.
4637 * cli/cli-cmds.h (trace_commands): Likewise.
4638 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4640 * cli/cli-logging.c (logging_overwrite): Change to bool.
4641 (logging_redirect): Likewise.
4642 (debug_redirect): Likewise.
4643 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4644 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4646 <boolean_option_def>: Update.
4647 (struct flag_option_def): Change default type of Context to bool
4649 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4650 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4651 (get_setshow_command_value_string): Likewise.
4652 * cli/cli-style.c (cli_styling): Change to bool.
4653 (source_styling): Likewise.
4654 * cli/cli-style.h (source_styling): Likewise.
4655 (cli_styling): Likewise.
4656 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4658 * command.h (var_types): Update comment.
4659 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4660 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4662 (debug_compile_cplus_scopes): Likewise.
4663 * compile/compile-internal.h (compile_debug): Likewise.
4664 * compile/compile.c (compile_debug): Likewise.
4665 (struct compile_options) <raw>: Likewise.
4666 * cp-support.c (catch_demangler_crashes): Likewise.
4667 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4668 (usr_cmd_cris_dwarf2_cfi): Likewise.
4669 * csky-tdep.c (csky_debug): Likewise.
4670 * darwin-nat.c (enable_mach_exceptions): Likewise.
4671 * dcache.c (dcache_enabled_p): Likewise.
4672 * defs.h (info_verbose): Likewise.
4673 * demangle.c (demangle): Likewise.
4674 (asm_demangle): Likewise.
4675 * dwarf-index-cache.c (debug_index_cache): Likewise.
4676 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4677 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4678 * dwarf2read.c (check_physname): Likewise.
4679 (use_deprecated_index_sections): Likewise.
4680 (dwarf_always_disassemble): Likewise.
4681 * eval.c (overload_resolution): Likewise.
4682 * event-top.c (set_editing_cmd_var): Likewise.
4683 (exec_done_display_p): Likewise.
4684 * event-top.h (set_editing_cmd_var): Likewise.
4685 (exec_done_display_p): Likewise.
4686 * exec.c (write_files): Likewise.
4687 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4688 (debug_fbsd_nat): Likewise.
4689 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4691 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4692 <backtrace_past_entry> Likewise.
4693 * gdb-demangle.h (demangle): Likewise.
4694 (asm_demangle): Likewise.
4695 * gdb_bfd.c (bfd_sharing): Likewise.
4696 * gdbcore.h (write_files): Likewise.
4697 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4698 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4699 * gdbthread.h (print_thread_events): Likewise.
4700 * gdbtypes.c (opaque_type_resolution): Likewise.
4701 (strict_type_checking): Likewise.
4702 * gnu-nat.c (gnu_debug_flag): Likewise.
4703 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4704 * guile/scm-param.c (pascm_variable): Add boolval.
4705 (add_setshow_generic): Update.
4706 (pascm_param_value): Update.
4707 (pascm_set_param_value_x): Update.
4708 * hppa-tdep.c (hppa_debug): Change to bool..
4709 * infcall.c (may_call_functions_p): Likewise.
4710 (coerce_float_to_double_p): Likewise.
4711 (unwind_on_signal_p): Likewise.
4712 (unwind_on_terminating_exception_p): Likewise.
4713 * infcmd.c (startup_with_shell): Likewise.
4714 * inferior.c (print_inferior_events): Likewise.
4715 * inferior.h (startup_with_shell): Likewise.
4716 (print_inferior_events): Likewise.
4717 * infrun.c (step_stop_if_no_debug): Likewise.
4718 (detach_fork): Likewise.
4719 (debug_displaced): Likewise.
4720 (disable_randomization): Likewise.
4721 (non_stop): Likewise.
4722 (non_stop_1): Likewise.
4723 (observer_mode): Likewise.
4724 (observer_mode_1): Likewise.
4725 (set_observer_mode): Update.
4726 (sched_multi): Change to bool.
4727 * infrun.h (debug_displaced): Likewise.
4728 (sched_multi): Likewise.
4729 (step_stop_if_no_debug): Likewise.
4730 (non_stop): Likewise.
4731 (disable_randomization): Likewise.
4732 * linux-tdep.c (use_coredump_filter): Likewise.
4733 (dump_excluded_mappings): Likewise.
4734 * linux-thread-db.c (auto_load_thread_db): Likewise.
4735 (check_thread_db_on_load): Likewise.
4736 * main.c (captured_main_1): Update.
4737 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4738 xx2_opt, boolean_opt>: Change to bool.
4739 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4740 * maint.c (maintenance_profile_p): Likewise.
4741 (per_command_time): Likewise.
4742 (per_command_space): Likewise.
4743 (per_command_symtab): Likewise.
4744 * memattr.c (inaccessible_by_default): Likewise.
4745 * mi/mi-main.c (mi_async): Likewise.
4746 (mi_async_1): Likewise.
4747 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4748 * nat/fork-inferior.h (startup_with_shell): Likewise.
4749 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4750 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4751 * nios2-tdep.c (nios2_debug): Likewise.
4752 * or1k-tdep.c (or1k_debug): Likewise.
4753 * parse.c (parser_debug): Likewise.
4754 * parser-defs.h (parser_debug): Likewise.
4755 * printcmd.c (print_symbol_filename): Likewise.
4756 * proc-api.c (procfs_trace): Likewise.
4757 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4758 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4759 (set_parameter_value): Update.
4760 (add_setshow_generic): Update.
4761 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4763 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4765 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4766 * record-btrace.c (record_btrace_target::store_registers): Update.
4767 * record-full.c (record_full_memory_query): Change to bool.
4768 (record_full_stop_at_limit): Likewise.
4769 * record-full.h (record_full_memory_query): Likewise.
4770 * remote-notif.c (notif_debug): Likewise.
4771 * remote-notif.h (notif_debug): Likewise.
4772 * remote.c (use_range_stepping): Likewise.
4773 (interrupt_on_connect): Likewise.
4774 (remote_break): Likewise.
4775 * ser-tcp.c (tcp_auto_retry): Likewise.
4776 * ser-unix.c (serial_hwflow): Likewise.
4777 * skip.c (debug_skip): Likewise.
4778 * solib-aix.c (solib_aix_debug): Likewise.
4779 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4780 (spu_auto_flush_cache_p): Likewise.
4781 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4783 (struct info_print_options) <quiet>: Likewise.
4784 * symfile-debug.c (debug_symfile): Likewise.
4785 * symfile.c (auto_solib_add): Likewise.
4786 (separate_debug_file_debug): Likewise.
4787 * symfile.h (auto_solib_add): Likewise.
4788 (separate_debug_file_debug): Likewise.
4789 * symtab.c (basenames_may_differ): Likewise.
4790 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4791 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4792 (struct info_types_options) <quiet>: Likewise.
4793 * symtab.h (demangle): Likewise.
4794 (basenames_may_differ): Likewise.
4795 * target-dcache.c (stack_cache_enabled_1): Likewise.
4796 (code_cache_enabled_1): Likewise.
4797 * target.c (trust_readonly): Likewise.
4798 (may_write_registers): Likewise.
4799 (may_write_memory): Likewise.
4800 (may_insert_breakpoints): Likewise.
4801 (may_insert_tracepoints): Likewise.
4802 (may_insert_fast_tracepoints): Likewise.
4803 (may_stop): Likewise.
4804 (auto_connect_native_target): Likewise.
4805 (target_stop_and_wait): Update.
4806 (target_async_permitted): Change to bool.
4807 (target_async_permitted_1): Likewise.
4808 (may_write_registers_1): Likewise.
4809 (may_write_memory_1): Likewise.
4810 (may_insert_breakpoints_1): Likewise.
4811 (may_insert_tracepoints_1): Likewise.
4812 (may_insert_fast_tracepoints_1): Likewise.
4813 (may_stop_1): Likewise.
4814 * target.h (target_async_permitted): Likewise.
4815 (may_write_registers): Likewise.
4816 (may_write_memory): Likewise.
4817 (may_insert_breakpoints): Likewise.
4818 (may_insert_tracepoints): Likewise.
4819 (may_insert_fast_tracepoints): Likewise.
4820 (may_stop): Likewise.
4821 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4822 (make_thread_apply_all_options_def_group): Change argument from int*
4824 (thread_apply_all_command): Update.
4825 (print_thread_events): Change to bool.
4826 * top.c (confirm): Likewise.
4827 (command_editing_p): Likewise.
4828 (history_expansion_p): Likewise.
4829 (write_history_p): Likewise.
4830 (info_verbose): Likewise.
4831 * top.h (confirm): Likewise.
4832 (history_expansion_p): Likewise.
4833 * tracepoint.c (disconnected_tracing): Likewise.
4834 (circular_trace_buffer): Likewise.
4835 * typeprint.c (print_methods): Likewise.
4836 (print_typedefs): Likewise.
4837 * utils.c (debug_timestamp): Likewise.
4838 (sevenbit_strings): Likewise.
4839 (pagination_enabled): Likewise.
4840 * utils.h (sevenbit_strings): Likewise.
4841 (pagination_enabled): Likewise.
4842 * valops.c (overload_resolution): Likewise.
4843 * valprint.h (struct value_print_options) <prettyformat_arrays,
4844 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4845 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4846 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4848 * windows-nat.c (new_console): Likewise.
4849 (cygwin_exceptions): Likewise.
4850 (new_group): Likewise.
4851 (debug_exec): Likewise.
4852 (debug_events): Likewise.
4853 (debug_memory): Likewise.
4854 (debug_exceptions): Likewise.
4855 (useshell): Likewise.
4856 * windows-tdep.c (maint_display_all_tib): Likewise.
4857 * xml-support.c (debug_xml): Likewise.
4859 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4861 * source.c (prepare_path_for_appending): New function.
4862 (openp): Make use of new function.
4863 (find_and_open_source): Search for the compilation directory and
4864 source file as a relative path beneath the directory search path.
4866 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4868 * source-cache.c (source_cache::get_line_charpos): Catch
4869 exceptions and return false, this matches the behaviour documented
4872 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4874 * ada-tasks.c (info_task): Remove quoting of the task's name.
4876 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4878 * symfile.c (auto_solib_add): Replace comment with a reference
4881 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4883 * NEWS: Mention that gdb can now be compiled with Python 3
4886 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4888 * maint.c (maint_print_section_data::maint_print_section_data):
4889 Force use of 'float log10 (float)' by casting the argument to
4892 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4894 * maint.c: Add 'cmath' include.
4895 (struct maint_print_section_data): New structure.
4896 (print_section_index): New function.
4897 (print_bfd_section_info): Add header comment, small whitespace
4898 cleanup, and update to call new print_section_index function.
4899 (print_objfile_section_info): Likewise.
4900 (maint_obj_section_from_bfd_section): New function.
4901 (print_bfd_section_info_maybe_relocated): New function.
4902 (maintenance_info_sections): Add header comment, always use
4903 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4905 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4907 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4908 inner scope, add check that the objfile has psymtabs before
4909 checking psymtabs_addrmap.
4910 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4912 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4914 * NEWS: Announce that Ada task names are now shown at more places,
4915 and between quotes (except in info task output).
4916 * gdb/ada-tasks.c (task_to_str): New function.
4917 (display_current_task_id): Call task_to_str.
4918 (task_command_1): Likewise.
4919 (print_ada_task_info): In non-mi mode, Properly align headers and data
4920 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4922 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4924 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4925 prstatus.pr_lwp.pr_info instead of making it up.
4927 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4929 * auto-load.c (auto_load_expand_dir_vars): Update.
4930 * defs.h (gdb_datadir): Change to std::string.
4931 (python_libdir): Likewise.
4932 (relocate_gdb_directory): Change return type to std::string.
4933 * guile/guile.c (gdbscm_data_directory): Update.
4934 (initialize_scheme_side): Update.
4935 * jit.c (jit_reader_dir): Change to std::string.
4936 (jit_reader_load_command): Update.
4937 * main.c (gdb_datadir): Change to std::string.
4938 (python_libdir): Likewise.
4939 (set_gdb_data_directory): Update.
4940 (relocate_path): Change to return std::string.
4941 (relocate_gdb_directory): Change to return std::string.
4942 (relocate_gdbinit_path_maybe_in_datadir): Update.
4943 (captured_main_1): Update.
4944 * python/python.c (do_start_initialization): Update.
4945 * top.c (show_gdb_datadir): Update.
4946 * xml-syscall.c (xml_init_syscalls_info): Update.
4947 (init_syscalls_info): Update.
4949 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4951 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4952 out of get_init_files.
4953 (get_init_files): Update.
4955 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4957 * main.c (get_init_files): Change to use std::string.
4958 (captured_main_1): Update.
4959 (print_gdb_help): Update.
4961 2019-09-11 Ali Tamur <tamur@google.com>
4963 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4966 2019-09-11 Christian Biesinger <cbiesinger@google.com>
4968 * dbxread.c (read_dbx_symtab): Update.
4969 * dwarf2read.c (load_partial_dies): Update.
4970 * mdebugread.c (parse_partial_symbols): Update.
4971 (handle_psymbol_enumerators): Update.
4972 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4973 * psymtab.c (add_psymbol_to_bcache): Likewise.
4974 (add_psymbol_to_list): Likewise.
4975 * symtab.c (symbol_set_names): Likewise.
4976 * symtab.h (symbol_set_names): Likewise.
4977 * xcoffread.c (scan_xcoff_symtab): Update.
4979 2019-09-11 Tom Tromey <tom@tromey.com>
4981 * symfile-mem.c (symbol_file_add_from_memory): Use
4983 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4984 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4986 2019-09-10 Tom Tromey <tromey@adacore.com>
4988 * dwarf-index-write.c (write_psymbols): Extend error message.
4989 (debug_names::insert): Add Ada code.
4990 (debug_names::write_psymbols): Remove Ada check.
4991 (debug_names) <m_string_obstack>: New member.
4992 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4993 (gdb_index_symbol_name_matcher::matches): Remove.
4994 (mapped_index_base::find_name_components_bounds): Add "lang"
4996 (mapped_index_base::build_name_components): Also split names
4997 according to Ada syntax.
4998 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4999 type of "match_callback".
5000 (check_match, check_find_bounds_finds)
5001 (dw2_expand_symtabs_matching): Update.
5002 (dw2_debug_names_iterator): Add new constructor.
5003 (dw2_debug_names_map_matching_symbols): New function.
5004 (dw2_debug_names_expand_symtabs_matching): Update.
5005 (dwarf2_debug_names_functions): Use
5006 dw2_debug_names_map_matching_symbols.
5008 2019-09-10 Tom Tromey <tromey@adacore.com>
5010 * dwarf2read.c (dw2_get_file_names_reader): Add the
5011 CU's file name to the results.
5013 2019-09-10 Tom Tromey <tromey@adacore.com>
5015 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5016 map_matching_symbols. Update.
5017 * dwarf2read.c (dw2_map_matching_symbols): Update.
5018 * psymtab.c (match_partial_symbol): Change type; update.
5019 (psym_map_matching_symbols): Likewise.
5020 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5022 * symfile.h (struct quick_symbol_functions)
5023 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5026 2019-09-10 Tom Tromey <tromey@adacore.com>
5028 * psymtab.c (map_block): Remove.
5029 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5030 * symtab.c (iterate_over_symbols_terminated): New function.
5031 * symtab.c (iterate_over_symbols_terminated): Declare.
5033 2019-09-10 Tom Tromey <tromey@adacore.com>
5035 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5036 * language.h (struct language_defn) <la_iterate_over_symbols>:
5038 * symtab.c (iterate_over_symbols): Return bool.
5039 * symtab.h (iterate_over_symbols): Return bool.
5041 2019-09-10 Tom Tromey <tromey@adacore.com>
5043 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5044 (add_nonlocal_symbols): Update.
5045 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5046 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5047 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5048 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5049 Change type of "callback". Remove "data".
5052 2019-09-09 Ali Tamur <tamur@google.com>
5054 * dwarf2read.c (comp_unit_head): Update comment.
5055 (dwarf2_dwo_name): New function declaration.
5056 (dwarf_unit_type_name): New function declaration.
5057 (read_comp_unit_head): Add support for new compilation units,
5058 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5059 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5060 (currently named as "signature") in their header. Also clarify error
5062 (lookup_dwo_id): New function. Returns the dwo id of the given
5064 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5065 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5067 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5068 (dwarf2_dwo_name): Get the dwo name if present.
5069 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5072 2019-09-09 Tom Tromey <tom@tromey.com>
5074 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5076 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5078 * python/python.c (do_start_initialization): Make progname_copy static,
5079 to avoid a leak report.
5081 2019-09-08 Tom Tromey <tom@tromey.com>
5083 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5085 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
5087 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5088 Change type to gdb::optional<block_enum>.
5089 (dw2_symtab_iter_init): Change block_index parameter type
5090 to gdb::optional<block_enum>.
5091 (dw2_lookup_symbol): Change block_index parameter
5092 type to block_enum.c
5093 (dw2_debug_names_lookup_symbol): Likewise.
5094 * psymtab.c (psym_lookup_symbol): Likewise.
5095 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5096 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5099 2019-09-06 Christian Biesinger <cbiesinger@google.com>
5101 * defs.h (relocate_gdb_directory): Change int to bool in
5102 signature and rename flag to relocatable.
5103 * main.c (relocate_path): Likewise.
5104 (relocate_gdb_directory): Likewise.
5106 2019-09-06 Alan Modra <amodra@gmail.com>
5108 * coffread.c (coff_symfile_read): Constify filename variable.
5109 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5110 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5111 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5112 * solib.c (reload_shared_libraries_1): Likewise.
5113 * symfile.c (reread_symbols): Likewise.
5114 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5115 * solib-darwin.c (darwin_bfd_open): Likewise.
5116 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5118 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5120 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5121 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5123 2019-09-03 Tom Tromey <tromey@adacore.com>
5125 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5127 (has_negatives): Unbias a range type bound.
5128 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5129 * gdbtypes.c (operator==): Handle new field.
5130 (create_range_type): Add "bias" parameter.
5131 (create_static_range_type, resolve_dynamic_range): Update.
5132 * gdbtypes.h (struct range_bounds) <bias>: New member.
5133 (create_range_type): Add bias parameter.
5134 * printcmd.c (print_scalar_formatted): Unbias range types.
5135 * value.c (unpack_long): Unbias range types.
5136 (pack_long): Bias range types.
5138 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5140 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5143 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5145 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5146 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5147 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5148 (compile_probe_arg): Likewise.
5149 * probe.h (get_argument_count): Likewise.
5150 * solib-svr4.c (solib_event_probe_action): Likewise.
5151 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5153 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5155 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5157 (svr4_create_solib_event_breakpoints): ...from here.
5159 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5161 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5162 suffix from warning message.
5164 2019-08-30 Tom Tromey <tom@tromey.com>
5166 * tui/tui-winsource.h (struct tui_source_window_base)
5167 <refresh_all>: Don't declare.
5168 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5170 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5171 tui_show_locator_content.
5172 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5174 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5175 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5178 2019-08-30 Tom Tromey <tom@tromey.com>
5180 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5182 2019-08-30 Tom Tromey <tom@tromey.com>
5184 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5185 Remove unnecessary forward declarations.
5187 2019-08-30 Tom Tromey <tom@tromey.com>
5189 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5191 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5192 tui_show_locator_content.
5194 2019-08-30 Tom Tromey <tom@tromey.com>
5196 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5197 (tui_locator_window::rerender): Rewrite using body of previous
5198 tui_show_locator_content.
5200 2019-08-30 Tom Tromey <tom@tromey.com>
5202 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5203 set_locator_fullname>: New methods.
5204 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5205 Rename from tui_set_locator_fullname.
5206 (tui_locator_window::set_locator_info): Rename from
5207 tui_set_locator_info. Return bool.
5208 (tui_update_locator_fullname, tui_show_frame_info): Update.
5210 2019-08-30 Tom Tromey <tom@tromey.com>
5212 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5214 2019-08-30 Tom Tromey <tom@tromey.com>
5216 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5219 2019-08-30 Tom Tromey <tom@tromey.com>
5221 * tui/tui-wingeneral.c (box_win): Assume win_info and
5222 win_info->handle cannot be NULL.
5224 2019-08-30 Tom Tromey <tom@tromey.com>
5226 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5227 refresh_window>: Declare.
5228 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5230 (tui_data_item_window::rerender): Rename from
5231 tui_display_register.
5232 (tui_data_item_window::refresh_window): New method.
5233 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5236 2019-08-30 Tom Tromey <tom@tromey.com>
5238 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5239 regs_column_count, current_group>: Move later. Now private.
5240 <get_current_group>: New method.
5241 * tui/tui-regs.c (tui_reg_command): Update.
5242 * tui/tui-layout.c (tui_set_layout): Update.
5244 2019-08-30 Tom Tromey <tom@tromey.com>
5246 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5247 (tui_data_window::rerender): Don't call
5248 check_and_display_highlight_if_needed.
5249 (tui_data_window::refresh_all): Remove call to
5252 2019-08-30 Tom Tromey <tom@tromey.com>
5254 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5255 (tui_data_window::display_registers_from)
5256 (tui_data_window::display_reg_element_at_line)
5257 (tui_data_window::display_registers_from_line): Remove checks of
5260 2019-08-30 Tom Tromey <tom@tromey.com>
5262 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5264 * tui/tui-regs.c (tui_data_window::show_registers): Call
5266 (tui_data_window::rerender): Rename from display_all_data.
5267 (tui_data_window::rerender): Remove old implementation.
5269 2019-08-30 Tom Tromey <tom@tromey.com>
5271 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5273 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5275 2019-08-29 Bernhard Wodok <barto@gmx.net>
5276 Sergio Durigan Junior <sergiodj@redhat.com>
5279 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5281 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5283 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5284 when searching for types.
5286 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5288 * f-lang.c (f_language_defn): Use f_print_typedef.
5289 * f-lang.h (f_print_typedef): Declare.
5290 * f-typeprint.c (f_print_typedef): Define.
5292 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5294 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5296 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5298 * cli/cli-utils.c (info_print_options_defs): Delete.
5299 (make_info_print_options_def_group): Delete.
5300 (extract_info_print_options): Delete.
5301 (info_print_command_completer): Delete.
5302 (info_print_args_help): Add extra parameter, and optionally
5303 include text about -n flag.
5304 * cli/cli-utils.h (struct info_print_options): Delete.
5305 (extract_info_print_options): Delete declaration.
5306 (info_print_command_completer): Delete declaration.
5307 (info_print_args_help): Add extra parameter, extend header
5309 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5311 * stack.c (struct info_print_options): New type.
5312 (info_print_options_defs): New file scoped variable.
5313 (make_info_print_options_def_group): New static function.
5314 (info_print_command_completer): New static function.
5315 (info_locals_command): Update to use new local functions.
5316 (info_args_command): Likewise.
5317 (_initialize_stack): Add extra parameter to calls to
5318 info_print_args_help.
5319 * symtab.c (search_symbols): Add extra parameter, use this to
5320 possibly excluse non-debug symbols.
5321 (symtab_symbol_info): Add extra parameter, which is passed on to
5323 (struct info_print_options): New type.
5324 (info_print_options_defs): New file scoped variable.
5325 (make_info_print_options_def_group): New static function.
5326 (info_print_command_completer): New static function.
5327 (info_variables_command): Update to use local functions, and pass
5328 extra parameter through to symtab_symbol_info.
5329 (info_functions_command): Likewise.
5330 (info_types_command): Pass additional argument through to
5332 (rbreak_command): Pass extra argument to search_symbols.
5333 (_initialize_symtab): Add extra arguments for calls to
5334 info_print_args_help, and update help text for 'info variables',
5335 'whereis', and 'info functions' commands.
5336 * symtab.h (search_symbols): Add extra argument to declaration.
5337 * NEWS: Mention new flags.
5339 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5341 * symtab.c (lookup_static_symbol): Call the new function (and move
5342 it down to be next to lookup_global_symbol).
5343 (struct global_sym_lookup_data): Add block_enum member and rename to...
5344 (struct global_or_static_sym_lookup_data): ...this.
5345 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5346 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5347 (lookup_symbol_global_or_static_iterator_cb): ...this.
5348 (lookup_global_or_static_symbol): New function.
5349 (lookup_global_symbol): Call new function.
5351 2019-08-26 Tom de Vries <tdevries@suse.de>
5354 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5355 when pc_probe.prob == NULL.
5357 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5359 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5360 variable symbol_linkage to symbol_linkage_.
5362 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5364 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5365 represent whether the symbol is static, dynamic, or we don't
5368 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5370 * gdb/rx-tdep.c (rx_register_names): New.
5371 (rx_register_name): Delete.
5372 (rx_psw_type): Delete.
5373 (rx_fpsw_type): Delete.
5374 (rx_register_type): Delete.
5375 (rx_gdbarch_init): Convert target-descriptions.
5376 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5377 * gdb/features/Makefile: Add rx.xml.
5378 * gdb/features/rx.xml: New.
5379 * gdb/features/rx.c: Generated.
5380 * gdb/NEWS: Mention target description support.
5382 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5384 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5387 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5389 * configure.ac: Don't check for 'dlfcn.h' (moved to
5390 gdbsupport/common.m4).
5391 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5393 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5394 * compile/compile-c-support.c: Include
5395 'gdbsupport/gdb-dlfcn.h'.
5396 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5397 * gdb-dlfcn.c: Move to...
5398 * gdbsupport/gdb-dlfcn.c: ... here.
5399 * gdb-dlfcn.h: Move to...
5400 * gdbsupport/gdb-dlfcn.h: ... here.
5402 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5404 * nios2-tdep.c (struct reg_value): Improve comments. Make
5405 the offset field signed.
5407 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5409 * python/lib/gdb/__init__.py (_execute_file): New function.
5410 * python/python.c (python_run_simple_file): Call gdb._execute_file
5413 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5415 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5416 all uses as this was never set to anything but a zero value.
5418 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5420 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5422 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5424 * tui/tui-data.h (tui_gen_win_info): Add an =default
5425 move constructor, required by some GCC versions.
5427 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5429 * go32-nat.c (go32_sysinfo): Add hygon_p.
5431 2019-08-20 Tom Tromey <tom@tromey.com>
5433 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5434 line_from_reg_element_no, first_reg_element_no_inline,
5435 display_all_data, delete_data_content_windows,
5436 erase_data_content>: Now private.
5438 2019-08-20 Tom Tromey <tom@tromey.com>
5440 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5441 (tui_unhighlight_win, tui_highlight_win)
5442 (tui_win_info::make_window): Update.
5443 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5445 2019-08-20 Tom Tromey <tom@tromey.com>
5447 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5448 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5449 (MAX_PID_WIDTH): Move to tui-stack.c.
5450 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5451 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5452 (MAX_PID_WIDTH): Move from tui-data.h.
5454 2019-08-20 Tom Tromey <tom@tromey.com>
5456 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5457 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5459 (tui_gen_win_info::make_window): Rename from tui_make_window.
5460 (tui_win_info::make_window): New method.
5461 (tui_gen_win_info::make_visible): Update.
5462 * tui/tui-source.c (tui_source_window::set_contents): Update.
5463 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5464 (tui_data_window::display_registers_from): Update.
5465 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5466 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5470 (struct tui_win_info) <make_window>: Declare.
5471 <can_box>: Now virtual.
5472 <title>: New member.
5473 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5474 * tui/tui-command.c (tui_cmd_window::resize): Update.
5476 2019-08-20 Tom Tromey <tom@tromey.com>
5478 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5479 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5480 (tui_data_window::check_register_values): Update.
5482 2019-08-20 Tom Tromey <tom@tromey.com>
5484 * tui/tui-regs.h (struct tui_data_window): Use
5485 DISABLE_COPY_AND_ASSIGN.
5486 <regs_content>: Change type, removing unique_ptr.
5487 <tui_data_window>: Add move constructor.
5488 * tui/tui-regs.c (tui_data_window::show_registers)
5489 (tui_data_window::show_register_group)
5490 (tui_data_window::display_registers_from)
5491 (tui_data_window::display_registers_from)
5492 (tui_data_window::first_data_item_displayed)
5493 (tui_data_window::delete_data_content_windows)
5494 (tui_data_window::rerender, tui_data_window::refresh_window)
5495 (tui_data_window::check_register_values): Update.
5497 2019-08-20 Tom Tromey <tom@tromey.com>
5499 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5500 show_register_group>: Declare.
5501 (tui_show_register_group): Don't declare.
5502 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5504 (tui_data_window::show_register_group): Rename from
5505 tui_show_register_group.
5506 (tui_data_window::check_register_values, tui_reg_command):
5508 * tui/tui-layout.c (tui_set_layout): Update.
5510 2019-08-20 Tom Tromey <tom@tromey.com>
5512 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5514 (tui_check_register_values): Don't declare.
5515 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5516 from tui_check_register_values.
5517 * tui/tui-hooks.c (tui_register_changed): Update.
5519 2019-08-20 Tom Tromey <tom@tromey.com>
5521 * tui/tui-regs.c (tui_reg_layout): Move later.
5522 (tui_show_registers): Don't enable TUI mode or change layout.
5524 2019-08-20 Tom Tromey <tom@tromey.com>
5526 * tui/tui-regs.h (struct tui_data_item_window)
5527 <~tui_data_item_window>: Remove.
5528 <content>: Now a unique_xmalloc_ptr.
5529 * tui/tui-regs.c (tui_register_format): Return a
5531 (tui_get_register): Update.
5532 (~tui_data_item_window): Remove.
5533 (tui_data_window::display_registers_from, tui_display_register):
5535 * tui/tui-io.h (tui_expand_tabs): Update.
5536 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5537 Remove "col" parameter.
5539 2019-08-20 Tom Tromey <tom@tromey.com>
5541 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5543 * tui/tui-regs.c (~tui_data_item_window): Update.
5545 2019-08-20 Tom Tromey <tom@tromey.com>
5547 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5550 2019-08-20 Tom Tromey <tom@tromey.com>
5552 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5554 2019-08-20 Tom Tromey <tom@tromey.com>
5556 * tui/tui-source.h (struct tui_source_window): Update.
5557 * tui/tui-regs.c (tui_show_registers): Update.
5558 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5559 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5560 (NO_REGS_STRING): Remove defines.
5562 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5564 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5565 unnecessary thread walk if remote doesn't support the packet.
5567 2019-08-19 Tom Tromey <tromey@adacore.com>
5569 * python/py-value.c (value_has_field): Fix indentation.
5571 2019-08-19 Tom Tromey <tromey@adacore.com>
5573 * printcmd.c (do_one_display, info_display_command): Update.
5574 * block.h (contained_in): Return bool. Add allow_nested
5576 * block.c (contained_in): Return bool. Add allow_nested
5579 2019-08-19 Tom Tromey <tom@tromey.com>
5581 * configure: Rebuild.
5582 * configure.ac: Disallow the combination of -static-libstdc++ and
5584 * source-cache.c (get_language_name): Handle rust.
5585 (source_cache::get_source_lines): Ignore highlighting exceptions.
5587 2019-08-16 Tom Tromey <tom@tromey.com>
5589 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5590 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5591 (struct tui_source_window_base) <make_visible, refresh_window,
5592 resize>: Remove methods.
5593 <execution_info>: Remove field.
5594 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5595 (tui_show_source_line, tui_source_window_base)
5596 (~tui_source_window_base): Update.
5597 (tui_source_window_base::resize)
5598 (tui_source_window_base::make_visible)
5599 (tui_source_window_base::refresh_window): Remove.
5600 (tui_source_window_base::update_exec_info): Update.
5601 * tui/tui-source.c (tui_source_window::set_contents): Update.
5602 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5604 2019-08-16 Tom Tromey <tom@tromey.com>
5606 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5607 deprecated_query_hook.
5609 2019-08-16 Tom Tromey <tom@tromey.com>
5611 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5612 (tui_update_source_windows_with_line): Update.
5613 * tui/tui-source.h (struct tui_source_window)
5614 <show_symtab_source>: Declare.
5615 (tui_show_symtab_source): Don't declare.
5616 * tui/tui-source.c (tui_show_symtab_source): Rename from
5617 tui_show_symtab_source.
5619 2019-08-16 Tom Tromey <tom@tromey.com>
5621 * tui/tui-winsource.h (struct tui_source_window_base)
5622 <set_contents>: Declare.
5623 * tui/tui-winsource.c
5624 (tui_source_window_base::update_source_window_as_is): Update.
5625 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5627 (tui_set_source_content): Don't declare.
5628 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5629 tui_set_source_content.
5630 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5632 (tui_set_disassem_content): Don't declare.
5633 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5634 tui_set_disassem_content.
5636 2019-08-16 Tom Tromey <tom@tromey.com>
5638 * tui/tui-winsource.h (struct tui_source_window_base)
5639 <update_breakpoint_info>: Declare.
5640 (tui_update_breakpoint_info): Don't declare.
5641 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5642 (tui_update_all_breakpoint_info): Update.
5643 (tui_source_window_base::update_breakpoint_info): Rename from
5644 tui_update_breakpoint_info.
5645 (tui_source_window_base::update_exec_info): Update.
5647 2019-08-16 Tom Tromey <tom@tromey.com>
5649 * tui/tui-winsource.h (struct tui_source_window_base)
5650 <update_source_window>: Declare.
5651 (tui_update_source_window): Don't declare.
5652 * tui/tui-winsource.c
5653 (tui_source_window_base::update_source_window): Rename from
5654 tui_update_source_window.
5655 (tui_source_window_base::rerender): Update.
5656 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5657 * tui/tui-disasm.c (tui_show_disassem)
5658 (tui_show_disassem_and_update_source)
5659 (tui_disasm_window::maybe_update): Update.
5661 2019-08-16 Tom Tromey <tom@tromey.com>
5663 * tui/tui-winsource.h (struct tui_source_window_base)
5664 <update_source_window_as_is>: Declare.
5665 (tui_update_source_window_as_is): Don't declare.
5666 * tui/tui-winsource.c (tui_update_source_window): Update
5667 (tui_source_window_base::update_source_window_as_is): Rename from
5668 tui_update_source_window_as_is.
5669 (tui_source_window_base::refill): Update.
5670 * tui/tui-source.c (tui_show_symtab_source): Update.
5671 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5674 2019-08-16 Tom Tromey <tom@tromey.com>
5676 * tui/tui-winsource.h (tui_update_source_window)
5677 (tui_update_source_window_as_is): Remove "noerror" parameter.
5678 * tui/tui-winsource.c (tui_update_source_window)
5679 (tui_update_source_window_as_is): Remove "noerror" parameter.
5680 (tui_update_source_windows_with_addr)
5681 (tui_update_source_windows_with_line)
5682 (tui_source_window_base::rerender)
5683 (tui_source_window_base::refill): Update.
5684 * tui/tui-source.h (tui_set_source_content)
5685 (tui_show_symtab_source): Remove "noerror" parameter.
5686 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5688 (tui_show_symtab_source): Likewise.
5689 (tui_source_window::maybe_update): Update.
5690 * tui/tui-disasm.c (tui_show_disassem)
5691 (tui_show_disassem_and_update_source)
5692 (tui_disasm_window::do_scroll_vertical)
5693 (tui_disasm_window::maybe_update): Update.
5695 2019-08-16 Tom Tromey <tom@tromey.com>
5697 * tui/tui.c (tui_is_window_visible): Update.
5698 * tui/tui-wingeneral.c (tui_make_window)
5699 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5700 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5701 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5702 (tui_set_win_height_command, parse_scrolling_args): Update.
5703 * tui/tui-source.c (tui_source_window::style_changed): Update.
5704 * tui/tui-regs.c (tui_show_registers)
5705 (tui_data_window::first_data_item_displayed)
5706 (tui_data_window::delete_data_content_windows)
5707 (tui_check_register_values, tui_reg_command): Update.
5708 * tui/tui-disasm.c (tui_show_disassem): Update.
5709 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5711 <is_visible>: Remove field.
5712 * tui/tui-data.c (tui_next_win, tui_prev_win)
5713 (tui_delete_invisible_windows): Update.
5715 2019-08-16 Tom Tromey <tom@tromey.com>
5717 * tui/tui-winsource.h (struct tui_source_window_base)
5718 <m_has_locator>: Remove.
5719 * tui/tui-layout.c (show_source_disasm_command, show_data)
5720 (show_source_or_disasm_and_command): Update.
5722 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5724 * NEWS (Other MI changes): New subsection.
5725 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5726 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5727 * arch-utils.c (default_get_pc_address_flags): New function.
5728 * arch-utils.h (default_get_pc_address_flags): New declaration.
5729 * gdbarch.sh: Add get_pc_address_flags.
5730 * gdbarch.c: Regenerate.
5731 * gdbarch.h: Likewise.
5732 * stack.c (print_pc): New function.
5733 (print_frame_info) (print_frame): Call print_pc.
5735 2019-08-16 Tom de Vries <tdevries@suse.de>
5737 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5738 print_objfile_section_info.
5740 2019-08-15 Tom Tromey <tom@tromey.com>
5742 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5743 calling update_cmdwin_start_line.
5744 * tui/tui-winsource.h (struct tui_source_window_base)
5745 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5746 <rerender>: Declare.
5747 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5749 (tui_source_window_base::set_new_height): Remove.
5750 (tui_source_window_base::rerender): Rename from
5751 do_make_visible_with_new_height.
5752 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5754 (tui_win_info::make_invisible_and_set_new_height)
5755 (tui_win_info::make_visible_with_new_height): Remove.
5756 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5758 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5759 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5760 do_make_visible_with_new_height>: Don't declare.
5761 <rerender>: Declare.
5762 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5764 (tui_data_window::do_make_visible_with_new_height): Remove.
5765 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5766 call tui_show_locator_content.
5767 (tui_gen_win_info::resize): Call rerender.
5768 (show_source_or_disasm_and_command): Don't call
5769 tui_show_locator_content.
5770 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5772 (struct tui_win_info) <rerender>: Declare.
5773 <set_new_height, make_invisible_and_set_new_height,
5774 make_visible_with_new_height>: Don't declare.
5775 * tui/tui-data.c (tui_win_list::rerender): New method.
5776 * tui/tui-command.h (struct tui_cmd_window)
5777 <do_make_visible_with_new_height>: Don't declare.
5779 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5781 2019-08-15 Tom Tromey <tromey@adacore.com>
5783 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5784 * ada-lang.c (ada_enum_name): Likewise.
5786 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5788 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5790 (GdbOutputErrorFile): Likewise.
5791 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5793 (execute_unwinders): Rename to have a leading underscore.
5794 (auto_load_packages): Likewise.
5795 (global scope): Adjust call to auto_load_packages accordingly.
5796 (GdbSetPythonDirectory): Likewise.
5797 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5798 instead of execute_unwinders.
5800 2019-08-15 Tom Tromey <tom@tromey.com>
5802 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5803 (show_data): Don't change window visibility.
5804 (tui_gen_win_info::resize): Remove special case for command
5805 window. Use wresize, when available.
5806 (show_source_or_disasm_and_command): Don't change window
5808 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5809 <make_visible>: New method.
5810 * tui/tui-command.c (tui_cmd_window::resize): New method.
5812 2019-08-15 Tom Tromey <tom@tromey.com>
5814 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5815 (struct tui_source_windows): New.
5816 * tui/tui-winsource.c (tui_display_main): Update.
5817 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5818 (new_height_ok, parse_scrolling_args): Update.
5819 * tui/tui-layout.c (show_layout, show_data): Update.
5820 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5821 (tui_add_to_source_windows): Don't declare.
5822 * tui/tui-data.c (source_windows, tui_source_windows)
5823 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5825 2019-08-15 Tom Tromey <tom@tromey.com>
5827 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5829 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5830 * tui/tui-layout.c (show_source_disasm_command, show_data):
5832 (tui_gen_win_info::resize): Rename.
5833 (show_source_or_disasm_and_command): Update.
5834 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5837 2019-08-15 Tom Tromey <tom@tromey.com>
5839 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5840 * tui/tui-interp.c (tui_interp::init): Don't call
5841 tui_initialize_static_data.
5842 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5844 2019-08-15 Tom Tromey <tom@tromey.com>
5846 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5847 examine tui_win_list.
5849 2019-08-15 Tom Tromey <tom@tromey.com>
5851 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5852 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5853 tui_clear_source_content.
5854 (tui_clear_source_content): Remove.
5855 (tui_source_window_base::do_erase_source_content): Hoist call to
5857 * tui/tui-stack.c (tui_show_frame_info): Don't call
5858 tui_clear_source_content.
5860 2019-08-15 Tom Tromey <tom@tromey.com>
5862 * tui/tui-winsource.h (struct tui_source_window_base)
5863 <do_erase_source_content>: New method.
5864 <erase_source_content>: New method.
5865 (tui_erase_source_content): Don't declare.
5866 * tui/tui-winsource.c (tui_clear_source_content): Update.
5867 (tui_source_window_base::do_erase_source_content): Rename from
5868 tui_erase_source_content.
5869 (tui_source_window_base::show_source_content): Update.
5870 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5871 * tui/tui-source.h (struct tui_source_window)
5872 <erase_source_content>: New method.
5873 * tui/tui-disasm.h (struct tui_disasm_window)
5874 <erase_source_content>: New method.
5876 2019-08-15 Tom Tromey <tom@tromey.com>
5878 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5879 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5881 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5882 * tui/tui-source.c (tui_set_source_content): Update.
5883 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5885 2019-08-15 Tom Tromey <tom@tromey.com>
5887 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5888 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5890 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5892 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5894 (tui_source_window::maybe_update): Update.
5896 2019-08-15 Tom Tromey <tom@tromey.com>
5898 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5899 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5901 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5903 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5905 (tui_disasm_window::maybe_update): Update.
5907 2019-08-15 Tom Tromey <tom@tromey.com>
5909 * tui/tui-winsource.h (struct tui_source_window_base)
5910 <maybe_update>: Declare.
5911 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5913 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5915 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5916 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5918 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5920 2019-08-15 Tom Tromey <tom@tromey.com>
5922 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5924 2019-08-15 Tom Tromey <tom@tromey.com>
5926 * tui/tui-wingeneral.c: Include tui-stack.h.
5927 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5928 (struct tui_locator_window): Move from tui-data.h.
5929 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5930 (tui_initialize_static_data): Move from tui-data.c.
5931 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5932 (struct tui_locator_window): Move to tui-stack.c.
5933 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5934 (tui_initialize_static_data): Move to tui-stack.c.
5936 2019-08-15 Tom Tromey <tom@tromey.com>
5938 * tui/tui-layout.c (show_source_disasm_command)
5939 (show_source_or_disasm_and_command): Use make_visible method, not
5941 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5944 2019-08-15 Tom Tromey <tom@tromey.com>
5946 * tui/tui-wingeneral.h (tui_make_window): Update.
5947 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5949 (tui_gen_win_info::make_visible): Update.
5950 * tui/tui-regs.c (tui_data_window::display_registers_from):
5952 * tui/tui-layout.c (show_source_disasm_command)
5953 (show_source_or_disasm_and_command): Update.
5954 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5955 (enum tui_box): Remove.
5956 (struct tui_win_info) <can_box>: New method.
5957 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5960 2019-08-15 Tom de Vries <tdevries@suse.de>
5962 * linux-nat-trad.c: Include gdbarch.h.
5964 2019-08-14 Alan Hayward <alan.hayward@arm.com>
5966 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5969 2019-08-14 Tom Tromey <tromey@adacore.com>
5971 * darwin-nat.c: Include gdbarch.h.
5972 * darwin-nat-info.c: Include gdbarch.h.
5974 2019-08-13 Tom Tromey <tom@tromey.com>
5976 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5978 * tui/tui-data.c (tui_initialize_static_data): Update.
5980 2019-08-13 Tom Tromey <tom@tromey.com>
5982 * tui/tui-winsource.h (struct tui_exec_info_window)
5983 <~tui_exec_info_window, maybe_allocate_content, get_content,
5985 (struct tui_source_window_base) <set_exec_info_content,
5986 show_exec_info_content>: Don't declare.
5987 * tui/tui-winsource.c
5988 (tui_exec_info_window::maybe_allocate_content): Remove.
5989 (tui_source_window_base::update_exec_info): Rename from
5990 set_exec_info_content.
5991 (tui_source_window_base::show_exec_info_content)
5992 (tui_source_window_base::update_exec_info): Remove.
5994 2019-08-13 Tom Tromey <tom@tromey.com>
5996 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5998 * tui/tui-winsource.c (tui_update_source_window_as_is)
5999 (tui_update_source_windows_with_addr, tui_erase_source_content):
6001 (tui_clear_exec_info_content): Remove.
6003 2019-08-13 Tom Tromey <tom@tromey.com>
6005 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6007 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6008 call tui_erase_exec_info_content.
6009 (tui_clear_exec_info_content): Rename from
6010 tui_erase_exec_info_content.
6011 (tui_clear_exec_info_content): Delete.
6013 2019-08-13 Tom Tromey <tom@tromey.com>
6015 * tui/tui-winsource.h (struct tui_source_window_base)
6016 <show_exec_info_content>: Declare.
6017 (tui_show_exec_info_content): Don't declare.
6018 * tui/tui-winsource.c
6019 (tui_source_window_base::show_exec_info_content): Rename from
6020 tui_show_exec_info_content.
6021 (tui_source_window_base::update_exec_info): Update.
6023 2019-08-13 Tom Tromey <tom@tromey.com>
6025 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6026 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6027 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6028 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6029 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6030 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6033 2019-08-13 Tom Tromey <tom@tromey.com>
6035 * tui/tui-winsource.h (struct tui_source_window_base)
6036 <update_exec_info>: Declare.
6037 (tui_update_exec_info): Don't declare.
6038 * tui/tui-winsource.c (tui_update_source_window_as_is)
6039 (tui_source_window_base::refresh_all)
6040 (tui_update_all_breakpoint_info): Update.
6041 (tui_source_window_base::update_exec_info): Rename from
6042 tui_update_exec_info.
6043 * tui/tui-stack.c (tui_show_frame_info): Update.
6045 2019-08-13 Tom Tromey <tom@tromey.com>
6047 * tui/tui-winsource.h (struct tui_source_window_base)
6048 <set_exec_info_content>: Declare.
6049 (tui_set_exec_info_content): Don't declare.
6050 * tui/tui-winsource.c
6051 (tui_source_window_base::set_exec_info_content): Rename from
6052 tui_set_exec_info_content.
6053 (tui_update_exec_info): Update.
6055 2019-08-13 Tom Tromey <tom@tromey.com>
6057 * tui/tui-winsource.h (struct tui_source_window_base)
6058 <show_source_content>: Declare.
6059 (tui_show_source_content): Don't declare.
6060 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6061 (tui_source_window_base::show_source_content): Rename from
6062 tui_show_source_content.
6063 (tui_source_window_base::refresh_all): Update.
6064 * tui/tui-layout.c (show_source_disasm_command)
6065 (show_source_or_disasm_and_command): Update.
6067 2019-08-13 Tom Tromey <tom@tromey.com>
6069 * tui/tui-winsource.c (tui_erase_source_content)
6070 (tui_show_source_content, tui_source_window_base::refresh_all):
6072 * tui/tui-wingeneral.h
6073 (tui_check_and_display_highlight_if_needed): Don't declare.
6074 * tui/tui-wingeneral.c
6075 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6076 check_and_display_highlight_if_needed.
6077 * tui/tui-win.c (tui_rehighlight_all)
6078 (tui_win_info::make_visible_with_new_height): Update.
6079 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6080 (tui_data_window::erase_data_content)
6081 (tui_data_window::display_all_data): Update.
6082 * tui/tui-data.h (struct tui_win_info)
6083 <check_and_display_highlight_if_needed>: Declare.
6085 2019-08-13 Tom Tromey <tom@tromey.com>
6087 * tui/tui-win.c (tui_resize_all): Call
6088 tui_delete_invisible_windows.
6089 * tui/tui-layout.c (show_layout): Call
6090 tui_delete_invisible_windows.
6091 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6092 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6094 2019-08-13 Tom Tromey <tom@tromey.com>
6096 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6097 tui_add_win_to_layout.
6099 2019-08-13 Tom Tromey <tom@tromey.com>
6101 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6102 * tui/tui-layout.c (tui_default_win_height): Now static.
6104 2019-08-13 Tom Tromey <tom@tromey.com>
6106 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6108 (show_source_disasm_command, show_source_or_disasm_and_command):
6109 Don't check current layout.
6111 2019-08-13 Tom Tromey <tom@tromey.com>
6113 * tui/tui-wingeneral.c (make_all_visible): Remove.
6114 (tui_make_all_invisible): Simplify.
6115 * tui/tui-layout.c (tui_make_all_invisible): Move from
6116 tui-wingeneral.c; simplify.
6117 (show_layout): Hoist call to tui_make_all_invisible.
6118 (show_data): Don't call tui_make_all_invisible.
6120 2019-08-13 Tom Tromey <tom@tromey.com>
6122 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6123 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6125 2019-08-13 Tom Tromey <tom@tromey.com>
6127 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6129 (show_source_disasm_command, show_data)
6130 (show_source_or_disasm_and_command): Don't use
6131 tui_set_current_layout_to.
6132 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6133 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6135 (tui_set_current_layout_to): Remove.
6137 2019-08-13 Tom Tromey <tom@tromey.com>
6139 * tui/tui-layout.c (tui_set_layout): Update.
6140 * tui/tui-data.h (struct tui_layout_def): Remove.
6141 (tui_layout_def): Don't declare.
6142 * tui/tui-data.c (layout_def): Remove.
6143 (tui_layout_def): Remove.
6145 2019-08-13 Tom Tromey <tom@tromey.com>
6147 * tui/tui-winsource.h (struct tui_source_window_base)
6148 <clear_detail>: No longer "override".
6149 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6150 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6151 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6152 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6154 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6156 2019-08-13 Tom Tromey <tromey@adacore.com>
6158 * tracepoint.c: Don't include readline.h or history.h.
6160 2019-08-12 Tom Tromey <tom@tromey.com>
6162 * configure: Rebuild.
6163 * configure.ac: Check for readline 7.
6164 * NEWS: Mention readline 7 requirement.
6167 2019-08-12 Tom Tromey <tom@tromey.com>
6169 * mingw-hdep.c (gdb_select): Remove readline hack.
6171 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6173 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6174 when the function fails.
6176 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6178 * s390-tdep.c (s390_type_align): New function.
6179 (s390_gdbarch_init): Set it as type_align gdbarch method.
6181 2019-08-09 Tom de Vries <tdevries@suse.de>
6184 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6185 pc_low with relocation offset.
6187 2019-08-07 Tom Tromey <tromey@adacore.com>
6189 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6190 (print_frame_args): Update.
6191 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6193 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6194 * frame.h (struct frame_arg): Add initializers.
6195 <error>: Now a unique_xmalloc_ptr.
6197 2019-08-07 Alan Hayward <alan.hayward@arm.com>
6199 * NEWS: Expand the Pointer Authentication entry.
6200 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6201 (aarch64_frame_unmask_lr): ... to this.
6202 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6203 Call aarch64_frame_unmask_lr.
6204 * frame.c (struct frame_info): Add "masked" variable.
6205 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6206 (fprint_frame): Check for masked pc.
6207 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6209 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6210 * stack.c (print_frame): Check for masked pc.
6212 2019-08-06 Tom Tromey <tom@tromey.com>
6214 * stabsread.c (patch_block_stabs, read_one_struct_field)
6215 (read_enum_type): Use obstack_strndup.
6216 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6217 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6218 * dwarf2read.c (guess_full_die_structure_name)
6219 (anonymous_struct_prefix): Use obstack_strndup.
6220 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6221 * c-exp.y (yylex): Use obstack_strndup.
6222 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6223 (write_var_or_type): Use obstack_strndup.
6225 2019-08-06 Tom Tromey <tom@tromey.com>
6227 * symfile.c (reread_symbols): Use obstack_strdup.
6228 * stabsread.c (read_type): Use obstack_strdup.
6229 * gdb_obstack.h (obstack_strdup): New overload.
6230 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6231 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6232 (dwarf2_canonicalize_name): Use obstack_strdup.
6233 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6234 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6237 2019-08-06 Tom Tromey <tom@tromey.com>
6239 * gdb_obstack.h (obstack_strdup): Define.
6240 * gdb_obstack.c (obstack_strdup): Don't define.
6242 2019-08-06 Tom Tromey <tom@tromey.com>
6244 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6246 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6248 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6249 * stabsread.c (common_block_start): Use obstack_strdup.
6250 * objfiles.c (set_objfile_main_name, objfile): Use
6252 * namespace.c (add_using_directive): Use obstack_strdup.
6253 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6254 * jit.c (finalize_symtab): Use obstack_strdup.
6255 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6256 (guess_partial_die_structure_name, partial_die_info::fixup)
6257 (dwarf2_name): Use obstack_strdup.
6258 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6260 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6261 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6263 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6265 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6267 * unittests/help-doc-selftests.c: New file.
6268 * Makefile.in: Add the new file.
6270 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6272 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6273 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6274 the full first line, except when FOR_VALUE_PREFIX. In this case,
6275 the trailing '.' is not output, and the first character is uppercased.
6276 (print_help_for_command): Update call to print_doc_line.
6277 (print_doc_of_command): Likewise.
6278 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6279 * cli/cli-option.c (append_indented_doc): Do not append newline.
6280 (build_help_option): Append newline after first appended_indented_doc
6281 only if a second call is done.
6282 (build_help): Append 2 new lines before each option, except the first
6284 * compile/compile.c (_initialize_compile): Add new lines after
6285 %OPTIONS%, when not at the end of the help.
6286 Change help doc or code
6287 producing the help doc to respect the invariants.
6288 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6289 Also removed the new line after 'Options:', as all other commands
6290 do not put an empty line between 'Options:' and the first option.
6291 * printcmd.c (_initialize_printcmd): Likewise.
6292 * stack.c (_initialize_stack): Likewise.
6293 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6294 incorrectly telling COMMAND is optional.
6295 * ada-lang.c (_initialize_ada_language): Change help doc or code
6296 producing the help doc to respect the invariants.
6297 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6298 * breakpoint.c (_initialize_breakpoint): Likewise.
6299 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6300 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6301 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6302 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6303 _initialize_cli_style): Likewise.
6304 * corelow.c (core_target_info): Likewise.
6305 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6306 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6307 * filesystem.c (_initialize_filesystem): Likewise.
6308 * frame.c (_initialize_frame): Likewise.
6309 * gnu-nat.c (add_task_commands): Likewise.
6310 * infcall.c (_initialize_infcall): Likewise.
6311 * infcmd.c (_initialize_infcmd): Likewise.
6312 * interps.c (_initialize_interpreter): Likewise.
6313 * language.c (_initialize_language): Likewise.
6314 * linux-fork.c (_initialize_linux_fork): Likewise.
6315 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6316 * maint.c (_initialize_maint_cmds): Likewise.
6317 * memattr.c (_initialize_mem): Likewise.
6318 * printcmd.c (_initialize_printcmd): Likewise.
6319 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6321 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6322 * record-btrace.c (_initialize_record_btrace): Likewise.
6323 * record-full.c (_initialize_record_full): Likewise.
6324 * record.c (_initialize_record): Likewise.
6325 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6326 * regcache.c (_initialize_regcache): Likewise.
6327 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6328 _initialize_remote): Likewise.
6329 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6330 * serial.c (_initialize_serial): Likewise.
6331 * skip.c (_initialize_step_skip): Likewise.
6332 * source.c (_initialize_source): Likewise.
6333 * stack.c (_initialize_stack): Likewise.
6334 * symfile.c (_initialize_symfile): Likewise.
6335 * symtab.c (_initialize_symtab): Likewise.
6336 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6337 * top.c (init_main): Likewise.
6338 * tracefile-tfile.c (tfile_target_info): Likewise.
6339 * tracepoint.c (_initialize_tracepoint): Likewise.
6340 * tui/tui-win.c (_initialize_tui_win): Likewise.
6341 * utils.c (add_internal_problem_command): Likewise.
6342 * valprint.c (value_print_option_defs): Likewise.
6344 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6347 * configure.ac: Drop enable-libmcheck support.
6348 * configure, config.in: Rebuild.
6349 * libmcheck.m4: Remove.
6350 * acinclude.m4: Don't include it.
6351 * Makefile.in: Don't distribute it.
6352 * top.c (print_gdb_configuration): Don't mention it.
6354 2019-08-06 Tom Tromey <tom@tromey.com>
6356 * utils.c (set_output_style): Sometimes pass stream to
6358 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6359 * record-btrace.c (btrace_insn_history): Update.
6360 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6362 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6363 Update initializers.
6364 <m_uiout>: New field.
6366 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6367 Remove "uiout" parameter.
6368 (dump_insns): Update.
6369 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6370 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6372 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6374 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6375 (error_in_psymtab_expansion): Likewise.
6376 (lookup_symbol_via_quick_fns): Likewise.
6377 (basic_lookup_transparent_type_quick): Likewise.
6378 (basic_lookup_transparent_type_1): Likewise.
6380 2019-08-06 Tom Tromey <tromey@adacore.com>
6382 * source.c (last_source_error): Now bool.
6383 (print_source_lines_base): Make "noprint" bool. Only open
6384 source file when last_source_visited changes.
6386 2019-08-06 Tom Tromey <tromey@adacore.com>
6388 * annotate.c (annotate_source_line): Use g_source_cache.
6389 * source-cache.c (source_cache::get_plain_source_lines): Change
6390 parameters. Populate m_offset_cache.
6391 (source_cache::ensure): New method.
6392 (source_cache::get_line_charpos): New method.
6393 (extract_lines): Move lower. Change parameters.
6394 (source_cache::get_source_lines): Move lower.
6395 * source-cache.h (class source_cache): Update comment.
6396 <get_line_charpos>: New method.
6397 <get_source_lines>: Update comment.
6398 <clear>: Clear m_offset_cache.
6399 <get_plain_source_lines>: Change parameters.
6400 <ensure>: New method
6401 <m_offset_cache>: New member.
6402 * source.c (forget_cached_source_info_for_objfile): Update.
6403 (info_source_command): Use g_source_cache.
6404 (find_source_lines, open_source_file_with_line_charpos): Remove.
6405 (print_source_lines_base, search_command_helper): Use g_source_cache.
6406 * source.h (open_source_file_with_line_charpos): Don't declare.
6407 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6408 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6411 2019-08-06 Tom Tromey <tromey@adacore.com>
6413 * source-cache.c (source_cache::get_plain_source_lines):
6414 Remove "first_line" and "last_line" parameters.
6415 (source_cache::get_source_lines): Cache plain text.
6416 * source-cache.h (class source_cache)
6417 <get_plain_source_lines>: Update.
6419 2019-08-06 Tom Tromey <tromey@adacore.com>
6421 * source-cache.c (extract_lines): No longer a method.
6422 Changed type of parameter. Include final newline.
6423 (selftests::extract_lines_test): New function.
6424 (_initialize_source_cache): Likewise.
6425 * source-cache.h (class source_cache)
6426 <extract_lines>: Don't declare.
6428 2019-08-06 Tom Tromey <tromey@adacore.com>
6430 * breakpoint.c (init_breakpoint_sal): Update.
6431 (breakpoint): Update.
6432 * breakpoint.h (struct breakpoint) <filter>: Now a
6435 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6437 * NEWS: Mention dictionary access on blocks.
6438 * python/py-block.c (blpy_getitem): New function.
6439 (block_object_as_mapping): New struct.
6440 (block_object_type): Use new struct for tp_as_mapping field.
6442 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6444 * objfiles.h (objfile): Add a comment describing partial symbols.
6446 2019-08-05 Tom Tromey <tromey@adacore.com>
6448 * compile/compile.c (_initialize_compile): Use _(), not N_().
6449 * thread.c (_initialize_thread): Use _(), not N_().
6450 * stack.c (_initialize_stack): Use _(), not N_().
6451 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6453 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6455 * dwarf2read.c (struct dw2_symtab_iterator):
6456 <want_specific_block>: Remove.
6457 <block_index>: Change type to gdb::optional.
6458 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6459 change type of BLOCK_INDEX parameter to gdb::optional.
6460 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6461 (dw2_lookup_symbol): Don't pass argument for
6462 WANT_SPECIFIC_BLOCK.
6463 (dw2_expand_symtabs_for_function): Don't pass argument for
6464 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6465 (class dw2_debug_names_iterator)
6466 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6467 parameter, change BLOCK_INDEX type to gdb::optional.
6468 <m_want_specific_block>: Remove.
6469 <m_block_index>: Change type to gdb::optional.
6470 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6471 gdb::optional. Re-write in function of gdb::optional.
6472 (dw2_debug_names_lookup_symbol): Don't pass argument for
6473 WANT_SPECIFIC_BLOCK.
6474 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6475 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6478 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6480 * NEWS: Mention changes to "info sources" command.
6482 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6484 * symtab.c (filename_partial_match_opts): New struct type.
6485 (struct output_source_filename_data): New members
6486 regexp, c_regexp, partial_match.
6487 (output_source_filename): Use new members to decide to print file.
6488 (info_sources_option_defs): New variable.
6489 (make_info_sources_options_def_group, print_info_sources_header,
6490 info_sources_command_completer):
6492 (info_sources_command): Read new optional arguments.
6493 (_initialize_symtab): Update info sources help.
6495 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6497 * ada-lang.c (exception_support_info_v0): Renamed from...
6498 (default_exception_support_info): ... this. Create new
6500 (ada_has_this_exception_support): Look up catch_handlers_sym.
6501 (ada_exception_support_info_sniffer): Try v0 after default.
6503 2019-08-01 Tom Tromey <tromey@adacore.com>
6505 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6508 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6510 * s12z-tdep.c: Fix include path for s12z-opc.h.
6512 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6514 * NEWS: Require GNU make 3.82.
6516 2019-07-16 Tom Tromey <tom@tromey.com>
6518 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6521 2019-07-30 Tom Tromey <tromey@adacore.com>
6523 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6525 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6527 * printcmd.c (print_address_symbolic): Print negative offsets.
6528 (build_address_symbolic): Force signed arithmetic when computing
6531 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6533 PR/24474: Add a function to lookup static variables.
6534 * NEWS: Mention this new function.
6535 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6536 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6537 * python/python.c (python_GdbMethods): Add new function.
6539 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6541 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6542 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6543 (objfpy_lookup_static_symbol): New function.
6544 (objfile_object_methods): Add new functions.
6546 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6548 * NEWS: Mention 'set|show print frame-info'. Mention new
6549 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6550 backtrace argument. Mention that python frame filtering code
6551 is now consistent with what 'backtrace' command prints.
6553 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6555 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6557 (print_frame_info_auto, print_frame_info_source_line,
6558 print_frame_info_location, print_frame_info_source_and_location,
6559 print_frame_info_location_and_address, print_frame_info_short_location):
6561 (struct frame_print_options): New member print_frame_info.
6562 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6563 * stack.h (get_user_print_what_frame_info): New declaration.
6564 (frame_show_address): New declaration.
6565 * stack.c (print_frame_arguments_choices): New value 'presence'.
6566 (print_frame_info_auto, print_frame_info_source_line,
6567 print_frame_info_location, print_frame_info_source_and_location,
6568 print_frame_info_location_and_address, print_frame_info_short_location,
6569 print_frame_info_choices, print_frame_info_print_what): New definitions.
6570 (print_frame_args): Only print dots for args if print frame-arguments
6572 (frame_print_option_defs): New element for "frame-info".
6573 (get_user_print_what_frame_info): New function.
6574 (frame_show_address): Make non static. Move comment to stack.h.
6575 (print_frame_info_to_print_what): New function.
6576 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6577 to decide what to print.
6578 (backtrace_command_1): Handle the new print_frame_arguments_presence
6580 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6581 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6582 (py_print_frame): In non-mi mode, use LOCATION as default for
6583 print_what, similarly to frame information printed directly by
6584 backtrace command. Handle frame-info user option in non MI mode.
6586 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6588 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6589 Add case for debugging 32-bit target on 64-bit host. Revise
6592 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6594 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6595 instead of find_function_entry_range_from_pc.
6597 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6599 * stack.c (find_frame_funname): Remove code which preferred
6600 minsym over symtab sym in "certain pathological cases".
6602 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6603 parameter. Change type of "do_demangle" to bool.
6604 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6605 Pass suitable "prefer_sym_over_minsym" flag to
6606 build_address_symbolic(). Don't output "+" for negative offsets.
6607 * printcmd.c (print_address_symbolic): Update invocation of
6608 build_address_symbolic to include a "prefer_sym_over_minsym"
6610 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6611 Restrict cases in which use of minimal symbol is preferred to that
6612 of a found symbol. Update comments.
6614 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6615 for entry pc when entry pc is out of range for that FDE.
6617 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6620 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6623 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6625 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6626 this function's Python signature.
6629 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6631 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6632 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6633 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6634 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6635 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6638 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6640 * h8300-tdep.c (h8300_register_name_common): New.
6641 h8300_register_name): Use h8300_register_name_common.
6642 (h8300s_register_name): Likewise.
6643 (h8300sx_register_name): Likewise.
6644 (h8300h_register_nam): New.
6645 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6648 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6650 * arm-tdep.c (arm_skip_cmse_entry): New function.
6651 (arm_is_sgstubs_section): New function.
6652 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6654 2019-07-22 Tom Tromey <tom@tromey.com>
6656 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6659 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6661 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6664 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6666 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6667 so that GDB doesn't match any msymbols when searching in the
6669 (print_symbol_info): Print using typedef_print or type_print based
6670 on the type of the symbol. Add updated FIXME comment moved from...
6671 (_initialize_symtab): ... move and update FIXME comment to above.
6673 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6675 * NEWS: Mention adding -q option to "info types".
6676 * symtab.c (struct info_types_options): New struct.
6677 (info_types_options_defs): New variable.
6678 (make_info_types_options_def_group): New function.
6679 (info_types_command): Use gdb::option framework to parse options.
6680 (info_types_command_completer): New function.
6681 (_initialize_symtab): Extend the help text on "info types" and
6682 register command completer.
6684 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6686 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6687 (lookup_symbol_in_objfile): Change int to block_enum and add a
6688 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6690 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6692 * MAINTAINERS (Write After Approval): Add self.
6694 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6696 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6697 instruction to the dummy code region.
6699 2019-07-19 Tom Tromey <tromey@adacore.com>
6701 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6702 (ARGSUSED, PARAMS, __func__): Remove rules.
6704 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6706 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6707 * features/arm/arm-with-iwmmxt.c: Remove.
6708 * features/arm/arm-with-iwmmxt.xml: Remove.
6709 * features/arm/arm-with-m-fpa-layout.c: Remove.
6710 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6711 * features/arm/arm-with-m-vfp-d16.c: Remove.
6712 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6713 * features/arm/arm-with-m.c: Remove.
6714 * features/arm/arm-with-m.xml: Remove.
6715 * features/arm/arm-with-neon.c: Remove.
6716 * features/arm/arm-with-neon.xml: Remove.
6717 * features/arm/arm-with-vfpv2.c: Remove.
6718 * features/arm/arm-with-vfpv2.xml: Remove.
6719 * features/arm/arm-with-vfpv3.c: Remove.
6720 * features/arm/arm-with-vfpv3.xml: Remove.
6722 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6724 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6726 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6728 * arch/aarch32.c (aarch32_create_target_description): Create
6729 target descriptions using features.
6730 * arch/arm.c (arm_create_target_description)
6731 (arm_create_mprofile_target_description): Likewise.
6732 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6734 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6736 * Makefile.in: Add new files.
6737 * aarch32-tdep.c: New file.
6738 * aarch32-tdep.h: New file.
6739 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6740 Call aarch32_read_description.
6741 * arch/aarch32.c: New file.
6742 * arch/aarch32.h: New file.
6743 * arch/arm.c (arm_create_target_description)
6744 (arm_create_mprofile_target_description): New function.
6745 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6746 (arm_create_target_description)
6747 (arm_create_mprofile_target_description): New declaration.
6748 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6749 read_description functions.
6750 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6752 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6753 * arm-tdep.c (tdesc_arm_list): New variable.
6754 (arm_register_g_packet_guesses): Call create description functions.
6755 (arm_read_description) (arm_read_mprofile_description): New
6757 * arm-tdep.h (arm_read_description)
6758 (arm_read_mprofile_description): Add declaration.
6759 * configure.tgt: Add new files.
6761 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6763 * top.c (new_ui_command): Open specified terminal just once.
6765 2019-07-18 Tom Tromey <tromey@adacore.com>
6767 * symtab.c (main_name): Constify return type.
6768 * symfile.c (set_initial_language): Update.
6769 * symtab.h (main_name): Constify return type.
6771 2019-07-17 Tom Tromey <tom@tromey.com>
6773 * tui/tui-winsource.c (tui_update_source_window)
6774 (tui_update_source_window_as_is)
6775 (tui_update_source_windows_with_line): Remove return.
6776 * tui/tui-disasm.c (tui_show_disassem)
6777 (tui_show_disassem_and_update_source): Remove return.
6778 * tui/tui.c (tui_reset): Remove return.
6779 * tui/tui-wingeneral.c
6780 (tui_check_and_display_highlight_if_needed): Remove return.
6782 2019-07-17 Tom Tromey <tom@tromey.com>
6784 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6786 2019-07-17 Tom Tromey <tom@tromey.com>
6788 * tui/tui-winsource.h (struct tui_exec_info_window)
6789 (struct tui_source_window_base): Move from tui-data.h.
6790 * tui/tui-winsource.c: Move many method definitions from
6791 elsewhere. Remove "structuring" comments.
6792 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6793 (tui_source_window_base::refresh_window): Move to
6795 * tui/tui-win.c (tui_source_window_base::refresh_all)
6796 (tui_source_window_base::update_tab_width)
6797 (tui_source_window_base::set_new_height)
6798 (tui_source_window_base::do_make_visible_with_new_height): Move to
6800 * tui/tui-source.h: Update.
6801 * tui/tui-source.c (tui_source_window_base::reset): Move to
6803 * tui/tui-disasm.h: Update.
6804 * tui/tui-data.h (struct tui_exec_info_window): Move to
6806 (struct tui_source_window_base): Likewise.
6807 * tui/tui-data.c (tui_source_window_base::clear_detail)
6808 (tui_source_window_base, ~tui_source_window_base): Move to
6811 2019-07-17 Tom Tromey <tom@tromey.com>
6813 * tui/tui-win.c (tui_resize_all)
6814 (tui_source_window_base::update_tab_width)
6815 (tui_adjust_win_heights): Update.
6816 (tui_win_info::make_invisible_and_set_new_height): Rename from
6817 make_invisible_and_set_new_height.
6818 * tui/tui-data.h (struct tui_win_info)
6819 <make_invisible_and_set_new_height>: New method.
6821 2019-07-17 Tom Tromey <tom@tromey.com>
6823 * tui/tui.c: Update.
6824 * tui/tui-source.h (struct tui_source_window): Move from
6826 * tui/tui-layout.c: Update.
6827 * tui/tui-disasm.c: Update.
6828 * tui/tui-data.h (struct tui_source_window): Move to
6831 2019-07-17 Tom Tromey <tom@tromey.com>
6833 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6835 * tui/tui-data.h (struct tui_disasm_window): Move to
6838 2019-07-17 Tom Tromey <tom@tromey.com>
6840 * tui/tui-regs.h (struct tui_data_item_window): Move from
6842 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6843 * tui/tui-data.h (struct tui_data_item_window): Move to
6845 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6847 2019-07-17 Tom Tromey <tom@tromey.com>
6849 * tui/tui.c: Update.
6850 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6851 (tui_cmd_window::max_height): Move to tui-command.c.
6852 * tui/tui-layout.c: Update.
6853 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6854 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6856 * tui/tui-command.h (struct tui_cmd_window): Move from
6858 * tui/tui-command.c: Remove "structuring" comments.
6859 (tui_cmd_window::clear_detail)
6860 (tui_cmd_window::do_make_visible_with_new_height)
6861 (tui_cmd_window::max_height): Move from elsewhere.
6863 2019-07-17 Tom Tromey <tom@tromey.com>
6865 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6867 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6868 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6870 2019-07-17 Tom Tromey <tom@tromey.com>
6872 * tui/tui.c: Update.
6873 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6875 * tui/tui-windata.h: Remove file.
6876 * tui/tui-windata.c: Remove file.
6877 * tui/tui-win.c (tui_data_window::set_new_height)
6878 (tui_data_window::do_make_visible_with_new_height): Move to
6880 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6881 * tui/tui-regs.c: Remove "structuring" comments.
6882 (tui_data_window::first_data_item_displayed)
6883 (tui_data_window::delete_data_content_windows)
6884 (tui_data_window::erase_data_content)
6885 (tui_data_window::display_all_data)
6886 (tui_data_window::refresh_all)
6887 (tui_data_window::do_scroll_vertical)
6888 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6889 (tui_data_window::do_make_visible_with_new_height)
6890 (tui_data_window::refresh_window): Move from elsewhere.
6891 (_initialize_tui_regs): Move to end of file.
6892 * tui/tui-layout.c: Update.
6893 * tui/tui-hooks.c: Update.
6894 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6895 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6897 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6899 2019-07-17 Tom Tromey <tom@tromey.com>
6901 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6904 2019-07-17 Tom Tromey <tom@tromey.com>
6906 * tui/tui-win.c (tui_source_window_base::set_new_height)
6907 (tui_source_window_base::do_make_visible_with_new_height): Use
6908 m_has_locator field directly.
6909 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6911 (struct tui_source_window_base) <has_locator>: Likewise.
6913 2019-07-17 Tom Tromey <tom@tromey.com>
6915 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6917 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6919 * tui/tui-win.c (tui_source_window_base::set_new_height)
6920 (tui_source_window_base::set_new_height)
6921 (make_invisible_and_set_new_height)
6922 (tui_source_window_base::do_make_visible_with_new_height)
6923 (tui_source_window_base::do_make_visible_with_new_height):
6925 * tui/tui-layout.c (show_source_disasm_command, show_data)
6926 (show_source_or_disasm_and_command): Update.
6927 * tui/tui-layout.c (show_layout): Update.
6929 2019-07-17 Tom Tromey <tom@tromey.com>
6931 * tui/tui-layout.c (make_data_window): Remove.
6932 (show_data): Unify creation and re-initialization cases.
6934 2019-07-17 Tom Tromey <tom@tromey.com>
6936 * tui/tui-layout.c (make_source_window, make_disasm_window):
6938 (show_data): Unify creation and re-initialization cases.
6940 2019-07-17 Tom Tromey <tom@tromey.com>
6942 * tui/tui-layout.c (make_command_window): Remove.
6943 (show_source_disasm_command, show_source_or_disasm_and_command):
6944 Unify creation and re-initialization cases.
6946 2019-07-17 Tom Tromey <tom@tromey.com>
6948 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6949 creation and re-initialization cases.
6951 2019-07-17 Tom Tromey <tom@tromey.com>
6953 * tui/tui-regs.c (tui_get_register): Return void.
6955 2019-07-17 Tom Tromey <tom@tromey.com>
6957 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6960 2019-07-17 Tom Tromey <tom@tromey.com>
6962 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6965 2019-07-17 Tom Tromey <tom@tromey.com>
6967 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6968 * tui/tui-regs.c (tui_reg_layout): New function.
6969 (tui_show_registers, tui_reg_command): Use it.
6970 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6971 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6973 (tui_layout_command): Remove.
6975 2019-07-17 Tom Tromey <tom@tromey.com>
6977 * tui/tui-layout.h (tui/tui-layout): Return void.
6978 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6980 2019-07-17 Tom Tromey <tom@tromey.com>
6982 * tui/tui-layout.c (show_source_disasm_command, show_data):
6984 (reset_locator): Remove.
6985 (show_source_or_disasm_and_command): Update.
6987 2019-07-17 Tom Tromey <tom@tromey.com>
6989 * tui/tui-source.c (tui_source_window_base::reset): Remove
6991 * tui/tui-layout.c (make_command_window, make_source_window)
6992 (make_disasm_window, make_data_window)
6993 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6994 (reset_locator, show_source_or_disasm_and_command): Update.
6995 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6997 (struct tui_source_window_base) <reset>: Likewise.
6999 2019-07-17 Tom Tromey <tom@tromey.com>
7001 * tui/tui-layout.c (show_source_disasm_command): Use
7003 (reset_locator): New function.
7004 (init_and_make_win): Remove.
7005 (show_source_or_disasm_and_command): Use reset_locator.
7007 2019-07-17 Tom Tromey <tom@tromey.com>
7009 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7011 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7013 * tui/tui-source.c (tui_source_window_base::reset): New method.
7014 * tui/tui-layout.c (make_command_window): Don't call
7016 (make_source_window, make_disasm_window): Don't call
7017 make_source_or_disasm_window.
7018 (make_data_window): Don't call init_and_make_win. Change calling
7020 (show_source_disasm_command, show_data): Simplify.
7021 (make_source_or_disasm_window): Remove.
7022 (show_source_or_disasm_and_command): Simplify.
7023 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7024 (struct tui_source_window_base) <reset>: Likewise.
7025 <execution_info>: Remove initializer.
7026 * tui/tui-data.c (tui_source_window_base): Initialize
7029 2019-07-17 Tom Tromey <tom@tromey.com>
7031 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7034 2019-07-17 Tom Tromey <tom@tromey.com>
7036 * tui/tui.c (tui_rl_other_window): Update.
7037 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7038 superclass method first. Always iterate over regs_content.
7039 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7041 * tui/tui-win.c (tui_set_focus_command): Update.
7043 2019-07-17 Tom Tromey <tom@tromey.com>
7045 * tui/tui-win.c (tui_set_focus_command): Rename from
7046 tui_set_focus. Call tui_enable.
7047 (tui_set_focus_command): Remove.
7049 2019-07-17 Tom Tromey <tom@tromey.com>
7051 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7053 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7055 (tui_data_window::refresh_window): Call refresh_window on data
7056 items. Always call superclass refresh_window.
7057 (tui_win_info::refresh): Remove.
7058 (tui_source_window_base::refresh_window): Update.
7059 (tui_refresh_all): Update.
7060 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7062 (show_source_or_disasm_and_command): Likewise.
7063 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7064 (struct tui_source_window_base) <refresh>: Likewise.
7066 2019-07-17 Tom Tromey <tom@tromey.com>
7068 * tui/tui-winsource.c (tui_clear_source_content)
7069 (tui_show_source_content): Update.
7070 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7071 whether content is empty.
7072 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7075 2019-07-17 Tom Tromey <tom@tromey.com>
7077 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7079 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7080 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7082 2019-07-17 Tom Tromey <tom@tromey.com>
7084 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7085 (struct tui_data_item_window): Update.
7087 2019-07-17 Tom Tromey <tom@tromey.com>
7089 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7090 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7093 2019-07-17 Tom Tromey <tom@tromey.com>
7095 * tui/tui-winsource.h (tui_erase_source_content)
7096 (tui_clear_source_content): Remove "display_prompt" parameter.
7097 * tui/tui-winsource.c (tui_update_source_window_as_is)
7098 (tui_update_source_windows_with_addr): Update.
7099 (tui_clear_source_content): Remove "display_prompt" parameter.
7100 (tui_erase_source_content): Likewise. Simplify.
7101 (tui_show_source_content): Update.
7102 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7103 * tui/tui-stack.c (tui_show_frame_info): Update.
7104 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7107 2019-07-17 Tom Tromey <tom@tromey.com>
7109 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7110 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7112 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7115 2019-07-17 Tom Tromey <tom@tromey.com>
7117 * tui/tui-winsource.c (tui_clear_source_content)
7118 (tui_show_source_content, tui_show_exec_info_content)
7119 (tui_clear_exec_info_content): Update.
7120 * tui/tui-stack.c (tui_show_locator_content): Update.
7121 (tui_show_frame_info): Update.
7122 * tui/tui-source.h (tui_source_window): Don't declare.
7123 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7124 from tui_source_is_displayed.
7125 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7127 (struct tui_source_window_base) <content_in_use>: New field. Now
7129 (struct tui_source_window) <showing_source_p>: New method.
7130 (TUI_SRC_WIN): Change cast.
7131 * tui/tui-data.c (tui_initialize_static_data): Update.
7133 2019-07-17 Tom Tromey <tom@tromey.com>
7135 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7137 * tui/tui-source.c (tui_source_window::location_matches_p): New
7139 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7141 * tui/tui-data.h (struct tui_source_window_base)
7142 <location_matches_p>: New method.
7143 (struct tui_source_window, struct tui_disasm_window)
7144 <location_matches_p>: Likewise.
7146 2019-07-17 Tom Tromey <tom@tromey.com>
7148 * tui/tui-win.c (tui_set_win_height_command): Rename from
7150 (tui_set_win_height_command): Remove.
7152 2019-07-17 Tom Tromey <tom@tromey.com>
7154 * tui/tui-source.c (tui_source_window): New constructor. Add
7156 (~tui_source_window): New destructor.
7157 (tui_source_window::style_changed): New method.
7158 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7159 (tui_attach_detach_observers): Update.
7160 * tui/tui-data.h (struct tui_source_window): Make constructor not
7161 inline. Add destructor.
7162 (struct tui_source_window) <style_changed>: New method.
7163 <m_observable>: New member.
7165 2019-07-17 Tom Tromey <tom@tromey.com>
7167 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7168 * tui/tui-win.c (tui_resize_all): Fix typo.
7170 2019-07-17 Tom Tromey <tom@tromey.com>
7172 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7173 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7174 (tui_refresh_all): Remove "list" parameter. Use foreach.
7175 * tui/tui-win.c (window_name_completer): Use foreach.
7176 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7177 (update_tab_width): Likewise.
7178 * tui/tui-layout.c (show_layout): Update.
7179 * tui/tui-data.h (class tui_window_iterator): New.
7180 (struct all_tui_windows): New.
7181 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7183 2019-07-17 Tom Tromey <tom@tromey.com>
7185 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7186 parameter. Don't reference globals.
7187 (tui_reg_command): Update.
7189 2019-07-17 Tom Tromey <tom@tromey.com>
7191 * tui/tui-regs.c (tui_show_registers): Simplify.
7193 2019-07-17 Tom Tromey <tom@tromey.com>
7195 * tui/tui-regs.c (tui_show_registers): Update.
7196 (tui_show_register_group): Add win_info parameter.
7198 2019-07-17 Tom Tromey <tom@tromey.com>
7200 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7201 Rename from tui_display_reg_element_at_line.
7202 (tui_data_window::display_registers_from_line): Update.
7203 * tui/tui-data.h (struct tui_data_window)
7204 <display_reg_element_at_line>: New method.
7206 2019-07-17 Tom Tromey <tom@tromey.com>
7208 * tui/tui-regs.h (tui_display_registers_from)
7209 (tui_display_registers_from_line): Don't declare.
7210 * tui/tui-windata.c (tui_data_window::display_all_data)
7211 (tui_data_window::refresh_all)
7212 (tui_data_window::do_scroll_vertical): Update.
7213 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7214 from tui_display_registers_from.
7215 (tui_display_reg_element_at_line): Update.
7216 (tui_data_window::display_registers_from_line): Rename from
7217 tui_display_registers_from_line.
7218 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7219 display_registers_from_line>: New methods.
7221 2019-07-17 Tom Tromey <tom@tromey.com>
7223 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7224 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7225 from tui_erase_data_content.
7226 (tui_data_window::display_all_data)
7227 (tui_data_window::refresh_all)
7228 (tui_data_window::do_scroll_vertical): Update.
7229 * tui/tui-regs.c (tui_show_registers): Update.
7230 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7233 2019-07-17 Tom Tromey <tom@tromey.com>
7235 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7238 (tui_data_window::delete_data_content_windows): Rename from
7239 tui_delete_data_content_windows.
7240 (tui_data_window::display_all_data)
7241 (tui_data_window::do_scroll_vertical): Update.
7242 * tui/tui-data.h (struct tui_data_window)
7243 <delete_data_content_windows>: New method.
7245 2019-07-17 Tom Tromey <tom@tromey.com>
7247 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7248 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7250 2019-07-17 Tom Tromey <tom@tromey.com>
7252 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7253 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7254 from tui_display_all_data.
7256 (tui_data_window::do_make_visible_with_new_height): Update.
7257 * tui/tui-regs.c (tui_show_registers): Update.
7258 * tui/tui-layout.c (tui_set_layout): Update.
7259 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7262 2019-07-17 Tom Tromey <tom@tromey.com>
7264 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7265 * tui/tui-windata.c (tui_display_data_from): Remove.
7266 (tui_data_window::refresh_all): Update.
7268 2019-07-17 Tom Tromey <tom@tromey.com>
7270 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7271 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7272 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7273 tui_display_registers_from_line.
7274 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7275 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7276 "force_display" parameter.
7278 2019-07-17 Tom Tromey <tom@tromey.com>
7280 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7282 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7283 Rename from tui_first_reg_element_no_inline.
7284 (tui_display_reg_element_at_line)
7285 (tui_display_registers_from_line): Update.
7286 * tui/tui-data.h (struct tui_data_window)
7287 <first_reg_element_no_inline>: New method.
7289 2019-07-17 Tom Tromey <tom@tromey.com>
7291 * tui/tui-windata.c (tui_display_data_from)
7292 (tui_data_window::do_scroll_vertical): Update.
7293 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7294 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7295 Rename from tui_line_from_reg_element_no.
7296 (tui_display_registers_from_line): Update.
7297 * tui/tui-data.h (struct tui_data_window)
7298 <line_from_reg_element_no>: New method.
7300 2019-07-17 Tom Tromey <tom@tromey.com>
7302 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7303 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7304 tui_last_regs_line_no.
7305 (tui_display_reg_element_at_line)
7306 (tui_display_registers_from_line): Update.
7307 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7310 2019-07-17 Tom Tromey <tom@tromey.com>
7313 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7314 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7315 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7316 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7317 (tui_update_breakpoint_info): Likewise.
7318 * tui/tui-hooks.c (tui_event_create_breakpoint)
7319 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7322 2019-07-17 Tom Tromey <tom@tromey.com>
7324 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7326 2019-07-17 Tom Tromey <tom@tromey.com>
7328 * tui/tui-winsource.c (tui_update_source_window_as_is)
7329 (tui_update_source_windows_with_addr): Update.
7330 * tui/tui-source.h (tui_set_source_content)
7331 (tui_show_symtab_source): Add "win_info" parameter.
7332 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7334 (tui_show_symtab_source): Likewise.
7336 2019-07-17 Tom Tromey <tom@tromey.com>
7338 * tui/tui-wingeneral.c
7339 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7341 2019-07-17 Tom Tromey <tom@tromey.com>
7343 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7344 (struct tui_cmd_window) <can_scroll>: New method.
7345 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7348 2019-07-17 Tom Tromey <tromey@adacore.com>
7350 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7351 do_field_signed>: Rename. Change type of "value".
7352 * ui-out.c (ui_out::field_signed): Rename from field_int.
7353 Change type of "value".
7354 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7356 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7357 do_field_int. Change type of "value".
7358 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7359 do_field_int. Change type of "value".
7360 * tracepoint.c (trace_status_mi, tfind_1)
7361 (print_one_static_tracepoint_marker): Update.
7362 * thread.c (print_thread_info_1, print_selected_thread_frame):
7364 * stack.c (print_frame, print_frame_info): Update.
7365 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7367 * source.c (print_source_lines_base): Update.
7368 * skip.c (info_skip_command): Update.
7369 * record-btrace.c (btrace_ui_out_decode_error)
7370 (btrace_call_history_src_line): Update.
7371 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7373 * progspace.c (print_program_space): Update.
7374 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7375 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7376 do_field_int. Change type of "value".
7377 * mi/mi-out.c (mi_ui_out::do_table_begin)
7378 (mi_ui_out::do_table_header): Update.
7379 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7381 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7382 (mi_cmd_data_list_changed_registers, output_register)
7383 (mi_cmd_data_read_memory, mi_load_progress)
7384 (mi_cmd_trace_frame_collected): Update.
7385 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7387 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7388 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7389 (mi_cmd_var_list_children, varobj_update_one): Update.
7390 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7391 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7392 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7393 * inferior.c (print_inferior): Update.
7394 * gdb_bfd.c (print_one_bfd): Update.
7395 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7397 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7398 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7399 do_field_int. Change type of "value".
7400 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7401 do_field_int. Change type of "value".
7402 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7403 (print_one_breakpoint_location, print_it_catch_fork)
7404 (print_one_catch_fork, print_it_catch_vfork)
7405 (print_one_catch_vfork, print_it_catch_solib)
7406 (print_it_catch_exec, print_it_ranged_breakpoint)
7407 (print_mention_watchpoint, print_mention_masked_watchpoint)
7408 (bkpt_print_it, update_static_tracepoint): Update.
7409 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7410 * break-catch-syscall.c (print_it_catch_syscall): Update.
7411 * ada-tasks.c (print_ada_task_info): Update.
7412 * ada-lang.c (print_it_exception, print_mention_exception):
7415 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7417 PR breakpoints/24541
7418 * gdbarch.c: Regenerate.
7419 * gdbarch.h: Regenerate.
7420 * gdbarch.sh: Adjust return type and parameter types for
7421 'stap_adjust_register'.
7422 (i386_stap_adjust_register): Adjust signature and return new
7424 * stap-probe.c (stap_parse_register_operand): Adjust use of
7425 'gdbarch_stap_adjust_register'.
7427 2019-07-17 Tom Tromey <tromey@adacore.com>
7429 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7431 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7433 (struct s390_process_info): Add initializers.
7434 (s390_add_process): Use new.
7435 (s390_linux_nat_target::low_forget_process): Use delete.
7436 (s390_linux_nat_target::low_new_fork)
7437 (s390_linux_nat_target::stopped_by_watchpoint)
7438 (s390_linux_nat_target::low_prepare_to_resume)
7439 (s390_linux_nat_target::insert_watchpoint)
7440 (s390_linux_nat_target::insert_hw_breakpoint)
7441 (s390_linux_nat_target::remove_watchpoint)
7442 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7444 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7446 * aarch64-fbsd-nat.c: Include regcache.h.
7447 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7449 (aarch64_fbsd_nat_target::fetch_registers)
7450 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7452 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7454 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7456 * fbsd-nat.c: Include gdbarch.h.
7458 2019-07-15 Tom Tromey <tromey@adacore.com>
7460 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7462 2019-07-15 Tom Tromey <tromey@adacore.com>
7464 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7465 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7466 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7467 * cli-out.c (cli_ui_out::do_field_int): New method.
7468 * ui-out.c (ui_out::field_unsigned): New method.
7469 * symfile.c (generic_load): Use field_unsigned.
7470 (print_transfer_performance): Likewise.
7471 * record-btrace.c (ui_out_field_uint): Remove.
7472 (btrace_call_history_insn_range, btrace_call_history): Use
7474 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7476 * ui-out.h (class ui_out) <field_unsigned>: New method.
7477 <do_field_unsigned>: Likewise.
7479 2019-07-15 Tom Tromey <tromey@adacore.com>
7481 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7482 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7483 * target.c (flash_erase_command): Use field_string.
7484 * infrun.c (print_signal_received_reason): Use field_string.
7485 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7486 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7488 * ada-tasks.c (print_ada_task_info): Use field_string.
7490 2019-07-15 Tom Tromey <tromey@adacore.com>
7492 * target.c (flash_erase_command): Use field_core_addr.
7493 * symfile.c (generic_load): Use field_core_addr.
7494 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7495 Use field_core_addr.
7496 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7499 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7501 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7502 value if its desired type is smaller than a CORE_ADDR and signed.
7504 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7506 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7507 of changes to field names, and use new is_reference field to
7508 decide if a property is a reference or not.
7509 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7511 (struct dwarf2_property_baton): Update header comment, rename
7512 'referenced_type' to 'property_type' and update comments.
7513 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7514 default property type, store in property baton, update to take
7515 accound of renamed field.
7516 (read_func_scope): Update call to attr_to_dynamic_prop.
7517 (read_array_type): Likewise.
7518 (dwarf2_per_cu_addr_sized_int_type): New function.
7519 (read_subrange_index_type): Move type finding code to
7520 dwarf2_per_cu_addr_sized_int_type.
7521 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7522 (dwarf2_per_cu_addr_type): New function.
7523 (set_die_type): Update calls to attr_to_dynamic_prop.
7525 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7527 * dwarf2read.c (read_subrange_index_type): New function.
7528 (read_subrange_type): Move code into new function and call it.
7529 * gdbtypes.c (create_range_type): Add some asserts.
7531 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7533 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7534 update return statements.
7535 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7536 declaration, and update comment to match.
7537 * gdbtypes.c (resolve_dynamic_array): Update call to
7538 dwarf2_evaluate_property to match new return type.
7540 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7542 * valarith.c (value_subscripted_rvalue): Change lowerbound
7543 parameter type from int to LONGEST.
7544 * value.h (value_subscripted_rvalue): Likewise in declaration.
7546 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7548 * cli/cli-utils.c (info_print_command_completer): New function.
7549 * cli/cli-utils.h: Add 'completer.h' include, and forward
7550 declaration for 'struct cmd_list_element'.
7551 (info_print_command_completer): Declare.
7552 * stack.c (_initialize_stack): Add completer for 'info locals' and
7554 * symtab.c (_initialize_symtab): Add completer for 'info
7555 variables' and 'info functions'.
7556 * NEWS: Mention completion for additional info commands.
7558 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7560 * cli/cli-utils.c (extract_info_print_args): Delete.
7561 (extract_arg_maybe_quoted): Delete.
7562 (info_print_options_defs): New variable.
7563 (make_info_print_options_def_group): New function.
7564 (extract_info_print_options): Define new function.
7565 * cli/cli-utils.h (extract_info_print_args): Delete.
7566 (struct info_print_options): New structure.
7567 (extract_info_print_options): Declare new function.
7568 * stack.c (info_locals_command): Update to use new
7569 extract_info_print_options, also add a header comment.
7570 (info_args_command): Likewise.
7571 * symtab.c (info_variables_command): Likewise.
7572 (info_functions_command): Likewise.
7574 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7576 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7577 to extract string arguments.
7578 * common/common-utils.c (extract_string_maybe_quoted): New function.
7579 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7581 2019-07-11 Tom Tromey <tromey@adacore.com>
7583 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7584 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7585 * top.h (gdbinit): Don't declare.
7586 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7588 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7589 * top.c (gdb_init): Don't call init_cli_cmds.
7591 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7593 2019-07-11 Tom Tromey <tromey@adacore.com>
7595 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7596 after it has been moved.
7598 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7600 * valops.c (value_must_coerce_to_target): Change return type to
7602 * value.h (value_must_coerce_to_target): Likewise.
7604 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7606 * breakpoint.c (is_hardware_watchpoint): Remove
7607 forward-declaration.
7608 (is_masked_watchpoint): Change return type to bool.
7609 (is_tracepoint): Likewise.
7610 (is_breakpoint): Likewise.
7611 (is_hardware_watchpoint): Likewise.
7612 (is_watchpoint): Likewise.
7613 (is_no_memory_software_watchpoint): Likewise.
7614 (is_catchpoint): Likewise.
7615 (breakpoint_1): Make FILTER parameter's return type bool.
7616 is_masked_watchpoint): Change return type to bool.
7617 (save_breakpoints): Make FILTER parameter's return type bool.
7618 * breakpoint.h (is_breakpoint): Change return type to bool.
7619 (is_watchpoint): Likewise.
7620 (is_catchpoint): Likewise.
7621 (is_tracepoint): Likewise.
7623 2019-07-10 Tom Tromey <tom@tromey.com>
7625 * defs.h: Don't include gdbarch.h.
7626 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7627 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7628 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7629 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7630 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7631 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7632 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7633 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7634 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7635 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7636 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7637 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7638 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7639 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7640 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7641 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7642 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7643 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7644 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7645 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7646 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7647 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7648 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7649 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7650 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7651 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7652 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7654 2019-07-10 Tom Tromey <tromey@adacore.com>
7656 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7657 * breakpoint.c (init_ada_exception_breakpoint): Register as
7659 (print_one_breakpoint_location, print_one_breakpoint): Use
7660 is_ada_exception_catchpoint.
7661 * ada-lang.c (class ada_catchpoint_location): Pass
7662 bp_loc_software_breakpoint to bp_location constructor.
7663 (is_ada_exception_catchpoint): New function.
7665 2019-07-10 Tom Tromey <tromey@adacore.com>
7667 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7669 (struct arm_exidx_entry): New method operator<.
7670 (struct arm_exidx_data) <section_maps>: Change type.
7671 (arm_exidx_data_free): Remove.
7672 (arm_exidx_data_key): Change type. Move lower.
7673 (arm_exidx_new_objfile): Update.
7674 (arm_compare_exidx_entries): Remove.
7675 (arm_find_exidx_entry, _initialize_arm_tdep)
7677 2019-07-10 Tom Tromey <tromey@adacore.com>
7679 * solib-spu.c (ocl_program_data_key): Change type.
7680 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7683 2019-07-10 Tom Tromey <tromey@adacore.com>
7685 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7686 (struct solib_aix_inferior_data) <library_list>: Change type.
7687 (solib_aix_inferior_data_handle): Change type.
7688 (get_solib_aix_inferior_data): Update.
7689 (solib_aix_free_library_list): Remove.
7690 (library_list_start_library): Update.
7691 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7693 (solib_aix_get_library_list)
7694 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7695 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7697 2019-07-10 Tom Tromey <tromey@adacore.com>
7699 * solib-dsbt.c (struct dsbt_info): Add initializers.
7700 (solib_dsbt_pspace_data): Change type.
7701 (dsbt_pspace_data_cleanup): Remove.
7702 (get_dsbt_info, _initialize_dsbt_solib): Update.
7704 2019-07-10 Tom Tromey <tromey@adacore.com>
7706 * spu-tdep.c (spu_overlay_data): Change type.
7707 (spu_get_overlay_table, spu_overlay_new_objfile)
7708 (_initialize_spu_tdep): Update.
7710 2019-07-10 Tom Tromey <tromey@adacore.com>
7712 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7714 (dbx_objfile_data_key): Change type and declare later.
7715 (DBX_SYMFILE_INFO): Rewrite.
7716 * dbxread.c (dbx_objfile_data_key): Change type.
7717 (dbx_symfile_init): Update.
7718 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7719 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7720 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7722 2019-07-10 Tom Tromey <tromey@adacore.com>
7724 * jit.c (jit_program_space_key): Change type. Move lower.
7725 (get_jit_program_space_data): Update.
7726 (jit_program_space_data_cleanup): Remove.
7727 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7729 (struct jit_program_space_data): Add initializers.
7731 2019-07-10 Tom Tromey <tromey@adacore.com>
7733 * solib-darwin.c (struct darwin_info): Add initializers.
7734 (solib_darwin_pspace_data): Change type.
7735 (darwin_pspace_data_cleanup): Remove.
7736 (get_darwin_info, _initialize_darwin_solib): Update.
7738 2019-07-10 Tom Tromey <tromey@adacore.com>
7740 * remote-sim.c (struct sim_inferior_data): Add initializers,
7741 constructor, and destructor.
7742 (sim_inferior_data_key): Change type. Move lower.
7743 (check_for_duplicate_sim_descriptor): Update.
7744 (get_sim_inferior_data): Use new. Update.
7745 (~sim_inferior_data_cleanup): Rename from
7746 sim_inferior_data_cleanup. Simplify.
7747 (gdbsim_close_inferior, simulator_command)
7748 (sim_command_completer, _initialize_remote_sim): Update.
7749 (next_pid, INITIAL_PID): Move earlier.
7751 2019-07-10 Tom Tromey <tromey@adacore.com>
7753 * python/python-internal.h (create_thread_object): Return
7755 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7756 * python/py-inferior.c (struct threadlist_entry): Add
7758 <thread_obj>: Now a gdbpy_ref.
7759 (thread_to_thread_object): Update.
7760 (add_thread_object): Use new.
7761 (delete_thread_object): Use delete.
7762 (infpy_threads): Update.
7763 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7766 2019-07-10 Tom Tromey <tromey@adacore.com>
7768 * valops.c (value_cast): Specialize error message for Ada.
7770 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7772 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7774 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7776 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7777 bpstat_should_step): Return bool, adjust comments.
7778 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7779 bpstat_should_step): Likewise.
7781 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7783 * features/Makefile: Use feature target descriptions for Arm.
7784 * features/arm/arm-core.c: Generate new file.
7785 * features/arm/arm-fpa.c: Likewise.
7786 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7787 * features/arm/arm-m-profile.c: Likewise.
7788 * features/arm/arm-vfpv2.c: Likewise.
7789 * features/arm/arm-vfpv3.c: Likewise.
7790 * features/arm/xscale-iwmmxt.c: Likewise.
7791 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7793 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7795 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7798 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7800 * features/aarch64-pauth.c: Regenerate.
7802 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7804 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7806 (bpstat_what): Use false instead of 0.
7808 2019-07-09 Pedro Alves <palves@redhat.com>
7810 * break-catch-throw.c (is_exception_catchpoint): New.
7811 * breakpoint.c (print_one_breakpoint_location): New parameter
7812 'raw_loc'. Handle it. Use
7813 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7814 looking at the breakpoint's type.
7815 (print_one_breakpoint): If handling "maint info breakpoints", also
7816 print locations of exception catchpoints.
7817 * breakpoint.h (is_exception_catchpoint): Declare.
7819 2019-07-09 Pedro Alves <palves@redhat.com>
7821 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7823 (allocate_location_exception_catchpoint): New.
7824 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7825 (initialize_throw_catchpoint_ops): Install
7826 allocate_location_exception_catchpoint as allocate_location
7828 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7829 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7831 (breakpoint_address_is_meaningful): Delete.
7832 (bl_address_is_meaningful): New.
7833 (breakpoint_locations_match): Adjust comment.
7834 (bp_location_from_bp_type): New, factored out of...
7835 (bp_location::bp_location(breakpoint *)): ... this.
7836 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7838 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7839 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7840 breakpoint_address_is_meaningful.
7841 (bp_locations_compare): Adjust comment.
7842 (update_global_location_list): Use bl_address_is_meaningful
7843 instead of breakpoint_address_is_meaningful.
7844 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7846 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7847 * python/py-breakpoint.c (bppy_get_location): No longer check
7848 whether location is null.
7850 2019-07-09 Pedro Alves <palves@redhat.com>
7853 * breakpoint.c (print_one_breakpoint_location): Remove
7854 single-location assert.
7856 2019-07-09 Tom Tromey <tom@tromey.com>
7858 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7859 * configure: Rebuild.
7860 * configure.ac: Change common to gdbsupport.
7861 * gdbsupport: Rename from common.
7862 * acinclude.m4: Change common to gdbsupport.
7863 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7864 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7866 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7867 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7868 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7869 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7870 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7871 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7872 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7873 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7874 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7875 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7876 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7877 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7878 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7879 coff-pe-read.c, command.h, compile/compile-c-support.c,
7880 compile/compile-c.h, compile/compile-cplus-symbols.c,
7881 compile/compile-cplus-types.c, compile/compile-cplus.h,
7882 compile/compile-loc2c.c, compile/compile.c, completer.c,
7883 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7884 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7885 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7886 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7887 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7888 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7889 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7890 features/aarch64-core.c, features/aarch64-fpu.c,
7891 features/aarch64-pauth.c, features/aarch64-sve.c,
7892 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7893 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7894 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7895 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7896 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7897 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7898 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7899 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7900 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7901 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7902 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7903 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7904 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7905 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7906 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7907 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7908 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7909 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7910 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7911 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7912 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7913 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7914 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7915 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7916 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7917 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7918 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7919 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7920 minsyms.c, mips-linux-tdep.c, namespace.h,
7921 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7922 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7923 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7924 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7925 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7926 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7927 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7928 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7929 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7930 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7931 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7932 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7933 procfs.c, producer.c, progspace.h, psymtab.h,
7934 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7935 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7936 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7937 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7938 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7939 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7940 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7941 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7942 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7943 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7944 target-memory.c, target.c, target.h, target/waitstatus.c,
7945 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7946 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7947 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7948 unittests/array-view-selftests.c,
7949 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7950 unittests/common-utils-selftests.c,
7951 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7952 unittests/format_pieces-selftests.c,
7953 unittests/function-view-selftests.c,
7954 unittests/lookup_name_info-selftests.c,
7955 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7956 unittests/mkdir-recursive-selftests.c,
7957 unittests/observable-selftests.c,
7958 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7959 unittests/parse-connection-spec-selftests.c,
7960 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7961 unittests/scoped_fd-selftests.c,
7962 unittests/scoped_mmap-selftests.c,
7963 unittests/scoped_restore-selftests.c,
7964 unittests/string_view-selftests.c, unittests/style-selftests.c,
7965 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7966 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7967 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7968 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7969 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7970 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7972 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7974 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7976 (decode_digits_ordinary): Set explicit_line field in sal.
7977 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7978 symtab_and_line that was set on an explicit line number in
7979 assembler code. Do always update the recorded symtab and line if
7980 we do skip the prologue.
7982 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7984 * breakpoint.c (set_breakpoint_location_function): Remove
7985 explicit_loc parameter.
7986 (momentary_breakpoint_from_master): Update call to
7987 set_breakpoint_location_function.
7988 (add_location_to_breakpoint): Likewise.
7990 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7992 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7993 required features based on default bfd type when no specific bfd
7996 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7998 * NEWS: Mention that GDB printf and eval commands can now print
7999 C-style and Ada-style convenience var strings without
8000 calling the inferior.
8001 * printcmd.c (printf_c_string): Locally print GDB internal var
8002 instead of transiting via the inferior.
8003 (printf_wide_c_string): Likewise.
8005 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8007 PR breakpoints/25011
8008 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8010 2019-07-04 Tom Tromey <tom@tromey.com>
8013 * tui/tui-winsource.c (tui_clear_source_content): Update.
8014 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8015 (tui_update_breakpoint_info): Update.
8016 (tui_set_exec_info_content): Update.
8017 * tui/tui-source.c (tui_set_source_content_nil): Update.
8018 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8020 * tui/tui-data.h (enum tui_bp_flag): New.
8021 (tui_bp_flags): New enum flags type.
8022 (struct tui_source_element) <break_mode>: Change type. Rename
8024 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8025 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8027 * tui/tui-winsource.h: Fix comment.
8029 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8031 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8032 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8033 (store_fpregs_to_thread)
8034 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8035 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8036 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8037 (IWMMXT_REGS_SIZE): Add define.
8038 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8039 (fetch_vfp_regs, store_vfp_regs)
8040 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8041 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8043 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8045 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8047 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8048 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8049 (ARM_INT_REGISTER_SIZE): ...to this.
8050 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8051 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8052 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8053 (arm_linux_collect_gregset, supply_nwfpe_register)
8054 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8056 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8057 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8058 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8059 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8060 (arm_return_in_memory, arm_store_return_value)
8061 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8062 (arm_record_ld_st_multiple): Likewise.
8063 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8064 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8066 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8068 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8069 AARCH64_DISPLACED_MODIFIED_INSNS.
8070 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8071 (aarch64_displaced_step_copy_insn): Likewise.
8072 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8073 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8074 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8075 ARM_DISPLACED_MODIFIED_INSNS.
8076 * arm-tdep.c (arm_gdbarch_init): Likewise.
8077 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8078 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8079 (struct arm_displaced_step_closure): Use
8080 ARM_DISPLACED_MODIFIED_INSNS.
8082 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8084 * features/Makefile: Remove unused xml files.
8085 * features/aarch64.xml: Remove.
8086 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8087 * features/i386/amd64-avx-avx512.xml: Remove.
8088 * features/i386/amd64-avx-linux.xml: Remove.
8089 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8090 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8091 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8092 * features/i386/amd64-avx-mpx.xml: Remove.
8093 * features/i386/amd64-avx.xml: Remove.
8094 * features/i386/amd64-linux.xml: Remove.
8095 * features/i386/amd64-mpx-linux.xml: Remove.
8096 * features/i386/amd64-mpx.xml: Remove.
8097 * features/i386/amd64.xml: Remove.
8098 * features/i386/i386-avx-avx512-linux.xml: Remove.
8099 * features/i386/i386-avx-avx512.xml: Remove.
8100 * features/i386/i386-avx-linux.xml: Remove.
8101 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8102 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8103 * features/i386/i386-avx-mpx-linux.xml: Remove.
8104 * features/i386/i386-avx-mpx.xml: Remove.
8105 * features/i386/i386-avx.xml: Remove.
8106 * features/i386/i386-linux.xml: Remove.
8107 * features/i386/i386-mmx-linux.xml: Remove.
8108 * features/i386/i386-mmx.xml: Remove.
8109 * features/i386/i386-mpx-linux.xml: Remove.
8110 * features/i386/i386-mpx.xml: Remove.
8111 * features/i386/i386.xml: Remove.
8112 * features/i386/x32-avx-avx512-linux.xml: Remove.
8113 * features/i386/x32-avx-linux.xml: Remove.
8114 * features/i386/x32-linux.xml: Remove.
8116 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8118 * regformats/aarch64.dat: Remove.
8119 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8120 * regformats/i386/amd64-avx-linux.dat: Remove.
8121 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8122 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8123 * regformats/i386/amd64-linux.dat: Remove.
8124 * regformats/i386/amd64-mpx-linux.dat: Remove.
8125 * regformats/i386/amd64.dat: Remove.
8126 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8127 * regformats/i386/i386-avx-linux.dat: Remove.
8128 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8129 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8130 * regformats/i386/i386-linux.dat: Remove.
8131 * regformats/i386/i386-mmx-linux.dat: Remove.
8132 * regformats/i386/i386-mpx-linux.dat: Remove.
8133 * regformats/i386/i386.dat: Remove.
8134 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8135 * regformats/i386/x32-avx-linux.dat: Remove.
8136 * regformats/i386/x32-linux.dat: Remove.
8138 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8140 * aarch64-tdep.c: Remove xml self tests.
8141 * amd64-linux-tdep.c: Likewise.
8142 * amd64-tdep.c: Likewise.
8143 * i386-linux-tdep.c: Likewise.
8144 * i386-tdep.c: Likewise.
8146 2019-07-03 Pedro Alves <palves@redhat.com>
8149 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8150 (pipe_cmd_option_defs): New.
8151 (make_pipe_cmd_options_def_group): New.
8152 (pipe_command): Use gdb::option::process_options.
8153 (pipe_command_completer): New function.
8154 (_initialize_cli_cmds): Install completer for "pipe" command.
8156 2019-07-03 Pedro Alves <palves@redhat.com>
8158 * cli/cli-option.c (union option_value) <string>: New field.
8159 (struct option_def_and_value): Add ctor, move ctor, dtor and
8160 use DISABLE_COPY_AND_ASSIGN.
8161 (option_def_and_value::clear_value): New.
8162 (parse_option, save_option_value_in_ctx, get_val_type_str)
8163 (add_setshow_cmds_for_options): Handle var_string.
8164 * cli-option.h (union option_def::var_address) <string>: New
8166 (struct string_option_def): New.
8167 * maint-test-options.c (struct test_options_opts): Add default
8168 ctor and use DISABLE_COPY_AND_ASSIGN.
8169 <string_opt>: New field.
8170 (test_options_opts::~test_options_opts): New.
8171 (test_options_opts::dump): Also dump "-string".
8172 (test_options_option_defs): Install "string.
8174 2019-07-03 Pedro Alves <palves@redhat.com>
8176 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8177 option_value with a null enumeration.
8178 (complete_options): Save the option values in the context.
8179 (save_option_value_in_ctx): New, factored out from ...
8180 (process_options): ... here.
8181 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8183 * maint-test-options.c (test_options_opts::dump): New, factored
8185 (maintenance_test_options_command_mode): ... here.
8186 (maintenance_test_options_command_completion_result): Delete.
8187 (maintenance_test_options_command_completion_text): Update
8189 (maintenance_show_test_options_completion_result): Change
8190 prototype. Just print
8191 maintenance_test_options_command_completion_text.
8192 (save_completion_result): New.
8193 (maintenance_test_options_completer_mode): Pass options context to
8194 complete_options, and then save a dump.
8195 (_initialize_maint_test_options): Use add_cmd to install "maint
8196 show test-options-completion-result".
8198 2019-07-03 Pedro Alves <palves@redhat.com>
8200 * NEWS (New commands): Mention "with" and "maint with".
8201 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8202 (with_command, with_command_completer): New.
8203 (pipe_command): Adjust to new repeat_previous
8205 (_initialize_cli_cmds): Install the "with" command and its "w"
8207 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8209 * cli/cli-setshow.c (parse_cli_var_uinteger)
8210 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8211 argument strings for all var_types.
8212 (get_setshow_command_value_string): New, factored out from ...
8213 (do_show_command): ... this.
8214 * cli/cli-setshow.h: Include <string>.
8215 (get_setshow_command_value_string): Declare.
8216 * command.h (repeat_previous): Now returns const char *. Adjust
8218 * maint.c: Include "cli/cli-cmds.h".
8219 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8220 (_initialize_maint_cmds): Register the "maintenance with" command.
8221 * top.c (repeat_previous): Move bits from pipe_command here:
8222 Return the saved command line, if any; error out if there's no
8223 command to relaunch.
8225 2019-07-03 Pedro Alves <palves@redhat.com>
8227 * NEWS (New commands): Mention "maint set/show test-settings"
8228 instead of "maint test-settings".
8229 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8230 (maintenance_test_settings_set_list): Rename to ...
8231 (maintenance_set_test_settings_list): ... this.
8232 (maintenance_test_settings_show_list): Rename to ...
8233 (maintenance_show_test_settings_list): ... this.
8234 (maintenance_test_settings_cmd): Delete.
8235 (maintenance_test_settings_set_cmd): ...
8236 (maintenance_set_test_settings_cmd): ... this.
8237 (maintenance_test_settings_show_cmd): ...
8238 (maintenance_show_test_settings_cmd): ... this.
8239 (maintenance_test_settings_show_value_cmd):
8240 (maintenance_show_test_settings_value_cmd): ... this.
8241 (_initialize_maint_test_settings): No longer install the "maint
8242 test-settings" prefix command. Rename "maint test-settings set"
8243 to "maint set test-settings", and "maint test-settings show" to
8244 "maint show test-settings". Adjust all subcommands.
8246 2019-07-03 Pedro Alves <palves@redhat.com>
8248 * maint-test-settings.c: Fix file's intro comment. Replace all
8249 references to "test-options" with references to "test-settings",
8252 2019-07-03 Pedro Alves <palves@redhat.com>
8254 * maint-test-settings.c (maintenance_test_settings_xxx)
8255 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8257 (maintenance_test_settings_enums): Use them.
8258 (maintenance_test_settings_enum): Default to
8259 maintenance_test_settings_xxx.
8260 (_initialize_maint_test_settings): Initialize
8261 MAINTENANCE_TEST_SETTINGS_FILENAME.
8263 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8265 * breakpoint.h (remove_breakpoints_inf): Change return type to
8266 void, move function documentation here.
8267 * breakpoint.c (remove_breakpoints_inf): Change return type to
8268 void, move function documentation to header.
8270 2019-07-02 Pedro Alves <palves@redhat.com>
8272 * NEWS (Completion improvements): Mention "info threads".
8273 * thread.c (struct info_threads_opts, info_threads_option_defs)
8274 (make_info_threads_options_def_group): New.
8275 (info_threads_command): Use gdb::option::process_options.
8276 (info_threads_command_completer): New.
8277 (_initialize_thread): Use gdb::option::build_help to build the
8278 help text for "info threads".
8280 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8282 * defs.h (generic_load): Move from here...
8283 * symfile.h (generic_load): ... to here. Rename name parameter
8285 * symfile.c (generic_load): Add comment.
8287 2019-07-01 Tom Tromey <tromey@adacore.com>
8290 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8291 declaration of without_params. Fix formatting.
8293 2019-07-01 Tom Tromey <tromey@adacore.com>
8295 * ada-exp.y (find_primitive_type): Update.
8296 * ada-lang.h (ada_lookup_symbol): Update.
8297 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8299 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8301 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8303 PR breakpoints/24541
8304 * gdbarch.c: Regenerate.
8305 * gdbarch.h: Regenerate.
8306 * gdbarch.sh: Add 'stap_adjust_register'.
8307 * i386-tdep.c: Include '<unordered_set>'.
8308 (i386_stap_adjust_register): New function.
8309 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8310 * stap-probe.c (stap_parse_register_operand): Call
8311 'gdbarch_stap_adjust_register'.
8313 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8316 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8317 * python/python.c (do_start_initialization): Use 'xmalloc'
8318 instead of 'PyMem_Malloc'.
8320 2019-06-28 Tom Tromey <tromey@adacore.com>
8322 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8325 2019-06-27 Tom Tromey <tromey@adacore.com>
8327 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8329 (arm_find_mapping_symbol, arm_record_special_symbol)
8330 (_initialize_arm_tdep): Update.
8331 (arm_objfile_data_free): Remove.
8333 2019-06-27 Tom Tromey <tromey@adacore.com>
8335 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8336 to cp_print_static_field.
8338 2019-06-26 Tom Tromey <tromey@adacore.com>
8340 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8341 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8344 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8346 * features/aarch64-core.c (create_feature_aarch64_core):
8348 * features/aarch64-core.xml: Add cpsr flags.
8350 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8352 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8353 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8355 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8357 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8359 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8361 (arm_record_special_symbol): Don't insert new symbol in sorted
8362 position, push it at the end.
8364 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8366 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8367 (arm_mapping_symbol_s): Remove.
8368 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8369 (arm_mapping_symbol_vec): New typedef.
8370 (struct arm_per_objfile): Add constructor.
8371 <section_maps>: Change type to
8372 std::unique_ptr<arm_mapping_symbol_vec[]>.
8373 (arm_compare_mapping_symbols): Remove.
8374 (arm_find_mapping_symbol): Adjust to section_maps type change.
8375 (arm_objfile_data_free): Call delete on arm_per_objfile.
8376 (arm_record_special_symbol): Adjust to section_maps type change.
8377 Allocate arm_per_objfile with new.
8379 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8381 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8382 with the command prefix.
8384 2019-06-25 Tom Tromey <tom@tromey.com>
8386 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8387 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8389 2019-06-25 Tom Tromey <tom@tromey.com>
8391 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8393 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8396 2019-06-25 Tom Tromey <tom@tromey.com>
8398 * tui/tui-winsource.c
8399 (tui_source_window_base::set_is_exec_point_at): Add check against
8402 2019-06-25 Tom Tromey <tom@tromey.com>
8404 * tui/tui-source.c (tui_set_source_content): Don't check before
8406 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8408 2019-06-25 Tom Tromey <tom@tromey.com>
8410 * tui/tui-winsource.h (tui_update_source_window_as_is)
8411 (tui_alloc_source_buffer, tui_line_is_displayed)
8412 (tui_addr_is_displayed): Change type of win_info.
8413 * tui/tui-winsource.c (tui_update_source_window_as_is)
8414 (tui_clear_source_content, tui_show_source_line)
8415 (tui_show_source_content, tui_source_window_base::refill)
8416 (tui_source_window_base::set_is_exec_point_at)
8417 (tui_source_window_base::set_is_exec_point_at)
8418 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8419 (tui_alloc_source_buffer, tui_line_is_displayed)
8420 (tui_addr_is_displayed): Change type of win_info. Update.
8421 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8422 (tui_source_window_base::do_make_visible_with_new_height):
8424 * tui/tui-source.c (tui_set_source_content)
8425 (tui_set_source_content_nil)
8426 (tui_source_window::do_scroll_vertical): Update.
8427 * tui/tui-layout.c (show_layout): Update.
8428 * tui/tui-disasm.c (tui_set_disassem_content)
8429 (tui_disasm_window::do_scroll_vertical): Update.
8430 * tui/tui-data.h (tui_win_content): Remove.
8431 (struct tui_gen_win_info) <content, content_size>: Remove.
8432 (struct tui_source_element): Add initializers and destructor.
8433 (union tui_which_element, struct tui_win_element): Remove.
8434 (struct tui_source_window_base) <content>: New field.
8435 (struct tui_data_window): Remove destructor.
8436 (tui_alloc_content, tui_free_win_content)
8437 (tui_free_all_source_wins_content): Don't declare.
8438 * tui/tui-data.c (tui_initialize_static_data): Update.
8439 (init_content_element, tui_alloc_content): Remove.
8440 (~tui_gen_win_info): Update.
8441 (~tui_data_window, tui_free_all_source_wins_content)
8442 (tui_free_win_content, free_content, free_content_elements):
8445 2019-06-25 Tom Tromey <tom@tromey.com>
8447 * tui/tui-winsource.h (tui_clear_source_content)
8448 (tui_erase_source_content, tui_show_source_content): Change type
8450 * tui/tui-winsource.c (tui_clear_source_content)
8451 (tui_erase_source_content, tui_show_source_content): Change type
8453 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8454 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8456 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8458 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8460 2019-06-25 Tom Tromey <tom@tromey.com>
8462 * tui/tui-winsource.c (tui_clear_source_content)
8463 (tui_source_window_base::set_is_exec_point_at): Update.
8464 * tui/tui-source.c (tui_set_source_content_nil): Update.
8465 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8467 * tui/tui-data.c (init_content_element): Update.
8469 2019-06-25 Tom Tromey <tom@tromey.com>
8471 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8472 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8473 * tui/tui-layout.c (init_and_make_win): Update.
8474 * tui/tui.h (enum tui_win_type): Update.
8475 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8476 tui_win_is_auxillary.
8477 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8478 tui_win_is_auxillary.
8480 2019-06-25 Tom Tromey <tom@tromey.com>
8482 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8483 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8484 (tui_delete_data_content_windows, tui_display_all_data)
8485 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8487 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8488 * tui/tui-regs.c (tui_last_regs_line_no)
8489 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8490 (tui_show_registers): Update.
8491 (tui_show_register_group): Return void. Update.
8492 (tui_display_registers_from, tui_display_reg_element_at_line)
8493 (tui_display_registers_from_line, tui_check_register_values):
8495 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8497 (struct tui_data_window) <regs_content>: Now a std::vector.
8498 <regs_content_count>: Remove.
8499 (tui_add_content_elements, tui_free_data_content): Don't declare.
8500 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8501 (init_content_element): Remove DATA_WIN case. Add assert.
8502 (tui_add_content_elements): Remove.
8503 (tui_data_window): Update.
8504 (tui_free_data_content): Remove.
8505 (free_content_elements): Remove DATA_WIN case.
8507 2019-06-25 Tom Tromey <tom@tromey.com>
8509 * tui/tui-data.c (tui_data_item_window): Update.
8510 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8511 * tui/tui-windata.c (tui_display_all_data)
8512 (tui_display_data_from_line): Update.
8513 (tui_check_data_values): Remove.
8514 * tui/tui-regs.c (tui_show_register_group)
8515 (tui_display_reg_element_at_line): Update.
8516 * tui/tui-hooks.c (tui_register_changed)
8517 (tui_refresh_frame_and_register_information): Call
8518 tui_check_register_values.
8519 * tui/tui-data.h (struct tui_data_window) <data_content,
8520 data_content_count, data_type>: Remove.
8521 (enum tui_data_type): Remove.
8523 * tui/tui-data.c (tui_data_window::clear_detail)
8524 (~tui_data_window): Update.
8526 2019-06-25 Tom Tromey <tom@tromey.com>
8528 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8530 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8531 Rename from tui_first_data_item_displayed. Update.
8532 (tui_data_window::refresh_all)
8533 (tui_data_window::do_scroll_vertical): Update.
8534 * tui/tui-data.h (struct tui_data_window)
8535 <first_data_item_displayed>: Declare new method.
8537 2019-06-25 Tom Tromey <tom@tromey.com>
8539 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8540 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8542 (tui_initialize_static_data): ...here.
8544 2019-06-25 Tom Tromey <tom@tromey.com>
8546 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8547 (tui_display_registers_from, tui_check_register_values): Update.
8548 (tui_display_register): Remove win_info parameter; update.
8549 (tui_get_register): Change type of parameters.
8550 * tui/tui-data.h (struct tui_data_element): Remove.
8551 (union tui_which_element) <data>: Remove.
8552 <data_window>: Change type.
8553 (struct tui_data_item_window): New.
8554 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8556 (~tui_data_item_window): New destructor.
8557 (free_content_elements): Remove DATA_ITEM_WIN case.
8559 2019-06-25 Tom Tromey <tom@tromey.com>
8561 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8564 2019-06-25 Tom Tromey <tom@tromey.com>
8566 * tui/tui-data.h (struct tui_command_element): Remove.
8567 (union tui_which_element) <command>: Remove.
8568 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8570 (free_content_elements): Remove CMD_WIN case.
8572 2019-06-25 Tom Tromey <tom@tromey.com>
8574 * tui/tui-layout.c (tui_set_layout): Update.
8575 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8576 * tui/tui-data.c (layout_def): Update.
8578 2019-06-25 Tom Tromey <tom@tromey.com>
8580 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8581 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8582 (tui_source_window_base::set_new_height): Update.
8583 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8585 (tui_set_locator_fullname, tui_set_locator_info)
8586 (tui_show_frame_info): Update.
8587 * tui/tui-source.c (tui_set_source_content)
8588 (tui_source_is_displayed): Update.
8589 * tui/tui-layout.c (show_source_disasm_command, show_data)
8590 (show_source_or_disasm_and_command): Update.
8591 * tui/tui-disasm.c (tui_set_disassem_content)
8592 (tui_get_begin_asm_address): Update.
8593 * tui/tui-data.h (struct tui_locator_element): Remove.
8594 (union tui_which_element) <locator>: Remove.
8595 (struct tui_locator_window): New.
8596 (tui_locator_win_info_ptr): Change return type.
8597 * tui/tui-data.c (_locator): Change type.
8598 (tui_locator_win_info_ptr): Change return type.
8599 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8600 (tui_alloc_content): Add assert.
8602 2019-06-25 Tom Tromey <tom@tromey.com>
8604 * tui/tui-winsource.c
8605 (tui_exec_info_window::maybe_allocate_content): New method.
8606 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8607 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8608 (make_source_or_disasm_window): Add cast.
8609 * tui/tui-data.h (union tui_which_element) <simple_string>:
8611 (struct tui_source_info): New.
8612 (struct tui_source_window_base) <execution_info>: Change type.
8613 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8614 case, and add assert.
8615 (tui_alloc_content): Add assert.
8617 2019-06-25 Tom Tromey <tom@tromey.com>
8619 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8620 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8621 * tui/tui-data.c (tui_alloc_win_info): Remove.
8623 2019-06-25 Tom Tromey <tom@tromey.com>
8625 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8626 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8629 2019-06-25 Tom Tromey <tom@tromey.com>
8631 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8632 make_visible_with_new_height method.
8633 (tui_win_info::make_visible_with_new_height): New method.
8634 (tui_source_window_base::do_make_visible_with_new_height)
8635 (tui_data_window::do_make_visible_with_new_height)
8636 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8637 (make_visible_with_new_height): Remove.
8638 (tui_resize_all, tui_adjust_win_heights): Use
8639 make_visible_with_new_height method.
8640 * tui/tui-data.h (struct tui_win_info)
8641 <do_make_visible_with_new_height, make_visible_with_new_height>:
8643 (struct tui_source_window_base, struct tui_data_window)
8644 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8647 2019-06-25 Tom Tromey <tom@tromey.com>
8649 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8651 (update_tab_width): Call update_tab_width method.
8652 * tui/tui-data.h (struct tui_win_info)
8653 (struct tui_source_window_base) <update_tab_width>: New methods.
8655 2019-06-25 Tom Tromey <tom@tromey.com>
8657 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8659 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8661 (tui_gen_win_info::make_visible): Update.
8662 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8664 * tui/tui-data.h (enum tui_box): New enum.
8665 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8667 2019-06-25 Tom Tromey <tom@tromey.com>
8669 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8670 init_and_make_win for EXEC_INFO_WIN.
8671 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8673 (struct tui_win_info) <~tui_win_info>: Inline.
8674 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8676 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8677 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8679 (tui_initialize_static_data): Update.
8680 (~tui_gen_win_info): Handle more cleanup here.
8681 (~tui_source_window_base): Delete "execution_info".
8682 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8684 2019-06-25 Tom Tromey <tom@tromey.com>
8686 * tui/tui-layout.c (make_command_window): Don't set
8688 (show_source_disasm_command): Call the reset method.
8689 (show_data): Don't set can_highlight. Call the reset method.
8690 (tui_gen_win_info::reset): Rename from init_gen_win_info
8691 (init_and_make_win): Simplify. Return tui_gen_win_info.
8692 (show_source_or_disasm_and_command): Call the reset method.
8693 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8694 (struct tui_cmd_window): Set can_highlight.
8696 2019-06-25 Tom Tromey <tom@tromey.com>
8698 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8700 (tui_make_visible, tui_make_invisible): Rewrite.
8701 (tui_win_info::make_visible): Remove.
8702 (tui_source_window_base::make_visible): Update.
8703 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8704 method. Moved from...
8705 (struct tui_win_info) <make_visible>: ...here.
8707 2019-06-25 Tom Tromey <tom@tromey.com>
8709 * tui/tui-winsource.c
8710 (tui_source_window_base::do_scroll_horizontal): Remove direction
8712 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8713 direction parameter.
8714 * tui/tui-win.c (tui_win_info::forward_scroll)
8715 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8716 (tui_win_info::right_scroll): Update.
8717 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8718 direction parameter.
8719 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8720 direction parameter.
8721 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8722 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8723 Remove direction parameter.
8724 (struct tui_source_window_base, struct tui_source_window)
8725 (struct tui_disasm_window, struct tui_data_window)
8726 (struct tui_cmd_window): Update.
8728 2019-06-25 Tom Tromey <tom@tromey.com>
8730 * tui/tui-winsource.h (tui_set_exec_info_content)
8731 (tui_show_exec_info_content, tui_erase_exec_info_content)
8732 (tui_clear_exec_info_content, tui_update_exec_info): Change
8733 argument to tui_source_window_base.
8734 * tui/tui-winsource.c (tui_set_exec_info_content)
8735 (tui_show_exec_info_content, tui_erase_exec_info_content)
8736 (tui_clear_exec_info_content, tui_update_exec_info): Change
8737 argument to tui_source_window_base.
8739 2019-06-25 Tom Tromey <tom@tromey.com>
8741 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8742 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8744 2019-06-25 Tom Tromey <tom@tromey.com>
8746 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8749 2019-06-25 Tom Tromey <tom@tromey.com>
8751 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8753 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8755 * tui/tui-source.c (tui_set_source_content): Update.
8756 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8758 2019-06-25 Tom Tromey <tom@tromey.com>
8760 * tui/tui-win.c (window_name_completer, tui_set_focus)
8761 (tui_all_windows_info): Use name method.
8762 * tui/tui-data.h (struct tui_gen_win_info)
8763 (struct tui_source_window, struct tui_disasm_window)
8764 (struct tui_data_window, struct tui_cmd_window) <name>: New
8766 (tui_win_name): Don't declare.
8767 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8768 (tui_win_name): Remove.
8770 2019-06-25 Tom Tromey <tom@tromey.com>
8772 * tui/tui-winsource.h (tui_update_source_window)
8773 (tui_update_source_window_as_is): Change parameter type.
8774 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8775 to be a tui_source_window_base.
8776 (tui_update_source_window_as_is): Likewise.
8777 * tui/tui-win.c (make_visible_with_new_height): Update.
8779 2019-06-25 Tom Tromey <tom@tromey.com>
8781 * tui/tui-winsource.c (tui_erase_source_content)
8782 (tui_show_source_content, tui_show_exec_info_content)
8783 (tui_erase_exec_info_content): Use refresh_window method.
8784 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8785 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8786 from tui_refresh_win.
8787 (tui_data_window::refresh_window): New method.
8788 (tui_win_info::refresh, tui_source_window_base::refresh)
8789 (tui_refresh_all): Use refresh_window method.
8790 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8792 * tui/tui-regs.c (tui_display_register): Call refresh_window
8794 * tui/tui-layout.c (show_source_disasm_command)
8795 (show_source_or_disasm_and_command): Call refresh_window method.
8796 * tui/tui-data.h (struct tui_gen_win_info)
8797 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8800 2019-06-25 Tom Tromey <tom@tromey.com>
8802 * tui/tui.c (tui_rl_other_window, tui_enable)
8803 (tui_is_window_visible, tui_get_command_dimension): Update.
8804 * tui/tui-winsource.c (tui_update_source_window_as_is)
8805 (tui_clear_source_content, tui_erase_source_content)
8806 (tui_show_source_line, tui_source_window_base::refill)
8807 (tui_source_window_base::do_scroll_horizontal)
8808 (tui_source_window_base::set_is_exec_point_at)
8809 (tui_update_breakpoint_info, tui_set_exec_info_content)
8810 (tui_alloc_source_buffer, tui_line_is_displayed)
8811 (tui_addr_is_displayed): Update.
8812 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8813 (tui_check_and_display_highlight_if_needed)
8814 (tui_win_info::make_visible, tui_win_info::refresh)
8815 (tui_refresh_all): Update.
8816 * tui/tui-windata.c (tui_first_data_item_displayed)
8817 (tui_delete_data_content_windows, tui_erase_data_content)
8818 (tui_display_all_data, tui_data_window::refresh_all)
8819 (tui_check_data_values): Update.
8820 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8821 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8822 (tui_win_info::backward_scroll, tui_refresh_all_win)
8823 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8824 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8825 (tui_source_window_base::set_new_height)
8826 (tui_data_window::set_new_height)
8827 (make_invisible_and_set_new_height)
8828 (make_visible_with_new_height, new_height_ok)
8829 (parse_scrolling_args): Update.
8830 * tui/tui-stack.c (tui_show_frame_info): Update.
8831 * tui/tui-source.c (tui_set_source_content)
8832 (tui_set_source_content_nil, tui_source_is_displayed)
8833 (tui_source_window::do_scroll_vertical): Update.
8834 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8835 (tui_display_registers_from, tui_display_reg_element_at_line)
8836 (tui_check_register_values, tui_reg_command): Update.
8837 * tui/tui-layout.c (tui_default_win_height)
8838 (show_source_disasm_command, show_data, init_and_make_win)
8839 (show_source_or_disasm_and_command): Update.
8840 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8841 (tui_redisplay_readline, tui_mld_flush)
8842 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8844 * tui/tui-disasm.c (tui_set_disassem_content)
8845 (tui_disasm_window::do_scroll_vertical): Update.
8846 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8848 (struct tui_win_info): Derive from tui_gen_win_info.
8849 <~tui_win_info>: Mark as override.
8850 <generic>: Remove member.
8851 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8852 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8853 (~tui_data_window, ~tui_win_info)
8854 (tui_free_all_source_wins_content): Update.
8855 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8857 2019-06-25 Tom Tromey <tom@tromey.com>
8859 * tui/tui-layout.c (init_and_make_win): Use new.
8860 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8861 destructor, initializers.
8862 (tui_alloc_generic_win_info): Don't declare.
8863 * tui/tui-data.c (_locator): Add argument to constructor.
8864 (source_win, disasm_win): New globals.
8865 (exec_info): Remove.
8866 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8868 (tui_alloc_generic_win_info): Remove.
8869 (init_content_element): Use new.
8870 (tui_win_info::tui_win_info): Update.
8871 (free_content_elements) <case DATA_WIN>: Use delete.
8873 2019-06-25 Tom Tromey <tom@tromey.com>
8875 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8876 * tui/tui-windata.c (tui_first_data_item_displayed)
8877 (tui_delete_data_content_windows): Update.
8878 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8879 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8880 (tui_display_registers_from, tui_check_register_values): Update.
8881 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8883 * tui/tui-data.c (init_content_element): Update. Allocate the new
8885 (tui_free_data_content): Update.
8886 (free_content_elements) <case DATA_WIN>: Free the window.
8888 2019-06-25 Tom Tromey <tom@tromey.com>
8890 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8892 * tui/tui-layout.c (make_command_window)
8893 (show_source_disasm_command, show_data, init_and_make_win)
8894 (show_source_or_disasm_and_command): Update.
8895 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8897 <can_highight, is_highlighted>: Now bool.
8898 (tui_set_win_highlight): Don't declare.
8899 * tui/tui-data.c (tui_set_win_highlight): Remove.
8901 2019-06-25 Tom Tromey <tom@tromey.com>
8903 * tui/tui-wingeneral.c (make_visible): Remove check of window
8906 2019-06-25 Tom Tromey <tom@tromey.com>
8908 * tui/tui-win.c (tui_win_info::max_height)
8909 (tui_cmd_window::max_height): New methods.
8910 (new_height_ok): Call max_height.
8911 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8912 <max_height>: New method.
8914 2019-06-25 Tom Tromey <tom@tromey.com>
8916 * tui/tui-win.c (tui_source_window_base::set_new_height)
8917 (tui_data_window::set_new_height): New methods.
8918 (make_invisible_and_set_new_height): Call set_new_height method.
8919 * tui/tui-data.h (struct tui_win_info)
8920 (struct tui_source_window_base, struct tui_data_window)
8921 <set_new_height>: New method.
8923 2019-06-25 Tom Tromey <tom@tromey.com>
8925 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8926 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8927 tui_refresh_data_win.
8928 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8930 (tui_refresh_all_win): Call the refresh_all method.
8931 (tui_set_focus): Likewise.
8932 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8933 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8936 2019-06-25 Tom Tromey <tom@tromey.com>
8938 * tui/tui-winsource.h (tui_refill_source_window)
8939 (tui_set_is_exec_point_at): Don't declare.
8940 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8941 (tui_source_window_base::refill): Rename from
8942 tui_refill_source_window.
8943 (tui_source_window_base::do_scroll_horizontal): Update.
8944 (tui_source_window_base::set_is_exec_point_at): Rename from
8945 tui_set_is_exec_point_at.
8946 (tui_update_all_breakpoint_info): Update.
8947 * tui/tui-stack.c (tui_show_frame_info): Update.
8948 * tui/tui-layout.c (show_data): Add cast.
8949 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8950 * tui/tui-data.h (struct tui_source_window_base) <refill,
8951 set_is_exec_point_at>: New methods.
8952 (tui_source_windows, tui_add_to_source_windows): Update types.
8953 (tui_add_to_source_windows): Remove redundant declaration.
8954 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8955 (tui_source_windows): Change return type.
8956 (tui_clear_source_windows_detail): Update.
8957 (tui_add_to_source_windows): Change type of parameter.
8958 (tui_free_all_source_wins_content): Update.
8960 2019-06-25 Tom Tromey <tom@tromey.com>
8962 * tui/tui-wingeneral.c (tui_win_info::refresh)
8963 (tui_source_window_base::refresh): New methods.
8964 (tui_refresh_all): Call the refresh method.
8965 * tui/tui-data.h (struct tui_win_info)
8966 (struct tui_source_window_base) <refresh>: New method.
8968 2019-06-25 Tom Tromey <tom@tromey.com>
8970 * tui/tui.h (tui_is_window_visible): Return bool.
8971 * tui/tui.c (tui_is_window_visible): Return bool.
8972 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8973 (tui_make_visible, tui_make_invisible)
8974 (tui_win_info::make_visible)
8975 (tui_source_window_base::make_visible, make_all_visible)
8976 (tui_make_all_visible, tui_make_all_invisible): Update.
8977 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8978 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8980 (struct tui_win_info, struct tui_source_window_base)
8981 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8982 * tui/tui-data.c (tui_init_generic_part): Update.
8984 2019-06-25 Tom Tromey <tom@tromey.com>
8986 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8987 (tui_source_window_base::make_visible): New methods.
8988 (make_all_visible): Make method call.
8989 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8990 (struct tui_source_window_base, struct tui_cmd_window): Override
8992 (tui_win_is_source_type): Don't declare.
8993 * tui/tui-data.c (tui_win_is_source_type): Remove.
8995 2019-06-25 Tom Tromey <tom@tromey.com>
8997 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9000 2019-06-25 Tom Tromey <tom@tromey.com>
9002 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9003 Inline constructor. Add initializers for members.
9004 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9005 constructors; now inline in class.
9007 2019-06-25 Tom Tromey <tom@tromey.com>
9009 * tui/tui-regs.c (tui_show_registers): Update.
9010 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9012 * tui/tui-data.c (tui_data_window::clear_detail)
9013 (tui_data_window): Update.
9015 2019-06-25 Tom Tromey <tom@tromey.com>
9017 * tui/tui-windata.c (tui_display_all_data)
9018 (tui_display_data_from_line, tui_display_data_from)
9019 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9021 * tui/tui-regs.c (tui_last_regs_line_no)
9022 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9023 (tui_show_registers, tui_show_register_group)
9024 (tui_display_registers_from, tui_display_reg_element_at_line)
9025 (tui_display_registers_from_line, tui_check_register_values)
9026 (tui_reg_next, tui_reg_prev): Update.
9027 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9028 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9030 (struct tui_win_info) <detail>: Remove. Add new fields from
9032 (TUI_DATA_WIN): Add cast.
9033 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9034 (~tui_data_window): Simplify.
9036 2019-06-25 Tom Tromey <tom@tromey.com>
9038 * tui/tui-layout.c (show_source_disasm_command)
9039 (show_source_or_disasm_and_command): Update.
9040 * tui/tui-io.c (update_cmdwin_start_line)
9041 (tui_redisplay_readline): Update.
9042 * tui/tui-data.h (struct tui_command_info): Remove.
9043 (struct tui_win_info) <detail>: Remove command_info member.
9044 (struct tui_data_window) <start_line>: New member, from
9046 (TUI_CMD_WIN): Add casts.
9048 2019-06-25 Tom Tromey <tom@tromey.com>
9050 * tui/tui-winsource.c (tui_update_source_window)
9051 (tui_refill_source_window)
9052 (tui_source_window_base::do_scroll_horizontal)
9053 (tui_update_breakpoint_info, tui_set_exec_info_content)
9054 (tui_show_exec_info_content, tui_erase_exec_info_content)
9055 (tui_clear_exec_info_content): Update.
9056 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9058 * tui/tui-win.c (make_invisible_and_set_new_height)
9059 (make_visible_with_new_height): Update.
9060 * tui/tui-source.c (tui_set_source_content)
9061 (tui_show_symtab_source): Update.
9062 * tui/tui-layout.c (extract_display_start_addr)
9063 (show_source_disasm_command, show_data)
9064 (make_source_or_disasm_window)
9065 (show_source_or_disasm_and_command): Update.
9066 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9067 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9069 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9070 to tui_source_window_base.
9071 (struct tui_win_info) <detail>: Remove source_info member.
9072 (struct tui_source_window_base) <has_locator>: Inline.
9073 Move contents from tui_source_info; rename has_locator member to
9075 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9076 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9078 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9080 (tui_free_all_source_wins_content): Cast to
9081 tui_source_window_base.
9083 2019-06-25 Tom Tromey <tom@tromey.com>
9085 * tui/tui-win.c (make_invisible_and_set_new_height)
9086 (make_visible_with_new_height): Call has_locator method.
9087 * tui/tui-layout.c (show_source_disasm_command, show_data)
9088 (show_source_or_disasm_and_command): Update for bool change.
9089 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9090 (tui_win_info) <has_locator>: New method.
9091 (struct tui_source_window_base) <has_locator>: New method.
9092 (tui_win_has_locator): Don't declare.
9093 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9094 from tui_win_has_locator.
9095 (tui_source_window_base): Use false, not FALSE.
9097 2019-06-25 Tom Tromey <tom@tromey.com>
9099 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9100 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9101 clear_detail method directly.
9102 (tui_clear_win_detail): Remove.
9104 2019-06-25 Tom Tromey <tom@tromey.com>
9106 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9107 "this", not TUI_DISASM_WIN.
9109 2019-06-25 Tom Tromey <tom@tromey.com>
9111 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9113 * tui/tui-winsource.c
9114 (tui_source_window_base::do_scroll_horizontal): Rename from
9115 tui_horizontal_source_scroll.
9116 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9117 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9118 from tui_vertical_data_scroll.
9119 * tui/tui-win.h (tui_scroll): Don't declare.
9120 * tui/tui-win.c (tui_win_info::forward_scroll)
9121 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9122 (tui_win_info::right_scroll): Rename and update.
9123 (tui_scroll_forward_command, tui_scroll_backward_command)
9124 (tui_scroll_left_command, tui_scroll_right_command): Update.
9125 (tui_scroll): Remove.
9126 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9127 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9128 from tui_vertical_source_scroll.
9129 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9130 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9131 from tui_vertical_disassem_scroll.
9132 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9133 do_scroll_horizontal>: New methods.
9134 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9136 (struct tui_source_window_base): Add do_scroll_horizontal.
9137 (struct tui_source_window, struct tui_disasm_window): Add
9139 (struct tui_data_window, struct tui_cmd_window): Add
9140 do_scroll_horizontal and do_scroll_vertical.
9141 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9143 2019-06-25 Tom Tromey <tom@tromey.com>
9145 * tui/tui-data.h (struct tui_source_window_base): New struct.
9146 (struct tui_source_window): Derive from tui_source_window_base.
9147 (struct tui_disasm_window): New struct.
9148 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9149 from tui_source_window::clear_detail.
9150 (tui_source_window_base): Rename from tui_source_window.
9151 (~tui_source_window_base): Rename from ~tui_source_window.
9152 (tui_alloc_win_info): Create a tui_disasm_window.
9154 2019-06-25 Tom Tromey <tom@tromey.com>
9156 * tui/tui-data.h (struct tui_source_window)
9157 (struct tui_data_window): Declare destructors.
9158 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9160 (tui_win_info): Simplify.
9162 2019-06-25 Tom Tromey <tom@tromey.com>
9164 * tui/tui-winsource.c (tui_display_main)
9165 (tui_update_source_windows_with_addr)
9166 (tui_update_all_breakpoint_info): Update.
9167 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9168 (new_height_ok, parse_scrolling_args): Update.
9169 * tui/tui-stack.c (tui_show_frame_info): Update.
9170 * tui/tui-data.h (struct tui_list): Remove.
9171 (tui_source_windows): Return a reference to a std::vector.
9172 * tui/tui-data.c (source_windows): Now a std::vector.
9173 (tui_source_windows): Change return type.
9174 (tui_clear_source_windows): Rewrite.
9175 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9176 (tui_free_all_source_wins_content): Rewrite.
9178 2019-06-25 Tom Tromey <tom@tromey.com>
9180 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9181 (struct tui_data_window, struct tui_cmd_window): Declare
9182 clear_detail method.
9183 * tui/tui-data.c (tui_source_window::clear_detail)
9184 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9186 (tui_clear_win_detail): Simplify.
9188 2019-06-25 Tom Tromey <tom@tromey.com>
9190 * tui/tui-layout.c (make_source_window, make_disasm_window)
9191 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9192 Return the new window.
9193 (show_source_disasm_command, show_data)
9194 (show_source_or_disasm_and_command): Update.
9196 2019-06-25 Tom Tromey <tom@tromey.com>
9198 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9199 parameter. Return the new window.
9200 (show_source_disasm_command): Update and remove NULL check.
9201 (show_source_or_disasm_and_command): Update.
9203 2019-06-25 Tom Tromey <tom@tromey.com>
9205 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9207 2019-06-25 Tom Tromey <tom@tromey.com>
9209 * tui/tui-data.h (struct tui_win_info): Make constructor
9210 protected. Make destructor virtual. Add initializers.
9211 (tui_source_window, tui_data_window, tui_cmd_window): New
9213 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9214 constructor. Add "type" parameter.
9215 (tui_source_window, tui_data_window, tui_cmd_window): New
9217 (tui_alloc_win_info): Instantiate the appropriate subclass.
9219 2019-06-25 Tom Tromey <tom@tromey.com>
9221 * tui/tui-win.c (tui_resize_all): Use delete.
9222 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9224 (tui_free_window): Don't declare.
9225 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9228 2019-06-25 Tom Tromey <tom@tromey.com>
9230 * tui/tui-data.h (struct tui_win_info): Add constructor.
9231 * tui/tui-data.c (tui_alloc_win_info): Use new.
9232 (tui_free_window): Use delete.
9234 2019-06-22 Tom Tromey <tom@tromey.com>
9236 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9238 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9240 2019-06-22 Tom Tromey <tom@tromey.com>
9242 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9244 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9246 2019-06-22 Tom de Vries <tdevries@suse.de>
9248 * dwarf2read.c (create_addrmap_from_aranges)
9249 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9252 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9254 * dwarf2read.h (dwarf2_section_info_def): Remove.
9255 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9256 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9257 std::vector<dwarf2_section_info>.
9258 (struct dwo_file) <~dwo_file>: Remove.
9259 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9261 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9262 (dwarf2_read_debug_names): Likewise.
9263 (create_debug_types_hash_table): Change parameter type to
9264 array_view, adjust code accordingly.
9265 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9266 (partial_die_info::fixup): Likewise.
9267 (determine_prefix): Likewise.
9268 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9270 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9272 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9274 <~dwo_file>: Remove call to gdb_bfd_unref.
9275 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9276 gdb_bfd_ref_ptr::get.
9278 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9280 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9282 * dwarf2read.c (struct dwo_file): Initialize fields.
9284 (free_dwo_file): Remove, move content to ~dwo_file.
9285 (struct dwo_file_deleter): Remove.
9286 (dwo_file_up>: Remove custom deleter.
9287 (free_dwo_files): Remove.
9288 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9290 (process_skeletonless_type_units): Call unique_ptr::get.
9291 (allocate_dwo_file_hash_table): Add deleter to created hash
9292 table. Change return type to htab_up.
9293 (lookup_dwo_file_slot): Don't memset dwo_file, call
9295 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9296 (create_dwo_unit_in_dwp_v2): Likewise.
9297 (open_and_init_dwo_file): Likewise.
9298 (free_dwo_file_from_slot): Remove.
9300 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9302 * dwarf2read.h (struct dwarf2_section_info) <readin,
9303 is_virtual>: Change type to bool.
9304 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9307 2019-06-19 Tom Tromey <tom@tromey.com>
9309 * tui/tui-data.h (tui_init_content_element): Don't declare.
9311 2019-06-19 Tom Tromey <tom@tromey.com>
9313 * tui/tui-data.h (tui_init_win_info): Don't declare.
9315 2019-06-19 Tom de Vries <tdevries@suse.de>
9317 * dwarf2read.h (abstract_to_concrete): Change type to
9318 std::unordered_map<sect_offset, std::vector<sect_offset>,
9319 gdb::hash_enum<sect_offset>>.
9321 2019-06-19 Tom Tromey <tromey@adacore.com>
9323 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9324 EVAL_AVOID_SIDE_EFFECTS specially.
9326 2019-06-19 Tom Tromey <tromey@adacore.com>
9328 * source-cache.c (highlighter): New global.
9329 (source_cache::get_source_lines): Create a highlighter on demand.
9331 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9333 * defs.h (deprecated_interactive_hook): Delete declaration.
9334 * interps.c (clear_interpreter_hooks): Remove use of
9335 deprecated_interactive_hook.
9336 * top.c (deprecated_interactive_hook): Delete definition.
9337 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9339 2019-06-18 Tom de Vries <tdevries@suse.de>
9342 * dwarf2read.h (abstract_to_concrete): Change type from
9343 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9344 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9345 * dwarf2read.c (read_variable): Update.
9346 (dwarf2_fetch_die_loc_sect_off): Update.
9348 2019-06-17 Tom de Vries <tdevries@suse.de>
9351 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9352 accessing parent[parent_len - 1].
9354 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9357 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9358 call dtrace_process_dof with NULL dof.
9360 2019-06-16 Tom de Vries <tdevries@suse.de>
9363 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9365 2019-06-16 Tom Tromey <tom@tromey.com>
9367 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9368 (make_all_visible): Use address of member.
9370 2019-06-16 Tom Tromey <tom@tromey.com>
9372 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9373 (tui_free_window, free_content, free_content_elements): Remove
9375 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9377 * tui/tui-regs.c (tui_show_register_group)
9378 (tui_display_registers_from, tui_display_reg_element_at_line):
9379 Remove unnecessary cast.
9381 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9383 * linux-nat.c (normal_mask): Delete.
9384 (_initialize_linux_nat): Don't initialise normal_mask.
9386 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9389 * dwarf-index-write.h (write_psymtabs_to_index): Add
9390 dwz_basename parameter.
9391 * dwarf-index-write.c (write_gdbindex): Move file writing to
9392 write_gdbindex_1. Change return type void.
9393 (assert_file_size): Move up, remove filename parameter.
9394 (write_gdbindex_1): New function.
9395 (write_debug_names): Change return type to void, call
9397 (struct index_wip_file): New struct.
9398 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9399 file logic to index_wip_file. Write index for dwz file if
9401 (save_gdb_index_command): Pass basename of dwz file, if present.
9402 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9403 build-id of dwz file, if present.
9404 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9405 (dwarf2_get_dwz_file): Likewise.
9406 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9407 (dwarf2_get_dwz_file): Likewise.
9409 2019-06-16 Tom Tromey <tom@tromey.com>
9411 * coffread.c (process_coff_symbol): Use xstrdup.
9412 * value.c (create_internalvar): Use xstrdup.
9414 2019-06-16 Tom Tromey <tom@tromey.com>
9416 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9417 * breakpoint.c (stopin_command, stopat_command)
9418 (until_break_command, decode_location_default): Remove unnecessary
9420 * utils.c (subset_compare): Remove unnecessary cast.
9421 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9423 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9425 * infcmd.c (path_command): Remove unnecessary cast.
9426 * coffread.c (decode_type): Remove unnecessary cast.
9427 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9428 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9429 * tui/tui-stack.c (tui_show_locator_content)
9430 (tui_show_frame_info): Remove unnecessary cast.
9431 * tui/tui-win.c (tui_scroll_forward_command)
9432 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9433 (parse_scrolling_args): Remove unnecessary cast.
9434 * tui/tui-data.c (init_win_info, tui_del_window)
9435 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9436 (free_content_elements): Remove unnecessary cast.
9437 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9439 * tui/tui-source.c (tui_set_source_content)
9440 (tui_vertical_source_scroll): Remove unnecessary cast.
9441 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9443 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9444 * tui/tui-regs.c (tui_display_registers_from)
9445 (tui_display_register): Remove unnecessary cast.
9446 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9447 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9448 (make_visible): Remove unnecessary cast.
9449 * tui/tui-winsource.c (tui_erase_source_content)
9450 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9452 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9453 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9454 * stabsread.c (read_type, read_array_type, read_range_type):
9455 Remove unnecessary cast.
9456 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9457 (parse_symbol, parse_type, upgrade_type, parse_external)
9458 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9460 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9462 2019-06-16 Tom Tromey <tom@tromey.com>
9464 * tui/tui-data.c (tui_alloc_generic_win_info)
9465 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9468 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9469 Andrew Burgess <andrew.burgess@embecosm.com>
9471 * f-typeprint.c (f_print_type): Don't return early for not
9472 associated or not allocated types.
9473 (f_type_print_varspec_suffix): Add print_rank parameter and print
9474 ranks of array types in case they dangling.
9475 (f_type_print_base): Add print_rank parameter.
9477 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9479 * NEWS: Mention new MI commands.
9480 * break-catch-throw.c (enum exception_event_kind): Move to
9482 (print_mention_exception_catchpoint): Output text as a single
9484 (catch_exception_command_1): Rename to...
9485 (catch_exception_event): ...this, make non-static, update header
9486 command, and change some parameter types.
9487 (catch_catch_command): Update for changes to
9488 catch_exception_command_1.
9489 (catch_throw_command): Likewise.
9490 (catch_rethrow_command): Likewise.
9491 * breakpoint.c (enum exception_event_kind): Delete.
9492 * breakpoint.h (enum exception_event_kind): Moved here from
9493 break-catch-throw.c.
9494 (catch_exception_event): Declare.
9495 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9496 (mi_cmd_catch_throw): New function.
9497 (mi_cmd_catch_rethrow): New function.
9498 (mi_cmd_catch_catch): New function.
9499 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9500 'catch-catch' entries.
9501 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9502 (mi_cmd_catch_rethrow): Declare.
9503 (mi_cmd_catch_catch): Declare.
9505 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9507 * annotate.c (annotate_source_line): Change return type to void,
9508 update implementation to match.
9509 * annotate.h (annotate_source_line): Change return type to void,
9510 update header comment.
9511 * stack.c (print_frame_info): Don't change what frame information
9512 is printed based on whether annotations are on or not.
9514 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9516 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9517 (annotate_source): Make static.
9518 (annotate_source_line): Moved from source.c and renamed from
9519 identify_source_line. Update the return type.
9520 * annotate.h (annotate_source): Delete declaration.
9521 (annotate_source_line): Declaration moved from source.h, and
9522 renamed from identify_source_line. Return type updated.
9523 * source.c (identify_source_line): Moved to annotate.c and renamed
9524 to annotate_source_line.
9525 (info_line_command): Remove check of annotation_level.
9526 * source.h (identify_source_line): Move declaration to annotate.h
9527 and rename to annotate_source_line.
9528 * stack.c: Add 'annotate.h' include.
9529 (print_frame_info): Remove check of annotation_level before
9530 calling annotate_source_line.
9532 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9534 * source-cache.c (source_cache::get_plain_source_lines): Use
9535 open_source_file_with_line_charpos instead of just
9536 open_source_file, remove call to find_source_lines.
9537 (source_cache::get_source_lines): Likewise.
9538 * source.c (find_source_lines): Make static.
9539 (get_filename_and_charpos): Renamed into...
9540 (open_source_file_with_line_charpos): ..this along with changes to
9541 return a scoped_fd, and some other minor clean ups.
9542 (identify_source_line): Use open_source_file_with_line_charpos.
9543 (search_command_helper): Use open_source_file_with_line_charpos
9544 instead of just open_source_file, remove call to
9546 * source.h (open_source_file_with_line_charpos): Declare new
9548 (find_source_lines): Delete declaration.
9550 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9552 * source.c (get_filename_and_charpos): Remove fullname
9554 (identify_source_line): Update call to get_filename_and_charpos.
9556 2019-06-14 Tom Tromey <tromey@adacore.com>
9559 * ui-style.h (skip_ansi_escape): Update comment.
9560 * ui-file.h (class no_terminal_escape_file): New class.
9561 * ui-file.c (no_terminal_escape_file::write)
9562 (no_terminal_escape_file::puts): New methods.
9563 * cli/cli-logging.c (handle_redirections): Use
9564 no_terminal_escape_file.
9566 2019-06-14 Tom Tromey <tromey@adacore.com>
9568 * NEWS: Move convenience variable news above Python news.
9570 2019-06-14 Tom Tromey <tom@tromey.com>
9572 * gnulib: Move directory to top-level.
9573 * configure.ac: Don't configure gnulib.
9574 * configure: Rebuild.
9575 * common/common-defs.h: Use new path to gnulib.
9576 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9578 (INCGNU): Look in new gnulib location.
9579 (HFILES_NO_SRCDIR): Remove gnulib files.
9580 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9581 (generated_files): Remove GNULIB_H.
9582 ($(LIBGNU), all-lib): Remove targets.
9583 (distclean): Don't mention GNULIB_BUILDDIR.
9584 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9586 2019-06-14 Tom Tromey <tromey@adacore.com>
9588 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9589 Warn if symbol file does not provide any symbols.
9591 2019-06-14 Tom Tromey <tromey@adacore.com>
9593 * source.c (find_and_open_source): Respect basenames_may_differ.
9595 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9597 * annotate.c (annotate_breakpoints_invalid): Make use of
9598 scoped_restore_terminal_state.
9599 (annotate_frames_invalid): Likewise.
9601 2019-06-14 Tom Tromey <tromey@adacore.com>
9603 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9604 allow assignment to an internalvar.
9606 2019-06-14 Tom Tromey <tromey@adacore.com>
9608 * ada-lex.l: Allow "_" in attribute names.
9610 2019-06-14 Tom Tromey <tromey@adacore.com>
9613 * regcache.c (registers_changed): Don't call alloca.
9614 * top.c (execute_command): Don't call alloca.
9616 2019-06-13 Pedro Alves <palves@redhat.com>
9618 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9619 'expression'. When parsing an expression, error out if there's
9620 junk after "unlimited".
9621 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9622 (do_set_command): Adjust calls to is_unlimited_literal.
9624 2019-06-13 Pedro Alves <palves@redhat.com>
9626 * compile/compile.c (make_compile_options_def_group): Add braces
9627 around array_view initializer.
9628 * thread.c (make_thread_apply_all_options_def_group)
9629 (make_thread_apply_all_options_def_group): Likewise.
9631 2019-06-13 Pedro Alves <palves@redhat.com>
9633 * NEWS (New commands): Mention "maint test-options
9634 require-delimiter", "maint test-options unknown-is-error", "maint
9635 test-options unknown-is-operand" and "maint show
9636 test-options-completion-result".
9637 (New command options, command completion): New section.
9638 (Completion improvements): New section.
9639 Mention that you can abbreviate "unlimited".
9641 2019-06-13 Pedro Alves <palves@redhat.com>
9643 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9644 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9645 * unittests/cli-utils-selftests.c (test_parse_flags)
9646 (test_parse_flags_qcs): Delete.
9647 (test_cli_utils): Don't call deleted functions.
9649 2019-06-13 Pedro Alves <palves@redhat.com>
9651 * thread.c: Include "cli/cli-option.h".
9652 (tp_array_compar_ascending): Global.
9653 (tp_array_compar): Delete function.
9654 (tp_array_compar_ascending, tp_array_compar_descending): New
9656 (ascending_option_def, qcs_flag_option_def)
9657 (thr_qcs_flags_option_defs)
9658 (make_thread_apply_all_options_def_group)
9659 (make_thread_apply_options_def_group): New.
9660 (thread_apply_all_command): Use gdb::option::process_options.
9661 (thread_apply_command_completer)
9662 (thread_apply_all_command_completer): New.
9663 (thread_apply_command): Use gdb::option::process_options.
9664 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9665 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9666 to generate help text of "thread apply". Adjust "taas"'s help.
9667 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9668 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9670 2019-06-13 Pedro Alves <palves@redhat.com>
9672 * thread.c (thread_apply_command): Check for invalid TID with
9673 isdigit instead of !isalpha.
9675 2019-06-13 Pedro Alves <palves@redhat.com>
9677 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9678 (validate_flags_qcs): New.
9679 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9680 (validate_flags_qcs): Declare.
9681 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9682 (make_frame_apply_options_def_group): New.
9683 (frame_apply_command_count): Process options with
9684 gdb::option::process_options.
9685 (frame_apply_completer): New.
9686 (frame_apply_level_completer, frame_apply_all_completer)
9687 (frame_apply_completer): New.
9688 (_initialize_stack): Update help of "frame apply", "frame apply
9689 level", "frame apply all" and "faas" to mention supported options
9690 and install command completers.
9691 * stack.h (frame_apply_all_completer): Declare.
9692 * thread.c: Include "stack.h".
9693 (tfaas_command): Add "--".
9694 (_initialize_thread): Update help "tfaas" to mention supported
9695 options and install command completer.
9697 2019-06-13 Pedro Alves <palves@redhat.com>
9699 * completer.c (complete_nested_command_line): New.
9700 (gdb_completion_word_break_characters_throw): Add assertion.
9701 * completer.h (complete_nested_command_line): Declare.
9703 2019-06-13 Pedro Alves <palves@redhat.com>
9705 * stack.c (parse_backtrace_qualifiers): New.
9706 (backtrace_command): Use it.
9707 (backtrace_command_completer): Complete on qualifiers.
9709 2019-06-13 Pedro Alves <palves@redhat.com>
9711 * frame.c: Include "cli/cli-option.h.
9712 (user_set_backtrace_options): New.
9713 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9715 (get_prev_frame): Adjust.
9716 (boolean_option_def, uinteger_option_def)
9717 (set_backtrace_option_defs): New.
9718 (_initialize_frame): Adjust and use
9719 gdb::option::add_setshow_cmds_for_options to install "set
9720 backtrace past-main" and "set backtrace past-entry".
9721 * frame.h: Include "cli/cli-option.h".
9722 (struct frame_print_options): Forward declare.
9723 (print_frame_arguments_all, print_frame_arguments_scalars)
9724 (print_frame_arguments_none): Declare.
9725 (print_entry_values): Delete declaration.
9726 (struct frame_print_options, user_frame_print_options): New.
9727 (struct set_backtrace_options): New.
9728 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9729 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9730 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9731 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9732 (list_args_or_locals): Add frame_print_options parameter.
9733 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9734 * python/py-framefilter.c (enumerate_args): Pass down
9735 USER_FRAME_PRINT_OPTIONS.
9736 * stack.c: Include "cli/cli-option.h".
9737 (print_frame_arguments_all, print_frame_arguments_scalars)
9738 (print_frame_arguments_none): Declare.
9739 (print_raw_frame_arguments, print_entry_values): Delete.
9740 (user_frame_print_options): New.
9741 (boolean_option_def, enum_option_def, frame_print_option_defs):
9743 (struct backtrace_cmd_options): New.
9744 (bt_flag_option_def): New.
9745 (backtrace_command_option_defs): New.
9746 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9747 (print_frame_arg, read_frame_arg, print_frame_args)
9748 (print_frame_info, print_frame): Add frame_print_options parameter
9750 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9751 (backtrace_command_1): Add frame_print_options and
9752 backtrace_cmd_options parameters and use them.
9753 (make_backtrace_options_def_group): New.
9754 (backtrace_command): Process command options with
9755 gdb::option::process_options.
9756 (backtrace_command_completer): New.
9757 (_initialize_stack): Extend "backtrace"'s help to mention
9758 supported options. Install completer for "backtrace".
9759 Install some settings commands with add_setshow_cmds_for_options.
9761 2019-06-13 Pedro Alves <palves@redhat.com>
9763 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9764 and that "set/show print raw frame-arguments" are now deprecated.
9766 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9768 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9769 * stack.c (_initialize_stack): Install "set/show print
9770 raw-frame-arguments", and deprecate "set/show print raw
9772 * valprint.c (_initialize_valprint): Deprecate "set/show print
9775 2019-06-13 Pedro Alves <palves@redhat.com>
9777 * compile/compile.c (struct compile_options): New.
9778 (compile_flag_option_def, compile_command_option_defs)
9779 (make_compile_options_def_group): New.
9780 (compile_file_command): Handle options with
9781 gdb::option::process_options.
9782 (compile_file_command_completer): New function.
9783 (compile_code_command): Handle options with
9784 gdb::option::process_options.
9785 (compile_code_command_completer): New function.
9786 (_initialize_compiler): Install completers for "compile code" and
9787 "compile file". Mention available options in "compile code" and
9788 "compile code"'s help.
9789 * completer.c (advance_to_completion_word): New, factored out from
9791 (advance_to_expression_complete_word_point): ... this.
9792 (advance_to_filename_complete_word_point): New.
9793 * completer.h (advance_to_filename_complete_word_point): New
9796 2019-06-13 Pedro Alves <palves@redhat.com>
9798 * compile/compile.c: Include "cli/cli-option.h".
9799 (compile_print_value): Scope data pointer is now a
9800 value_print_options pointer; adjust.
9801 (compile_print_command): Process options. Scope data pointer is
9802 now a value_print_options pointer; adjust.
9803 (_initialize_compile): Update "compile print"'s help to include
9804 supported options. Install a completer for "compile print".
9805 * cp-valprint.c (show_vtblprint, show_objectprint)
9806 (show_static_field_print): Delete.
9807 (_initialize_cp_valprint): Don't install "set print
9808 static-members", "set print vtbl", "set print object" here.
9809 * printcmd.c: Include "cli/cli-option.h" and
9810 "common/gdb_optional.h".
9811 (print_command_parse_format): Rework to fill in a
9812 value_print_options instead of a format_data.
9813 (print_value): Change parameter type from format_data pointer to
9814 value_print_options reference. Adjust.
9815 (print_command_1): Process options. Adjust to pass down a
9816 value_print_options.
9817 (print_command_completer): New.
9818 (_initialize_printcmd): Install print_command_completer as
9819 handle_brkchars completer for the "print" command. Update
9820 "print"'s help to include supported options.
9821 * valprint.c: Include "cli/cli-option.h".
9822 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9823 here from cp-valprint.c.
9824 (boolean_option_def, uinteger_option_def)
9825 (value_print_option_defs, make_value_print_options_def_group):
9826 New. Use gdb::option::add_setshow_cmds_for_options to install
9827 "set print elements", "set print null-stop", "set print repeats",
9828 "set print pretty", "set print union", "set print array", "set
9829 print address", "set print symbol", "set print array-indexes".
9830 * valprint.h: Include <string> and "cli/cli-option.h".
9831 (make_value_print_options_def_group): Declare.
9832 (print_value): Change parameter type from format_data pointer to
9833 value_print_options reference.
9834 (print_command_completer): Declare.
9836 2019-06-13 Pedro Alves <palves@redhat.com>
9838 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9839 (COMMON_SFILES): Add maint-test-settings.c.
9840 * cli/cli-decode.c (boolean_enums): New global, factored out from
9842 (add_setshow_boolean_cmd): ... here.
9843 * cli/cli-decode.h (boolean_enums): Declare.
9844 * cli/cli-option.c: New file.
9845 * cli/cli-option.h: New file.
9846 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9847 factored out from ...
9848 (parse_cli_boolean_value(const char *)): ... this.
9849 (is_unlimited_literal): Change parameter type to pointer to
9850 pointer. Adjust and advance ARG pointer.
9851 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9852 (parse_cli_var_enum): New, factored out from ...
9853 (do_set_command): ... this. Adjust.
9854 * cli/cli-setshow.h (parse_cli_boolean_value)
9855 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9856 (parse_cli_var_enum): Declare.
9857 * cli/cli-utils.c: Include "cli/cli-option.h".
9858 (get_ulongest): New.
9859 * cli/cli-utils.h (get_ulongest): Declare.
9860 (check_for_argument): New overloads.
9861 * maint-test-options.c: New file.
9863 2019-06-13 Pedro Alves <palves@redhat.com>
9865 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9866 parse a range if "-" is at the end of the string.
9868 2019-06-13 Pedro Alves <palves@redhat.com>
9870 * cli/cli-setshow.c (parse_auto_binary_operation)
9871 (parse_cli_boolean_value): Don't allow "o".
9873 2019-06-13 Pedro Alves <palves@redhat.com>
9875 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9876 * NEWS: Mention maint test-settings KIND.
9877 * maint-test-settings.c: New file.
9879 2019-06-13 Pedro Alves <palves@redhat.com>
9881 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9883 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9886 2019-06-13 Pedro Alves <palves@redhat.com>
9888 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9891 2019-06-13 Pedro Alves <palves@redhat.com>
9893 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9895 2019-06-13 Pedro Alves <palves@redhat.com>
9897 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9898 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9900 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9901 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9903 (check_for_argument): Skip spaces after argument.
9905 2019-06-13 Pedro Alves <palves@redhat.com>
9907 * thread.c (thread_apply_command): Adjust TID parsing.
9908 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9909 detected before end of string.
9910 (tid_is_in_list): Error out if LIST is invalid.
9912 2019-06-13 Pedro Alves <palves@redhat.com>
9914 * completer.c (complete_line_internal_1): Rewind completion word
9916 (completion_tracker::advance_custom_word_point_by): Change
9917 parameter type to int.
9918 * completer.h (completion_tracker::advance_custom_word_point_by):
9921 2019-06-13 Pedro Alves <palves@redhat.com>
9923 * completer.c (advance_to_completion_word): Handle delimiters.
9925 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9927 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9929 2019-06-11 Tom Tromey <tom@tromey.com>
9931 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9932 (xmalloc_failed): Move to alloc.c.
9933 * alloc.c: New file.
9934 * Makefile.in (COMMON_SFILES): Add alloc.c.
9936 2019-06-11 Tom Tromey <tom@tromey.com>
9938 * nat/linux-waitpid.c: Don't include server.h.
9939 (linux_debug): Remove.
9940 (my_waitpid): Update.
9942 2019-06-11 Tom Tromey <tromey@adacore.com>
9944 * infcall.c (_initialize_infcall): Remove trailing newline from
9946 * user-regs.c (_initialize_user_regs): Remove trailing newline
9948 * typeprint.c (_initialize_typeprint): Remove trailing newline
9950 * reverse.c (_initialize_reverse): Remove trailing newlines from
9952 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9954 * language.c (add_set_language_command): Remove trailing newline
9956 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9958 * disasm.c (_initialize_disasm): Remove trailing newline from
9960 * top.c (init_main): Remove trailing newline from help.
9961 * interps.c (_initialize_interpreter): Remove trailing newline
9963 * btrace.c (_initialize_btrace): Remove trailing newlines from
9965 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9967 * python/python.c (_initialize_python): Remove trailing newline
9969 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9971 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9972 from help. Reformat some text.
9973 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9975 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9978 2019-06-11 Tom Tromey <tromey@adacore.com>
9980 * darwin-nat.c (darwin_decode_exception_message)
9981 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9983 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9985 * valops.c (value_slice): Check for not allocated or not
9988 2019-06-10 Tom de Vries <tdevries@suse.de>
9991 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9992 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9995 2019-06-10 Tom de Vries <tdevries@suse.de>
9998 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9999 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10001 2019-06-10 Tom de Vries <tdevries@suse.de>
10004 * symtab.c (struct demangled_name_entry): Add language field.
10005 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10006 static minimal symbol". Set and use language field.
10008 2019-06-10 Tom Tromey <tromey@adacore.com>
10010 * ada-lang.c (_initialize_ada_language): Update help text.
10012 2019-06-10 Tom Tromey <tromey@adacore.com>
10014 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10016 * guile/guile.c (handle_boot_error): Don't end warning with a
10018 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10019 warning with a newline.
10020 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10022 (s12z_frame_cache): Likewise.
10023 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10025 * solib-svr4.c (disable_probes_interface): Don't end warning with
10027 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10029 * python/python.c (do_finish_initialization): Don't end warning
10032 2019-06-10 Tom Tromey <tom@tromey.com>
10034 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10035 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10038 2019-06-10 Tom Tromey <tromey@adacore.com>
10040 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10042 (elf_new_init): Don't call stabsread_new_init.
10043 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10044 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10045 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10047 2019-06-10 Tom de Vries <tdevries@suse.de>
10051 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10053 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10055 * source.c (find_and_open_source): Also rewrite relative file
10058 2019-04-26 Amos Bird <amosbird@gmail.com>
10060 * annotate.c (annotate_thread_exited): Add "thread-exited"
10063 2019-06-06 Tom Tromey <tromey@adacore.com>
10065 * maint.h (class scoped_command_stats): Use
10066 DISABLE_COPY_AND_ASSIGN.
10067 <print_time>: New method.
10068 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10070 (scoped_command_stats::print_time): New method.
10072 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10074 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10075 instructions of lengths 6 or 8 bytes.
10077 2019-06-04 Pedro Alves <palves@redhat.com>
10079 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10081 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10082 * breakpoint.c (condition_completer): Likewise.
10083 * cli/cli-dump.c (scan_expression): Likewise.
10084 * common/filestuff.c (mkdir_recursive): Likewise.
10085 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10086 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10087 (gdb_abspath): Likewise.
10088 * compile/compile-cplus-types.c
10089 (compile_cplus_instance::decl_name): Likewise.
10090 * completer.c (complete_explicit_location):
10091 (signal_completer, reg_or_group_completer_1): Likewise.
10092 * cp-support.c (cp_remove_params_if_any): Likewise.
10093 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10094 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10095 * infcmd.c (strip_bg_char): Likewise.
10096 * linespec.c (copy_token_string): Likewise.
10097 * mi/mi-main.c (output_cores): Likewise.
10098 * psymtab.c (psymtab_search_name):
10099 * symfile.c (test_set_ext_lang_command): Likewise.
10100 * target.c (target_fileio_read_stralloc): Likewise.
10101 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10102 * value.c (complete_internalvar): Likewise.
10104 2019-06-04 Christian Biesinger <cbiesinger@google.com>
10106 Add objfile property to gdb.Type.
10107 * NEWS: Mention Python API addition.
10108 * python/py-type.c (typy_get_objfile): New method.
10110 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10112 * NEWS: Mention the new set|show style [title|highlight].
10113 Mention changes to "show style", "help" and "apropos".
10115 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10117 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10118 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10119 instead of print_help_for_command.
10120 (print_doc_of_command): New function.
10121 (help_list): Add 'apropos -v word' suggestion.
10122 (print_help_for_command): Style the command name using title style.
10123 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10124 (_initialize_cli_cmds): Describe -v in apropos_command help.
10126 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10128 * cli/cli-style.h (cli_style_option): Add name in constructor,
10129 add m_name class member, add constructor with intensity,
10130 add name class function.
10131 (cli_style_option::add_setshow_commands): Remove name argument.
10132 (highlight_style, title_style): New styles.
10133 * cli/cli-style.c (do_show): New function that shows a style
10134 characteristic styling the style name with itself.
10135 (set_style_name): New function.
10136 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10137 Update all callers according to the changes in cli/cli-style.h.
10138 * utils.h (fputs_highlighted): New function.
10139 * utils.c (fputs_highlighted): Likewise.
10141 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10143 * NEWS: Mention new pipe command and new convenience variables.
10145 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10147 * cli/cli-cmds.c (pipe_command): New function.
10148 (_initialize_cli_cmds): Call add_com for pipe_command.
10149 Define | as an alias for pipe.
10150 (exit_status_set_internal_vars): New function.
10151 (shell_escape): Call exit_status_set_internal_vars.
10152 cli/cli-decode.c (find_command_name_length): Recognize | as
10153 a single character command.
10155 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10157 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10158 top.c (execute_command_to_ui_file): New function, mostly a copy
10159 of execute_command_to_string.
10160 (execute_command_to_string): Implement by calling
10161 execute_command_to_ui_file.
10163 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10165 * top.h (saved_command_line): Remove declaration.
10166 * top.c (previous_saved_command_line, previous_repeat_arguments):
10168 (saved_command_line): Make static, define together with other
10169 'repeat variables'.
10170 (dont_repeat): Clear repeat_arguments.
10171 (repeat_previous, get_saved_command_line, save_command_line):
10173 (gdb_init): Initialize saved_command_line
10174 and previous_saved_command_line.
10175 * main.c (captured_main_1): Remove saved_command_line initialization.
10176 * event-top.c (handle_line_of_input): Update to use
10177 the new 'repeat' related functions instead of direct access to
10178 saved_command_line.
10179 * command.h (repeat_previous, get_saved_command_line,
10180 save_command_line): New declarations.
10181 (dont_repeat): Add comment.
10183 2019-05-30 Tom Tromey <tromey@adacore.com>
10185 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10187 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10189 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10192 * completer.c (complete): Initialize variable word.
10194 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10196 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10197 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10198 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10199 'body' is NULL to the outter 'if', protecting the '!is_define'
10202 2019-05-29 Tom Tromey <tromey@adacore.com>
10204 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10205 (dwarf_unknown): New function.
10206 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10207 (dwarf_type_encoding_name): Use dwarf_unknown.
10209 2019-05-29 Tom Tromey <tromey@adacore.com>
10212 * cp-valprint.c (cp_print_value_fields): Call
10213 cp_print_static_field inside "try".
10215 2019-05-29 Tom Tromey <tromey@adacore.com>
10217 * inflow.c (struct terminal_info): Add default operator=.
10218 * configure: Rebuild.
10219 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10220 -Wdeprecated-copy-dtor, -Wredundant-move.
10222 2019-05-29 Tom Tromey <tromey@adacore.com>
10225 * infcmd.c (print_return_value_1): Handle finish_print
10227 (show_print_finish): New function.
10228 (_initialize_infcmd): Add "set/show print finish" commands.
10229 * valprint.c (user_print_options): Initialize new member.
10230 * valprint.h (struct value_print_options) <finish_print>: New
10233 2019-05-28 Tom Tromey <tromey@adacore.com>
10235 * ada-lang.c (ada_remove_Xbn_suffix)
10236 (find_old_style_renaming_symbol)
10237 (parse_old_style_renaming): Remove.
10238 (ada_find_renaming_symbol): Don't call
10239 find_old_style_renaming_symbol.
10240 (ada_is_renaming_symbol): Rename from
10241 ada_find_renaming_symbol. Remove "block" parameter. Return
10243 (ada_read_var_value): Update and simplify.
10244 * ada-exp.y (write_var_or_type): Remove old code.
10246 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10249 * event-top.c: Remove include comment.
10250 * inflow.c (class scoped_ignore_sigttou): Move from here...
10251 * inflow.h (class scoped_ignore_sigttou): ...to here.
10252 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10253 * top.c: Remove include comment.
10255 2019-05-27 Tom Tromey <tom@tromey.com>
10259 2019-05-22 Tom Tromey <tromey@adacore.com>
10261 * target.c (target_follow_exec): Constify parameter.
10262 * target-delegates.c: Rebuild.
10263 * remote.c (remote_target::follow_exec): Constify parameter.
10264 * infrun.c (follow_exec): Constify parameter.
10265 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10266 (target_follow_exec): Likewise.
10268 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10270 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10271 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10273 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10275 * NEWS: Add debugredirect and testsuite sections.
10277 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10279 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10280 target descriptions using exclusively floating point register name
10283 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10286 * f-lang.c (build_fortran_types): Handle the case where
10287 gdbarch_floatformat_for_type returns a nullptr.
10289 2019-05-21 Tom de Vries <tdevries@suse.de>
10292 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10294 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10297 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10299 * i386-tdep.c (i386_floatformat_for_type): Use
10300 floatformats_ia64_quad for the 16-byte floating point component
10301 within a fortran 32-byte complex number.
10303 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10305 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10306 delete default constructor.
10307 (find_partial_die): Update to return const struct.
10308 (partial_die_parent_scope): Move variable declaration into scope
10309 of its use and change its type to auto.
10310 (guess_partial_die_structure_name): Likewise.
10311 (partial_die_info::fixup): Likewise.
10313 2019-05-17 Tom Tromey <tromey@adacore.com>
10315 * source.c (find_and_open_source): Remove cast.
10317 2019-05-17 Tom Tromey <tromey@adacore.com>
10319 * annotate.c (annotate_source): Make "filename" const.
10320 * annotate.h (annotate_source): Use const.
10322 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10324 * disasm.c (set_disassembler_options): Send errors to stderr.
10326 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10328 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10329 (cli_interp_base::set_logging): Check debug_redirect.
10330 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10331 * cli/cli-logging.c (debug_redirect): Add static variable.
10332 (pop_output_files): Add default param.
10333 (handle_redirections): Print debug setting.
10334 (show_logging_command): Likewise.
10335 (_initialize_cli_logging): Add debugredirect command.
10336 * interps.c (current_interp_set_logging): Add debug_redirect
10338 * interps.h (set_logging): Add debug_redirect parameter.
10339 (current_interp_set_logging): Likewise.
10340 * mi/mi-common.h: Likewise.
10341 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10343 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10344 Tom Tromey <tromey@adacore.com>
10346 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10348 * cli/cli-interp.h (make_logging_output): Remove declaration.
10349 * cli/cli-logging.c (make_logging_output): Remove function.
10350 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10352 * ui-file.c (tee_file::tee_file): Remove bools.
10353 (tee_file::~tee_file): Remove deletes.
10354 * ui-file.h (tee_file): Remove bools.
10356 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10358 * mi/mi-cmds.h (mi_cmd_complete): New function.
10359 * mi/mi-main.c (mi_cmd_complete): Likewise.
10360 * mi/mi-cmds.c: Define new MI command -complete.
10361 * NEWS: Mention new -complete command.
10363 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10365 * completer.h (complete): New function.
10366 * completer.c (complete): Likewise.
10367 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10368 function defined in completer.h.
10370 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10372 * MAINTAINERS (Write After Approval): Add myself.
10374 2019-05-17 Tom de Vries <tdevries@suse.de>
10377 * dwarf2read.c (struct cu_partial_die_info): New struct.
10378 (find_partial_die): Return cu_partial_die_info.
10379 (partial_die_parent_scope, guess_partial_die_structure_name)
10380 (partial_die_info::fixup): Handle new return type of find_partial_die.
10382 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10384 PR breakpoints/24541
10385 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10386 "std::string", simplifying the algorithm.
10388 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10390 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10391 (stap_static_probe_ops::get_probes): Likewise.
10393 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10395 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10396 '-')" and "else if".
10397 (stap_parse_single_operand): Join checks for
10398 "gdbarch_stap_parse_special_token_p" and
10399 "gdbarch_stap_parse_special_token" in the same "if" statement.
10400 Invert check when verifying for operation on register
10403 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10405 * stap-probe.c (stap_get_opcode): Update comment.
10406 (stap_get_expected_argument_type): Likewise.
10407 (handle_stap_probe): Likewise.
10409 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10411 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10412 return type to 'bool'. Adjust comment. Use 'bool' when
10414 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10415 * stap-probe.c (stap_parse_argument_1): Likewise.
10416 (stap_is_operator): Likewise.
10417 (stap_is_generic_prefix): Likewise.
10418 (stap_is_register_prefix): Likewise.
10419 (stap_is_register_indirection_prefix): Likewise.
10420 (stap_is_integer_prefix): Likewise.
10421 (stap_generic_check_suffix): Likewise.
10422 (stap_check_integer_suffix): Likewise.
10423 (stap_check_register_suffix): Likewise.
10424 (stap_check_register_indirection_suffix): Likewise.
10425 (stap_parse_register_operand): Likewise.
10426 (stap_parse_single_operand): Likewise.
10427 (stap_parse_argument_1): Likewise.
10428 (stap_probe::get_argument_count): Likewise.
10429 (stap_is_operator): Likewise.
10431 2019-05-16 Tom Tromey <tromey@adacore.com>
10433 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10434 keyword to foreach.
10436 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10438 * linux-thread-db.c (try_thread_db_load_1): Change return type
10440 (try_thread_db_load): Likewise.
10441 (try_thread_db_load_from_pdir_1): Likewise.
10442 (try_thread_db_load_from_pdir): Likewise.
10443 (try_thread_db_load_from_sdir): Likewise.
10444 (try_thread_db_load_from_dir): Likewise.
10445 (thread_db_load_search): Likewise.
10446 (has_libpthread): Likewise.
10447 (thread_db_load): Likewise.
10449 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10451 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10452 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10453 NULL, and complain/return if that's the case.
10455 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10457 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10458 (advance, posn, abstract_read_memory): New functions.
10459 [struct mem_read_abstraction]: New struct.
10460 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10462 2019-05-14 Tom Tromey <tromey@adacore.com>
10464 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10465 value is not lval_memory.
10467 2019-05-14 Tom Tromey <tromey@adacore.com>
10469 * solib.c (info_sharedlibrary_command): Style the file name.
10471 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10473 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10474 (aarch64_vnv_type): Likewise.
10475 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10476 * common/tdesc.c: Likewise.
10477 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10478 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10479 * features/aarch64-fpu.xml: Add ieee half view.
10480 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10481 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10482 * gdbtypes.h (struct builtin_type): Likewise.
10483 (struct objfile_type): Likewise.
10485 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10487 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10489 * location.h (string_to_event_location): Likewise.
10491 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10495 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10497 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10498 New variable declaration.
10499 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10501 (print_one_breakpoint): Use ui_out::test_flags and new global
10502 variable to compute use_fixed_output.
10503 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10505 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10506 (mi_multi_location_breakpoint_output_fixed): Remove.
10507 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10509 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10510 fix_multi_location_breakpoint_output flag if version >= 3.
10511 * ui-out.h (enum ui_out_flag)
10512 <fix_multi_location_breakpoint_output>: New enumerator.
10514 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10516 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10518 2019-05-10 Tom Tromey <tromey@adacore.com>
10520 * ada-lang.c (catch_ada_completer): New function.
10521 (_initialize_ada_language): Use it.
10523 2019-05-10 Tom Tromey <tromey@adacore.com>
10525 * thread.c (print_thread_info): Make "requested_threads" const.
10526 * gdbthread.h (print_thread_info): Make "requested_threads"
10528 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10529 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10531 2019-05-08 Tom Tromey <tom@tromey.com>
10533 * gdbtypes.c (objfile_type_data): Change type.
10534 (objfile_type, _initialize_gdbtypes): Update.
10536 2019-05-08 Tom Tromey <tom@tromey.com>
10538 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10539 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10540 (_initialize_dwarf2_frame): Update.
10542 2019-05-08 Tom Tromey <tom@tromey.com>
10544 * objc-lang.c (objc_objfile_data): Change type.
10545 (find_methods): Update.
10546 (_initialize_objc_lang): Remove.
10548 2019-05-08 Tom Tromey <tom@tromey.com>
10550 * stabsread.c (rs6000_builtin_type_data): Change type.
10551 (rs6000_builtin_type, _initialize_stabsread): Update.
10553 2019-05-08 Tom Tromey <tom@tromey.com>
10555 * mips-tdep.c (mips_pdr_data): Remove.
10556 (_initialize_mips_tdep): Update.
10558 2019-05-08 Tom Tromey <tom@tromey.com>
10560 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10561 (hppa_init_objfile_priv_data, read_unwind_info)
10562 (find_unwind_entry, _initialize_hppa_tdep): Update.
10564 2019-05-08 Tom Tromey <tom@tromey.com>
10566 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10567 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10569 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10571 2019-05-08 Tom Tromey <tom@tromey.com>
10573 * mdebugread.c (basic_type_data): Change type.
10574 (basic_type, _initialize_mdebugread): Update.
10576 2019-05-08 Tom Tromey <tom@tromey.com>
10578 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10580 2019-05-08 Tom Tromey <tom@tromey.com>
10582 * nto-tdep.c (nto_inferior_data_reg): Change type.
10583 (nto_inferior_data): Update.
10584 (nto_inferior_data_cleanup, nto_new_inferior_data)
10585 (_initialize_nto_tdep): Remove.
10586 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10588 2019-05-08 Tom Tromey <tom@tromey.com>
10590 * ada-lang.c (struct ada_inferior_data): Add initializers.
10591 (ada_inferior_data): Change type.
10592 (ada_inferior_data_cleanup): Remove.
10593 (get_ada_inferior_data, ada_inferior_exit)
10594 (struct ada_pspace_data): Add initializers, destructor.
10595 (ada_pspace_data_handle): Change type.
10596 (get_ada_pspace_data): Update.
10597 (ada_pspace_data_cleanup): Remove.
10599 2019-05-08 Tom Tromey <tom@tromey.com>
10601 * coffread.c (struct coff_symfile_info): Add initializers.
10602 (coff_objfile_data_key): Move lower. Change type.
10603 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10605 (coff_free_info): Remove.
10607 2019-05-08 Tom Tromey <tom@tromey.com>
10609 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10610 (fbsd_pspace_data_handle): Move lower. Change type.
10611 (get_fbsd_pspace_data): Update.
10612 (fbsd_pspace_data_cleanup): Remove.
10613 (_initialize_fbsd_tdep): Update.
10615 2019-05-08 Tom Tromey <tom@tromey.com>
10617 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10618 (get_ada_tasks_pspace_data): Update.
10619 (ada_tasks_pspace_data_cleanup): Remove.
10620 (_initialize_tasks): Update.
10621 (ada_tasks_inferior_data_handle): Change type.
10622 (get_ada_tasks_inferior_data): Update.
10623 (ada_tasks_inferior_data_cleanup): Remove.
10624 (struct ada_tasks_pspace_data): Add initializers.
10626 2019-05-08 Tom Tromey <tom@tromey.com>
10628 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10629 * symfile-debug.c (debug_sym_get_probes): Change type.
10630 * stap-probe.c (handle_stap_probe):
10631 (stap_static_probe_ops::get_probes): Change type.
10632 * probe.h (class static_probe_ops) <get_probes>: Change type.
10633 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10634 (parse_probes_in_pspace): Update.
10635 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10637 (any_static_probe_ops::get_probes): Change type.
10638 * elfread.c (elfread_data): New typedef.
10639 (probe_key): Change type.
10640 (elf_get_probes): Likewise. Update.
10641 (probe_key_free): Remove.
10642 (_initialize_elfread): Update.
10643 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10645 (dtrace_process_dof_probe, dtrace_process_dof)
10646 (dtrace_static_probe_ops::get_probe): Change type.
10648 2019-05-08 Tom Tromey <tom@tromey.com>
10650 * xcoffread.c (struct xcoff_symfile_info): Rename from
10651 coff_symfile_info. Add initializers.
10652 (xcoff_objfile_data_key): Move lower. Change type.
10653 (XCOFF_DATA): Rewrite.
10654 (xcoff_free_info): Remove.
10655 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10656 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10657 (xcoff_initial_scan): Update.
10659 2019-05-08 Tom Tromey <tom@tromey.com>
10661 * solib-svr4.c (struct svr4_info): Add initializers and
10663 <probes_table>: Now an htab_up.
10664 (solib_svr4_pspace_data): Change type.
10665 (free_probes_table): Simplify.
10666 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10667 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10668 (probes_table_remove_objfile_probes, register_solib_event_probe)
10669 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10670 (_initialize_svr4_solib): Update.
10672 2019-05-08 Tom Tromey <tom@tromey.com>
10674 * remote.c (remote_pspace_data): Change type.
10675 (remote_pspace_data_cleanup): Remove.
10676 (get_remote_exec_file, set_pspace_remote_exec_file)
10677 (_initialize_remote): Update.
10679 2019-05-08 Tom Tromey <tom@tromey.com>
10681 * breakpoint.c (breakpoint_objfile_key): Change type.
10682 (get_breakpoint_objfile_data): Update.
10683 (free_breakpoint_objfile_data): Remove.
10684 (_initialize_breakpoint): Update.
10686 2019-05-08 Tom Tromey <tom@tromey.com>
10688 * linux-tdep.c (struct linux_info): Add initializers.
10689 (linux_inferior_data): Move. Change type.
10690 (invalidate_linux_cache_inf): Update.
10691 (linux_inferior_data_cleanup): Remove.
10692 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10694 2019-05-08 Tom Tromey <tom@tromey.com>
10696 * auxv.c (auxv_inferior_data): Move. Change type.
10697 (auxv_inferior_data_cleanup): Remove.
10698 (invalidate_auxv_cache_inf): Rewrite.
10699 (get_auxv_inferior_data, _initialize_auxv): Update.
10701 2019-05-08 Tom Tromey <tom@tromey.com>
10703 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10704 (symfile_debug_objfile_data_key): Change type.
10705 (symfile_debug_installed, debug_qf_has_symbols)
10706 (debug_qf_find_last_source_symtab)
10707 (debug_qf_forget_cached_source_info)
10708 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10709 (debug_qf_print_stats, debug_qf_dump)
10710 (debug_qf_expand_symtabs_for_function)
10711 (debug_qf_expand_all_symtabs)
10712 (debug_qf_expand_symtabs_with_fullname)
10713 (debug_qf_map_matching_symbols)
10714 (debug_qf_expand_symtabs_matching)
10715 (debug_qf_find_pc_sect_compunit_symtab)
10716 (debug_qf_map_symbol_filenames)
10717 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10718 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10719 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10720 (debug_sym_read_linetable, debug_sym_relocate): Update.
10721 (symfile_debug_free_objfile): Remove.
10722 (install_symfile_debug_logging, _initialize_symfile_debug):
10725 2019-05-08 Tom Tromey <tom@tromey.com>
10727 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10728 allocate_on_obstack.
10729 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10730 (get_dwarf2_per_objfile): Update.
10731 (set_dwarf2_per_objfile): Remove.
10732 (dwarf2_has_info, dwarf2_get_section_info): Update.
10733 (dwarf2_free_objfile): Remove.
10734 (_initialize_dwarf2_read): Update.
10736 2019-05-08 Tom Tromey <tom@tromey.com>
10738 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10740 <unsupported_script_warning_printed,
10741 script_not_found_warning_printed>: Now bool.
10742 (auto_load_pspace_data): Change type.
10743 (~auto_load_pspace_info): Rename from
10744 auto_load_pspace_data_cleanup.
10745 (get_auto_load_pspace_data, init_loaded_scripts_info)
10746 (clear_section_scripts, maybe_print_unsupported_script_warning)
10747 (maybe_print_script_not_found_warning, _initialize_auto_load):
10750 2019-05-08 Tom Tromey <tom@tromey.com>
10752 * objfiles.c (objfile_pspace_info): Add destructor and
10754 (objfiles_pspace_data): Change type.
10755 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10756 (get_objfile_pspace_data): Update.
10757 (objfiles_bfd_data): Change type.
10758 (get_objfile_bfd_data): Update.
10759 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10761 2019-05-08 Tom Tromey <tom@tromey.com>
10763 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10765 (get_catch_syscall_inferior_data): Update.
10766 (catch_syscall_inferior_data_cleanup): Remove.
10767 (_initialize_break_catch_syscall): Update.
10769 2019-05-08 Tom Tromey <tom@tromey.com>
10771 * inflow.c (struct terminal_info): Add destructor and
10773 (inflow_inferior_data): Change type.
10774 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10775 (get_inflow_inferior_data, inflow_inferior_exit)
10776 (swap_terminal_info, _initialize_inflow): Update.
10778 2019-05-08 Tom Tromey <tom@tromey.com>
10780 * target-dcache.c (target_dcache_cleanup): Remove.
10781 (target_dcache_aspace_key): Change type.
10782 (target_dcache_init_p, target_dcache_invalidate)
10783 (target_dcache_get, target_dcache_get_or_init)
10784 (_initialize_target_dcache): Update.
10785 * dcache.h (struct dcache_deleter): New.
10787 2019-05-08 Tom Tromey <tom@tromey.com>
10789 * symtab.c (struct symbol_cache): Add destructor and
10791 (symbol_cache_key): Move. Change type.
10792 (make_symbol_cache, free_symbol_cache): Remove.
10793 (get_symbol_cache): Update.
10794 (symbol_cache_cleanup): Remove.
10795 (ALL_PSPACES, symbol_cache_flush)
10796 (maintenance_print_symbol_cache)
10797 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10800 2019-05-08 Tom Tromey <tom@tromey.com>
10802 * symtab.c (struct main_info): Add destructor and initializers.
10803 (main_progspace_key): Move. Change type.
10804 (get_main_info): Update.
10805 (main_info_cleanup): Remove.
10806 (_initialize_symtab): Update.
10808 2019-05-08 Tom Tromey <tom@tromey.com>
10810 * registry.h (DECLARE_REGISTRY): Define the _key class.
10812 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10814 * NEWS: Merge two 'New commands' sections.
10816 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10818 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10819 parameter and use Ada language definition instead.
10820 (ada_val_print_ptr): Remove unused language parameter.
10821 (ada_val_print_num): Remove language parameter and use Ada language
10822 definition instead.
10823 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10825 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10826 parameter and use Ada language definition instead.
10827 (ada_val_print_1): Update all ada_val_print_xxx calls.
10828 Remove language parameter.
10829 (ada_val_print): Update ada_val_print_1 call.
10831 2019-05-08 Tom Tromey <tromey@adacore.com>
10833 * remote.c (remote_hw_watchpoint_limit)
10834 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10837 2019-05-08 Tom Tromey <tromey@adacore.com>
10839 * maint.c (_initialize_maint_cmds): Move initialization code to
10841 (watchdog, show_watchdog): Move to remote.c.
10842 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10844 (_initialize_remote): Move initialization code from maint.c.
10845 * defs.h (watchdog): Don't declare.
10847 2019-05-08 Tom Tromey <tromey@adacore.com>
10849 * tui/tui-interp.c: Include main.h.
10850 * interps.c: Include main.h.
10851 * main.h (interpreter_p): Declare.
10852 * defs.h (interpreter_p): Don't declare.
10854 2019-05-08 Tom Tromey <tromey@adacore.com>
10856 * dwarf2loc.c: Include dwarf2read.h.
10857 * defs.h (read_unsigned_leb128): Don't declare.
10858 * dwarf2read.h (read_unsigned_leb128): Declare.
10860 2019-05-08 Tom Tromey <tromey@adacore.com>
10862 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10865 2019-05-08 Tom Tromey <tromey@adacore.com>
10867 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10868 when no wrap column is set.
10870 2019-05-08 Tom Tromey <tromey@adacore.com>
10872 * c-lang.c (c_get_string): Handle non-C-style arrays.
10874 2019-05-08 Tom Tromey <tromey@adacore.com>
10876 * typeprint.c (print_offset_data::update): Print the bit offset,
10877 not the number of bits remaining.
10879 2019-05-08 Tom Tromey <tromey@adacore.com>
10881 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10882 padding at end of comment.
10884 2019-05-08 Tom Tromey <tromey@adacore.com>
10886 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10887 Compare main types.
10889 2019-05-06 Tom Tromey <tom@tromey.com>
10891 * common/scoped_mmap.c: Include common-defs.h.
10892 * common/scoped_mmap.h: Don't include config.h.
10894 2019-05-04 Tom Tromey <tom@tromey.com>
10896 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10897 (struct aarch64_call_info): Add initializers.
10898 <si>: Now a std::vector.
10899 (pass_on_stack, aarch64_push_dummy_call): Update.
10901 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
10902 Tom Tromey <tom@tromey.com>
10904 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10905 (ppc_threads): Now a std::vector. Now static.
10906 (hwdebug_find_thread_points_by_tid)
10907 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10910 2019-05-04 Tom Tromey <tom@tromey.com>
10912 * arc-tdep.c (arc_tdesc_init): Return bool.
10914 2019-05-04 Tom Tromey <tom@tromey.com>
10916 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10917 Use gdb_assert_not_reached.
10919 2019-05-04 Tom Tromey <tom@tromey.com>
10921 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10924 2019-05-04 Tom Tromey <tom@tromey.com>
10926 * arc-tdep.c (arc_tdesc_init): Use bool.
10928 2019-05-04 Tom Tromey <tom@tromey.com>
10930 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10932 2019-05-04 Tom Tromey <tom@tromey.com>
10934 * cli/cli-cmds.c (valid_command_p): Return bool.
10936 2019-05-04 Tom Tromey <tom@tromey.com>
10938 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10939 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10941 2019-05-04 Raul Tambre <raul@tambre.ee>
10943 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10944 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10945 operator for comparison.
10947 2019-05-04 Tom Tromey <tom@tromey.com>
10949 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10950 (lookup_partial_symbol, print_partial_symbols)
10951 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10952 (psymbol_compare): Update.
10953 (add_psymbol_to_bcache): Clear the entire psymbol.
10954 (maintenance_check_psymtabs): Update.
10955 * psympriv.h (struct partial_symbol): Don't derive from
10956 general_symbol_info.
10957 <obj_section, unrelocated_address, address,
10958 set_unrelocated_address>: Update.
10959 <ginfo>: New member.
10960 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10961 (debug_names::write_psymbols): Update.
10963 2019-05-04 Tom de Vries <tdevries@suse.de>
10965 * contrib/cc-with-tweaks.sh: Support -n arg.
10967 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10969 * corelow.c (core_target::detach): Ensure frame cache and
10970 register caches are cleared.
10971 inferior.c (exit_inferior_1): Likewise.
10973 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10974 Tom Tromey <tom@tromey.com>
10976 * dictionary.c (collate_pending_symbols_by_language): Remove
10977 "struct" from foreach.
10978 * symtab.c (lookup_global_symbol_from_objfile)
10979 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10981 * ser-tcp.c (net_open): Remove "struct" from foreach.
10982 * objfiles.c (objfile_relocate, objfile_rebase)
10983 (objfile_has_symbols): Remove "struct" from foreach.
10984 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10986 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10988 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10989 "struct" from foreach.
10990 * ada-lang.c (create_excep_cond_exprs)
10991 (ada_exception_catchpoint_cond_string): Remove "struct" from
10994 2019-05-03 Tom Tromey <tromey@adacore.com>
10996 * ada-exp.y (convert_char_literal): Check suffix of each
10999 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11002 * ada-exp.y (yywrap): Don't define.
11003 * ada-lex.l (%option): Add noyywrap
11006 2019-05-03 Eli Zaretskii <eliz@gnu.org>
11008 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11009 _WIN32_WINNT to the XP level, unless already defined to a higher
11012 * unittests/parse-connection-spec-selftests.c:
11014 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11017 * symfile.c (find_separate_debug_file): Remove colon from the
11018 drive spec of DOS/Windows file names of the target, so that the
11019 file name produced from DEBUGDIR and the target's directory will
11020 be valid on DOS/Windows systems.
11022 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11024 * rust-lang.c (val_print_struct): Handle printing structures
11025 containing strings.
11027 2019-05-02 Tom Tromey <tromey@adacore.com>
11029 * valarith.c (_initialize_valarith): Remove.
11031 2019-05-01 Tom Tromey <tromey@adacore.com>
11033 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11036 2019-05-01 Tom Tromey <tromey@adacore.com>
11038 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11039 for big-endian copies.
11041 2019-04-30 Ali Tamur <tamur@google.com>
11042 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11043 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11044 (read_3_bytes): New function.
11046 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11048 * windows-nat.c (main_thread_id): Delete.
11049 (handle_output_debug_string): Replace main_thread_id by
11050 current_event.dwThreadId.
11051 (fake_create_process): Likewise.
11052 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11053 Do not set main_thread_id.
11054 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11055 current_event.dwThreadId.
11056 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11058 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11060 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11061 Use current_event.dwThreadId instead of main_thread_id.
11063 2019-04-30 Tom Tromey <tromey@adacore.com>
11065 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11066 (create_excep_cond_exprs): Iterate over program spaces.
11067 (ada_exception_catchpoint_cond_string): Examine all minimal
11068 symbols for exception types.
11070 2019-04-30 Tom Tromey <tromey@adacore.com>
11073 * dwarf2read.c (process_structure_scope): Handle case where type
11074 has template parameters but no symbol was created.
11076 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11077 Chris January <chris.january@arm.com>
11079 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11081 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11083 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11085 * f-typeprint.c (f_print_type): Update rules for printing
11087 (f_type_print_varspec_suffix): Likewise.
11089 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11090 Chris January <chris.january@arm.com>
11092 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11093 function arguments.
11095 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11097 * f-lang.c (build_fortran_types): Change name of void type to
11099 * f-typeprint.c (f_type_print_base): Print the name of the void
11100 type, rather than a fixed string.
11101 * f-valprint.c (f_decorations): Use lower case void string.
11103 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11104 Chris January <chris.january@arm.com>
11106 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11109 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11110 Chris January <chris.january@arm.com>
11111 David Lecomber <david.lecomber@arm.com>
11113 * f-exp.y (BINOP_INTRINSIC): New token.
11114 (exp): New parser rule handling BINOP_INTRINSIC.
11115 (f77_keywords): Add new builtin procedures.
11116 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11117 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11118 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11119 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11120 (print_unop_subexp_f): New function.
11121 (print_binop_subexp_f): New function.
11122 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11123 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11124 (dump_subexp_body_f): Likewise.
11125 (operator_check_f): Likewise.
11126 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11127 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11129 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11131 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11133 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11134 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11135 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11136 (operator_length_f): New fuction.
11137 (print_subexp_f): New function.
11138 (op_name_f): New function.
11139 (dump_subexp_body_f): New function.
11140 (operator_check_f): New function.
11141 (exp_descriptor_f): Replace standard expression handling functions
11142 with new functions.
11143 * gdb/fortran-operator.def: New file.
11144 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11145 * gdb/std-operator.def: Remove UNOP_KIND.
11147 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11149 * std-operator.def: Remove unbalanced, stray double quote
11152 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11153 Chris January <chris.january@arm.com>
11154 Daniel Everett <daniel.everett@arm.com>
11155 Nick Forrington <nick.forrington@arm.com>
11156 Richard Bunt <richard.bunt@arm.com>
11158 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11159 of depth when printing anonymous structs or unions.
11160 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11161 Don't print either the top-level value, or the children if the
11162 max-depth is exceeded.
11163 (ppscm_print_children): When printing the key of a map, allow one
11164 extra level of depth.
11165 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11166 print either the top-level value, or the children if the max-depth
11168 (print_children): When printing the key of a map, allow one extra
11170 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11171 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11172 (user_print_options): Initialise max_depth field.
11173 (val_print_scalar_or_string_type_p): New function.
11174 (val_print): Check to see if the max depth has been reached.
11175 (val_print_check_max_depth): Define new function.
11176 (show_print_max_depth): New function.
11177 (_initialize_valprint): Add 'print max-depth' option.
11178 * valprint.h (struct value_print_options) <max_depth>: New field.
11179 (val_print_check_max_depth): Declare new function.
11180 * NEWS: Document new feature.
11182 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11184 * ada-lang.c (ada_language_defn): Initialise new field.
11185 * c-lang.c (c_is_string_type_p): New function.
11186 (c_language_defn): Initialise new field.
11187 (cplus_language_defn): Initialise new field.
11188 (asm_language_defn): Initialise new field.
11189 (minimal_language_defn): Initialise new field.
11190 * c-lang.h (c_is_string_type_p): Declare new function.
11191 * d-lang.c (d_language_defn): Initialise new field.
11192 * f-lang.c (f_is_string_type_p): New function.
11193 (f_language_defn): Initialise new field.
11194 * go-lang.c (go_is_string_type_p): New function.
11195 (go_language_defn): Initialise new field.
11196 * language.c (default_is_string_type_p): New function.
11197 (unknown_language_defn): Initialise new field.
11198 (auto_language_defn): Initialise new field.
11199 * language.h (struct language_defn) <la_is_string_type_p>: New
11201 (default_is_string_type_p): Declare new function.
11202 * m2-lang.c (m2_language_defn): Initialise new field.
11203 * objc-lang.c (objc_language_defn): Initialise new field.
11204 * opencl-lang.c (opencl_language_defn): Initialise new field.
11205 * p-lang.c (pascal_is_string_type_p): New function.
11206 (pascal_language_defn): Initialise new field.
11207 * rust-lang.c (rust_is_string_type_p): New function.
11208 (rust_language_defn): Initialise new field.
11210 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11212 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11214 * ada-lang.c (ada_language_defn): Initialise new field.
11215 * c-lang.c (c_language_defn): Likewise.
11216 (cplus_language_defn): Likewise.
11217 (asm_language_defn): Likewise.
11218 (minimal_language_defn): Likewise.
11219 * d-lang.c (d_language_defn): Likewise.
11220 * f-lang.c (f_language_defn): Likewise.
11221 * go-lang.c (go_language_defn): Likewise.
11222 * language.c (unknown_language_defn): Likewise.
11223 (auto_language_defn): Likewise.
11224 * m2-lang.c (m2_language_defn): Likewise.
11225 * objc-lang.c (objc_language_defn): Likewise.
11226 * opencl-lang.c (opencl_language_defn): Likewise.
11227 * p-lang.c (pascal_language_defn): Likewise.
11228 * rust-lang.c (rust_language_defn): Likewise.
11230 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11232 * ada-lang.c (ada_is_character_type): Change return type to bool.
11233 (ada_is_string_type): Likewise.
11234 * ada-lang.h (ada_is_character_type): Update declaration
11235 (ada_is_string_type): Likewise.
11237 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11239 Support style in 'frame|thread apply'
11241 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11242 * record.c (record_start, record_stop): Update callers of
11243 execute_command_to_string with false.
11244 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11245 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11247 (class string_file): New constructor with term_out parameter.
11248 Override methods term_out and can_emit_style_escape. New member
11250 (class stdio_file): Override can_emit_style_escape.
11251 (class tee_file): Override term_out and can_emit_style_escape.
11252 * utils.h (can_emit_style_escape): Remove.
11253 * utils.c (can_emit_style_escape): Likewise.
11254 Update all callers of can_emit_style_escape (SOMESTREAM) to
11255 SOMESTREAM->can_emit_style_escape.
11256 * source-cache.c (source_cache::get_source_lines): Likewise.
11257 * stack.c (frame_apply_command_count): Call execute_command_to_string
11258 passing the term_out characteristic of the current gdb_stdout.
11259 * thread.c (thr_try_catch_cmd): Likewise.
11260 * top.c (execute_command_to_string): pass term_out parameter
11261 to construct the string_file for the command output.
11262 * ui-file.c (term_cli_styling): New function (most code moved
11263 from utils.c can_emit_style_escape).
11264 (string_file::string_file, string_file::can_emit_style_escape,
11265 stdio_file::can_emit_style_escape, tee_file::term_out,
11266 tee_file::can_emit_style_escape): New functions.
11268 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11270 * NEWS: Mention the new set|show may-call-functions.
11271 * infcall.c (may_call_functions_p): New variable.
11272 (show_may_call_functions_p): New function.
11273 (call_function_by_hand_dummy): Throws an error if not
11274 may-call-functions.
11275 (_initialize_infcall): Call add_setshow_boolean_cmd for
11276 may-call-functions.
11278 2019-04-25 Keith Seitz <keiths@redhat.com>
11281 * cp-support.c (inspect_type): Don't attempt substitutions
11282 of symbol with the same name.
11284 2019-04-25 Tom Tromey <tromey@adacore.com>
11287 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11290 2019-04-25 Tom Tromey <tromey@adacore.com>
11292 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11294 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11295 (gdb_xml_parser::parse): Use std::move.
11296 * python/python-internal.h (gdbpy_convert_exception): Take a const
11298 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11300 * python/py-utils.c (gdbpy_convert_exception): Take a const
11302 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11304 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11306 * mi/mi-main.c (mi_print_exception): Take a const reference.
11307 * main.c (handle_command_errors): Take a const reference.
11308 * linespec.c (parse_linespec): Use std::move.
11309 * infcall.c (run_inferior_call): Use std::move.
11310 (call_function_by_hand_dummy): Use std::move.
11311 * exec.c (try_open_exec_file): Use std::move.
11312 * exceptions.h (exception_print, exception_fprintf)
11313 (exception_print_same): Update.
11314 * exceptions.c (print_exception, exception_print)
11315 (exception_fprintf, exception_print_same): Change parameters to
11317 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11318 * common/new-op.c: Use std::move.
11319 * common/common-exceptions.h (struct gdb_exception): Add move
11321 (struct gdb_exception_error, struct gdb_exception_quit, struct
11322 gdb_quit_bad_alloc): Change constructor to move constructor.
11323 (throw_exception): Change parameter to rvalue reference.
11324 * common/common-exceptions.c (throw_exception): Take rvalue
11326 * cli/cli-interp.c (safe_execute_command): Use std::move.
11327 * breakpoint.c (insert_bp_location, location_to_sals): Use
11330 2019-04-25 Tom Tromey <tromey@adacore.com>
11332 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11333 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11334 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11335 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11336 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11337 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11338 guile/scm-value.c: Use unpack.
11339 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11340 gdbscm_gdb_exception.
11341 (gdbscm_throw_gdb_exception): Likewise.
11342 (struct gdbscm_gdb_exception): New.
11343 (unpack): New function.
11344 (gdbscm_wrap): Use unpack.
11346 2019-04-25 Tom Tromey <tromey@adacore.com>
11348 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11349 (gdb_rl_callback_handler): Use std::move.
11350 * common/common-exceptions.h (struct gdb_exception): Add move
11351 assignment operator.
11352 (throw_exception_sjlj): Change "exception" to const reference.
11353 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11354 (throw_exception_sjlj): Change "exception" to const reference.
11356 2019-04-25 Tom Tromey <tromey@adacore.com>
11358 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11359 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11360 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11362 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11364 * mi/mi-interp.c (mi_interp::exec): Update.
11365 * linespec.c (parse_linespec): Update.
11366 * infcall.c (run_inferior_call): Update.
11367 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11368 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11369 (gdbscm_lookup_global_symbol): Update.
11370 * guile/scm-param.c (gdbscm_parameter_value): Update.
11371 * guile/scm-frame.c (gdbscm_frame_read_register)
11372 (gdbscm_frame_read_var): Update.
11373 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11374 * exec.c (try_open_exec_file): Update.
11375 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11376 (gdb_rl_callback_handler): Update.
11377 * common/common-exceptions.h (exception_none): Don't declare.
11378 * common/common-exceptions.c (exception_none): Don't define.
11379 (struct catcher) <exception>: Update.
11380 * cli/cli-interp.c (safe_execute_command): Update.
11381 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11383 2019-04-25 Ali Tamur <tamur@google.com>
11385 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11386 (read_attribute_value): Likewise.
11387 (dwarf2_read_addr_index): Update comment.
11388 (read_str_index): Add DW_FORM_strx.
11389 (dwarf2_string_attr): Likewise.
11390 (dwarf2_const_value_attr): Likewise.
11391 (dump_die_shallow): Likewise.
11392 (dwarf2_fetch_constant_bytes): Likewise.
11393 (skip_form_bytes): Likewise.
11394 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11396 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11400 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11401 OFFSET. Verify if current mapping contains an ELF header.
11402 (linux_find_memory_regions_full): Adjust call to
11405 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11406 Kang Li <kanglictf@gmail.com>
11410 * dwarf2-frame.c (read_initial_length): Be consistent about using
11411 unsigned representation of length.
11412 (decode_frame_entry_1): Likewise. Check for wraparound of
11413 end pointer as well as buffer overflow.
11415 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11417 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11420 2019-04-24 Tom Tromey <tromey@adacore.com>
11422 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11424 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11426 * s12z-tdep.c (s12z_unwind_pc): Delete.
11427 (s12z_unwind_sp): Delete.
11428 (s12z_gdbarch_init): Don't register deleted functions with
11431 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11433 * rl78-tdep.c (rl78_unwind_sp): Delete.
11434 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11436 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11438 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11439 (xstormy16_unwind_pc): Delete.
11440 (xstormy16_dummy_id): Delete.
11441 (xstormy16_gdbarch_init): Don't register deleted functions with
11444 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11446 * vax-tdep.c (vax_unwind_pc): Delete.
11447 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11449 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11451 * v850-tdep.c (v850_unwind_sp): Delete.
11452 (v850_unwind_pc): Delete.
11453 (v850_dummy_id): Delete.
11454 (v850_gdbarch_init): Don't register deleted functions with
11457 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11459 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11460 (tilegx_unwind_pc): Delete.
11461 (tilegx_unwind_dummy_id): Delete.
11462 (tilegx_gdbarch_init): Don't register deleted functions with
11465 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11467 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11468 (tic6x_dummy_id): Delete.
11469 (tic6x_gdbarch_init): Don't register deleted functions with
11472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11474 * sparc-tdep.c (sparc_unwind_pc): Delete.
11475 (sparc32_gdbarch_init): Don't register deleted function with
11478 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11480 * sh-tdep.c (sh_unwind_sp): Delete.
11481 (sh_unwind_pc): Delete.
11482 (sh_dummy_id): Delete.
11483 (sh_gdbarch_init): Don't register deleted functions with
11486 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11488 * score-tdep.c (score_unwind_sp): Delete.
11489 (score_unwind_pc): Delete.
11490 (score_dummy_id): Delete.
11491 (score_gdbarch_init): Don't register deleted functions with
11494 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11496 * rx-tdep.c (rx_unwind_pc): Delete.
11497 (rx_unwind_sp): Delete.
11498 (rx_dummy_id): Delete.
11499 (rx_gdbarch_init): Don't register deleted functions with
11500 gdbarch. Update comment.
11502 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11504 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11505 (rs6000_dummy_id): Delete.
11506 (rs6000_gdbarch_init): Don't register deleted functions with
11509 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11511 * or1k-tdep.c (or1k_dummy_id): Delete.
11512 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11514 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11516 * nios2-tdep.c (nios2_dummy_id): Delete.
11517 (nios2_unwind_sp): Delete.
11518 (nios2_gdbarch_init): Don't register deleted functions with
11521 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11523 * nds32-tdep.c (nds32_dummy_id): Delete.
11524 (nds32_unwind_pc): Delete.
11525 (nds32_unwind_sp): Delete.
11526 (nds32_gdbarch_init): Don't register deleted functions with
11529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11531 * msp430-tdep.c (msp430_unwind_pc): Delete.
11532 (msp430_unwind_sp): Delete.
11533 (msp430_dummy_id): Delete.
11534 (msp430_gdbarch_init): Don't register deleted functions with
11537 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11539 * moxie-tdep.c (moxie_unwind_sp): Delete.
11540 (moxie_unwind_pc): Delete.
11541 (moxie_dummy_id): Delete.
11542 (moxie_gdbarch_init): Don't register deleted functions with
11545 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11547 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11548 (mn10300_unwind_pc): Delete.
11549 (mn10300_unwind_sp): Delete.
11550 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11552 (mn10300_frame_unwind_init): Don't register deleted functions with
11555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11557 * mep-tdep.c (mep_unwind_pc): Delete.
11558 (mep_unwind_sp): Delete.
11559 (mep_dummy_id): Delete.
11560 (mep_gdbarch_init): Don't register deleted functions with
11563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11565 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11566 (m68hc11_unwind_sp): Delete.
11567 (m68hc11_gdbarch_init): Don't register deleted functions with
11570 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11572 * m32r-tdep.c (m32r_unwind_sp): Delete.
11573 (m32r_unwind_pc): Delete.
11574 (m32r_dummy_id): Delete.
11575 (m32r_gdbarch_init): Don't register deleted functions with
11578 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11580 * m32c-tdep.c (m32c_unwind_pc): Delete.
11581 (m32c_unwind_sp): Delete.
11582 (m32c_dummy_id): Delete.
11583 (m32c_gdbarch_init): Don't register deleted functions with
11586 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11588 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11589 (lm32_unwind_pc): Delete.
11590 (lm32_dummy_id): Delete.
11591 (lm32_gdbarch_init): Don't register deleted functions with
11594 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11596 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11597 (iq2000_unwind_pc): Delete.
11598 (iq2000_dummy_id): Delete.
11599 (iq2000_gdbarch_init): Don't register deleted functions with
11602 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11604 * nds32-tdep.c (nds32_type_align): Delete.
11605 (nds32_push_dummy_call): Use type_align instead.
11607 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11609 * arm-tdep.c (arm_type_align): Only handle vector override case.
11610 (arm_push_dummy_call): Use type_align.
11611 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11613 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11615 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11617 (pass_on_stack): Use type_align.
11618 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11621 2019-04-23 Tom Tromey <tromey@adacore.com>
11623 * dwarf2read.c (line_header::file_name_at): Remove unused
11626 2019-04-23 Tom de Vries <tdevries@suse.de>
11629 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11633 2019-03-27 Ali Tamur <tamur@google.com>
11635 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11636 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11637 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11638 (dwarf_expr_context::get_addr_index): Likewise
11639 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11640 (symbol_needs_eval_context::get_addr_index): Likewise
11641 (disassemble_dwarf_expression): Add DW_OP_addrx
11642 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11643 (read_cutu_die_from_dwo): Update comment
11644 (skip_one_die): Add DW_FORM_addrx
11645 (read_attribute_value): Likewise
11646 (var_decode_location): Add DW_OP_addrx
11647 (dwarf2_const_value_attr): Add DW_FORM_addrx
11648 (dump_die_shallow): Likewise
11649 (dwarf2_fetch_constant_bytes): Likewise
11650 (decode_locdesc): Add DW_OP_addrx
11651 (skip_form_bytes): Add DW_FORM_addrx
11653 2019-04-22 Ali Tamur <tamur@google.com>
11655 * MAINTAINERS (Write After Approval): Add self.
11657 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11659 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11660 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11661 (open_symbol_file_object): Likewise.
11662 (svr4_default_sos): Add info parameter.
11663 (svr4_read_so_list): Likewise.
11664 (svr4_current_sos_direct): Adjust functions calls to pass down
11666 (svr4_current_sos_1): Add info parameter.
11667 (svr4_current_sos): Call get_svr4_info, pass info down to
11668 svr4_current_sos_1.
11669 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11671 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11673 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11675 (probes_table_remove_objfile_probes): Likewise.
11676 (register_solib_event_probe): Add info parameter.
11677 (solist_update_incremental): Pass info parameter down to
11679 (disable_probes_interface): Add info parameter.
11680 (svr4_handle_solib_event): Pass current_program_space to
11681 get_svr4_info. Adjust disable_probes_interface cleanup.
11682 (svr4_create_probe_breakpoints): Add info parameter, pass it
11683 down to register_solib_event_probe.
11684 (svr4_create_solib_event_breakpoints): Add info parameter,
11685 pass it down to svr4_create_probe_breakpoints.
11686 (enable_break): Pass info down to
11687 svr4_create_solib_event_breakpoints.
11688 (svr4_solib_create_inferior_hook): Pass current_program_space to
11690 (svr4_clear_solib): Likewise.
11692 2019-04-22 Pedro Alves <palves@redhat.com>
11694 * solib-svr4.c (svr4_free_objfile_observer): New.
11695 (probe_and_action::objfile): New field.
11696 (probes_table_htab_remove_objfile_probes)
11697 (probes_table_remove_objfile_probes): New functions.
11698 (register_solib_event_probe): Add 'objfile' parameter. Store it
11699 in the new probe_and_action. Don't store the probe in 'lookup'.
11700 (svr4_create_probe_breakpoints): Pass objfile to
11701 register_solib_event_probe.
11702 (_initialize_svr4_solib): Register a free_objfile observer.
11704 2019-04-19 Tom Tromey <tom@tromey.com>
11706 * common/queue.h: Remove.
11708 2019-04-19 Tom Tromey <tom@tromey.com>
11710 * event-loop.c: Don't include "common/queue.h".
11712 2019-04-19 Tom Tromey <tom@tromey.com>
11714 * remote.c (remote_target): Use delete.
11715 * remote-notif.h: Include <list>, not "common/queue.h".
11716 (notif_client_p): Remove typedef.
11717 (remote_notif_state): Add constructor, destructor, initializer.
11718 <notif_queue>: Now a std::list.
11719 (remote_notif_state_xfree): Don't declare.
11720 * remote-notif.c (remote_notif_process, handle_notification)
11721 (remote_notif_state_allocate): Update.
11722 (~remote_notif_state): Rename from remote_notif_state_xfree.
11724 2019-04-19 Tom Tromey <tom@tromey.com>
11726 * symfile.c (reread_symbols): Update.
11727 * objfiles.c (objfile_register_static_link)
11728 (objfile_lookup_static_link): Update
11729 (~objfile) Don't delete static_links.
11730 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11732 2019-04-19 Tom Tromey <tom@tromey.com>
11734 * type-stack.h (struct type_stack) <insert>: Constify string.
11735 * type-stack.c (type_stack::insert): Constify string.
11736 * gdbtypes.h (lookup_template_type): Update.
11737 (address_space_name_to_int): Update.
11738 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11740 (lookup_template_type): Make name const.
11741 * c-exp.y: Update rules.
11742 (lex_one_token, classify_name, classify_inner_name)
11743 (c_print_token): Update.
11744 * p-exp.y: Update rules.
11746 * f-exp.y: Update rules.
11748 * d-exp.y: Update rules.
11749 (lex_one_token, classify_name, classify_inner_name): Update.
11750 * parse.c (write_dollar_variable, copy_name): Return std::string.
11751 * parser-defs.h (copy_name): Change return type.
11752 * m2-exp.y: Update rules.
11754 * go-exp.y (lex_one_token): Update.
11756 (classify_unsafe_function, classify_packaged_name)
11757 (classify_name, yylex): Update.
11759 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11761 * configure.ac: add --enable-source-highlight switch.
11762 * configure: Regenerate.
11763 * top.c (print_gdb_version): plumb --enable-source-highlight
11764 status to "show configuration".
11766 2019-04-19 Tom Tromey <tromey@adacore.com>
11768 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11770 (empty_record, ada_template_to_fixed_record_type_1)
11771 (template_to_static_fixed_type)
11772 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11773 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11774 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11777 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11780 * source.c (print_source_lines_base): Advance "iter" when a
11781 control character is seen.
11783 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11785 * inferior.h (struct infcall_suspend_state_deleter):
11786 Catch exception in destructor to avoid crash.
11788 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11790 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11791 close to the add_com "shell".
11793 2019-04-18 Tom Tromey <tromey@adacore.com>
11795 * process-stratum-target.h (class process_stratum_target)
11796 <stratum>: Add "final".
11798 2019-04-17 Tom Tromey <tromey@adacore.com>
11800 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11801 against nullptr before use.
11803 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11805 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11807 2019-04-17 Jim Wilson <jimw@sifive.com>
11808 Andrew Burgess <andrew.burgess@embecosm.com>
11810 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11811 code read might fail, assume 4-byte breakpoint in that case.
11813 2019-04-15 Leszek Swirski <leszeks@google.com>
11815 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11816 rather than a hand-rolled POD check when checking for forced MEMORY
11819 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11821 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11822 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11824 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11825 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11826 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11829 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11831 * aarch64-linux-nat.c
11832 (aarch64_linux_nat_target::thread_architecture): Add override.
11833 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11836 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11838 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11840 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11842 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11843 target types of size 96-bits, add some additional comments, and
11844 check that the builtin type we found was the correct size.
11846 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11848 * utils.c (prompt_for_continue): Don't restore the styling at the
11849 end, as applied_style has the wrong value. This fixes styling in
11850 long lists of file names that are interrupted by the "Continue?"
11853 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11855 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11856 * c-lang.c (c_language_defn): Likewise.
11857 (cplus_language_defn): Likewise.
11858 (asm_language_defn): Likewise.
11859 (minimal_language_defn): Likewise.
11860 * d-lang.c (d_language_defn): Likewise.
11861 * f-lang.c (f_language_defn): Likewise.
11862 * go-lang.c (go_language_defn): Likewise.
11863 * language.c (unknown_language_defn): Likewise.
11864 (auto_language_defn): Likewise.
11865 * language.h (struct language_defn): Remove la_magic field.
11866 (LANG_MAGIC): Delete.
11867 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11868 * objc-lang.c (objc_language_defn): Likewise.
11869 * opencl-lang.c (opencl_language_defn): Likewise.
11870 * p-lang.c (pascal_language_defn): Likewise.
11871 * rust-lang.c (rust_language_defn): Likewise.
11873 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11875 * riscv-tdep.c (riscv_type_align): New function.
11876 (riscv_type_alignment): Delete.
11877 (riscv_arg_location): Use 'type_align'.
11878 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11880 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11882 * gdbtypes.c (type_align): A struct with no non-static fields also
11883 has alignment of 1.
11885 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11887 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11889 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11891 (riscv_struct_info::analyse): New implementation using new
11892 analyse_inner member function.
11893 (riscv_struct_info::field_offset): New member function.
11894 (riscv_struct_info::m_offsets): New member variable.
11895 (riscv_struct_info::analyse_inner): New private member function,
11896 takes the old implementation of riscv_struct_info::analyse but
11897 extended to track field offsets.
11898 (riscv_call_arg_struct): Update the struct folding special cases
11899 to handle cases where empty C++ structs, which are non-zero
11901 (riscv_arg_location): Initialise the length of each location, a
11902 non-zero length now indicates the location is in use.
11903 (riscv_push_dummy_call): Allow for the first location having a
11904 non-zero offset when setting up arguments.
11905 (riscv_return_value): Likewise, but for return values.
11907 2019-04-11 Tom Tromey <tromey@adacore.com>
11909 * utils.c (internal_vproblem): Make "msg" const.
11911 2019-04-11 Alan Hayward <alan.hayward@arm.com>
11913 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11914 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11915 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11916 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11918 2019-04-10 Kevin Buettner <kevinb@redhat.com>
11920 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11922 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11923 of amd64_collect_native_gregset.
11924 (amd64_linux_nat_target::store_registers): Likewise.
11926 2019-04-10 Tom Tromey <tom@tromey.com>
11928 * symtab.c (lookup_global_symbol_from_objfile)
11929 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11930 * objfiles.h (class separate_debug_iterator): New.
11931 (class separate_debug_range): New.
11932 (struct objfile) <separate_debug_objfiles>: New method.
11933 (objfile_separate_debug_iterate): Don't declare.
11934 * objfiles.c (separate_debug_iterator::operator++): Rename from
11935 objfile_separate_debug_iterate.
11936 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11938 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11941 2019-04-10 Tom Tromey <tom@tromey.com>
11943 * symfile.c (reread_symbols): Remove old comment.
11944 * objfiles.c (free_all_objfiles): Fix a typo.
11946 2019-04-10 Tom Tromey <tom@tromey.com>
11948 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11949 * minsyms.c (lookup_minimal_symbol): Use foreach.
11950 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11951 (lookup_minimal_symbol_solib_trampoline): Likewise.
11952 * symfile.c (reread_symbols): Use foreach.
11954 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
11955 Tom Tromey <tromey@adacore.com>
11958 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11959 (rust_lex_int_test): Change "value" to be LONGEST.
11960 (rust_lex_tests): Add test for long integer literal.
11962 2019-04-09 Tom Tromey <tromey@adacore.com>
11964 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11966 (extended_remote_target::attach): Update.
11967 (remote_target::remote_notice_new_inferior): Update.
11968 (remote_target::add_current_inferior_and_thread): Update.
11969 * inferior.c (exit_inferior_1): Use "false".
11970 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11972 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
11974 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
11975 the "start" command.
11977 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11979 * python/py-inferior.c (infpy_thread_from_thread_handle):
11980 Adjust comments to reflect renaming of thread_from_thread_handle
11981 to thread_from_handle. Adjust keywords. Fix type error message.
11982 (inferior_object_methods): Add thread_from_handle. Retain
11983 thread_from_thread_handle, but mark it as deprecated.
11985 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11987 * gdbthread.h (find_thread_by_handle): Revise declaration.
11988 * thread.c (find_thread_by_handle): Likewise. Adjust
11989 implementation too.
11990 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11991 support for buffer objects as handles.
11993 2019-04-08 Kevin Buettner <kevinb@redhat.com>
11995 * python/py-infthread.c (thpy_thread_handle): New function.
11996 (thread_object_methods): Register thpy_thread_handle.
11998 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12000 * gdbthread.h (thread_to_thread_handle): Declare.
12001 * thread.c (gdbtypes.h): Include.
12002 (thread_to_thread_handle): New function.
12004 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12005 (target_thread_info_to_thread_handle): Declare.
12006 * target.c (target_thread_info_to_thread_handle): New function.
12007 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12008 * target-delegates.c: Regenerate.
12010 * linux-thread-db.c (class thread_db_target): Add method
12011 thread_info_to_thread_handle.
12012 (thread_db_target::thread_info_to_thread_handle): Define.
12013 * remote.c (class remote_target): Add new method
12014 thread_info_to_thread_handle.
12015 (remote_target::thread_info_to_thread_handle): Define.
12017 2019-04-08 Pedro Alves <palves@redhat.com>
12019 * common/common-exceptions.c (throw_exception): Don't create
12020 named object to throw; throw directly.
12021 (throw_it): Likewise. Don't initialize gdb_exception::message
12022 here, with new; pass FMT and AP to the ctor instead.
12023 * common/common-exceptions.h: Include <string>.
12024 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12025 const char *, va_list)): New ctor. Use std::make_shared.
12026 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12028 (gdb_exception_error::gdb_exception_error(enum errors, const char
12030 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12032 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12034 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12035 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12038 2019-04-08 Tom Tromey <tom@tromey.com>
12040 * valops.c (value_rtti_indirect_type): Replace throw_exception
12042 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12044 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12046 * target.c (target_translate_tls_address): Replace throw_exception
12048 * stack.c (frame_apply_command_count): Replace throw_exception
12050 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12052 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12054 * rs6000-tdep.c (rs6000_frame_cache)
12055 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12056 * remote.c: Replace throw_exception with throw.
12057 * record-full.c (record_full_message, record_full_wait_1)
12058 (record_full_restore): Replace throw_exception with throw.
12060 (get_thread_current_frame_id, record_btrace_start_replaying)
12061 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12062 (cmd_record_btrace_start): Replace throw_exception with throw.
12063 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12065 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12066 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12068 (find_linespec_symbols): Replace throw_exception with throw.
12069 * infrun.c (displaced_step_prepare, resume): Replace
12070 throw_exception with throw.
12071 * infcmd.c (post_create_inferior): Replace throw_exception with
12073 * inf-loop.c (inferior_event_handler): Replace throw_exception
12075 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12076 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12077 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12078 (get_prev_frame_always, get_frame_pc_if_available)
12079 (get_frame_address_in_block_if_available, get_frame_language):
12080 Replace throw_exception with throw.
12081 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12082 throw_exception with throw.
12083 * eval.c (fetch_subexp_value, evaluate_var_value)
12084 (evaluate_funcall, evaluate_subexp_standard): Replace
12085 throw_exception with throw.
12086 * dwarf2loc.c (call_site_find_chain)
12087 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12088 Replace throw_exception with throw.
12089 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12091 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12093 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12094 * completer.c (complete_line_internal): Replace throw_exception
12096 * compile/compile-object-run.c (compile_object_run): Replace
12097 throw_exception with throw.
12098 * cli/cli-script.c (process_next_line): Replace throw_exception
12100 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12101 (btrace_enable, btrace_maint_update_pt_packets): Replace
12102 throw_exception with throw.
12103 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12104 throw_exception with throw.
12105 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12106 throw_exception with throw.
12107 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12108 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12109 * aarch64-tdep.c (aarch64_make_prologue_cache)
12110 (aarch64_make_stub_cache): Replace throw_exception with throw.
12112 2019-04-08 Tom Tromey <tom@tromey.com>
12114 * common/common-exceptions.c (throw_exception): Rename from
12115 throw_exception_cxx. Remove old copy. Make argument const.
12116 (throw_it): Create and throw exception objects directly.
12117 * common/common-exceptions.h (throw_exception): Make argument
12119 (struct gdb_exception_error): Add constructor.
12120 (struct gdb_exception_quit): Add constructor.
12122 2019-04-08 Tom Tromey <tom@tromey.com>
12124 * common/common-exceptions.h (exception_rethrow): Don't declare.
12125 (TRY_SJLJ): Update comment.
12126 (TRY, CATCH, END_CATCH): Remove.
12127 * common/common-exceptions.c (exception_rethrow): Remove.
12129 2019-04-08 Tom Tromey <tom@tromey.com>
12131 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12133 (gdb_exception_error): Rename from
12134 gdb_exception_RETURN_MASK_ERROR.
12135 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12136 (gdb_quit_bad_alloc): Update.
12137 * aarch64-tdep.c: Update.
12138 * ada-lang.c: Update.
12139 * ada-typeprint.c: Update.
12140 * ada-valprint.c: Update.
12141 * amd64-tdep.c: Update.
12142 * arch-utils.c: Update.
12143 * break-catch-throw.c: Update.
12144 * breakpoint.c: Update.
12145 * btrace.c: Update.
12146 * c-varobj.c: Update.
12147 * cli/cli-cmds.c: Update.
12148 * cli/cli-interp.c: Update.
12149 * cli/cli-script.c: Update.
12150 * common/common-exceptions.c: Update.
12151 * common/new-op.c: Update.
12152 * common/selftest.c: Update.
12153 * compile/compile-c-symbols.c: Update.
12154 * compile/compile-cplus-symbols.c: Update.
12155 * compile/compile-object-load.c: Update.
12156 * compile/compile-object-run.c: Update.
12157 * completer.c: Update.
12158 * corelow.c: Update.
12159 * cp-abi.c: Update.
12160 * cp-support.c: Update.
12161 * cp-valprint.c: Update.
12162 * darwin-nat.c: Update.
12163 * disasm-selftests.c: Update.
12164 * dtrace-probe.c: Update.
12165 * dwarf-index-cache.c: Update.
12166 * dwarf-index-write.c: Update.
12167 * dwarf2-frame-tailcall.c: Update.
12168 * dwarf2-frame.c: Update.
12169 * dwarf2loc.c: Update.
12170 * dwarf2read.c: Update.
12172 * event-loop.c: Update.
12173 * event-top.c: Update.
12175 * f-valprint.c: Update.
12176 * fbsd-tdep.c: Update.
12177 * frame-unwind.c: Update.
12179 * gdbtypes.c: Update.
12180 * gnu-v3-abi.c: Update.
12181 * guile/guile-internal.h: Update.
12182 * guile/scm-block.c: Update.
12183 * guile/scm-breakpoint.c: Update.
12184 * guile/scm-cmd.c: Update.
12185 * guile/scm-disasm.c: Update.
12186 * guile/scm-frame.c: Update.
12187 * guile/scm-lazy-string.c: Update.
12188 * guile/scm-math.c: Update.
12189 * guile/scm-param.c: Update.
12190 * guile/scm-ports.c: Update.
12191 * guile/scm-pretty-print.c: Update.
12192 * guile/scm-symbol.c: Update.
12193 * guile/scm-symtab.c: Update.
12194 * guile/scm-type.c: Update.
12195 * guile/scm-value.c: Update.
12196 * i386-linux-tdep.c: Update.
12197 * i386-tdep.c: Update.
12198 * inf-loop.c: Update.
12199 * infcall.c: Update.
12200 * infcmd.c: Update.
12201 * infrun.c: Update.
12203 * language.c: Update.
12204 * linespec.c: Update.
12205 * linux-fork.c: Update.
12206 * linux-nat.c: Update.
12207 * linux-tdep.c: Update.
12208 * linux-thread-db.c: Update.
12210 * mi/mi-cmd-break.c: Update.
12211 * mi/mi-cmd-stack.c: Update.
12212 * mi/mi-interp.c: Update.
12213 * mi/mi-main.c: Update.
12214 * objc-lang.c: Update.
12215 * p-valprint.c: Update.
12217 * ppc-linux-tdep.c: Update.
12218 * printcmd.c: Update.
12219 * python/py-arch.c: Update.
12220 * python/py-breakpoint.c: Update.
12221 * python/py-cmd.c: Update.
12222 * python/py-finishbreakpoint.c: Update.
12223 * python/py-frame.c: Update.
12224 * python/py-framefilter.c: Update.
12225 * python/py-gdb-readline.c: Update.
12226 * python/py-inferior.c: Update.
12227 * python/py-infthread.c: Update.
12228 * python/py-lazy-string.c: Update.
12229 * python/py-linetable.c: Update.
12230 * python/py-objfile.c: Update.
12231 * python/py-param.c: Update.
12232 * python/py-prettyprint.c: Update.
12233 * python/py-progspace.c: Update.
12234 * python/py-record-btrace.c: Update.
12235 * python/py-record.c: Update.
12236 * python/py-symbol.c: Update.
12237 * python/py-type.c: Update.
12238 * python/py-unwind.c: Update.
12239 * python/py-utils.c: Update.
12240 * python/py-value.c: Update.
12241 * python/python.c: Update.
12242 * record-btrace.c: Update.
12243 * record-full.c: Update.
12244 * remote-fileio.c: Update.
12245 * remote.c: Update.
12246 * riscv-tdep.c: Update.
12247 * rs6000-aix-tdep.c: Update.
12248 * rs6000-tdep.c: Update.
12249 * rust-exp.y: Update.
12250 * rust-lang.c: Update.
12251 * s390-tdep.c: Update.
12252 * selftest-arch.c: Update.
12253 * solib-dsbt.c: Update.
12254 * solib-frv.c: Update.
12255 * solib-spu.c: Update.
12256 * solib-svr4.c: Update.
12258 * sparc64-linux-tdep.c: Update.
12260 * symfile-mem.c: Update.
12261 * symmisc.c: Update.
12262 * target.c: Update.
12263 * thread.c: Update.
12265 * tracefile-tfile.c: Update.
12266 * tui/tui.c: Update.
12267 * typeprint.c: Update.
12268 * unittests/cli-utils-selftests.c: Update.
12269 * unittests/parse-connection-spec-selftests.c: Update.
12270 * valops.c: Update.
12271 * valprint.c: Update.
12273 * varobj.c: Update.
12274 * windows-nat.c: Update.
12275 * x86-linux-nat.c: Update.
12276 * xml-support.c: Update.
12278 2019-04-08 Tom Tromey <tom@tromey.com>
12280 * xml-support.c: Use C++ exception handling.
12281 * x86-linux-nat.c: Use C++ exception handling.
12282 * windows-nat.c: Use C++ exception handling.
12283 * varobj.c: Use C++ exception handling.
12284 * value.c: Use C++ exception handling.
12285 * valprint.c: Use C++ exception handling.
12286 * valops.c: Use C++ exception handling.
12287 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12289 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12290 * typeprint.c: Use C++ exception handling.
12291 * tui/tui.c: Use C++ exception handling.
12292 * tracefile-tfile.c: Use C++ exception handling.
12293 * top.c: Use C++ exception handling.
12294 * thread.c: Use C++ exception handling.
12295 * target.c: Use C++ exception handling.
12296 * symmisc.c: Use C++ exception handling.
12297 * symfile-mem.c: Use C++ exception handling.
12298 * stack.c: Use C++ exception handling.
12299 * sparc64-linux-tdep.c: Use C++ exception handling.
12300 * solib.c: Use C++ exception handling.
12301 * solib-svr4.c: Use C++ exception handling.
12302 * solib-spu.c: Use C++ exception handling.
12303 * solib-frv.c: Use C++ exception handling.
12304 * solib-dsbt.c: Use C++ exception handling.
12305 * selftest-arch.c: Use C++ exception handling.
12306 * s390-tdep.c: Use C++ exception handling.
12307 * rust-lang.c: Use C++ exception handling.
12308 * rust-exp.y: Use C++ exception handling.
12309 * rs6000-tdep.c: Use C++ exception handling.
12310 * rs6000-aix-tdep.c: Use C++ exception handling.
12311 * riscv-tdep.c: Use C++ exception handling.
12312 * remote.c: Use C++ exception handling.
12313 * remote-fileio.c: Use C++ exception handling.
12314 * record-full.c: Use C++ exception handling.
12315 * record-btrace.c: Use C++ exception handling.
12316 * python/python.c: Use C++ exception handling.
12317 * python/py-value.c: Use C++ exception handling.
12318 * python/py-utils.c: Use C++ exception handling.
12319 * python/py-unwind.c: Use C++ exception handling.
12320 * python/py-type.c: Use C++ exception handling.
12321 * python/py-symbol.c: Use C++ exception handling.
12322 * python/py-record.c: Use C++ exception handling.
12323 * python/py-record-btrace.c: Use C++ exception handling.
12324 * python/py-progspace.c: Use C++ exception handling.
12325 * python/py-prettyprint.c: Use C++ exception handling.
12326 * python/py-param.c: Use C++ exception handling.
12327 * python/py-objfile.c: Use C++ exception handling.
12328 * python/py-linetable.c: Use C++ exception handling.
12329 * python/py-lazy-string.c: Use C++ exception handling.
12330 * python/py-infthread.c: Use C++ exception handling.
12331 * python/py-inferior.c: Use C++ exception handling.
12332 * python/py-gdb-readline.c: Use C++ exception handling.
12333 * python/py-framefilter.c: Use C++ exception handling.
12334 * python/py-frame.c: Use C++ exception handling.
12335 * python/py-finishbreakpoint.c: Use C++ exception handling.
12336 * python/py-cmd.c: Use C++ exception handling.
12337 * python/py-breakpoint.c: Use C++ exception handling.
12338 * python/py-arch.c: Use C++ exception handling.
12339 * printcmd.c: Use C++ exception handling.
12340 * ppc-linux-tdep.c: Use C++ exception handling.
12341 * parse.c: Use C++ exception handling.
12342 * p-valprint.c: Use C++ exception handling.
12343 * objc-lang.c: Use C++ exception handling.
12344 * mi/mi-main.c: Use C++ exception handling.
12345 * mi/mi-interp.c: Use C++ exception handling.
12346 * mi/mi-cmd-stack.c: Use C++ exception handling.
12347 * mi/mi-cmd-break.c: Use C++ exception handling.
12348 * main.c: Use C++ exception handling.
12349 * linux-thread-db.c: Use C++ exception handling.
12350 * linux-tdep.c: Use C++ exception handling.
12351 * linux-nat.c: Use C++ exception handling.
12352 * linux-fork.c: Use C++ exception handling.
12353 * linespec.c: Use C++ exception handling.
12354 * language.c: Use C++ exception handling.
12355 * jit.c: Use C++ exception handling.
12356 * infrun.c: Use C++ exception handling.
12357 * infcmd.c: Use C++ exception handling.
12358 * infcall.c: Use C++ exception handling.
12359 * inf-loop.c: Use C++ exception handling.
12360 * i386-tdep.c: Use C++ exception handling.
12361 * i386-linux-tdep.c: Use C++ exception handling.
12362 * guile/scm-value.c: Use C++ exception handling.
12363 * guile/scm-type.c: Use C++ exception handling.
12364 * guile/scm-symtab.c: Use C++ exception handling.
12365 * guile/scm-symbol.c: Use C++ exception handling.
12366 * guile/scm-pretty-print.c: Use C++ exception handling.
12367 * guile/scm-ports.c: Use C++ exception handling.
12368 * guile/scm-param.c: Use C++ exception handling.
12369 * guile/scm-math.c: Use C++ exception handling.
12370 * guile/scm-lazy-string.c: Use C++ exception handling.
12371 * guile/scm-frame.c: Use C++ exception handling.
12372 * guile/scm-disasm.c: Use C++ exception handling.
12373 * guile/scm-cmd.c: Use C++ exception handling.
12374 * guile/scm-breakpoint.c: Use C++ exception handling.
12375 * guile/scm-block.c: Use C++ exception handling.
12376 * guile/guile-internal.h: Use C++ exception handling.
12377 * gnu-v3-abi.c: Use C++ exception handling.
12378 * gdbtypes.c: Use C++ exception handling.
12379 * frame.c: Use C++ exception handling.
12380 * frame-unwind.c: Use C++ exception handling.
12381 * fbsd-tdep.c: Use C++ exception handling.
12382 * f-valprint.c: Use C++ exception handling.
12383 * exec.c: Use C++ exception handling.
12384 * event-top.c: Use C++ exception handling.
12385 * event-loop.c: Use C++ exception handling.
12386 * eval.c: Use C++ exception handling.
12387 * dwarf2read.c: Use C++ exception handling.
12388 * dwarf2loc.c: Use C++ exception handling.
12389 * dwarf2-frame.c: Use C++ exception handling.
12390 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12391 * dwarf-index-write.c: Use C++ exception handling.
12392 * dwarf-index-cache.c: Use C++ exception handling.
12393 * dtrace-probe.c: Use C++ exception handling.
12394 * disasm-selftests.c: Use C++ exception handling.
12395 * darwin-nat.c: Use C++ exception handling.
12396 * cp-valprint.c: Use C++ exception handling.
12397 * cp-support.c: Use C++ exception handling.
12398 * cp-abi.c: Use C++ exception handling.
12399 * corelow.c: Use C++ exception handling.
12400 * completer.c: Use C++ exception handling.
12401 * compile/compile-object-run.c: Use C++ exception handling.
12402 * compile/compile-object-load.c: Use C++ exception handling.
12403 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12404 * compile/compile-c-symbols.c: Use C++ exception handling.
12405 * common/selftest.c: Use C++ exception handling.
12406 * common/new-op.c: Use C++ exception handling.
12407 * cli/cli-script.c: Use C++ exception handling.
12408 * cli/cli-interp.c: Use C++ exception handling.
12409 * cli/cli-cmds.c: Use C++ exception handling.
12410 * c-varobj.c: Use C++ exception handling.
12411 * btrace.c: Use C++ exception handling.
12412 * breakpoint.c: Use C++ exception handling.
12413 * break-catch-throw.c: Use C++ exception handling.
12414 * arch-utils.c: Use C++ exception handling.
12415 * amd64-tdep.c: Use C++ exception handling.
12416 * ada-valprint.c: Use C++ exception handling.
12417 * ada-typeprint.c: Use C++ exception handling.
12418 * ada-lang.c: Use C++ exception handling.
12419 * aarch64-tdep.c: Use C++ exception handling.
12421 2019-04-08 Tom Tromey <tom@tromey.com>
12423 * xml-support.c (gdb_xml_parser::parse): Update.
12424 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12425 * value.c (show_convenience): Update.
12426 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12427 (test_parse_flags_qcs): Update.
12428 * thread.c (thr_try_catch_cmd): Update.
12429 * target.c (target_translate_tls_address): Update.
12430 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12431 (info_frame_command_core, frame_apply_command_count): Update.
12432 * rust-exp.y (rust_lex_exception_test): Update.
12433 * riscv-tdep.c (riscv_print_one_register_info): Update.
12434 * remote.c (remote_target::enable_btrace): Update.
12435 * record-btrace.c (record_btrace_enable_warn): Update.
12436 * python/py-utils.c (gdbpy_convert_exception): Update.
12437 * printcmd.c (do_one_display, print_variable_and_value): Update.
12438 * mi/mi-main.c (mi_print_exception): Update.
12439 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12440 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12441 * linux-nat.c (linux_nat_target::attach): Update.
12442 * linux-fork.c (class scoped_switch_fork_info): Update.
12443 * infrun.c (displaced_step_prepare): Update.
12444 * infcall.c (call_function_by_hand_dummy): Update.
12445 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12446 * gnu-v3-abi.c (print_one_vtable): Update.
12447 * frame.c (get_prev_frame_always): Update.
12448 * f-valprint.c (info_common_command_for_block): Update.
12449 * exec.c (try_open_exec_file): Update.
12450 * exceptions.c (print_exception, exception_print)
12451 (exception_fprintf, exception_print_same): Update.
12452 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12453 * dwarf-index-cache.c (index_cache::store)
12454 (index_cache::lookup_gdb_index): Update.
12455 * darwin-nat.c (maybe_cache_shell): Update.
12456 * cp-valprint.c (cp_print_value_fields): Update.
12457 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12458 (gcc_cplus_symbol_address): Update.
12459 * compile/compile-c-symbols.c (gcc_convert_symbol)
12460 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12461 * common/selftest.c: Update.
12462 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12464 (exception_try_scope_entry, exception_try_scope_exit): Don't
12466 (struct exception_try_scope): Remove.
12467 (TRY): Don't use exception_try_scope.
12468 (struct gdb_exception): Add constructor, operator=.
12469 <what>: New method.
12470 (struct gdb_exception_RETURN_MASK_ALL)
12471 (struct gdb_exception_RETURN_MASK_ERROR)
12472 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12473 (struct gdb_quit_bad_alloc): Update.
12474 * common/common-exceptions.c (exception_none): Change
12476 (struct catcher) <state, exception>: Initialize inline.
12477 <prev>: Remove member.
12478 (current_catcher): Remove.
12479 (catchers): New global.
12480 (exceptions_state_mc_init): Simplify.
12481 (catcher_pop): Remove.
12482 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12483 (try_scope_depth, exception_try_scope_entry)
12484 (exception_try_scope_exit): Remove.
12485 (throw_exception_sjlj): Update.
12486 (exception_messages, exception_messages_size): Remove.
12487 (throw_it): Simplify.
12488 (gdb_exception_sliced_copy): Remove.
12489 (throw_exception_cxx): Update.
12490 * cli/cli-script.c (script_from_file): Update.
12491 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12493 * ada-valprint.c (ada_val_print): Update.
12494 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12495 (create_excep_cond_exprs): Update.
12497 2019-04-08 Tom Tromey <tom@tromey.com>
12499 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12500 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12501 (TRY, CATCH, END_CATCH): Remove some definitions.
12502 * common/common-exceptions.c: Don't use GDB_XCPT.
12503 (catcher_list_size): Remove.
12504 (throw_exception, throw_it): Simplify.
12506 2019-04-05 Tom Tromey <tom@tromey.com>
12508 Revert the header-sorting patch.
12509 * ft32-tdep.c: Revert.
12510 * frv-tdep.c: Revert.
12511 * frv-linux-tdep.c: Revert.
12513 * frame-unwind.c: Revert.
12514 * frame-base.c: Revert.
12515 * fork-child.c: Revert.
12516 * findvar.c: Revert.
12517 * findcmd.c: Revert.
12518 * filesystem.c: Revert.
12519 * filename-seen-cache.h: Revert.
12520 * filename-seen-cache.c: Revert.
12521 * fbsd-tdep.c: Revert.
12522 * fbsd-nat.h: Revert.
12523 * fbsd-nat.c: Revert.
12524 * f-valprint.c: Revert.
12525 * f-typeprint.c: Revert.
12526 * f-lang.c: Revert.
12527 * extension.h: Revert.
12528 * extension.c: Revert.
12529 * extension-priv.h: Revert.
12530 * expprint.c: Revert.
12533 * exceptions.c: Revert.
12534 * event-top.c: Revert.
12535 * event-loop.c: Revert.
12537 * elfread.c: Revert.
12538 * dwarf2read.h: Revert.
12539 * dwarf2read.c: Revert.
12540 * dwarf2loc.c: Revert.
12541 * dwarf2expr.h: Revert.
12542 * dwarf2expr.c: Revert.
12543 * dwarf2-frame.c: Revert.
12544 * dwarf2-frame-tailcall.c: Revert.
12545 * dwarf-index-write.h: Revert.
12546 * dwarf-index-write.c: Revert.
12547 * dwarf-index-common.c: Revert.
12548 * dwarf-index-cache.h: Revert.
12549 * dwarf-index-cache.c: Revert.
12550 * dummy-frame.c: Revert.
12551 * dtrace-probe.c: Revert.
12552 * disasm.h: Revert.
12553 * disasm.c: Revert.
12554 * disasm-selftests.c: Revert.
12555 * dictionary.c: Revert.
12556 * dicos-tdep.c: Revert.
12557 * demangle.c: Revert.
12558 * dcache.h: Revert.
12559 * dcache.c: Revert.
12560 * darwin-nat.h: Revert.
12561 * darwin-nat.c: Revert.
12562 * darwin-nat-info.c: Revert.
12563 * d-valprint.c: Revert.
12564 * d-namespace.c: Revert.
12565 * d-lang.c: Revert.
12567 * csky-tdep.c: Revert.
12568 * csky-linux-tdep.c: Revert.
12569 * cris-tdep.c: Revert.
12570 * cris-linux-tdep.c: Revert.
12571 * cp-valprint.c: Revert.
12572 * cp-support.c: Revert.
12573 * cp-namespace.c: Revert.
12574 * cp-abi.c: Revert.
12575 * corelow.c: Revert.
12576 * corefile.c: Revert.
12577 * continuations.c: Revert.
12578 * completer.h: Revert.
12579 * completer.c: Revert.
12580 * complaints.c: Revert.
12581 * coffread.c: Revert.
12582 * coff-pe-read.c: Revert.
12583 * cli-out.h: Revert.
12584 * cli-out.c: Revert.
12585 * charset.c: Revert.
12586 * c-varobj.c: Revert.
12587 * c-valprint.c: Revert.
12588 * c-typeprint.c: Revert.
12589 * c-lang.c: Revert.
12590 * buildsym.c: Revert.
12591 * buildsym-legacy.c: Revert.
12592 * build-id.h: Revert.
12593 * build-id.c: Revert.
12594 * btrace.c: Revert.
12595 * bsd-uthread.c: Revert.
12596 * breakpoint.h: Revert.
12597 * breakpoint.c: Revert.
12598 * break-catch-throw.c: Revert.
12599 * break-catch-syscall.c: Revert.
12600 * break-catch-sig.c: Revert.
12601 * blockframe.c: Revert.
12603 * bfin-tdep.c: Revert.
12604 * bfin-linux-tdep.c: Revert.
12605 * bfd-target.c: Revert.
12606 * bcache.c: Revert.
12607 * ax-general.c: Revert.
12608 * ax-gdb.h: Revert.
12609 * ax-gdb.c: Revert.
12610 * avr-tdep.c: Revert.
12612 * auto-load.c: Revert.
12613 * arm-wince-tdep.c: Revert.
12614 * arm-tdep.c: Revert.
12615 * arm-symbian-tdep.c: Revert.
12616 * arm-pikeos-tdep.c: Revert.
12617 * arm-obsd-tdep.c: Revert.
12618 * arm-nbsd-tdep.c: Revert.
12619 * arm-nbsd-nat.c: Revert.
12620 * arm-linux-tdep.c: Revert.
12621 * arm-linux-nat.c: Revert.
12622 * arm-fbsd-tdep.c: Revert.
12623 * arm-fbsd-nat.c: Revert.
12624 * arm-bsd-tdep.c: Revert.
12625 * arch-utils.c: Revert.
12626 * arc-tdep.c: Revert.
12627 * arc-newlib-tdep.c: Revert.
12628 * annotate.h: Revert.
12629 * annotate.c: Revert.
12630 * amd64-windows-tdep.c: Revert.
12631 * amd64-windows-nat.c: Revert.
12632 * amd64-tdep.c: Revert.
12633 * amd64-sol2-tdep.c: Revert.
12634 * amd64-obsd-tdep.c: Revert.
12635 * amd64-obsd-nat.c: Revert.
12636 * amd64-nbsd-tdep.c: Revert.
12637 * amd64-nbsd-nat.c: Revert.
12638 * amd64-nat.c: Revert.
12639 * amd64-linux-tdep.c: Revert.
12640 * amd64-linux-nat.c: Revert.
12641 * amd64-fbsd-tdep.c: Revert.
12642 * amd64-fbsd-nat.c: Revert.
12643 * amd64-dicos-tdep.c: Revert.
12644 * amd64-darwin-tdep.c: Revert.
12645 * amd64-bsd-nat.c: Revert.
12646 * alpha-tdep.c: Revert.
12647 * alpha-obsd-tdep.c: Revert.
12648 * alpha-nbsd-tdep.c: Revert.
12649 * alpha-mdebug-tdep.c: Revert.
12650 * alpha-linux-tdep.c: Revert.
12651 * alpha-linux-nat.c: Revert.
12652 * alpha-bsd-tdep.c: Revert.
12653 * alpha-bsd-nat.c: Revert.
12654 * aix-thread.c: Revert.
12656 * addrmap.c: Revert.
12657 * ada-varobj.c: Revert.
12658 * ada-valprint.c: Revert.
12659 * ada-typeprint.c: Revert.
12660 * ada-tasks.c: Revert.
12661 * ada-lang.c: Revert.
12662 * aarch64-tdep.c: Revert.
12663 * aarch64-ravenscar-thread.c: Revert.
12664 * aarch64-newlib-tdep.c: Revert.
12665 * aarch64-linux-tdep.c: Revert.
12666 * aarch64-linux-nat.c: Revert.
12667 * aarch64-fbsd-tdep.c: Revert.
12668 * aarch64-fbsd-nat.c: Revert.
12669 * aarch32-linux-nat.c: Revert.
12671 2019-04-05 Tom Tromey <tom@tromey.com>
12673 * ft32-tdep.c: Sort headers.
12674 * frv-tdep.c: Sort headers.
12675 * frv-linux-tdep.c: Sort headers.
12676 * frame.c: Sort headers.
12677 * frame-unwind.c: Sort headers.
12678 * frame-base.c: Sort headers.
12679 * fork-child.c: Sort headers.
12680 * findvar.c: Sort headers.
12681 * findcmd.c: Sort headers.
12682 * filesystem.c: Sort headers.
12683 * filename-seen-cache.h: Sort headers.
12684 * filename-seen-cache.c: Sort headers.
12685 * fbsd-tdep.c: Sort headers.
12686 * fbsd-nat.h: Sort headers.
12687 * fbsd-nat.c: Sort headers.
12688 * f-valprint.c: Sort headers.
12689 * f-typeprint.c: Sort headers.
12690 * f-lang.c: Sort headers.
12691 * extension.h: Sort headers.
12692 * extension.c: Sort headers.
12693 * extension-priv.h: Sort headers.
12694 * expprint.c: Sort headers.
12695 * exec.h: Sort headers.
12696 * exec.c: Sort headers.
12697 * exceptions.c: Sort headers.
12698 * event-top.c: Sort headers.
12699 * event-loop.c: Sort headers.
12700 * eval.c: Sort headers.
12701 * elfread.c: Sort headers.
12702 * dwarf2read.h: Sort headers.
12703 * dwarf2read.c: Sort headers.
12704 * dwarf2loc.c: Sort headers.
12705 * dwarf2expr.h: Sort headers.
12706 * dwarf2expr.c: Sort headers.
12707 * dwarf2-frame.c: Sort headers.
12708 * dwarf2-frame-tailcall.c: Sort headers.
12709 * dwarf-index-write.h: Sort headers.
12710 * dwarf-index-write.c: Sort headers.
12711 * dwarf-index-common.c: Sort headers.
12712 * dwarf-index-cache.h: Sort headers.
12713 * dwarf-index-cache.c: Sort headers.
12714 * dummy-frame.c: Sort headers.
12715 * dtrace-probe.c: Sort headers.
12716 * disasm.h: Sort headers.
12717 * disasm.c: Sort headers.
12718 * disasm-selftests.c: Sort headers.
12719 * dictionary.c: Sort headers.
12720 * dicos-tdep.c: Sort headers.
12721 * demangle.c: Sort headers.
12722 * dcache.h: Sort headers.
12723 * dcache.c: Sort headers.
12724 * darwin-nat.h: Sort headers.
12725 * darwin-nat.c: Sort headers.
12726 * darwin-nat-info.c: Sort headers.
12727 * d-valprint.c: Sort headers.
12728 * d-namespace.c: Sort headers.
12729 * d-lang.c: Sort headers.
12730 * ctf.c: Sort headers.
12731 * csky-tdep.c: Sort headers.
12732 * csky-linux-tdep.c: Sort headers.
12733 * cris-tdep.c: Sort headers.
12734 * cris-linux-tdep.c: Sort headers.
12735 * cp-valprint.c: Sort headers.
12736 * cp-support.c: Sort headers.
12737 * cp-namespace.c: Sort headers.
12738 * cp-abi.c: Sort headers.
12739 * corelow.c: Sort headers.
12740 * corefile.c: Sort headers.
12741 * continuations.c: Sort headers.
12742 * completer.h: Sort headers.
12743 * completer.c: Sort headers.
12744 * complaints.c: Sort headers.
12745 * coffread.c: Sort headers.
12746 * coff-pe-read.c: Sort headers.
12747 * cli-out.h: Sort headers.
12748 * cli-out.c: Sort headers.
12749 * charset.c: Sort headers.
12750 * c-varobj.c: Sort headers.
12751 * c-valprint.c: Sort headers.
12752 * c-typeprint.c: Sort headers.
12753 * c-lang.c: Sort headers.
12754 * buildsym.c: Sort headers.
12755 * buildsym-legacy.c: Sort headers.
12756 * build-id.h: Sort headers.
12757 * build-id.c: Sort headers.
12758 * btrace.c: Sort headers.
12759 * bsd-uthread.c: Sort headers.
12760 * breakpoint.h: Sort headers.
12761 * breakpoint.c: Sort headers.
12762 * break-catch-throw.c: Sort headers.
12763 * break-catch-syscall.c: Sort headers.
12764 * break-catch-sig.c: Sort headers.
12765 * blockframe.c: Sort headers.
12766 * block.c: Sort headers.
12767 * bfin-tdep.c: Sort headers.
12768 * bfin-linux-tdep.c: Sort headers.
12769 * bfd-target.c: Sort headers.
12770 * bcache.c: Sort headers.
12771 * ax-general.c: Sort headers.
12772 * ax-gdb.h: Sort headers.
12773 * ax-gdb.c: Sort headers.
12774 * avr-tdep.c: Sort headers.
12775 * auxv.c: Sort headers.
12776 * auto-load.c: Sort headers.
12777 * arm-wince-tdep.c: Sort headers.
12778 * arm-tdep.c: Sort headers.
12779 * arm-symbian-tdep.c: Sort headers.
12780 * arm-pikeos-tdep.c: Sort headers.
12781 * arm-obsd-tdep.c: Sort headers.
12782 * arm-nbsd-tdep.c: Sort headers.
12783 * arm-nbsd-nat.c: Sort headers.
12784 * arm-linux-tdep.c: Sort headers.
12785 * arm-linux-nat.c: Sort headers.
12786 * arm-fbsd-tdep.c: Sort headers.
12787 * arm-fbsd-nat.c: Sort headers.
12788 * arm-bsd-tdep.c: Sort headers.
12789 * arch-utils.c: Sort headers.
12790 * arc-tdep.c: Sort headers.
12791 * arc-newlib-tdep.c: Sort headers.
12792 * annotate.h: Sort headers.
12793 * annotate.c: Sort headers.
12794 * amd64-windows-tdep.c: Sort headers.
12795 * amd64-windows-nat.c: Sort headers.
12796 * amd64-tdep.c: Sort headers.
12797 * amd64-sol2-tdep.c: Sort headers.
12798 * amd64-obsd-tdep.c: Sort headers.
12799 * amd64-obsd-nat.c: Sort headers.
12800 * amd64-nbsd-tdep.c: Sort headers.
12801 * amd64-nbsd-nat.c: Sort headers.
12802 * amd64-nat.c: Sort headers.
12803 * amd64-linux-tdep.c: Sort headers.
12804 * amd64-linux-nat.c: Sort headers.
12805 * amd64-fbsd-tdep.c: Sort headers.
12806 * amd64-fbsd-nat.c: Sort headers.
12807 * amd64-dicos-tdep.c: Sort headers.
12808 * amd64-darwin-tdep.c: Sort headers.
12809 * amd64-bsd-nat.c: Sort headers.
12810 * alpha-tdep.c: Sort headers.
12811 * alpha-obsd-tdep.c: Sort headers.
12812 * alpha-nbsd-tdep.c: Sort headers.
12813 * alpha-mdebug-tdep.c: Sort headers.
12814 * alpha-linux-tdep.c: Sort headers.
12815 * alpha-linux-nat.c: Sort headers.
12816 * alpha-bsd-tdep.c: Sort headers.
12817 * alpha-bsd-nat.c: Sort headers.
12818 * aix-thread.c: Sort headers.
12819 * agent.c: Sort headers.
12820 * addrmap.c: Sort headers.
12821 * ada-varobj.c: Sort headers.
12822 * ada-valprint.c: Sort headers.
12823 * ada-typeprint.c: Sort headers.
12824 * ada-tasks.c: Sort headers.
12825 * ada-lang.c: Sort headers.
12826 * aarch64-tdep.c: Sort headers.
12827 * aarch64-ravenscar-thread.c: Sort headers.
12828 * aarch64-newlib-tdep.c: Sort headers.
12829 * aarch64-linux-tdep.c: Sort headers.
12830 * aarch64-linux-nat.c: Sort headers.
12831 * aarch64-fbsd-tdep.c: Sort headers.
12832 * aarch64-fbsd-nat.c: Sort headers.
12833 * aarch32-linux-nat.c: Sort headers.
12835 2019-04-04 Tom Tromey <tom@tromey.com>
12837 * varobj.c (varobj_create): Update.
12838 * rust-exp.y (struct rust_parser) <update_innermost_block,
12839 lookup_symbol>: New methods.
12840 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12842 (rust_parser::rust_lookup_type)
12843 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12844 * printcmd.c (display_command, do_one_display): Update.
12845 * parser-defs.h (struct parser_state) <parser_state>: Add
12846 "tracker" parameter.
12847 (block_tracker): New member.
12848 (class innermost_block_tracker) <innermost_block_tracker>: Add
12850 <reset>: Remove method.
12851 (innermost_block): Don't declare.
12852 (null_post_parser): Update.
12853 * parse.c (innermost_block): Remove global.
12854 (write_dollar_variable): Update.
12855 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12856 Remove "tracker_types" parameter.
12857 (parse_expression): Add "tracker" parameter.
12858 (parse_expression_for_completion): Update.
12859 (null_post_parser): Add "tracker" parameter.
12860 * p-exp.y: Update rules.
12861 * m2-exp.y: Update rules.
12862 * language.h (struct language_defn) <la_post_parser>: Add
12863 "tracker" parameter.
12864 * go-exp.y: Update rules.
12865 * f-exp.y: Update rules.
12866 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12868 * d-exp.y: Update rules.
12869 * c-exp.y: Update rules.
12870 * breakpoint.c (set_breakpoint_condition): Create an
12871 innermost_block_tracker.
12872 (watch_command_1): Likewise.
12873 * ada-lang.c (resolve): Add "tracker" parameter.
12874 (resolve_subexp): Likewise.
12875 * ada-exp.y (write_var_from_sym): Update.
12877 2019-04-04 Tom Tromey <tom@tromey.com>
12879 * type-stack.h: New file.
12880 * type-stack.c: New file.
12881 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12883 (insert_into_type_stack, insert_type, push_type, push_type_int)
12884 (insert_type_address_space, pop_type, pop_type_int)
12885 (pop_typelist, pop_type_stack, append_type_stack)
12886 (push_type_stack, get_type_stack, push_typelist)
12887 (follow_type_instance_flags, follow_types): Don't declare.
12888 * parse.c (type_stack): Remove global.
12889 (parse_exp_in_context): Update.
12890 (insert_into_type_stack, insert_type, push_type, push_type_int)
12891 (insert_type_address_space, pop_type, pop_type_int)
12892 (pop_typelist, pop_type_stack, append_type_stack)
12893 (push_type_stack, get_type_stack, push_typelist)
12894 (follow_type_instance_flags, follow_types): Remove (moved to
12896 * f-exp.y (type_stack): New global.
12898 (push_kind_type, f_parse): Update.
12899 * d-exp.y (type_stack): New global.
12902 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12904 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12905 (HFILES_NO_SRCDIR): Add type-stack.h.
12907 2019-04-04 Tom Tromey <tom@tromey.com>
12909 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12910 (rust_parser::convert_ast_to_expression, rust_parse)
12911 (rust_lex_test_completion, rust_lex_tests): Update.
12912 * parser-defs.h (struct expr_completion_state): New.
12913 (struct parser_state) <parser_state>: Add completion parameter.
12914 <mark_struct_expression, mark_completion_tag>: New methods.
12915 <parse_completion, m_completion_state>: New members.
12916 (prefixify_expression, null_post_parser): Update.
12917 (mark_struct_expression, mark_completion_tag): Don't declare.
12918 * parse.c (parse_completion, expout_last_struct)
12919 (expout_tag_completion_type, expout_completion_name): Remove
12921 (parser_state::mark_struct_expression)
12922 (parser_state::mark_completion_tag): Now methods.
12923 (prefixify_expression): Add last_struct parameter.
12924 (prefixify_subexp): Likewise.
12925 (parse_exp_1): Update.
12926 (parse_exp_in_context): Add cstate parameter. Update.
12927 (parse_expression_for_completion): Create an
12928 expr_completion_state.
12929 (null_post_parser): Add "completion" parameter.
12930 * p-exp.y: Update rules.
12932 * language.h (struct language_defn) <la_post_parser>: Add
12933 "completing" parameter.
12934 * go-exp.y: Update rules.
12935 (lex_one_token): Update.
12936 * expression.h (parse_completion): Don't declare.
12937 * d-exp.y: Update rules.
12938 (lex_one_token): Update rules.
12939 * c-exp.y: Update rules.
12940 (lex_one_token): Update.
12941 * ada-lang.c (resolve): Add "parse_completion" parameter.
12942 (resolve_subexp): Likewise.
12943 (ada_resolve_function): Likewise.
12945 2019-04-04 Tom Tromey <tom@tromey.com>
12947 * parser-defs.h (struct parser_state) <start_arglist,
12948 end_arglist>: New methods.
12949 <arglist_len, m_funcall_chain>: New members.
12950 (arglist_len, start_arglist, end_arglist): Don't declare.
12951 * parse.c (arglist_len, funcall_chain): Remove global.
12952 (start_arglist, end_arglist): Remove functions.
12953 (parse_exp_in_context): Update.
12954 * p-exp.y: Update rules.
12955 * m2-exp.y: Update rules.
12956 * go-exp.y: Update rules.
12957 * f-exp.y: Update rules.
12958 * d-exp.y: Update rules.
12959 * c-exp.y: Update rules.
12961 2019-04-04 Tom Tromey <tom@tromey.com>
12963 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12964 lex_operator, push_back>: New methods.
12966 (rust_parser::lex_hex, lex_escape): Rename and update.
12967 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12968 (rust_parser::lex_operator): Rename and update.
12969 (rust_parser::lex_number, rustyylex, rustyyerror)
12970 (rust_lex_test_init, rust_lex_test_sequence)
12971 (rust_lex_test_push_back, rust_lex_tests): Update.
12972 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12974 <lexptr, prev_lexptr>: New members.
12975 (lexptr, prev_lexptr): Don't declare.
12976 * parse.c (lexptr, prev_lexptr): Remove globals.
12977 (parse_exp_in_context): Update.
12978 * p-exp.y (yylex, yyerror): Update.
12979 * m2-exp.y (parse_number, yylex, yyerror): Update.
12980 * go-exp.y (lex_one_token, yyerror): Update.
12981 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12982 * d-exp.y (lex_one_token, yyerror): Update.
12983 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12984 (lex_one_token, yyerror): Update.
12985 * ada-lex.l (YY_INPUT): Update.
12986 (rewind_to_char): Update.
12987 * ada-exp.y (yyerror): Update.
12989 2019-04-04 Tom Tromey <tom@tromey.com>
12991 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12992 * parser-defs.h (struct parser_state) <parser_state>: Add new
12994 <comma_terminates>: New member.
12995 (comma_terminates): Don't declare global.
12996 * parse.c (comma_terminates): Remove global.
12997 (parse_exp_in_context): Update.
12998 * p-exp.y (yylex): Update.
12999 * m2-exp.y (yylex): Update.
13000 * go-exp.y (lex_one_token): Update.
13001 * f-exp.y (yylex): Update.
13002 * d-exp.y (lex_one_token): Update.
13003 * c-exp.y (lex_one_token): Update.
13004 * ada-lex.l: Update.
13006 2019-04-04 Tom Tromey <tom@tromey.com>
13008 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13009 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13010 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13011 * parser-defs.h (paren_depth): Don't declare.
13012 * parse.c (paren_depth): Remove global.
13013 (parse_exp_in_context): Update.
13014 * p-exp.y (paren_depth): New global.
13015 (pascal_parse): Initialize it.
13016 * m2-exp.y (paren_depth): New global.
13017 (m2_parse): Initialize it.
13018 * go-exp.y (paren_depth): New global.
13019 (go_parse): Initialize it.
13020 * f-exp.y (paren_depth): New global.
13021 (f_parse): Initialize it.
13022 * d-exp.y (paren_depth): New global.
13023 (d_parse): Initialize it.
13024 * c-exp.y (paren_depth): New global.
13025 (c_parse): Initialize it.
13026 * ada-lex.l (paren_depth): New global.
13027 (lexer_init): Initialize it.
13029 2019-04-04 Tom Tromey <tom@tromey.com>
13031 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13032 (rust_parser::convert_ast_to_type)
13033 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13034 * parser-defs.h (struct parser_state) <parser_state>: Add
13035 parameters. Initialize new members.
13036 <expression_context_block, expression_context_pc>: New members.
13037 * parse.c (expression_context_block, expression_context_pc):
13039 (parse_exp_in_context): Update.
13040 * p-exp.y: Update all rules.
13042 * m2-exp.y: Update all rules.
13044 * go-exp.y (yylex): Update.
13045 * f-exp.y (yylex): Update.
13046 * d-exp.y: Update all rules.
13048 * c-exp.y: Update all rules.
13049 (lex_one_token, classify_name, yylex, c_parse): Update.
13050 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13052 2019-04-04 Tom Tromey <tom@tromey.com>
13054 * gdbarch.h, gdbarch.c: Rebuild.
13055 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13057 (struct stap_parse_info): Replace "parser_state" with
13059 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13060 (parser_state): New class.
13061 * parse.c (expr_builder): Rename.
13062 (expr_builder::release): Rename.
13063 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13064 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13065 (write_exp_elt_longcst, write_exp_elt_floatcst)
13066 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13067 (write_exp_string_vector, write_exp_bitstring)
13068 (write_exp_msymbol, mark_struct_expression)
13069 (write_dollar_variable)
13070 (insert_type_address_space, increase_expout_size): Replace
13071 "parser_state" with "expr_builder".
13072 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13073 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13074 "parser_state" with "expr_builder".
13076 2019-04-04 Tom Tromey <tom@tromey.com>
13078 * rust-exp.y: Replace "parse_language" with method call.
13080 (yylex): Replace "parse_language" with method call.
13082 (yylex): Replace "parse_language" with method call.
13083 * go-exp.y (classify_name): Replace "parse_language" with method
13085 * f-exp.y (yylex): Replace "parse_language" with method call.
13086 * d-exp.y (lex_one_token): Replace "parse_language" with method
13089 (lex_one_token, classify_name, yylex): Replace "parse_language"
13091 * ada-exp.y (find_primitive_type, type_char)
13092 (type_system_address): Replace "parse_language" with method call.
13094 2019-04-04 Tom Tromey <tom@tromey.com>
13096 * rust-exp.y: Replace "parse_gdbarch" with method call.
13097 * parse.c (write_dollar_variable, insert_type_address_space):
13098 Replace "parse_gdbarch" with method call.
13099 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13101 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13103 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13104 "parse_gdbarch" with method call.
13105 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13107 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13108 "parse_gdbarch" with method call.
13109 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13110 "parse_gdbarch" with method call.
13111 * c-exp.y (parse_type, parse_number, classify_name): Replace
13112 "parse_gdbarch" with method call.
13113 * ada-lex.l: Replace "parse_gdbarch" with method call.
13114 * ada-exp.y (parse_type, find_primitive_type, type_char)
13115 (type_system_address): Replace "parse_gdbarch" with method call.
13117 2019-04-04 Tom Tromey <tom@tromey.com>
13119 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13120 * stap-probe.c (stap_parse_argument): Update.
13121 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13122 initial_size parameter.
13123 * rust-exp.y (rust_lex_tests): Update.
13124 * parse.c (parser_state): Update.
13125 (parse_exp_in_context): Update.
13126 * parser-defs.h (struct parser_state) <parser_state>: Remove
13127 "initial_size" parameter.
13129 2019-04-04 Tom Tromey <tom@tromey.com>
13131 * parser-defs.h (increase_expout_size): Don't declare.
13132 * parse.c (increase_expout_size): Now static.
13134 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13136 * gnu-nat.c (gnu_nat_target::wait): Fix
13137 target_waitstatus_to_string call.
13139 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13141 * eval.c (evaluate_subexp_standard): Handle internal functions
13142 during Fortran function call handling.
13144 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13146 * NEWS: Mention new internal functions.
13147 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13148 (read_base_type): Use dwarf2_init_complex_target_type.
13149 * value.c (creal_internal_fn): New function.
13150 (cimag_internal_fn): New function.
13151 (_initialize_values): Register new internal functions.
13153 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13155 * infrun.c (stop_all_threads): If debug_infrun, always
13156 trace the wait status after wait_one, using
13157 target_waitstatus_to_string and target_pid_to_str.
13158 (handle_inferior_event): Replace various trace of
13159 wait status kind by a single trace.
13160 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13161 wait status kind image by target_waitstatus_to_string.
13162 * target/waitstatus.c (target_waitstatus_to_string): Fix
13165 2019-04-01 Tom Tromey <tromey@adacore.com>
13168 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13170 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13171 Pedro Alves <palves@redhat.com>
13173 * top.c (quit_force): Call 'finalize_values'.
13174 * value.c (finalize_values): New function.
13175 * value.h (finalize_values): Declare.
13177 2019-03-30 Eli Zaretskii <eliz@gnu.org>
13179 * NEWS: Announce $_gdb_major and $_gdb_minor.
13181 * top.c (init_gdb_version_vars): New function.
13182 (gdb_init): Call init_gdb_version_vars.
13184 2019-03-29 Tom Tromey <tromey@adacore.com>
13186 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13187 help text. Remove dead code.
13189 2019-03-29 Keith Seitz <keiths@redhat.com>
13191 From Siddhesh Poyarekar:
13192 * f-lang.h (f77_get_upperbound): Return LONGEST.
13193 (f77_get_lowerbound): Likewise.
13194 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13195 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13197 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13198 plongest to format print it.
13199 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13200 (f77_get_upperbound): Likewise.
13201 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13202 LOWER_BOUND to LONGEST.
13203 (f77_create_arrayprint_offset_tbl): Likewise.
13205 2019-03-29 Keith Seitz <keiths@redhat.com>
13207 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13208 %s/pulongest for TYPE_LENGTH instead of %d in format
13210 * ada-typerint.c (ada_print_type): Likewise.
13211 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13212 * compile/compile-c-support.c (generate_register_struct): Likewise.
13213 * gdbtypes.c (recursive_dump_type): Likewise.
13214 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13215 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13216 instead of %d in format strings.
13217 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13218 to std::min to ULONGEST.
13219 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13220 instead of %d in format strings.
13221 * tracepoint.c (info_scope_command): Likewise.
13222 * typeprint.c (print_offset_data::update)
13223 (print_offset_data::finish): Likewise.
13224 * xtensa-tdep.c (xtensa_store_return_value)
13225 (xtensa_push_dummy_call): Likewise.
13227 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13229 * windows-nat.c (display_selector): Fixed format specifications
13232 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13234 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13236 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13238 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13239 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13240 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13241 (nios2_linux_init_abi): Install it.
13243 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13245 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13247 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13249 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13251 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13252 Tom Tromey <tromey@adacore.com>
13254 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13256 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13258 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13259 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13260 method to compute the bounds of range types. Also print "[evaluated]"
13261 if the bounds' values come from a dynamic evaluation.
13263 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13265 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13266 whitespace when pretty printing is on.
13268 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13270 * ppc-linux-nat.c: Add include.
13272 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13274 * NEWS: Mention AArch64 Pointer Authentication.
13276 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13278 * arm-linux-nat.c: Add include.
13280 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13282 * source-cache.c (source_cache::get_source_lines): Re-read
13283 fullname after calling open_source_file.
13285 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13287 * NEWS: Mention TLS support for FreeBSD.
13289 2019-03-25 Tom Tromey <tromey@adacore.com>
13291 * minsyms.c (BUNCH_SIZE): Update comment.
13292 (~minimal_symbol_reader): Remove old comment.
13293 (compact_minimal_symbols): Update comment.
13294 (minimal_symbol_reader::install): Remove old comment. Update
13297 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13299 * s390-linux-nat.c: Add include.
13301 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13303 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13304 Call linux_get_hwcap.
13305 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13307 (aarch64_linux_get_hwcap): Remove function.
13308 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13310 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13312 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13313 * linux-tdep.c (linux_get_hwcap): Add function.
13314 (linux_get_hwcap2): Likewise.
13315 * linux-tdep.h (linux_get_hwcap): Add declaration.
13316 (linux_get_hwcap2): Likewise.
13317 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13318 (ppc_linux_get_hwcap2): Likewise.
13319 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13321 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13322 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13323 (ppc_linux_nat_target::read_description): Likewise.
13324 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13325 * s390-linux-nat.c: Likewise.
13326 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13328 2019-03-24 Tom Tromey <tom@tromey.com>
13330 * ada-lang.c (standard_lookup): Simplify initialization.
13331 (ada_lookup_symbol_nonlocal): Simplify return.
13332 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13333 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13334 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13335 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13337 * solib.c (solib_global_lookup): Simplify.
13338 * symtab.c (null_block_symbol): Remove.
13339 (symbol_cache_lookup): Simplify returns.
13340 (lookup_language_this): Simplify returns.
13341 (lookup_symbol_aux): Simplify return.
13342 (lookup_local_symbol): Simplify returns.
13343 (lookup_global_symbol_from_objfile): Simplify return.
13344 (lookup_symbol_in_objfile_symtabs)
13345 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13346 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13347 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13348 * cp-namespace.c (cp_lookup_bare_symbol)
13349 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13350 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13351 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13352 (cp_lookup_symbol_via_imports): Simplify initialization.
13353 (find_symbol_in_baseclass): Likewise.
13354 * symtab.h (null_block_symbol): Remove.
13355 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13356 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13357 (d_lookup_symbol_module): Likewise.
13358 (find_symbol_in_baseclass): Simplify initialization.
13360 2019-03-24 Tom Tromey <tom@tromey.com>
13362 * expression.h: Don't include symtab.h.
13363 (struct block): Forward declare.
13365 2019-03-24 Tom Tromey <tom@tromey.com>
13367 * c-exp.y (typebase): Remove casts.
13368 * gdbtypes.c (lookup_unsigned_typename, )
13369 (lookup_signed_typename): Remove cast.
13370 * eval.c (parse_to_comma_and_eval): Remove cast.
13371 * parse.c (write_dollar_variable): Remove cast.
13372 * block.h (struct block) <superblock>: Now const.
13373 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13374 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13375 (map_block): Make "block" const.
13376 * symfile.h (struct quick_symbol_functions)
13377 <map_matching_symbols>: Constify block argument to "callback".
13378 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13380 (find_pc_sect_compunit_symtab): Make "b" const.
13381 (find_symbol_at_address): Likewise.
13382 (search_symbols): Likewise.
13383 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13384 (dw2_debug_names_lookup_symbol): Likewise.
13385 (dw2_map_matching_symbols): Update.
13386 * p-valprint.c (pascal_val_print): Remove "block".
13387 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13388 (aux_add_nonlocal_symbols): Make "block" const.
13389 (resolve_subexp): Remove cast.
13390 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13392 (iterate_over_file_blocks): Likewise.
13393 * f-exp.y (%union) <bval>: Remove.
13394 * coffread.c (patch_opaque_types): Make "b" const.
13395 * spu-tdep.c (spu_catch_start): Make "block" const.
13396 * c-valprint.c (print_unpacked_pointer): Remove "block".
13397 * symmisc.c (dump_symtab_1): Make "b" const.
13398 (block_depth): Make "block" const.
13399 * d-exp.y (%union) <bval>: Remove.
13400 * cp-support.h (cp_lookup_rtti_type): Update.
13401 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13402 * psymtab.c (psym_lookup_symbol): Make "block" const.
13403 (maintenance_check_psymtabs): Make "b" const.
13404 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13405 (enumerate_locals, enumerate_args): Update.
13406 * python/py-symtab.c (stpy_global_block): Make "block" const.
13407 (stpy_static_block): Likewise.
13408 * inline-frame.c (block_starting_point_at): Make "new_block"
13410 * block.c (find_block_in_blockvector): Make return type const.
13411 (blockvector_for_pc_sect): Make "b" const.
13412 (find_block_in_blockvector): Make "b" const.
13414 2019-03-23 Tom Tromey <tom@tromey.com>
13416 * varobj.c (varobj_create): Update.
13417 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13418 * printcmd.c (display_command, do_one_display): Don't reset
13420 * parser-defs.h (enum innermost_block_tracker_type): Move to
13422 (innermost_block): Update comment.
13423 * parse.c (parse_exp_1): Add tracker_types parameter.
13424 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13425 tracker_types parameter. Reset innermost_block.
13426 (parse_exp_in_context): Remove.
13427 (parse_expression_for_completion): Update.
13428 * objfiles.c (~objfile): Don't reset expression_context_block or
13430 * expression.h (enum innermost_block_tracker_type): Move from
13432 (parse_exp_1): Add tracker_types parameter.
13433 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13434 reset innermost_block.
13436 2019-03-23 Tom Tromey <tom@tromey.com>
13438 * objfiles.h: Include bcache.h.
13440 2019-03-23 Tom Tromey <tom@tromey.com>
13442 * linespec.c (get_current_search_block): Use
13443 scoped_restore_current_language.
13444 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13446 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13447 Jiong Wang <jiong.wang@arm.com>
13449 * aarch64-linux-tdep.c
13450 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13452 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13454 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13455 Jiong Wang <jiong.wang@arm.com>
13457 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13459 (aarch64_analyze_prologue_test): Add PACIASP test.
13460 (aarch64_prologue_prev_register): Unmask PC value.
13462 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13463 Jiong Wang <jiong.wang@arm.com>
13465 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13466 (aarch64_dwarf2_prev_register): Unmask PC value.
13467 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13468 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13469 DW_CFA_AARCH64_negate_ra_state.
13470 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13472 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13473 Jiong Wang <jiong.wang@arm.com>
13475 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13477 (aarch64_pseudo_register_name): Likewise.
13478 (aarch64_pseudo_register_type): Likewise.
13479 (aarch64_pseudo_register_reggroup_p): Likewise.
13480 (aarch64_gdbarch_init): Add pauth registers.
13481 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13482 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13483 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13484 (struct gdbarch_tdep): Add regnum for ra_state.
13486 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13487 Jiong Wang <jiong.wang@arm.com>
13489 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13491 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13492 Jiong Wang <jiong.wang@arm.com>
13494 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13496 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13497 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13498 (aarch64_gdbarch_init): Add puth registers.
13499 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13500 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13501 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13503 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13504 Jiong Wang <jiong.wang@arm.com>
13506 * aarch64-linux-nat.c
13507 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13508 * aarch64-linux-tdep.c
13509 (aarch64_linux_core_read_description): Likewise.
13510 (aarch64_linux_get_hwcap): New function.
13511 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13512 (aarch64_linux_get_hwcap): New declaration.
13514 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13515 Jiong Wang <jiong.wang@arm.com>
13517 * aarch64-linux-nat.c
13518 (aarch64_linux_nat_target::read_description): Add pauth param.
13519 * aarch64-linux-tdep.c
13520 (aarch64_linux_core_read_description): Likewise.
13521 * aarch64-tdep.c (struct target_desc): Add in pauth.
13522 (aarch64_read_description): Add pauth param.
13523 (aarch64_gdbarch_init): Likewise.
13524 * aarch64-tdep.h (aarch64_read_description): Likewise.
13525 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13526 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13527 * features/Makefile: Add new files.
13528 * features/aarch64-pauth.c: New file.
13529 * features/aarch64-pauth.xml: New file.
13531 2019-03-20 Tom Tromey <tromey@adacore.com>
13533 * infrun.c (handle_inferior_event): Rename from
13534 handle_inferior_event_1. Create a scoped_value_mark.
13535 (handle_inferior_event): Remove.
13537 2019-03-19 Tom Tromey <tromey@adacore.com>
13539 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13540 * infrun.h (print_stop_event): Add "displays" parameter.
13541 * infrun.c (print_stop_event): Add "displays" parameter.
13543 2019-03-19 Pedro Alves <palves@redhat.com>
13545 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13546 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13547 to -1. Fix TABs vs spaces.
13548 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13549 * tui/tui-out.h (tui_ui_out) Add intro comments.
13550 <m_line, m_start_of_line>: In-class initialize, and add describing
13553 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13555 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13557 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13559 2019-03-18 Pedro Alves <palves@redhat.com>
13560 Eli Zaretskii <eliz@gnu.org>
13562 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13563 m_line and m_start_of_line.
13565 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13567 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13568 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13569 it returns a newline. This fixes a regression in TU mode, whereby
13570 the next line is output on the same screen line as the user input.
13572 2019-03-18 Tom Tromey <tromey@adacore.com>
13574 * minsyms.c (minimal_symbol_reader::install): Remove call to
13577 2019-03-18 Pedro Alves <palves@redhat.com>
13579 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13581 (apply_style): New, factored out from ...
13582 (apply_ansi_escape): ... this. Handle reverse video mode.
13583 (tui_set_reverse_mode): New function.
13584 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13585 * tui/tui-winsource.c (tui_show_source_line): Use
13586 tui_set_reverse_mode instead of setting A_STANDOUT.
13587 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13588 New setter methods.
13590 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13592 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13595 2019-03-18 Tom Tromey <tromey@adacore.com>
13597 * ada-lang.c (empty_array): Add "high" parameter.
13598 (ada_evaluate_subexp): Update.
13600 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13602 * unittests/string_view-selftests.c: Define
13603 _initialize_string_view_selftests unconditionally.
13605 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13608 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13610 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13613 * windows-nat.c (display_selector): Fix format specifiers.
13615 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13617 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13618 tui_refill_source_window instead of tui_refresh_win, to update the
13619 current execution line. This fixes redisplay of the current line
13620 when stepping through the code with "next" or "step".
13622 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13624 * source-cache.c (source_cache::get_source_lines): Call
13625 find_source_lines to initialize s->nlines. This fixes vertical
13626 scrolling of TUI source window when the DOWN arrow is pressed.
13628 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13630 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13631 linux-thread-db.c (_initialize_thread_db): Likewise.
13633 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13635 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13636 wclrtoeol in tui_show_source_line". This reverts changes made in
13637 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13639 2019-03-15 Tom Tromey <tom@tromey.com>
13641 * symtab.h (struct minimal_symbol): Derive from
13642 general_symbol_info.
13643 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13644 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13645 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13646 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13647 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13648 (MSYMBOL_SEARCH_NAME): Update.
13649 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13650 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13651 * minsyms.c (minimal_symbol_reader::record_full): Update.
13653 2019-03-15 Tom Tromey <tom@tromey.com>
13655 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13657 2019-03-15 Tom Tromey <tom@tromey.com>
13659 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13660 unique_xmalloc_ptr.
13661 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13663 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13664 (build_minimal_symbol_hash_tables)
13665 (minimal_symbol_reader::install): Update.
13667 2019-03-15 Tom Tromey <tom@tromey.com>
13669 * symtab.c (create_demangled_names_hash): Update.
13670 (symbol_set_names): Update.
13671 * objfiles.h (struct objfile_per_bfd_storage)
13672 <demangled_names_hash>: Now an htab_up.
13673 * objfiles.c (objfile_per_bfd_storage): Simplify.
13675 2019-03-15 Tom Tromey <tom@tromey.com>
13677 * objfiles.h (struct objfile_per_bfd_storage): Declare
13679 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13681 (get_objfile_bfd_data): Use new. Don't initialize
13683 (free_objfile_per_bfd_storage): Remove.
13684 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13686 2019-03-15 Tom Tromey <tom@tromey.com>
13688 * symfile.c (reread_symbols): Update.
13689 * objfiles.c (objfile::objfile): Update.
13690 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13691 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13693 (minimal_symbol_reader::install): Update.
13694 (terminate_minimal_symbol_table): Remove.
13695 * jit.c (jit_object_close_impl): Update.
13697 2019-03-15 Tom Tromey <tom@tromey.com>
13699 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13702 2019-03-15 Tom Tromey <tom@tromey.com>
13704 * objfiles.h (struct objfile_per_bfd_storage)
13705 <demangled_hash_languages>: Now a bitset.
13706 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13707 (lookup_minimal_symbol): Update.
13709 2019-03-15 Tom Tromey <tom@tromey.com>
13711 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13712 Don't return the symbol.
13713 * coffread.c (record_minimal_symbol): Use record_full.
13715 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13717 The MS-Windows port of ncurses fails to switch to a color pair if
13718 one or both of the colors are the implicit default colors. This
13719 change records the default colors when TUI is initialized, and
13720 then specifies them explicitly when a color pair uses the default
13721 colors. This allows color styling in TUI mode on MS-Windows.
13723 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13725 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13726 colors in ncurses_norm_attr.
13727 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13728 "none", replace it with the default color recorded in
13731 2019-03-14 Tom Tromey <tromey@adacore.com>
13733 * source-cache.h (class source_cache) <get_source_lines>: Return
13735 * source-cache.c (source_cache::extract_lines): Handle case where
13736 first_pos==npos. Return std::string.
13737 (source_cache::get_source_lines): Update.
13739 2019-03-14 Tom Tromey <tromey@adacore.com>
13741 * NEWS: Add item for "style sources" commands.
13742 * source-cache.c (source_cache::get_source_lines): Check
13744 * cli/cli-style.c (source_styling): New global.
13745 (_initialize_cli_style): Add "style sources" commands.
13746 (show_style_sources): New function.
13747 * cli/cli-style.h (source_styling): Declare.
13749 2019-03-14 Pedro Alves <palves@redhat.com>
13750 Tom Tromey <tromey@adacore.com>
13752 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13753 * tui/tui-winsource.c (tui_refill_source_window): New function,
13755 (tui_horizontal_source_scroll): ... here. Move some logic.
13756 * cli/cli-style.c (set_style_enabled): Notify new observable.
13757 * tui/tui-hooks.c (tui_redisplay_source): New function.
13758 (tui_attach_detach_observers): Attach or detach
13759 tui_redisplay_source.
13760 * observable.h (source_styling_changed): New observable.
13761 * observable.c: Define source_styling_changed observable.
13763 2019-03-13 Tom Tromey <tromey@adacore.com>
13765 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13766 (i386_gnu_nat_target::store_registers): Update.
13767 * target-debug.h (target_debug_print_std_string): New macro.
13768 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13769 * windows-tdep.c (display_one_tib): Update.
13770 * tui/tui-stack.c (tui_make_status_line): Update.
13771 * top.c (print_inferior_quit_action): Update.
13772 * thread.c (thr_try_catch_cmd): Update.
13773 (add_thread_with_info): Update.
13774 (thread_target_id_str): Update.
13775 (thr_try_catch_cmd): Update.
13776 (thread_command): Update.
13777 (thread_find_command): Update.
13778 * record-btrace.c (record_btrace_target::info_record)
13779 (record_btrace_resume_thread, record_btrace_target::resume)
13780 (record_btrace_cancel_resume, record_btrace_step_thread)
13781 (record_btrace_target::wait, record_btrace_target::wait)
13782 (record_btrace_target::wait, record_btrace_target::stop): Update.
13783 * progspace.c (print_program_space): Update.
13784 * process-stratum-target.c
13785 (process_stratum_target::thread_address_space): Update.
13786 * linux-fork.c (linux_fork_mourn_inferior)
13787 (detach_checkpoint_command, info_checkpoints_command)
13788 (linux_fork_context): Update.
13789 (linux_fork_detach): Update.
13790 (class scoped_switch_fork_info): Update.
13791 (delete_checkpoint_command): Update.
13792 * infrun.c (follow_fork_inferior): Update.
13793 (follow_fork_inferior): Update.
13794 (proceed_after_vfork_done): Update.
13795 (handle_vfork_child_exec_or_exit): Update.
13796 (follow_exec): Update.
13797 (displaced_step_prepare_throw): Update.
13798 (displaced_step_restore): Update.
13799 (start_step_over): Update.
13800 (resume_1): Update.
13801 (clear_proceed_status_thread): Update.
13803 (print_target_wait_results): Update.
13804 (do_target_wait): Update.
13805 (context_switch): Update.
13806 (stop_all_threads): Update.
13807 (restart_threads): Update.
13808 (finish_step_over): Update.
13809 (handle_signal_stop): Update.
13810 (switch_back_to_stepped_thread): Update.
13811 (keep_going_pass_signal): Update.
13812 (print_exited_reason): Update.
13813 (normal_stop): Update.
13814 * inferior.c (inferior_pid_to_str): Change return type.
13815 (print_selected_inferior): Update.
13816 (add_inferior): Update.
13817 (detach_inferior): Update.
13818 * dummy-frame.c (fprint_dummy_frames): Update.
13819 * dcache.c (dcache_info_1): Update.
13820 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13821 (btrace_fetch, btrace_clear): Update.
13822 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13823 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13825 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13826 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13827 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13828 * gdbarch.c, gdbarch.h: Rebuild.
13829 * gdbarch.sh (core_pid_to_str): Change return type.
13830 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13832 (windows_nat_target::pid_to_str): Change return type.
13833 (windows_delete_thread): Update.
13834 (windows_nat_target::attach): Update.
13835 (windows_nat_target::files_info): Update.
13836 * target-delegates.c: Rebuild.
13837 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13839 (sol_thread_target::pid_to_str): Change return type.
13840 * remote.c (class remote_target) <pid_to_str>: Change return
13842 (remote_target::pid_to_str): Change return type.
13843 (extended_remote_target::attach, remote_target::remote_stop_ns)
13844 (remote_target::remote_notif_remove_queued_reply)
13845 (remote_target::push_stop_reply, remote_target::disable_btrace):
13847 (extended_remote_target::attach): Update.
13848 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13850 (gdbsim_target::pid_to_str): Change return type.
13851 * ravenscar-thread.c (struct ravenscar_thread_target)
13852 <pid_to_str>: Change return type.
13853 (ravenscar_thread_target::pid_to_str): Change return type.
13854 * procfs.c (class procfs_target) <pid_to_str>: Change return
13856 (procfs_target::pid_to_str): Change return type.
13857 (procfs_target::attach): Update.
13858 (procfs_target::detach): Update.
13859 (procfs_target::fetch_registers): Update.
13860 (procfs_target::store_registers): Update.
13861 (procfs_target::wait): Update.
13862 (procfs_target::files_info): Update.
13863 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13864 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13866 (nto_procfs_target::pid_to_str): Change return type.
13867 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13868 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13870 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13871 (exit_lwp): Update.
13872 (attach_proc_task_lwp_callback, get_detach_signal)
13873 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13874 (linux_nat_target::resume, wait_lwp, stop_callback)
13875 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13876 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13877 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13878 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13879 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13881 (inf_ptrace_target::attach): Update.
13882 (inf_ptrace_target::files_info): Update.
13883 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13885 (go32_nat_target::pid_to_str): Change return type.
13886 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13887 (gnu_nat_target::wait): Update.
13888 (gnu_nat_target::wait): Update.
13889 (gnu_nat_target::resume): Update.
13890 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13891 (fbsd_nat_target::wait): Update.
13892 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13894 (darwin_nat_target::attach): Update.
13895 * corelow.c (class core_target) <pid_to_str>: Change return type.
13896 (core_target::pid_to_str): Change return type.
13897 * target.c (normal_pid_to_str): Change return type.
13898 (default_pid_to_str): Likewise.
13899 (target_pid_to_str): Change return type.
13900 (target_translate_tls_address): Update.
13901 (target_announce_detach): Update.
13902 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13904 (bsd_uthread_target::pid_to_str): Change return type.
13905 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13907 (bsd_kvm_target::pid_to_str): Change return type.
13908 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13910 (aix_thread_target::pid_to_str): Change return type.
13911 * target.h (struct target_ops) <pid_to_str>: Change return type.
13912 (target_pid_to_str, normal_pid_to_str): Likewise.
13913 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13915 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13917 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13919 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13921 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13923 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13926 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13928 * NEWS: Mention that the new default MI version is 3. Mention
13929 changes to the output of commands and events that deal with
13930 multi-location breakpoints.
13931 * breakpoint.c: Include "mi/mi-out.h".
13932 (print_one_breakpoint): Change output syntax if using MI version
13934 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13936 (mi_multi_location_breakpoint_output_fixed): New.
13937 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13938 (mi_cmd_fix_multi_location_breakpoint_output): New.
13939 (mi_multi_location_breakpoint_output_fixed): New.
13940 * mi/mi-cmds.c (mi_cmds): Register command
13941 -fix-multi-location-breakpoint-output.
13942 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13945 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13947 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13948 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13949 instantiate mi_ui_out based on interpreter name.
13950 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13951 * mi/mi-main.c (mi_load_progress): Likewise.
13953 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13955 * NEWS: Combine separate "New targets" sections for 8.3.
13957 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13959 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13960 (ppcfbsd_init_abi): Install gdbarch
13961 "fetch_tls_load_module_address" and "get_thread_local_address"
13964 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13966 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13967 (riscv_fbsd_init_abi): Install gdbarch
13968 "fetch_tls_load_module_address" and "get_thread_local_address"
13971 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13973 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13974 (i386fbsd_init_abi): Install gdbarch
13975 "fetch_tls_load_module_address" and "get_thread_local_address"
13978 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13980 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13981 (amd64fbsd_init_abi): Install gdbarch
13982 "fetch_tls_load_module_address" and "get_thread_local_address"
13985 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13987 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13988 (struct fbsd_pspace_data): New type.
13989 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13990 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13991 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13992 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13993 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13995 2019-03-12 John Baldwin <jhb@FreeBSD.org>
13997 * gdbtypes.c (lookup_struct_elt): New function.
13998 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13999 * gdbtypes.h (struct struct_elt): New type.
14000 (lookup_struct_elt): New prototype.
14002 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14004 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14005 remove disabled code block.
14007 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14009 * gdbarch.sh (get_thread_local_address): New method.
14010 * gdbarch.h, gdbarch.c: Regenerate.
14011 * target.c (target_translate_tls_address): Use
14012 gdbarch_get_thread_local_address if present instead of
14013 target::get_thread_local_address.
14015 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14017 * target.h (target::get_thread_local_address): Update comment.
14019 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14021 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14022 objfile->separate_debug_objfile_backlink if not NULL.
14024 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14026 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14027 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14028 (amd64bsd_store_inferior_registers): Likewise.
14029 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14030 Enable segment base registers.
14031 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14032 PT_GETFSBASE and PT_GETGSBASE.
14033 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14035 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14036 segment base registers.
14037 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14039 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14041 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14042 Update calls to i386_target_description to add 'segments'
14044 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14045 add segment base registers.
14046 * arch/i386.c (i386_create_target_description): Add 'segments'
14047 parameter to enable segment base registers.
14048 * arch/i386.h (i386_create_target_description): Likewise.
14049 * features/i386/32bit-segments.xml: New file.
14050 * features/i386/32bit-segments.c: Generate.
14051 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14052 call to i386_target_description to add 'segments' parameter.
14053 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14054 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14055 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14056 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14057 if feature is present.
14058 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14059 Add 'segments' parameter to call to i386_target_description.
14060 (i386_target_description): Add 'segments' parameter to enable
14061 segment base registers.
14062 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14063 to call to i386_target_description.
14064 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14065 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14066 Define I386_NUM_REGS.
14067 (i386_target_description): Add 'segments' parameter to enable
14068 segment base registers.
14070 2019-03-12 Eli Zaretskii <eliz@gnu.org>
14073 * source-cache.c: #undef open and close, to avoid unresolved
14074 externals during linking.
14076 2019-03-12 Tom Tromey <tromey@adacore.com>
14078 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14079 const. Add initializers.
14080 (_initialize_remote): Don't initialize ptid globals.
14082 2019-03-12 Pedro Alves <palves@redhat.com>
14084 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14086 2019-03-12 Pedro Alves <palves@redhat.com>
14088 * cp-name-parser.y (main): Remove unused 'len' variable.
14090 2019-03-12 Tom Tromey <tromey@adacore.com>
14092 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14093 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14095 2019-03-12 Tom Tromey <tromey@adacore.com>
14097 * linux-nat.c (iterate_over_lwps): Update.
14098 (stop_callback): Remove parameter.
14099 (stop_wait_callback, detach_callback, resume_set_callback)
14100 (select_singlestep_lwp_callback, set_ignore_sigint)
14101 (status_callback, resumed_callback, resume_clear_callback)
14102 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14104 (linux_nat_target::detach, linux_nat_target::resume)
14105 (linux_stop_and_wait_all_lwps, select_event_lwp)
14106 (linux_nat_filter_event, linux_nat_wait_1)
14107 (linux_nat_target::kill, linux_nat_target::stop)
14108 (linux_nat_target::stop): Update.
14109 (linux_nat_resume_callback): Change type.
14110 (resume_stopped_resumed_lwps, count_events_callback)
14111 (select_event_lwp_callback): Likewise.
14112 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14113 * arm-linux-nat.c (struct update_registers_data): Remove.
14114 (update_registers_callback): Change type.
14115 (arm_linux_insert_hw_breakpoint1): Update.
14116 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14118 (x86_linux_dr_set_addr): Update.
14119 (x86_linux_dr_set_control): Update.
14120 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14121 (iterate_over_lwps): Use gdb::function_view.
14122 * nat/aarch64-linux-hw-point.c (struct
14123 aarch64_dr_update_callback_param): Remove.
14124 (debug_reg_change_callback): Change type.
14125 (aarch64_notify_debug_reg_change): Update.
14126 * s390-linux-nat.c (s390_refresh_per_info): Update.
14128 2019-03-11 Tom Tromey <tromey@adacore.com>
14130 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14131 redundant assignment to "this_cu".
14133 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14135 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14137 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14139 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14141 (rank_one_type): ... this.
14143 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14145 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14147 (rank_one_type): ... this.
14149 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14151 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14153 (rank_one_type): ... this.
14155 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14157 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14159 (rank_one_type): ... this.
14161 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14163 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14165 (rank_one_type): ... this.
14167 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14169 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14171 (rank_one_type): ... this.
14173 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14175 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14177 (rank_one_type): ... this.
14179 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14181 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14183 (rank_one_type): ... this.
14185 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14187 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14189 (rank_one_type): ... this.
14191 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14193 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14195 (rank_one_type): ... this.
14197 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14199 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14201 (rank_one_type): ... this.
14203 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14205 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14207 (rank_one_type): ... this.
14209 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14211 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14212 inferior-events' shows the example events.
14214 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14216 Support styling on native MS-Windows console
14219 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14220 on MS-Windows if $TERM is not defined.
14222 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14224 * posix-hdep.c (gdb_console_fputs):
14225 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14227 * ui-file.h (gdb_console_fputs): Add prototype.
14229 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14230 back to fputs only if the former returns zero.
14232 2019-03-07 Tom Tromey <tom@tromey.com>
14234 * symmisc.c (print_symbol_bcache_statistics): Update.
14235 (print_objfile_statistics): Update.
14236 * symfile.c (allocate_symtab): Update.
14237 * stabsread.c: Don't include bcache.h.
14238 * psymtab.h (struct psymbol_bcache): Don't declare.
14239 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14240 (psymbol_bcache_init, psymbol_bcache_free)
14241 (psymbol_bcache_get_bcache): Don't declare.
14242 * psymtab.c (struct psymbol_bcache): Remove.
14243 (psymtab_storage::psymtab_storage): Update.
14244 (psymtab_storage::~psymtab_storage): Update.
14245 (psymbol_bcache_init, psymbol_bcache_free)
14246 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14247 (add_psymbol_to_bcache): Update.
14248 (allocate_psymtab): Update.
14249 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14250 macro_cache>: No longer pointers.
14251 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14252 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14253 * macrotab.c (macro_bcache): Update.
14254 * macroexp.c: Don't include bcache.h.
14255 * gdbtypes.c (check_types_worklist): Update.
14256 (types_deeply_equal): Remove TRY/CATCH. Update.
14257 * elfread.c (elf_symtab_read): Update.
14258 * dwarf2read.c: Don't include bcache.h.
14259 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14260 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14261 (print_bcache_statistics, bcache_memory_used): Don't declare.
14262 (struct bcache): Move from bcache.c. Add constructor, destructor,
14263 methods. Rename all data members.
14264 * bcache.c (struct bcache): Move to bcache.h.
14265 (bcache::expand_hash_table): Rename from expand_hash_table.
14267 (bcache::insert): Rename from bcache_full.
14268 (bcache::compare): Rename from bcache_compare.
14269 (bcache_xmalloc): Remove.
14270 (bcache::~bcache): Rename from bcache_xfree.
14271 (bcache::print_statistics): Rename from print_bcache_statistics.
14272 (bcache::memory_used): Rename from bcache_memory_used.
14274 2019-03-07 Pedro Alves <palves@redhat.com>
14276 * infrun.c (normal_stop): Also check for
14277 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14279 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14281 * f-lang.c (value_from_host_double): Moved to...
14282 * value.c (value_from_host_double): ...here.
14283 * value.h (value_from_host_double): Declare.
14284 * guile/scm-math.c (vlscm_convert_typed_number): Use
14285 value_from_host_double.
14286 (vlscm_convert_number): Likewise.
14287 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14288 * python/py-value.c (convert_value_from_python): Likewise.
14290 2019-03-06 Tom Tromey <tom@tromey.com>
14292 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14294 2019-03-06 Tom Tromey <tom@tromey.com>
14296 * utils.h (free_current_contents): Don't declare.
14297 * utils.c (free_current_contents): Remove.
14299 2019-03-06 Tom Tromey <tom@tromey.com>
14301 * top.c (quit_force): Update.
14302 * main.c (captured_command_loop): Update.
14303 * common/new-op.c (operator new): Update.
14304 * common/common-exceptions.c (struct catcher)
14305 <save_cleanup_chain>: Remove member.
14306 (exceptions_state_mc_init): Update.
14307 (exception_try_scope_entry): Return nullptr.
14308 (exception_try_scope_exit, exception_rethrow)
14309 (throw_exception_sjlj, throw_exception_cxx): Update.
14310 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14311 (all_cleanups, do_cleanups, discard_cleanups)
14312 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14313 (restore_cleanups, restore_final_cleanups): Don't declare.
14314 (do_final_cleanups): Remove parameter.
14315 * common/cleanups.c (cleanup_chain, make_cleanup)
14316 (make_cleanup_dtor, all_cleanups, do_cleanups)
14317 (discard_my_cleanups, discard_cleanups)
14318 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14319 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14320 (null_cleanup): Remove.
14321 (do_final_cleanups): Remove parameter.
14323 2019-03-06 Tom Tromey <tom@tromey.com>
14325 * remote.c (remote_target::remote_parse_stop_reply): Use
14326 unique_xmalloc_ptr.
14328 2019-03-06 Tom Tromey <tom@tromey.com>
14330 * stabsread.c (struct stabs_field_info): Rename from field_info.
14331 <list, fnlist>: Add initializers.
14332 <obstack>: New member.
14333 (read_member_functions, read_struct_fields, read_baseclasses):
14334 Allocate on obstack. Don't use cleanups.
14335 (read_one_struct_field, read_member_functions, read_struct_fields)
14336 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14337 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14338 (read_struct_type): Update.
14340 2019-03-06 Tom Tromey <tom@tromey.com>
14342 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14343 * common/filestuff.h (make_cleanup_close): Don't declare.
14344 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14347 2019-03-06 Tom Tromey <tom@tromey.com>
14349 * solib-aix.c: Use make_scope_exit.
14351 2019-03-06 Tom Tromey <tom@tromey.com>
14353 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14354 Use make_scope_exit.
14356 2019-03-06 Tom Tromey <tom@tromey.com>
14358 * solib-svr4.c (disable_probes_interface): Remove parameter.
14359 (svr4_handle_solib_event): Use make_scope_exit.
14361 2019-03-06 Tom Tromey <tom@tromey.com>
14363 * remote.c (struct stop_reply_deleter): Remove.
14364 (stop_reply_up): Update.
14365 (struct stop_reply): Derive from notif_event. Don't typedef.
14366 <regcache>: Now a std::vector.
14367 (stop_reply_xfree): Remove.
14368 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14369 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14370 (remote_target::discard_pending_stop_replies): Use delete.
14371 (remote_target::remote_parse_stop_reply): Update.
14372 (remote_target::process_stop_reply): Update.
14373 * remote-notif.h (struct notif_event): Add virtual destructor.
14374 Remove "dtr" member.
14375 (struct notif_client) <alloc_event>: Return a unique_ptr.
14376 (notif_event_xfree): Don't declare.
14377 (notif_event_up): New typedef.
14378 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14379 (notif_event_xfree, do_notif_event_xfree): Remove.
14380 (remote_notif_state_xfree): Update.
14382 2019-03-06 Tom Tromey <tom@tromey.com>
14384 * infrun.c (displaced_step_clear_cleanup): Now a
14385 forward_scope_exit type.
14386 (displaced_step_prepare_throw): Update.
14387 (displaced_step_fixup): Update.
14389 2019-03-06 Tom Tromey <tom@tromey.com>
14391 * inferior.h (class inferior): Update comment.
14392 * gdbthread.h (class thread_info): Update comment.
14394 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14395 Tom Tromey <tom@tromey.com>
14397 * stabsread.h (struct stab_section_list): Remove.
14398 (coffstab_build_psymtabs): Update.
14399 * dbxread.c (symbuf_sections): Now a std::vector.
14400 (sect_idx): New global.
14401 (fill_symbuf): Update.
14402 (coffstab_build_psymtabs): Change type of stabsects parameter.
14404 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14406 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14407 (coff_locate_sections): Update.
14408 (coff_symfile_read): Remove cleanups. Update.
14409 (init_stringtab): Add storage parameter.
14410 (free_stringtab, free_stringtab_cleanup): Remove.
14411 (init_lineno): Add storage parameter.
14412 (free_linetab, free_linetab_cleanup): Remove.
14414 2019-03-06 Pedro Alves <palves@redhat.com>
14416 * linux-fork.c (fork_info::clobber_regs): Delete.
14417 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14418 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14420 (scoped_switch_fork_info::scoped_switch_fork_info)
14421 (checkpoint_command, linux_fork_context): Adjust
14422 fork_save_infrun_state calls.
14424 2019-03-06 Pedro Alves <palves@redhat.com>
14426 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14427 (inf_has_multiple_threads): Return 'bool' and rewrite using
14428 inferior_info::threads().
14430 2019-03-06 Pedro Alves <palves@redhat.com>
14432 * linux-fork.c: Include <list>.
14433 (fork_list): Now a std::list instance.
14434 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14435 (forks_exist_p, find_last_fork): Adjust.
14436 (new_fork): Delete.
14438 (add_fork): Adjust.
14439 (free_fork): Delete, folded into fork_info::~fork_info().
14440 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14442 (init_fork_list): Delete.
14443 (linux_fork_killall, linux_fork_mourn_inferior)
14444 (linux_fork_detach, info_checkpoints_command): Adjust.
14445 (_initialize_linux_fork): No longer call init_fork_list.
14447 2019-03-06 Pedro Alves <palves@redhat.com>
14449 * linux-fork.c (new_fork): New, split out of ...
14450 (add_fork): ... this. Return void. Move "first fork" special
14451 case from here, to ...
14452 (checkpoint_command): ... here.
14453 * linux-linux.h (add_fork): Return void.
14455 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14457 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14459 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14460 Chris January <chris.january@arm.com>
14461 David Lecomber <david.lecomber@arm.com>
14463 * f-exp.y: New token, UNOP_INTRINSIC.
14464 (exp): New pattern using UNOP_INTRINSIC token.
14465 (f77_keywords): Add 'abs' keyword.
14466 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14467 (value_from_host_double): New function.
14468 (evaluate_subexp_f): Support UNOP_ABS.
14470 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14472 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14475 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14477 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14478 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14479 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14481 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14483 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14485 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14486 Chris January <chris.january@arm.com>
14488 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14489 * f-exp.y: Define 'KIND' token.
14490 (exp): New pattern for KIND expressions.
14491 (ptype): Handle types with a kind extension.
14492 (direct_abs_decl): Extend to spot kind extensions.
14493 (f77_keywords): Add 'kind' to the list.
14494 (push_kind_type): New function.
14495 (convert_to_kind_type): New function.
14496 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14497 * parse.c (operator_length_standard): Likewise.
14498 * parser-defs.h (enum type_pieces): Add tp_kind.
14499 * std-operator.def: Add UNOP_KIND.
14501 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14503 * f-exp.y (f_parse): Set yydebug.
14505 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14507 * f-lang.c (evaluate_subexp_f): New function.
14508 (exp_descriptor_f): New global.
14509 (f_language_defn): Use exp_descriptor_f instead of
14510 exp_descriptor_standard.
14512 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14514 * f-exp.y (struct token): Add comments.
14515 (dot_ops): Remove uppercase versions and the end marker.
14516 (f77_keywords): Likewise.
14517 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14518 entries in the dot_ops array are case insensitive, and use
14519 strncasecmp to compare strings. Also some whitespace cleanup in
14520 this area. Similar for the f77_keywords array, except entries in
14521 this list might be case sensitive.
14523 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14525 * f-exp.y (struct f77_boolean_val): Add comments.
14526 (boolean_values): Remove uppercase versions, and end marker.
14527 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14528 and use strncasecmp to achieve case insensitivity. Additionally,
14529 perform whitespace cleanup around this code.
14531 2019-03-06 Tom Tromey <tromey@adacore.com>
14533 * remote-sim.c (gdbsim_target_open): Use result of
14536 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14537 Dirk Schubert <dirk.schubert@arm.com>
14538 Chris January <chris.january@arm.com>
14540 * eval.c (evaluate_subexp_standard): Call Fortran argument
14542 * f-lang.c (struct value): A value which can be passed into a
14543 Fortran function call.
14544 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14546 (struct type): Value ready for a Fortran function call.
14547 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14549 * f-lang.h (fortran_argument_convert): Declaration.
14550 (fortran_preserve_arg_pointer): Declaration.
14551 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14553 2019-03-05 Tom Tromey <tromey@adacore.com>
14555 * python/py-prettyprint.c (print_string_repr): Remove #if.
14556 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14558 2019-03-05 Tom Tromey <tromey@adacore.com>
14560 * target.c (the_dummy_target): Move later. Change type to
14562 (initialize_targets): Don't initialize the_dummy_target.
14564 2019-03-05 Tom Tromey <tromey@adacore.com>
14566 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14567 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14569 2019-03-05 Tom Tromey <tromey@adacore.com>
14571 * windows-nat.c (windows_nat_target::attach)
14572 (windows_nat_target::detach): Don't call gdb_flush.
14573 * valprint.c (generic_val_print, val_print, val_print_string):
14574 Don't call gdb_flush.
14575 * utils.c (defaulted_query): Don't call gdb_flush.
14576 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14577 * target.c (target_announce_detach): Don't call gdb_flush.
14578 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14579 * remote.c (extended_remote_target::attach): Don't call
14581 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14582 * printcmd.c (do_examine): Don't call gdb_flush.
14583 (info_display_command): Don't call gdb_flush.
14584 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14585 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14586 * memattr.c (info_mem_command): Don't call gdb_flush.
14587 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14588 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14589 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14590 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14591 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14592 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14593 (gnu_nat_target::detach): Don't call gdb_flush.
14594 * f-valprint.c (f_val_print): Don't call gdb_flush.
14595 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14596 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14597 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14599 * c-valprint.c (c_val_print): Don't call gdb_flush.
14600 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14602 2019-03-05 Tom Tromey <tromey@adacore.com>
14604 * varobj.c (update_dynamic_varobj_children): Update.
14605 (install_default_visualizer): Use reset, not release.
14606 * value.c (set_internalvar): Update.
14607 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14608 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14609 ATTRIBUTE_UNUSED_RESULT.
14611 2019-03-05 Tom Tromey <tromey@adacore.com>
14613 * remote.c (class scoped_remote_fd) <release>: Add
14614 ATTRIBUTE_UNUSED_RESULT.
14616 2019-03-05 Tom Tromey <tromey@adacore.com>
14618 * macroexp.c (struct macro_buffer) <release>: Add
14619 ATTRIBUTE_UNUSED_RESULT.
14621 2019-03-05 Tom Tromey <tromey@adacore.com>
14623 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14624 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14625 ATTRIBUTE_UNUSED_RESULT.
14627 2019-03-05 Tom Tromey <tromey@adacore.com>
14629 * common/scoped_fd.h (class scoped_fd) <release>: Add
14630 ATTRIBUTE_UNUSED_RESULT.
14632 2019-03-05 Tom Tromey <tromey@adacore.com>
14634 * parser-defs.h (struct parser_state) <release>: Add
14635 ATTRIBUTE_UNUSED_RESULT.
14637 2019-03-05 Tom Tromey <tromey@adacore.com>
14639 * utils.h (class gdb_argv) <release>: Add
14640 ATTRIBUTE_UNUSED_RESULT.
14641 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14643 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14645 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14646 for-loop range, to avoid compiler warnings.
14648 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14649 avoid compiler warnings about unused variables.
14651 * NEWS: Mention end of support for native debugging on MS-Windows
14655 * common/netstuff.c:
14656 * gdbserver/gdbreplay.c
14657 * gdbserver/remote-utils.c:
14659 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14660 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14661 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14662 'getaddrinfo' and 'freeaddrinfo' were not available before
14663 Windows XP, and mingw.org's MinGW headers by default define
14664 _WIN32_WINNT to 0x500.
14666 2019-03-01 Gary Benson <gbenson@redhat.com>
14668 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14670 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14671 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14674 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14675 set_sigint_trap, clear_sigint_trap.
14677 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14679 * target.c (target_detach): Clear the regcache and the
14682 2019-02-27 Pedro Alves <palves@redhat.com>
14684 * utils.c (set_screen_size): When we cap the height/width sizes,
14685 tweak the corresponding command variable to show "unlimited":
14687 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14688 Pedro Alves <palves@redhat.com>
14690 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14691 before calling rl_set_screen_size.
14693 2019-02-27 Tom Tromey <tromey@adacore.com>
14695 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14697 * python/py-value.c: Remove Python 2.4 workaround.
14698 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14700 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14701 Python 2.4 workaround.
14702 * python/python-internal.h: Remove Python 2.4 comment.
14703 (Py_ssize_t): Don't define.
14704 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14705 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14706 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14707 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14708 * python/python.c (do_start_initialization): Remove Python 2.4
14710 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14711 (print_children): Remove Python 2.4 workaround.
14712 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14714 (CHARBUFFERPROC_NAME): Remove.
14715 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14716 Python 2.4 workaround.
14718 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14720 * NEWS: Note minimum Python version.
14722 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14724 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14725 code from these functions. Remove corresponding ifdefs. Use
14726 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14727 Remove gotos and target of gotos.
14728 (infpy_search_memory): Likewise.
14730 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14732 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14733 (hppa_gdbarch_init): Don't register deleted functions with
14736 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14738 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14739 (h8300_unwind_sp): Delete.
14740 (h8300_dummy_id): Delete.
14741 (h8300_gdbarch_init): Don't register deleted functions with
14744 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14746 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14747 (ft32_unwind_pc): Delete.
14748 (ft32_unwind_sp): Delete.
14749 (ft32_gdbarch_init): Don't register deleted functions with
14752 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14754 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14755 (frv_unwind_pc): Delete.
14756 (frv_unwind_sp): Delete.
14757 (frv_gdbarch_init): Don't register deleted functions with
14760 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14762 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14763 (riscv_unwind_pc): Delete.
14764 (riscv_unwind_sp): Delete.
14765 (riscv_gdbarch_init): Don't register deleted functions with
14768 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14770 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14771 (csky_unwind_pc): Delete.
14772 (csky_unwind_sp): Delete.
14773 (csky_gdbarch_init): Don't register deleted functions with
14776 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14778 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14779 (cris_unwind_pc): Delete.
14780 (cris_unwind_sp): Delete.
14781 (cris_gdbarch_init): Don't register deleted functions with
14784 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14786 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14787 (bfin_unwind_pc): Delete.
14788 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14790 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14792 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14793 (arm_unwind_pc): Delete.
14794 (arm_unwind_sp): Delete.
14795 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14797 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14799 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14800 (arc_unwind_pc): Delete.
14801 (arc_unwind_sp): Delete.
14802 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14804 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14806 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14807 (alpha_unwind_pc): Delete.
14808 (alpha_gdbarch_init): Don't register deleted functions with
14811 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14813 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14814 (aarch64_unwind_pc): Delete.
14815 (aarch64_unwind_sp): Delete.
14816 (aarch64_gdbarch_init): Don't register deleted functions with
14819 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14821 * gdbtypes.c (type_align): Don't consider static members when
14822 computing structure alignment.
14824 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14826 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14827 return 0 for other types.
14828 * arch-utils.c (default_type_align): Always return 0.
14829 * gdbarch.h: Regenerate.
14830 * gdbarch.sh (type_align): Extend comment.
14831 * gdbtypes.c (type_align): Add additional comments, always call
14832 gdbarch_type_align before applying the default rules.
14833 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14834 generic code will then apply a suitable default.
14835 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14836 types, return 0 for other types.
14838 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14840 * NEWS: Create a new section for the next release branch.
14841 Rename the section of the current branch, now that it has
14844 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14846 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14847 * version.in: Bump version to 8.3.50.DATE-git.
14849 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14851 * aix-thread.c (ptid_cmp): Remove unused variable.
14852 (get_signaled_thread): Likewise.
14853 (store_regs_user_thread): Likewise.
14854 (store_regs_kernel_thread): Likewise.
14855 (fetch_regs_kernel_thread): Remove shadowed variable.
14857 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14859 * features/riscv/32bit-cpu.xml: Add register numbers.
14860 * features/riscv/32bit-fpu.c: Regenerate.
14861 * features/riscv/32bit-fpu.xml: Add register numbers.
14862 * features/riscv/64bit-cpu.xml: Add register numbers.
14863 * features/riscv/64bit-fpu.c: Regenerate.
14864 * features/riscv/64bit-fpu.xml: Add register numbers.
14866 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14868 * NEWS: Mention two argument form of gdb.Value constructor.
14869 * python/py-value.c (convert_buffer_and_type_to_value): New
14871 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14872 Add support for handling an optional second argument. Call
14873 convert_buffer_and_type_to_value as appropriate.
14874 * python/python-internal.h (Py_buffer_deleter): New struct.
14875 (Py_buffer_up): New typedef.
14877 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14879 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14880 instead of releasing ownership.
14882 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14884 * dwarf2read.c (open_and_init_dwp_file): Call
14885 elf_numsections instead of bfd_count_sections to initialize
14886 dwp_file->num_sections.
14888 2019-02-25 Tom Tromey <tromey@adacore.com>
14890 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14892 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14894 * gcore.in: Add '--readnever' option when invoking GDB.
14896 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14898 * MAINTAINERS: Update my email address.
14900 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14902 * build-id.c (build_id_to_debug_bfd_1): New function.
14903 (build_id_to_debug_bfd): Look for separate debug file in
14906 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14908 * gdbarch.sh: Update the copyright year range that is placed into
14911 2019-02-22 Keith Seitz <keiths@redhat.com>
14914 * linespec.c (create_sals_line_offset): Search for the default
14915 symtab's filename instead of its fullname.
14917 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14919 * NEWS: Update style defaults.
14921 2019-02-21 Alan Hayward <alan.hayward@arm.com>
14923 * main.c (captured_main_1): Disable styling in batch mode.
14925 2019-02-20 Tom Tromey <tom@tromey.com>
14927 * symtab.c (symtab_symbol_info): Fix typos.
14929 2019-02-20 Tom Tromey <tromey@adacore.com>
14931 * findcmd.c (_initialize_mem_search): Use upper case for
14932 metasyntactic variables.
14934 2019-02-20 Alan Hayward <alan.hayward@arm.com>
14936 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14937 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14939 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14941 * top.h (source_file_name): Change to std::string.
14942 * top.c (source_file_name): Likewise.
14943 (command_line_input): Adjust.
14944 * cli/cli-script.c (script_from_file): Adjust.
14946 2019-02-19 Tom Tromey <tromey@adacore.com>
14948 * ravenscar-thread.c
14949 (ravenscar_thread_target::update_thread_list): Don't call
14950 ada_build_task_list.
14951 * ada-lang.h (ada_build_task_list): Don't declare.
14952 * ada-tasks.c (struct ada_tasks_inferior_data)
14953 <task_list_valid_p>: Now bool.
14954 (read_known_tasks, ada_task_list_changed)
14955 (ada_tasks_invalidate_inferior_data): Update.
14956 (read_known_tasks_array): Return bool.
14957 (read_known_tasks_list): Likewise.
14958 (read_known_tasks): Return void.
14959 (ada_build_task_list): Now static.
14961 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14963 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14964 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14966 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14968 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14969 variant for ada_tasks_pspace_data_handle and
14970 ada_tasks_inferior_data_handle.
14971 (ada_tasks_pspace_data_cleanup): New function.
14972 (ada_tasks_inferior_data_cleanup): New function.
14974 2019-02-17 Tom Tromey <tom@tromey.com>
14976 * macrotab.h (macro_source_fullname): Return a std::string.
14977 * macrotab.c (macro_include, check_for_redefinition)
14978 (macro_undef, macro_lookup_definition, foreach_macro)
14979 (foreach_macro_in_scope): Update.
14980 (macro_source_fullname): Return a std::string.
14981 * macrocmd.c (show_pp_source_pos): Update.
14983 2019-02-17 Tom Tromey <tom@tromey.com>
14985 * macrocmd.c (show_pp_source_pos): Style the file names.
14987 2019-02-17 Tom Tromey <tom@tromey.com>
14990 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14992 2019-02-17 Tom Tromey <tom@tromey.com>
14994 * ada-lang.c (user_select_syms): Use filtered printing.
14995 * utils.c (wrap_style): New global.
14996 (desired_style): Remove.
14997 (emit_style_escape): Add stream parameter.
14998 (set_output_style, reset_terminal_style, prompt_for_continue):
15000 (flush_wrap_buffer): Only flush gdb_stdout.
15001 (wrap_here): Set wrap_style.
15002 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15003 treat escape sequences as a character. Change when wrap buffer is
15005 (fputs_styled): Do not set the output style when the default is
15007 * ui-style.h (struct ui_file_style) <is_default>: New method.
15008 * source.c (print_source_lines_base): Emit escape sequences in one
15011 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15013 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15014 integers and enumeration types.
15016 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15018 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15019 instead of lookup_symbol_in_language
15020 (do_exact_match): New function.
15021 (ada_get_symbol_name_matcher): Return do_exact_match when
15022 doing a verbatim match.
15024 2019-02-15 Tom Tromey <tromey@adacore.com>
15026 * ravenscar-thread.c (ravenscar_thread_target::resume)
15027 (ravenscar_thread_target::wait): Special case wildcard requests.
15029 2019-02-15 Tom Tromey <tromey@adacore.com>
15031 * ravenscar-thread.c (base_ptid): Remove.
15032 (struct ravenscar_thread_target) <close>: New method.
15033 <m_base_ptid>: New member.
15034 <update_inferior_ptid, active_task, task_is_currently_active,
15035 runtime_initialized>: Declare methods.
15036 <ravenscar_thread_target>: Add constructor.
15037 (ravenscar_thread_target::task_is_currently_active)
15038 (ravenscar_thread_target::update_inferior_ptid)
15039 (ravenscar_runtime_initialized): Rename. Now methods.
15040 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15041 (ravenscar_thread_target::update_thread_list): Update.
15042 (ravenscar_thread_target::active_task): Now method.
15043 (ravenscar_thread_target::store_registers)
15044 (ravenscar_thread_target::prepare_to_store)
15045 (ravenscar_thread_target::prepare_to_store)
15046 (ravenscar_thread_target::mourn_inferior): Update.
15047 (ravenscar_inferior_created): Use "new" to create target.
15048 (ravenscar_thread_target::get_ada_task_ptid): Update.
15049 (_initialize_ravenscar): Don't initialize base_ptid.
15050 (ravenscar_ops): Remove global.
15052 2019-02-15 Tom Tromey <tromey@adacore.com>
15054 * target.h (push_target): Declare new overload.
15055 * target.c (push_target): New overload, taking an rvalue reference.
15056 * remote.c (remote_target::open_1): Use push_target overload.
15057 * corelow.c (core_target_open): Use push_target overload.
15059 2019-02-15 Tom Tromey <tromey@adacore.com>
15061 * ravenscar-thread.c (is_ravenscar_task)
15062 (ravenscar_task_is_currently_active): Return bool.
15063 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15064 (_initialize_ravenscar): Remove "(void)".
15065 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15068 2019-02-15 Tom Tromey <tromey@adacore.com>
15070 * ravenscar-thread.c (ravenscar_runtime_initializer)
15071 (has_ravenscar_runtime, get_running_thread_id)
15072 (ravenscar_thread_target::resume): Fix indentation.
15074 2019-02-15 Tom Tromey <tromey@adacore.com>
15076 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15077 from ravenscar_arch_ops.
15078 (sparc_ravenscar_ops::fetch_registers)
15079 (sparc_ravenscar_ops::store_registers): Now methods.
15080 (sparc_ravenscar_prepare_to_store): Remove.
15081 (sparc_ravenscar_ops): Redefine.
15082 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15083 methods and destructor. Remove members.
15084 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15085 (ravenscar_thread_target::store_registers)
15086 (ravenscar_thread_target::prepare_to_store): Update.
15087 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15089 (struct ppc_ravenscar_powerpc_ops): Derive from
15090 ravenscar_arch_ops.
15091 (ppc_ravenscar_powerpc_ops::fetch_registers)
15092 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15093 (ppc_ravenscar_powerpc_ops): Redefine.
15094 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15095 (ppc_ravenscar_e500_ops::fetch_registers)
15096 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15097 (ppc_ravenscar_e500_ops): Redefine.
15098 * aarch64-ravenscar-thread.c
15099 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15100 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15101 (aarch64_ravenscar_fetch_registers)
15102 (aarch64_ravenscar_store_registers): Now methods.
15103 (aarch64_ravenscar_ops): Redefine.
15105 2019-02-15 Tom Tromey <tromey@adacore.com>
15107 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15108 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15109 (ravenscar_thread_target::stopped_by_watchpoint)
15110 (ravenscar_thread_target::stopped_data_address)
15111 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15113 2019-02-15 Tom Tromey <tromey@adacore.com>
15115 * ravenscar-thread.c: Fix some typos.
15117 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15118 Tom Tromey <tromey@adacore.com>
15120 * ada-lang.c (ada_exception_sal): Change addr_string to a
15122 (create_ada_exception_catchpoint): Update.
15124 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15125 Tom Tromey <tromey@adacore.com>
15127 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15128 (bp_location_ops): Remove.
15129 (base_breakpoint_allocate_location): Update.
15130 (free_bp_location): Update.
15131 * ada-lang.c (class ada_catchpoint_location)
15132 <ada_catchpoint_location>: Remove ops parameter.
15133 (ada_catchpoint_location_dtor): Remove.
15134 (ada_catchpoint_location_ops): Remove.
15135 (allocate_location_exception): Update.
15136 * breakpoint.h (struct bp_location_ops): Remove.
15137 (class bp_location) <bp_location>: Remove bp_location_ops
15139 <~bp_location>: Add destructor.
15142 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15143 Pedro Alves <palves@redhat.com>
15145 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15148 2019-02-14 David Michael <fedora.dm0@gmail.com>
15149 Samuel Thibault <samuel.thibault@gnu.org>
15150 Thomas Schwinge <thomas@codesourcery.com>
15152 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15153 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15155 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15157 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15158 (check_empty): Use "const char *".
15160 * gnu-nat.c (gnu_nat_target::detach): Instead of
15161 'detach_inferior (pid)' call
15162 'detach_inferior (find_inferior_pid (pid))'.
15164 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15165 'nat/fork-inferior.o'.
15166 * gnu-nat.c: #include "nat/fork-inferior.h".
15168 * gnu-nat.c (gnu_nat_target::detach): Instead of
15169 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15170 * gnu-nat.h: #include "inf-child.h".
15171 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15172 'i386_gnu_nat_target::fetch_registers'.
15173 (gnu_store_registers): Rename/move to
15174 'i386_gnu_nat_target::store_registers'.
15176 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15177 * gnu-nat.h (mach_thread_info): New function.
15178 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15180 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15182 2019-02-14 Frederic Konrad <konrad@adacore.com>
15184 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15186 2019-02-14 Joel Brobecker <brobecker@adacore.com>
15188 * windows-nat.c (windows_add_thread): Add new parameter
15189 "main_thread_p" with default value set to false. Update
15190 function documentation as well as all callers.
15191 (windows_delete_thread): Likewise.
15192 (fake_create_process): Update call to windows_add_thread.
15193 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15194 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15195 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15196 call to windows_delete_thread.
15198 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15200 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15202 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15204 * symfile.c (find_separate_debug_file): Use canonical path of
15205 sysroot with child_path instead of gdb_sysroot if it is valid.
15207 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15209 * symfile.c (find_separate_debug_file): Use child_path to
15210 determine if an object file is under a sysroot.
15212 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15214 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15215 unittests/child-path-selftests.c.
15216 * common/pathstuff.c (child_path): New function.
15217 * common/pathstuff.h (child_path): New prototype.
15218 * unittests/child-path-selftests.c: New file.
15220 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15222 * symfile.c (find_separate_debug_file): Look for separate debug
15223 files in debug directories under the sysroot.
15225 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15227 * symtab.h (struct minimal_symbol data_p): New const method.
15228 (struct minimal_symbol text_p): Likewise.
15229 * symtab.c (output_source_filename): Use file name style
15230 to print file name.
15231 (print_symbol_info): Likewise.
15232 (print_msymbol_info): Use address style to print addresses.
15233 Use function name style to print executable text symbols.
15234 (expand_symtab_containing_pc): Use data_p.
15235 (find_pc_sect_compunit_symtab): Likewise.
15237 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15239 * breakpoint.c (describe_other_breakpoints): Use address style
15240 to print addresses.
15241 (say_where): Likewise.
15243 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15245 * ada-typeprint.c (print_func_type): Print function name
15246 style to print function name.
15247 * c-typeprint.c (c_print_type_1): Likewise.
15249 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15251 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15254 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15256 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15259 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15261 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15262 TYPE_CODE_REF types.
15264 2019-02-08 Jim Wilson <jimw@sifive.com>
15266 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15267 (riscv_linux_fregset): New.
15268 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15270 2019-02-07 Tom Tromey <tom@tromey.com>
15272 * thread.c (thread_cancel_execution_command): Update.
15273 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15275 (struct thread_fsm_ops): Remove.
15276 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15277 (thread_fsm_should_stop, thread_fsm_return_value)
15278 (thread_fsm_set_finished, thread_fsm_finished_p)
15279 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15281 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15282 * infrun.c (clear_proceed_status_thread)
15283 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15284 (print_stop_event): Update.
15285 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15287 (step_command_fsm_ops): Remove.
15288 (new_step_command_fsm): Remove.
15290 (step_command_fsm::should_stop): Rename from
15291 step_command_fsm_should_stop.
15292 (step_command_fsm::clean_up): Rename from
15293 step_command_fsm_clean_up.
15294 (step_command_fsm::do_async_reply_reason): Rename from
15295 step_command_fsm_async_reply_reason.
15296 (struct until_next_fsm): Inherit from thread_fsm. Add
15298 (until_next_fsm_ops): Remove.
15299 (new_until_next_fsm): Remove.
15300 (until_next_fsm::should_stop): Rename from
15301 until_next_fsm_should_stop.
15302 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15303 (until_next_fsm::do_async_reply_reason): Rename from
15304 until_next_fsm_async_reply_reason.
15305 (struct finish_command_fsm): Inherit from thread_fsm. Add
15306 constructor. Change type of breakpoint.
15307 (finish_command_fsm_ops): Remove.
15308 (new_finish_command_fsm): Remove.
15309 (finish_command_fsm::should_stop): Rename from
15310 finish_command_fsm_should_stop.
15311 (finish_command_fsm::clean_up): Rename from
15312 finish_command_fsm_clean_up.
15313 (finish_command_fsm::return_value): Rename from
15314 finish_command_fsm_return_value.
15315 (finish_command_fsm::do_async_reply_reason): Rename from
15316 finish_command_fsm_async_reply_reason.
15317 (finish_command): Update.
15318 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15320 (call_thread_fsm_ops): Remove.
15321 (call_thread_fsm::call_thread_fsm): Rename from
15322 new_call_thread_fsm.
15323 (call_thread_fsm::should_stop): Rename from
15324 call_thread_fsm_should_stop.
15325 (call_thread_fsm::should_notify_stop): Rename from
15326 call_thread_fsm_should_notify_stop.
15327 (run_inferior_call, call_function_by_hand_dummy): Update.
15328 * cli/cli-interp.c (should_print_stop_to_console): Update.
15329 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15330 Add constructor. Change type of location_breakpoint,
15332 (until_break_fsm_ops): Remove.
15333 (new_until_break_fsm): Remove.
15334 (until_break_fsm::should_stop): Rename from
15335 until_break_fsm_should_stop.
15336 (until_break_fsm::clean_up): Rename from
15337 until_break_fsm_clean_up.
15338 (until_break_fsm::do_async_reply_reason): Rename from
15339 until_break_fsm_async_reply_reason.
15340 (until_break_command): Update.
15341 * thread-fsm.c: Remove.
15342 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15344 2019-02-07 Tom Tromey <tom@tromey.com>
15346 * yy-remap.h: Add include guard.
15347 * xtensa-tdep.h: Add include guard.
15348 * xcoffread.h: Rename include guard.
15349 * varobj-iter.h: Add include guard.
15350 * tui/tui.h: Rename include guard.
15351 * tui/tui-winsource.h: Rename include guard.
15352 * tui/tui-wingeneral.h: Rename include guard.
15353 * tui/tui-windata.h: Rename include guard.
15354 * tui/tui-win.h: Rename include guard.
15355 * tui/tui-stack.h: Rename include guard.
15356 * tui/tui-source.h: Rename include guard.
15357 * tui/tui-regs.h: Rename include guard.
15358 * tui/tui-out.h: Rename include guard.
15359 * tui/tui-layout.h: Rename include guard.
15360 * tui/tui-io.h: Rename include guard.
15361 * tui/tui-hooks.h: Rename include guard.
15362 * tui/tui-file.h: Rename include guard.
15363 * tui/tui-disasm.h: Rename include guard.
15364 * tui/tui-data.h: Rename include guard.
15365 * tui/tui-command.h: Rename include guard.
15366 * tic6x-tdep.h: Add include guard.
15367 * target/waitstatus.h: Rename include guard.
15368 * target/wait.h: Rename include guard.
15369 * target/target.h: Rename include guard.
15370 * target/resume.h: Rename include guard.
15371 * target-float.h: Rename include guard.
15372 * stabsread.h: Add include guard.
15373 * rs6000-tdep.h: Add include guard.
15374 * riscv-fbsd-tdep.h: Add include guard.
15375 * regformats/regdef.h: Rename include guard.
15376 * record.h: Rename include guard.
15377 * python/python.h: Rename include guard.
15378 * python/python-internal.h: Rename include guard.
15379 * python/py-stopevent.h: Rename include guard.
15380 * python/py-ref.h: Rename include guard.
15381 * python/py-record.h: Rename include guard.
15382 * python/py-record-full.h: Rename include guard.
15383 * python/py-record-btrace.h: Rename include guard.
15384 * python/py-instruction.h: Rename include guard.
15385 * python/py-events.h: Rename include guard.
15386 * python/py-event.h: Rename include guard.
15387 * procfs.h: Add include guard.
15388 * proc-utils.h: Add include guard.
15389 * p-lang.h: Add include guard.
15390 * or1k-tdep.h: Rename include guard.
15391 * observable.h: Rename include guard.
15392 * nto-tdep.h: Rename include guard.
15393 * nat/x86-linux.h: Rename include guard.
15394 * nat/x86-linux-dregs.h: Rename include guard.
15395 * nat/x86-gcc-cpuid.h: Add include guard.
15396 * nat/x86-dregs.h: Rename include guard.
15397 * nat/x86-cpuid.h: Rename include guard.
15398 * nat/ppc-linux.h: Rename include guard.
15399 * nat/mips-linux-watch.h: Rename include guard.
15400 * nat/linux-waitpid.h: Rename include guard.
15401 * nat/linux-ptrace.h: Rename include guard.
15402 * nat/linux-procfs.h: Rename include guard.
15403 * nat/linux-osdata.h: Rename include guard.
15404 * nat/linux-nat.h: Rename include guard.
15405 * nat/linux-namespaces.h: Rename include guard.
15406 * nat/linux-btrace.h: Rename include guard.
15407 * nat/glibc_thread_db.h: Rename include guard.
15408 * nat/gdb_thread_db.h: Rename include guard.
15409 * nat/gdb_ptrace.h: Rename include guard.
15410 * nat/fork-inferior.h: Rename include guard.
15411 * nat/amd64-linux-siginfo.h: Rename include guard.
15412 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15413 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15414 * nat/aarch64-linux.h: Rename include guard.
15415 * nat/aarch64-linux-hw-point.h: Rename include guard.
15416 * mn10300-tdep.h: Add include guard.
15417 * mips-linux-tdep.h: Add include guard.
15418 * mi/mi-parse.h: Rename include guard.
15419 * mi/mi-out.h: Rename include guard.
15420 * mi/mi-main.h: Rename include guard.
15421 * mi/mi-interp.h: Rename include guard.
15422 * mi/mi-getopt.h: Rename include guard.
15423 * mi/mi-console.h: Rename include guard.
15424 * mi/mi-common.h: Rename include guard.
15425 * mi/mi-cmds.h: Rename include guard.
15426 * mi/mi-cmd-break.h: Rename include guard.
15427 * m2-lang.h: Add include guard.
15428 * location.h: Rename include guard.
15429 * linux-record.h: Rename include guard.
15430 * linux-nat.h: Add include guard.
15431 * linux-fork.h: Add include guard.
15432 * i386-darwin-tdep.h: Rename include guard.
15433 * hppa-linux-offsets.h: Add include guard.
15434 * guile/guile.h: Rename include guard.
15435 * guile/guile-internal.h: Rename include guard.
15436 * gnu-nat.h: Rename include guard.
15437 * gdb-stabs.h: Rename include guard.
15438 * frv-tdep.h: Add include guard.
15439 * f-lang.h: Add include guard.
15440 * event-loop.h: Add include guard.
15441 * darwin-nat.h: Rename include guard.
15442 * cp-abi.h: Rename include guard.
15443 * config/sparc/nm-sol2.h: Rename include guard.
15444 * config/nm-nto.h: Rename include guard.
15445 * config/nm-linux.h: Add include guard.
15446 * config/i386/nm-i386gnu.h: Rename include guard.
15447 * config/djgpp/nl_types.h: Rename include guard.
15448 * config/djgpp/langinfo.h: Rename include guard.
15449 * compile/gcc-cp-plugin.h: Add include guard.
15450 * compile/gcc-c-plugin.h: Add include guard.
15451 * compile/compile.h: Rename include guard.
15452 * compile/compile-object-run.h: Rename include guard.
15453 * compile/compile-object-load.h: Rename include guard.
15454 * compile/compile-internal.h: Rename include guard.
15455 * compile/compile-cplus.h: Rename include guard.
15456 * compile/compile-c.h: Rename include guard.
15457 * common/xml-utils.h: Rename include guard.
15458 * common/x86-xstate.h: Rename include guard.
15459 * common/version.h: Rename include guard.
15460 * common/vec.h: Rename include guard.
15461 * common/tdesc.h: Rename include guard.
15462 * common/selftest.h: Rename include guard.
15463 * common/scoped_restore.h: Rename include guard.
15464 * common/scoped_mmap.h: Rename include guard.
15465 * common/scoped_fd.h: Rename include guard.
15466 * common/safe-iterator.h: Rename include guard.
15467 * common/run-time-clock.h: Rename include guard.
15468 * common/refcounted-object.h: Rename include guard.
15469 * common/queue.h: Rename include guard.
15470 * common/ptid.h: Rename include guard.
15471 * common/print-utils.h: Rename include guard.
15472 * common/preprocessor.h: Rename include guard.
15473 * common/pathstuff.h: Rename include guard.
15474 * common/observable.h: Rename include guard.
15475 * common/netstuff.h: Rename include guard.
15476 * common/job-control.h: Rename include guard.
15477 * common/host-defs.h: Rename include guard.
15478 * common/gdb_wait.h: Rename include guard.
15479 * common/gdb_vecs.h: Rename include guard.
15480 * common/gdb_unlinker.h: Rename include guard.
15481 * common/gdb_unique_ptr.h: Rename include guard.
15482 * common/gdb_tilde_expand.h: Rename include guard.
15483 * common/gdb_sys_time.h: Rename include guard.
15484 * common/gdb_string_view.h: Rename include guard.
15485 * common/gdb_splay_tree.h: Rename include guard.
15486 * common/gdb_setjmp.h: Rename include guard.
15487 * common/gdb_ref_ptr.h: Rename include guard.
15488 * common/gdb_optional.h: Rename include guard.
15489 * common/gdb_locale.h: Rename include guard.
15490 * common/gdb_assert.h: Rename include guard.
15491 * common/filtered-iterator.h: Rename include guard.
15492 * common/filestuff.h: Rename include guard.
15493 * common/fileio.h: Rename include guard.
15494 * common/environ.h: Rename include guard.
15495 * common/common-utils.h: Rename include guard.
15496 * common/common-types.h: Rename include guard.
15497 * common/common-regcache.h: Rename include guard.
15498 * common/common-inferior.h: Rename include guard.
15499 * common/common-gdbthread.h: Rename include guard.
15500 * common/common-exceptions.h: Rename include guard.
15501 * common/common-defs.h: Rename include guard.
15502 * common/common-debug.h: Rename include guard.
15503 * common/cleanups.h: Rename include guard.
15504 * common/buffer.h: Rename include guard.
15505 * common/btrace-common.h: Rename include guard.
15506 * common/break-common.h: Rename include guard.
15507 * cli/cli-utils.h: Rename include guard.
15508 * cli/cli-style.h: Rename include guard.
15509 * cli/cli-setshow.h: Rename include guard.
15510 * cli/cli-script.h: Rename include guard.
15511 * cli/cli-interp.h: Rename include guard.
15512 * cli/cli-decode.h: Rename include guard.
15513 * cli/cli-cmds.h: Rename include guard.
15514 * charset-list.h: Add include guard.
15515 * buildsym-legacy.h: Rename include guard.
15516 * bfin-tdep.h: Add include guard.
15517 * ax.h: Rename include guard.
15518 * arm-linux-tdep.h: Add include guard.
15519 * arm-fbsd-tdep.h: Add include guard.
15520 * arch/xtensa.h: Rename include guard.
15521 * arch/tic6x.h: Add include guard.
15522 * arch/i386.h: Add include guard.
15523 * arch/arm.h: Rename include guard.
15524 * arch/arm-linux.h: Rename include guard.
15525 * arch/arm-get-next-pcs.h: Rename include guard.
15526 * arch/amd64.h: Add include guard.
15527 * arch/aarch64-insn.h: Rename include guard.
15528 * arch-utils.h: Rename include guard.
15529 * annotate.h: Add include guard.
15530 * amd64-darwin-tdep.h: Rename include guard.
15531 * aarch64-linux-tdep.h: Add include guard.
15532 * aarch64-fbsd-tdep.h: Add include guard.
15533 * aarch32-linux-nat.h: Add include guard.
15535 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15537 * macrotab.c (macro_define_internal): New function that
15538 factorizes macro_define_object_internal and macro_define_function
15540 (macro_define_object_internal): Use macro_define_internal.
15541 (macro_define_function): Likewise.
15543 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15545 * macrocmd.c (extract_identifier): Return
15546 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15549 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15551 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15553 2019-02-05 Tom Tromey <tom@tromey.com>
15555 * target.c (target_stack::unpush): Move assertion earlier.
15557 2019-01-30 Tom Tromey <tom@tromey.com>
15560 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15561 (gdbpy_parse_and_eval): Likewise.
15562 * python/python-internal.h (gdbpy_allow_threads): New class.
15564 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15566 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15567 (aarch64_fbsd_fpregmap): Move earlier.
15568 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15569 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15570 instead of individual calls to trad_frame_set_reg_addr.
15571 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15573 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15574 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15575 instead of individual calls to trad_frame_set_reg_addr.
15577 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15579 * CONTRIBUTE: Replace contribution list with wiki link.
15581 2019-01-25 Tom Tromey <tom@tromey.com>
15583 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15585 2019-01-25 Tom Tromey <tom@tromey.com>
15587 * xtensa-linux-nat.c: Fix common/ includes.
15588 * xml-support.h: Fix common/ includes.
15589 * xml-support.c: Fix common/ includes.
15590 * x86-linux-nat.c: Fix common/ includes.
15591 * windows-nat.c: Fix common/ includes.
15592 * varobj.h: Fix common/ includes.
15593 * varobj.c: Fix common/ includes.
15594 * value.c: Fix common/ includes.
15595 * valops.c: Fix common/ includes.
15596 * utils.c: Fix common/ includes.
15597 * unittests/xml-utils-selftests.c: Fix common/ includes.
15598 * unittests/utils-selftests.c: Fix common/ includes.
15599 * unittests/unpack-selftests.c: Fix common/ includes.
15600 * unittests/tracepoint-selftests.c: Fix common/ includes.
15601 * unittests/style-selftests.c: Fix common/ includes.
15602 * unittests/string_view-selftests.c: Fix common/ includes.
15603 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15604 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15605 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15606 * unittests/rsp-low-selftests.c: Fix common/ includes.
15607 * unittests/parse-connection-spec-selftests.c: Fix common/
15609 * unittests/optional-selftests.c: Fix common/ includes.
15610 * unittests/offset-type-selftests.c: Fix common/ includes.
15611 * unittests/observable-selftests.c: Fix common/ includes.
15612 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15613 * unittests/memrange-selftests.c: Fix common/ includes.
15614 * unittests/memory-map-selftests.c: Fix common/ includes.
15615 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15616 * unittests/function-view-selftests.c: Fix common/ includes.
15617 * unittests/environ-selftests.c: Fix common/ includes.
15618 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15619 * unittests/common-utils-selftests.c: Fix common/ includes.
15620 * unittests/cli-utils-selftests.c: Fix common/ includes.
15621 * unittests/array-view-selftests.c: Fix common/ includes.
15622 * ui-file.c: Fix common/ includes.
15623 * tui/tui-io.c: Fix common/ includes.
15624 * tracepoint.h: Fix common/ includes.
15625 * tracepoint.c: Fix common/ includes.
15626 * tracefile-tfile.c: Fix common/ includes.
15627 * top.h: Fix common/ includes.
15628 * top.c: Fix common/ includes.
15629 * thread.c: Fix common/ includes.
15630 * target/waitstatus.h: Fix common/ includes.
15631 * target/waitstatus.c: Fix common/ includes.
15632 * target.h: Fix common/ includes.
15633 * target.c: Fix common/ includes.
15634 * target-memory.c: Fix common/ includes.
15635 * target-descriptions.c: Fix common/ includes.
15636 * symtab.h: Fix common/ includes.
15637 * symfile.c: Fix common/ includes.
15638 * stap-probe.c: Fix common/ includes.
15639 * spu-linux-nat.c: Fix common/ includes.
15640 * sparc-nat.c: Fix common/ includes.
15641 * source.c: Fix common/ includes.
15642 * solib.c: Fix common/ includes.
15643 * solib-target.c: Fix common/ includes.
15644 * ser-unix.c: Fix common/ includes.
15645 * ser-tcp.c: Fix common/ includes.
15646 * ser-pipe.c: Fix common/ includes.
15647 * ser-base.c: Fix common/ includes.
15648 * selftest-arch.c: Fix common/ includes.
15649 * s12z-tdep.c: Fix common/ includes.
15650 * rust-exp.y: Fix common/ includes.
15651 * rs6000-aix-tdep.c: Fix common/ includes.
15652 * riscv-tdep.c: Fix common/ includes.
15653 * remote.c: Fix common/ includes.
15654 * remote-notif.h: Fix common/ includes.
15655 * remote-fileio.h: Fix common/ includes.
15656 * remote-fileio.c: Fix common/ includes.
15657 * regcache.h: Fix common/ includes.
15658 * regcache.c: Fix common/ includes.
15659 * record-btrace.c: Fix common/ includes.
15660 * python/python.c: Fix common/ includes.
15661 * python/py-type.c: Fix common/ includes.
15662 * python/py-inferior.c: Fix common/ includes.
15663 * progspace.h: Fix common/ includes.
15664 * producer.c: Fix common/ includes.
15665 * procfs.c: Fix common/ includes.
15666 * proc-api.c: Fix common/ includes.
15667 * printcmd.c: Fix common/ includes.
15668 * ppc-linux-nat.c: Fix common/ includes.
15669 * parser-defs.h: Fix common/ includes.
15670 * osdata.c: Fix common/ includes.
15671 * obsd-nat.c: Fix common/ includes.
15672 * nat/x86-linux.c: Fix common/ includes.
15673 * nat/x86-linux-dregs.c: Fix common/ includes.
15674 * nat/x86-dregs.h: Fix common/ includes.
15675 * nat/x86-dregs.c: Fix common/ includes.
15676 * nat/ppc-linux.c: Fix common/ includes.
15677 * nat/mips-linux-watch.h: Fix common/ includes.
15678 * nat/mips-linux-watch.c: Fix common/ includes.
15679 * nat/linux-waitpid.c: Fix common/ includes.
15680 * nat/linux-ptrace.h: Fix common/ includes.
15681 * nat/linux-ptrace.c: Fix common/ includes.
15682 * nat/linux-procfs.c: Fix common/ includes.
15683 * nat/linux-personality.c: Fix common/ includes.
15684 * nat/linux-osdata.c: Fix common/ includes.
15685 * nat/linux-namespaces.c: Fix common/ includes.
15686 * nat/linux-btrace.h: Fix common/ includes.
15687 * nat/linux-btrace.c: Fix common/ includes.
15688 * nat/fork-inferior.c: Fix common/ includes.
15689 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15690 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15691 * nat/aarch64-linux.c: Fix common/ includes.
15692 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15693 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15694 * namespace.h: Fix common/ includes.
15695 * mips-linux-tdep.c: Fix common/ includes.
15696 * minsyms.c: Fix common/ includes.
15697 * mi/mi-parse.h: Fix common/ includes.
15698 * mi/mi-main.c: Fix common/ includes.
15699 * mi/mi-cmd-env.c: Fix common/ includes.
15700 * memrange.h: Fix common/ includes.
15701 * memattr.c: Fix common/ includes.
15702 * maint.h: Fix common/ includes.
15703 * maint.c: Fix common/ includes.
15704 * main.c: Fix common/ includes.
15705 * machoread.c: Fix common/ includes.
15706 * location.c: Fix common/ includes.
15707 * linux-thread-db.c: Fix common/ includes.
15708 * linux-nat.c: Fix common/ includes.
15709 * linux-fork.c: Fix common/ includes.
15710 * inline-frame.c: Fix common/ includes.
15711 * infrun.c: Fix common/ includes.
15712 * inflow.c: Fix common/ includes.
15713 * inferior.h: Fix common/ includes.
15714 * inferior.c: Fix common/ includes.
15715 * infcmd.c: Fix common/ includes.
15716 * inf-ptrace.c: Fix common/ includes.
15717 * inf-child.c: Fix common/ includes.
15718 * ia64-linux-nat.c: Fix common/ includes.
15719 * i387-tdep.c: Fix common/ includes.
15720 * i386-tdep.c: Fix common/ includes.
15721 * i386-linux-tdep.c: Fix common/ includes.
15722 * i386-linux-nat.c: Fix common/ includes.
15723 * i386-go32-tdep.c: Fix common/ includes.
15724 * i386-fbsd-tdep.c: Fix common/ includes.
15725 * i386-fbsd-nat.c: Fix common/ includes.
15726 * guile/scm-type.c: Fix common/ includes.
15727 * guile/guile.c: Fix common/ includes.
15728 * go32-nat.c: Fix common/ includes.
15729 * gnu-nat.c: Fix common/ includes.
15730 * gdbthread.h: Fix common/ includes.
15731 * gdbarch-selftests.c: Fix common/ includes.
15732 * gdb_usleep.c: Fix common/ includes.
15733 * gdb_select.h: Fix common/ includes.
15734 * gdb_bfd.c: Fix common/ includes.
15735 * gcore.c: Fix common/ includes.
15736 * fork-child.c: Fix common/ includes.
15737 * findvar.c: Fix common/ includes.
15738 * fbsd-nat.c: Fix common/ includes.
15739 * event-top.c: Fix common/ includes.
15740 * event-loop.c: Fix common/ includes.
15741 * dwarf2read.c: Fix common/ includes.
15742 * dwarf2loc.c: Fix common/ includes.
15743 * dwarf2-frame.c: Fix common/ includes.
15744 * dwarf-index-cache.c: Fix common/ includes.
15745 * dtrace-probe.c: Fix common/ includes.
15746 * disasm-selftests.c: Fix common/ includes.
15747 * defs.h: Fix common/ includes.
15748 * csky-tdep.c: Fix common/ includes.
15749 * cp-valprint.c: Fix common/ includes.
15750 * cp-support.h: Fix common/ includes.
15751 * cp-support.c: Fix common/ includes.
15752 * corelow.c: Fix common/ includes.
15753 * completer.h: Fix common/ includes.
15754 * completer.c: Fix common/ includes.
15755 * compile/compile.c: Fix common/ includes.
15756 * compile/compile-loc2c.c: Fix common/ includes.
15757 * compile/compile-cplus-types.c: Fix common/ includes.
15758 * compile/compile-cplus-symbols.c: Fix common/ includes.
15759 * command.h: Fix common/ includes.
15760 * cli/cli-dump.c: Fix common/ includes.
15761 * cli/cli-cmds.c: Fix common/ includes.
15762 * charset.c: Fix common/ includes.
15763 * build-id.c: Fix common/ includes.
15764 * btrace.h: Fix common/ includes.
15765 * btrace.c: Fix common/ includes.
15766 * breakpoint.h: Fix common/ includes.
15767 * breakpoint.c: Fix common/ includes.
15769 (enum agent_op): Fix common/ includes.
15770 * ax-general.c (struct aop_map): Fix common/ includes.
15771 * ax-gdb.c: Fix common/ includes.
15772 * auxv.c: Fix common/ includes.
15773 * auto-load.c: Fix common/ includes.
15774 * arm-tdep.c: Fix common/ includes.
15775 * arch/riscv.c: Fix common/ includes.
15776 * arch/ppc-linux-common.c: Fix common/ includes.
15777 * arch/i386.c: Fix common/ includes.
15778 * arch/arm.c: Fix common/ includes.
15779 * arch/arm-linux.c: Fix common/ includes.
15780 * arch/arm-get-next-pcs.c: Fix common/ includes.
15781 * arch/amd64.c: Fix common/ includes.
15782 * arch/aarch64.c: Fix common/ includes.
15783 * arch/aarch64-insn.c: Fix common/ includes.
15784 * arch-utils.c: Fix common/ includes.
15785 * amd64-windows-tdep.c: Fix common/ includes.
15786 * amd64-tdep.c: Fix common/ includes.
15787 * amd64-sol2-tdep.c: Fix common/ includes.
15788 * amd64-obsd-tdep.c: Fix common/ includes.
15789 * amd64-nbsd-tdep.c: Fix common/ includes.
15790 * amd64-linux-tdep.c: Fix common/ includes.
15791 * amd64-linux-nat.c: Fix common/ includes.
15792 * amd64-fbsd-tdep.c: Fix common/ includes.
15793 * amd64-fbsd-nat.c: Fix common/ includes.
15794 * amd64-dicos-tdep.c: Fix common/ includes.
15795 * amd64-darwin-tdep.c: Fix common/ includes.
15796 * agent.c: Fix common/ includes.
15797 * ada-lang.h: Fix common/ includes.
15798 * ada-lang.c: Fix common/ includes.
15799 * aarch64-tdep.c: Fix common/ includes.
15801 2019-01-25 Tom Tromey <tom@tromey.com>
15803 * common/create-version.sh: Use common/version.h.
15805 2019-01-24 Pedro Alves <palves@redhat.com>
15807 * infrun.c (signal_stop, signal_print, signal_program)
15808 (signal_catch, signal_pass): Now arrays instead of pointers.
15809 (update_signals_program_target, do_target_resume)
15810 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15811 * linux-nat.c (linux_nat_target::pass_signals)
15812 (linux_nat_target::create_inferior, linux_nat_target::attach):
15814 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15815 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15816 * procfs.c (procfs_target::pass_signals): Adjust.
15817 * record-full.c (record_full_target::resume): Adjust.
15818 * remote.c (remote_target::pass_signals)
15819 (remote_target::program_signals): Adjust.
15820 * target-debug.h (target_debug_print_signals): Now takes a
15821 gdb::array_view as parameter. Adjust.
15822 * target.h (target_ops) <pass_signals, program_signals>: Replace
15823 pointer and length parameters with gdb::array_view.
15824 (target_pass_signals, target_program_signals): Likewise.
15825 * target-delegates.c: Regenerate.
15827 2019-01-24 Pedro Alves <palves@redhat.com>
15829 * common/forward-scope-exit.h
15830 (forward_scope_exit::forward_scope_exit): Pass arguments to
15831 m_bind_function directly, instead of creating a std::bind and
15834 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15836 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15837 for static members.
15838 (pass_in_v_vfp_candidate): Likewise.
15840 2019-01-23 Tom Tromey <tom@tromey.com>
15841 Pedro Alves <palves@redhat.com>
15843 * regcache.c (class regcache_invalidator): Remove.
15844 (regcache::raw_write): Use make_scope_exit.
15846 2019-01-23 Tom Tromey <tom@tromey.com>
15848 * ui-out.h (class ui_out_emit_type): Update comment.
15850 2019-01-23 Tom Tromey <tom@tromey.com>
15852 * infrun.c (fetch_inferior_event): Update comment.
15854 2019-01-23 Tom Tromey <tom@tromey.com>
15855 Pedro Alves <palves@redhat.com>
15857 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15859 (fetch_inferior_event): Use SCOPE_EXIT.
15862 2019-01-23 Tom Tromey <tom@tromey.com>
15863 Pedro Alves <palves@redhat.com>
15865 * infrun.c (disable_thread_events): Delete.
15866 (stop_all_threads): Use SCOPE_EXIT.
15868 2019-01-23 Tom Tromey <tom@tromey.com>
15869 Pedro Alves <palves@redhat.com>
15871 * symfile.c: Include forward-scope-exit.h.
15872 (clear_symtab_users_cleanup): Replace forward declaration with
15873 a FORWARD_SCOPE_EXIT.
15874 (syms_from_objfile_1): Use the forward_scope_exit and
15875 gdb::optional instead of cleanup_function.
15876 (reread_symbols): Use the forward_scope_exit instead of
15878 (clear_symtab_users_cleanup): Remove function.
15880 2019-01-23 Tom Tromey <tom@tromey.com>
15881 Pedro Alves <palves@redhat.com>
15883 * linux-nat.c: Include scope-exit.h.
15884 (cleanup_target_stop): Remove.
15885 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15888 2019-01-23 Tom Tromey <tom@tromey.com>
15889 Pedro Alves <palves@redhat.com>
15891 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15892 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15894 2019-01-23 Tom Tromey <tom@tromey.com>
15895 Andrew Burgess <andrew.burgess@embecosm.com>
15896 Pedro Alves <palves@redhat.com>
15898 * infrun.c (fetch_inferior_event): Use scope_exit.
15899 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15900 * top.c (execute_command): Use scope_exit.
15901 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15902 * utils.c (do_bpstat_clear_actions_cleanup)
15903 (make_bpstat_clear_actions_cleanup): Remove.
15905 2019-01-23 Tom Tromey <tom@tromey.com>
15906 Pedro Alves <palves@redhat.com>
15908 * infrun.c: Include "common/scope-exit.h"
15909 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15910 (wait_for_inferior): Use SCOPE_EXIT.
15911 (fetch_inferior_event): Use scope_exit.
15913 2019-01-23 Tom Tromey <tom@tromey.com>
15914 Pedro Alves <palves@redhat.com>
15916 * breakpoint.c (create_breakpoint): Remove cleanup.
15918 2019-01-23 Tom Tromey <tom@tromey.com>
15919 Andrew Burgess <andrew.burgess@embecosm.com>
15920 Pedro Alves <palves@redhat.com>
15922 2019-01-23 Pedro Alves <palves@redhat.com>
15924 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15926 2019-01-23 Pedro Alves <palves@redhat.com>
15927 Andrew Burgess <andrew.burgess@embecosm.com>
15929 * gdbthread.h: Include "common/forward-scope-exit.h".
15930 (scoped_finish_thread_state): Redefine custom class in terms of
15931 forward_scope_exit.
15933 2019-01-23 Pedro Alves <palves@redhat.com>
15934 Andrew Burgess <andrew.burgess@embecosm.com>
15936 * common/forward-scope-exit.h: New file.
15938 2019-01-23 Pedro Alves <palves@redhat.com>
15939 Andrew Burgess <andrew.burgess@embecosm.com>
15940 Tom Tromey <tom@tromey.com>
15942 * common/scope-exit.h: New file.
15944 2019-01-23 Pedro Alves <palves@redhat.com>
15946 * common/preprocessor.h (ESC): Rename to ...
15947 (ESC_PARENS): ... this.
15948 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15949 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15951 2019-01-23 Tom Tromey <tom@tromey.com>
15953 * language.h (class scoped_switch_to_sym_language_if_auto):
15954 Initialize m_lang in both cases.
15956 2019-01-23 Alan Hayward <alan.hayward@arm.com>
15958 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15961 2019-01-22 Tom Tromey <tom@tromey.com>
15963 * corelow.c: Do not include sys/file.h.
15965 2019-01-22 Tom Tromey <tom@tromey.com>
15967 * tui/tui-wingeneral.h: Include gdb_curses.h.
15969 2019-01-22 Tom Tromey <tom@tromey.com>
15971 * source-cache.h (class source_cache) <get_source_lines,
15972 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15974 2019-01-22 Tom Tromey <tom@tromey.com>
15976 * remote-fileio.h (struct remote_target): Declare.
15978 2019-01-22 Tom Tromey <tom@tromey.com>
15980 * python/py-arch.c: Do not include py-ref.h.
15981 * python/py-bpevent.c: Do not include py-ref.h.
15982 * python/py-cmd.c: Do not include py-ref.h.
15983 * python/py-continueevent.c: Do not include py-ref.h.
15984 * python/py-event.h: Do not include py-ref.h.
15985 * python/py-evtregistry.c: Do not include py-ref.h.
15986 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15987 * python/py-frame.c: Do not include py-ref.h.
15988 * python/py-framefilter.c: Do not include py-ref.h.
15989 * python/py-function.c: Do not include py-ref.h.
15990 * python/py-infevents.c: Do not include py-ref.h.
15991 * python/py-linetable.c: Do not include py-ref.h.
15992 * python/py-objfile.c: Do not include py-ref.h.
15993 * python/py-param.c: Do not include py-ref.h.
15994 * python/py-prettyprint.c: Do not include py-ref.h.
15995 * python/py-progspace.c: Do not include py-ref.h.
15996 * python/py-symbol.c: Do not include py-ref.h.
15997 * python/py-symtab.c: Do not include py-ref.h.
15998 * python/py-type.c: Do not include py-ref.h.
15999 * python/py-unwind.c: Do not include py-ref.h.
16000 * python/py-utils.c: Do not include py-ref.h.
16001 * python/py-value.c: Do not include py-ref.h.
16002 * python/py-varobj.c: Do not include py-ref.h.
16003 * python/py-xmethods.c: Do not include py-ref.h.
16004 * python/python.c: Do not include py-ref.h.
16005 * varobj.c: Do not include py-ref.h.
16007 2019-01-22 Tom Tromey <tom@tromey.com>
16009 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16010 keyword for bcache.
16012 2019-01-22 Tom Tromey <tom@tromey.com>
16014 * compile/compile-cplus-types.c: Remove a comment by #include.
16016 2019-01-22 Tom Tromey <tom@tromey.com>
16018 * compile/gcc-c-plugin.h: Include compile-internal.h.
16020 2019-01-22 Tom Tromey <tom@tromey.com>
16022 * stabsread.c (EXTERN): Do not define.
16023 (symnum, next_symbol_text_func, processing_gcc_compilation)
16024 (within_function, global_sym_chain, global_stabs)
16025 (previous_stab_code, this_object_header_files)
16026 (n_this_object_header_files)
16027 (n_allocated_this_object_header_files): Define.
16028 * stabsread.h (EXTERN): Never define. Use "extern".
16030 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16032 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16035 2019-01-21 Tom Tromey <tom@tromey.com>
16037 * ui-out.c: Fix includes.
16038 * tui/tui-source.c: Fix includes.
16039 * target.c: Fix includes.
16040 * remote.c: Fix includes.
16041 * regcache.c: Fix includes.
16042 * python/py-block.c: Fix includes.
16043 * printcmd.c: Fix includes.
16044 * or1k-tdep.c: Fix includes.
16045 * mi/mi-main.c: Fix includes.
16046 * m32r-tdep.c: Fix includes.
16047 * csky-tdep.c: Fix includes.
16048 * compile/compile-cplus-types.c: Fix includes.
16049 * cli/cli-interp.c: Fix includes.
16051 2019-01-21 Alan Hayward <alan.hayward@arm.com>
16053 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16056 2019-01-16 Tom Tromey <tom@tromey.com>
16058 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16060 (struct objfile) <msymbols_range>: Move from top level.
16061 <msymbols>: New method.
16062 (class objfile_msymbols): Remove.
16063 * symtab.c (default_collect_symbol_completion_matches_break_on):
16065 * symmisc.c (dump_msymbols): Update.
16066 * stabsread.c (scan_file_globals): Update.
16067 * objc-lang.c (info_selectors_command, info_classes_command)
16068 (find_methods): Update.
16069 * minsyms.c (find_solib_trampoline_target): Update.
16070 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16071 * coffread.c (coff_symfile_read): Update.
16072 * ada-lang.c (ada_lookup_simple_minsym)
16073 (ada_collect_symbol_completion_matches): Update.
16075 2019-01-16 Tom Tromey <tom@tromey.com>
16077 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16078 type. Remove no-argument constructor.
16079 <iterator::operator++>: Simplify.
16081 <end>: Use minimal_symbol_count.
16083 2019-01-16 Tom Tromey <tom@tromey.com>
16085 * objfiles.h (struct objfile) <psymtabs>: New method.
16086 (class objfile_psymtabs): Remove.
16087 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16089 <range>: New method.
16090 (require_partial_symbols): Change return type.
16091 * psymtab.c (require_partial_symbols)
16092 (psym_expand_symtabs_matching): Update.
16093 * mdebugread.c (parse_partial_symbols): Update.
16094 * dbxread.c (dbx_end_psymtab): Update.
16096 2019-01-15 Tom Tromey <tom@tromey.com>
16098 * symtab.c (lookup_objfile_from_block)
16099 (lookup_symbol_in_objfile_symtabs)
16100 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16101 (find_line_symtab, info_sources_command)
16102 (default_collect_symbol_completion_matches_break_on)
16103 (make_source_files_completion_list): Update.
16104 * symmisc.c (print_objfile_statistics, dump_objfile)
16105 (maintenance_print_symbols, maintenance_info_symtabs)
16106 (maintenance_check_symtabs, maintenance_info_line_tables):
16108 * source.c (select_source_symtab)
16109 (forget_cached_source_info_for_objfile): Update.
16110 * objfiles.h (class objfile_compunits): Remove.
16111 (struct objfile) <compunits_range>: New typedef.
16112 (compunits): New method.
16113 * objfiles.c (objfile_relocate1): Update.
16114 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16115 * maint.c (count_symtabs_and_blocks): Update.
16116 * linespec.c (iterate_over_all_matching_symtabs): Update.
16117 * cp-support.c (add_symbol_overload_list_qualified): Update.
16118 * coffread.c (coff_symtab_read): Update.
16119 * ada-lang.c (add_nonlocal_symbols)
16120 (ada_collect_symbol_completion_matches)
16121 (ada_add_global_exceptions): Update.
16123 2019-01-15 Tom Tromey <tom@tromey.com>
16125 * progspace.h (program_space) <objfiles_safe_range>: New
16127 <objfiles_safe>: New method.
16128 * objfiles.h (class all_objfiles_safe): Remove.
16129 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16130 * jit.c (jit_inferior_exit_hook): Update.
16132 2019-01-17 Tom Tromey <tom@tromey.com>
16134 * progspace.h (program_space) <objfiles_range>: New typedef.
16135 <objfiles>: New method.
16136 <objfiles_head>: Rename from objfiles.
16137 (object_files): Update.
16138 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16139 * guile/scm-pretty-print.c
16140 (ppscm_find_pretty_printer_from_objfiles): Update.
16141 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16142 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16144 * python/py-progspace.c (pspy_get_objfiles): Update.
16145 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16147 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16148 (objfpy_lookup_objfile_by_build_id): Update.
16149 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16150 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16152 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16153 (expand_symtab_containing_pc, lookup_objfile_from_block)
16154 (lookup_static_symbol, basic_lookup_transparent_type)
16155 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16156 (find_line_symtab, info_sources_command)
16157 (default_collect_symbol_completion_matches_break_on)
16158 (make_source_files_completion_list, find_main_name): Update.
16159 * symmisc.c (print_symbol_bcache_statistics)
16160 (print_objfile_statistics, maintenance_print_symbols)
16161 (maintenance_print_msymbols, maintenance_print_objfiles)
16162 (maintenance_info_symtabs, maintenance_check_symtabs)
16163 (maintenance_expand_symtabs, maintenance_info_line_tables):
16165 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16166 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16167 (map_overlay_command, unmap_overlay_command)
16168 (simple_overlay_update, expand_symtabs_matching)
16169 (map_symbol_filenames): Update.
16170 * symfile-debug.c (set_debug_symfile): Update.
16171 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16173 * source.c (select_source_symtab, forget_cached_source_info):
16175 * solib.c (solib_read_symbols): Update.
16176 * solib-spu.c (append_ocl_sos): Update.
16177 * psymtab.c (maintenance_print_psymbols)
16178 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16179 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16180 * printcmd.c (info_symbol_command): Update.
16181 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16183 * objfiles.h (class all_objfiles): Remove.
16184 * objfiles.c (have_partial_symbols, have_full_symbols)
16185 (have_minimal_symbols, qsort_cmp, update_section_map)
16186 (shared_objfile_contains_address_p)
16187 (default_iterate_over_objfiles_in_search_order): Update.
16188 * objc-lang.c (info_selectors_command, info_classes_command)
16189 (find_methods): Update.
16190 * minsyms.c (find_solib_trampoline_target): Update.
16191 * maint.c (maintenance_info_sections)
16192 (maintenance_translate_address, count_symtabs_and_blocks):
16194 * main.c (captured_main_1): Update.
16195 * linux-thread-db.c (try_thread_db_load_from_pdir)
16196 (has_libpthread): Update.
16197 * linespec.c (iterate_over_all_matching_symtabs)
16198 (search_minsyms_for_name): Update.
16199 * jit.c (jit_find_objf_with_entry_addr): Update.
16200 * hppa-tdep.c (find_unwind_entry)
16201 (hppa_lookup_stub_minimal_symbol): Update.
16202 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16204 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16205 (elf_gnu_ifunc_resolve_by_got): Update.
16206 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16207 * dwarf-index-write.c (save_gdb_index_command): Update.
16208 * cp-support.c (add_symbol_overload_list_qualified): Update.
16209 * breakpoint.c (create_overlay_event_breakpoint)
16210 (create_longjmp_master_breakpoint)
16211 (create_std_terminate_master_breakpoint)
16212 (create_exception_master_breakpoint): Update.
16213 * blockframe.c (find_pc_partial_function): Update.
16214 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16215 (ada_collect_symbol_completion_matches)
16216 (ada_add_global_exceptions): Update.
16218 2019-01-17 Tom Tromey <tom@tromey.com>
16220 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16222 (solib_target_parse_libraries): Change return type.
16223 (library_list_start_segment, library_list_start_section)
16224 (library_list_end_library, library_list_start_library); Update.
16225 (solib_target_free_library_list): Remove.
16226 (solib_target_parse_libraries): Remove cleanup. Change return
16228 (solib_target_current_sos): Update.
16230 2019-01-17 Tom Tromey <tromey@bapiya>
16232 * valprint.c: Replace "the the" with "the".
16233 * symtab.c: Replace "the the" with "the".
16234 * solib.c: Replace "the the" with "the".
16235 * solib-dsbt.c: Replace "the the" with "the".
16236 * linespec.c: Replace "the the" with "the".
16237 * dwarf2loc.h: Replace "the the" with "the".
16238 * amd64-windows-tdep.c: Replace "the the" with "the".
16239 * aarch64-tdep.c: Replace "the the" with "the".
16241 2019-01-16 Keith Seitz <keiths@redhat.com>
16244 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16245 <builder>: Rename to ..
16246 <m_builder>: ... this and make private.
16247 (dwarf2_cu::get_builder): New method. Change all users of
16248 `builder' to use this method.
16249 (dwarf2_start_symtab): Move to ...
16250 (dwarf2_cu::start_symtab): ... here. Update all callers
16251 (setup_type_unit_groups): Move to ...
16252 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16254 (dwarf2_cu::reset_builder): New method.
16255 (process_full_compunit, process_full_type_unit): Use
16256 dwarf2_cu::reset_builder.
16257 (follow_die_offset): Record the ancestor CU if it is different
16258 from the followed DIE's CU.
16259 (follow_die_sig_1): Likewise.
16261 2019-01-15 Tom Tromey <tom@tromey.com>
16263 * remote.c (class remote_state) <buf>: Now a char_vector.
16264 <buf_size>: Remove.
16265 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16267 (remote_target::getpkt_or_notif_sane_1)
16268 (remote_target::getpkt_sane)
16269 (remote_target::getpkt_or_notif_sane): Likewise.
16270 (class remote_target) <putpkt>: New overload.
16271 (remote_target::read_frame): Change type of "buf_p". Remove
16272 sizeof_p parameter.
16273 (packet_ok): New overload.
16274 (packet_check_result): New overload.
16277 2019-01-14 Tom Tromey <tom@tromey.com>
16279 * remote-notif.c (handle_notification, remote_notif_ack)
16280 (remote_notif_parse): Make "buf" const.
16281 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16283 (remote_notif_parse, remote_notif_ack, handle_notification):
16285 * remote.c (remote_notif_stop_parse): Make "buf" const.
16286 (remote_target::remote_parse_stop_reply): Make "buf" const.
16287 (remote_notif_stop_ack): Make "buf" const.
16289 2019-01-14 Tom Tromey <tom@tromey.com>
16291 * remote.c (remote_console_output): Make parameter const.
16293 2019-01-14 Tom Tromey <tom@tromey.com>
16295 * target-debug.h (target_debug_print_signals): Constify.
16296 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16297 * procfs.c (procfs_target::pass_signals): Update.
16298 * linux-nat.c (linux_nat_target::pass_signals): Update.
16299 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16300 * target-delegates.c: Rebuild.
16301 * remote.c (remote_target::program_signals): Update.
16302 (remote_target::pass_signals): Update.
16303 * target.c (target_pass_signals): Constify argument.
16304 (target_program_signals): Likewise.
16305 * target.h (struct target_ops) <pass_signals, program_signals>:
16307 (target_pass_signals, target_program_signals): Constify argument.
16309 2019-01-14 Tom Tromey <tom@tromey.com>
16312 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16314 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16316 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16318 * rs6000-tdep.c: Include reggroups.h.
16319 (IS_V_ALIAS_PSEUDOREG): Define.
16320 (rs6000_register_name): Return names for the "vX" aliases.
16321 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16322 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16323 aliases. Call default_register_reggroup_p for all other
16325 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16327 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16328 Handle "vX" aliases.
16329 (v_alias_pseudo_register_collect): New function.
16330 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16331 (rs6000_gdbarch_init): Initialize "vX" aliases as
16332 pseudo-registers. Restore registration of
16333 rs6000_pseudo_register_reggroup_p with
16334 set_tdesc_pseudo_register_reggroup_p.
16336 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16338 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16339 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16340 set_gdbarch_num_pseudo_regs.
16342 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16344 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16345 Remove arg prefixname, add do_set and do_show.
16346 Add member functions set_list and show_list.
16347 * cli/cli-style.c (class cli_style_option): Update accordingly.
16348 (style_set_list): Move to file scope.
16349 (style_show_list): Likewise.
16350 (set_style): Call help_list.
16351 (show_style): Call cmd_show_list.
16352 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16353 Update to use the new macro.
16355 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16357 * ada-lang.c (_initialize_ada_language): Expand the help text
16358 for the "catch exception" command.
16360 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16362 * symtab.c (matching_obj_sections): Initialize obj,
16363 declare it closer to its usage.
16365 2019-01-10 Tom Tromey <tom@tromey.com>
16367 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16368 (basic_inf_threads_range): Remove.
16369 (inf_threads_range, inf_non_exited_threads_range)
16370 (safe_inf_threads_range): Use next_adapter.
16372 2019-01-10 Keith Seitz <keiths@redhat.com>
16376 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16377 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16379 2019-01-10 Keith Seitz <keiths@redhat.com>
16383 * dictionary.c (pending_to_vector): Remove.
16384 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16385 Remove _1 suffix, replacing functions of the same name. Update
16387 (dict_create_hashed, dict_create_hashed_expandable)
16388 (dict_create_linear, dict_create_linear_expandable, dict_free)
16389 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16390 Make functions static.
16392 2019-01-10 Keith Seitz <keiths@redhat.com>
16396 * dictionary.h (struct dictionary): Replace declaration with
16398 (dict_create_hashed, dict_create_hashed_expandable)
16399 (dict_create_linear, dict_create_linear_expandable)
16400 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16401 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16402 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16403 taking multidictionary argument.
16404 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16405 * block.h (struct block) <dict>: Change to multidictionary
16406 and rename `multidict'.
16407 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16408 symmisc.c: Update all dictionary references to multidictionary.
16410 2019-01-10 Keith Seitz <keiths@redhat.com>
16414 * dictionary.c: Include unordered_map.
16415 (pending_to_vector): New function.
16416 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16417 Rewrite the non-"_1" functions to take vector instead
16419 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16420 "new" _1 versions of the same name.
16421 (multidictionary): Define.
16422 (std::hash<enum language): New definition.
16423 (collate_pending_symbols_by_language, mdict_create_hashed)
16424 (mdict_create_hashed_expandable, mdict_create_linear)
16425 (mdict_create_linear_expandable, mdict_free)
16426 (find_language_dictionary, create_new_language_dictionary)
16427 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16428 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16429 (mdict_size, mdict_empty): New functions.
16430 * dictionary.h (mdict_iterator): Define.
16432 2019-01-10 Pedro Alves <palves@redhat.com>
16434 * breakpoint.c (read_uploaded_action)
16435 (create_tracepoint_from_upload): Adjust to use
16436 gdb::unique_xmalloc_ptr.
16437 * ctf.c (ctf_write_uploaded_tp):
16438 (SET_ARRAY_FIELD): Use emplace_back.
16439 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16440 * tracefile-tfile.c (tfile_write_uploaded_tp):
16441 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16442 gdb::unique_xmalloc_ptr.
16443 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16444 at_string, cond_string, cmd_strings>: Replace char pointers
16445 with gdb::unique_xmalloc_ptr.
16447 2019-01-10 Pedro Alves <palves@redhat.com>
16449 * solib-target.c (library_list_start_library): Don't xstrdup name.
16451 2019-01-10 Pedro Alves <palves@redhat.com>
16453 * mdebugread.c (parse_partial_symbols): Use
16454 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16456 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16458 * linux-fork.c (scoped_switch_fork_info)
16459 <~scoped_switch_fork_info>: Fix incorrect variable name.
16461 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16463 * linux-fork.c (scoped_switch_fork_info)
16464 <scoped_switch_fork_info>: Make explicit.
16465 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16467 2019-01-10 Tom Tromey <tom@tromey.com>
16469 * objfiles.h (objfile::reset_psymtabs): Update.
16470 * objfiles.c (objfile::objfile): Update.
16471 * psymtab.h (psymtab_storage::obstack): Update.
16472 (psymtab_storage::m_obstack): Use gdb::optional.
16473 (class psymtab_storage): Update comment. Remove objfile
16475 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16477 2019-01-10 Tom Tromey <tom@tromey.com>
16479 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16480 <free_psymtabs>: Now private.
16481 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16482 (allocate_psymtab): Use new method.
16484 2019-01-10 Tom Tromey <tom@tromey.com>
16486 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16487 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16488 * mdebugread.c (parse_partial_symbols): Use
16489 allocate_dependencies.
16490 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16491 allocate_dependencies.
16492 (process_psymtab_comp_unit_reader)
16493 (build_type_psymtab_dependencies): Likewise.
16494 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16496 2019-01-10 Tom Tromey <tom@tromey.com>
16498 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16499 PSYMBOL_SET_LANGUAGE.
16500 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16502 2019-01-10 Tom Tromey <tom@tromey.com>
16504 * psymtab.h (psymtab_storage::obstack): New method.
16505 <m_obstack>: Rename from obstack; now private.
16506 * psymtab.c (psymtab_storage): Update.
16507 * dwarf2read.c (create_addrmap_from_index)
16508 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16511 2019-01-10 Tom Tromey <tom@tromey.com>
16513 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16514 * objfiles.h (objfile::reset_psymtabs): New method.
16516 2019-01-10 Tom Tromey <tom@tromey.com>
16518 * symmisc.c (print_symbol_bcache_statistics): Update.
16519 (print_objfile_statistics): Update.
16520 * symfile.c (reread_symbols): Update.
16521 * psymtab.h (class psymtab_storage): New.
16522 * psymtab.c (psymtab_storage): New constructor.
16523 (~psymtab_storage): New destructor.
16524 (require_partial_symbols): Update.
16525 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16526 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16527 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16528 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16529 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16530 (start_psymtab_common, end_psymtab_common)
16531 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16532 (allocate_psymtab): Update.
16533 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16535 (dump_psymtab_addrmap, maintenance_print_psymbols)
16536 (maintenance_check_psymtabs): Update.
16537 (class objfile_psymtabs): Move to objfiles.h.
16538 * psympriv.h (discard_psymtab): Now inline.
16539 (psymtab_discarder::psymtab_discarder): Update.
16540 (psymtab_discarder::~psymtab_discarder): Update.
16541 (ALL_OBJFILE_PSYMTABS): Rewrite.
16542 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16543 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16545 <partial_symtabs>: New field.
16546 (class objfile_psymtabs): Move from psymtab.h. Update.
16547 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16549 (objfile::~objfile): Don't destroy psymbol_cache.
16550 * mdebugread.c (parse_partial_symbols): Update.
16551 * dwarf2read.c (create_addrmap_from_index)
16552 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16553 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16554 (add_partial_subprogram, dwarf2_ranges_read): Update.
16555 * dwarf-index-write.c (write_address_map)
16556 (write_one_signatured_type, recursively_write_psymbols)
16557 (class debug_names, class debug_names, write_psymtabs_to_index):
16560 2019-01-10 Tom Tromey <tom@tromey.com>
16562 * symtab.h (SYMBOL_SET_NAMES): Update.
16563 (symbol_set_names): Update.
16564 (MSYMBOL_SET_NAMES): Update.
16565 * symtab.c (symbol_set_names): Change argument to be an
16566 objfile_per_bfd_storage.
16567 * psymtab.c (add_psymbol_to_bcache): Update.
16568 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16570 2019-01-10 Tom Tromey <tom@tromey.com>
16572 * symtab.c (create_demangled_names_hash): Change argument to be an
16573 objfile_per_bfd_storage.
16574 (symbol_set_names): Update.
16576 2019-01-10 Tom Tromey <tom@tromey.com>
16578 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16580 * psymtab.c (init_psymbol_list): Do nothing if already called.
16581 * psympriv.h (init_psymbol_list): Add comment.
16582 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16584 * dbxread.c (dbx_symfile_read): Unconditionally call
16587 2019-01-10 Tom Tromey <tom@tromey.com>
16589 * xcoffread.c (scan_xcoff_symtab): Update.
16590 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16592 * mdebugread.c (parse_partial_symbols)
16593 (handle_psymbol_enumerators): Update.
16594 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16595 * dbxread.c (read_dbx_symtab): Update.
16596 * psympriv.h (psymbol_placement): New enum.
16597 (add_psymbol_to_list): Update.
16599 2019-01-10 Tom Tromey <tom@tromey.com>
16601 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16602 static_psymbols parameters.
16603 (scan_xcoff_symtab): Update.
16604 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16605 static_psymbols parameters.
16606 * psympriv.h (start_psymtab_common): Update.
16607 * mdebugread.c (parse_partial_symbols): Update.
16608 * dwarf2read.c (create_partial_symtab): Update.
16609 * dbxread.c (read_dbx_symtab): Update.
16610 (start_psymtab): Remove global_psymbols and static_psymbols
16613 2019-01-10 Tom Tromey <tom@tromey.com>
16615 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16616 * psymtab.c (allocate_psymtab): Add comment.
16617 * psympriv.h (allocate_psymtab): Add comment.
16618 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16620 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16622 2019-01-10 Tom Tromey <tom@tromey.com>
16624 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16626 * mipsread.c: Include mdebugread.h.
16627 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16629 * elfread.c: Include mdebugread.h.
16631 2019-01-09 Tom Tromey <tom@tromey.com>
16633 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16634 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16635 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16636 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16637 (psym_lookup_symbol, psym_find_last_source_symtab)
16638 (psym_forget_cached_source_info, psym_print_stats)
16639 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16640 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16641 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16642 (psym_find_compunit_symtab_by_address)
16643 (maintenance_print_psymbols, maintenance_info_psymtabs)
16644 (maintenance_check_psymtabs): Use ranged for.
16645 * psymtab.h (class objfile_psymtabs): New.
16646 (require_partial_symbols): Return objfile_psymtabs.
16647 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16649 2019-01-09 Tom Tromey <tom@tromey.com>
16651 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16652 (find_pc_mapped_section, list_overlays_command)
16653 (map_overlay_command, unmap_overlay_command)
16654 (simple_overlay_update): Use all_objfiles.
16655 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16656 * printcmd.c (info_symbol_command): Use all_objfiles.
16657 * objfiles.h (ALL_OBJSECTIONS): Remove.
16658 * maint.c (maintenance_translate_address): Use all_objfiles.
16659 * gcore.c (gcore_create_callback): Use all_objfiles.
16660 (objfile_find_memory_regions): Likewise.
16662 2019-01-09 Tom Tromey <tom@tromey.com>
16664 * symtab.c (find_line_symtab, info_sources_command)
16665 (make_source_files_completion_list): Use objfile_compunits.
16666 * source.c (select_source_symtab): Use objfile_compunits.
16667 * objfiles.h (struct objfile): Update comment.
16668 (ALL_OBJFILES): Remove.
16669 (ALL_FILETABS): Remove.
16670 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16673 2019-01-09 Tom Tromey <tom@tromey.com>
16675 * symmisc.c (print_objfile_statistics, dump_objfile)
16676 (maintenance_print_symbols): Use compunit_filetabs.
16677 * source.c (forget_cached_source_info_for_objfile): Use
16679 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16680 (ALL_FILETABS): Use compunit_filetabs.
16681 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16682 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16684 2019-01-09 Tom Tromey <tom@tromey.com>
16686 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16687 (compunit_filetabs): New.
16688 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16690 (info_sources_command, make_source_files_completion_list): Remove
16692 * symmisc.c (print_objfile_statistics, dump_objfile)
16693 (maintenance_print_symbols): Remove declaration.
16694 (maintenance_info_symtabs): Use compunit_filetabs.
16695 (maintenance_info_line_tables): Likewise.
16696 * source.c (select_source_symtab): Change local variable name.
16697 (forget_cached_source_info_for_objfile): Remove declaration.
16698 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16699 * objfiles.c (objfile_relocate1): Remove declaration.
16700 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16702 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16703 * coffread.c (coff_symtab_read): Remove declaration.
16704 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16707 2019-01-09 Tom Tromey <tom@tromey.com>
16709 * symtab.c (lookup_objfile_from_block)
16710 (find_pc_sect_compunit_symtab, search_symbols)
16711 (default_collect_symbol_completion_matches_break_on): Use
16713 * objfiles.h (ALL_COMPUNITS): Remove.
16714 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16715 * cp-support.c (add_symbol_overload_list_qualified): Use
16717 * ada-lang.c (ada_collect_symbol_completion_matches)
16718 (ada_add_global_exceptions): Use objfile_compunits.
16720 2019-01-09 Tom Tromey <tom@tromey.com>
16722 * source.c (select_source_symtab)
16723 (forget_cached_source_info_for_objfile): Remove declaration.
16724 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16726 * maint.c (count_symtabs_and_blocks): Remove declaration.
16727 * cp-support.c (add_symbol_overload_list_qualified): Remove
16729 * coffread.c (coff_symtab_read): Remove declaration.
16730 * symtab.c (lookup_symbol_in_objfile_symtabs)
16731 (basic_lookup_transparent_type_1): Use objfile_compunits.
16732 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16733 (info_sources_command, search_symbols)
16734 (default_collect_symbol_completion_matches_break_on)
16735 (make_source_files_completion_list): Remove declaration.
16736 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16737 (ada_collect_symbol_completion_matches)
16738 (ada_add_global_exceptions): Remove declaration.
16739 * linespec.c (iterate_over_all_matching_symtabs): Use
16741 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16742 (class objfile_compunits): New.
16743 (ALL_COMPUNITS): Use objfile_compunits.
16744 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16745 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16747 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16749 2019-01-09 Tom Tromey <tom@tromey.com>
16751 * symtab.c (search_symbols)
16752 (default_collect_symbol_completion_matches_break_on): Use
16754 * ada-lang.c (ada_lookup_simple_minsym)
16755 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16756 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16757 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16759 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16760 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16761 * objc-lang.c (find_methods): Use objfile_msymbols.
16762 (info_selectors_command, info_classes_command): Likewise.
16763 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16764 * objfiles.h (class objfile_msymbols): New.
16765 (ALL_OBJFILE_MSYMBOLS): Remove.
16766 (ALL_MSYMBOLS): Remove.
16768 2019-01-09 Tom Tromey <tom@tromey.com>
16770 * common/next-iterator.h (next_adapter): Add Iterator template
16772 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16773 (class all_objfiles_safe): New.
16774 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16775 * objfiles.c (put_objfile_before): Update comment.
16776 (add_separate_debug_objfile): Likewise.
16777 (free_all_objfiles): Use all_objfiles_safe.
16778 (objfile_purge_solibs): Likewise.
16780 2019-01-09 Tom Tromey <tom@tromey.com>
16782 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16783 (expand_symtab_containing_pc, lookup_static_symbol)
16784 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16785 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16787 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16788 * breakpoint.c (create_overlay_event_breakpoint)
16789 (create_longjmp_master_breakpoint)
16790 (create_std_terminate_master_breakpoint)
16791 (create_exception_master_breakpoint): Use all_objfiles.
16792 * linux-thread-db.c (try_thread_db_load_from_pdir)
16793 (has_libpthread): Use all_objfiles.
16794 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16795 * linespec.c (iterate_over_all_matching_symtabs)
16796 (search_minsyms_for_name): Use all_objfiles.
16797 * maint.c (maintenance_info_sections): Use all_objfiles.
16798 * main.c (captured_main_1): Use all_objfiles.
16799 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16800 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16801 * guile/scm-pretty-print.c
16802 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16803 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16804 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16805 (maintenance_print_msymbols): Use all_objfiles.
16806 * source.c (select_source_symtab): Use all_objfiles.
16807 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16808 * symfile.c (remove_symbol_file_command)
16809 (expand_symtabs_matching, map_symbol_filenames): Use
16811 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16813 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16814 * objc-lang.c (find_methods): Use all_objfiles.
16815 * objfiles.c (have_partial_symbols, have_full_symbols)
16816 (have_minimal_symbols, qsort_cmp)
16817 (default_iterate_over_objfiles_in_search_order): Use
16819 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16820 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16821 (maintenance_check_psymtabs): Use all_objfiles.
16822 (ALL_PSYMTABS): Remove.
16823 * compile/compile-object-run.c (do_module_cleanup): Use
16825 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16826 * cp-support.c (add_symbol_overload_list_qualified): Use
16828 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16830 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16831 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16833 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16834 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16835 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16837 * solib.c (solib_read_symbols): Use all_objfiles
16839 2019-01-09 Tom Tromey <tom@tromey.com>
16841 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16842 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16844 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16845 * symmisc.c (print_symbol_bcache_statistics)
16846 (print_objfile_statistics, maintenance_print_objfiles)
16847 (maintenance_info_symtabs, maintenance_check_symtabs)
16848 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16850 * source.c (forget_cached_source_info): Use all_objfiles.
16851 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16852 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16853 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16854 * objfiles.c (update_section_map): Use all_objfiles.
16855 (shared_objfile_contains_address_p): Likewise.
16856 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16857 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16859 2019-01-09 Tom Tromey <tom@tromey.com>
16861 * common/next-iterator.h: New file.
16862 * objfiles.h (class all_objfiles): New.
16863 (struct objfile_iterator): New.
16865 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16867 * NEWS: Move the description of the changed "frame", "select-frame",
16868 and "info frame" commands to the Changed commands section.
16870 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16872 * gdbtypes.c (check_stub_method_group): Remove handling of old
16874 * linespec.c (find_methods): Likewise.
16875 * stabsread.c (read_member_functions): Likewise.
16876 * valops.c (search_struct_method): Likewise.
16877 (value_struct_elt_for_reference): Likewise.
16878 * NEWS: Mention this change.
16880 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16882 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16883 print_source_lines.
16884 * source.c (print_source_lines_base): Update line number check.
16885 (print_source_lines): New function.
16886 (source_lines_range::source_lines_range): New function.
16887 * source.h (class source_lines_range): New class.
16888 (print_source_lines): New declaration.
16890 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16892 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16894 2019-01-08 Tom Tromey <tom@tromey.com>
16895 Simon Marchi <simon.marchi@ericsson.com>
16898 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16899 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16900 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16901 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16902 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16903 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16905 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16907 * source.c (select_source_symtab): Move header comment to
16908 declaration in source.h.
16909 (forget_cached_source_info_for_objfile): Likewise.
16910 (forget_cached_source_info): Likewise.
16911 (identify_source_line): Likewise.
16912 * source.h (identify_source_line): Move declaration from symtab.h
16913 and add comment from source.c
16914 (print_source_lines): Likewise.
16915 (forget_cached_source_info_for_objfile): Likewise.
16916 (forget_cached_source_info): Likewise.
16917 (select_source_symtab): Likewise.
16918 (enum print_source_lines_flag): Move definition from symtab.h.
16919 * symtab.h (identify_source_line): Move declaration to source.h.
16920 (print_source_lines): Likewise.
16921 (forget_cached_source_info_for_objfile): Likewise.
16922 (forget_cached_source_info): Likewise.
16923 (select_source_symtab): Likewise.
16924 (enum print_source_lines_flag): Move definition to source.h.
16925 * tui/tui-hooks.c: Add 'source.h' include.
16927 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16929 * source.c (print_source_lines_base): Handle requests to print
16930 reverse line number sequences, and guard against empty lines
16933 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16935 * source.c (print_source_lines_base): Fix skip of '\r' if next
16938 2019-01-06 Tom Tromey <tom@tromey.com>
16940 * c-exp.y (struct c_parse_state) <macro_original_text,
16941 expansion_obstack>: New member.
16942 (macro_original_text, expansion_obstack): Remove globals.
16943 (scan_macro_expansion, scanning_macro_expansion)
16944 (finished_macro_expansion): Update.
16945 (scan_macro_cleanup): Remove.
16946 (yylex, c_parse): Update.
16948 2019-01-06 Tom Tromey <tom@tromey.com>
16950 * c-exp.y (struct c_parse_state) <strings>: New member.
16951 (operator_stoken): Update.
16953 2019-01-06 Tom Tromey <tom@tromey.com>
16955 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16956 (union type_stack_elt) <typelist_val>: Now a pointer to
16958 (type_stack_cleanup): Don't declare.
16959 (push_typelist): Update.
16960 * parse.c (pop_typelist): Return a std::vector.
16961 (push_typelist): Take a std::vector.
16962 (follow_types): Update. Do not free args.
16963 (type_stack_cleanup): Remove.
16964 * c-exp.y (struct c_parse_state): New.
16965 (cpstate): New global.
16966 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16967 (nonempty_typelist): Update.
16968 (func_mod): Create a new vector.
16969 (c_parse): Create a c_parse_state.
16970 (check_parameter_typelist): Do not delete params.
16971 (function_method): Update. Do not delete type_list.
16973 2019-01-06 Tom Tromey <tom@tromey.com>
16976 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16978 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16979 (print_return_value): Likewise.
16981 2019-01-05 Tom Tromey <tom@tromey.com>
16983 * contrib/cleanup_check.py: Remove.
16984 * contrib/gcc-with-excheck: Remove.
16985 * contrib/exsummary.py: Remove.
16986 * contrib/excheck.py: Remove.
16988 2019-01-05 Joel Brobecker <brobecker@adacore.com>
16990 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16991 NULL. Initialize tpprev to NULL instead of assigning it
16992 to NULL on the next statement.
16993 * windows-nat.c (windows_delete_thread): Remove check for
16994 main_thread_id before printing thread exit notifications.
16995 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16996 Remove thread ID check against main_thread_id.
16997 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16998 windows_delete_thread.
16999 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17001 2019-01-04 Tom Tromey <tom@tromey.com>
17003 * compile/compile.c (_initialize_compile): Use upper case for
17004 metasyntactic variables.
17005 * symmisc.c (_initialize_symmisc): Use upper case for
17006 metasyntactic variables.
17007 * psymtab.c (_initialize_psymtab): Use upper case for
17008 metasyntactic variables.
17009 * demangle.c (demangle_command): Use upper case for metasyntactic
17011 (_initialize_demangler): Likewise.
17012 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17015 2019-01-03 Tom Tromey <tom@tromey.com>
17017 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17019 2019-01-03 Tom Tromey <tom@tromey.com>
17021 * python/py-symtab.c (salpy_str): Update.
17022 (struct salpy_sal_object) <symtab>: Now a PyObject.
17023 (salpy_dealloc): Update.
17024 (del_objfile_sal): Use gdbpy_ref.
17026 2019-01-03 Tom Tromey <tom@tromey.com>
17028 * python/py-type.c (convert_field): Use new_reference. Return
17030 (make_fielditem): Return gdbpy_ref.
17031 (typy_fields): Update.
17032 (typy_getitem): Update.
17033 (field_name): Return gdbpy_ref. Use new_reference.
17034 (typy_iterator_iternext): Update.
17036 2019-01-03 Tom Tromey <tom@tromey.com>
17038 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17040 2019-01-03 Tom Tromey <tom@tromey.com>
17042 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17043 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17044 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17045 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17046 (pspy_set_type_printers): Likewise.
17047 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17048 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17049 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17050 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17051 (objfpy_set_type_printers): Likewise.
17053 2019-01-03 Tom Tromey <tom@tromey.com>
17055 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17056 (gdbpy_print_stack): Use gdbpy_err_fetch.
17057 * python/python-internal.h (class gdbpy_err_fetch): New class.
17058 (class gdbpy_enter) <m_error_type, m_error_value,
17059 m_error_traceback>: Remove.
17060 <m_error>: New member.
17061 (gdbpy_exception_to_string): Don't declare.
17062 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17063 * python/py-value.c (convert_value_from_python): Use
17065 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17066 gdbpy_exception_to_string.
17067 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17068 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17071 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17073 * linux-nat.c (delete_lwp_cleanup): Delete.
17074 (struct lwp_deleter): New struct.
17075 (lwp_info_up): New typedef.
17076 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17079 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17081 * linux-fork.c (class scoped_switch_fork_info): New class.
17082 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17084 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17086 * valops.c (find_overload_match): Remove use of null_cleanup, and
17087 calls to do_cleanups.
17089 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17091 * compile/compile-cplus-types.c
17092 (compile_cplus_instance::decl_name): Handle changes to
17094 * cp-support.c (cp_func_name): Update header comment, update
17096 * cp-support.h (cp_func_name): Update return type in declaration.
17097 * valops.c (find_overload_match): Move temp_func local to top
17098 level of function and change its type. Use temp_func to hold and
17099 delete temporary string obtained from cp_func_name.
17101 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17103 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17104 gdb::char_vector, remove cleanup, and update uses of `msg`.
17106 2019-01-03 Jim Wilson <jimw@sifive.com>
17108 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17110 2019-01-02 Tom Tromey <tom@tromey.com>
17112 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17113 (tdesc_parse_xml): Remove cleanups.
17114 * target-descriptions.h (make_cleanup_free_target_description):
17116 (target_desc_deleter): New struct.
17117 (target_desc_up): New typedef.
17118 * target-descriptions.c (target_desc_deleter::operator()): Rename
17119 from free_target_description.
17120 (make_cleanup_free_target_description): Remove.
17122 2019-01-02 Tom Tromey <tom@tromey.com>
17124 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17125 constructor, destructor.
17126 (linespec_parser): Remove typedef.
17127 (~linespec_parser): Rename from linespec_parser_delete.
17128 (linespec_lex_to_end, linespec_complete_label)
17129 (linespec_complete): Update.
17130 (decode_line_full): Remove cleanups.
17131 (decode_line_1): Update.
17133 2019-01-02 Tom Tromey <tom@tromey.com>
17135 * python/python-internal.h (inferior_to_inferior_object): Change
17137 * python/py-exitedevent.c (create_exited_event_object): Update.
17138 * python/py-inferior.c (inferior_to_inferior_object): Return
17140 (python_new_inferior, python_inferior_deleted)
17141 (thread_to_thread_object, delete_thread_object)
17142 (build_inferior_list, gdbpy_selected_inferior): Update.
17143 * python/py-infthread.c (create_thread_object): Update. Also fail
17144 if inferior_to_inferior_object fails.
17146 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17148 * inferior.h (class inferior) <displaced_step_state>: New field.
17149 * infrun.h (struct displaced_step_state): Move here from
17150 infrun.c. Initialize fields, add constructor.
17151 <inf>: Remove field.
17152 <reset>: New method.
17153 * infrun.c (struct displaced_step_inferior_state): Move to
17155 (displaced_step_inferior_states): Remove.
17156 (get_displaced_stepping_state): Adust.
17157 (displaced_step_in_progress_any_inferior): Adjust.
17158 (displaced_step_in_progress_thread): Adjust.
17159 (displaced_step_in_progress): Adjust.
17160 (add_displaced_stepping_state): Remove.
17161 (get_displaced_step_closure_by_addr): Adjust.
17162 (remove_displaced_stepping_state): Remove.
17163 (infrun_inferior_exit): Call displaced_step_state.reset.
17164 (use_displaced_stepping): Don't check for NULL.
17165 (displaced_step_prepare_throw): Call
17166 get_displaced_stepping_state.
17167 (displaced_step_fixup): Don't check for NULL.
17168 (prepare_for_detach): Don't check for NULL.
17170 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17172 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17173 in case of call that did not complete.
17175 2019-01-02 Andrey Utkin <autkin@undo.io>
17177 * symfile.c (find_separate_debug_file): Fix search of debug files for
17180 2019-01-02 Tom Tromey <tom@tromey.com>
17182 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17184 * python/py-frame.c (frapy_older): Remove cast.
17185 (frapy_newer): Likewise.
17186 * python/py-breakpoint.c (local_setattro): Remove cast.
17187 * python/py-arch.c (archpy_name): Remove local variable.
17188 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17190 2019-01-02 Joel Brobecker <brobecker@adacore.com>
17192 * unittests/basic_string_view/element_access/char/empty.cc:
17193 Fix year range in copyright header.
17195 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17197 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17199 <operator==>: Update with for removed field.
17201 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17202 <isa_features>: ...this.
17203 <abi_features>: New field.
17204 (riscv_isa_flen): Update comment.
17205 (riscv_abi_xlen): New declaration.
17206 (riscv_abi_flen): New declaration.
17207 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17209 (riscv_abi_xlen): New function.
17210 (riscv_isa_flen): Update to get answer from isa_features.
17211 (riscv_abi_flen): New function.
17212 (riscv_has_fp_abi): Update to get answer from abi_features.
17213 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17215 (riscv_call_info) <xlen, flen>: Update comment.
17216 (riscv_call_arg_struct): Remove invalid assertions
17217 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17219 (riscv_gdbarch_init): Gather isa features and abi features
17220 separately, ensure both match on the gdbarch when reusing an old
17221 gdbarch. Relax an error check to allow 32-bit abi float to run on
17222 a target with 64-bit float hardware.
17224 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17226 * source.c (search_command_helper): Stop reverse search
17227 when line 1 has been searched.
17229 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17231 * record-full.c (record_full_base_target::close): Rewrite
17232 record_full_core_buf_list free logic.
17234 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17236 * break-catch-syscall.c (print_one_catch_syscall): xfree
17239 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17241 * top.c (print_gdb_version): Update Copyright year in version
17244 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17246 Update copyright year range in all GDB files.
17248 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17250 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17252 For older changes see ChangeLog-2018.
17258 version-control: never