1 2019-12-27 Tom Tromey <tom@tromey.com>
3 * tui/tui.c (tui_active): Now bool.
4 (tui_finish_init): Likewise.
7 (tui_is_window_visible): Update.
8 * tui/tui.h (tui_active): Now bool.
10 2019-12-27 Tom Tromey <tom@tromey.com>
12 * tui/tui-source.c (tui_source_window::maybe_update): Update.
13 * tui/tui-regs.c (tui_data_window::display_registers_from):
15 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
16 * tui/tui-data.h (struct tui_gen_win_info) <viewport_height>:
18 * tui/tui-command.c (tui_cmd_window::resize): Update.
20 2019-12-26 Christian Biesinger <cbiesinger@google.com>
22 * ada-lang.c (ada_decode_symbol): Update.
23 * buildsym.c (add_symbol_to_list): Update.
24 * coffread.c (process_coff_symbol): Update.
25 * ctfread.c (ctf_add_enum_member_cb): Update.
27 (ctf_add_var_cb): Update.
28 * dwarf2read.c (fixup_go_packaging): Update.
29 (dwarf2_compute_name): Update.
31 * jit.c (finalize_symtab): Update.
32 * language.c (language_alloc_type_symbol): Update.
33 * mdebugread.c (new_symbol): Update.
34 * minsyms.c (minimal_symbol_reader::record_full): Update.
35 (minimal_symbol_reader::install): Update.
36 * psymtab.c (print_partial_symbols): Update.
37 (psymbol_hash): Update.
38 (psymbol_compare): Update.
39 (add_psymbol_to_bcache): Update.
40 (maintenance_check_psymtabs): Update.
41 * stabsread.c (define_symbol): Update.
42 * symtab.c (symbol_set_names): Rename to...
43 (general_symbol_info::compute_and_set_names): ...this.
44 (general_symbol_info::natural_name): Update.
45 (general_symbol_info::search_name): Update.
46 (fixup_section): Update.
47 * symtab.h (struct general_symbol_info) <name>: Rename to...
49 <compute_and_set_names>: Rename from...
50 (symbol_set_names): ...this.
51 (SYMBOL_SET_NAMES): Remove.
52 (struct symbol) <ctor>: Update.
54 2019-12-26 Christian Biesinger <cbiesinger@google.com>
56 * NEWS: Mention that multithreaded symbol loading is now on by
59 2019-12-26 Ruslan Kabatsayev <b7.10110111@gmail.com>
61 * dwarf2read.c (is_valid_DW_AT_defaulted)
62 (is_valid_DW_AT_calling_convention_for_type)
63 (is_valid_DW_AT_calling_convention_for_subroutine): Fix printing
64 ULONGEST variables on x86-32.
66 2019-12-21 George Barrett <bob@bob131.so>
68 * solib-svr4.c (svr4_handle_solib_event): Add fallback link
69 namespace test for when the debug struct isn't available.
71 2019-12-21 Eli Zaretskii <eliz@gnu.org>
73 * top.c (print_gdb_configuration): Print "--with-xxhash" or
74 "--without-xxhash" according to HAVE_LIBXXHASH.
76 2019-12-20 Weimin Pan <weimin.pan@oracle.com>
77 * ctfread.c (ctf_file_key): Change type to objfile_key.
78 (struct ctf_context): Remove typedef.
79 (get_objfile_text_range): Use ANOFFSET to get text base.
81 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
83 * dwarf2read.c (is_valid_DW_AT_calling_convention_for_subroutine):
85 (read_subroutine_type): Validate the parsed
86 DW_AT_calling_convention value before assigning it to a
87 subroutine's calling_convention attribute.
88 * gdbtypes.h (struct func_type) <calling_convention>: Use
89 an enum bitfield as its type, instead of plain unsigned.
91 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
94 * infcall.c (call_function_by_hand_dummy): Update the argument-
95 passing section for call-by-value parameters.
96 (struct destructor_info): New struct.
97 (call_destructors): New auxiliary function.
99 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
101 * gnu-v3-abi.c (enum definition_style): New enum type.
102 (get_def_style): New function.
103 (is_user_provided_def): New function.
104 (is_implicit_def): New function.
105 (is_copy_or_move_constructor_type): New function.
106 (is_copy_constructor_type): New function.
107 (is_move_constructor_type): New function.
108 (gnuv3_pass_by_reference): Collect language_pass_by_ref_info
111 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
113 * language.h (struct language_pass_by_ref_info): New struct.
114 (struct language_defn)<la_pass_by_reference>: Change the signature
115 to return a language_pass_by_ref_info instead of an int.
116 (language_pass_by_reference): Ditto.
117 (default_pass_by_reference): Ditto.
118 Adjust the users listed below.
119 * arch-utils.c (default_return_in_first_hidden_param_p):
121 * cp-abi.c (cp_pass_by_reference): Update.
122 * cp-abi.h (cp_pass_by_reference): Update declaration.
123 (struct cp_abi_ops)<pass_by_reference>: Update.
124 * gnu-v3-abi.c (gnuv3_pass_by_reference): Update.
125 * infcall.c (call_function_by_hand_dummy): Update.
126 * language.c (language_pass_by_reference): Update.
127 (default_pass_by_reference): Update.
128 * tic6x-tdep.c (tic6x_return_value): Update.
130 2019-12-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
132 * dwarf2read.c (dwarf2_add_member_fn): Read the DW_AT_defaulted
133 and DW_AT_deleted attributes of a function.
134 (read_structure_type): Read the DW_AT_calling_convention attribute
136 (is_valid_DW_AT_defaulted): New function.
137 (is_valid_DW_AT_calling_convention_for_type): New function.
138 * gdbtypes.h: Include dwarf2.h.
139 (struct fn_field)<defaulted>: New field to store the
140 DW_AT_defaulted attribute.
141 (struct fn_field)<is_deleted>: New field to store the
142 DW_AT_deleted attribute.
143 (struct cplus_struct_type)<calling_convention>: New field to store
144 the DW_AT_calling_convention attribute.
145 (TYPE_FN_FIELD_DEFAULTED): New macro.
146 (TYPE_FN_FIELD_DELETED): New macro.
147 (TYPE_CPLUS_CALLING_CONVENTION): New macro.
148 * gdbtypes.c (dump_fn_fieldlists): Update for the changes made
150 (print_cplus_stuff): Likewise.
152 2019-12-20 Tom Tromey <tom@tromey.com>
154 * tui/tui.c (tui_show_source): Remove.
155 * tui/tui.h (tui_show_source): Don't declare.
156 * tui/tui-out.c (tui_ui_out::do_field_string): Don't call
159 2019-12-20 Tom Tromey <tom@tromey.com>
161 * tui/tui-stack.h (tui_show_frame_info): Return bool.
162 * tui/tui-stack.c (tui_show_frame_info): Return bool.
163 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
166 2019-12-20 Tom Tromey <tom@tromey.com>
169 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
170 Rename parameters. Handle the not-from-stack-frame case.
171 (from_stack, from_source_symtab): New globals.
172 (tui_before_prompt, tui_normal_stop): Update.
173 (tui_context_changed, tui_symtab_changed): New functions.
174 (tui_attach_detach_observers): Attach new observers.
176 2019-12-20 Tom Tromey <tom@tromey.com>
178 * source.c (struct current_source_location) <set, symtab, line>:
180 <m_symtab, m_line>: Rename. Now private.
181 (get_current_source_symtab_and_line)
182 (set_default_source_symtab_and_line)
183 (set_current_source_symtab_and_line)
184 (clear_current_source_symtab_and_line, select_source_symtab)
185 (info_source_command, print_source_lines_base)
186 (info_line_command, search_command_helper): Update.
187 * observable.h (current_source_symtab_and_line_changed): Declare
189 * observable.c (current_source_symtab_and_line_changed): Define
192 2019-12-20 Tom Tromey <tom@tromey.com>
194 * tui/tui-hooks.c (tui_before_prompt): Change parameter to bool.
195 (tui_before_prompt, tui_normal_stop): Update.
197 2019-12-20 Tom Tromey <tom@tromey.com>
199 * tui/tui-winsource.c
200 (tui_source_window_base::update_source_window_as_is): Don't call
201 set_current_source_symtab_and_line.
203 2019-12-20 Tom Tromey <tom@tromey.com>
205 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
206 Take a symtab_and_line.
207 * tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
209 (tui_show_frame_info): Update.
211 2019-12-20 Tom Tromey <tom@tromey.com>
213 * tui/tui-stack.c (tui_show_frame_info): Don't call
216 2019-12-20 Tom Tromey <tom@tromey.com>
218 * tui/tui.c (tui_enable): Call tui_display_main.
220 2019-12-20 Tom Tromey <tom@tromey.com>
222 * tui/tui-disasm.c (tui_get_begin_asm_address): Use
223 get_current_source_symtab_and_line, and main_name.
225 2019-12-20 Tom Tromey <tom@tromey.com>
227 * tui/tui.c (tui_show_source): Update.
228 * tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
229 * tui/tui-winsource.c (tui_update_source_windows_with_line): Take
230 a symtab_symbol_info, not a separate symtab and line. Simplify.
232 2019-12-20 Tom Tromey <tom@tromey.com>
234 * tui/tui-winsource.c (tui_update_source_windows_with_addr):
237 2019-12-20 Tom Tromey <tom@tromey.com>
239 * tui/tui-winsource.h (struct tui_source_window_base)
240 <set_contents, update_source_window_as_is, update_source_window>:
241 Take a sal, not a separate symtab and tui_line_or_address.
242 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
243 (tui_source_window_base::update_source_window_as_is): Take a sal,
244 not a separate symtab and tui_line_or_address.
245 (tui_update_source_windows_with_addr)
246 (tui_update_source_windows_with_line)
247 (tui_source_window_base::rerender)
248 (tui_source_window_base::refill): Update.
249 * tui/tui-source.h (struct tui_source_window) <set_contents>: Take
250 a sal, not a separate symtab and tui_line_or_address.
251 * tui/tui-source.c (tui_source_window::set_contents): Take a sal,
252 not a separate symtab and tui_line_or_address.
253 (tui_source_window::maybe_update): Update.
254 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>: Take
255 a sal, not a separate symtab and tui_line_or_address.
256 * tui/tui-disasm.c (tui_disasm_window::set_contents): Take a sal,
257 not a separate symtab and tui_line_or_address.
258 (tui_disasm_window::do_scroll_vertical)
259 (tui_disasm_window::maybe_update): Update.
261 2019-12-20 Tom Tromey <tom@tromey.com>
263 * tui/tui-winsource.c (tui_source_window_base::refill): Use
265 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Use
267 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
270 2019-12-20 Tom Tromey <tom@tromey.com>
272 * tui/tui-winsource.h (struct tui_source_window_base)
273 <set_contents>: Return bool.
274 * tui/tui-winsource.c
275 (tui_source_window_base::update_source_window_as_is): Update.
276 * tui/tui-source.h (struct tui_source_window) <set_contents>:
278 * tui/tui-source.c (tui_source_window::set_contents): Return
280 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
282 * tui/tui-disasm.c (tui_disasm_window::set_contents): Return
285 2019-12-20 Tom Tromey <tom@tromey.com>
287 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
288 (tui_update_source_windows_with_line): Call update_source_window.
289 * tui/tui-source.h (struct tui_source_window)
290 <show_symtab_source>: Don't declare.
291 * tui/tui-source.c (tui_source_window::show_symtab_source):
294 2019-12-20 Tom Tromey <tom@tromey.com>
296 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
297 update_source_window directly.
298 * tui/tui-disasm.h (tui_show_disassem): Don't declare.
299 * tui/tui-disasm.c (tui_show_disassem): Remove.
301 2019-12-20 Tom Tromey <tom@tromey.com>
303 * tui/tui-winsource.c
304 (tui_source_window_base::update_source_window_as_is): Don't switch focus.
305 * tui/tui-disasm.c (tui_show_disassem): Don't switch focus.
307 2019-12-20 Tom Tromey <tom@tromey.com>
309 * tui/tui-winsource.h (struct tui_source_window_base)
310 <maybe_update>: Remove line_no and addr parameters.
311 * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
312 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
314 * tui/tui-source.c (tui_source_window::maybe_update): Remove
315 line_no and addr parameters.
316 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
318 * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
319 line_no and addr parameters.
321 2019-12-20 Tom Tromey <tom@tromey.com>
323 * tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
324 (tui_source_window_base::update_breakpoint_info): Remove asserts.
326 2019-12-20 Tom Tromey <tom@tromey.com>
328 * tui/tui-winsource.c (tui_update_source_windows_with_addr): Call
330 * tui/tui-disasm.h (tui_show_disassem_and_update_source): Don't
332 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Remove.
334 2019-12-20 Tom Tromey <tom@tromey.com>
336 * tui/tui.h (tui_show_source): Remove parameters.
337 * tui/tui.c (tui_show_source): Remove parameters.
338 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
340 2019-12-20 Tom Tromey <tom@tromey.com>
342 * tui/tui.c (tui_show_source): Update.
343 * tui/tui-winsource.c (tui_display_main): Update.
344 * tui/tui-stack.h (tui_update_locator_fullname): Change parameter
346 * tui/tui-stack.c (tui_update_locator_fullname): Change parameter
348 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
350 2019-12-20 Tom Tromey <tom@tromey.com>
353 * tui/tui-io.c (tui_rl_saved_prompt): Remove.
354 (tui_redisplay_readline): Use rl_display_prompt.
355 (tui_prep_terminal): Update.
357 2019-12-19 Christian Biesinger <cbiesinger@google.com>
359 * configure: Regenerate.
360 * configure.ac: Quote variable arguments of test.
361 * gdbsupport/common.m4: Likewise.
363 2019-12-19 Christian Biesinger <cbiesinger@google.com>
365 * score-tdep.c (score7_analyze_prologue): Pass 2.0 instead of
368 2019-12-19 Christian Biesinger <cbiesinger@google.com>
370 * tui/tui-source.c (tui_source_window::set_contents): Cast argument of
371 log10 to double to fix Solaris 11 with gcc 5.5.
373 2019-12-19 Christian Biesinger <cbiesinger@google.com>
375 * fbsd-tdep.c (fbsd_info_proc_files_entry): Rename local var
378 2019-12-19 Tom Tromey <tromey@adacore.com>
380 * ui-out.h (enum class field_kind): Fix comment.
382 2019-12-11 Tom Tromey <tromey@adacore.com>
384 * xml-support.c (xml_fetch_content_from_file): Use FOPEN_RB.
386 2019-12-18 Tom Tromey <tromey@adacore.com>
389 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
390 type on macOS. Add comment.
392 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
394 * c-lang.c (c_get_string, asm_language_defn): Remove space
397 2019-12-18 Tom Tromey <tromey@adacore.com>
400 * ui-out.c (ui_out::vmessage): Update.
401 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
403 (string_field): Update.
404 (signed_field): Update.
406 2019-12-18 Simon Marchi <simon.marchi@efficios.com>
408 * top.c (print_gdb_configuration): Adjust indentation.
410 2019-12-17 Christian Biesinger <cbiesinger@google.com>
412 * bsd-kvm.c: Include gdbsupport/pathstuff.h.
414 2019-12-17 Simon Marchi <simon.marchi@polymtl.ca>
416 * tui/tui-layout.h (class tui_layout_base): Add virtual
419 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
421 * infcmd.c (prepare_one_step): Step over skipped inline functions.
422 * infrun.c (inline_frame_is_marked_for_skip): New helper function.
423 (process_event_stop_test): Keep stepping over skipped inline functions.
425 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
427 * jit.c (struct gdb_block) <next>: Remove field.
428 (struct gdb_symtab) <~gdb_symtab>: Remove.
429 <blocks>: Change type to std::forward_list<gdb_block>.
430 (compare_block): Remove.
431 (jit_block_open_impl): Adjust to std::forward_list. Place the new
432 block at the beginning, don't mind about sorting.
433 (finalize_symtab): Adjust to std::forward_list, sort the blocks list
436 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
438 * jit.c (struct gdb_block): Add constructor, initialize
439 real_block and next fields.
440 <name>: Change type to gdb::unique_xmalloc_ptr.
441 (struct gdb_symtab) <~gdb_symtab>: Free blocks with delete.
442 (jit_block_open_impl): Allocate gdb_block with new.
443 (finalize_symtab): Adjust to gdb::unique_xmalloc_ptr.
445 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
447 * jit.c: Include forward_list.
448 (struct gdb_symtab) <next>: Remove field.
449 (struct gdb_object) <symtabs>: Change type to
450 std::forward_list<gdb_symtab>.
451 (jit_object_open_impl): Allocate gdb_object with new.
452 (jit_symtab_open_impl): Adjust to std::forward_list.
453 (finalize_symtab): Don't delete symtab.
454 (jit_object_close_impl): Adjust to std::forward_list. Free
455 gdb_object with delete.
457 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
459 * jit.c (struct gdb_symtab): Add constructor, destructor,
461 <linetable>: Change type to unique_xmalloc_ptr.
462 <file_name>: Change type to std::string.
463 (jit_symtab_open_impl): Allocate gdb_symtab with new.
464 (jit_symtab_line_mapping_add_impl): Adjust.
465 (finalize_symtab): Adjust, call delete on stab.
467 2019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
469 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
471 2019-12-16 Tom Tromey <tromey@adacore.com>
473 * windows-nat.c (windows_nat_target::attach): Update.
474 * remote.c (extended_remote_target::attach): Update.
475 * procfs.c (procfs_target::attach): Update.
476 * nto-procfs.c (nto_procfs_target::attach): Update.
477 (nto_procfs_target::create_inferior): Update.
478 * inf-ptrace.c (inf_ptrace_target::attach): Update.
479 * gnu-nat.c (gnu_nat_target::attach): Update.
480 (gnu_nat_target::detach): Update.
481 * darwin-nat.c (darwin_nat_target::attach): Update.
482 * corefile.c (get_exec_file): Constify result. Remove extraneous
484 * bsd-kvm.c (bsd_kvm_target_open): Update.
485 * gdbsupport/common-inferior.h (get_exec_file): Constify result.
487 2019-12-16 Christian Biesinger <cbiesinger@google.com>
489 * gdbsupport/common-defs.h: Remove workaround for a gnulib bug
490 (we no longer need to include time.h before pathmax.h)
492 2019-12-15 Christian Biesinger <cbiesinger@google.com>
494 * ada-exp.y (write_ambiguous_var): Update.
495 * coffread.c (process_coff_symbol): Update.
496 * ctfread.c (ctf_add_enum_member_cb): Update.
497 (new_symbol): Update.
498 * dwarf2read.c (fixup_go_packaging): Update.
499 (new_symbol): Update.
500 * language.c (language_alloc_type_symbol): Update.
501 * mdebugread.c (new_symbol): Update.
502 * minsyms.c (minimal_symbol_reader::record_full): Update.
503 * psymtab.c (add_psymbol_to_bcache): Update.
504 * stabsread.c (define_symbol): Update.
505 (read_enum_type): Update.
506 * symtab.c (symbol_set_language): Make this a member function...
507 (general_symbol_info::set_language): ... here.
508 * symtab.h (struct general_symbol_info) <set_language>: New function.
509 (SYMBOL_SET_LANGUAGE): Remove.
510 (symbol_set_language): Remove.
512 2019-12-15 Christian Biesinger <cbiesinger@google.com>
514 * ada-lang.c (ada_add_block_symbols): Update.
515 (ada_collect_symbol_completion_matches): Update.
516 * ax-gdb.c (gen_expr): Update.
517 * block.c (block_lookup_symbol): Update.
518 (block_lookup_symbol_primary): Update.
519 (block_find_symbol): Update.
520 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
521 * dbxread.c (process_one_symbol): Update.
522 * dictionary.c (insert_symbol_hashed): Update.
523 (collate_pending_symbols_by_language): Update.
524 (mdict_add_symbol): Update.
525 * dwarf-index-write.c (write_psymbols): Update.
526 * dwarf2read.c (fixup_go_packaging): Update.
527 * findvar.c (read_var_value): Update.
528 * ft32-tdep.c (ft32_skip_prologue): Update.
529 * go-lang.c (go_symbol_package_name): Update.
530 * language.h (scoped_switch_to_sym_language_if_auto::
531 scoped_switch_to_sym_language_if_auto): Update.
532 * linespec.c (find_method): Update.
533 (find_label_symbols_in_block): Update.
534 * mdebugread.c (parse_symbol): Update.
535 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
536 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
537 (minimal_symbol_reader::install): Update.
538 * moxie-tdep.c (moxie_skip_prologue): Update.
539 * parse.c (parse_exp_in_context): Update.
540 * psymtab.c (psymbol_name_matches): Update.
541 (match_partial_symbol): Update.
542 (lookup_partial_symbol): Update.
543 (psymbol_hash): Update.
544 (psymbol_compare): Update.
545 * python/py-framefilter.c (extract_sym): Update.
546 (py_print_single_arg): Update.
547 * stabsread.c (define_symbol): Update.
548 * stack.c (print_frame_arg): Update.
549 (find_frame_funname): Update.
550 (info_frame_command_core): Update.
551 * symfile.c (set_initial_language): Update.
552 * symtab.c (symbol_set_demangled_name): Update.
553 (symbol_get_demangled_name): Update.
554 (symbol_set_language): Update.
555 (symbol_find_demangled_name): Update.
556 (symbol_set_names): Update.
557 (general_symbol_info::natural_name): Update.
558 (general_symbol_info::demangled_name): Update.
559 (general_symbol_info::search_name): Update.
560 (symbol_matches_search_name): Update.
561 (eq_symbol_entry): Update.
562 (iterate_over_symbols): Update.
563 (completion_list_add_symbol): Update.
564 (completion_list_add_msymbol): Update.
565 (completion_list_add_fields): Update.
566 * symtab.h (struct general_symbol_info) <language>: New function.
567 <language>: Rename to...
568 <m_language>: ...this.
569 (SYMBOL_LANGUAGE): Remove.
570 (MSYMBOL_LANGUAGE): Remove.
571 (struct symbol) <ctor>: Update.
572 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
574 2019-12-15 Christian Biesinger <cbiesinger@google.com>
576 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
577 set the language of sym.
578 * language.c (language_alloc_type_symbol): Likewise.
580 2019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
582 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
584 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
585 * corelow.c: Include 'gdbsupport/pathstuff.h'.
586 (core_target_open): Use 'gdb_abspath'.
587 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
588 'current_directory == NULL' case.
589 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
590 explain what happens when 'current_directory' is NULL.
591 * go32-nat.c (go32_nat_target::wait): Check if
592 'current_directory' is NULL before call to 'chdir'.
593 * source.c (add_path): Use 'gdb_abspath'.
594 * top.c: Include 'gdbsupport/pathstuff.h'.
595 (init_history): Use 'gdb_abspath'.
596 (set_history_filename): Likewise.
597 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
598 (tfile_target_open): Use 'gdb_abspath'.
600 2019-12-13 Tom Tromey <tromey@adacore.com>
602 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
605 2019-12-13 Tom Tromey <tromey@adacore.com>
607 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
609 2019-12-13 Tom Tromey <tromey@adacore.com>
611 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
613 2019-12-13 Tom Tromey <tromey@adacore.com>
615 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
617 2019-12-13 Tom Tromey <tromey@adacore.com>
619 * gdbsupport/common-utils.c (string_printf, string_vprintf)
620 (string_vappendf): Add ARI comment.
622 2019-12-13 Tom Tromey <tromey@adacore.com>
624 * contrib/ari/gdb_ari.sh: Remove "fix" call for
625 floatformat_to_double.
626 * target-float.c (host_float_ops<T>::from_target): Add ARI
629 2019-12-13 Tom Tromey <tromey@adacore.com>
631 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
632 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
634 * event-top.c (handle_sigsegv): Add ARI marker to abort.
636 2019-12-13 Tom Tromey <tromey@adacore.com>
638 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
640 2019-12-13 Tom Tromey <tromey@adacore.com>
642 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
644 2019-12-13 Tom Tromey <tromey@adacore.com>
646 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
649 2019-12-13 Tom Tromey <tromey@adacore.com>
651 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
652 end>: No longer "const".
654 2019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
656 * jit.c: Fix indentation, replace spaces with tabs where
659 2019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
661 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
663 2019-12-12 Tom Tromey <tom@tromey.com>
665 * objfiles.h (struct objfile) <partial_symtabs>: Now a
668 2019-12-12 Tom Tromey <tom@tromey.com>
670 * progspace.h (objfile_list): New typedef.
671 (class unwrapping_objfile_iterator)
672 (struct unwrapping_objfile_range): Newl
673 (struct program_space) <objfiles_range>: Change type.
674 <objfiles>: Change return type.
675 <add_objfile>: Change type of "objfile" parameter.
676 <objfiles_list>: Now a list of shared_ptr.
677 * progspace.c (program_space::add_objfile): Change type of
679 (program_space::remove_objfile): Update.
680 * objfiles.h (struct objfile) <~objfile>: Make public.
681 * objfiles.c (objfile::make): Update.
682 (objfile::unlink): Don't call delete.
684 2019-12-12 Tom Tromey <tom@tromey.com>
686 * symfile.c (symbol_file_clear): Update.
687 * progspace.h (struct program_space) <free_all_objfiles>: Declare
689 * progspace.c (program_space::free_all_objfiles): New method.
690 * objfiles.h (free_all_objfiles): Don't declare.
691 * objfiles.c (free_all_objfiles): Move to program_space.
693 2019-12-12 Tom Tromey <tom@tromey.com>
695 * progspace.c (program_space::add_objfile)
696 (program_space::remove_objfile): Update.
697 (program_space::multi_objfile_p): Remove.
698 * objfiles.h (struct objfile) <next>: Remove.
699 * objfiles.c (objfile::objfile): Update.
700 (put_objfile_before): Update.
701 (unlink_objfile): Update.
702 * progspace.h (object_files): Remove.
703 (struct program_space) <objfiles_head>: Remove.
704 <objfiles_list>: New member.
705 <objfiles_range, objfiles_safe_range>: Change type.
706 (objfiles): Change return type.
707 (objfiles_safe): Update.
708 (multi_objfile_p): Rewrite and inline.
709 (object_files): Remove macro.
711 2019-12-12 Tom Tromey <tom@tromey.com>
713 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
715 (basic_safe_range): New class.
717 2019-12-12 Tom Tromey <tom@tromey.com>
719 * progspace.c (program_space::multi_objfile_p): New method.
720 * printcmd.c (info_symbol_command): Update.
721 * maint.c (maintenance_translate_address): Update.
722 * objfiles.h (MULTI_OBJFILE_P): Remove.
723 * progspace.h (struct program_space) <multi_objfile_p>: New
726 2019-12-12 Tom Tromey <tom@tromey.com>
728 * progspace.h (struct program_space) <remove_objfile>: Declare.
729 * progspace.c (program_space::remove_objfile): New method.
730 * objfiles.c (unlink_objfile): Remove.
731 (objfile::unlink): Call remove_objfile.
732 (objfile): Don't call unlink_objfile.
734 2019-12-12 Tom Tromey <tom@tromey.com>
736 * progspace.h (struct program_space) <add_objfile>: Declare
738 * progspace.c (program_space::add_objfile): New method.
739 * objfiles.c (~objfile): Don't unlink objfile.
740 (put_objfile_before): Remove.
741 (add_separate_debug_objfile): Don't call put_objfile_before.
742 (objfile::make): Call add_objfile. Set new_objfiles_available on
743 the per-program-space data.
745 2019-12-12 Tom Tromey <tom@tromey.com>
747 * symfile.c (syms_from_objfile_1): Use objfile_up.
748 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
750 (reread_symbols): Use objfile_up.
751 * solib.c (update_solib_list, reload_shared_libraries_1): Call
753 * objfiles.h (struct objfile) <~objfile>: Now private.
754 <unlink>: New method.
755 (struct objfile_deleter): New.
756 (objfile_up): New typedef.
757 * objfiles.c (objfile::unlink): New method.
758 (free_objfile_separate_debug, free_all_objfiles)
759 (objfile_purge_solibs): Use it.
760 * jit.c (jit_unregister_code): Remove.
761 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
763 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
765 * compile/compile-object-load.c (compile_object_load): Use
768 2019-12-12 Tom Tromey <tom@tromey.com>
770 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
772 * objfiles.h (struct objjfile) <make>: No longer inline.
773 (add_separate_debug_objfile): Don't declare.
774 * objfiles.c (add_separate_debug_objfile): Now static.
775 (objfile::make): Move from objfiles.h. Call
776 add_separate_debug_objfile. Add "parent" parameter.
778 2019-12-12 Tom Tromey <tom@tromey.com>
780 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
781 * objfiles.h (struct objfile): Make constructor private.
782 <make>: New static method.
783 * jit.c (jit_object_close_impl): Update.
785 2019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
787 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
790 2019-12-12 Tom Tromey <tromey@adacore.com>
792 * xml-support.c (xml_fetch_content_from_file): Don't call
794 * utils.h (class gdb_argv): Remove malloc_failure comment.
795 * utils.c (gdb_argv::reset): Don't call malloc_failure.
797 2019-12-12 Tom Tromey <tromey@adacore.com>
799 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
800 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
801 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
802 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
803 * riscv-ravenscar-thread.c: New file.
804 * riscv-ravenscar-thread.h: New file.
805 * riscv-tdep.c (riscv_gdbarch_init): Call
806 register_riscv_ravenscar_ops.
808 2019-12-12 Tom Tromey <tromey@adacore.com>
810 * gdbsupport/thread-pool.c (set_thread_name): Use
813 2019-12-12 Luis Machado <luis.machado@linaro.org>
815 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
816 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
819 2019-12-11 Tom Tromey <tom@tromey.com>
821 * tui/tui-win.c (tui_set_win_height_command): Call
822 tui_adjust_window_height.
823 (tui_adjust_win_heights, new_height_ok): Remove.
824 * tui/tui-layout.h (tui_adjust_window_height): Declare.
825 * tui/tui-layout.c (tui_adjust_window_height): New function.
827 2019-12-11 Tom Tromey <tom@tromey.com>
829 * tui/tui-win.c (tui_resize_all): Remove code, call
830 tui_apply_current_layout.
832 2019-12-11 Tom Tromey <tom@tromey.com>
834 * tui/tui-layout.h (tui_apply_current_layout): Declare.
835 * tui/tui-layout.c (standard_layouts, applied_layout): New
837 (tui_apply_current_layout): New function.
838 (show_layout): Set applied_layout. Call
839 tui_apply_current_layout.
840 (show_source_command, show_disasm_command)
841 (show_source_disasm_command, show_data)
842 (show_source_or_disasm_and_command): Remove.
843 (initialize_layouts): New function.
844 (_initialize_tui_layout): Call initialize_layouts.
846 2019-12-11 Tom Tromey <tom@tromey.com>
848 * tui/tui-layout.h (class tui_layout_base)
849 (class tui_layout_window, class tui_layout_split): New.
850 * tui/tui-layout.c (tui_get_window_by_name)
851 (tui_layout_window::clone, tui_layout_window::apply)
852 (tui_layout_window::get_sizes, tui_layout_window::add_split)
853 (tui_layout_split::add_window, tui_layout_split::clone)
854 (tui_layout_split::get_sizes)
855 (tui_layout_split::set_weights_from_heights)
856 (tui_layout_split::adjust_size, tui_layout_split::apply): New
858 (tui_layout_split::add_split, tui_layout_split::add_split)
859 (tui_layout_split::set_weights_from_heights)
860 (tui_layout_split::set_weights_from_heights): New functions.
862 2019-12-11 Tom Tromey <tom@tromey.com>
864 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
865 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
866 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
867 * tui/tui-data.h (struct tui_point): Remove.
868 (struct tui_gen_win_info) <origin>: Remove.
870 * tui/tui-command.c (tui_cmd_window::resize): Update.
872 2019-12-11 Tom Tromey <tom@tromey.com>
874 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
876 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
878 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
880 (struct tui_win_info) <min_height>: Implement.
882 2019-12-11 Tom Tromey <tom@tromey.com>
884 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
885 (struct tui_win_info) <can_box>: Update.
887 2019-12-11 Tom Tromey <tom@tromey.com>
889 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
891 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
893 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
895 (struct tui_win_info) <max_height>: Now override.
897 2019-12-11 Joel Brobecker <brobecker@adacore.com>
899 * NEWS: Create a new section for the next release branch.
900 Rename the section of the current branch, now that it has
903 2019-12-11 Joel Brobecker <brobecker@adacore.com>
905 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
906 * version.in: Bump version to 10.0.50.DATE-git.
908 2019-12-11 Tom Tromey <tromey@adacore.com>
911 * gdbsupport/thread-pool.c (set_thread_name): New function.
912 (thread_pool::set_thread_count): Don't call pthread_setname_np.
913 (thread_pool::thread_function): Call set_thread_name.
915 2019-12-11 Tom Tromey <tromey@adacore.com>
917 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
920 2019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
922 * NEWS: Document -raw-values option and the related setting commands.
923 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
924 only set it on when /r is given.
925 * valprint.c (value_print_option_defs): New element raw-values.
926 * Makefile.in: Add the new file.
928 2019-12-10 Christian Biesinger <cbiesinger@google.com>
930 * gdbsupport/safe-strerror.c: Supress the unused function warning
931 for select_strerror_r.
933 2019-12-10 Christian Biesinger <cbiesinger@google.com>
935 * config.in: Regenerate.
936 * configure: Regenerate.
937 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
938 safe_strerror instead of strerror.
939 * gdbsupport/common.m4: Don't check for strerror.
940 * gdbsupport/safe-strerror.c: Support both the glibc version
941 of strerror_r and the XSI version.
943 2019-12-10 Tom Tromey <tromey@adacore.com>
945 * ada-typeprint.c (print_choices): Use a single "?".
946 (print_variant_part): Print "?" if the discriminant name
949 2019-12-10 George Barrett <bob@bob131.so>
951 Fix scripted probe breakpoints.
952 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
954 (breakpoint_ops_for_event_location_type)
955 (breakpoint_ops_for_event_location): Add function definitions.
956 (break_command_1, trace_command): Use
957 breakpoint_ops_for_event_location.
958 * breakpoint.h (breakpoint_ops_for_event_location): Add function
960 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
961 breakpoint_ops_for_event_location.
962 * python/py-breakpoint.c (bppy_init): Use
963 breakpoint_ops_for_event_location.
965 2019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
967 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
968 when ranking an lvalue argument for an rvalue parameter.
970 2019-12-08 Wataru Ashihara <wataash@wataash.com>
972 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
973 template argument for scoped_restore_tmpl from bool to int.
975 2019-12-07 Keith Seitz <keiths@redhat.com>
977 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
978 (build_id_to_debug_bfd): Make static, rewriting to use
979 build_id_to_bfd_suffix.
980 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
981 adding `suffix' parameter. Append SUFFIX to file names
982 when searching for matching files.
983 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
984 (build_id_to_exec_bfd): Likewise.
985 * build-id.h (build_id_to_debug_bfd): Clarify that function
986 searches for BFD of debug info file.
987 (build_id_to_exec_bfd): Declare.
988 * corelow.c: Include build-id.h.
989 (locate_exec_from_corefile_build_id): New function.
990 (core_target_open): If no executable BFD is found,
991 search for a core file BFD using build-id.
993 2019-12-06 Christian Biesinger <cbiesinger@google.com>
995 * bcache.c: Put in namespace gdb.
996 * bcache.h: Likewise.
997 * gdbtypes.c (check_types_worklist): Update.
998 (types_deeply_equal): Update.
999 * macrotab.c (struct macro_table) <bcache>: Update.
1000 (new_macro_table): Update.
1001 * macrotab.h (struct bcache): Put this forward declaration
1002 inside namespace gdb.
1003 (new_macro_table): Update.
1004 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
1006 <macro_cache>: Update.
1007 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
1009 2019-12-06 Tom de Vries <tdevries@suse.de>
1012 * block.c (best_symbol, better_symbol): New function.
1013 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
1016 2019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1018 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
1019 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
1020 for ranking see-through reference cases.
1022 2019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1023 * stack.c (faas_command): Check a command is provided.
1024 * thread.c (taas_command, tfaas_command): Likewise.
1026 2019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1027 * inferior.c (prune_inferiors): Only call delete_inferior,
1028 Do not modify the inferior list.
1030 2019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
1032 * c-exp.y: Update calls to lookup_typename,
1033 lookup_signed_typename and lookup_unsigned_typename.
1034 * c-lang.c (evaluate_subexp_c): Likewise.
1035 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
1037 * eval.c (binop_promote): Likewise.
1038 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
1039 (lookup_unsigned_typename): Likewise.
1040 (lookup_signed_typename): Likewise.
1041 * gdbtypes.h (lookup_unsigned_typename): Likewise.
1042 (lookup_signed_typename): Likewise.
1043 (lookup_typename): Likewise.
1044 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
1045 lookup_typename, lookup_signed_typename,
1046 lookup_unsigned_typename.
1047 * m2-exp.y: Likewise.
1048 * printcmd.c (printf_wide_c_string): Likewise.
1049 (ui_printf): Likewise.
1050 * python/py-type.c (typy_lookup_typename): Likewise.
1051 * python/py-xmethods.c (python_xmethod_worker::invoke):
1053 * rust-exp.y: Likewise.
1055 2019-12-04 Christian Biesinger <cbiesinger@google.com>
1057 * configure.nat (obsd64): Add missing files x86-nat.o and
1060 2019-12-04 Tom Tromey <tom@tromey.com>
1062 * valprint.c (val_print_string): Use metadata_style.
1063 * go-valprint.c (print_go_string): Use metadata style.
1064 * p-valprint.c (pascal_object_print_static_field): Use metadata
1066 * cp-valprint.c (cp_print_static_field): Use metadata style.
1068 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1069 Chris January <chris.january@arm.com>
1071 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
1073 (typebase): New patterns for complex, single/double precision, and
1074 single/double complex.
1075 (f77_keywords): Change token for complex keyword, and add single,
1076 double, and precision keywords.
1078 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1080 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
1081 "info io_registers".
1083 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1085 * regcache.c (cooked_read_test): Initialize thread list of
1088 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1090 * aarch64-linux-tdep.c: Remove includes.
1092 2019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1094 * aarch64-tdep.c: Remove includes.
1096 2019-12-04 Simon Marchi <simon.marchi@efficios.com>
1098 * filtered-iterator.h (filtered_iterator) <operator==,
1099 operator!=>: Compare wrapped iterators, not wrapped pointers.
1100 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1101 unittests/filtered_iterator-selftests.c.
1102 * unittests/filtered_iterator-selftests.c: New file.
1104 2019-12-04 Tom Tromey <tromey@adacore.com>
1106 * gdbtypes.c (create_range_type): Inherit endianity
1109 2019-12-04 Tom Tromey <tromey@adacore.com>
1111 * ada-lang.c (decode_constrained_packed_array)
1112 (ada_value_assign, value_assign_to_component): Update.
1113 * dwarf2loc.c (rw_pieced_value, access_memory)
1114 (dwarf2_compile_expr_to_ax): Update.
1115 * dwarf2read.c (dwarf2_add_field): Update.
1116 * eval.c (evaluate_subexp_standard): Update.
1117 * gdbarch.c, gdbarch.h: Rebuild.
1118 * gdbarch.sh (bits_big_endian): Remove.
1119 * gdbtypes.h (union field_location): Update comment.
1120 * target-descriptions.c (make_gdb_type): Update.
1121 * valarith.c (value_bit_index): Update.
1122 * value.c (struct value) <bitpos>: Update comment.
1123 (unpack_bits_as_long, modify_field): Update.
1124 * value.h (value_bitpos): Update comment.
1126 2019-12-04 Tom Tromey <tromey@adacore.com>
1128 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
1131 2019-12-04 Tom Tromey <tromey@adacore.com>
1133 * dwarf2read.c (dwarf2_init_float_type)
1134 (dwarf2_init_complex_target_type): Add byte_order parameter.
1135 (read_base_type): Compute byte order earlier.
1136 * gdbtypes.c (init_float_type): Add byte_order parameter.
1137 * gdbtypes.h (init_float_type): Add byte_order parameter.
1139 2019-12-04 Tom Tromey <tromey@adacore.com>
1141 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
1143 2019-12-04 Tom Tromey <tromey@adacore.com>
1145 * dwarf2read.c (process_structure_scope): Initialize
1148 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1150 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
1151 add it into the search spec.
1152 (parse_max_results_option): New function.
1153 (mi_info_functions_or_variables): Parse -max-results flag and pass
1154 it to mi_symbol_info.
1155 (mi_cmd_symbol_info_modules): Likewise.
1156 (mi_cmd_symbol_info_types): Likewise.
1157 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
1158 return type to bool, change result container into a set, and don't
1159 add new results if we have enough already.
1160 (global_symbol_searcher::add_matching_msymbols): Change return
1161 type to bool, and don't add new results if we have enough already.
1162 (sort_search_symbols_remove_dups): Delete.
1163 (global_symbol_searcher::search): Early exit from search loop when
1164 we have enough results. Use a std::set to collect the results
1165 from calling add_matching_symbols.
1166 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
1168 (global_symbol_searcher) <m_max_search_results>: New member
1170 (global_symbol_searcher) <add_matching_symbols>: Update header
1171 comment and change return type to bool.
1172 (global_symbol_searcher) <add_matching_msymbols>: Update header
1173 comment and change return type to bool.
1175 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1177 * symtab.c (symbol_search::compare_search_syms): Update header
1179 (global_symbol_searcher::is_suitable_msymbol): New function.
1180 (global_symbol_searcher::expand_symtabs): New function.
1181 (global_symbol_searcher::add_matching_symbols): New function.
1182 (global_symbol_searcher::add_matching_msymbols): New function.
1183 (global_symbol_searcher::search): Move most of the content
1184 into the new functions above, and call them as needed.
1185 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
1187 (global_symbol_searcher) <add_matching_symbols>: New member
1189 (global_symbol_searcher) <add_matching_msymbols>: New member
1191 (global_symbol_searcher) <is_suitable_msymbol>: New member
1194 2019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
1196 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
1197 -symbol-info-module-variables entries.
1198 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
1199 (mi_cmd_symbol_info_module_variables): Declare.
1200 * mi/mi-symbol-cmds.c
1201 (module_symbol_search_iterator): New typedef.
1202 (output_module_symbols_in_single_module_and_file): New function.
1203 (output_module_symbols_in_single_module): New function.
1204 (mi_info_module_functions_or_variables): New function.
1205 (mi_cmd_symbol_info_module_functions): New function.
1206 (mi_cmd_symbol_info_module_variables): New function.
1207 * NEWS: Mention new MI command.
1209 2019-12-03 Christian Biesinger <cbiesinger@google.com>
1211 * bcache.c (hash): Remove.
1212 (hash_continue): Remove.
1213 * bcache.h (hash): Remove.
1214 (hash_continue): Remove.
1215 (struct bcache) <ctor>: Update.
1216 * psymtab.c (psymbol_hash): Update.
1217 * stabsread.c (hashname): Update.
1218 * utils.h (fast_hash): Add an argument for a start value,
1221 2019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1222 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
1223 (destroy_block_symbol_cache): New function.
1224 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
1225 (resize_symbol_cache): Likewise.
1227 2019-12-02 Tom Tromey <tom@tromey.com>
1229 * unittests/tui-selftests.c (run_tests): Make conditional.
1230 (_initialize_tui_selftest): Make conditional.
1232 2019-12-02 Christian Biesinger <cbiesinger@google.com>
1234 * aix-thread.c (debug_aix_thread): Change type to bool.
1236 2019-12-02 Luis Machado <luis.machado@linaro.org>
1238 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
1240 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1242 * dwarf2read.c (read_tag_string_type): Read the fields required to
1243 make a dynamic string, and possibly create a dynamic range for the
1245 (attr_to_dynamic_prop): Setup is_reference based on the type of
1246 attribute being processed.
1247 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
1248 (resolve_dynamic_array): Rename to...
1249 (resolve_dynamic_array_or_string): ...this, update header comment,
1250 and accept TYPE_CODE_STRING.
1251 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
1253 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1255 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
1256 of its implementation from...
1257 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
1260 2019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
1262 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
1263 create a range with stride where appropriate.
1264 * f-valprint.c: Include 'gdbarch.h'.
1265 (f77_print_array_1): Take the stride into account when walking the
1266 array. Also convert the stride into addressable units.
1267 * gdbtypes.c (create_range_type): Initialise the stride to
1269 (create_range_type_with_stride): New function, initialise the
1270 range as normal, and then setup the stride.
1271 (has_static_range): Include the stride here. Also change the
1272 return type to bool.
1273 (create_array_type_with_stride): Consider the range stride if the
1274 array isn't given its own stride.
1275 (resolve_dynamic_range): Resolve the stride if needed.
1276 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
1277 (struct range_bounds) <flag_is_byte_stride>: New member variable.
1278 (TYPE_BIT_STRIDE): Define.
1279 (TYPE_ARRAY_BIT_STRIDE): Define.
1280 (create_range_type_with_stride): Declare.
1281 * valarith.c (value_subscripted_rvalue): Take range stride into
1282 account when walking the array.
1284 2019-12-01 Tom Tromey <tom@tromey.com>
1286 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
1289 2019-12-01 Tom Tromey <tom@tromey.com>
1291 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
1293 * unittests/tui-selftests.c: New file.
1294 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
1296 2019-12-01 Tom Tromey <tom@tromey.com>
1298 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
1300 2019-12-01 Tom Tromey <tom@tromey.com>
1302 * NEWS: Document new settings.
1303 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
1304 * tui/tui-win.c (_initialize_tui_win): Add border style
1306 * tui/tui-io.h (tui_apply_style): Declare.
1307 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
1309 (apply_ansi_escape, tui_set_reverse_mode): Update.
1310 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1311 Add "skip_intensity" parameter.
1312 <changed>: New member.
1313 <do_set_value>: Declare.
1314 (tui_border_style, tui_active_border_style): Declare.
1315 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
1317 (cli_style_option): Initialize "changed".
1318 (cli_style_option::do_set_value): New function.
1319 (cli_style_option::add_setshow_commands): Add "skip_intensity"
1321 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
1322 (_initialize_cli_style): Update. Create TUI border style
1325 2019-12-01 Tom Tromey <tom@tromey.com>
1327 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
1329 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
1331 * tui/tui-win.h (compact_source): Declare.
1332 * tui/tui-win.c (compact_source): New global.
1333 (tui_set_compact_source, tui_show_compact_source): New functions.
1334 (_initialize_tui_win): Add "compact-source" setting.
1335 * tui/tui-source.c (tui_source_window::set_contents): Handle
1336 compact_source setting.
1337 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1338 * NEWS: Document new setting.
1340 2019-11-30 Tom Tromey <tom@tromey.com>
1342 * dwarf2read.c (dwarf2_add_field): Include field offset when
1343 computing variant part length.
1345 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1346 * NEWS: Mention define-prefix. Tell that command names can now
1347 contain a . character.
1349 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1351 * command.h (valid_cmd_char_p): Declare.
1352 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
1353 the check of valid command char.
1354 (find_command_name_length, valid_user_defined_cmd_name_p): Use
1356 * cli/cli-script.c (validate_comname): Likewise.
1357 * completer.c (gdb_completer_command_word_break_characters):
1358 Do not remove . from the word break char, update comments.
1359 (complete_line_internal_1): Use valid_cmd_char_p.
1360 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1361 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1363 2019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1365 * cli/cli-script.c (do_define_command): Ensure a redefined
1366 prefix command is kept as a prefix command.
1367 (define_prefix_command): New function.
1368 (show_user_1): Report user defined prefixes.
1369 (_initialize_cli_script): Create the new 'define-prefix' command.
1370 Add completers for 'define' and 'document'.
1371 * top.c (execute_command): If command is a user-defined prefix only
1372 command, report the list of commands for this prefix command.
1374 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1376 * valops.c (find_oload_champ): Improve debug output.
1378 2019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1380 * valops.c (find_oload_champ): Print part of debug messages
1381 before the badness vector is std::move'd.
1383 2019-11-28 Tom Tromey <tom@tromey.com>
1385 * value.c (creal_internal_fn): Fix comment.
1387 2019-11-28 Tom Tromey <tom@tromey.com>
1389 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
1390 flag_bound_evaluated>: Now unsigned.
1392 2019-11-28 Tom Tromey <tom@tromey.com>
1394 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
1397 2019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
1399 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
1401 * jit.c (jit_unregister_code): Add debug print to match
1402 `jit_register_code`.
1404 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1406 * NEWS: Mention the new multithreaded symbol loading.
1408 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1410 * maint.c (n_worker_threads): Default to 0.
1411 (worker_threads_disabled): New function.
1412 * maint.h (worker_threads_disabled): New function.
1413 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
1414 here if worker_threads_disabled () is true.
1415 (minimal_symbol_reader::install): Skip all threading if
1416 worker_threads_disabled () is true.
1418 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1420 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
1421 hash code if possible.
1422 (add_minsym_to_demangled_hash_table): Likewise.
1423 (minimal_symbol_reader::install): Compute the hash codes for msymbol
1424 on the background thread.
1425 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
1428 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1430 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
1431 of the mangled name on the background thread.
1432 * symtab.c (symbol_set_names): Allow passing in the hash of the
1434 * symtab.h (symbol_set_names): Likewise.
1436 2019-11-27 Kevin Buettner <kevinb@redhat.com>
1438 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
1439 physnames are computed for inherited DIEs.
1441 2019-11-27 Tom Tromey <tromey@adacore.com>
1443 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
1445 * cp-support.c: Remove unnecessary backslashes.
1447 2019-11-27 Christian Biesinger <cbiesinger@google.com>
1449 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
1450 with sym->set_linkage_name.
1451 * coffread.c (coff_read_enum_type): Likewise.
1452 * mdebugread.c (parse_symbol): Likewise.
1453 * stabsread.c (patch_block_stabs): Likewise.
1454 (define_symbol): Likewise.
1455 (read_enum_type): Likewise.
1456 (common_block_end): Likewise.
1457 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
1459 (SYMBOL_SET_LINKAGE_NAME): Remove.
1460 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
1461 with sym->set_linkage_name.
1463 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1465 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
1466 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
1467 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
1468 * NEWS: Mention new MI command.
1470 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1472 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
1473 '-symbol-info-types', and '-symbol-info-variables'.
1474 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
1475 (mi_cmd_symbol_info_types): Declare.
1476 (mi_cmd_symbol_info_variables): Declare.
1477 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
1478 (output_debug_symbol): New function.
1479 (output_nondebug_symbol): New function.
1480 (mi_symbol_info): New function.
1481 (mi_info_functions_or_variables): New function.
1482 (mi_cmd_symbol_info_functions): New function.
1483 (mi_cmd_symbol_info_types): New function.
1484 (mi_cmd_symbol_info_variables): New function.
1485 * NEWS: Mention new commands.
1487 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1489 * symtab.c (symbol_to_info_string): New function, most content
1490 moved from print_symbol_info, but updated to return a std::string.
1491 (print_symbol_info): Update to use symbol_to_info_string and print
1493 * symtab.h (symbol_to_info_string): Declare new function.
1495 2019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1497 * python/python.c (gdbpy_rbreak): Convert to using
1498 global_symbol_searcher.
1499 * symtab.c (file_matches): Convert return type to bool, change
1500 file list to std::vector, update header comment.
1501 (search_symbols): Rename to...
1502 (global_symbol_searcher::search): ...this and update now its
1503 a member function of global_symbol_searcher. Take account of the
1504 changes to file_matches.
1505 (symtab_symbol_info): Convert to using global_symbol_searcher.
1506 (rbreak_command): Likewise.
1507 (search_module_symbols): Likewise.
1508 * symtab.h (enum symbol_search): Update comment.
1509 (search_symbols): Remove declaration.
1510 (class global_symbol_searcher): New class.
1512 2019-11-26 Tom Tromey <tromey@adacore.com>
1514 * cp-support.c (_initialize_cp_support): Conditionally initialize
1515 gdb_demangle_attempt_core_dump.
1517 2019-11-26 Tom Tromey <tom@tromey.com>
1519 * python/py-function.c (fnpy_init): Update.
1520 * value.h (add_internal_function): Adjust declaration.
1521 * value.c (function_destroyer): Remove.
1522 (do_add_internal_function): Don't set destroyer or copy name.
1523 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1525 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1526 (cmdpy_init): Set name_allocated.
1527 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1529 (~cmd_list_element): Free "name" if needed.
1531 2019-11-26 Tom Tromey <tom@tromey.com>
1533 * value.h (add_internal_function): Add new overload. Move
1534 documentation from value.h.
1535 * value.c (do_add_internal_function): New function.
1536 (add_internal_function): Use it. Add new overload.
1537 (function_destroyer): Don't free doc.
1538 * python/py-function.c (fnpy_init): Update.
1540 2019-11-26 Tom Tromey <tom@tromey.com>
1542 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1543 (cmdpy_init): Set "doc_allocated".
1545 2019-11-26 Tom Tromey <tom@tromey.com>
1547 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1548 name of worker thread.
1549 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1551 * configure, config.in: Rebuild.
1553 2019-11-26 Tom Tromey <tom@tromey.com>
1555 * python/python.c (class gdbpy_gil): New.
1556 (struct gdbpy_event): Add constructor, destructor, operator().
1557 (gdbpy_post_event): Use run_on_main_thread.
1558 (gdbpy_initialize_events): Remove.
1559 (do_start_initialization): Update.
1561 2019-11-26 Tom Tromey <tom@tromey.com>
1564 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1565 commands. Call update_thread_pool_size.
1566 (update_thread_pool_size, maintenance_set_worker_threads): New
1568 (n_worker_threads): New global.
1570 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1571 Tom Tromey <tom@tromey.com>
1573 * minsyms.c (minimal_symbol_reader::install): Use
1575 * gdbsupport/parallel-for.h: New file.
1576 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1578 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1579 Tom Tromey <tom@tromey.com>
1581 * gdbsupport/thread-pool.h: New file.
1582 * gdbsupport/thread-pool.c: New file.
1583 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1584 (HFILES_NO_SRCDIR): Add thread-pool.h.
1586 2019-11-26 Tom Tromey <tom@tromey.com>
1588 * event-top.h (thread_local_segv_handler): Declare.
1589 * event-top.c (thread_local_segv_handler): New global.
1590 (install_handle_sigsegv, handle_sigsegv): New functions.
1591 (async_init_signals): Install SIGSEGV handler.
1592 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1594 (report_failed_demangle): New function.
1595 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1596 handler-setting code, instead use segv_handler. Run warning code
1599 2019-11-26 Tom Tromey <tom@tromey.com>
1601 * run-on-main-thread.c: New file.
1602 * run-on-main-thread.h: New file.
1603 * unittests/main-thread-selftests.c: New file.
1604 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1605 main-thread-selftests.c.
1606 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1607 (COMMON_SFILES): Add run-on-main-thread.c.
1609 2019-11-26 Tom Tromey <tom@tromey.com>
1611 * main.c (setup_alternate_signal_stack): Remove.
1612 (captured_main_1): Use gdb::alternate_signal_stack.
1613 * gdbsupport/alt-stack.h: New file.
1615 2019-11-26 Tom Tromey <tom@tromey.com>
1617 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1619 (save_original_signals_state, restore_original_signals_state): Use
1621 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1622 (_initialize_linux_nat): Use gdb_sigmask.
1623 * guile/guile.c (_initialize_guile): Use block_signals.
1624 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1625 * gdbsupport/gdb-sigmask.h: New file.
1626 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1627 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1628 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1630 * configure, config.in: Rebuild.
1631 * gdbsupport/block-signals.h: New file.
1633 2019-11-26 Tom Tromey <tom@tromey.com>
1635 * acinclude.m4: Include ax_pthread.m4.
1636 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1637 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1638 (CLIBS): Use PTHREAD_LIBS.
1639 (aclocal_m4_deps): Add ax_pthread.m4.
1640 * config.in, configure: Rebuild.
1641 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1643 2019-11-26 Tom Tromey <tom@tromey.com>
1645 * symtab.h (struct minimal_symbol) <name_set>: New member.
1646 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1647 Don't call symbol_set_names.
1648 (minimal_symbol_reader::install): Call symbol_set_names.
1650 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1652 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1653 restore_active_ext_lang, as GIL is needed for (indirectly)
1654 called PyOS_InterruptOccurred.
1656 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1658 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1661 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1663 * remote-sim.c (simulator_command): Make static, remove
1666 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1668 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1670 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1671 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1673 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1675 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1677 * unittests/basic_string_view/element_access/char/1.cc (test01):
1680 * unittests/basic_string_view/element_access/char/empty.cc (main):
1682 * unittests/basic_string_view/element_access/char/front_back.cc
1685 * unittests/basic_string_view/inserters/char/2.cc (test05):
1688 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1691 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1694 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1696 * unittests/basic_string_view/operations/compare/char/1.cc
1699 * unittests/basic_string_view/operations/compare/char/13650.cc
1701 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1704 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1707 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1710 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1713 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1716 * unittests/basic_string_view/operations/find/char/4.cc (main):
1718 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1721 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1724 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1727 * unittests/basic_string_view/operations/substr/char/1.cc
1730 * unittests/basic_string_view/operators/char/2.cc (main):
1732 * unittests/optional/assignment/1.cc (test): Likewise.
1733 * unittests/optional/assignment/2.cc (test): Likewise.
1734 * unittests/optional/assignment/3.cc (test): Likewise.
1735 * unittests/optional/assignment/4.cc (test): Likewise.
1736 * unittests/optional/assignment/5.cc (test): Likewise.
1737 * unittests/optional/assignment/6.cc (test): Likewise.
1738 * unittests/optional/assignment/7.cc (test): Likewise.
1739 * unittests/optional/cons/copy.cc (test): Likewise.
1740 * unittests/optional/cons/default.cc (test): Likewise.
1741 * unittests/optional/cons/move.cc (test): Likewise.
1742 * unittests/optional/cons/value.cc (test): Likewise.
1743 * unittests/optional/in_place.cc (test): Likewise.
1744 * unittests/optional/observers/1.cc (test): Likewise.
1745 * unittests/optional/observers/2.cc (test): Likewise.
1747 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1749 * tui-win.h (tui_set_var_cmd): Remove.
1750 * tui-win.c (tui_set_var_cmd): Make static.
1752 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1754 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1755 rbreak_command_wrapper): Remove.
1756 * symtab.c (rbreak_command_wrapper): Remove.
1758 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1760 * inferior.h (info_terminal_command): Remove declaration.
1761 * inflow.c (info_terminal_command): Make static.
1763 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1765 * inferior.c (exit_inferior_silent): Remove.
1767 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1769 * dictionary.c (dict_empty, mdict_empty): Remove.
1770 * dictionary.c (mdict_empty): Remove.
1772 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1774 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1775 (arc_insn_get_memory_offset): Likewise.
1776 (arc_insn_dump): Likewise.
1777 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1778 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1779 * dictionary.c (dict_iterator_next): Likewise.
1780 (dict_iter_match_first): Likewise.
1781 (dict_iter_match_next): Likewise.
1782 * f-lang.c (evaluate_subexp_f): Likewise.
1783 * hppa-tdep.c (hppa_read_pc): Likewise.
1784 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1785 * parse.c (write_exp_elt_msym): Likewise.
1786 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1787 * remote.c (remote_packet_size): Likewise.
1788 (remote_notif_stop_parse): Likewise.
1789 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1790 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1791 * source.c (prepare_path_for_appending): Likewise.
1792 * sparc64-linux-tdep.c
1793 (sparc64_linux_handle_segmentation_fault); Likewise.
1794 * stack.c (frame_selection_by_function_completer): Likewise.
1796 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1798 * completer.c (set_gdb_completion_word_break_characters):
1801 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1803 * dwarf-index-write.c: Include dwarf-index-write.h.
1804 * mi/mi-interp.c: Include mi/mi-interp.h.
1806 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
1808 * aarch32-tdep.c: Include aarch32-tdep.h.
1809 * aarch32-tdep.h: Forward-declare struct target_desc.
1811 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1813 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1815 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1816 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1818 2019-11-25 Tom de Vries <tdevries@suse.de>
1820 * contrib/words.sh: Add -c option.
1822 2019-11-25 Christian Biesinger <cbiesinger@google.com>
1824 * solib.c (solib_find_1): Change int to bool.
1825 (exec_file_find): Change int to bool.
1826 (solib_find): Change int to bool.
1827 (solib_read_symbols): Change int to bool.
1828 (solib_used): Change int to bool.
1829 (solib_add): Change int to bool.
1830 (info_sharedlibrary_command): Change int to bool.
1831 (solib_contains_address_p): Change int to bool.
1832 (solib_keep_data_in_core): Change int to bool.
1833 (in_solib_dynsym_resolve_code): Change int to bool.
1834 (reload_shared_libraries_1): Change int to bool.
1835 (gdb_sysroot_changed): Change int to bool.
1836 * solib.h (solib_read_symbols): Change int to bool.
1837 (solib_contains_address_p): Change int to bool.
1838 (solib_keep_data_in_core): Change int to bool.
1839 (in_solib_dynsym_resolve_code): Change int to bool.
1840 (libpthread_name_p): Change int to bool.
1842 2019-11-25 Luis Machado <luis.machado@linaro.org>
1844 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1845 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1846 (remote_packet_max_chars): New static global.
1847 (show_remote_packet_max_chars): New function.
1848 (remote_target::putpkt_binary): Adjust to use new
1849 remote_packet_max_chars option.
1850 (remote_target::getpkt_or_notif_sane_1): Likewise.
1851 (_initialize_remote): Register new remote-packet-max-chars option.
1853 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
1855 * m68k-linux-nat.c: Include gdbarch.h.
1857 2019-11-24 Tom Tromey <tom@tromey.com>
1859 * symfile.c (read_symbols): Update.
1860 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1862 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1863 (psym_lookup_symbol, psym_find_last_source_symtab)
1864 (psym_forget_cached_source_info, psym_print_stats)
1865 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1866 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1867 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1868 (psym_find_compunit_symtab_by_address)
1869 (maintenance_print_psymbols, maintenance_info_psymtabs)
1870 (maintenance_check_psymtabs): Update.
1871 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1874 2019-11-22 Tom Tromey <tom@tromey.com>
1876 * observable.h: Update comments.
1878 2019-11-22 Tom Tromey <tromey@adacore.com>
1880 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1881 (print_ada_task_info): Don't try to fetch thread id if task is not
1884 2019-11-22 Christian Biesinger <cbiesinger@google.com>
1886 * ada-exp.y: Update.
1887 * ada-lang.c (sort_choices): Update.
1888 (ada_print_symbol_signature): Update.
1889 (resolve_subexp): Update.
1890 (ada_parse_renaming): Update.
1891 (ada_read_renaming_var_value): Update.
1892 (lesseq_defined_than): Update.
1893 (remove_extra_symbols): Update.
1894 (remove_irrelevant_renamings): Update.
1895 (ada_add_block_symbols): Update.
1896 (ada_collect_symbol_completion_matches): Update.
1897 (ada_is_renaming_symbol): Update.
1898 (aggregate_assign_from_choices): Update.
1899 (ada_evaluate_subexp): Update.
1900 (ada_has_this_exception_support): Update.
1901 (ada_is_non_standard_exception_sym): Update.
1902 (ada_add_exceptions_from_frame): Update.
1903 (ada_add_global_exceptions): Update.
1904 (ada_print_subexp): Update.
1905 * ax-gdb.c (gen_var_ref): Update.
1906 (gen_maybe_namespace_elt): Update.
1907 (gen_expr_for_cast): Update.
1910 * blockframe.c (find_pc_partial_function): Update.
1911 * breakpoint.c (print_breakpoint_location): Update.
1912 (update_static_tracepoint): Update.
1913 * btrace.c (ftrace_print_function_name): Update.
1914 (ftrace_function_switched): Update.
1915 * buildsym.c (find_symbol_in_list): Update.
1917 * c-typeprint.c (c_print_typedef): Update.
1918 (c_type_print_template_args): Update.
1919 * cli/cli-cmds.c (edit_command): Update.
1920 (list_command): Update.
1921 (print_sal_location): Update.
1922 * coffread.c (patch_opaque_types): Update.
1923 (process_coff_symbol): Update.
1924 (coff_read_enum_type): Update.
1925 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1926 (convert_one_symbol): Update.
1927 (hash_symname): Update.
1928 (eq_symname): Update.
1929 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1930 * compile/compile-cplus-types.c (debug_print_scope): Update.
1931 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1932 * compile/compile-object-load.c (get_out_value_type): Update.
1933 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1934 (search_symbol_list): Update.
1935 (cp_lookup_symbol_imports_or_template): Update.
1936 * cp-support.c (overload_list_add_symbol): Update.
1937 * ctfread.c (psymtab_to_symtab): Update.
1938 * dbxread.c (cp_set_block_scope): Update.
1939 * dictionary.c (iter_match_first_hashed): Update.
1940 (iter_match_next_hashed): Update.
1941 (insert_symbol_hashed): Update.
1942 (iter_match_next_linear): Update.
1943 * dictionary.h: Update.
1944 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1945 (locexpr_describe_location_piece): Update.
1946 (locexpr_describe_location_1): Update.
1947 (locexpr_generate_c_location): Update.
1948 (loclist_describe_location): Update.
1949 (loclist_generate_c_location): Update.
1950 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1951 (read_func_scope): Update.
1952 (process_enumeration_scope): Update.
1953 (new_symbol): Update.
1954 (dwarf2_const_value): Update.
1955 (dwarf2_symbol_mark_computed): Update.
1956 * eval.c (evaluate_funcall): Update.
1957 (evaluate_subexp_standard): Update.
1958 * expprint.c (print_subexp_standard): Update.
1959 (dump_subexp_body_standard): Update.
1960 * f-valprint.c (info_common_command_for_block): Update.
1961 * findvar.c (get_hosting_frame): Update.
1962 (default_read_var_value): Update.
1963 * go-lang.c (go_symbol_package_name): Update.
1964 * guile/scm-block.c (bkscm_print_block_smob): Update.
1965 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1966 (gdbscm_symbol_name): Update.
1967 (gdbscm_symbol_linkage_name): Update.
1968 (gdbscm_symbol_print_name): Update.
1969 * infcall.c (get_function_name): Update.
1970 * infcmd.c (jump_command): Update.
1971 (finish_command): Update.
1972 * infrun.c (insert_exception_resume_breakpoint): Update.
1973 * linespec.c (canonicalize_linespec): Update.
1974 (create_sals_line_offset): Update.
1975 (convert_linespec_to_sals): Update.
1976 (complete_label): Update.
1977 (find_label_symbols_in_block): Update.
1978 * m2-typeprint.c (m2_print_typedef): Update.
1979 * mdebugread.c (mdebug_reg_to_regnum): Update.
1980 (parse_symbol): Update.
1981 (mylookup_symbol): Update.
1982 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1983 (list_args_or_locals): Update.
1984 * objc-lang.c (compare_selectors): Update.
1985 (info_selectors_command): Update.
1986 (compare_classes): Update.
1987 (info_classes_command): Update.
1988 (find_imps): Update.
1989 * p-typeprint.c (pascal_print_typedef): Update.
1990 * printcmd.c (build_address_symbolic): Update.
1991 (info_address_command): Update.
1992 (print_variable_and_value): Update.
1993 * python/py-framefilter.c (extract_sym): Update.
1994 (py_print_single_arg): Update.
1995 * python/py-symbol.c (sympy_str): Update.
1996 (sympy_get_name): Update.
1997 (sympy_get_linkage_name): Update.
1998 * python/python.c (gdbpy_rbreak): Update.
1999 * record-btrace.c (btrace_get_bfun_name): Update.
2000 (btrace_call_history): Update.
2001 * rust-lang.c (rust_print_typedef): Update.
2002 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
2003 * stabsread.c (stab_reg_to_regnum): Update.
2004 (define_symbol): Update.
2005 (read_enum_type): Update.
2006 (common_block_end): Update.
2007 (cleanup_undefined_types_1): Update.
2008 (scan_file_globals): Update.
2009 * stack.c (print_frame_arg): Update.
2010 (print_frame_args): Update.
2011 (find_frame_funname): Update.
2012 (info_frame_command_core): Update.
2013 (iterate_over_block_locals): Update.
2014 (print_block_frame_labels): Update.
2015 (do_print_variable_and_value): Update.
2016 (iterate_over_block_arg_vars): Update.
2017 (return_command): Update.
2018 * symmisc.c (dump_symtab_1): Update.
2019 (print_symbol): Update.
2020 * symtab.c (eq_symbol_entry): Update.
2021 (symbol_cache_dump): Update.
2022 (lookup_language_this): Update.
2023 (find_pc_sect_line): Update.
2024 (skip_prologue_sal): Update.
2025 (symbol_search::compare_search_syms): Update.
2026 (treg_matches_sym_type_name): Update.
2027 (search_symbols): Update.
2028 (print_symbol_info): Update.
2029 (rbreak_command): Update.
2030 (completion_list_add_symbol): Update.
2031 (find_gnu_ifunc): Update.
2032 (get_symbol_address): Update.
2033 (search_module_symbols): Update.
2034 (info_module_subcommand): Update.
2035 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
2036 (SYMBOL_LINKAGE_NAME): Remove.
2037 (SYMBOL_DEMANGLED_NAME): Remove.
2038 (SYMBOL_PRINT_NAME): Remove.
2039 (SYMBOL_SEARCH_NAME): Remove.
2040 * tracepoint.c (set_traceframe_context): Update.
2041 (validate_actionline): Update.
2042 (collection_list::collect_symbol): Update.
2043 (encode_actions_1): Update.
2044 (info_scope_command): Update.
2045 (print_one_static_tracepoint_marker): Update.
2046 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
2047 * valops.c (address_of_variable): Update.
2048 (find_overload_match): Update.
2049 (find_oload_champ): Update.
2051 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2053 * ada-lang.c (ada_lookup_simple_minsym): Update.
2054 (ada_collect_symbol_completion_matches): Update.
2055 * ada-tasks.c (read_atcb): Update.
2056 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2057 (amd64_windows_skip_trampoline_code): Update.
2058 * arm-tdep.c (skip_prologue_function): Update.
2059 (arm_skip_stack_protector): Update.
2060 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2061 (arm_wince_skip_main_prologue): Update.
2062 * ax-gdb.c (gen_expr): Update.
2063 * block.c (call_site_for_pc): Update.
2064 * blockframe.c (find_pc_partial_function): Update.
2065 * breakpoint.c (set_breakpoint_location_function): Update.
2066 * btrace.c (ftrace_print_function_name): Update.
2067 (ftrace_function_switched): Update.
2068 * c-valprint.c (print_unpacked_pointer): Update.
2069 * coffread.c (coff_symfile_read): Update.
2070 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
2071 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
2072 * dwarf-index-write.c (write_psymbols): Update.
2073 * dwarf2loc.c (call_site_to_target_addr): Update.
2074 (func_verify_no_selftailcall): Update.
2075 (tailcall_dump): Update.
2076 (call_site_find_chain_1): Update.
2077 (dwarf_expr_reg_to_entry_parameter): Update.
2078 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2079 * eval.c (evaluate_funcall): Update.
2080 (evaluate_subexp_standard): Update.
2081 (evaluate_subexp_for_sizeof): Update.
2082 * expprint.c (print_subexp_standard): Update.
2083 (dump_subexp_body_standard): Update.
2084 * frame.c (get_prev_frame_always_1): Update.
2085 * frv-tdep.c (frv_skip_main_prologue): Update.
2086 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2087 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2088 (gnuv3_get_typename_from_type_info): Update.
2089 (gnuv3_skip_trampoline): Update.
2090 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2091 * i386-tdep.c (i386_skip_main_prologue): Update.
2092 (i386_pe_skip_trampoline_code): Update.
2093 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2094 * infcall.c (get_function_name): Update.
2095 * linespec.c (minsym_found): Update.
2096 * linux-fork.c (info_checkpoints_command): Update.
2097 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
2098 (m32c_m16c_pointer_to_address): Update.
2099 * maint.c (maintenance_translate_address): Update.
2100 * minsyms.c (add_minsym_to_hash_table): Update.
2101 (add_minsym_to_demangled_hash_table): Update.
2102 (lookup_minimal_symbol_mangled): Update.
2103 (lookup_minimal_symbol_demangled): Update.
2104 (lookup_minimal_symbol_linkage): Update.
2105 (lookup_minimal_symbol_text): Update.
2106 (lookup_minimal_symbol_by_pc_name): Update.
2107 (minimal_symbol_is_less_than): Update.
2108 (compact_minimal_symbols): Update.
2109 (build_minimal_symbol_hash_tables): Update.
2110 (find_solib_trampoline_target): Update.
2111 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2112 (mips_skip_pic_trampoline_code): Update.
2113 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2114 * objc-lang.c (info_selectors_command): Update.
2115 (info_classes_command): Update.
2116 (find_methods): Update.
2117 (find_imps): Update.
2118 * p-valprint.c (pascal_val_print): Update.
2119 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
2120 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2121 * printcmd.c (build_address_symbolic): Update.
2122 (info_symbol_command): Update.
2123 * psymtab.c (psymbol_name_matches): Update.
2124 (match_partial_symbol): Update.
2125 (lookup_partial_symbol): Update.
2126 (print_partial_symbols): Update.
2127 (sort_pst_symbols): Update.
2128 (maintenance_check_psymtabs): Update.
2129 * python/py-framefilter.c (py_print_frame): Update.
2130 * python/python.c (gdbpy_rbreak): Update.
2131 * record-btrace.c (btrace_get_bfun_name): Update.
2132 (btrace_call_history): Update.
2133 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2134 (rs6000_skip_trampoline_code): Update.
2135 * sol-thread.c (info_cb): Update.
2136 * stabsread.c (scan_file_globals): Update.
2137 * stack.c (find_frame_funname): Update.
2138 (info_frame_command_core): Update.
2139 * symmisc.c (dump_msymbols): Update.
2140 * symtab.c (symbol_natural_name): Rename to..,
2141 (general_symbol_info::natural_name): ...this.
2142 (symbol_demangled_name): Rename to...
2143 (general_symbol_info::demangled_name): ...this.
2144 (symbol_search_name): Rename to...
2145 (general_symbol_info::search_name): ...this.
2146 (symbol_matches_search_name): Update.
2147 (find_pc_sect_line): Update.
2148 (skip_prologue_sal): Update.
2149 (search_symbols): Update.
2150 (print_msymbol_info): Update.
2151 (rbreak_command): Update.
2152 (completion_list_add_msymbol): Update.
2153 (completion_list_objc_symbol): Update.
2154 (get_msymbol_address): Update.
2155 * symtab.h (struct general_symbol_info): Add member functions
2156 natural_name (), linkage_name (), print_name (), demangled_name (),
2158 (SYMBOL_NATURAL_NAME): Update.
2159 (symbol_natural_name): Move to a member function on general_symbol_info.
2160 (SYMBOL_DEMANGLED_NAME): Update.
2161 (symbol_demangled_name): Move to a member function on
2162 general_symbol_info.
2163 (SYMBOL_SEARCH_NAME): Update.
2164 (symbol_search_name): Move to a member function on general_symbol_info.
2165 (MSYMBOL_NATURAL_NAME): Remove.
2166 (MSYMBOL_LINKAGE_NAME): Remove.
2167 (MSYMBOL_PRINT_NAME): Remove.
2168 (MSYMBOL_DEMANGLED_NAME): Remove.
2169 (MSYMBOL_SEARCH_NAME): Remove.
2170 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
2172 2019-11-22 Christian Biesinger <cbiesinger@google.com>
2174 * symtab.c (create_demangled_names_hash): Use per_bfd->
2175 minimal_symbol_count for computing the initial size, if greater
2176 than our default size.
2178 2019-11-22 Tom de Vries <tdevries@suse.de>
2180 * contrib/words.sh: Improve words extraction.
2182 2019-11-22 Tom de Vries <tdevries@suse.de>
2184 * contrib/words.sh: Combine sed invocations.
2186 2019-11-21 Christian Biesinger <cbiesinger@google.com>
2188 * Makefile.in: Update.
2189 * demangle.c: Rename to...
2190 * gdb-demangle.c: ..this.
2191 (is_cplus_marker): Change return type to bool.
2192 (_initialize_demangler): Rename to...
2193 (_initialize_gdb_demangle): ...this.
2194 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
2195 * symtab.h (demangle): Remove declaration; instead include
2198 2019-11-21 Tom Tromey <tromey@adacore.com>
2200 * gdbsupport/format.c (format_pieces): Parse %I64d.
2201 * unittests/format_pieces-selftests.c (test_windows_formats): New
2203 (run_tests): Call it.
2205 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
2207 Byte reverse display of variables with DW_END_big, DW_END_little
2208 (DW_AT_endianity) dwarf attributes if different than the native
2210 * ada-lang.c (ada_value_binop):
2211 Use type_byte_order instead of gdbarch_byte_order.
2212 * ada-valprint.c (printstr):
2213 (ada_val_print_string):
2214 * ada-lang.c (value_pointer):
2216 Use type_byte_order instead of gdbarch_byte_order.
2217 * c-lang.c (c_get_string):
2218 Use type_byte_order instead of gdbarch_byte_order.
2219 * c-valprint.c (c_val_print_array):
2220 Use type_byte_order instead of gdbarch_byte_order.
2221 * cp-valprint.c (cp_print_class_member):
2222 Use type_byte_order instead of gdbarch_byte_order.
2223 * dwarf2loc.c (rw_pieced_value):
2224 Use type_byte_order instead of gdbarch_byte_order.
2225 * dwarf2read.c (read_base_type): Handle DW_END_big,
2227 * f-lang.c (f_get_encoding):
2228 Use type_byte_order instead of gdbarch_byte_order.
2229 * findvar.c (default_read_var_value):
2230 Use type_byte_order instead of gdbarch_byte_order.
2231 * gdbtypes.c (check_types_equal):
2232 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
2233 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
2234 and TYPE_ENDIANITY_LITTLE if set.
2235 (type_byte_order): new function.
2236 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
2237 (struct main_type) <flag_endianity_not_default>:
2239 (type_byte_order): New function.
2240 * infcmd.c (default_print_one_register_info):
2241 Use type_byte_order instead of gdbarch_byte_order.
2242 * p-lang.c (pascal_printstr):
2243 Use type_byte_order instead of gdbarch_byte_order.
2244 * p-valprint.c (pascal_val_print):
2245 Use type_byte_order instead of gdbarch_byte_order.
2246 * printcmd.c (print_scalar_formatted):
2247 Use type_byte_order instead of gdbarch_byte_order.
2248 * solib-darwin.c (darwin_current_sos):
2249 Use type_byte_order instead of gdbarch_byte_order.
2250 * solib-svr4.c (solib_svr4_r_ldsomap):
2251 Use type_byte_order instead of gdbarch_byte_order.
2252 * stap-probe.c (stap_modify_semaphore):
2253 Use type_byte_order instead of gdbarch_byte_order.
2254 * target-float.c (target_float_same_format_p):
2255 Use type_byte_order instead of gdbarch_byte_order.
2256 * valarith.c (scalar_binop):
2258 Use type_byte_order instead of gdbarch_byte_order.
2259 * valops.c (value_cast):
2260 Use type_byte_order instead of gdbarch_byte_order.
2261 * valprint.c (generic_emit_char):
2264 Use type_byte_order instead of gdbarch_byte_order.
2265 * value.c (unpack_long):
2266 (unpack_bits_as_long):
2267 (unpack_value_bitfield):
2270 (pack_unsigned_long):
2271 Use type_byte_order instead of gdbarch_byte_order.
2272 * findvar.c (unsigned_pointer_to_address):
2273 (signed_pointer_to_address):
2274 (unsigned_address_to_pointer):
2275 (address_to_signed_pointer):
2276 (default_read_var_value):
2277 (default_value_from_register):
2278 Use type_byte_order instead of gdbarch_byte_order.
2279 * gnu-v3-abi.c (gnuv3_make_method_ptr):
2280 Use type_byte_order instead of gdbarch_byte_order.
2281 * riscv-tdep.c (riscv_print_one_register_info):
2282 Use type_byte_order instead of gdbarch_byte_order.
2284 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
2286 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
2287 (current_ui_gdb_stdin_ptr): Likewise.
2288 (current_ui_gdb_stderr_ptr): Likewise.
2289 (current_ui_gdb_stdlog_ptr): Likewise.
2290 (current_ui_current_uiout_ptr): Likewise.
2291 (gen_ret_current_ui_field_ptr): Remove.
2293 2019-11-21 Tom de Vries <tdevries@suse.de>
2296 * cli/cli-script.c (execute_control_command): Only switch to
2297 INTERP_CONSOLE's ui_out when INTERP_MI is active.
2299 2019-11-19 Tom Tromey <tom@tromey.com>
2301 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
2302 Now static. Change type of "name".
2303 (tui_set_win_height_command): Don't copy "arg".
2304 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
2305 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
2307 2019-11-19 Ali Tamur <tamur@google.com>
2309 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
2310 "if (attr != nullptr)".
2311 (dwarf2_find_base_address): Likewise.
2312 (dwarf2_build_include_psymtabs): Likewise.
2313 (read_cutu_die_from_dwo): Likewise.
2314 (read_func_scope): Likewise.
2315 (read_call_site_scope): Likewise.
2316 (dwarf2_get_pc_bounds): Likewise.
2317 (dwarf2_record_block_ranges): Likewise.
2318 (dwarf2_add_field): Likewise.
2319 (dwarf2_add_member_fn): Likewise.
2320 (read_structure_type): Likewise.
2321 (read_enumeration_type): Likewise.
2322 (read_array_type): Likewise.
2323 (read_array_order): Likewise.
2324 (read_set_type): Likewise.
2325 (read_common_block): Likewise.
2326 (read_tag_reference_type): Likewise.
2327 (read_tag_string_type): Likewise.
2328 (read_subroutine_type): Likewise.
2329 (read_base_type): Likewise.
2330 (read_subrange_type): Likewise.
2331 (new_symbol): Likewise.
2332 (prepare_one_comp_unit): Likewise.
2334 2019-11-19 Tom Tromey <tromey@adacore.com>
2336 * windows-nat.c (windows_nat_target::attach): Include GetLastError
2337 result in error when DebugActiveProcess fails.
2339 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
2340 Pedro Alves <palves@redhat.com>
2342 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
2343 * target.c (target_stack::push): Call 'unpush' if there's a
2344 target on top of the stack.
2346 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2348 * python/py-block.c (blpy_dealloc): Call tp_free.
2349 (blpy_block_syms_dealloc): Likewise.
2350 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
2351 * python/py-inferior.c (infpy_dealloc): Likewise.
2352 * python/py-lazy-string.c (stpy_dealloc): Likewise.
2353 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
2354 * python/py-symbol.c (sympy_dealloc): Likewise.
2355 * python/py-symtab.c (stpy_dealloc): Likewise.
2356 * python/py-type.c (typy_iterator_dealloc): Likewise.
2358 2019-11-18 Christian Biesinger <cbiesinger@google.com>
2360 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
2361 constructor instead of using a class initializer.
2363 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2365 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
2366 * configure: Regenerate.
2367 * configure.ac: Don't source common.host.
2368 * gdbsupport/common.host: Remove.
2369 * gdbsupport/mingw-strerror.c: Remove.
2370 * gdbsupport/posix-strerror.c: Rename to...
2371 * gdbsupport/safe-strerror.c: ...this.
2373 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2375 * maint.c (scoped_command_stats::print_time): Use localtime_r
2376 instead of localtime (provided through gnulib if necessary).
2377 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
2380 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2382 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
2383 avoid compile errors.
2385 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2387 * config.in: Regenerate.
2388 * configure: Regenerate.
2389 * gdbsupport/common.m4: No longer check for strerror_r.
2390 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
2391 POSIX version of strerror_r, now that gnulib provides it if
2394 2019-11-14 Christian Biesinger <cbiesinger@google.com>
2396 * README (`configure' options): Update.
2398 2019-11-14 Tom Tromey <tromey@adacore.com>
2400 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
2401 expected type for the RHS if the LHS is a convenience variable.
2403 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
2405 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
2406 Provide explicit default and copy constructor.
2408 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2410 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
2411 only call Py_INCREF (newbp) in the bppy_pending_object case.
2413 2019-11-13 Tom Tromey <tromey@adacore.com>
2416 * psympriv.h (partial_symbol): Remove static assert.
2417 * symtab.h (general_symbol_info, symbol): Remove static assert.
2419 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2421 * gdbsupport/format.c (format_pieces::format_pieces): Support
2422 printf 'z' size modifier.
2423 * gdbsupport/format.h (enum argclass): Add size_t_arg.
2424 * printcmd.c (ui_printf): Handle size_t_arg.
2425 * ui-out.c (ui_out::vmessage): Likewise.
2426 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
2428 (run_tests): Call test_format_int_sizes.
2430 2019-11-12 Christian Biesinger <cbiesinger@google.com>
2432 * ada-exp.y (write_ambiguous_var): Update.
2433 * buildsym.c (add_symbol_to_list): Update.
2434 * dwarf2read.c (read_variable): Update.
2435 (new_symbol): Update.
2436 * jit.c (finalize_symtab): Update.
2437 * language.c (language_alloc_type_symbol): Update.
2438 * symtab.c (fixup_symbol_section): Update.
2439 (initialize_objfile_symbol_1): Move code to...
2440 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
2441 (allocate_symbol): Update.
2442 (allocate_template_symbol): Update.
2443 (get_symbol_address): Update.
2444 * symtab.h (struct symbol): Inherit from general_symbol_info instead
2445 of having as a field, and add a constructor.
2446 (SYMBOL_VALUE): Update.
2447 (SYMBOL_VALUE_ADDRESS): Update.
2448 (SET_SYMBOL_VALUE_ADDRESS): Update.
2449 (SYMBOL_VALUE_BYTES): Update.
2450 (SYMBOL_VALUE_COMMON_BLOCK): Update.
2451 (SYMBOL_BLOCK_VALUE): Update.
2452 (SYMBOL_VALUE_CHAIN): Update.
2453 (SYMBOL_LANGUAGE): Update.
2454 (SYMBOL_SECTION): Update.
2455 (SYMBOL_OBJ_SECTION): Update.
2456 (SYMBOL_SET_LANGUAGE): Update.
2457 (SYMBOL_SET_LINKAGE_NAME): Update.
2458 (SYMBOL_SET_NAMES): Update.
2459 (SYMBOL_NATURAL_NAME): Update.
2460 (SYMBOL_LINKAGE_NAME): Update.
2461 (SYMBOL_DEMANGLED_NAME): Update.
2462 (SYMBOL_SEARCH_NAME): Update.
2463 (SYMBOL_MATCHES_SEARCH_NAME): Update.
2464 (struct symbol): Update.
2465 (struct template_symbol): Update.
2466 (struct rust_vtable_symbol): Update.
2467 * xcoffread.c (SYMBOL_DUP): Update.
2469 2019-11-12 Tom Tromey <tom@tromey.com>
2471 * tui/tui-layout.c (show_layout): Set current_layout.
2472 (show_source_disasm_command, show_data)
2473 (show_source_or_disasm_and_command): Don't set current_layout.
2475 2019-11-12 Tom Tromey <tom@tromey.com>
2477 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
2479 2019-11-12 Tom Tromey <tom@tromey.com>
2481 * tui/tui-win.c (resize_message): New global.
2482 (show_tui_resize_message): New function.
2483 (tui_async_resize_screen): Print message if requested.
2484 (_initialize_tui_win): Add tui-resize-message setting.
2485 * NEWS: Add entry for new commands.
2487 2019-11-11 Tom Tromey <tom@tromey.com>
2489 * tui/tui.c (tui_initialize_readline): Add new bindable readline
2492 2019-11-11 Christian Biesinger <cbiesinger@google.com>
2494 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
2496 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2498 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
2500 * python/python-internal.h (gdbpy_lookup_static_symbols):
2501 Declare new function.
2502 * python/python.c (python_GdbMethods): Add
2503 gdb.lookup_static_symbols method.
2504 * NEWS: Mention gdb.lookup_static_symbols.
2506 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2508 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
2509 static block of current object file first. Also fix typo in
2512 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2514 * stack.c (set_last_displayed_sal): Delete.
2515 (last_displayed_sal_valid): Delete.
2516 (last_displayed_pspace): Delete.
2517 (last_displayed_addr): Delete.
2518 (last_displayed_symtab): Delete.
2519 (last_displayed_line): Delete.
2520 (class last_displayed_symtab_info_type): New.
2521 (last_displayed_symtab_info): New static global variable.
2522 (print_frame_info): Call methods on last_displayed_symtab_info.
2523 (clear_last_displayed_sal): Update header comment, and make use of
2524 last_displayed_symtab_info.
2525 (last_displayed_sal_is_valid): Likewise.
2526 (get_last_displayed_pspace): Likewise.
2527 (get_last_displayed_addr): Likewise.
2528 (get_last_displayed_symtab): Likewise.
2529 (get_last_displayed_line): Likewise.
2530 (get_last_displayed_sal): Likewise.
2531 * stack.h (clear_last_displayed_sal): Update header comment.
2532 (last_displayed_sal_is_valid): Likewise.
2533 (get_last_displayed_pspace): Likewise.
2534 (get_last_displayed_addr): Likewise.
2535 (get_last_displayed_symtab): Likewise.
2536 (get_last_displayed_line): Likewise.
2537 (get_last_displayed_sal): Likewise.
2539 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2541 * stack.c (frame_show_address): Convert return type to bool.
2542 * stack.h (frame_show_address): Likewise, and update header
2545 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2547 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2548 * unittests/vec-utils-selftests.c: New file.
2549 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2551 2019-11-10 Tom Tromey <tom@tromey.com>
2553 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2554 (tui_highlight_win): Likewise.
2555 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2556 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2557 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2558 Don't set can_highlight.
2560 2019-11-10 Tom Tromey <tom@tromey.com>
2562 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2563 Remove unused declaration.
2565 2019-11-08 Tom Tromey <tromey@adacore.com>
2567 * top.c (read_command_file): Update.
2568 (command_line_input): Make return type const.
2569 * python/py-gdb-readline.c: Update.
2570 * linespec.c (decode_line_2): Update.
2571 * defs.h (command_line_input): Make return type const.
2572 * cli/cli-script.c (read_next_line): Make return type const.
2573 * ada-lang.c (get_selections): Update.
2575 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2577 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2578 * mi/mi-main.c (output_cores): Likewise.
2579 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2580 (linux_xfer_osdata_modules): Likewise.
2581 * remote.c (register_remote_support_xml): Likewise.
2582 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2583 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2585 2019-11-06 Tom Tromey <tom@tromey.com>
2587 * tui/tui-interp.c: Don't include readline.h.
2588 * tui/tui-hooks.c: Don't include readline.h.
2589 * symmisc.c: Include tilde.h, not readline.h.
2590 * symfile.c: Include tilde.h, not readline.h.
2591 * source.c: Include tilde.h, not readline.h.
2592 * solib.c: Include tilde.h, not readline.h.
2593 * psymtab.c: Include tilde.h, not readline.h.
2594 * exec.c: Include tilde.h, not readline.h.
2595 * corelow.c: Include tilde.h, not readline.h.
2596 * cli/cli-dump.c: Include tilde.h, not readline.h.
2597 * cli/cli-cmds.c: Don't include readline.h.
2599 2019-11-05 Tom Tromey <tom@tromey.com>
2601 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2602 (tui_disassemble): Set addr_size.
2603 (tui_disasm_window::set_contents): Use addr_size.
2605 2019-11-05 Tom Tromey <tom@tromey.com>
2607 * rust-lang.c (rust_language_defn): Update.
2608 * python/py-value.c (valpy_string): Call c_get_string.
2609 * p-lang.c (pascal_language_defn): Update.
2610 * opencl-lang.c (opencl_language_defn): Update.
2611 * objc-lang.c (objc_language_defn): Update.
2612 * m2-lang.c (m2_language_defn): Update.
2613 * language.c (unknown_language_defn, auto_language_defn): Update.
2614 (default_get_string): Remove.
2615 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2616 * go-lang.c (go_language_defn): Update.
2617 * f-lang.c (f_language_defn): Update.
2618 * d-lang.c (d_language_defn): Update.
2619 * c-lang.c (c_language_defn, cplus_language_defn)
2620 (asm_language_defn, minimal_language_defn): Update.
2621 * ada-lang.c (ada_language_defn): Update.
2622 * language.h (struct language_defn) <la_get_string>: Remove.
2623 (LA_GET_STRING): Remove.
2624 (default_get_string): Don't declare.
2626 2019-11-05 Tom Tromey <tom@tromey.com>
2628 * tui/tui-source.h (struct tui_source_window): Inline
2629 constructor. Remove destructor.
2630 <style_changed, m_observable>: Move to superclass.
2631 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2632 (struct tui_source_window_base): Move private members to end.
2633 <style_changed, m_observable>: Move from tui_source_window.
2634 * tui/tui-winsource.c (tui_copy_source_line): Move from
2635 tui-source.c. Rename from copy_source_line. Add special handling
2636 for negative line number.
2637 (tui_source_window_base::style_changed): Move from
2639 (tui_source_window_base): Register observer.
2640 (~tui_source_window_base): New.
2641 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2643 (tui_source_window::set_contents): Use tui_copy_source_line.
2644 (tui_source_window::tui_source_window): Move to tui-source.h.
2645 (tui_source_window::~tui_source_window): Remove.
2646 (tui_source_window::style_changed): Move to superclass.
2647 * tui/tui-disasm.c (tui_disassemble): Create string file with
2648 styling, when possible. Add "addr_size" parameter.
2649 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2650 Don't compute maximum size.
2651 (len_without_escapes): New function
2653 2019-11-05 Tom Tromey <tom@tromey.com>
2655 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2657 * tui/tui-winsource.c (tui_show_source_line): Update.
2658 * tui/tui-source.c (tui_source_window::set_contents): Update.
2659 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2661 2019-11-05 Christian Biesinger <cbiesinger@google.com>
2663 * symtab.h (gdb_static_assert): Put && operator at the beginning
2664 of the line instead of the end.
2666 2019-11-04 Christian Biesinger <cbiesinger@google.com>
2668 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2669 and sizeof (symbol).
2670 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2672 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2674 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2675 * configure.host: Mark *-*-solaris2.10* obsolete.
2676 * configure.tgt: Mark Solaris < 11 obsolete.
2677 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2678 Update target triplet.
2680 2019-11-01 Tom Tromey <tromey@adacore.com>
2682 * utils.c (print_sys_errmsg): Simplify.
2684 2019-11-01 Tom Tromey <tromey@adacore.com>
2686 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2688 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2690 * configure: Regenerate.
2691 * configure.ac: Remove check for strerror_r.
2692 * gdbsupport/common.m4: Check for strerror_r.
2694 2019-11-01 Luis Machado <luis.machado@linaro.org>
2698 * arm-tdep.c (arm_per_objfile): Rename to ...
2699 (arm_per_bfd): ... this.
2700 (arm_objfile_data_key): Rename to ...
2701 (arm_bfd_data_key): ... this.
2702 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2704 (arm_record_special_symbol): Likewise.
2706 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2708 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2710 * c-typeprint.c (c_print_typedef): Likewise.
2711 * f-typeprint.c (f_print_typedef): Likewise.
2712 * m2-typeprint.c (m2_print_typedef): Likewise.
2713 * p-typeprint.c (pascal_print_typedef): Likewise.
2714 * rust-lang.c (rust_print_typedef): Likewise.
2715 * symtab.c (print_symbol_info): Print a newline after calling
2718 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2720 * symtab.c (info_module_cmdlist): New variable.
2721 (info_module_command): New function.
2722 (search_module_symbols): New function.
2723 (info_module_subcommand): New function.
2724 (struct info_modules_var_func_options): New struct.
2725 (info_modules_var_func_options_defs): New variable.
2726 (make_info_modules_var_func_options_def_group): New function.
2727 (info_module_functions_command): New function.
2728 (info_module_variables_command): New function.
2729 (info_module_var_func_command_completer): New function.
2730 (_initialize_symtab): Register new 'info module functions' and
2731 'info module variables' commands.
2732 * symtab.h (typedef symbol_search_in_module): New typedef.
2733 (search_module_symbols): Declare new function.
2734 * NEWS: Mention new commands.
2736 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2738 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2739 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2740 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2742 (scan_partial_symbols): Only create partial module symbols for non
2744 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2746 * symtab.c (search_domain_name): Likewise.
2747 (search_symbols): Likewise.
2748 (print_symbol_info): Likewise.
2749 (symtab_symbol_info): Likewise.
2750 (info_modules_command): New function.
2751 (_initialize_symtab): Register 'info modules' command.
2752 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2753 * NEWS: Mention new 'info modules' command.
2755 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2757 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2758 and $_gdb_maint_setting_str.
2760 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2762 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2763 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2764 (str_value_from_setting, gdb_setting_str_internal_fn)
2765 (gdb_maint_setting_str_internal_fn): New functions.
2766 (_initialize_cli_cmds): Define the new convenience functions.
2767 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2768 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2770 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2772 * agent.c (set_can_use_agent): When the setting is turned on,
2773 look up agent symbols if we don't have them yet.
2774 (agent_new_objfile): Don't look up agent symbols when the agent
2777 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2779 * config.in: Regenerate.
2781 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2783 * configure: Regenerate.
2784 * configure.ac: Check for strerror_r.
2785 * gdbsupport/common-utils.h (safe_strerror): Change return value
2786 to const char * and document that this function is now threadsafe.
2787 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2788 thread_local and call strerror_r, if available.
2789 * utils.c (perror_string): Update.
2790 (print_sys_errmsg): Update.
2792 2019-10-31 Luis Machado <luis.machado@linaro.org>
2794 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2796 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2797 objfile to fetch per-bfd data.
2798 (arm_find_exidx_entry): Likewise.
2800 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2802 * gdbsupport/agent.c (debug_agent): Change type to bool.
2803 (use_agent): Likewise.
2804 (all_agent_symbols_look_up): Likewise.
2805 (agent_loaded_p): Change return value to bool.
2806 (agent_look_up_symbols): Update.
2807 (agent_capability_check): Change return value to bool.
2808 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2809 (debug_agent): Change type to bool.
2810 (use_agent): Likewise.
2811 (agent_capability_check): Change return value to bool.
2813 2019-10-30 Christian Biesinger <cbiesinger@google.com>
2815 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2816 (build_minimal_symbol_hash_tables): Code to clear the table moved
2817 to clear_minimal_symbol_hash_tables.
2818 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2821 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2823 * infcmd.c: Remove includes.
2824 * infrun.c: Remove includes.
2826 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2828 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2829 (grow_vect): Remove declaration.
2830 (ada_type_of_array): Remove declaration.
2831 (ada_update_initial_language): Remove declaration.
2832 (ada_fold_name): Remove declaration.
2833 (ada_fill_in_ada_prototype): Remove declaration.
2834 (user_select_syms): Remove declaration.
2835 (get_selections): Remove declaration.
2836 (ada_tag_type): Remove declaration.
2837 (ada_value_tag): Remove declaration.
2838 (ada_is_others_clause): Remove declaration.
2839 (ada_in_variant): Remove declaration.
2840 (ada_value_struct_elt): Remove declaration.
2841 (ada_attribute_name): Remove declaration.
2842 (ada_system_address_type): Remove declaration.
2843 * ada-lang.c (ada_watch_location_expression): Make static.
2844 (GROW_VECT): Move here from ada-lang.h.
2845 (grow_vect): Make static.
2846 (ada_update_initial_language): Make static.
2847 (ada_fold_name): Make static.
2848 (ada_type_of_array): Make static.
2849 (encoded_ordered_before): Move up.
2850 (sort_choices): Move up.
2851 (print_signatures): Move up.
2852 (ada_print_symbol_signature): Move up.
2853 (get_selections): Move up and make static.
2854 (user_select_syms): Move up and make static.
2855 (ada_value_struct_elt): Move up and make static.
2856 (ada_tag_type): Make static.
2857 (ada_value_tag): Make static.
2858 (ada_is_others_clause): Make static.
2859 (ada_in_variant): Make static.
2860 (ada_attribute_name): Make static.
2862 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2864 * ada-lang.c: Remove includes.
2865 * ada-typeprint.c: Remove includes.
2866 * ada-valprint.c: Remove includes.
2868 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
2870 * addrmap.c: Add static assertions of type size, moved from
2871 _initialize_addrmap.
2872 (_initialize_addrmap): Remove.
2874 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2876 * coffread.c (record_minimal_symbol): Update.
2877 (process_coff_symbol): Update.
2878 * dbxread.c (read_dbx_symtab): Update.
2879 * dwarf2read.c (add_partial_symbol): Update.
2880 (fixup_go_packaging): Update.
2881 (load_partial_dies): Update.
2882 (new_symbol): Update.
2883 * elfread.c (record_minimal_symbol): Change signature to use
2884 gdb::string_view instead of name+len.
2885 (elf_symtab_read): Update.
2886 (elf_rel_plt_read): Update.
2887 * mdebugread.c (parse_partial_symbols): Update.
2888 (handle_psymbol_enumerators): Update.
2889 (new_symbol): Update.
2890 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2891 to use gdb::string_view instead of name+len.
2892 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2893 * psympriv.h (add_psymbol_to_list): Likewise.
2894 * psymtab.c (add_psymbol_to_bcache): Likewise.
2895 (add_psymbol_to_list): Likewise.
2896 * stabsread.c (define_symbol): Update.
2897 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2898 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2899 (symbol_set_names): Likewise.
2900 * xcoffread.c (scan_xcoff_symtab): Update.
2902 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2904 * symtab.h (symbol_set_names): Document that copy_name must be
2905 set to true for non-nullterminated strings.
2906 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2907 linkage_name if the entry was not found and we need to demangle.
2909 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2911 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2912 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2913 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2914 * gdbsupport/gdb_binary_search.h: New file.
2916 2019-10-29 Christian Biesinger <cbiesinger@google.com>
2918 * NEWS: Mention new --with-system-gdbinit-dir option.
2919 * config.in: Regenerate.
2920 * configure: Regenerate.
2921 * configure.ac: Add new option --with-system-gdbinit-dir.
2922 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2923 for a ".gdb" suffix.
2924 * main.c (get_init_files): Change system_gdbinit argument to
2925 a vector and return the files in SYSTEM_GDBINIT_DIR in
2926 addition to SYSTEM_GDBINIT.
2927 (captured_main_1): Update.
2928 (print_gdb_help): Update.
2929 * top.c (print_gdb_configuration): Also print the value of
2932 2019-10-28 Christian Biesinger <cbiesinger@google.com>
2934 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2935 that takes gdb::string_view arguments.
2937 2019-10-26 Tom de Vries <tdevries@suse.de>
2939 * aarch64-linux-tdep.c: Fix typos in comments.
2940 * aarch64-tdep.c: Same.
2942 * amd64-nat.c: Same.
2944 * arch/aarch64-insn.c: Same.
2946 * breakpoint.h: Same.
2949 * cli/cli-decode.c: Same.
2950 * cli/cli-script.c: Same.
2951 * cli/cli-utils.h: Same.
2952 * coff-pe-read.c: Same.
2954 * compile/compile-cplus-symbols.c: Same.
2955 * compile/compile-object-run.c: Same.
2956 * completer.c: Same.
2958 * cp-support.c: Same.
2960 * dwarf-index-write.c: Same.
2961 * dwarf2-frame.c: Same.
2962 * dwarf2-frame.h: Same.
2964 * frame-base.h: Same.
2969 * guile/scm-objfile.c: Same.
2970 * i386-tdep.c: Same.
2971 * i386-tdep.h: Same.
2974 * linux-nat.c: Same.
2975 * m68k-tdep.c: Same.
2978 * mi/mi-cmd-disas.c: Same.
2979 * mi/mi-getopt.h: Same.
2980 * mi/mi-main.c: Same.
2982 * nat/aarch64-sve-linux-sigcontext.h: Same.
2984 * ppc-linux-nat.c: Same.
2985 * ppc-linux-tdep.c: Same.
2987 * progspace.h: Same.
2988 * prologue-value.h: Same.
2989 * python/py-evtregistry.c: Same.
2990 * python/py-instruction.h: Same.
2991 * record-btrace.c: Same.
2992 * record-full.c: Same.
2994 * rs6000-tdep.c: Same.
2996 * sol-thread.c: Same.
2997 * sparc-sol2-tdep.c: Same.
2998 * sparc64-tdep.c: Same.
2999 * stabsread.c: Same.
3003 * tracepoint.c: Same.
3004 * tui/tui-data.h: Same.
3005 * tui/tui-io.c: Same.
3006 * tui/tui-win.c: Same.
3008 * unittests/rsp-low-selftests.c: Same.
3009 * user-regs.h: Same.
3020 * xtensa-tdep.c: Same.
3022 2019-10-25 Ali Tamur <tamur@google.com>
3024 * charset.c (find_charset_names): Reflect API change.
3026 2019-10-25 Christian Biesinger <cbiesinger@google.com>
3028 * symtab.c (struct demangled_name_entry): Change demangled name
3029 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
3030 part of the struct anymore.
3031 (symbol_set_names): No longer obstack allocate + copy the demangled
3032 name, just store the allocated name from bfd.
3034 2019-10-25 Tom Tromey <tromey@adacore.com>
3036 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
3037 (bsearch_cie_cmp, add_cie): Remove.
3038 (find_cie): Reimplement.
3039 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
3040 (dwarf2_build_frame_info): Update.
3042 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
3045 * symfile.c (reread_symbols): Call forget_cached_source_info to
3046 clear the stale source cache.
3048 2019-10-24 Christian Biesinger <cbiesinger@google.com>
3050 * configure: Regenerate.
3051 * configure.ac: Remove code that sets python_has_threads.
3053 2019-10-24 Christian Biesinger <cbiesinger@google.com>
3055 * config.in: Regenerate.
3056 * configure: Regenerate.
3057 * configure.ac: Remove the code that uses sed to get the python
3058 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
3060 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
3062 * python/py-progspace.c (pspy_block_for_pc): Return None for all
3065 2019-10-23 Tom Tromey <tom@tromey.com>
3067 * arc-tdep.c: Remove ".." from include.
3068 * frv-tdep.c: Remove ".." from include.
3069 * lm32-tdep.c: Remove ".." from include.
3070 * microblaze-tdep.c: Remove ".." from include.
3071 * or1k-tdep.h: Remove ".." from include.
3072 * s12z-tdep.c: Remove ".." from include.
3073 * Makefile.in (OPCODES_CFLAGS): Add comment.
3074 (TOP_CFLAGS): New variable.
3075 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
3077 2019-10-23 Tom Tromey <tom@tromey.com>
3079 * Makefile.in (READLINE_DIR): Update.
3081 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3083 * infcall.c (call_function_by_hand_dummy): Fix the function
3084 comment. And extract out a code section into...
3085 (reserve_stack_space): ...this new function.
3087 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3089 * infcall.c (value_arg_coerce): Remove an unused parameter.
3090 (call_function_by_hand_dummy): Update the call to
3093 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3095 * infcall.c (call_function_by_hand_dummy): Refactor.
3097 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
3101 2019-10-23 Tom Tromey <tom@tromey.com>
3103 * configure: Rebuild.
3104 * configure.ac: Don't check for sigprocmask.
3105 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
3107 2019-10-23 Tom Tromey <tom@tromey.com>
3109 * configure: Rebuild.
3110 * acinclude.m4: Use m4_include, not sinclude.
3112 2019-10-23 Tom de Vries <tdevries@suse.de>
3114 PR breakpoints/24687
3115 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
3117 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3119 * symtab.c (struct demangled_name_entry) <language>: Change from
3120 bitfield to regular variable.
3122 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3124 * symtab.c (struct demangled_name_entry): Add a constructor.
3125 (free_demangled_name_entry): New function to call the destructor
3126 for demangled_name_entry.
3127 (create_demangled_names_hash): Pass free_demangled_name_entry to
3129 (symbol_set_names): Call placement new for demangled_name_entry.
3130 * utils.c: No longer include xxhash.h here, now that fast_hash
3131 is inlined in the header.
3132 * utils.h: Instead, include it here.
3134 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3136 * Makefile.in: Link with libxxhash.
3137 * config.in: Regenerate.
3138 * configure: Regenerate.
3139 * configure.ac: Search for libxxhash.
3140 * utils.c (fast_hash): Use xxhash if present.
3142 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3144 * utils.h (fast_hash): New function.
3145 * symtab.c (hash_demangled_name_entry): Call new function
3148 2019-10-22 Christian Biesinger <cbiesinger@google.com>
3150 * symtab.c (struct demangled_name_entry): Change type of mangled
3151 to gdb::string_view. Also adds a constructor that takes the
3153 (hash_demangled_name_entry): Update.
3154 (eq_demangled_name_entry): Update.
3155 (free_demangled_name_entry): New function to call the destructor
3156 now that this is not a POD anymore.
3157 (create_demangled_names_hash): Pass free_demangled_name_entry to
3159 (symbol_set_names): Update.
3161 2019-10-21 Ali Tamur <tamu@google.com>
3163 * dwarf2read.c (dir_index): Change type.
3164 (file_name_index): Likewise.
3165 (line_header::include_dir_at): Change comment and implementation on
3166 whether it is DWARF 5.
3167 (line_header::is_valid_file_index): New function.
3168 (line_header::file_name_at): Change comment and implementation on
3169 whether it is DWARF 5.
3170 (line_header::file_names): Change to private field renamed as
3171 m_file_names and introduce a new accessor method.
3172 (line_header::file_names_size): New method.
3173 (line_header::include_dirs): Change to private field and rename as
3175 (dw2_get_file_names_reader): Define local var at a smaller scope and
3177 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
3178 (process_structure_scope): Likewise.
3179 (line_header::add_include_dir): Change message and reflect renaming.
3180 (line_header::add_file_name): Likewise.
3181 (read_formatted_entries): Handle DW_FORM_data16.
3182 (dwarf_decode_line_header): Fix line header length calculation.
3183 (psymtab_include_file_name): Change comment and API.
3184 (lnp_state_machine::m_file): Update comment and reflect type change.
3185 (lnp_state_machine::record_line): Reflect type change.
3186 (dwarf_decode_lines): Reflect API change.
3187 (file_file_name): Likewise.
3188 (file_full_name): Likewise.
3190 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
3192 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
3194 2019-10-21 Tom Tromey <tom@tromey.com>
3196 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
3198 2019-10-21 Tom Tromey <tom@tromey.com>
3200 * configure.ac (nm.h): Conditionally create nm.h link. Subst
3201 NM_H. Use AC_CONFIG_LINKS.
3202 * configure: Rebuild.
3203 * Makefile.in (NM_H): New variable.
3204 (generated_files): Add NM_H. Remove gcore.
3205 (nm.h, stamp-nmh): New targets.
3207 2019-10-20 Tom Tromey <tom@tromey.com>
3209 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
3210 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
3212 (put_objfile_before): Now static.
3214 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
3216 * gdbsupport/common-utils.h (startswith): Change return type to
3219 2019-10-19 Christian Biesinger <cbiesinger@google.com>
3221 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
3222 * breakpoint.c (bp_locations_compare): Rename to...
3223 (bp_location_is_less_than): ...this, and change to std::sort semantics.
3224 (update_global_location_list): Use std::sort instead of qsort.
3225 * buildsym.c (compare_line_numbers): Rename to...
3226 (lte_is_less_than): ...this, and change to std::sort semantics.
3227 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
3229 * disasm.c (compare_lines): Rename to...
3230 (line_is_less_than): ...this, and change to std::sort semantics.
3231 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
3233 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
3234 (fde_is_less_than): ...this, and change to std::sort semantics.
3235 (dwarf2_build_frame_info): Call std::sort instead of qsort.
3236 * mdebugread.c (compare_blocks):
3237 (block_is_less_than): ...this, and change to std::sort semantics.
3238 (sort_blocks): Call std::sort instead of qsort.
3239 * objfiles.c (qsort_cmp): Rename to...
3240 (sort_cmp): ...this, and change to std::sort semantics.
3241 (update_section_map): Call std::sort instead of qsort.
3242 * remote.c (compare_pnums): Remove.
3243 (map_regcache_remote_table): Call std::sort instead of qsort.
3244 * utils.c (compare_positive_ints): Remove.
3245 * utils.h (compare_positive_ints): Remove.
3246 * xcoffread.c (compare_lte): Remove.
3247 (arrange_linetable): Call std::sort instead of qsort.
3249 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
3251 * symfile.c (init_entry_point_info): Fix typo.
3252 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
3254 2019-10-18 Tom de Vries <tdevries@suse.de>
3256 * aarch64-tdep.c: Fix typos in comments.
3258 * ada-tasks.c: Same.
3259 * alpha-tdep.c: Same.
3260 * alpha-tdep.h: Same.
3261 * amd64-nat.c: Same.
3262 * amd64-windows-tdep.c: Same.
3265 * arch-utils.c: Same.
3266 * arm-nbsd-tdep.c: Same.
3269 * blockframe.c: Same.
3272 * coff-pe-read.c: Same.
3274 * cris-tdep.c: Same.
3275 * darwin-nat.c: Same.
3279 * dtrace-probe.c: Same.
3280 * dwarf-index-write.c: Same.
3281 * dwarf2-frame-tailcall.c: Same.
3282 * dwarf2-frame.c: Same.
3283 * dwarf2read.c: Same.
3285 * exceptions.c: Same.
3286 * fbsd-tdep.c: Same.
3290 * gnu-v3-abi.c: Same.
3292 * h8300-tdep.c: Same.
3293 * hppa-tdep.c: Same.
3294 * i386-linux-tdep.c: Same.
3295 * i386-tdep.c: Same.
3296 * ia64-libunwind-tdep.c: Same.
3297 * ia64-tdep.c: Same.
3301 * linux-nat.c: Same.
3302 * linux-thread-db.c: Same.
3303 * machoread.c: Same.
3304 * mdebugread.c: Same.
3306 * mn10300-tdep.c: Same.
3307 * namespace.c: Same.
3309 * opencl-lang.c: Same.
3310 * or1k-tdep.c: Same.
3312 * ppc-linux-nat.c: Same.
3313 * ppc-linux-tdep.c: Same.
3314 * ppc-sysv-tdep.c: Same.
3317 * record-btrace.c: Same.
3318 * record-full.c: Same.
3319 * remote-fileio.c: Same.
3321 * rs6000-tdep.c: Same.
3322 * s12z-tdep.c: Same.
3323 * score-tdep.c: Same.
3327 * sol-thread.c: Same.
3328 * solib-svr4.c: Same.
3331 * sparc-nat.c: Same.
3332 * sparc-sol2-tdep.c: Same.
3333 * sparc-tdep.c: Same.
3334 * sparc64-tdep.c: Same.
3335 * stabsread.c: Same.
3339 * target-descriptions.c: Same.
3340 * target-float.c: Same.
3347 * windows-nat.c: Same.
3348 * xcoffread.c: Same.
3349 * xstormy16-tdep.c: Same.
3350 * xtensa-tdep.c: Same.
3352 2019-10-17 Tom Tromey <tromey@adacore.com>
3354 * configure: Rebuild.
3355 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
3356 in AC_CONFIG_FILES invocation.
3357 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
3358 new-style config.status invocation.
3360 2019-10-17 Tom de Vries <tdevries@suse.de>
3362 * arm-nbsd-nat.c: Fix typos in comments.
3364 * darwin-nat-info.c: Same.
3365 * dwarf2read.c: Same.
3367 * event-top.c: Same.
3370 * hppa-tdep.c: Same.
3371 * i386-tdep.c: Same.
3374 * mdebugread.c: Same.
3375 * moxie-tdep.c: Same.
3376 * nto-procfs.c: Same.
3378 * ppc-linux-tdep.c: Same.
3380 * riscv-tdep.c: Same.
3381 * s390-tdep.c: Same.
3383 * sparc-linux-tdep.c: Same.
3384 * sparc-nat.c: Same.
3386 * target-descriptions.c: Same.
3390 2019-10-16 Tom Tromey <tom@tromey.com>
3392 * objfiles.h (struct objfile) <original_name>: Now const.
3394 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3396 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
3397 pass on to sigsetjmp's second argument.
3398 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
3400 2019-10-16 Keith Seitz <keiths@redhat.com>
3403 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
3404 sections whose size is greater than the file size.
3406 2019-10-16 Jim Wilson <jimw@sifive.com>
3408 * riscv-tdep.c (riscv_gcc_target_options): New.
3409 (riscv_gnu_triplet_regexp): New.
3410 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
3411 set_gdbarch_gnu_triplet_regexp.
3413 2019-10-16 Christian Biesinger <cbiesinger@google.com>
3415 * Makefile.in: Add xml-builtin.h.
3416 * features/feature_to_c.sh: Add an include for xml-builtin.h
3417 to ensure that the compiler checks that the types match.
3418 * xml-builtin.h: New file.
3419 * xml-support.c (fetch_xml_builtin): Add missing const.
3420 * xml-support.h: Remove declaration of xml_builtins.
3422 2019-10-16 Tom de Vries <tdevries@suse.de>
3425 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
3426 (amd64_classify_aggregate): ... here.
3427 (amd64_classify_aggregate_field): Handled fiels of nested structs
3430 2019-10-16 Tom de Vries <tdevries@suse.de>
3433 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
3434 that handles 'theclass'.
3436 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3438 * linespec.c (decode_digits_ordinary): Update comment.
3439 * make-target-delegates: No longer need to handle VEC case.
3440 * memrange.c (normalize_mem_ranges): Update comment.
3441 * namespace.c (add_using_directive): Update comment.
3442 * objc-lang.c (uniquify_strings): Update comment.
3443 * ppc-linux-nat.c (struct thread_points): Update comment.
3444 * probe.h (find_probes_in_objfile): Update comment.
3445 * target.h (enum flash_preserve_mode): Update comment.
3446 * varobj.c (varobj_restrict_range): Update comment.
3447 * varobj.h (varobj_list_children): Update comment.
3449 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3451 * Makefile.in: Remove references to vec.h and vec.c.
3452 * aarch64-tdep.c: No longer include vec.h.
3453 * ada-lang.c: Likewise.
3454 * ada-lang.h: Likewise.
3455 * arm-tdep.c: Likewise.
3457 * breakpoint.h: Likewise.
3458 * charset.c: Likewise.
3459 * cp-support.h: Likewise.
3460 * dtrace-probe.c: Likewise.
3461 * dwarf2read.c: Likewise.
3462 * extension.h: Likewise.
3463 * gdb_bfd.c: Likewise.
3464 * gdbsupport/gdb_vecs.h: Likewise.
3465 * gdbsupport/vec.c: Remove.
3466 * gdbsupport/vec.h: Remove.
3467 * gdbthread.h: Likewise.
3468 * guile/scm-type.c: Likewise.
3469 * inline-frame.c: Likewise.
3470 * machoread.c: Likewise.
3471 * memattr.c: Likewise.
3472 * memrange.h: Likewise.
3473 * namespace.h: Likewise.
3474 * nat/linux-btrace.h: Likewise.
3475 * osdata.c: Likewise.
3476 * parser-defs.h: Likewise.
3477 * progspace.h: Likewise.
3478 * python/py-type.c: Likewise.
3479 * record-btrace.c: Likewise.
3480 * rust-exp.y: Likewise.
3481 * solib-target.c: Likewise.
3482 * stap-probe.c: Likewise.
3483 * target-descriptions.c: Likewise.
3484 * target-memory.c: Likewise.
3485 * target.h: Likewise.
3486 * varobj.c: Likewise.
3487 * varobj.h: Likewise.
3488 * xml-support.h: Likewise.
3490 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
3492 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
3493 Update for new std::vector based implementation.
3494 (process_psymtab_comp_unit_reader): Likewise.
3495 (scan_partial_symbols): Likewise.
3496 (recursively_compute_inclusions): Likewise.
3497 (compute_compunit_symtab_includes): Likewise.
3498 (process_imported_unit_die): Likewise.
3499 (queue_and_load_dwo_tu): Likewise.
3500 (follow_die_sig_1): Likewise.
3501 * gdb/dwarf2read.h: Remove DEF_VEC_P.
3502 (typedef dwarf2_per_cu_ptr): Remove.
3503 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
3505 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
3506 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
3507 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
3508 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
3511 2019-10-15 Tom Tromey <tromey@adacore.com>
3513 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3516 2019-10-15 Tom Tromey <tromey@adacore.com>
3518 * windows-nat.c (windows_nat_target::fetch_registers)
3519 (windows_nat_target::store_registers): Rename "pid" to "tid".
3521 2019-10-15 Tom Tromey <tromey@adacore.com>
3523 * gdbarch.h, gdbarch.c: Rebuild.
3524 * gdbarch.sh (gcc_target_options): Change return type to
3526 * compile/compile.c (get_args): Update.
3527 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3528 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3530 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3532 * arch-utils.c (default_gcc_target_options): Return std::string.
3533 * arch-utils.h (default_gcc_target_options): Return std::string.
3534 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3536 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3538 * breakpoint.c (breakpoint_chain): Make static.
3539 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3540 of accessing breakpoint_chain.
3542 2019-10-15 Christian Biesinger <cbiesinger@google.com>
3544 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3545 to a gdb::function_view and return value to bool.
3546 * breakpoint.h (iterate_over_breakpoints): Likewise.
3547 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3548 (pop_dummy_frame): Update.
3549 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3550 (gdbscm_breakpoints): Update.
3551 * python/py-breakpoint.c (build_bp_list): Update.
3552 (gdbpy_breakpoints): Update.
3553 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3555 (bpfinishpy_handle_stop): Update.
3556 (bpfinishpy_handle_exit): Update.
3557 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3558 (svr4_update_solib_event_breakpoints): Update.
3560 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3562 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3563 when unwrapping single-field structs.
3565 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3567 * dwarf2read.c: Remove includes.
3569 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3571 * ui-out.c (ui_out::call_do_message): Silence
3572 -Wformat-nonliteral warning.
3574 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3576 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3577 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3578 include: readline/tilde.h.
3580 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3582 * remote.c (remote_target::get_trace_status): Remove declaration of
3583 trace_regblock_size.
3585 2019-10-12 Christian Biesinger <cbiesinger@google.com>
3587 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3588 (show_user): Remove declaration of cmdlist.
3589 * cli/cli-cmds.h (max_user_call_depth): Declare.
3590 * cli/cli-script.c (execute_user_command): Remove declaration
3591 of max_user_call_depth.
3593 2019-10-11 Jim Wilson <jimw@sifive.com>
3595 * gdbsupport/print-utils.h (pulongest): Fix comment.
3596 (plongest): Likewise.
3597 (phex): Add missing comment, mention leading zeros.
3598 (phex_nz): Add mention of no leading zeros to comment.
3600 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3601 plongest instead of unsigned long long cast.
3603 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3605 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3606 for external_editor_command and gdbtk_test.
3608 2019-10-10 Christian Biesinger <cbiesinger@google.com>
3610 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3611 * varobj.c (varobjdebug): Move comment to...
3612 * varobj.h (varobjdebug): ...here, and declare.
3614 2019-10-09 Tom Tromey <tom@tromey.com>
3616 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3619 2019-10-09 Tom Tromey <tom@tromey.com>
3621 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3622 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3623 * tui/tui-command.c (tui_cmd_window::resize)
3624 (tui_refresh_cmd_win): Update.
3625 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3626 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3627 * tui/tui-data.c (~tui_gen_win_info): Remove.
3628 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3629 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3630 (tui_redisplay_readline, tui_mld_flush)
3631 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3632 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3633 (tui_data_window::erase_data_content)
3634 (tui_data_item_window::rerender)
3635 (tui_data_item_window::refresh_window): Update.
3636 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3637 (box_win, tui_gen_win_info::make_window)
3638 (tui_gen_win_info::make_visible): Update.
3639 (tui_delete_win): Remove.
3640 * tui/tui-winsource.c
3641 (tui_source_window_base::do_erase_source_content): Update.
3642 (tui_show_source_line, tui_source_window_base::update_tab_width)
3643 (tui_source_window_base::update_exec_info): Update.
3644 * tui/tui-data.h (struct curses_deleter): New.
3645 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3646 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3648 2019-10-09 Tom Tromey <tom@tromey.com>
3650 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3652 2019-10-09 Tom Tromey <tom@tromey.com>
3654 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3655 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3657 2019-10-09 Tom Tromey <tom@tromey.com>
3659 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3660 window height directly.
3661 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3663 * tui/tui-layout.c (tui_default_win_height): Remove.
3664 (tui_default_win_viewport_height): Remove.
3666 2019-10-09 Tom Tromey <tom@tromey.com>
3668 * tui/tui.h: Remove comments.
3670 2019-10-09 Tom de Vries <tdevries@suse.de>
3672 * python/lib/gdb/printer/bound_registers.py: Use
3673 '^builtin_type_bound128' as regexp argument for
3674 add_builtin_pretty_printer.
3676 2019-10-09 Christian Biesinger <cbiesinger@google.com>
3678 * guile/guile.c (guile_extension_script_ops): Remove forward
3679 declaration and mark as static.
3680 (guile_script_ops): Likewise.
3681 (extension_language_guile): Move further down in the file so
3682 it can reference the definitions for guile_{extension_,}script_ops.
3684 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3686 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3687 except SORTL, DFLTCC, and KDSA.
3689 2019-10-08 Tom Tromey <tromey@adacore.com>
3691 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3692 (struct safe_symbol_file_add_args): Remove.
3694 2019-10-08 Tom Tromey <tromey@adacore.com>
3696 * windows-nat.c: Don't include buildsym-legacy.h.
3698 2019-10-08 Tom Tromey <tromey@adacore.com>
3700 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3702 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3704 * gdbtypes.c (overload_debug): Move comment to header.
3705 * gdbtypes.h (overload_debug): Declare.
3706 * valops.c: Remove declaration of overload_debug, instead
3709 2019-10-08 Christian Biesinger <cbiesinger@google.com>
3711 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3713 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3715 * language.h (lang_frame_mismatch_warn): ... here. Also add
3717 * top.c (lang_frame_mismatch_warn): Remove declaration.
3718 (check_frame_language_change): Pass lang_frame_mismatch_warn
3721 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3723 * c-lang.h (vtbl_ptr_name): Declare.
3724 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3726 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3728 2019-10-07 Christian Biesinger <cbiesinger@google.com>
3730 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3733 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3735 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3736 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
3737 * ctfread.c: New file.
3738 * ctfread.h: New file.
3739 * elfread.c: Include ctfread.h.
3740 (struct elfinfo text_p): New member ctfsect.
3741 (elf_locate_sections): Mark CTF section.
3742 (elf_symfile_read): Call elfctf_build_psymtabs.
3743 * Makefile.in (LIBCTF): Add.
3746 (DIST): Add ctfread.c.
3748 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3750 * ctfread.c (struct nextfield): Renamed to ...
3751 (struct ctf_nextfield): ... this.
3752 (struct field_info): Renamed to ...
3753 (strut ctf_field_info): ... this.
3754 (attach_fields_to_type): Update for renamed structures.
3755 (ctf_add_member_cb): Likewise.
3756 (ctf_add_enum_member_cb): Likewise.
3757 (process_struct_members): Likewise.
3758 (process_enum_type): Likewise.
3760 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
3762 * tracectf.h: Rename, was ctf.h.
3763 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3764 * tracefile.c: Likewise.
3765 * tracepoint.c: Remove unused include ctf.h.
3766 * mi/mi-main.c: Likewise.
3767 * Makefile.in Replace ctf.c with tracectf.c.
3769 2019-10-06 Joel Brobecker <brobecker@adacore.com>
3771 * version.in: Change version number to "9.0.50.DATE-git".
3773 2019-10-03 Tom Tromey <tom@tromey.com>
3776 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3778 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3780 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3781 cp_search_name_hash.
3782 * NEWS: Add entry about nested function support.
3784 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3785 Andrew Burgess <andrew.burgess@embecosm.com>
3787 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3788 for nested static variables when searchin VAR_DOMAIN.
3789 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3790 global scope, update comment.
3791 (add_partial_subprogram): Call add_partial_subprogram recursively
3792 for nested subroutines when processinng Fortran.
3793 (load_partial_dies): Process the child entities of a subprogram
3794 when processing Fortran.
3795 (partial_die_parent_scope): Handle building scope
3796 for Fortran nested functions.
3797 (process_die): Record that nested functions have a scope.
3798 (new_symbol): Always record Fortran subprograms on the global
3800 (determine_prefix): How to build the prefix for Fortran
3803 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3805 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3806 have just sent the thread a SIGSTOP and are waiting for it to
3809 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3811 * btrace.c (btrace_add_pc): Remove whitespace before the template
3812 parameter in 'std::vector <...>'.
3813 (parse_xml_btrace_block): Likewise.
3814 (btrace_maint_decode_pt): Likewise.
3815 (btrace_maint_update_packets): Likewise.
3816 (btrace_maint_print_packets): Likewise.
3817 * btrace.h (struct btrace_maint_info): Likewise.
3818 * dwarf2read.c (struct type_unit_group): Likewise.
3819 (build_type_psymtabs_reader): Likewise.
3820 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3821 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3822 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3824 2019-10-03 Tom de Vries <tdevries@suse.de>
3826 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3827 the first line of the help text for set/show style metadata.
3829 2019-10-02 Tom Tromey <tromey@adacore.com>
3831 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3832 * gdbsupport/common-inferior.c: New file.
3833 * infcmd.c (startup_with_shell): Don't define.
3834 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3835 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3836 * inferior.h (startup_with_shell): Don't declare.
3838 2019-10-02 Christian Biesinger <cbiesinger@google.com>
3840 * gdbsupport/gdb_assert.h: Include errors.h.
3841 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3843 2019-10-02 Tom Tromey <tromey@adacore.com>
3845 * NEWS: Add $_ada_exception entry.
3846 * ada-lang.c (struct ada_catchpoint): Add constructor.
3847 <m_kind>: New member.
3848 (allocate_location_exception, re_set_exception): Remove
3850 (should_stop_exception): Compute $_ada_exception.
3851 (check_status_exception, print_it_exception)
3852 (print_one_exception, print_mention_exception): Remove
3854 (allocate_location_catch_exception, re_set_catch_exception)
3855 (check_status_exception, print_it_catch_exception)
3856 (print_one_catch_exception, print_mention_catch_exception)
3857 (print_recreate_catch_exception)
3858 (allocate_location_catch_exception_unhandled)
3859 (re_set_catch_exception_unhandled)
3860 (check_status_exception, print_it_catch_exception_unhandled)
3861 (print_one_catch_exception_unhandled)
3862 (print_mention_catch_exception_unhandled)
3863 (print_recreate_catch_exception_unhandled)
3864 (allocate_location_catch_assert, re_set_catch_assert)
3865 (check_status_assert, print_it_catch_assert)
3866 (print_one_catch_assert, print_mention_catch_assert)
3867 (print_recreate_catch_assert)
3868 (allocate_location_catch_handlers, re_set_catch_handlers)
3869 (check_status_handlers, print_it_catch_handlers)
3870 (print_one_catch_handlers, print_mention_catch_handlers)
3871 (print_recreate_catch_handlers): Remove.
3872 (create_ada_exception_catchpoint): Update.
3873 (initialize_ada_catchpoint_ops): Update.
3875 2019-10-02 Tom Tromey <tromey@adacore.com>
3877 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3878 (create_excep_cond_exprs): Simplify exception string computation.
3879 (ada_exception_catchpoint_cond_string): Likewise.
3881 2019-10-02 Tom Tromey <tromey@adacore.com>
3883 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3884 * ada-lang.c (lesseq_defined_than): Handle
3886 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3888 (dwarf2_has_info): Likewise.
3889 (new_symbol): Set maybe_copied on symbol when
3891 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3893 <can_copy>: New member.
3894 * elfread.c (record_minimal_symbol): Set maybe_copied
3895 on symbol when appropriate.
3896 (elf_symfile_read): Update call to dwarf2_has_info.
3897 * minsyms.c (lookup_minimal_symbol_linkage): New
3899 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3900 * symtab.c (get_symbol_address, get_msymbol_address):
3902 * symtab.h (get_symbol_address, get_msymbol_address):
3904 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3906 (struct symbol, struct minimal_symbol) <maybe_copied>:
3909 2019-10-02 Tom Tromey <tromey@adacore.com>
3911 * source.c (struct current_source_location): New.
3912 (current_source_key): New global.
3913 (current_source_symtab, current_source_line)
3914 (current_source_pspace): Remove.
3915 (get_source_location): New function.
3916 (get_current_source_symtab_and_line)
3917 (set_default_source_symtab_and_line)
3918 (set_current_source_symtab_and_line)
3919 (clear_current_source_symtab_and_line, select_source_symtab)
3920 (info_source_command, print_source_lines_base)
3921 (info_line_command, search_command_helper, _initialize_source):
3924 2019-10-02 Tom Tromey <tromey@adacore.com>
3926 * source.c (select_source_symtab): Don't call
3927 decode_line_with_current_source.
3929 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3931 * symtab.c (lookup_global_symbol): Search global block.
3933 2019-10-02 Tom Tromey <tromey@adacore.com>
3935 * coffread.c (process_coff_symbol): Update.
3936 * dwarf2read.c (var_decode_location, new_symbol): Update.
3937 * mdebugread.c (parse_symbol): Update.
3938 * objfiles.c (relocate_one_symbol): Update.
3939 * stabsread.c (define_symbol, fix_common_block)
3940 (scan_file_globals): Update.
3941 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3942 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3943 * xcoffread.c (process_xcoff_symbol): Update.
3945 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3947 * MAINTAINERS: Update my email address.
3949 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3951 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3953 (build_type_psymtabs_reader): Update for std::vector.
3954 (build_type_psymtab_dependencies): Likewise.
3955 * dwarf2read.h: Remove use of DEF_VEC_P.
3956 (typedef sig_type_ptr): Delete.
3958 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3960 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3962 (btrace_maint_decode_pt): Likewise, and move allocation of the
3963 vector outside of the loop.
3964 (btrace_maint_update_packets): Update to handle change from VEC to
3966 (btrace_maint_print_packets): Likewise.
3967 (maint_info_btrace_cmd): Likewise.
3968 * btrace.h: Remove use of DEF_VEC_O.
3969 (typedef btrace_pt_packet_s): Delete.
3970 (struct btrace_maint_info) <packets>: Change fromm VEC to
3972 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3974 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3976 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3977 make accesses into the vector constant references.
3978 (btrace_add_pc): Update for std::vector.
3979 (btrace_stitch_bts): Likewise.
3980 (parse_xml_btrace_block): Likewise.
3981 (btrace_maint_update_packets): Likewise.
3982 (btrace_maint_print_packets): Likewise.
3983 (maint_info_btrace_cmd): Likewise.
3984 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3986 (btrace_data::empty): Likewise.
3987 (btrace_data_append): Likewise.
3988 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3989 (typedef btrace_block_s): Delete.
3990 (struct btrace_block): Add constructor.
3991 (struct btrace_data_bts) <blocks>: Change to std::vector.
3992 * nat/linux-btrace.c (perf_event_read_bts): Update for
3994 (linux_read_bts): Likewise.
3996 2019-10-01 Tom Tromey <tom@tromey.com>
3998 * cli/cli-logging.c (show_logging_filename): Use styled_string.
4000 2019-10-01 Tom Tromey <tom@tromey.com>
4002 * stack.c (print_frame, info_frame_command_core): Use
4004 * linux-thread-db.c (try_thread_db_load_1)
4005 (try_thread_db_load_from_pdir_1): Use styled_string.
4006 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
4007 (auto_load_section_scripts, info_auto_load_local_gdbinit)
4008 (maybe_print_unsupported_script_warning)
4009 (maybe_print_script_not_found_warning): Use styled_string.
4010 * ada-lang.c (user_select_syms): Use styled_string.
4012 2019-10-01 Tom Tromey <tom@tromey.com>
4014 * p-lang.c (pascal_printstr): Use metadata style.
4015 * value.c (show_convenience): Use metadata style.
4016 * valprint.c (valprint_check_validity, val_print_optimized_out)
4017 (val_print_not_saved, val_print_unavailable)
4018 (val_print_invalid_address, generic_val_print, val_print)
4019 (value_check_printable, val_print_array_elements): Use metadata
4021 * ui-out.h (class ui_out) <field_fmt>: New overload.
4022 <do_field_fmt>: Add style parameter.
4023 * ui-out.c (ui_out::field_fmt): New overload.
4024 * typeprint.c (type_print_unknown_return_type)
4025 (val_print_not_allocated, val_print_not_associated): Use metadata
4027 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
4029 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
4030 * tracepoint.c (tvariables_info_1): Use metadata style.
4031 * stack.c (print_frame_arg, print_frame_info, print_frame)
4032 (info_frame_command_core): Use metadata style.
4033 * skip.c (info_skip_command): Use metadata style.
4034 * rust-lang.c (rust_print_enum): Use metadata style.
4035 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
4037 * python/py-framefilter.c (py_print_single_arg): Use metadata
4039 * printcmd.c (do_one_display, print_variable_and_value): Use
4041 * p-valprint.c (pascal_val_print)
4042 (pascal_object_print_value_fields): Use metadata style.
4043 * p-typeprint.c (pascal_type_print_base): Use metadata style.
4044 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
4046 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
4047 * m2-valprint.c (m2_print_long_set): Use metadata style.
4048 * m2-typeprint.c (m2_print_type): Use metadata style.
4049 * infcmd.c (print_return_value_1): Use metadata style.
4050 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
4051 * f-valprint.c (info_common_command_for_block): Use metadata
4053 * f-typeprint.c (f_type_print_base): Use metadata style.
4054 * expprint.c (print_subexp_standard): Use metadata style.
4055 * cp-valprint.c (cp_print_value_fields): Use metadata style.
4056 * cli/cli-style.h (class cli_style_option): Add constructor.
4057 (metadata_style): Declare.
4058 * cli/cli-style.c (metadata_style): New global.
4059 (_initialize_cli_style): Register metadata style.
4060 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
4062 * cli-out.c (cli_ui_out::do_field_fmt): Update.
4063 * c-typeprint.c (c_type_print_base_struct_union)
4064 (c_type_print_base_1): Use metadata style.
4065 * breakpoint.c (watchpoint_value_print)
4066 (print_one_breakpoint_location): Use metadata style.
4067 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
4069 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
4071 * ada-valprint.c (val_print_packed_array_elements, printstr)
4072 (print_field_values, ada_val_print_ref, ada_val_print): Use
4074 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
4076 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
4078 * ada-lang.c (user_select_syms): Use metadata style.
4080 2019-10-01 Tom Tromey <tom@tromey.com>
4082 * cli/cli-cmds.c (pwd_command): Style output.
4084 2019-10-01 Pedro Alves <palves@redhat.com>
4085 Tom Tromey <tom@tromey.com>
4087 * symtab.c (print_symbol_info): Use %ps.
4088 (print_msymbol_info): Use %ps.
4089 * symfile.c (symbol_file_add_with_addrs): Use %ps.
4090 * printcmd.c (print_variable_and_value): Use %ps.
4091 * macrocmd.c (show_pp_source_pos): Use %ps.
4092 * infrun.c (print_exited_reason): Use ui_out::message.
4093 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
4094 (describe_other_breakpoints): Use ui_out::message and new
4096 (say_where): Use new formats.
4097 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
4100 2019-10-01 Pedro Alves <palves@redhat.com>
4101 Tom Tromey <tom@tromey.com>
4103 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
4104 (test_gdb_formats): New function.
4105 (run_tests): Call it.
4106 (test_format_specifier): Update.
4107 * utils.h (fputs_filtered): Update comment.
4108 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
4109 (fputs_styled_unfiltered): Declare.
4110 * utils.c (fputs_styled_unfiltered): New function.
4111 (vfprintf_maybe_filtered): Add gdbfmt parameter.
4112 (vfprintf_filtered): Update.
4113 (vfprintf_unfiltered, vprintf_filtered): Update.
4114 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
4115 * ui-out.h (enum ui_out_flag) <unfiltered_output,
4116 disallow_ui_out_field>: New constants.
4117 (enum class field_kind): New.
4118 (struct base_field_s, struct signed_field_s): New.
4119 (signed_field): New function.
4120 (struct string_field_s): New.
4121 (string_field): New function.
4122 (struct styled_string_s): New.
4123 (styled_string): New function.
4124 (class ui_out) <message>: Add comment.
4125 <vmessage, call_do_message>: New methods.
4126 <do_message>: Add style parameter.
4127 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
4129 (ui_out::message): Rewrite.
4130 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
4132 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
4133 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
4134 gdb_extensions parameter.
4135 (class format_piece): Add parameter to constructor.
4136 (n_int_args): New field.
4137 * gdbsupport/format.c (format_pieces::format_pieces): Add
4138 gdb_extensions parameter. Handle '*'.
4139 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
4140 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
4141 vfprintf_styled_no_gdbfmt.
4142 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
4143 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
4145 * ui-style.h (struct ui_file_style) <ptr>: New method.
4147 2019-10-01 Tom Tromey <tom@tromey.com>
4149 * unittests/format_pieces-selftests.c: Update. Add final format.
4150 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
4151 empty literal pieces.
4153 2019-10-01 Tom Tromey <tom@tromey.com>
4155 * ui-out.h (enum class ui_out_style_kind): Remove.
4156 (class ui_out) <field_string, field_stsream, do_field_string>:
4157 Change type of "style".
4158 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
4159 (ui_out::field_string): Update.
4160 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
4162 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
4163 * tracepoint.c (print_one_static_tracepoint_marker): Update.
4164 * stack.c (print_frame_arg, print_frame_info, print_frame):
4166 * source.c (print_source_lines_base): Update.
4167 * solib.c (info_sharedlibrary_command): Update.
4168 * skip.c (info_skip_command): Update.
4169 * record-btrace.c (btrace_call_history_src_line)
4170 (btrace_call_history): Update.
4171 * python/py-framefilter.c (py_print_frame): Update.
4172 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
4174 * mi/mi-out.c (mi_ui_out::do_table_header)
4175 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
4176 (mi_ui_out::do_field_string): Update.
4177 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4179 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
4181 * cli-out.c (cli_ui_out::do_table_header)
4182 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
4183 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
4184 (cli_ui_out::do_field_fmt): Update.
4185 * breakpoint.c (print_breakpoint_location): Update.
4186 (update_static_tracepoint): Update.
4188 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4190 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
4191 conversion of gdb_datadir.
4192 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
4193 remove not needed c_str ().
4195 2019-09-30 Ali Tamur <tamur@google.com>
4197 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
4198 (dwarf2_string_attr): Likewise.
4200 2019-09-30 Ali Tamur <tamur@google.com>
4202 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
4203 (process_full_type_unit): Likewise.
4204 (dump_die_shallow): Likewise.
4205 (cu_debug_loc_section): Likewise.
4207 2019-09-28 Christian Biesinger <cbiesinger@google.com>
4209 * minsyms.c (compare_minimal_symbols): Rename to...
4210 (minimal_symbol_is_less_than): ...this, and adjust to STL
4211 conventions (return bool, take arguments as references)
4212 (minimal_symbol_reader::install): Call std::sort instead
4215 2019-09-29 Christian Biesinger <cbiesinger@google.com>
4217 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
4219 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
4220 msymbol_hash, msymbol_demangled_hash>: Improve comments.
4222 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
4224 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
4225 * psympriv.h (add_psymbol_to_list): Move comment here and update
4228 2019-09-29 Tom de Vries <tdevries@suse.de>
4230 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
4231 Use $tmpdir/$(basename "$output_file").dwz instead of
4232 "${output_file}.dwz".
4234 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4237 * hppa-linux-nat.c: Include gdbarch.h.
4239 2019-09-26 Christian Biesinger <cbiesinger@google.com>
4241 * blockframe.c (find_pc_partial_function): Change return type to bool.
4242 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
4243 * minsyms.c (in_gnu_ifunc_stub): Likewise.
4244 (stub_gnu_ifunc_resolve_name): Likewise.
4245 * symtab.c (compare_filenames_for_search): Likewise.
4246 (compare_glob_filenames_for_search): Likewise.
4247 (matching_obj_sections): Likewise.
4248 (symbol_matches_domain): Likewise.
4249 (find_line_symtab): Change out param EXACT_MATCH to bool *.
4250 (find_line_pc): Change return type to bool.
4251 (find_line_pc_range): Likewise.
4252 (producer_is_realview): Likewise.
4253 * symtab.h (symbol_matches_domain): Likewise.
4254 (find_pc_partial_function): Likewise.
4255 (find_pc_line_pc_range): Likewise.
4256 (in_gnu_ifunc_stub): Likewise.
4257 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
4258 (find_line_pc): Likewise.
4259 (find_line_pc_range): Likewise.
4260 (matching_obj_sections): Likewise.
4261 (find_line_symtab): Change out parameter to bool.
4262 (producer_is_realview): Change return type to bool.
4263 (compare_filenames_for_search): Likewise.
4264 (compare_glob_filenames_for_search): Likewise.
4266 2019-09-26 Tom Tromey <tom@tromey.com>
4268 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
4269 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
4270 * gdb_usleep.h: Remove.
4271 * gdb_usleep.c: Remove.
4272 * utils.c: Don't include gdb_usleep.h.
4274 2019-09-26 Tom Tromey <tromey@adacore.com>
4276 * python/py-type.c (type_to_type_object): Call check_typedef
4279 2019-09-26 Tom Tromey <tom@tromey.com>
4281 * utils.h (initialize_utils): Don't declare.
4282 * top.c (gdb_init): Don't call initialize_utils.
4283 * utils.c (initialize_utils): Remove. Move contents...
4284 (_initialize_utils): ... here.
4286 2019-09-25 Tom Tromey <tom@tromey.com>
4288 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
4289 * utils.h (make_hex_string): Don't declare.
4290 * utils.c (make_hex_string): Remove.
4292 2019-09-24 Tom de Vries <tdevries@suse.de>
4295 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
4296 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
4298 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
4300 * NEWS: Mention new simulator port for PRU.
4302 2019-09-23 Christian Biesinger <cbiesinger@google.com>
4304 * ada-exp.y (write_object_remaining): Update.
4305 * ada-lang.c (ada_decode): Return a std::string instead of a char*
4306 and eliminate the static buffer.
4307 (ada_decode_symbol): Update.
4308 (ada_la_decode): Update.
4309 (ada_sniff_from_mangled_name): Update.
4310 (is_valid_name_for_wild_match): Update.
4311 (ada_lookup_name_info::matches): Update and simplify.
4312 (name_matches_regex): Update.
4313 (ada_add_global_exceptions): Update.
4314 * ada-lang.h (ada_decode): Update signature.
4315 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
4316 * dwarf-index-write.c (debug_names::insert): Update.
4318 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4320 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
4323 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
4325 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
4326 Change "nonzero" to "true" in documentation.
4328 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4330 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
4331 (_initialize_darwin_solib): Don't set
4332 darwin_so_ops.lookup_lib_global_symbol.
4333 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
4334 set_gdbarch_iterate_over_objfiles_in_search_order.
4335 (elf_lookup_lib_symbol): Rename to...
4336 (svr4_iterate_over_objfiles_in_search_order): this, and update
4337 to iterate semantics.
4338 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
4339 * solib.c (solib_global_lookup): Remove.
4340 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
4341 (solib_global_lookup): Remove.
4342 * symtab.c (lookup_global_or_static_symbol): Remove call to
4343 solib_global_lookup.
4345 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4347 * NEWS: Move entries about default MI version now being
4348 version 3, and about the GDB/MI fix for multi-location
4349 breakpoints to the "since GDB 8.3" section.
4351 2019-09-20 Joel Brobecker <brobecker@adacore.com>
4355 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4357 * NEWS: Mention that Cell/B.E. debugging support was removed.
4358 * MAINTAINERS: Remove spu target.
4360 * config/djgpp/fnchange.lst: Remove entries for removed files.
4362 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
4363 spu-multiarch.o, and spu-tdep.o.
4364 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
4365 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
4366 spu-multiarch.c, and spu-tdep.c.
4367 * spu-linux-nat.c: Remove file.
4368 * spu-multiarch.c: Remove file.
4369 * spu-tdep.c: Remove file.
4370 * spu-tdep.h: Remove file.
4371 * solib-spu.c: Remove file.
4372 * solib-spu.h: Remove file.
4374 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
4375 * configure.nat (spu-linux): Remove.
4376 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
4377 solib-multiarch.o from gdb_target_obs.
4380 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
4382 (ppc_linux_no_features): Update.
4383 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
4385 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
4386 (tdesc_powerpc_cell64l): Likewise.
4387 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
4388 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
4390 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
4391 Do not include "features/rs6000/powerpc-cell32l.c" or
4392 "features/rs6000/powerpc-cell64l.c".
4393 (ppc_linux_spu_section): Remove.
4394 (ppc_linux_core_read_description): Remove Cell/B.E. support.
4395 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
4396 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
4397 (ppc_linux_spe_context_lookup): Remove.
4398 (ppc_linux_spe_context_inferior_created): Remove.
4399 (ppc_linux_spe_context_solib_loaded): Remove.
4400 (ppc_linux_spe_context_solib_unloaded): Remove.
4401 (ppc_linux_spe_context): Remove.
4402 (struct ppu2spu_cache): Remove.
4403 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
4404 (struct ppu2spu_data): Remove.
4405 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
4406 ppu2spu_unwind): Remove.
4407 (ppc_linux_init_abi): Remove Cell/B.E. support.
4408 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
4410 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
4411 (rs6000/powerpc-cell64l-expedite): Likewise
4412 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
4413 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
4414 rs6000/powerpc-cell64l.xml.
4415 * features/rs6000/powerpc-cell32l.xml: Remove.
4416 * features/rs6000/powerpc-cell64l.xml: Likewise.
4417 * features/rs6000/powerpc-cell32l.c: Remove generated file.
4418 * features/rs6000/powerpc-cell64l.c: Likewise.
4419 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
4420 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
4421 * regformats/reg-spu.dat: Remove.
4423 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
4424 * corelow.c (struct spuid_list): Remove.
4425 (add_to_spuid_list): Remove.
4426 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4427 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
4428 (remote_protocol_features): Remove associated entries.
4429 (_initialize_remote): No longer initialize them.
4430 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4431 * linux-nat.c (SPUFS_MAGIC): Remove.
4432 (linux_proc_xfer_spu): Remove.
4433 (spu_enumerate_spu_ids): Remove.
4434 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
4435 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
4436 (linux_make_corefile_notes): No longer call it.
4438 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
4439 (cooked_write_test): Likewise.
4441 2019-09-20 Tom Tromey <tom@tromey.com>
4443 * NEWS: Mention case-sensitivity of TUI commands.
4444 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
4445 (tui_set_win_height_command, parse_scrolling_args): Likewise.
4446 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
4448 2019-09-20 Tom Tromey <tom@tromey.com>
4450 * tui/tui-source.c (tui_source_window::set_contents): Use
4451 make_unique_xstrdup.
4452 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
4453 make_unique_xstrdup.
4455 2019-09-20 Tom Tromey <tom@tromey.com>
4457 * tui/tui-data.c: Remove separator comments.
4458 * tui/tui-layout.c: Remove separator comments.
4459 * tui/tui-win.c: Remove separator comments.
4460 * tui/tui-wingeneral.c: Remove separator comments.
4462 2019-09-20 Tom Tromey <tom@tromey.com>
4464 * tui/tui.h (strcat_to_buf): Don't declare.
4465 * tui/tui.c (strcat_to_buf): Remove.
4467 2019-09-20 Tom Tromey <tom@tromey.com>
4469 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
4471 * tui/tui-source.c (tui_source_window::set_contents)
4472 (tui_source_window::location_matches_p)
4473 (tui_source_window::maybe_update): Update.
4475 2019-09-20 Tom Tromey <tom@tromey.com>
4477 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
4479 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
4481 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4482 (tui_data_window::line_from_reg_element_no)
4483 (tui_data_window::first_reg_element_no_inline)
4484 (tui_data_window::show_registers)
4485 (tui_data_window::show_register_group)
4486 (tui_data_window::display_registers_from)
4487 (tui_data_window::display_registers_from_line)
4488 (tui_data_window::first_data_item_displayed)
4489 (tui_data_window::delete_data_content_windows)
4490 (tui_data_window::erase_data_content)
4491 (tui_data_window::do_scroll_vertical)
4492 (tui_data_window::refresh_window)
4493 (tui_data_window::check_register_values): Update.
4495 2019-09-20 Tom Tromey <tom@tromey.com>
4497 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
4498 (struct tui_locator_window) <full_name, proc_name>: Now
4500 * tui/tui-stack.c (tui_locator_window::make_status_line)
4501 (tui_locator_window::set_locator_fullname)
4502 (tui_locator_window::set_locator_info): Update.
4503 * tui/tui-source.c (tui_source_window::set_contents)
4504 (tui_source_window::showing_source_p): Update.
4506 2019-09-20 Tom Tromey <tom@tromey.com>
4508 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4509 Don't call tui_locator_win_info_ptr.
4511 2019-09-20 Tom Tromey <tom@tromey.com>
4513 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4515 2019-09-20 Tom Tromey <tom@tromey.com>
4517 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4519 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4520 * tui/tui-layout.c (show_source_disasm_command, show_data)
4521 (show_source_or_disasm_and_command): Use 1 as height for locator.
4523 2019-09-20 Tom Tromey <tom@tromey.com>
4525 * tui/tui.c (tui_enable): Update.
4526 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4528 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4530 * tui/tui-data.c (win_resized): Now bool.
4531 (tui_win_resized): Return bool.
4532 (tui_set_win_resized_to): Accept a bool.
4534 2019-09-20 Tom Tromey <tom@tromey.com>
4536 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4537 Change type of "refresh_values_only".
4538 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4539 type of "refresh_values_only".
4541 2019-09-20 Tom Tromey <tom@tromey.com>
4543 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4545 (tui_disassemble): Add "pos" parameter.
4546 (tui_disasm_window::set_contents): Simplify.
4548 2019-09-20 Tom Tromey <tom@tromey.com>
4550 * tui/tui-winsource.h (struct tui_source_window_base)
4551 <show_source_content>: Now private.
4552 * tui/tui-winsource.c
4553 (tui_source_window_base::show_source_content): Don't handle empty
4556 2019-09-20 Tom Tromey <tom@tromey.com>
4558 * tui/tui-layout.c (show_source_disasm_command)
4559 (show_source_or_disasm_and_command): Don't call
4560 show_source_content.
4562 2019-09-20 Tom Tromey <tom@tromey.com>
4564 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4566 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4567 from tui_make_status_line.
4568 (tui_locator_window::rerender): Update.
4570 2019-09-20 Tom Tromey <tom@tromey.com>
4572 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4573 (tui_locator_window::rerender): Update.
4575 2019-09-20 Tom Tromey <tom@tromey.com>
4577 * tui/tui-winsource.h (struct tui_source_window_base)
4578 <~tui_source_window_base>: Don't declare.
4580 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4581 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4583 * tui/tui-source.c (tui_source_window::set_contents): Update.
4584 (tui_source_window::location_matches_p)
4585 (tui_source_window::maybe_update): Update.
4587 2019-09-20 Tom Tromey <tom@tromey.com>
4589 * tui/tui-winsource.h (~tui_source_element): Remove.
4590 (tui_source_element): Update.
4591 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4592 * tui/tui-winsource.c (tui_show_source_line): Update.
4593 * tui/tui-source.c (tui_source_window::set_contents): Update.
4594 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4596 2019-09-20 Tom Tromey <tom@tromey.com>
4598 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4600 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4601 tui_clear_source_windows_detail.
4602 * tui/tui-winsource.h (struct tui_source_window_base)
4603 <clear_detail>: Don't declare.
4604 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4606 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4608 2019-09-20 Tom Tromey <tromey@adacore.com>
4611 * block.c (contained_in): Fix final return value.
4613 2019-09-20 Alan Modra <amodra@gmail.com>
4615 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4616 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4617 (read_indirect_string_from_dwz): Use bfd accessor.
4618 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4619 * machoread.c (macho_symfile_read_all_oso): Likewise.
4620 * solib.c (solib_bfd_open): Likewise.
4622 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4624 * eval.c: Move declaration of overload_resolution to...
4627 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4629 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4630 * arm-linux-tdep.c: Likewise.
4631 * arm-nbsd-nat.c: Likewise.
4632 * arm-tdep.h: Declare arm_apcs_32.
4633 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4635 2019-09-19 Christian Biesinger <cbiesinger@google.com>
4637 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4638 * dwarf2read.h: Declare dwarf_always_disassemble.
4640 2019-09-19 Tom de Vries <tdevries@suse.de>
4643 * source-cache.c (source_cache::ensure): Catch exception thrown during
4644 construction of the highlighter.
4646 2019-09-18 Alan Modra <amodra@gmail.com>
4648 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4649 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4650 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4651 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4652 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4653 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4654 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4655 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4656 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4657 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4658 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4659 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4660 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4661 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4662 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4663 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4664 * mi/mi-interp.c: Update throughout for bfd section macro and
4666 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4667 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4669 2019-09-18 Tom Tromey <tom@tromey.com>
4672 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4674 (tui_enable): Do not call rl_initialize.
4676 2019-09-18 Christian Groessler <chris@groessler.org>
4678 * alpha-linux-nat.c: Include gdbarch.h.
4680 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4682 * ui-file.c: Include cli/cli-style.h.
4683 (term_cli_styling): Remove cli_styling declaration.
4685 2019-09-18 Alan Modra <amodra@gmail.com>
4687 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4688 to bfd_asymbol_section.
4690 2019-09-18 Alan Modra <amodra@gmail.com>
4692 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4693 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4694 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4696 2019-09-18 Alan Modra <amodra@gmail.com>
4698 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4699 * spu-linux-nat.c (spu_bfd_open): Likewise.
4701 2019-09-18 Christian Biesinger <cbiesinger@google.com>
4703 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4704 to bool to match definition in dwarf2read.c.
4706 2019-09-17 Christian Biesinger <cbiesinger@google.com>
4708 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4709 (print_signatures): Likewise.
4710 (trust_pad_over_xvs): Likewise.
4711 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4712 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4713 * arm-linux-nat.c (arm_apcs_32): Likewise.
4714 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4715 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4716 * arm-tdep.c (arm_debug): Likewise.
4717 (arm_apcs_32): Likewise.
4718 * auto-load.c (debug_auto_load): Likewise.
4719 (auto_load_gdb_scripts): Likewise.
4720 (global_auto_load): Likewise.
4721 (auto_load_local_gdbinit): Likewise.
4722 (auto_load_local_gdbinit_loaded): Likewise.
4723 * auto-load.h (global_auto_load): Likewise.
4724 (auto_load_local_gdbinit): Likewise.
4725 (auto_load_local_gdbinit_loaded): Likewise.
4726 * breakpoint.c (disconnected_dprintf): Likewise.
4727 (breakpoint_proceeded): Likewise.
4728 (automatic_hardware_breakpoints): Likewise.
4729 (always_inserted_mode): Likewise.
4730 (target_exact_watchpoints): Likewise.
4731 (_initialize_breakpoint): Update.
4732 * breakpoint.h (target_exact_watchpoints): Change to bool.
4733 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4734 * cli/cli-cmds.c (trace_commands): Likewise.
4735 * cli/cli-cmds.h (trace_commands): Likewise.
4736 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4738 * cli/cli-logging.c (logging_overwrite): Change to bool.
4739 (logging_redirect): Likewise.
4740 (debug_redirect): Likewise.
4741 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4742 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4744 <boolean_option_def>: Update.
4745 (struct flag_option_def): Change default type of Context to bool
4747 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4748 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4749 (get_setshow_command_value_string): Likewise.
4750 * cli/cli-style.c (cli_styling): Change to bool.
4751 (source_styling): Likewise.
4752 * cli/cli-style.h (source_styling): Likewise.
4753 (cli_styling): Likewise.
4754 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4756 * command.h (var_types): Update comment.
4757 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4758 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4760 (debug_compile_cplus_scopes): Likewise.
4761 * compile/compile-internal.h (compile_debug): Likewise.
4762 * compile/compile.c (compile_debug): Likewise.
4763 (struct compile_options) <raw>: Likewise.
4764 * cp-support.c (catch_demangler_crashes): Likewise.
4765 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4766 (usr_cmd_cris_dwarf2_cfi): Likewise.
4767 * csky-tdep.c (csky_debug): Likewise.
4768 * darwin-nat.c (enable_mach_exceptions): Likewise.
4769 * dcache.c (dcache_enabled_p): Likewise.
4770 * defs.h (info_verbose): Likewise.
4771 * demangle.c (demangle): Likewise.
4772 (asm_demangle): Likewise.
4773 * dwarf-index-cache.c (debug_index_cache): Likewise.
4774 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4775 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4776 * dwarf2read.c (check_physname): Likewise.
4777 (use_deprecated_index_sections): Likewise.
4778 (dwarf_always_disassemble): Likewise.
4779 * eval.c (overload_resolution): Likewise.
4780 * event-top.c (set_editing_cmd_var): Likewise.
4781 (exec_done_display_p): Likewise.
4782 * event-top.h (set_editing_cmd_var): Likewise.
4783 (exec_done_display_p): Likewise.
4784 * exec.c (write_files): Likewise.
4785 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4786 (debug_fbsd_nat): Likewise.
4787 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4789 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4790 <backtrace_past_entry> Likewise.
4791 * gdb-demangle.h (demangle): Likewise.
4792 (asm_demangle): Likewise.
4793 * gdb_bfd.c (bfd_sharing): Likewise.
4794 * gdbcore.h (write_files): Likewise.
4795 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4796 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4797 * gdbthread.h (print_thread_events): Likewise.
4798 * gdbtypes.c (opaque_type_resolution): Likewise.
4799 (strict_type_checking): Likewise.
4800 * gnu-nat.c (gnu_debug_flag): Likewise.
4801 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4802 * guile/scm-param.c (pascm_variable): Add boolval.
4803 (add_setshow_generic): Update.
4804 (pascm_param_value): Update.
4805 (pascm_set_param_value_x): Update.
4806 * hppa-tdep.c (hppa_debug): Change to bool..
4807 * infcall.c (may_call_functions_p): Likewise.
4808 (coerce_float_to_double_p): Likewise.
4809 (unwind_on_signal_p): Likewise.
4810 (unwind_on_terminating_exception_p): Likewise.
4811 * infcmd.c (startup_with_shell): Likewise.
4812 * inferior.c (print_inferior_events): Likewise.
4813 * inferior.h (startup_with_shell): Likewise.
4814 (print_inferior_events): Likewise.
4815 * infrun.c (step_stop_if_no_debug): Likewise.
4816 (detach_fork): Likewise.
4817 (debug_displaced): Likewise.
4818 (disable_randomization): Likewise.
4819 (non_stop): Likewise.
4820 (non_stop_1): Likewise.
4821 (observer_mode): Likewise.
4822 (observer_mode_1): Likewise.
4823 (set_observer_mode): Update.
4824 (sched_multi): Change to bool.
4825 * infrun.h (debug_displaced): Likewise.
4826 (sched_multi): Likewise.
4827 (step_stop_if_no_debug): Likewise.
4828 (non_stop): Likewise.
4829 (disable_randomization): Likewise.
4830 * linux-tdep.c (use_coredump_filter): Likewise.
4831 (dump_excluded_mappings): Likewise.
4832 * linux-thread-db.c (auto_load_thread_db): Likewise.
4833 (check_thread_db_on_load): Likewise.
4834 * main.c (captured_main_1): Update.
4835 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4836 xx2_opt, boolean_opt>: Change to bool.
4837 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4838 * maint.c (maintenance_profile_p): Likewise.
4839 (per_command_time): Likewise.
4840 (per_command_space): Likewise.
4841 (per_command_symtab): Likewise.
4842 * memattr.c (inaccessible_by_default): Likewise.
4843 * mi/mi-main.c (mi_async): Likewise.
4844 (mi_async_1): Likewise.
4845 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4846 * nat/fork-inferior.h (startup_with_shell): Likewise.
4847 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4848 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4849 * nios2-tdep.c (nios2_debug): Likewise.
4850 * or1k-tdep.c (or1k_debug): Likewise.
4851 * parse.c (parser_debug): Likewise.
4852 * parser-defs.h (parser_debug): Likewise.
4853 * printcmd.c (print_symbol_filename): Likewise.
4854 * proc-api.c (procfs_trace): Likewise.
4855 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4856 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4857 (set_parameter_value): Update.
4858 (add_setshow_generic): Update.
4859 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4861 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4863 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4864 * record-btrace.c (record_btrace_target::store_registers): Update.
4865 * record-full.c (record_full_memory_query): Change to bool.
4866 (record_full_stop_at_limit): Likewise.
4867 * record-full.h (record_full_memory_query): Likewise.
4868 * remote-notif.c (notif_debug): Likewise.
4869 * remote-notif.h (notif_debug): Likewise.
4870 * remote.c (use_range_stepping): Likewise.
4871 (interrupt_on_connect): Likewise.
4872 (remote_break): Likewise.
4873 * ser-tcp.c (tcp_auto_retry): Likewise.
4874 * ser-unix.c (serial_hwflow): Likewise.
4875 * skip.c (debug_skip): Likewise.
4876 * solib-aix.c (solib_aix_debug): Likewise.
4877 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4878 (spu_auto_flush_cache_p): Likewise.
4879 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4881 (struct info_print_options) <quiet>: Likewise.
4882 * symfile-debug.c (debug_symfile): Likewise.
4883 * symfile.c (auto_solib_add): Likewise.
4884 (separate_debug_file_debug): Likewise.
4885 * symfile.h (auto_solib_add): Likewise.
4886 (separate_debug_file_debug): Likewise.
4887 * symtab.c (basenames_may_differ): Likewise.
4888 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4889 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4890 (struct info_types_options) <quiet>: Likewise.
4891 * symtab.h (demangle): Likewise.
4892 (basenames_may_differ): Likewise.
4893 * target-dcache.c (stack_cache_enabled_1): Likewise.
4894 (code_cache_enabled_1): Likewise.
4895 * target.c (trust_readonly): Likewise.
4896 (may_write_registers): Likewise.
4897 (may_write_memory): Likewise.
4898 (may_insert_breakpoints): Likewise.
4899 (may_insert_tracepoints): Likewise.
4900 (may_insert_fast_tracepoints): Likewise.
4901 (may_stop): Likewise.
4902 (auto_connect_native_target): Likewise.
4903 (target_stop_and_wait): Update.
4904 (target_async_permitted): Change to bool.
4905 (target_async_permitted_1): Likewise.
4906 (may_write_registers_1): Likewise.
4907 (may_write_memory_1): Likewise.
4908 (may_insert_breakpoints_1): Likewise.
4909 (may_insert_tracepoints_1): Likewise.
4910 (may_insert_fast_tracepoints_1): Likewise.
4911 (may_stop_1): Likewise.
4912 * target.h (target_async_permitted): Likewise.
4913 (may_write_registers): Likewise.
4914 (may_write_memory): Likewise.
4915 (may_insert_breakpoints): Likewise.
4916 (may_insert_tracepoints): Likewise.
4917 (may_insert_fast_tracepoints): Likewise.
4918 (may_stop): Likewise.
4919 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4920 (make_thread_apply_all_options_def_group): Change argument from int*
4922 (thread_apply_all_command): Update.
4923 (print_thread_events): Change to bool.
4924 * top.c (confirm): Likewise.
4925 (command_editing_p): Likewise.
4926 (history_expansion_p): Likewise.
4927 (write_history_p): Likewise.
4928 (info_verbose): Likewise.
4929 * top.h (confirm): Likewise.
4930 (history_expansion_p): Likewise.
4931 * tracepoint.c (disconnected_tracing): Likewise.
4932 (circular_trace_buffer): Likewise.
4933 * typeprint.c (print_methods): Likewise.
4934 (print_typedefs): Likewise.
4935 * utils.c (debug_timestamp): Likewise.
4936 (sevenbit_strings): Likewise.
4937 (pagination_enabled): Likewise.
4938 * utils.h (sevenbit_strings): Likewise.
4939 (pagination_enabled): Likewise.
4940 * valops.c (overload_resolution): Likewise.
4941 * valprint.h (struct value_print_options) <prettyformat_arrays,
4942 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4943 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4944 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4946 * windows-nat.c (new_console): Likewise.
4947 (cygwin_exceptions): Likewise.
4948 (new_group): Likewise.
4949 (debug_exec): Likewise.
4950 (debug_events): Likewise.
4951 (debug_memory): Likewise.
4952 (debug_exceptions): Likewise.
4953 (useshell): Likewise.
4954 * windows-tdep.c (maint_display_all_tib): Likewise.
4955 * xml-support.c (debug_xml): Likewise.
4957 2019-09-17 Mike Gulick <mgulick@mathworks.com>
4959 * source.c (prepare_path_for_appending): New function.
4960 (openp): Make use of new function.
4961 (find_and_open_source): Search for the compilation directory and
4962 source file as a relative path beneath the directory search path.
4964 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4966 * source-cache.c (source_cache::get_line_charpos): Catch
4967 exceptions and return false, this matches the behaviour documented
4970 2019-09-17 Joel Brobecker <brobecker@adacore.com>
4972 * ada-tasks.c (info_task): Remove quoting of the task's name.
4974 2019-09-16 Christian Biesinger <cbiesinger@google.com>
4976 * symfile.c (auto_solib_add): Replace comment with a reference
4979 2019-09-14 Christian Biesinger <cbiesinger@google.com>
4981 * NEWS: Mention that gdb can now be compiled with Python 3
4984 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4986 * maint.c (maint_print_section_data::maint_print_section_data):
4987 Force use of 'float log10 (float)' by casting the argument to
4990 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4992 * maint.c: Add 'cmath' include.
4993 (struct maint_print_section_data): New structure.
4994 (print_section_index): New function.
4995 (print_bfd_section_info): Add header comment, small whitespace
4996 cleanup, and update to call new print_section_index function.
4997 (print_objfile_section_info): Likewise.
4998 (maint_obj_section_from_bfd_section): New function.
4999 (print_bfd_section_info_maybe_relocated): New function.
5000 (maintenance_info_sections): Add header comment, always use
5001 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
5003 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
5005 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
5006 inner scope, add check that the objfile has psymtabs before
5007 checking psymtabs_addrmap.
5008 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
5010 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5012 * NEWS: Announce that Ada task names are now shown at more places,
5013 and between quotes (except in info task output).
5014 * gdb/ada-tasks.c (task_to_str): New function.
5015 (display_current_task_id): Call task_to_str.
5016 (task_command_1): Likewise.
5017 (print_ada_task_info): In non-mi mode, Properly align headers and data
5018 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
5020 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5022 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
5023 prstatus.pr_lwp.pr_info instead of making it up.
5025 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5027 * auto-load.c (auto_load_expand_dir_vars): Update.
5028 * defs.h (gdb_datadir): Change to std::string.
5029 (python_libdir): Likewise.
5030 (relocate_gdb_directory): Change return type to std::string.
5031 * guile/guile.c (gdbscm_data_directory): Update.
5032 (initialize_scheme_side): Update.
5033 * jit.c (jit_reader_dir): Change to std::string.
5034 (jit_reader_load_command): Update.
5035 * main.c (gdb_datadir): Change to std::string.
5036 (python_libdir): Likewise.
5037 (set_gdb_data_directory): Update.
5038 (relocate_path): Change to return std::string.
5039 (relocate_gdb_directory): Change to return std::string.
5040 (relocate_gdbinit_path_maybe_in_datadir): Update.
5041 (captured_main_1): Update.
5042 * python/python.c (do_start_initialization): Update.
5043 * top.c (show_gdb_datadir): Update.
5044 * xml-syscall.c (xml_init_syscalls_info): Update.
5045 (init_syscalls_info): Update.
5047 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5049 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
5050 out of get_init_files.
5051 (get_init_files): Update.
5053 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5055 * main.c (get_init_files): Change to use std::string.
5056 (captured_main_1): Update.
5057 (print_gdb_help): Update.
5059 2019-09-11 Ali Tamur <tamur@google.com>
5061 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
5064 2019-09-11 Christian Biesinger <cbiesinger@google.com>
5066 * dbxread.c (read_dbx_symtab): Update.
5067 * dwarf2read.c (load_partial_dies): Update.
5068 * mdebugread.c (parse_partial_symbols): Update.
5069 (handle_psymbol_enumerators): Update.
5070 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
5071 * psymtab.c (add_psymbol_to_bcache): Likewise.
5072 (add_psymbol_to_list): Likewise.
5073 * symtab.c (symbol_set_names): Likewise.
5074 * symtab.h (symbol_set_names): Likewise.
5075 * xcoffread.c (scan_xcoff_symtab): Update.
5077 2019-09-11 Tom Tromey <tom@tromey.com>
5079 * symfile-mem.c (symbol_file_add_from_memory): Use
5081 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
5082 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
5084 2019-09-10 Tom Tromey <tromey@adacore.com>
5086 * dwarf-index-write.c (write_psymbols): Extend error message.
5087 (debug_names::insert): Add Ada code.
5088 (debug_names::write_psymbols): Remove Ada check.
5089 (debug_names) <m_string_obstack>: New member.
5090 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
5091 (gdb_index_symbol_name_matcher::matches): Remove.
5092 (mapped_index_base::find_name_components_bounds): Add "lang"
5094 (mapped_index_base::build_name_components): Also split names
5095 according to Ada syntax.
5096 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
5097 type of "match_callback".
5098 (check_match, check_find_bounds_finds)
5099 (dw2_expand_symtabs_matching): Update.
5100 (dw2_debug_names_iterator): Add new constructor.
5101 (dw2_debug_names_map_matching_symbols): New function.
5102 (dw2_debug_names_expand_symtabs_matching): Update.
5103 (dwarf2_debug_names_functions): Use
5104 dw2_debug_names_map_matching_symbols.
5106 2019-09-10 Tom Tromey <tromey@adacore.com>
5108 * dwarf2read.c (dw2_get_file_names_reader): Add the
5109 CU's file name to the results.
5111 2019-09-10 Tom Tromey <tromey@adacore.com>
5113 * ada-lang.c (add_nonlocal_symbols): Combine calls to
5114 map_matching_symbols. Update.
5115 * dwarf2read.c (dw2_map_matching_symbols): Update.
5116 * psymtab.c (match_partial_symbol): Change type; update.
5117 (psym_map_matching_symbols): Likewise.
5118 * symfile-debug.c (debug_qf_map_matching_symbols): Change
5120 * symfile.h (struct quick_symbol_functions)
5121 <map_matching_symbols>: Change "name" to be a lookup_name_info.
5124 2019-09-10 Tom Tromey <tromey@adacore.com>
5126 * psymtab.c (map_block): Remove.
5127 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
5128 * symtab.c (iterate_over_symbols_terminated): New function.
5129 * symtab.c (iterate_over_symbols_terminated): Declare.
5131 2019-09-10 Tom Tromey <tromey@adacore.com>
5133 * ada-lang.c (ada_iterate_over_symbols): Return bool.
5134 * language.h (struct language_defn) <la_iterate_over_symbols>:
5136 * symtab.c (iterate_over_symbols): Return bool.
5137 * symtab.h (iterate_over_symbols): Return bool.
5139 2019-09-10 Tom Tromey <tromey@adacore.com>
5141 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
5142 (add_nonlocal_symbols): Update.
5143 * dwarf2read.c (dw2_map_matching_symbols): Change type.
5144 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
5145 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
5146 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
5147 Change type of "callback". Remove "data".
5150 2019-09-09 Ali Tamur <tamur@google.com>
5152 * dwarf2read.c (comp_unit_head): Update comment.
5153 (dwarf2_dwo_name): New function declaration.
5154 (dwarf_unit_type_name): New function declaration.
5155 (read_comp_unit_head): Add support for new compilation units,
5156 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
5157 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
5158 (currently named as "signature") in their header. Also clarify error
5160 (lookup_dwo_id): New function. Returns the dwo id of the given
5162 (lookup_dwo_unit): Use the new lookup_dwo_id function.
5163 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
5165 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
5166 (dwarf2_dwo_name): Get the dwo name if present.
5167 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
5170 2019-09-09 Tom Tromey <tom@tromey.com>
5172 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
5174 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5176 * python/python.c (do_start_initialization): Make progname_copy static,
5177 to avoid a leak report.
5179 2019-09-08 Tom Tromey <tom@tromey.com>
5181 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
5183 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
5185 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
5186 Change type to gdb::optional<block_enum>.
5187 (dw2_symtab_iter_init): Change block_index parameter type
5188 to gdb::optional<block_enum>.
5189 (dw2_lookup_symbol): Change block_index parameter
5190 type to block_enum.c
5191 (dw2_debug_names_lookup_symbol): Likewise.
5192 * psymtab.c (psym_lookup_symbol): Likewise.
5193 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
5194 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
5197 2019-09-06 Christian Biesinger <cbiesinger@google.com>
5199 * defs.h (relocate_gdb_directory): Change int to bool in
5200 signature and rename flag to relocatable.
5201 * main.c (relocate_path): Likewise.
5202 (relocate_gdb_directory): Likewise.
5204 2019-09-06 Alan Modra <amodra@gmail.com>
5206 * coffread.c (coff_symfile_read): Constify filename variable.
5207 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
5208 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
5209 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
5210 * solib.c (reload_shared_libraries_1): Likewise.
5211 * symfile.c (reread_symbols): Likewise.
5212 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
5213 * solib-darwin.c (darwin_bfd_open): Likewise.
5214 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
5216 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
5218 * psymtab.c (print_partial_symbols): Handle missing domain_enum
5219 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
5221 2019-09-03 Tom Tromey <tromey@adacore.com>
5223 * ada-valprint.c (ada_val_print_num): Don't recurse for range
5225 (has_negatives): Unbias a range type bound.
5226 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
5227 * gdbtypes.c (operator==): Handle new field.
5228 (create_range_type): Add "bias" parameter.
5229 (create_static_range_type, resolve_dynamic_range): Update.
5230 * gdbtypes.h (struct range_bounds) <bias>: New member.
5231 (create_range_type): Add bias parameter.
5232 * printcmd.c (print_scalar_formatted): Unbias range types.
5233 * value.c (unpack_long): Unbias range types.
5234 (pack_long): Bias range types.
5236 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5238 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
5241 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5243 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
5244 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
5245 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
5246 (compile_probe_arg): Likewise.
5247 * probe.h (get_argument_count): Likewise.
5248 * solib-svr4.c (solib_event_probe_action): Likewise.
5249 * stap-probe.c (stap_probe::get_argument_count): Likewise.
5251 2019-09-02 Alan Hayward <alan.hayward@arm.com>
5253 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
5255 (svr4_create_solib_event_breakpoints): ...from here.
5257 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
5259 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
5260 suffix from warning message.
5262 2019-08-30 Tom Tromey <tom@tromey.com>
5264 * tui/tui-winsource.h (struct tui_source_window_base)
5265 <refresh_all>: Don't declare.
5266 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
5268 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
5269 tui_show_locator_content.
5270 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
5272 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
5273 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
5276 2019-08-30 Tom Tromey <tom@tromey.com>
5278 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
5280 2019-08-30 Tom Tromey <tom@tromey.com>
5282 * tui/tui-stack.c (_initialize_tui_stack): Move later.
5283 Remove unnecessary forward declarations.
5285 2019-08-30 Tom Tromey <tom@tromey.com>
5287 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
5289 (tui_update_locator_fullname, tui_show_frame_info): Don't call
5290 tui_show_locator_content.
5292 2019-08-30 Tom Tromey <tom@tromey.com>
5294 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
5295 (tui_locator_window::rerender): Rewrite using body of previous
5296 tui_show_locator_content.
5298 2019-08-30 Tom Tromey <tom@tromey.com>
5300 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
5301 set_locator_fullname>: New methods.
5302 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
5303 Rename from tui_set_locator_fullname.
5304 (tui_locator_window::set_locator_info): Rename from
5305 tui_set_locator_info. Return bool.
5306 (tui_update_locator_fullname, tui_show_frame_info): Update.
5308 2019-08-30 Tom Tromey <tom@tromey.com>
5310 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
5312 2019-08-30 Tom Tromey <tom@tromey.com>
5314 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
5317 2019-08-30 Tom Tromey <tom@tromey.com>
5319 * tui/tui-wingeneral.c (box_win): Assume win_info and
5320 win_info->handle cannot be NULL.
5322 2019-08-30 Tom Tromey <tom@tromey.com>
5324 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
5325 refresh_window>: Declare.
5326 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
5328 (tui_data_item_window::rerender): Rename from
5329 tui_display_register.
5330 (tui_data_item_window::refresh_window): New method.
5331 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
5334 2019-08-30 Tom Tromey <tom@tromey.com>
5336 * tui/tui-regs.h (struct tui_data_window) <regs_content,
5337 regs_column_count, current_group>: Move later. Now private.
5338 <get_current_group>: New method.
5339 * tui/tui-regs.c (tui_reg_command): Update.
5340 * tui/tui-layout.c (tui_set_layout): Update.
5342 2019-08-30 Tom Tromey <tom@tromey.com>
5344 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5345 (tui_data_window::rerender): Don't call
5346 check_and_display_highlight_if_needed.
5347 (tui_data_window::refresh_all): Remove call to
5350 2019-08-30 Tom Tromey <tom@tromey.com>
5352 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
5353 (tui_data_window::display_registers_from)
5354 (tui_data_window::display_reg_element_at_line)
5355 (tui_data_window::display_registers_from_line): Remove checks of
5358 2019-08-30 Tom Tromey <tom@tromey.com>
5360 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
5362 * tui/tui-regs.c (tui_data_window::show_registers): Call
5364 (tui_data_window::rerender): Rename from display_all_data.
5365 (tui_data_window::rerender): Remove old implementation.
5367 2019-08-30 Tom Tromey <tom@tromey.com>
5369 * tui/tui-regs.c (tui_data_window::display_all_data): Change
5371 * tui/tui-data.h (NO_DATA_STRING): Remove define.
5373 2019-08-29 Bernhard Wodok <barto@gmx.net>
5374 Sergio Durigan Junior <sergiodj@redhat.com>
5377 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
5379 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5381 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
5382 when searching for types.
5384 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
5386 * f-lang.c (f_language_defn): Use f_print_typedef.
5387 * f-lang.h (f_print_typedef): Declare.
5388 * f-typeprint.c (f_print_typedef): Define.
5390 2019-08-27 Christian Biesinger <cbiesinger@google.com>
5392 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
5394 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
5396 * cli/cli-utils.c (info_print_options_defs): Delete.
5397 (make_info_print_options_def_group): Delete.
5398 (extract_info_print_options): Delete.
5399 (info_print_command_completer): Delete.
5400 (info_print_args_help): Add extra parameter, and optionally
5401 include text about -n flag.
5402 * cli/cli-utils.h (struct info_print_options): Delete.
5403 (extract_info_print_options): Delete declaration.
5404 (info_print_command_completer): Delete declaration.
5405 (info_print_args_help): Add extra parameter, extend header
5407 * python/python.c (gdbpy_rbreak): Pass additional parameter to
5409 * stack.c (struct info_print_options): New type.
5410 (info_print_options_defs): New file scoped variable.
5411 (make_info_print_options_def_group): New static function.
5412 (info_print_command_completer): New static function.
5413 (info_locals_command): Update to use new local functions.
5414 (info_args_command): Likewise.
5415 (_initialize_stack): Add extra parameter to calls to
5416 info_print_args_help.
5417 * symtab.c (search_symbols): Add extra parameter, use this to
5418 possibly excluse non-debug symbols.
5419 (symtab_symbol_info): Add extra parameter, which is passed on to
5421 (struct info_print_options): New type.
5422 (info_print_options_defs): New file scoped variable.
5423 (make_info_print_options_def_group): New static function.
5424 (info_print_command_completer): New static function.
5425 (info_variables_command): Update to use local functions, and pass
5426 extra parameter through to symtab_symbol_info.
5427 (info_functions_command): Likewise.
5428 (info_types_command): Pass additional argument through to
5430 (rbreak_command): Pass extra argument to search_symbols.
5431 (_initialize_symtab): Add extra arguments for calls to
5432 info_print_args_help, and update help text for 'info variables',
5433 'whereis', and 'info functions' commands.
5434 * symtab.h (search_symbols): Add extra argument to declaration.
5435 * NEWS: Mention new flags.
5437 2019-08-26 Christian Biesinger <cbiesinger@google.com>
5439 * symtab.c (lookup_static_symbol): Call the new function (and move
5440 it down to be next to lookup_global_symbol).
5441 (struct global_sym_lookup_data): Add block_enum member and rename to...
5442 (struct global_or_static_sym_lookup_data): ...this.
5443 (lookup_symbol_global_iterator_cb): Pass block_index instead of
5444 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
5445 (lookup_symbol_global_or_static_iterator_cb): ...this.
5446 (lookup_global_or_static_symbol): New function.
5447 (lookup_global_symbol): Call new function.
5449 2019-08-26 Tom de Vries <tdevries@suse.de>
5452 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
5453 when pc_probe.prob == NULL.
5455 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5457 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
5458 variable symbol_linkage to symbol_linkage_.
5460 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
5462 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
5463 represent whether the symbol is static, dynamic, or we don't
5466 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
5468 * gdb/rx-tdep.c (rx_register_names): New.
5469 (rx_register_name): Delete.
5470 (rx_psw_type): Delete.
5471 (rx_fpsw_type): Delete.
5472 (rx_register_type): Delete.
5473 (rx_gdbarch_init): Convert target-descriptions.
5474 (_initialize_rx_tdep): Add initialize_tdesc_rx.
5475 * gdb/features/Makefile: Add rx.xml.
5476 * gdb/features/rx.xml: New.
5477 * gdb/features/rx.c: Generated.
5478 * gdb/NEWS: Mention target description support.
5480 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5482 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
5485 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5487 * configure.ac: Don't check for 'dlfcn.h' (moved to
5488 gdbsupport/common.m4).
5489 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
5491 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
5492 * compile/compile-c-support.c: Include
5493 'gdbsupport/gdb-dlfcn.h'.
5494 * gdbsupport/common.m4: Check for 'dlfcn.h'.
5495 * gdb-dlfcn.c: Move to...
5496 * gdbsupport/gdb-dlfcn.c: ... here.
5497 * gdb-dlfcn.h: Move to...
5498 * gdbsupport/gdb-dlfcn.h: ... here.
5500 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
5502 * nios2-tdep.c (struct reg_value): Improve comments. Make
5503 the offset field signed.
5505 2019-08-22 Christian Biesinger <cbiesinger@google.com>
5507 * python/lib/gdb/__init__.py (_execute_file): New function.
5508 * python/python.c (python_run_simple_file): Call gdb._execute_file
5511 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5513 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5514 all uses as this was never set to anything but a zero value.
5516 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5518 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5520 2019-08-21 Christian Biesinger <cbiesinger@google.com>
5522 * tui/tui-data.h (tui_gen_win_info): Add an =default
5523 move constructor, required by some GCC versions.
5525 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
5527 * go32-nat.c (go32_sysinfo): Add hygon_p.
5529 2019-08-20 Tom Tromey <tom@tromey.com>
5531 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5532 line_from_reg_element_no, first_reg_element_no_inline,
5533 display_all_data, delete_data_content_windows,
5534 erase_data_content>: Now private.
5536 2019-08-20 Tom Tromey <tom@tromey.com>
5538 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5539 (tui_unhighlight_win, tui_highlight_win)
5540 (tui_win_info::make_window): Update.
5541 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5543 2019-08-20 Tom Tromey <tom@tromey.com>
5545 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5546 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5547 (MAX_PID_WIDTH): Move to tui-stack.c.
5548 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5549 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5550 (MAX_PID_WIDTH): Move from tui-data.h.
5552 2019-08-20 Tom Tromey <tom@tromey.com>
5554 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5555 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5557 (tui_gen_win_info::make_window): Rename from tui_make_window.
5558 (tui_win_info::make_window): New method.
5559 (tui_gen_win_info::make_visible): Update.
5560 * tui/tui-source.c (tui_source_window::set_contents): Update.
5561 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5562 (tui_data_window::display_registers_from): Update.
5563 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5564 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5568 (struct tui_win_info) <make_window>: Declare.
5569 <can_box>: Now virtual.
5570 <title>: New member.
5571 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5572 * tui/tui-command.c (tui_cmd_window::resize): Update.
5574 2019-08-20 Tom Tromey <tom@tromey.com>
5576 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5577 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5578 (tui_data_window::check_register_values): Update.
5580 2019-08-20 Tom Tromey <tom@tromey.com>
5582 * tui/tui-regs.h (struct tui_data_window): Use
5583 DISABLE_COPY_AND_ASSIGN.
5584 <regs_content>: Change type, removing unique_ptr.
5585 <tui_data_window>: Add move constructor.
5586 * tui/tui-regs.c (tui_data_window::show_registers)
5587 (tui_data_window::show_register_group)
5588 (tui_data_window::display_registers_from)
5589 (tui_data_window::display_registers_from)
5590 (tui_data_window::first_data_item_displayed)
5591 (tui_data_window::delete_data_content_windows)
5592 (tui_data_window::rerender, tui_data_window::refresh_window)
5593 (tui_data_window::check_register_values): Update.
5595 2019-08-20 Tom Tromey <tom@tromey.com>
5597 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5598 show_register_group>: Declare.
5599 (tui_show_register_group): Don't declare.
5600 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5602 (tui_data_window::show_register_group): Rename from
5603 tui_show_register_group.
5604 (tui_data_window::check_register_values, tui_reg_command):
5606 * tui/tui-layout.c (tui_set_layout): Update.
5608 2019-08-20 Tom Tromey <tom@tromey.com>
5610 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5612 (tui_check_register_values): Don't declare.
5613 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5614 from tui_check_register_values.
5615 * tui/tui-hooks.c (tui_register_changed): Update.
5617 2019-08-20 Tom Tromey <tom@tromey.com>
5619 * tui/tui-regs.c (tui_reg_layout): Move later.
5620 (tui_show_registers): Don't enable TUI mode or change layout.
5622 2019-08-20 Tom Tromey <tom@tromey.com>
5624 * tui/tui-regs.h (struct tui_data_item_window)
5625 <~tui_data_item_window>: Remove.
5626 <content>: Now a unique_xmalloc_ptr.
5627 * tui/tui-regs.c (tui_register_format): Return a
5629 (tui_get_register): Update.
5630 (~tui_data_item_window): Remove.
5631 (tui_data_window::display_registers_from, tui_display_register):
5633 * tui/tui-io.h (tui_expand_tabs): Update.
5634 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5635 Remove "col" parameter.
5637 2019-08-20 Tom Tromey <tom@tromey.com>
5639 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5641 * tui/tui-regs.c (~tui_data_item_window): Update.
5643 2019-08-20 Tom Tromey <tom@tromey.com>
5645 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5648 2019-08-20 Tom Tromey <tom@tromey.com>
5650 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5652 2019-08-20 Tom Tromey <tom@tromey.com>
5654 * tui/tui-source.h (struct tui_source_window): Update.
5655 * tui/tui-regs.c (tui_show_registers): Update.
5656 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5657 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5658 (NO_REGS_STRING): Remove defines.
5660 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
5662 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5663 unnecessary thread walk if remote doesn't support the packet.
5665 2019-08-19 Tom Tromey <tromey@adacore.com>
5667 * python/py-value.c (value_has_field): Fix indentation.
5669 2019-08-19 Tom Tromey <tromey@adacore.com>
5671 * printcmd.c (do_one_display, info_display_command): Update.
5672 * block.h (contained_in): Return bool. Add allow_nested
5674 * block.c (contained_in): Return bool. Add allow_nested
5677 2019-08-19 Tom Tromey <tom@tromey.com>
5679 * configure: Rebuild.
5680 * configure.ac: Disallow the combination of -static-libstdc++ and
5682 * source-cache.c (get_language_name): Handle rust.
5683 (source_cache::get_source_lines): Ignore highlighting exceptions.
5685 2019-08-16 Tom Tromey <tom@tromey.com>
5687 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5688 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5689 (struct tui_source_window_base) <make_visible, refresh_window,
5690 resize>: Remove methods.
5691 <execution_info>: Remove field.
5692 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5693 (tui_show_source_line, tui_source_window_base)
5694 (~tui_source_window_base): Update.
5695 (tui_source_window_base::resize)
5696 (tui_source_window_base::make_visible)
5697 (tui_source_window_base::refresh_window): Remove.
5698 (tui_source_window_base::update_exec_info): Update.
5699 * tui/tui-source.c (tui_source_window::set_contents): Update.
5700 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5702 2019-08-16 Tom Tromey <tom@tromey.com>
5704 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5705 deprecated_query_hook.
5707 2019-08-16 Tom Tromey <tom@tromey.com>
5709 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5710 (tui_update_source_windows_with_line): Update.
5711 * tui/tui-source.h (struct tui_source_window)
5712 <show_symtab_source>: Declare.
5713 (tui_show_symtab_source): Don't declare.
5714 * tui/tui-source.c (tui_show_symtab_source): Rename from
5715 tui_show_symtab_source.
5717 2019-08-16 Tom Tromey <tom@tromey.com>
5719 * tui/tui-winsource.h (struct tui_source_window_base)
5720 <set_contents>: Declare.
5721 * tui/tui-winsource.c
5722 (tui_source_window_base::update_source_window_as_is): Update.
5723 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5725 (tui_set_source_content): Don't declare.
5726 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5727 tui_set_source_content.
5728 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5730 (tui_set_disassem_content): Don't declare.
5731 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5732 tui_set_disassem_content.
5734 2019-08-16 Tom Tromey <tom@tromey.com>
5736 * tui/tui-winsource.h (struct tui_source_window_base)
5737 <update_breakpoint_info>: Declare.
5738 (tui_update_breakpoint_info): Don't declare.
5739 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5740 (tui_update_all_breakpoint_info): Update.
5741 (tui_source_window_base::update_breakpoint_info): Rename from
5742 tui_update_breakpoint_info.
5743 (tui_source_window_base::update_exec_info): Update.
5745 2019-08-16 Tom Tromey <tom@tromey.com>
5747 * tui/tui-winsource.h (struct tui_source_window_base)
5748 <update_source_window>: Declare.
5749 (tui_update_source_window): Don't declare.
5750 * tui/tui-winsource.c
5751 (tui_source_window_base::update_source_window): Rename from
5752 tui_update_source_window.
5753 (tui_source_window_base::rerender): Update.
5754 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5755 * tui/tui-disasm.c (tui_show_disassem)
5756 (tui_show_disassem_and_update_source)
5757 (tui_disasm_window::maybe_update): Update.
5759 2019-08-16 Tom Tromey <tom@tromey.com>
5761 * tui/tui-winsource.h (struct tui_source_window_base)
5762 <update_source_window_as_is>: Declare.
5763 (tui_update_source_window_as_is): Don't declare.
5764 * tui/tui-winsource.c (tui_update_source_window): Update
5765 (tui_source_window_base::update_source_window_as_is): Rename from
5766 tui_update_source_window_as_is.
5767 (tui_source_window_base::refill): Update.
5768 * tui/tui-source.c (tui_show_symtab_source): Update.
5769 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5772 2019-08-16 Tom Tromey <tom@tromey.com>
5774 * tui/tui-winsource.h (tui_update_source_window)
5775 (tui_update_source_window_as_is): Remove "noerror" parameter.
5776 * tui/tui-winsource.c (tui_update_source_window)
5777 (tui_update_source_window_as_is): Remove "noerror" parameter.
5778 (tui_update_source_windows_with_addr)
5779 (tui_update_source_windows_with_line)
5780 (tui_source_window_base::rerender)
5781 (tui_source_window_base::refill): Update.
5782 * tui/tui-source.h (tui_set_source_content)
5783 (tui_show_symtab_source): Remove "noerror" parameter.
5784 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5786 (tui_show_symtab_source): Likewise.
5787 (tui_source_window::maybe_update): Update.
5788 * tui/tui-disasm.c (tui_show_disassem)
5789 (tui_show_disassem_and_update_source)
5790 (tui_disasm_window::do_scroll_vertical)
5791 (tui_disasm_window::maybe_update): Update.
5793 2019-08-16 Tom Tromey <tom@tromey.com>
5795 * tui/tui.c (tui_is_window_visible): Update.
5796 * tui/tui-wingeneral.c (tui_make_window)
5797 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5798 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5799 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5800 (tui_set_win_height_command, parse_scrolling_args): Update.
5801 * tui/tui-source.c (tui_source_window::style_changed): Update.
5802 * tui/tui-regs.c (tui_show_registers)
5803 (tui_data_window::first_data_item_displayed)
5804 (tui_data_window::delete_data_content_windows)
5805 (tui_check_register_values, tui_reg_command): Update.
5806 * tui/tui-disasm.c (tui_show_disassem): Update.
5807 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5809 <is_visible>: Remove field.
5810 * tui/tui-data.c (tui_next_win, tui_prev_win)
5811 (tui_delete_invisible_windows): Update.
5813 2019-08-16 Tom Tromey <tom@tromey.com>
5815 * tui/tui-winsource.h (struct tui_source_window_base)
5816 <m_has_locator>: Remove.
5817 * tui/tui-layout.c (show_source_disasm_command, show_data)
5818 (show_source_or_disasm_and_command): Update.
5820 2019-08-16 Alan Hayward <alan.hayward@arm.com>
5822 * NEWS (Other MI changes): New subsection.
5823 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5824 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5825 * arch-utils.c (default_get_pc_address_flags): New function.
5826 * arch-utils.h (default_get_pc_address_flags): New declaration.
5827 * gdbarch.sh: Add get_pc_address_flags.
5828 * gdbarch.c: Regenerate.
5829 * gdbarch.h: Likewise.
5830 * stack.c (print_pc): New function.
5831 (print_frame_info) (print_frame): Call print_pc.
5833 2019-08-16 Tom de Vries <tdevries@suse.de>
5835 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5836 print_objfile_section_info.
5838 2019-08-15 Tom Tromey <tom@tromey.com>
5840 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5841 calling update_cmdwin_start_line.
5842 * tui/tui-winsource.h (struct tui_source_window_base)
5843 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5844 <rerender>: Declare.
5845 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5847 (tui_source_window_base::set_new_height): Remove.
5848 (tui_source_window_base::rerender): Rename from
5849 do_make_visible_with_new_height.
5850 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5852 (tui_win_info::make_invisible_and_set_new_height)
5853 (tui_win_info::make_visible_with_new_height): Remove.
5854 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5856 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5857 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5858 do_make_visible_with_new_height>: Don't declare.
5859 <rerender>: Declare.
5860 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5862 (tui_data_window::do_make_visible_with_new_height): Remove.
5863 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5864 call tui_show_locator_content.
5865 (tui_gen_win_info::resize): Call rerender.
5866 (show_source_or_disasm_and_command): Don't call
5867 tui_show_locator_content.
5868 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5870 (struct tui_win_info) <rerender>: Declare.
5871 <set_new_height, make_invisible_and_set_new_height,
5872 make_visible_with_new_height>: Don't declare.
5873 * tui/tui-data.c (tui_win_list::rerender): New method.
5874 * tui/tui-command.h (struct tui_cmd_window)
5875 <do_make_visible_with_new_height>: Don't declare.
5877 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5879 2019-08-15 Tom Tromey <tromey@adacore.com>
5881 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5882 * ada-lang.c (ada_enum_name): Likewise.
5884 2019-08-15 Christian Biesinger <cbiesinger@google.com>
5886 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5888 (GdbOutputErrorFile): Likewise.
5889 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5891 (execute_unwinders): Rename to have a leading underscore.
5892 (auto_load_packages): Likewise.
5893 (global scope): Adjust call to auto_load_packages accordingly.
5894 (GdbSetPythonDirectory): Likewise.
5895 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5896 instead of execute_unwinders.
5898 2019-08-15 Tom Tromey <tom@tromey.com>
5900 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5901 (show_data): Don't change window visibility.
5902 (tui_gen_win_info::resize): Remove special case for command
5903 window. Use wresize, when available.
5904 (show_source_or_disasm_and_command): Don't change window
5906 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5907 <make_visible>: New method.
5908 * tui/tui-command.c (tui_cmd_window::resize): New method.
5910 2019-08-15 Tom Tromey <tom@tromey.com>
5912 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5913 (struct tui_source_windows): New.
5914 * tui/tui-winsource.c (tui_display_main): Update.
5915 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5916 (new_height_ok, parse_scrolling_args): Update.
5917 * tui/tui-layout.c (show_layout, show_data): Update.
5918 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5919 (tui_add_to_source_windows): Don't declare.
5920 * tui/tui-data.c (source_windows, tui_source_windows)
5921 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5923 2019-08-15 Tom Tromey <tom@tromey.com>
5925 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5927 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5928 * tui/tui-layout.c (show_source_disasm_command, show_data):
5930 (tui_gen_win_info::resize): Rename.
5931 (show_source_or_disasm_and_command): Update.
5932 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5935 2019-08-15 Tom Tromey <tom@tromey.com>
5937 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5938 * tui/tui-interp.c (tui_interp::init): Don't call
5939 tui_initialize_static_data.
5940 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5942 2019-08-15 Tom Tromey <tom@tromey.com>
5944 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5945 examine tui_win_list.
5947 2019-08-15 Tom Tromey <tom@tromey.com>
5949 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5950 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5951 tui_clear_source_content.
5952 (tui_clear_source_content): Remove.
5953 (tui_source_window_base::do_erase_source_content): Hoist call to
5955 * tui/tui-stack.c (tui_show_frame_info): Don't call
5956 tui_clear_source_content.
5958 2019-08-15 Tom Tromey <tom@tromey.com>
5960 * tui/tui-winsource.h (struct tui_source_window_base)
5961 <do_erase_source_content>: New method.
5962 <erase_source_content>: New method.
5963 (tui_erase_source_content): Don't declare.
5964 * tui/tui-winsource.c (tui_clear_source_content): Update.
5965 (tui_source_window_base::do_erase_source_content): Rename from
5966 tui_erase_source_content.
5967 (tui_source_window_base::show_source_content): Update.
5968 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5969 * tui/tui-source.h (struct tui_source_window)
5970 <erase_source_content>: New method.
5971 * tui/tui-disasm.h (struct tui_disasm_window)
5972 <erase_source_content>: New method.
5974 2019-08-15 Tom Tromey <tom@tromey.com>
5976 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5977 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5979 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5980 * tui/tui-source.c (tui_set_source_content): Update.
5981 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5983 2019-08-15 Tom Tromey <tom@tromey.com>
5985 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5986 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5988 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5990 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5992 (tui_source_window::maybe_update): Update.
5994 2019-08-15 Tom Tromey <tom@tromey.com>
5996 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5997 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5999 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
6001 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
6003 (tui_disasm_window::maybe_update): Update.
6005 2019-08-15 Tom Tromey <tom@tromey.com>
6007 * tui/tui-winsource.h (struct tui_source_window_base)
6008 <maybe_update>: Declare.
6009 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
6011 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
6013 * tui/tui-source.c (tui_source_window::maybe_update): New method.
6014 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
6016 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
6018 2019-08-15 Tom Tromey <tom@tromey.com>
6020 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
6022 2019-08-15 Tom Tromey <tom@tromey.com>
6024 * tui/tui-wingeneral.c: Include tui-stack.h.
6025 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
6026 (struct tui_locator_window): Move from tui-data.h.
6027 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
6028 (tui_initialize_static_data): Move from tui-data.c.
6029 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
6030 (struct tui_locator_window): Move to tui-stack.c.
6031 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
6032 (tui_initialize_static_data): Move to tui-stack.c.
6034 2019-08-15 Tom Tromey <tom@tromey.com>
6036 * tui/tui-layout.c (show_source_disasm_command)
6037 (show_source_or_disasm_and_command): Use make_visible method, not
6039 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
6042 2019-08-15 Tom Tromey <tom@tromey.com>
6044 * tui/tui-wingeneral.h (tui_make_window): Update.
6045 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
6047 (tui_gen_win_info::make_visible): Update.
6048 * tui/tui-regs.c (tui_data_window::display_registers_from):
6050 * tui/tui-layout.c (show_source_disasm_command)
6051 (show_source_or_disasm_and_command): Update.
6052 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
6053 (enum tui_box): Remove.
6054 (struct tui_win_info) <can_box>: New method.
6055 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
6058 2019-08-15 Tom de Vries <tdevries@suse.de>
6060 * linux-nat-trad.c: Include gdbarch.h.
6062 2019-08-14 Alan Hayward <alan.hayward@arm.com>
6064 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
6067 2019-08-14 Tom Tromey <tromey@adacore.com>
6069 * darwin-nat.c: Include gdbarch.h.
6070 * darwin-nat-info.c: Include gdbarch.h.
6072 2019-08-13 Tom Tromey <tom@tromey.com>
6074 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
6076 * tui/tui-data.c (tui_initialize_static_data): Update.
6078 2019-08-13 Tom Tromey <tom@tromey.com>
6080 * tui/tui-winsource.h (struct tui_exec_info_window)
6081 <~tui_exec_info_window, maybe_allocate_content, get_content,
6083 (struct tui_source_window_base) <set_exec_info_content,
6084 show_exec_info_content>: Don't declare.
6085 * tui/tui-winsource.c
6086 (tui_exec_info_window::maybe_allocate_content): Remove.
6087 (tui_source_window_base::update_exec_info): Rename from
6088 set_exec_info_content.
6089 (tui_source_window_base::show_exec_info_content)
6090 (tui_source_window_base::update_exec_info): Remove.
6092 2019-08-13 Tom Tromey <tom@tromey.com>
6094 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
6096 * tui/tui-winsource.c (tui_update_source_window_as_is)
6097 (tui_update_source_windows_with_addr, tui_erase_source_content):
6099 (tui_clear_exec_info_content): Remove.
6101 2019-08-13 Tom Tromey <tom@tromey.com>
6103 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
6105 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
6106 call tui_erase_exec_info_content.
6107 (tui_clear_exec_info_content): Rename from
6108 tui_erase_exec_info_content.
6109 (tui_clear_exec_info_content): Delete.
6111 2019-08-13 Tom Tromey <tom@tromey.com>
6113 * tui/tui-winsource.h (struct tui_source_window_base)
6114 <show_exec_info_content>: Declare.
6115 (tui_show_exec_info_content): Don't declare.
6116 * tui/tui-winsource.c
6117 (tui_source_window_base::show_exec_info_content): Rename from
6118 tui_show_exec_info_content.
6119 (tui_source_window_base::update_exec_info): Update.
6121 2019-08-13 Tom Tromey <tom@tromey.com>
6123 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
6124 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
6125 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
6126 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
6127 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
6128 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
6131 2019-08-13 Tom Tromey <tom@tromey.com>
6133 * tui/tui-winsource.h (struct tui_source_window_base)
6134 <update_exec_info>: Declare.
6135 (tui_update_exec_info): Don't declare.
6136 * tui/tui-winsource.c (tui_update_source_window_as_is)
6137 (tui_source_window_base::refresh_all)
6138 (tui_update_all_breakpoint_info): Update.
6139 (tui_source_window_base::update_exec_info): Rename from
6140 tui_update_exec_info.
6141 * tui/tui-stack.c (tui_show_frame_info): Update.
6143 2019-08-13 Tom Tromey <tom@tromey.com>
6145 * tui/tui-winsource.h (struct tui_source_window_base)
6146 <set_exec_info_content>: Declare.
6147 (tui_set_exec_info_content): Don't declare.
6148 * tui/tui-winsource.c
6149 (tui_source_window_base::set_exec_info_content): Rename from
6150 tui_set_exec_info_content.
6151 (tui_update_exec_info): Update.
6153 2019-08-13 Tom Tromey <tom@tromey.com>
6155 * tui/tui-winsource.h (struct tui_source_window_base)
6156 <show_source_content>: Declare.
6157 (tui_show_source_content): Don't declare.
6158 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6159 (tui_source_window_base::show_source_content): Rename from
6160 tui_show_source_content.
6161 (tui_source_window_base::refresh_all): Update.
6162 * tui/tui-layout.c (show_source_disasm_command)
6163 (show_source_or_disasm_and_command): Update.
6165 2019-08-13 Tom Tromey <tom@tromey.com>
6167 * tui/tui-winsource.c (tui_erase_source_content)
6168 (tui_show_source_content, tui_source_window_base::refresh_all):
6170 * tui/tui-wingeneral.h
6171 (tui_check_and_display_highlight_if_needed): Don't declare.
6172 * tui/tui-wingeneral.c
6173 (tui_win_info::check_and_display_highlight_if_needed): Rename from
6174 check_and_display_highlight_if_needed.
6175 * tui/tui-win.c (tui_rehighlight_all)
6176 (tui_win_info::make_visible_with_new_height): Update.
6177 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
6178 (tui_data_window::erase_data_content)
6179 (tui_data_window::display_all_data): Update.
6180 * tui/tui-data.h (struct tui_win_info)
6181 <check_and_display_highlight_if_needed>: Declare.
6183 2019-08-13 Tom Tromey <tom@tromey.com>
6185 * tui/tui-win.c (tui_resize_all): Call
6186 tui_delete_invisible_windows.
6187 * tui/tui-layout.c (show_layout): Call
6188 tui_delete_invisible_windows.
6189 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
6190 * tui/tui-data.c (tui_delete_invisible_windows): New function.
6192 2019-08-13 Tom Tromey <tom@tromey.com>
6194 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
6195 tui_add_win_to_layout.
6197 2019-08-13 Tom Tromey <tom@tromey.com>
6199 * tui/tui-layout.h (tui_default_win_height): Don't declare.
6200 * tui/tui-layout.c (tui_default_win_height): Now static.
6202 2019-08-13 Tom Tromey <tom@tromey.com>
6204 * tui/tui-layout.c (show_layout): Unify all layout cases into a
6206 (show_source_disasm_command, show_source_or_disasm_and_command):
6207 Don't check current layout.
6209 2019-08-13 Tom Tromey <tom@tromey.com>
6211 * tui/tui-wingeneral.c (make_all_visible): Remove.
6212 (tui_make_all_invisible): Simplify.
6213 * tui/tui-layout.c (tui_make_all_invisible): Move from
6214 tui-wingeneral.c; simplify.
6215 (show_layout): Hoist call to tui_make_all_invisible.
6216 (show_data): Don't call tui_make_all_invisible.
6218 2019-08-13 Tom Tromey <tom@tromey.com>
6220 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
6221 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
6223 2019-08-13 Tom Tromey <tom@tromey.com>
6225 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
6227 (show_source_disasm_command, show_data)
6228 (show_source_or_disasm_and_command): Don't use
6229 tui_set_current_layout_to.
6230 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
6231 * tui/tui-data.c (current_layout, tui_current_layout): Move to
6233 (tui_set_current_layout_to): Remove.
6235 2019-08-13 Tom Tromey <tom@tromey.com>
6237 * tui/tui-layout.c (tui_set_layout): Update.
6238 * tui/tui-data.h (struct tui_layout_def): Remove.
6239 (tui_layout_def): Don't declare.
6240 * tui/tui-data.c (layout_def): Remove.
6241 (tui_layout_def): Remove.
6243 2019-08-13 Tom Tromey <tom@tromey.com>
6245 * tui/tui-winsource.h (struct tui_source_window_base)
6246 <clear_detail>: No longer "override".
6247 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
6248 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
6249 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
6250 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
6252 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
6254 2019-08-13 Tom Tromey <tromey@adacore.com>
6256 * tracepoint.c: Don't include readline.h or history.h.
6258 2019-08-12 Tom Tromey <tom@tromey.com>
6260 * configure: Rebuild.
6261 * configure.ac: Check for readline 7.
6262 * NEWS: Mention readline 7 requirement.
6265 2019-08-12 Tom Tromey <tom@tromey.com>
6267 * mingw-hdep.c (gdb_select): Remove readline hack.
6269 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6271 * blockframe.c (find_pc_partial_function): Set *block to nullptr
6272 when the function fails.
6274 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
6276 * s390-tdep.c (s390_type_align): New function.
6277 (s390_gdbarch_init): Set it as type_align gdbarch method.
6279 2019-08-09 Tom de Vries <tdevries@suse.de>
6282 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
6283 pc_low with relocation offset.
6285 2019-08-07 Tom Tromey <tromey@adacore.com>
6287 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
6288 (print_frame_args): Update.
6289 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
6291 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
6292 * frame.h (struct frame_arg): Add initializers.
6293 <error>: Now a unique_xmalloc_ptr.
6295 2019-08-07 Alan Hayward <alan.hayward@arm.com>
6297 * NEWS: Expand the Pointer Authentication entry.
6298 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
6299 (aarch64_frame_unmask_lr): ... to this.
6300 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
6301 Call aarch64_frame_unmask_lr.
6302 * frame.c (struct frame_info): Add "masked" variable.
6303 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
6304 (fprint_frame): Check for masked pc.
6305 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
6307 * python/py-framefilter.c (py_print_frame): Check for masked pc.
6308 * stack.c (print_frame): Check for masked pc.
6310 2019-08-06 Tom Tromey <tom@tromey.com>
6312 * stabsread.c (patch_block_stabs, read_one_struct_field)
6313 (read_enum_type): Use obstack_strndup.
6314 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
6315 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
6316 * dwarf2read.c (guess_full_die_structure_name)
6317 (anonymous_struct_prefix): Use obstack_strndup.
6318 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
6319 * c-exp.y (yylex): Use obstack_strndup.
6320 * ada-exp.y (write_object_renaming, write_ambiguous_var)
6321 (write_var_or_type): Use obstack_strndup.
6323 2019-08-06 Tom Tromey <tom@tromey.com>
6325 * symfile.c (reread_symbols): Use obstack_strdup.
6326 * stabsread.c (read_type): Use obstack_strdup.
6327 * gdb_obstack.h (obstack_strdup): New overload.
6328 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
6329 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
6330 (dwarf2_canonicalize_name): Use obstack_strdup.
6331 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
6332 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
6335 2019-08-06 Tom Tromey <tom@tromey.com>
6337 * gdb_obstack.h (obstack_strdup): Define.
6338 * gdb_obstack.c (obstack_strdup): Don't define.
6340 2019-08-06 Tom Tromey <tom@tromey.com>
6342 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
6344 * typeprint.c (typedef_hash_table::find_global_typedef): Use
6346 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
6347 * stabsread.c (common_block_start): Use obstack_strdup.
6348 * objfiles.c (set_objfile_main_name, objfile): Use
6350 * namespace.c (add_using_directive): Use obstack_strdup.
6351 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
6352 * jit.c (finalize_symtab): Use obstack_strdup.
6353 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
6354 (guess_partial_die_structure_name, partial_die_info::fixup)
6355 (dwarf2_name): Use obstack_strdup.
6356 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
6358 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
6359 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6361 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
6363 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6365 * unittests/help-doc-selftests.c: New file.
6366 * Makefile.in: Add the new file.
6368 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6370 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
6371 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
6372 the full first line, except when FOR_VALUE_PREFIX. In this case,
6373 the trailing '.' is not output, and the first character is uppercased.
6374 (print_help_for_command): Update call to print_doc_line.
6375 (print_doc_of_command): Likewise.
6376 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
6377 * cli/cli-option.c (append_indented_doc): Do not append newline.
6378 (build_help_option): Append newline after first appended_indented_doc
6379 only if a second call is done.
6380 (build_help): Append 2 new lines before each option, except the first
6382 * compile/compile.c (_initialize_compile): Add new lines after
6383 %OPTIONS%, when not at the end of the help.
6384 Change help doc or code
6385 producing the help doc to respect the invariants.
6386 * maint-test-options.c (_initialize_maint_test_options): Likewise.
6387 Also removed the new line after 'Options:', as all other commands
6388 do not put an empty line between 'Options:' and the first option.
6389 * printcmd.c (_initialize_printcmd): Likewise.
6390 * stack.c (_initialize_stack): Likewise.
6391 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
6392 incorrectly telling COMMAND is optional.
6393 * ada-lang.c (_initialize_ada_language): Change help doc or code
6394 producing the help doc to respect the invariants.
6395 * ada-tasks.c (_initialize_ada_tasks): Likewise.
6396 * breakpoint.c (_initialize_breakpoint): Likewise.
6397 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
6398 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
6399 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
6400 * cli/cli-style.c (cli_style_option::add_setshow_commands,
6401 _initialize_cli_style): Likewise.
6402 * corelow.c (core_target_info): Likewise.
6403 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
6404 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
6405 * filesystem.c (_initialize_filesystem): Likewise.
6406 * frame.c (_initialize_frame): Likewise.
6407 * gnu-nat.c (add_task_commands): Likewise.
6408 * infcall.c (_initialize_infcall): Likewise.
6409 * infcmd.c (_initialize_infcmd): Likewise.
6410 * interps.c (_initialize_interpreter): Likewise.
6411 * language.c (_initialize_language): Likewise.
6412 * linux-fork.c (_initialize_linux_fork): Likewise.
6413 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
6414 * maint.c (_initialize_maint_cmds): Likewise.
6415 * memattr.c (_initialize_mem): Likewise.
6416 * printcmd.c (_initialize_printcmd): Likewise.
6417 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
6419 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
6420 * record-btrace.c (_initialize_record_btrace): Likewise.
6421 * record-full.c (_initialize_record_full): Likewise.
6422 * record.c (_initialize_record): Likewise.
6423 * regcache-dump.c (_initialize_regcache_dump): Likewise.
6424 * regcache.c (_initialize_regcache): Likewise.
6425 * remote.c (add_packet_config_cmd, init_remote_threadtests,
6426 _initialize_remote): Likewise.
6427 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6428 * serial.c (_initialize_serial): Likewise.
6429 * skip.c (_initialize_step_skip): Likewise.
6430 * source.c (_initialize_source): Likewise.
6431 * stack.c (_initialize_stack): Likewise.
6432 * symfile.c (_initialize_symfile): Likewise.
6433 * symtab.c (_initialize_symtab): Likewise.
6434 * target-descriptions.c (_initialize_target_descriptions): Likewise.
6435 * top.c (init_main): Likewise.
6436 * tracefile-tfile.c (tfile_target_info): Likewise.
6437 * tracepoint.c (_initialize_tracepoint): Likewise.
6438 * tui/tui-win.c (_initialize_tui_win): Likewise.
6439 * utils.c (add_internal_problem_command): Likewise.
6440 * valprint.c (value_print_option_defs): Likewise.
6442 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
6445 * configure.ac: Drop enable-libmcheck support.
6446 * configure, config.in: Rebuild.
6447 * libmcheck.m4: Remove.
6448 * acinclude.m4: Don't include it.
6449 * Makefile.in: Don't distribute it.
6450 * top.c (print_gdb_configuration): Don't mention it.
6452 2019-08-06 Tom Tromey <tom@tromey.com>
6454 * utils.c (set_output_style): Sometimes pass stream to
6456 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
6457 * record-btrace.c (btrace_insn_history): Update.
6458 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
6460 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
6461 Update initializers.
6462 <m_uiout>: New field.
6464 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6465 Remove "uiout" parameter.
6466 (dump_insns): Update.
6467 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
6468 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
6470 2019-08-06 Christian Biesinger <cbiesinger@google.com>
6472 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
6473 (error_in_psymtab_expansion): Likewise.
6474 (lookup_symbol_via_quick_fns): Likewise.
6475 (basic_lookup_transparent_type_quick): Likewise.
6476 (basic_lookup_transparent_type_1): Likewise.
6478 2019-08-06 Tom Tromey <tromey@adacore.com>
6480 * source.c (last_source_error): Now bool.
6481 (print_source_lines_base): Make "noprint" bool. Only open
6482 source file when last_source_visited changes.
6484 2019-08-06 Tom Tromey <tromey@adacore.com>
6486 * annotate.c (annotate_source_line): Use g_source_cache.
6487 * source-cache.c (source_cache::get_plain_source_lines): Change
6488 parameters. Populate m_offset_cache.
6489 (source_cache::ensure): New method.
6490 (source_cache::get_line_charpos): New method.
6491 (extract_lines): Move lower. Change parameters.
6492 (source_cache::get_source_lines): Move lower.
6493 * source-cache.h (class source_cache): Update comment.
6494 <get_line_charpos>: New method.
6495 <get_source_lines>: Update comment.
6496 <clear>: Clear m_offset_cache.
6497 <get_plain_source_lines>: Change parameters.
6498 <ensure>: New method
6499 <m_offset_cache>: New member.
6500 * source.c (forget_cached_source_info_for_objfile): Update.
6501 (info_source_command): Use g_source_cache.
6502 (find_source_lines, open_source_file_with_line_charpos): Remove.
6503 (print_source_lines_base, search_command_helper): Use g_source_cache.
6504 * source.h (open_source_file_with_line_charpos): Don't declare.
6505 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
6506 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
6509 2019-08-06 Tom Tromey <tromey@adacore.com>
6511 * source-cache.c (source_cache::get_plain_source_lines):
6512 Remove "first_line" and "last_line" parameters.
6513 (source_cache::get_source_lines): Cache plain text.
6514 * source-cache.h (class source_cache)
6515 <get_plain_source_lines>: Update.
6517 2019-08-06 Tom Tromey <tromey@adacore.com>
6519 * source-cache.c (extract_lines): No longer a method.
6520 Changed type of parameter. Include final newline.
6521 (selftests::extract_lines_test): New function.
6522 (_initialize_source_cache): Likewise.
6523 * source-cache.h (class source_cache)
6524 <extract_lines>: Don't declare.
6526 2019-08-06 Tom Tromey <tromey@adacore.com>
6528 * breakpoint.c (init_breakpoint_sal): Update.
6529 (breakpoint): Update.
6530 * breakpoint.h (struct breakpoint) <filter>: Now a
6533 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6535 * NEWS: Mention dictionary access on blocks.
6536 * python/py-block.c (blpy_getitem): New function.
6537 (block_object_as_mapping): New struct.
6538 (block_object_type): Use new struct for tp_as_mapping field.
6540 2019-08-05 Christian Biesinger <cbiesinger@google.com>
6542 * objfiles.h (objfile): Add a comment describing partial symbols.
6544 2019-08-05 Tom Tromey <tromey@adacore.com>
6546 * compile/compile.c (_initialize_compile): Use _(), not N_().
6547 * thread.c (_initialize_thread): Use _(), not N_().
6548 * stack.c (_initialize_stack): Use _(), not N_().
6549 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6551 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6553 * dwarf2read.c (struct dw2_symtab_iterator):
6554 <want_specific_block>: Remove.
6555 <block_index>: Change type to gdb::optional.
6556 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6557 change type of BLOCK_INDEX parameter to gdb::optional.
6558 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6559 (dw2_lookup_symbol): Don't pass argument for
6560 WANT_SPECIFIC_BLOCK.
6561 (dw2_expand_symtabs_for_function): Don't pass argument for
6562 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6563 (class dw2_debug_names_iterator)
6564 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6565 parameter, change BLOCK_INDEX type to gdb::optional.
6566 <m_want_specific_block>: Remove.
6567 <m_block_index>: Change type to gdb::optional.
6568 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6569 gdb::optional. Re-write in function of gdb::optional.
6570 (dw2_debug_names_lookup_symbol): Don't pass argument for
6571 WANT_SPECIFIC_BLOCK.
6572 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6573 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6576 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6578 * NEWS: Mention changes to "info sources" command.
6580 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6582 * symtab.c (filename_partial_match_opts): New struct type.
6583 (struct output_source_filename_data): New members
6584 regexp, c_regexp, partial_match.
6585 (output_source_filename): Use new members to decide to print file.
6586 (info_sources_option_defs): New variable.
6587 (make_info_sources_options_def_group, print_info_sources_header,
6588 info_sources_command_completer):
6590 (info_sources_command): Read new optional arguments.
6591 (_initialize_symtab): Update info sources help.
6593 2019-08-02 Alexandre Oliva <oliva@adacore.com>
6595 * ada-lang.c (exception_support_info_v0): Renamed from...
6596 (default_exception_support_info): ... this. Create new
6598 (ada_has_this_exception_support): Look up catch_handlers_sym.
6599 (ada_exception_support_info_sniffer): Try v0 after default.
6601 2019-08-01 Tom Tromey <tromey@adacore.com>
6603 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6606 2019-08-01 Christian Biesinger <cbiesinger@google.com>
6608 * s12z-tdep.c: Fix include path for s12z-opc.h.
6610 2019-08-01 Alan Hayward <alan.hayward@arm.com>
6612 * NEWS: Require GNU make 3.82.
6614 2019-07-16 Tom Tromey <tom@tromey.com>
6616 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6619 2019-07-30 Tom Tromey <tromey@adacore.com>
6621 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6623 2019-07-30 Kevin Buettner <kevinb@redhat.com>
6625 * printcmd.c (print_address_symbolic): Print negative offsets.
6626 (build_address_symbolic): Force signed arithmetic when computing
6629 2019-07-30 Christian Biesinger <cbiesinger@google.com>
6631 PR/24474: Add a function to lookup static variables.
6632 * NEWS: Mention this new function.
6633 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6634 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6635 * python/python.c (python_GdbMethods): Add new function.
6637 2019-07-29 Christian Biesinger <cbiesinger@google.com>
6639 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6640 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6641 (objfpy_lookup_static_symbol): New function.
6642 (objfile_object_methods): Add new functions.
6644 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6646 * NEWS: Mention 'set|show print frame-info'. Mention new
6647 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6648 backtrace argument. Mention that python frame filtering code
6649 is now consistent with what 'backtrace' command prints.
6651 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6653 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6655 (print_frame_info_auto, print_frame_info_source_line,
6656 print_frame_info_location, print_frame_info_source_and_location,
6657 print_frame_info_location_and_address, print_frame_info_short_location):
6659 (struct frame_print_options): New member print_frame_info.
6660 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6661 * stack.h (get_user_print_what_frame_info): New declaration.
6662 (frame_show_address): New declaration.
6663 * stack.c (print_frame_arguments_choices): New value 'presence'.
6664 (print_frame_info_auto, print_frame_info_source_line,
6665 print_frame_info_location, print_frame_info_source_and_location,
6666 print_frame_info_location_and_address, print_frame_info_short_location,
6667 print_frame_info_choices, print_frame_info_print_what): New definitions.
6668 (print_frame_args): Only print dots for args if print frame-arguments
6670 (frame_print_option_defs): New element for "frame-info".
6671 (get_user_print_what_frame_info): New function.
6672 (frame_show_address): Make non static. Move comment to stack.h.
6673 (print_frame_info_to_print_what): New function.
6674 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6675 to decide what to print.
6676 (backtrace_command_1): Handle the new print_frame_arguments_presence
6678 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6679 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6680 (py_print_frame): In non-mi mode, use LOCATION as default for
6681 print_what, similarly to frame information printed directly by
6682 backtrace command. Handle frame-info user option in non MI mode.
6684 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6686 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6687 Add case for debugging 32-bit target on 64-bit host. Revise
6690 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6692 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6693 instead of find_function_entry_range_from_pc.
6695 2019-07-27 Kevin Buettner <kevinb@redhat.com>
6697 * stack.c (find_frame_funname): Remove code which preferred
6698 minsym over symtab sym in "certain pathological cases".
6700 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6701 parameter. Change type of "do_demangle" to bool.
6702 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6703 Pass suitable "prefer_sym_over_minsym" flag to
6704 build_address_symbolic(). Don't output "+" for negative offsets.
6705 * printcmd.c (print_address_symbolic): Update invocation of
6706 build_address_symbolic to include a "prefer_sym_over_minsym"
6708 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6709 Restrict cases in which use of minimal symbol is preferred to that
6710 of a found symbol. Update comments.
6712 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6713 for entry pc when entry pc is out of range for that FDE.
6715 2019-07-26 Brian Callahan <bcallah@openbsd.org>
6718 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6721 2019-07-25 Christian Biesinger <cbiesinger@google.com>
6723 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6724 this function's Python signature.
6727 2019-07-24 Christian Biesinger <cbiesinger@google.com>
6729 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6730 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6731 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6732 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6733 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6736 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6738 * h8300-tdep.c (h8300_register_name_common): New.
6739 h8300_register_name): Use h8300_register_name_common.
6740 (h8300s_register_name): Likewise.
6741 (h8300sx_register_name): Likewise.
6742 (h8300h_register_nam): New.
6743 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6746 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6748 * arm-tdep.c (arm_skip_cmse_entry): New function.
6749 (arm_is_sgstubs_section): New function.
6750 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6752 2019-07-22 Tom Tromey <tom@tromey.com>
6754 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6757 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6759 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6762 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6764 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6765 so that GDB doesn't match any msymbols when searching in the
6767 (print_symbol_info): Print using typedef_print or type_print based
6768 on the type of the symbol. Add updated FIXME comment moved from...
6769 (_initialize_symtab): ... move and update FIXME comment to above.
6771 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6773 * NEWS: Mention adding -q option to "info types".
6774 * symtab.c (struct info_types_options): New struct.
6775 (info_types_options_defs): New variable.
6776 (make_info_types_options_def_group): New function.
6777 (info_types_command): Use gdb::option framework to parse options.
6778 (info_types_command_completer): New function.
6779 (_initialize_symtab): Extend the help text on "info types" and
6780 register command completer.
6782 2019-07-21 Christian Biesinger <cbiesinger@google.com>
6784 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6785 (lookup_symbol_in_objfile): Change int to block_enum and add a
6786 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6788 2019-07-20 Christian Biesinger <cbiesinger@google.com>
6790 * MAINTAINERS (Write After Approval): Add self.
6792 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6794 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6795 instruction to the dummy code region.
6797 2019-07-19 Tom Tromey <tromey@adacore.com>
6799 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6800 (ARGSUSED, PARAMS, __func__): Remove rules.
6802 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6804 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6805 * features/arm/arm-with-iwmmxt.c: Remove.
6806 * features/arm/arm-with-iwmmxt.xml: Remove.
6807 * features/arm/arm-with-m-fpa-layout.c: Remove.
6808 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6809 * features/arm/arm-with-m-vfp-d16.c: Remove.
6810 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6811 * features/arm/arm-with-m.c: Remove.
6812 * features/arm/arm-with-m.xml: Remove.
6813 * features/arm/arm-with-neon.c: Remove.
6814 * features/arm/arm-with-neon.xml: Remove.
6815 * features/arm/arm-with-vfpv2.c: Remove.
6816 * features/arm/arm-with-vfpv2.xml: Remove.
6817 * features/arm/arm-with-vfpv3.c: Remove.
6818 * features/arm/arm-with-vfpv3.xml: Remove.
6820 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6822 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6824 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6826 * arch/aarch32.c (aarch32_create_target_description): Create
6827 target descriptions using features.
6828 * arch/arm.c (arm_create_target_description)
6829 (arm_create_mprofile_target_description): Likewise.
6830 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6832 2019-07-19 Alan Hayward <alan.hayward@arm.com>
6834 * Makefile.in: Add new files.
6835 * aarch32-tdep.c: New file.
6836 * aarch32-tdep.h: New file.
6837 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6838 Call aarch32_read_description.
6839 * arch/aarch32.c: New file.
6840 * arch/aarch32.h: New file.
6841 * arch/arm.c (arm_create_target_description)
6842 (arm_create_mprofile_target_description): New function.
6843 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6844 (arm_create_target_description)
6845 (arm_create_mprofile_target_description): New declaration.
6846 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6847 read_description functions.
6848 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6850 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6851 * arm-tdep.c (tdesc_arm_list): New variable.
6852 (arm_register_g_packet_guesses): Call create description functions.
6853 (arm_read_description) (arm_read_mprofile_description): New
6855 * arm-tdep.h (arm_read_description)
6856 (arm_read_mprofile_description): Add declaration.
6857 * configure.tgt: Add new files.
6859 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6861 * top.c (new_ui_command): Open specified terminal just once.
6863 2019-07-18 Tom Tromey <tromey@adacore.com>
6865 * symtab.c (main_name): Constify return type.
6866 * symfile.c (set_initial_language): Update.
6867 * symtab.h (main_name): Constify return type.
6869 2019-07-17 Tom Tromey <tom@tromey.com>
6871 * tui/tui-winsource.c (tui_update_source_window)
6872 (tui_update_source_window_as_is)
6873 (tui_update_source_windows_with_line): Remove return.
6874 * tui/tui-disasm.c (tui_show_disassem)
6875 (tui_show_disassem_and_update_source): Remove return.
6876 * tui/tui.c (tui_reset): Remove return.
6877 * tui/tui-wingeneral.c
6878 (tui_check_and_display_highlight_if_needed): Remove return.
6880 2019-07-17 Tom Tromey <tom@tromey.com>
6882 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6884 2019-07-17 Tom Tromey <tom@tromey.com>
6886 * tui/tui-winsource.h (struct tui_exec_info_window)
6887 (struct tui_source_window_base): Move from tui-data.h.
6888 * tui/tui-winsource.c: Move many method definitions from
6889 elsewhere. Remove "structuring" comments.
6890 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6891 (tui_source_window_base::refresh_window): Move to
6893 * tui/tui-win.c (tui_source_window_base::refresh_all)
6894 (tui_source_window_base::update_tab_width)
6895 (tui_source_window_base::set_new_height)
6896 (tui_source_window_base::do_make_visible_with_new_height): Move to
6898 * tui/tui-source.h: Update.
6899 * tui/tui-source.c (tui_source_window_base::reset): Move to
6901 * tui/tui-disasm.h: Update.
6902 * tui/tui-data.h (struct tui_exec_info_window): Move to
6904 (struct tui_source_window_base): Likewise.
6905 * tui/tui-data.c (tui_source_window_base::clear_detail)
6906 (tui_source_window_base, ~tui_source_window_base): Move to
6909 2019-07-17 Tom Tromey <tom@tromey.com>
6911 * tui/tui-win.c (tui_resize_all)
6912 (tui_source_window_base::update_tab_width)
6913 (tui_adjust_win_heights): Update.
6914 (tui_win_info::make_invisible_and_set_new_height): Rename from
6915 make_invisible_and_set_new_height.
6916 * tui/tui-data.h (struct tui_win_info)
6917 <make_invisible_and_set_new_height>: New method.
6919 2019-07-17 Tom Tromey <tom@tromey.com>
6921 * tui/tui.c: Update.
6922 * tui/tui-source.h (struct tui_source_window): Move from
6924 * tui/tui-layout.c: Update.
6925 * tui/tui-disasm.c: Update.
6926 * tui/tui-data.h (struct tui_source_window): Move to
6929 2019-07-17 Tom Tromey <tom@tromey.com>
6931 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6933 * tui/tui-data.h (struct tui_disasm_window): Move to
6936 2019-07-17 Tom Tromey <tom@tromey.com>
6938 * tui/tui-regs.h (struct tui_data_item_window): Move from
6940 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6941 * tui/tui-data.h (struct tui_data_item_window): Move to
6943 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6945 2019-07-17 Tom Tromey <tom@tromey.com>
6947 * tui/tui.c: Update.
6948 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6949 (tui_cmd_window::max_height): Move to tui-command.c.
6950 * tui/tui-layout.c: Update.
6951 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6952 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6954 * tui/tui-command.h (struct tui_cmd_window): Move from
6956 * tui/tui-command.c: Remove "structuring" comments.
6957 (tui_cmd_window::clear_detail)
6958 (tui_cmd_window::do_make_visible_with_new_height)
6959 (tui_cmd_window::max_height): Move from elsewhere.
6961 2019-07-17 Tom Tromey <tom@tromey.com>
6963 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6965 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6966 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6968 2019-07-17 Tom Tromey <tom@tromey.com>
6970 * tui/tui.c: Update.
6971 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6973 * tui/tui-windata.h: Remove file.
6974 * tui/tui-windata.c: Remove file.
6975 * tui/tui-win.c (tui_data_window::set_new_height)
6976 (tui_data_window::do_make_visible_with_new_height): Move to
6978 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6979 * tui/tui-regs.c: Remove "structuring" comments.
6980 (tui_data_window::first_data_item_displayed)
6981 (tui_data_window::delete_data_content_windows)
6982 (tui_data_window::erase_data_content)
6983 (tui_data_window::display_all_data)
6984 (tui_data_window::refresh_all)
6985 (tui_data_window::do_scroll_vertical)
6986 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6987 (tui_data_window::do_make_visible_with_new_height)
6988 (tui_data_window::refresh_window): Move from elsewhere.
6989 (_initialize_tui_regs): Move to end of file.
6990 * tui/tui-layout.c: Update.
6991 * tui/tui-hooks.c: Update.
6992 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6993 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6995 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6997 2019-07-17 Tom Tromey <tom@tromey.com>
6999 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
7002 2019-07-17 Tom Tromey <tom@tromey.com>
7004 * tui/tui-win.c (tui_source_window_base::set_new_height)
7005 (tui_source_window_base::do_make_visible_with_new_height): Use
7006 m_has_locator field directly.
7007 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
7009 (struct tui_source_window_base) <has_locator>: Likewise.
7011 2019-07-17 Tom Tromey <tom@tromey.com>
7013 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
7015 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
7017 * tui/tui-win.c (tui_source_window_base::set_new_height)
7018 (tui_source_window_base::set_new_height)
7019 (make_invisible_and_set_new_height)
7020 (tui_source_window_base::do_make_visible_with_new_height)
7021 (tui_source_window_base::do_make_visible_with_new_height):
7023 * tui/tui-layout.c (show_source_disasm_command, show_data)
7024 (show_source_or_disasm_and_command): Update.
7025 * tui/tui-layout.c (show_layout): Update.
7027 2019-07-17 Tom Tromey <tom@tromey.com>
7029 * tui/tui-layout.c (make_data_window): Remove.
7030 (show_data): Unify creation and re-initialization cases.
7032 2019-07-17 Tom Tromey <tom@tromey.com>
7034 * tui/tui-layout.c (make_source_window, make_disasm_window):
7036 (show_data): Unify creation and re-initialization cases.
7038 2019-07-17 Tom Tromey <tom@tromey.com>
7040 * tui/tui-layout.c (make_command_window): Remove.
7041 (show_source_disasm_command, show_source_or_disasm_and_command):
7042 Unify creation and re-initialization cases.
7044 2019-07-17 Tom Tromey <tom@tromey.com>
7046 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
7047 creation and re-initialization cases.
7049 2019-07-17 Tom Tromey <tom@tromey.com>
7051 * tui/tui-regs.c (tui_get_register): Return void.
7053 2019-07-17 Tom Tromey <tom@tromey.com>
7055 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
7058 2019-07-17 Tom Tromey <tom@tromey.com>
7060 * tui/tui-layout.c (show_source_disasm_command): Simplify window
7063 2019-07-17 Tom Tromey <tom@tromey.com>
7065 * tui/tui.h (tui_set_layout_by_name): Don't declare.
7066 * tui/tui-regs.c (tui_reg_layout): New function.
7067 (tui_show_registers, tui_reg_command): Use it.
7068 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
7069 (tui_layout_command): Rename from tui_set_layout_by_name. Change
7071 (tui_layout_command): Remove.
7073 2019-07-17 Tom Tromey <tom@tromey.com>
7075 * tui/tui-layout.h (tui/tui-layout): Return void.
7076 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
7078 2019-07-17 Tom Tromey <tom@tromey.com>
7080 * tui/tui-layout.c (show_source_disasm_command, show_data):
7082 (reset_locator): Remove.
7083 (show_source_or_disasm_and_command): Update.
7085 2019-07-17 Tom Tromey <tom@tromey.com>
7087 * tui/tui-source.c (tui_source_window_base::reset): Remove
7089 * tui/tui-layout.c (make_command_window, make_source_window)
7090 (make_disasm_window, make_data_window)
7091 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
7092 (reset_locator, show_source_or_disasm_and_command): Update.
7093 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
7095 (struct tui_source_window_base) <reset>: Likewise.
7097 2019-07-17 Tom Tromey <tom@tromey.com>
7099 * tui/tui-layout.c (show_source_disasm_command): Use
7101 (reset_locator): New function.
7102 (init_and_make_win): Remove.
7103 (show_source_or_disasm_and_command): Use reset_locator.
7105 2019-07-17 Tom Tromey <tom@tromey.com>
7107 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
7109 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
7111 * tui/tui-source.c (tui_source_window_base::reset): New method.
7112 * tui/tui-layout.c (make_command_window): Don't call
7114 (make_source_window, make_disasm_window): Don't call
7115 make_source_or_disasm_window.
7116 (make_data_window): Don't call init_and_make_win. Change calling
7118 (show_source_disasm_command, show_data): Simplify.
7119 (make_source_or_disasm_window): Remove.
7120 (show_source_or_disasm_and_command): Simplify.
7121 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
7122 (struct tui_source_window_base) <reset>: Likewise.
7123 <execution_info>: Remove initializer.
7124 * tui/tui-data.c (tui_source_window_base): Initialize
7127 2019-07-17 Tom Tromey <tom@tromey.com>
7129 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
7132 2019-07-17 Tom Tromey <tom@tromey.com>
7134 * tui/tui.c (tui_rl_other_window): Update.
7135 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
7136 superclass method first. Always iterate over regs_content.
7137 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
7139 * tui/tui-win.c (tui_set_focus_command): Update.
7141 2019-07-17 Tom Tromey <tom@tromey.com>
7143 * tui/tui-win.c (tui_set_focus_command): Rename from
7144 tui_set_focus. Call tui_enable.
7145 (tui_set_focus_command): Remove.
7147 2019-07-17 Tom Tromey <tom@tromey.com>
7149 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
7151 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
7153 (tui_data_window::refresh_window): Call refresh_window on data
7154 items. Always call superclass refresh_window.
7155 (tui_win_info::refresh): Remove.
7156 (tui_source_window_base::refresh_window): Update.
7157 (tui_refresh_all): Update.
7158 * tui/tui-layout.c (show_source_disasm_command): Remove call to
7160 (show_source_or_disasm_and_command): Likewise.
7161 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
7162 (struct tui_source_window_base) <refresh>: Likewise.
7164 2019-07-17 Tom Tromey <tom@tromey.com>
7166 * tui/tui-winsource.c (tui_clear_source_content)
7167 (tui_show_source_content): Update.
7168 * tui/tui-source.c (tui_source_window::showing_source_p): Check
7169 whether content is empty.
7170 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
7173 2019-07-17 Tom Tromey <tom@tromey.com>
7175 * tui/tui-winsource.c (tui_erase_source_content): Clear the
7177 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
7178 * tui/tui-source.c (tui_set_source_content_nil): Remove.
7180 2019-07-17 Tom Tromey <tom@tromey.com>
7182 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
7183 (struct tui_data_item_window): Update.
7185 2019-07-17 Tom Tromey <tom@tromey.com>
7187 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
7188 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
7191 2019-07-17 Tom Tromey <tom@tromey.com>
7193 * tui/tui-winsource.h (tui_erase_source_content)
7194 (tui_clear_source_content): Remove "display_prompt" parameter.
7195 * tui/tui-winsource.c (tui_update_source_window_as_is)
7196 (tui_update_source_windows_with_addr): Update.
7197 (tui_clear_source_content): Remove "display_prompt" parameter.
7198 (tui_erase_source_content): Likewise. Simplify.
7199 (tui_show_source_content): Update.
7200 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7201 * tui/tui-stack.c (tui_show_frame_info): Update.
7202 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
7205 2019-07-17 Tom Tromey <tom@tromey.com>
7207 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7208 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
7210 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
7213 2019-07-17 Tom Tromey <tom@tromey.com>
7215 * tui/tui-winsource.c (tui_clear_source_content)
7216 (tui_show_source_content, tui_show_exec_info_content)
7217 (tui_clear_exec_info_content): Update.
7218 * tui/tui-stack.c (tui_show_locator_content): Update.
7219 (tui_show_frame_info): Update.
7220 * tui/tui-source.h (tui_source_window): Don't declare.
7221 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
7222 from tui_source_is_displayed.
7223 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
7225 (struct tui_source_window_base) <content_in_use>: New field. Now
7227 (struct tui_source_window) <showing_source_p>: New method.
7228 (TUI_SRC_WIN): Change cast.
7229 * tui/tui-data.c (tui_initialize_static_data): Update.
7231 2019-07-17 Tom Tromey <tom@tromey.com>
7233 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
7235 * tui/tui-source.c (tui_source_window::location_matches_p): New
7237 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
7239 * tui/tui-data.h (struct tui_source_window_base)
7240 <location_matches_p>: New method.
7241 (struct tui_source_window, struct tui_disasm_window)
7242 <location_matches_p>: Likewise.
7244 2019-07-17 Tom Tromey <tom@tromey.com>
7246 * tui/tui-win.c (tui_set_win_height_command): Rename from
7248 (tui_set_win_height_command): Remove.
7250 2019-07-17 Tom Tromey <tom@tromey.com>
7252 * tui/tui-source.c (tui_source_window): New constructor. Add
7254 (~tui_source_window): New destructor.
7255 (tui_source_window::style_changed): New method.
7256 * tui/tui-hooks.c (tui_redisplay_source): Remove.
7257 (tui_attach_detach_observers): Update.
7258 * tui/tui-data.h (struct tui_source_window): Make constructor not
7259 inline. Add destructor.
7260 (struct tui_source_window) <style_changed>: New method.
7261 <m_observable>: New member.
7263 2019-07-17 Tom Tromey <tom@tromey.com>
7265 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
7266 * tui/tui-win.c (tui_resize_all): Fix typo.
7268 2019-07-17 Tom Tromey <tom@tromey.com>
7270 * tui/tui-wingeneral.h (tui_refresh_all): Update.
7271 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
7272 (tui_refresh_all): Remove "list" parameter. Use foreach.
7273 * tui/tui-win.c (window_name_completer): Use foreach.
7274 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
7275 (update_tab_width): Likewise.
7276 * tui/tui-layout.c (show_layout): Update.
7277 * tui/tui-data.h (class tui_window_iterator): New.
7278 (struct all_tui_windows): New.
7279 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
7281 2019-07-17 Tom Tromey <tom@tromey.com>
7283 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
7284 parameter. Don't reference globals.
7285 (tui_reg_command): Update.
7287 2019-07-17 Tom Tromey <tom@tromey.com>
7289 * tui/tui-regs.c (tui_show_registers): Simplify.
7291 2019-07-17 Tom Tromey <tom@tromey.com>
7293 * tui/tui-regs.c (tui_show_registers): Update.
7294 (tui_show_register_group): Add win_info parameter.
7296 2019-07-17 Tom Tromey <tom@tromey.com>
7298 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
7299 Rename from tui_display_reg_element_at_line.
7300 (tui_data_window::display_registers_from_line): Update.
7301 * tui/tui-data.h (struct tui_data_window)
7302 <display_reg_element_at_line>: New method.
7304 2019-07-17 Tom Tromey <tom@tromey.com>
7306 * tui/tui-regs.h (tui_display_registers_from)
7307 (tui_display_registers_from_line): Don't declare.
7308 * tui/tui-windata.c (tui_data_window::display_all_data)
7309 (tui_data_window::refresh_all)
7310 (tui_data_window::do_scroll_vertical): Update.
7311 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
7312 from tui_display_registers_from.
7313 (tui_display_reg_element_at_line): Update.
7314 (tui_data_window::display_registers_from_line): Rename from
7315 tui_display_registers_from_line.
7316 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
7317 display_registers_from_line>: New methods.
7319 2019-07-17 Tom Tromey <tom@tromey.com>
7321 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
7322 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
7323 from tui_erase_data_content.
7324 (tui_data_window::display_all_data)
7325 (tui_data_window::refresh_all)
7326 (tui_data_window::do_scroll_vertical): Update.
7327 * tui/tui-regs.c (tui_show_registers): Update.
7328 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
7331 2019-07-17 Tom Tromey <tom@tromey.com>
7333 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
7336 (tui_data_window::delete_data_content_windows): Rename from
7337 tui_delete_data_content_windows.
7338 (tui_data_window::display_all_data)
7339 (tui_data_window::do_scroll_vertical): Update.
7340 * tui/tui-data.h (struct tui_data_window)
7341 <delete_data_content_windows>: New method.
7343 2019-07-17 Tom Tromey <tom@tromey.com>
7345 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
7346 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
7348 2019-07-17 Tom Tromey <tom@tromey.com>
7350 * tui/tui-windata.h (tui_display_all_data): Don't declare.
7351 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
7352 from tui_display_all_data.
7354 (tui_data_window::do_make_visible_with_new_height): Update.
7355 * tui/tui-regs.c (tui_show_registers): Update.
7356 * tui/tui-layout.c (tui_set_layout): Update.
7357 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
7360 2019-07-17 Tom Tromey <tom@tromey.com>
7362 * tui/tui-windata.h (tui_display_data_from): Don't declare.
7363 * tui/tui-windata.c (tui_display_data_from): Remove.
7364 (tui_data_window::refresh_all): Update.
7366 2019-07-17 Tom Tromey <tom@tromey.com>
7368 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
7369 * tui/tui-windata.c (tui_display_data_from_line): Remove.
7370 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
7371 tui_display_registers_from_line.
7372 * tui/tui-regs.h (tui_display_registers_from_line): Update.
7373 * tui/tui-regs.c (tui_display_registers_from_line): Remove
7374 "force_display" parameter.
7376 2019-07-17 Tom Tromey <tom@tromey.com>
7378 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
7380 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
7381 Rename from tui_first_reg_element_no_inline.
7382 (tui_display_reg_element_at_line)
7383 (tui_display_registers_from_line): Update.
7384 * tui/tui-data.h (struct tui_data_window)
7385 <first_reg_element_no_inline>: New method.
7387 2019-07-17 Tom Tromey <tom@tromey.com>
7389 * tui/tui-windata.c (tui_display_data_from)
7390 (tui_data_window::do_scroll_vertical): Update.
7391 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
7392 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
7393 Rename from tui_line_from_reg_element_no.
7394 (tui_display_registers_from_line): Update.
7395 * tui/tui-data.h (struct tui_data_window)
7396 <line_from_reg_element_no>: New method.
7398 2019-07-17 Tom Tromey <tom@tromey.com>
7400 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
7401 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
7402 tui_last_regs_line_no.
7403 (tui_display_reg_element_at_line)
7404 (tui_display_registers_from_line): Update.
7405 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
7408 2019-07-17 Tom Tromey <tom@tromey.com>
7411 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
7412 (tui_update_breakpoint_info): Add "being_deleted" parameter.
7413 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
7414 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
7415 (tui_update_breakpoint_info): Likewise.
7416 * tui/tui-hooks.c (tui_event_create_breakpoint)
7417 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
7420 2019-07-17 Tom Tromey <tom@tromey.com>
7422 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
7424 2019-07-17 Tom Tromey <tom@tromey.com>
7426 * tui/tui-winsource.c (tui_update_source_window_as_is)
7427 (tui_update_source_windows_with_addr): Update.
7428 * tui/tui-source.h (tui_set_source_content)
7429 (tui_show_symtab_source): Add "win_info" parameter.
7430 * tui/tui-source.c (tui_set_source_content): Add "win_info"
7432 (tui_show_symtab_source): Likewise.
7434 2019-07-17 Tom Tromey <tom@tromey.com>
7436 * tui/tui-wingeneral.c
7437 (tui_check_and_display_highlight_if_needed): Check can_highlight.
7439 2019-07-17 Tom Tromey <tom@tromey.com>
7441 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
7442 (struct tui_cmd_window) <can_scroll>: New method.
7443 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
7446 2019-07-17 Tom Tromey <tromey@adacore.com>
7448 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
7449 do_field_signed>: Rename. Change type of "value".
7450 * ui-out.c (ui_out::field_signed): Rename from field_int.
7451 Change type of "value".
7452 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
7454 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
7455 do_field_int. Change type of "value".
7456 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
7457 do_field_int. Change type of "value".
7458 * tracepoint.c (trace_status_mi, tfind_1)
7459 (print_one_static_tracepoint_marker): Update.
7460 * thread.c (print_thread_info_1, print_selected_thread_frame):
7462 * stack.c (print_frame, print_frame_info): Update.
7463 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
7465 * source.c (print_source_lines_base): Update.
7466 * skip.c (info_skip_command): Update.
7467 * record-btrace.c (btrace_ui_out_decode_error)
7468 (btrace_call_history_src_line): Update.
7469 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
7471 * progspace.c (print_program_space): Update.
7472 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
7473 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
7474 do_field_int. Change type of "value".
7475 * mi/mi-out.c (mi_ui_out::do_table_begin)
7476 (mi_ui_out::do_table_header): Update.
7477 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
7479 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
7480 (mi_cmd_data_list_changed_registers, output_register)
7481 (mi_cmd_data_read_memory, mi_load_progress)
7482 (mi_cmd_trace_frame_collected): Update.
7483 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
7485 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
7486 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
7487 (mi_cmd_var_list_children, varobj_update_one): Update.
7488 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
7489 (mi_cmd_stack_list_args, list_arg_or_local): Update.
7490 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
7491 * inferior.c (print_inferior): Update.
7492 * gdb_bfd.c (print_one_bfd): Update.
7493 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7495 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
7496 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
7497 do_field_int. Change type of "value".
7498 * cli-out.c (cli_ui_out::do_field_signed): Rename from
7499 do_field_int. Change type of "value".
7500 * breakpoint.c (watchpoint_check, print_breakpoint_location)
7501 (print_one_breakpoint_location, print_it_catch_fork)
7502 (print_one_catch_fork, print_it_catch_vfork)
7503 (print_one_catch_vfork, print_it_catch_solib)
7504 (print_it_catch_exec, print_it_ranged_breakpoint)
7505 (print_mention_watchpoint, print_mention_masked_watchpoint)
7506 (bkpt_print_it, update_static_tracepoint): Update.
7507 * break-catch-throw.c (print_it_exception_catchpoint): Update.
7508 * break-catch-syscall.c (print_it_catch_syscall): Update.
7509 * ada-tasks.c (print_ada_task_info): Update.
7510 * ada-lang.c (print_it_exception, print_mention_exception):
7513 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7515 PR breakpoints/24541
7516 * gdbarch.c: Regenerate.
7517 * gdbarch.h: Regenerate.
7518 * gdbarch.sh: Adjust return type and parameter types for
7519 'stap_adjust_register'.
7520 (i386_stap_adjust_register): Adjust signature and return new
7522 * stap-probe.c (stap_parse_register_operand): Adjust use of
7523 'gdbarch_stap_adjust_register'.
7525 2019-07-17 Tom Tromey <tromey@adacore.com>
7527 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7529 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7531 (struct s390_process_info): Add initializers.
7532 (s390_add_process): Use new.
7533 (s390_linux_nat_target::low_forget_process): Use delete.
7534 (s390_linux_nat_target::low_new_fork)
7535 (s390_linux_nat_target::stopped_by_watchpoint)
7536 (s390_linux_nat_target::low_prepare_to_resume)
7537 (s390_linux_nat_target::insert_watchpoint)
7538 (s390_linux_nat_target::insert_hw_breakpoint)
7539 (s390_linux_nat_target::remove_watchpoint)
7540 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7542 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7544 * aarch64-fbsd-nat.c: Include regcache.h.
7545 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7547 (aarch64_fbsd_nat_target::fetch_registers)
7548 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7550 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7552 2019-07-16 John Baldwin <jhb@FreeBSD.org>
7554 * fbsd-nat.c: Include gdbarch.h.
7556 2019-07-15 Tom Tromey <tromey@adacore.com>
7558 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7560 2019-07-15 Tom Tromey <tromey@adacore.com>
7562 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7563 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7564 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7565 * cli-out.c (cli_ui_out::do_field_int): New method.
7566 * ui-out.c (ui_out::field_unsigned): New method.
7567 * symfile.c (generic_load): Use field_unsigned.
7568 (print_transfer_performance): Likewise.
7569 * record-btrace.c (ui_out_field_uint): Remove.
7570 (btrace_call_history_insn_range, btrace_call_history): Use
7572 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7574 * ui-out.h (class ui_out) <field_unsigned>: New method.
7575 <do_field_unsigned>: Likewise.
7577 2019-07-15 Tom Tromey <tromey@adacore.com>
7579 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7580 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7581 * target.c (flash_erase_command): Use field_string.
7582 * infrun.c (print_signal_received_reason): Use field_string.
7583 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7584 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7586 * ada-tasks.c (print_ada_task_info): Use field_string.
7588 2019-07-15 Tom Tromey <tromey@adacore.com>
7590 * target.c (flash_erase_command): Use field_core_addr.
7591 * symfile.c (generic_load): Use field_core_addr.
7592 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7593 Use field_core_addr.
7594 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7597 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7599 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7600 value if its desired type is smaller than a CORE_ADDR and signed.
7602 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7604 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7605 of changes to field names, and use new is_reference field to
7606 decide if a property is a reference or not.
7607 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7609 (struct dwarf2_property_baton): Update header comment, rename
7610 'referenced_type' to 'property_type' and update comments.
7611 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7612 default property type, store in property baton, update to take
7613 accound of renamed field.
7614 (read_func_scope): Update call to attr_to_dynamic_prop.
7615 (read_array_type): Likewise.
7616 (dwarf2_per_cu_addr_sized_int_type): New function.
7617 (read_subrange_index_type): Move type finding code to
7618 dwarf2_per_cu_addr_sized_int_type.
7619 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7620 (dwarf2_per_cu_addr_type): New function.
7621 (set_die_type): Update calls to attr_to_dynamic_prop.
7623 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7625 * dwarf2read.c (read_subrange_index_type): New function.
7626 (read_subrange_type): Move code into new function and call it.
7627 * gdbtypes.c (create_range_type): Add some asserts.
7629 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7631 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7632 update return statements.
7633 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7634 declaration, and update comment to match.
7635 * gdbtypes.c (resolve_dynamic_array): Update call to
7636 dwarf2_evaluate_property to match new return type.
7638 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7640 * valarith.c (value_subscripted_rvalue): Change lowerbound
7641 parameter type from int to LONGEST.
7642 * value.h (value_subscripted_rvalue): Likewise in declaration.
7644 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7646 * cli/cli-utils.c (info_print_command_completer): New function.
7647 * cli/cli-utils.h: Add 'completer.h' include, and forward
7648 declaration for 'struct cmd_list_element'.
7649 (info_print_command_completer): Declare.
7650 * stack.c (_initialize_stack): Add completer for 'info locals' and
7652 * symtab.c (_initialize_symtab): Add completer for 'info
7653 variables' and 'info functions'.
7654 * NEWS: Mention completion for additional info commands.
7656 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7658 * cli/cli-utils.c (extract_info_print_args): Delete.
7659 (extract_arg_maybe_quoted): Delete.
7660 (info_print_options_defs): New variable.
7661 (make_info_print_options_def_group): New function.
7662 (extract_info_print_options): Define new function.
7663 * cli/cli-utils.h (extract_info_print_args): Delete.
7664 (struct info_print_options): New structure.
7665 (extract_info_print_options): Declare new function.
7666 * stack.c (info_locals_command): Update to use new
7667 extract_info_print_options, also add a header comment.
7668 (info_args_command): Likewise.
7669 * symtab.c (info_variables_command): Likewise.
7670 (info_functions_command): Likewise.
7672 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7674 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7675 to extract string arguments.
7676 * common/common-utils.c (extract_string_maybe_quoted): New function.
7677 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7679 2019-07-11 Tom Tromey <tromey@adacore.com>
7681 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7682 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7683 * top.h (gdbinit): Don't declare.
7684 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7686 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7687 * top.c (gdb_init): Don't call init_cli_cmds.
7689 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7691 2019-07-11 Tom Tromey <tromey@adacore.com>
7693 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7694 after it has been moved.
7696 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7698 * valops.c (value_must_coerce_to_target): Change return type to
7700 * value.h (value_must_coerce_to_target): Likewise.
7702 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
7704 * breakpoint.c (is_hardware_watchpoint): Remove
7705 forward-declaration.
7706 (is_masked_watchpoint): Change return type to bool.
7707 (is_tracepoint): Likewise.
7708 (is_breakpoint): Likewise.
7709 (is_hardware_watchpoint): Likewise.
7710 (is_watchpoint): Likewise.
7711 (is_no_memory_software_watchpoint): Likewise.
7712 (is_catchpoint): Likewise.
7713 (breakpoint_1): Make FILTER parameter's return type bool.
7714 is_masked_watchpoint): Change return type to bool.
7715 (save_breakpoints): Make FILTER parameter's return type bool.
7716 * breakpoint.h (is_breakpoint): Change return type to bool.
7717 (is_watchpoint): Likewise.
7718 (is_catchpoint): Likewise.
7719 (is_tracepoint): Likewise.
7721 2019-07-10 Tom Tromey <tom@tromey.com>
7723 * defs.h: Don't include gdbarch.h.
7724 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7725 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7726 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7727 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7728 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7729 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7730 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7731 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7732 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7733 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7734 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7735 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7736 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7737 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7738 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7739 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7740 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7741 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7742 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7743 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7744 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7745 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7746 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7747 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7748 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7749 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7750 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7752 2019-07-10 Tom Tromey <tromey@adacore.com>
7754 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7755 * breakpoint.c (init_ada_exception_breakpoint): Register as
7757 (print_one_breakpoint_location, print_one_breakpoint): Use
7758 is_ada_exception_catchpoint.
7759 * ada-lang.c (class ada_catchpoint_location): Pass
7760 bp_loc_software_breakpoint to bp_location constructor.
7761 (is_ada_exception_catchpoint): New function.
7763 2019-07-10 Tom Tromey <tromey@adacore.com>
7765 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7767 (struct arm_exidx_entry): New method operator<.
7768 (struct arm_exidx_data) <section_maps>: Change type.
7769 (arm_exidx_data_free): Remove.
7770 (arm_exidx_data_key): Change type. Move lower.
7771 (arm_exidx_new_objfile): Update.
7772 (arm_compare_exidx_entries): Remove.
7773 (arm_find_exidx_entry, _initialize_arm_tdep)
7775 2019-07-10 Tom Tromey <tromey@adacore.com>
7777 * solib-spu.c (ocl_program_data_key): Change type.
7778 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7781 2019-07-10 Tom Tromey <tromey@adacore.com>
7783 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7784 (struct solib_aix_inferior_data) <library_list>: Change type.
7785 (solib_aix_inferior_data_handle): Change type.
7786 (get_solib_aix_inferior_data): Update.
7787 (solib_aix_free_library_list): Remove.
7788 (library_list_start_library): Update.
7789 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7791 (solib_aix_get_library_list)
7792 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7793 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7795 2019-07-10 Tom Tromey <tromey@adacore.com>
7797 * solib-dsbt.c (struct dsbt_info): Add initializers.
7798 (solib_dsbt_pspace_data): Change type.
7799 (dsbt_pspace_data_cleanup): Remove.
7800 (get_dsbt_info, _initialize_dsbt_solib): Update.
7802 2019-07-10 Tom Tromey <tromey@adacore.com>
7804 * spu-tdep.c (spu_overlay_data): Change type.
7805 (spu_get_overlay_table, spu_overlay_new_objfile)
7806 (_initialize_spu_tdep): Update.
7808 2019-07-10 Tom Tromey <tromey@adacore.com>
7810 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7812 (dbx_objfile_data_key): Change type and declare later.
7813 (DBX_SYMFILE_INFO): Rewrite.
7814 * dbxread.c (dbx_objfile_data_key): Change type.
7815 (dbx_symfile_init): Update.
7816 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7817 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7818 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7820 2019-07-10 Tom Tromey <tromey@adacore.com>
7822 * jit.c (jit_program_space_key): Change type. Move lower.
7823 (get_jit_program_space_data): Update.
7824 (jit_program_space_data_cleanup): Remove.
7825 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7827 (struct jit_program_space_data): Add initializers.
7829 2019-07-10 Tom Tromey <tromey@adacore.com>
7831 * solib-darwin.c (struct darwin_info): Add initializers.
7832 (solib_darwin_pspace_data): Change type.
7833 (darwin_pspace_data_cleanup): Remove.
7834 (get_darwin_info, _initialize_darwin_solib): Update.
7836 2019-07-10 Tom Tromey <tromey@adacore.com>
7838 * remote-sim.c (struct sim_inferior_data): Add initializers,
7839 constructor, and destructor.
7840 (sim_inferior_data_key): Change type. Move lower.
7841 (check_for_duplicate_sim_descriptor): Update.
7842 (get_sim_inferior_data): Use new. Update.
7843 (~sim_inferior_data_cleanup): Rename from
7844 sim_inferior_data_cleanup. Simplify.
7845 (gdbsim_close_inferior, simulator_command)
7846 (sim_command_completer, _initialize_remote_sim): Update.
7847 (next_pid, INITIAL_PID): Move earlier.
7849 2019-07-10 Tom Tromey <tromey@adacore.com>
7851 * python/python-internal.h (create_thread_object): Return
7853 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7854 * python/py-inferior.c (struct threadlist_entry): Add
7856 <thread_obj>: Now a gdbpy_ref.
7857 (thread_to_thread_object): Update.
7858 (add_thread_object): Use new.
7859 (delete_thread_object): Use delete.
7860 (infpy_threads): Update.
7861 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7864 2019-07-10 Tom Tromey <tromey@adacore.com>
7866 * valops.c (value_cast): Specialize error message for Ada.
7868 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7870 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7872 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7874 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7875 bpstat_should_step): Return bool, adjust comments.
7876 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7877 bpstat_should_step): Likewise.
7879 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7881 * features/Makefile: Use feature target descriptions for Arm.
7882 * features/arm/arm-core.c: Generate new file.
7883 * features/arm/arm-fpa.c: Likewise.
7884 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7885 * features/arm/arm-m-profile.c: Likewise.
7886 * features/arm/arm-vfpv2.c: Likewise.
7887 * features/arm/arm-vfpv3.c: Likewise.
7888 * features/arm/xscale-iwmmxt.c: Likewise.
7889 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7891 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7893 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7896 2019-07-10 Alan Hayward <alan.hayward@arm.com>
7898 * features/aarch64-pauth.c: Regenerate.
7900 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7902 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7904 (bpstat_what): Use false instead of 0.
7906 2019-07-09 Pedro Alves <palves@redhat.com>
7908 * break-catch-throw.c (is_exception_catchpoint): New.
7909 * breakpoint.c (print_one_breakpoint_location): New parameter
7910 'raw_loc'. Handle it. Use
7911 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7912 looking at the breakpoint's type.
7913 (print_one_breakpoint): If handling "maint info breakpoints", also
7914 print locations of exception catchpoints.
7915 * breakpoint.h (is_exception_catchpoint): Declare.
7917 2019-07-09 Pedro Alves <palves@redhat.com>
7919 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7921 (allocate_location_exception_catchpoint): New.
7922 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7923 (initialize_throw_catchpoint_ops): Install
7924 allocate_location_exception_catchpoint as allocate_location
7926 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7927 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7929 (breakpoint_address_is_meaningful): Delete.
7930 (bl_address_is_meaningful): New.
7931 (breakpoint_locations_match): Adjust comment.
7932 (bp_location_from_bp_type): New, factored out of...
7933 (bp_location::bp_location(breakpoint *)): ... this.
7934 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7936 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7937 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7938 breakpoint_address_is_meaningful.
7939 (bp_locations_compare): Adjust comment.
7940 (update_global_location_list): Use bl_address_is_meaningful
7941 instead of breakpoint_address_is_meaningful.
7942 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7944 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7945 * python/py-breakpoint.c (bppy_get_location): No longer check
7946 whether location is null.
7948 2019-07-09 Pedro Alves <palves@redhat.com>
7951 * breakpoint.c (print_one_breakpoint_location): Remove
7952 single-location assert.
7954 2019-07-09 Tom Tromey <tom@tromey.com>
7956 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7957 * configure: Rebuild.
7958 * configure.ac: Change common to gdbsupport.
7959 * gdbsupport: Rename from common.
7960 * acinclude.m4: Change common to gdbsupport.
7961 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7962 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7964 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7965 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7966 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7967 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7968 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7969 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7970 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7971 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7972 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7973 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7974 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7975 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7976 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7977 coff-pe-read.c, command.h, compile/compile-c-support.c,
7978 compile/compile-c.h, compile/compile-cplus-symbols.c,
7979 compile/compile-cplus-types.c, compile/compile-cplus.h,
7980 compile/compile-loc2c.c, compile/compile.c, completer.c,
7981 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7982 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7983 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7984 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7985 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7986 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7987 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7988 features/aarch64-core.c, features/aarch64-fpu.c,
7989 features/aarch64-pauth.c, features/aarch64-sve.c,
7990 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7991 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7992 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7993 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7994 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7995 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7996 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7997 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7998 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7999 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
8000 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
8001 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
8002 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
8003 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
8004 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
8005 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
8006 go32-nat.c, guile/guile.c, guile/scm-ports.c,
8007 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
8008 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
8009 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
8010 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
8011 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
8012 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
8013 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
8014 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
8015 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
8016 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
8017 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
8018 minsyms.c, mips-linux-tdep.c, namespace.h,
8019 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
8020 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
8021 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
8022 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
8023 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
8024 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
8025 nat/linux-waitpid.c, nat/mips-linux-watch.c,
8026 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
8027 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
8028 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
8029 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
8030 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
8031 procfs.c, producer.c, progspace.h, psymtab.h,
8032 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
8033 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
8034 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
8035 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
8036 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
8037 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
8038 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
8039 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
8040 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
8041 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
8042 target-memory.c, target.c, target.h, target/waitstatus.c,
8043 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
8044 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
8045 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
8046 unittests/array-view-selftests.c,
8047 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
8048 unittests/common-utils-selftests.c,
8049 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
8050 unittests/format_pieces-selftests.c,
8051 unittests/function-view-selftests.c,
8052 unittests/lookup_name_info-selftests.c,
8053 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
8054 unittests/mkdir-recursive-selftests.c,
8055 unittests/observable-selftests.c,
8056 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
8057 unittests/parse-connection-spec-selftests.c,
8058 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
8059 unittests/scoped_fd-selftests.c,
8060 unittests/scoped_mmap-selftests.c,
8061 unittests/scoped_restore-selftests.c,
8062 unittests/string_view-selftests.c, unittests/style-selftests.c,
8063 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
8064 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
8065 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
8066 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
8067 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
8068 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
8070 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8072 * linespec.c (decode_digits_list_mode): Set explicit_line to a
8074 (decode_digits_ordinary): Set explicit_line field in sal.
8075 * symtab.c (skip_prologue_sal): Don't skip prologue for a
8076 symtab_and_line that was set on an explicit line number in
8077 assembler code. Do always update the recorded symtab and line if
8078 we do skip the prologue.
8080 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8082 * breakpoint.c (set_breakpoint_location_function): Remove
8083 explicit_loc parameter.
8084 (momentary_breakpoint_from_master): Update call to
8085 set_breakpoint_location_function.
8086 (add_location_to_breakpoint): Likewise.
8088 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
8090 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
8091 required features based on default bfd type when no specific bfd
8094 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8096 * NEWS: Mention that GDB printf and eval commands can now print
8097 C-style and Ada-style convenience var strings without
8098 calling the inferior.
8099 * printcmd.c (printf_c_string): Locally print GDB internal var
8100 instead of transiting via the inferior.
8101 (printf_wide_c_string): Likewise.
8103 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8105 PR breakpoints/25011
8106 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
8108 2019-07-04 Tom Tromey <tom@tromey.com>
8111 * tui/tui-winsource.c (tui_clear_source_content): Update.
8112 (tui_source_window_base::set_is_exec_point_at): Fix comment.
8113 (tui_update_breakpoint_info): Update.
8114 (tui_set_exec_info_content): Update.
8115 * tui/tui-source.c (tui_set_source_content_nil): Update.
8116 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
8118 * tui/tui-data.h (enum tui_bp_flag): New.
8119 (tui_bp_flags): New enum flags type.
8120 (struct tui_source_element) <break_mode>: Change type. Rename
8122 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
8123 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
8125 * tui/tui-winsource.h: Fix comment.
8127 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8129 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
8130 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
8131 (store_fpregs_to_thread)
8132 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8133 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
8134 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
8135 (IWMMXT_REGS_SIZE): Add define.
8136 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
8137 (fetch_vfp_regs, store_vfp_regs)
8138 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
8139 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
8141 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8143 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
8145 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
8146 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
8147 (ARM_INT_REGISTER_SIZE): ...to this.
8148 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
8149 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
8150 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
8151 (arm_linux_collect_gregset, supply_nwfpe_register)
8152 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
8154 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
8155 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
8156 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
8157 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
8158 (arm_return_in_memory, arm_store_return_value)
8159 (arm_get_longjmp_target, arm_register_g_packet_guesses)
8160 (arm_record_ld_st_multiple): Likewise.
8161 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
8162 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
8164 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8166 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
8167 AARCH64_DISPLACED_MODIFIED_INSNS.
8168 * aarch64-tdep.c (struct aarch64_displaced_step_data)
8169 (aarch64_displaced_step_copy_insn): Likewise.
8170 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8171 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
8172 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8173 ARM_DISPLACED_MODIFIED_INSNS.
8174 * arm-tdep.c (arm_gdbarch_init): Likewise.
8175 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
8176 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
8177 (struct arm_displaced_step_closure): Use
8178 ARM_DISPLACED_MODIFIED_INSNS.
8180 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8182 * features/Makefile: Remove unused xml files.
8183 * features/aarch64.xml: Remove.
8184 * features/i386/amd64-avx-avx512-linux.xml: Remove.
8185 * features/i386/amd64-avx-avx512.xml: Remove.
8186 * features/i386/amd64-avx-linux.xml: Remove.
8187 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
8188 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
8189 * features/i386/amd64-avx-mpx-linux.xml: Remove.
8190 * features/i386/amd64-avx-mpx.xml: Remove.
8191 * features/i386/amd64-avx.xml: Remove.
8192 * features/i386/amd64-linux.xml: Remove.
8193 * features/i386/amd64-mpx-linux.xml: Remove.
8194 * features/i386/amd64-mpx.xml: Remove.
8195 * features/i386/amd64.xml: Remove.
8196 * features/i386/i386-avx-avx512-linux.xml: Remove.
8197 * features/i386/i386-avx-avx512.xml: Remove.
8198 * features/i386/i386-avx-linux.xml: Remove.
8199 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
8200 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
8201 * features/i386/i386-avx-mpx-linux.xml: Remove.
8202 * features/i386/i386-avx-mpx.xml: Remove.
8203 * features/i386/i386-avx.xml: Remove.
8204 * features/i386/i386-linux.xml: Remove.
8205 * features/i386/i386-mmx-linux.xml: Remove.
8206 * features/i386/i386-mmx.xml: Remove.
8207 * features/i386/i386-mpx-linux.xml: Remove.
8208 * features/i386/i386-mpx.xml: Remove.
8209 * features/i386/i386.xml: Remove.
8210 * features/i386/x32-avx-avx512-linux.xml: Remove.
8211 * features/i386/x32-avx-linux.xml: Remove.
8212 * features/i386/x32-linux.xml: Remove.
8214 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8216 * regformats/aarch64.dat: Remove.
8217 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
8218 * regformats/i386/amd64-avx-linux.dat: Remove.
8219 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
8220 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
8221 * regformats/i386/amd64-linux.dat: Remove.
8222 * regformats/i386/amd64-mpx-linux.dat: Remove.
8223 * regformats/i386/amd64.dat: Remove.
8224 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
8225 * regformats/i386/i386-avx-linux.dat: Remove.
8226 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
8227 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
8228 * regformats/i386/i386-linux.dat: Remove.
8229 * regformats/i386/i386-mmx-linux.dat: Remove.
8230 * regformats/i386/i386-mpx-linux.dat: Remove.
8231 * regformats/i386/i386.dat: Remove.
8232 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
8233 * regformats/i386/x32-avx-linux.dat: Remove.
8234 * regformats/i386/x32-linux.dat: Remove.
8236 2019-07-04 Alan Hayward <alan.hayward@arm.com>
8238 * aarch64-tdep.c: Remove xml self tests.
8239 * amd64-linux-tdep.c: Likewise.
8240 * amd64-tdep.c: Likewise.
8241 * i386-linux-tdep.c: Likewise.
8242 * i386-tdep.c: Likewise.
8244 2019-07-03 Pedro Alves <palves@redhat.com>
8247 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
8248 (pipe_cmd_option_defs): New.
8249 (make_pipe_cmd_options_def_group): New.
8250 (pipe_command): Use gdb::option::process_options.
8251 (pipe_command_completer): New function.
8252 (_initialize_cli_cmds): Install completer for "pipe" command.
8254 2019-07-03 Pedro Alves <palves@redhat.com>
8256 * cli/cli-option.c (union option_value) <string>: New field.
8257 (struct option_def_and_value): Add ctor, move ctor, dtor and
8258 use DISABLE_COPY_AND_ASSIGN.
8259 (option_def_and_value::clear_value): New.
8260 (parse_option, save_option_value_in_ctx, get_val_type_str)
8261 (add_setshow_cmds_for_options): Handle var_string.
8262 * cli-option.h (union option_def::var_address) <string>: New
8264 (struct string_option_def): New.
8265 * maint-test-options.c (struct test_options_opts): Add default
8266 ctor and use DISABLE_COPY_AND_ASSIGN.
8267 <string_opt>: New field.
8268 (test_options_opts::~test_options_opts): New.
8269 (test_options_opts::dump): Also dump "-string".
8270 (test_options_option_defs): Install "string.
8272 2019-07-03 Pedro Alves <palves@redhat.com>
8274 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
8275 option_value with a null enumeration.
8276 (complete_options): Save the option values in the context.
8277 (save_option_value_in_ctx): New, factored out from ...
8278 (process_options): ... here.
8279 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
8281 * maint-test-options.c (test_options_opts::dump): New, factored
8283 (maintenance_test_options_command_mode): ... here.
8284 (maintenance_test_options_command_completion_result): Delete.
8285 (maintenance_test_options_command_completion_text): Update
8287 (maintenance_show_test_options_completion_result): Change
8288 prototype. Just print
8289 maintenance_test_options_command_completion_text.
8290 (save_completion_result): New.
8291 (maintenance_test_options_completer_mode): Pass options context to
8292 complete_options, and then save a dump.
8293 (_initialize_maint_test_options): Use add_cmd to install "maint
8294 show test-options-completion-result".
8296 2019-07-03 Pedro Alves <palves@redhat.com>
8298 * NEWS (New commands): Mention "with" and "maint with".
8299 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
8300 (with_command, with_command_completer): New.
8301 (pipe_command): Adjust to new repeat_previous
8303 (_initialize_cli_cmds): Install the "with" command and its "w"
8305 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
8307 * cli/cli-setshow.c (parse_cli_var_uinteger)
8308 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
8309 argument strings for all var_types.
8310 (get_setshow_command_value_string): New, factored out from ...
8311 (do_show_command): ... this.
8312 * cli/cli-setshow.h: Include <string>.
8313 (get_setshow_command_value_string): Declare.
8314 * command.h (repeat_previous): Now returns const char *. Adjust
8316 * maint.c: Include "cli/cli-cmds.h".
8317 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
8318 (_initialize_maint_cmds): Register the "maintenance with" command.
8319 * top.c (repeat_previous): Move bits from pipe_command here:
8320 Return the saved command line, if any; error out if there's no
8321 command to relaunch.
8323 2019-07-03 Pedro Alves <palves@redhat.com>
8325 * NEWS (New commands): Mention "maint set/show test-settings"
8326 instead of "maint test-settings".
8327 * maint-test-settings.c (maintenance_test_settings_list): Delete.
8328 (maintenance_test_settings_set_list): Rename to ...
8329 (maintenance_set_test_settings_list): ... this.
8330 (maintenance_test_settings_show_list): Rename to ...
8331 (maintenance_show_test_settings_list): ... this.
8332 (maintenance_test_settings_cmd): Delete.
8333 (maintenance_test_settings_set_cmd): ...
8334 (maintenance_set_test_settings_cmd): ... this.
8335 (maintenance_test_settings_show_cmd): ...
8336 (maintenance_show_test_settings_cmd): ... this.
8337 (maintenance_test_settings_show_value_cmd):
8338 (maintenance_show_test_settings_value_cmd): ... this.
8339 (_initialize_maint_test_settings): No longer install the "maint
8340 test-settings" prefix command. Rename "maint test-settings set"
8341 to "maint set test-settings", and "maint test-settings show" to
8342 "maint show test-settings". Adjust all subcommands.
8344 2019-07-03 Pedro Alves <palves@redhat.com>
8346 * maint-test-settings.c: Fix file's intro comment. Replace all
8347 references to "test-options" with references to "test-settings",
8350 2019-07-03 Pedro Alves <palves@redhat.com>
8352 * maint-test-settings.c (maintenance_test_settings_xxx)
8353 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
8355 (maintenance_test_settings_enums): Use them.
8356 (maintenance_test_settings_enum): Default to
8357 maintenance_test_settings_xxx.
8358 (_initialize_maint_test_settings): Initialize
8359 MAINTENANCE_TEST_SETTINGS_FILENAME.
8361 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8363 * breakpoint.h (remove_breakpoints_inf): Change return type to
8364 void, move function documentation here.
8365 * breakpoint.c (remove_breakpoints_inf): Change return type to
8366 void, move function documentation to header.
8368 2019-07-02 Pedro Alves <palves@redhat.com>
8370 * NEWS (Completion improvements): Mention "info threads".
8371 * thread.c (struct info_threads_opts, info_threads_option_defs)
8372 (make_info_threads_options_def_group): New.
8373 (info_threads_command): Use gdb::option::process_options.
8374 (info_threads_command_completer): New.
8375 (_initialize_thread): Use gdb::option::build_help to build the
8376 help text for "info threads".
8378 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
8380 * defs.h (generic_load): Move from here...
8381 * symfile.h (generic_load): ... to here. Rename name parameter
8383 * symfile.c (generic_load): Add comment.
8385 2019-07-01 Tom Tromey <tromey@adacore.com>
8388 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
8389 declaration of without_params. Fix formatting.
8391 2019-07-01 Tom Tromey <tromey@adacore.com>
8393 * ada-exp.y (find_primitive_type): Update.
8394 * ada-lang.h (ada_lookup_symbol): Update.
8395 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
8397 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
8399 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8401 PR breakpoints/24541
8402 * gdbarch.c: Regenerate.
8403 * gdbarch.h: Regenerate.
8404 * gdbarch.sh: Add 'stap_adjust_register'.
8405 * i386-tdep.c: Include '<unordered_set>'.
8406 (i386_stap_adjust_register): New function.
8407 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
8408 * stap-probe.c (stap_parse_register_operand): Call
8409 'gdbarch_stap_adjust_register'.
8411 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
8414 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
8415 * python/python.c (do_start_initialization): Use 'xmalloc'
8416 instead of 'PyMem_Malloc'.
8418 2019-06-28 Tom Tromey <tromey@adacore.com>
8420 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
8423 2019-06-27 Tom Tromey <tromey@adacore.com>
8425 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
8427 (arm_find_mapping_symbol, arm_record_special_symbol)
8428 (_initialize_arm_tdep): Update.
8429 (arm_objfile_data_free): Remove.
8431 2019-06-27 Tom Tromey <tromey@adacore.com>
8433 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
8434 to cp_print_static_field.
8436 2019-06-26 Tom Tromey <tromey@adacore.com>
8438 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
8439 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
8442 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8444 * features/aarch64-core.c (create_feature_aarch64_core):
8446 * features/aarch64-core.xml: Add cpsr flags.
8448 2019-06-26 Alan Hayward <alan.hayward@arm.com>
8450 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
8451 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
8453 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8455 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
8457 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
8459 (arm_record_special_symbol): Don't insert new symbol in sorted
8460 position, push it at the end.
8462 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
8464 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
8465 (arm_mapping_symbol_s): Remove.
8466 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
8467 (arm_mapping_symbol_vec): New typedef.
8468 (struct arm_per_objfile): Add constructor.
8469 <section_maps>: Change type to
8470 std::unique_ptr<arm_mapping_symbol_vec[]>.
8471 (arm_compare_mapping_symbols): Remove.
8472 (arm_find_mapping_symbol): Adjust to section_maps type change.
8473 (arm_objfile_data_free): Call delete on arm_per_objfile.
8474 (arm_record_special_symbol): Adjust to section_maps type change.
8475 Allocate arm_per_objfile with new.
8477 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8479 * cli/cli-cmds.c (alias_command): Compare the alias prefix
8480 with the command prefix.
8482 2019-06-25 Tom Tromey <tom@tromey.com>
8484 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
8485 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
8487 2019-06-25 Tom Tromey <tom@tromey.com>
8489 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
8491 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
8494 2019-06-25 Tom Tromey <tom@tromey.com>
8496 * tui/tui-winsource.c
8497 (tui_source_window_base::set_is_exec_point_at): Add check against
8500 2019-06-25 Tom Tromey <tom@tromey.com>
8502 * tui/tui-source.c (tui_set_source_content): Don't check before
8504 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
8506 2019-06-25 Tom Tromey <tom@tromey.com>
8508 * tui/tui-winsource.h (tui_update_source_window_as_is)
8509 (tui_alloc_source_buffer, tui_line_is_displayed)
8510 (tui_addr_is_displayed): Change type of win_info.
8511 * tui/tui-winsource.c (tui_update_source_window_as_is)
8512 (tui_clear_source_content, tui_show_source_line)
8513 (tui_show_source_content, tui_source_window_base::refill)
8514 (tui_source_window_base::set_is_exec_point_at)
8515 (tui_source_window_base::set_is_exec_point_at)
8516 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8517 (tui_alloc_source_buffer, tui_line_is_displayed)
8518 (tui_addr_is_displayed): Change type of win_info. Update.
8519 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8520 (tui_source_window_base::do_make_visible_with_new_height):
8522 * tui/tui-source.c (tui_set_source_content)
8523 (tui_set_source_content_nil)
8524 (tui_source_window::do_scroll_vertical): Update.
8525 * tui/tui-layout.c (show_layout): Update.
8526 * tui/tui-disasm.c (tui_set_disassem_content)
8527 (tui_disasm_window::do_scroll_vertical): Update.
8528 * tui/tui-data.h (tui_win_content): Remove.
8529 (struct tui_gen_win_info) <content, content_size>: Remove.
8530 (struct tui_source_element): Add initializers and destructor.
8531 (union tui_which_element, struct tui_win_element): Remove.
8532 (struct tui_source_window_base) <content>: New field.
8533 (struct tui_data_window): Remove destructor.
8534 (tui_alloc_content, tui_free_win_content)
8535 (tui_free_all_source_wins_content): Don't declare.
8536 * tui/tui-data.c (tui_initialize_static_data): Update.
8537 (init_content_element, tui_alloc_content): Remove.
8538 (~tui_gen_win_info): Update.
8539 (~tui_data_window, tui_free_all_source_wins_content)
8540 (tui_free_win_content, free_content, free_content_elements):
8543 2019-06-25 Tom Tromey <tom@tromey.com>
8545 * tui/tui-winsource.h (tui_clear_source_content)
8546 (tui_erase_source_content, tui_show_source_content): Change type
8548 * tui/tui-winsource.c (tui_clear_source_content)
8549 (tui_erase_source_content, tui_show_source_content): Change type
8551 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8552 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8554 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8556 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8558 2019-06-25 Tom Tromey <tom@tromey.com>
8560 * tui/tui-winsource.c (tui_clear_source_content)
8561 (tui_source_window_base::set_is_exec_point_at): Update.
8562 * tui/tui-source.c (tui_set_source_content_nil): Update.
8563 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8565 * tui/tui-data.c (init_content_element): Update.
8567 2019-06-25 Tom Tromey <tom@tromey.com>
8569 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8570 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8571 * tui/tui-layout.c (init_and_make_win): Update.
8572 * tui/tui.h (enum tui_win_type): Update.
8573 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8574 tui_win_is_auxillary.
8575 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8576 tui_win_is_auxillary.
8578 2019-06-25 Tom Tromey <tom@tromey.com>
8580 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8581 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8582 (tui_delete_data_content_windows, tui_display_all_data)
8583 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8585 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8586 * tui/tui-regs.c (tui_last_regs_line_no)
8587 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8588 (tui_show_registers): Update.
8589 (tui_show_register_group): Return void. Update.
8590 (tui_display_registers_from, tui_display_reg_element_at_line)
8591 (tui_display_registers_from_line, tui_check_register_values):
8593 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8595 (struct tui_data_window) <regs_content>: Now a std::vector.
8596 <regs_content_count>: Remove.
8597 (tui_add_content_elements, tui_free_data_content): Don't declare.
8598 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8599 (init_content_element): Remove DATA_WIN case. Add assert.
8600 (tui_add_content_elements): Remove.
8601 (tui_data_window): Update.
8602 (tui_free_data_content): Remove.
8603 (free_content_elements): Remove DATA_WIN case.
8605 2019-06-25 Tom Tromey <tom@tromey.com>
8607 * tui/tui-data.c (tui_data_item_window): Update.
8608 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8609 * tui/tui-windata.c (tui_display_all_data)
8610 (tui_display_data_from_line): Update.
8611 (tui_check_data_values): Remove.
8612 * tui/tui-regs.c (tui_show_register_group)
8613 (tui_display_reg_element_at_line): Update.
8614 * tui/tui-hooks.c (tui_register_changed)
8615 (tui_refresh_frame_and_register_information): Call
8616 tui_check_register_values.
8617 * tui/tui-data.h (struct tui_data_window) <data_content,
8618 data_content_count, data_type>: Remove.
8619 (enum tui_data_type): Remove.
8621 * tui/tui-data.c (tui_data_window::clear_detail)
8622 (~tui_data_window): Update.
8624 2019-06-25 Tom Tromey <tom@tromey.com>
8626 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8628 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8629 Rename from tui_first_data_item_displayed. Update.
8630 (tui_data_window::refresh_all)
8631 (tui_data_window::do_scroll_vertical): Update.
8632 * tui/tui-data.h (struct tui_data_window)
8633 <first_data_item_displayed>: Declare new method.
8635 2019-06-25 Tom Tromey <tom@tromey.com>
8637 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8638 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8640 (tui_initialize_static_data): ...here.
8642 2019-06-25 Tom Tromey <tom@tromey.com>
8644 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8645 (tui_display_registers_from, tui_check_register_values): Update.
8646 (tui_display_register): Remove win_info parameter; update.
8647 (tui_get_register): Change type of parameters.
8648 * tui/tui-data.h (struct tui_data_element): Remove.
8649 (union tui_which_element) <data>: Remove.
8650 <data_window>: Change type.
8651 (struct tui_data_item_window): New.
8652 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8654 (~tui_data_item_window): New destructor.
8655 (free_content_elements): Remove DATA_ITEM_WIN case.
8657 2019-06-25 Tom Tromey <tom@tromey.com>
8659 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8662 2019-06-25 Tom Tromey <tom@tromey.com>
8664 * tui/tui-data.h (struct tui_command_element): Remove.
8665 (union tui_which_element) <command>: Remove.
8666 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8668 (free_content_elements): Remove CMD_WIN case.
8670 2019-06-25 Tom Tromey <tom@tromey.com>
8672 * tui/tui-layout.c (tui_set_layout): Update.
8673 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8674 * tui/tui-data.c (layout_def): Update.
8676 2019-06-25 Tom Tromey <tom@tromey.com>
8678 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8679 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8680 (tui_source_window_base::set_new_height): Update.
8681 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8683 (tui_set_locator_fullname, tui_set_locator_info)
8684 (tui_show_frame_info): Update.
8685 * tui/tui-source.c (tui_set_source_content)
8686 (tui_source_is_displayed): Update.
8687 * tui/tui-layout.c (show_source_disasm_command, show_data)
8688 (show_source_or_disasm_and_command): Update.
8689 * tui/tui-disasm.c (tui_set_disassem_content)
8690 (tui_get_begin_asm_address): Update.
8691 * tui/tui-data.h (struct tui_locator_element): Remove.
8692 (union tui_which_element) <locator>: Remove.
8693 (struct tui_locator_window): New.
8694 (tui_locator_win_info_ptr): Change return type.
8695 * tui/tui-data.c (_locator): Change type.
8696 (tui_locator_win_info_ptr): Change return type.
8697 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8698 (tui_alloc_content): Add assert.
8700 2019-06-25 Tom Tromey <tom@tromey.com>
8702 * tui/tui-winsource.c
8703 (tui_exec_info_window::maybe_allocate_content): New method.
8704 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8705 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8706 (make_source_or_disasm_window): Add cast.
8707 * tui/tui-data.h (union tui_which_element) <simple_string>:
8709 (struct tui_source_info): New.
8710 (struct tui_source_window_base) <execution_info>: Change type.
8711 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8712 case, and add assert.
8713 (tui_alloc_content): Add assert.
8715 2019-06-25 Tom Tromey <tom@tromey.com>
8717 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8718 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8719 * tui/tui-data.c (tui_alloc_win_info): Remove.
8721 2019-06-25 Tom Tromey <tom@tromey.com>
8723 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8724 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8727 2019-06-25 Tom Tromey <tom@tromey.com>
8729 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8730 make_visible_with_new_height method.
8731 (tui_win_info::make_visible_with_new_height): New method.
8732 (tui_source_window_base::do_make_visible_with_new_height)
8733 (tui_data_window::do_make_visible_with_new_height)
8734 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8735 (make_visible_with_new_height): Remove.
8736 (tui_resize_all, tui_adjust_win_heights): Use
8737 make_visible_with_new_height method.
8738 * tui/tui-data.h (struct tui_win_info)
8739 <do_make_visible_with_new_height, make_visible_with_new_height>:
8741 (struct tui_source_window_base, struct tui_data_window)
8742 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8745 2019-06-25 Tom Tromey <tom@tromey.com>
8747 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8749 (update_tab_width): Call update_tab_width method.
8750 * tui/tui-data.h (struct tui_win_info)
8751 (struct tui_source_window_base) <update_tab_width>: New methods.
8753 2019-06-25 Tom Tromey <tom@tromey.com>
8755 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8757 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8759 (tui_gen_win_info::make_visible): Update.
8760 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8762 * tui/tui-data.h (enum tui_box): New enum.
8763 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8765 2019-06-25 Tom Tromey <tom@tromey.com>
8767 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8768 init_and_make_win for EXEC_INFO_WIN.
8769 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8771 (struct tui_win_info) <~tui_win_info>: Inline.
8772 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8774 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8775 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8777 (tui_initialize_static_data): Update.
8778 (~tui_gen_win_info): Handle more cleanup here.
8779 (~tui_source_window_base): Delete "execution_info".
8780 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8782 2019-06-25 Tom Tromey <tom@tromey.com>
8784 * tui/tui-layout.c (make_command_window): Don't set
8786 (show_source_disasm_command): Call the reset method.
8787 (show_data): Don't set can_highlight. Call the reset method.
8788 (tui_gen_win_info::reset): Rename from init_gen_win_info
8789 (init_and_make_win): Simplify. Return tui_gen_win_info.
8790 (show_source_or_disasm_and_command): Call the reset method.
8791 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8792 (struct tui_cmd_window): Set can_highlight.
8794 2019-06-25 Tom Tromey <tom@tromey.com>
8796 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8798 (tui_make_visible, tui_make_invisible): Rewrite.
8799 (tui_win_info::make_visible): Remove.
8800 (tui_source_window_base::make_visible): Update.
8801 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8802 method. Moved from...
8803 (struct tui_win_info) <make_visible>: ...here.
8805 2019-06-25 Tom Tromey <tom@tromey.com>
8807 * tui/tui-winsource.c
8808 (tui_source_window_base::do_scroll_horizontal): Remove direction
8810 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8811 direction parameter.
8812 * tui/tui-win.c (tui_win_info::forward_scroll)
8813 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8814 (tui_win_info::right_scroll): Update.
8815 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8816 direction parameter.
8817 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8818 direction parameter.
8819 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8820 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8821 Remove direction parameter.
8822 (struct tui_source_window_base, struct tui_source_window)
8823 (struct tui_disasm_window, struct tui_data_window)
8824 (struct tui_cmd_window): Update.
8826 2019-06-25 Tom Tromey <tom@tromey.com>
8828 * tui/tui-winsource.h (tui_set_exec_info_content)
8829 (tui_show_exec_info_content, tui_erase_exec_info_content)
8830 (tui_clear_exec_info_content, tui_update_exec_info): Change
8831 argument to tui_source_window_base.
8832 * tui/tui-winsource.c (tui_set_exec_info_content)
8833 (tui_show_exec_info_content, tui_erase_exec_info_content)
8834 (tui_clear_exec_info_content, tui_update_exec_info): Change
8835 argument to tui_source_window_base.
8837 2019-06-25 Tom Tromey <tom@tromey.com>
8839 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8840 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8842 2019-06-25 Tom Tromey <tom@tromey.com>
8844 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8847 2019-06-25 Tom Tromey <tom@tromey.com>
8849 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8851 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8853 * tui/tui-source.c (tui_set_source_content): Update.
8854 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8856 2019-06-25 Tom Tromey <tom@tromey.com>
8858 * tui/tui-win.c (window_name_completer, tui_set_focus)
8859 (tui_all_windows_info): Use name method.
8860 * tui/tui-data.h (struct tui_gen_win_info)
8861 (struct tui_source_window, struct tui_disasm_window)
8862 (struct tui_data_window, struct tui_cmd_window) <name>: New
8864 (tui_win_name): Don't declare.
8865 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8866 (tui_win_name): Remove.
8868 2019-06-25 Tom Tromey <tom@tromey.com>
8870 * tui/tui-winsource.h (tui_update_source_window)
8871 (tui_update_source_window_as_is): Change parameter type.
8872 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8873 to be a tui_source_window_base.
8874 (tui_update_source_window_as_is): Likewise.
8875 * tui/tui-win.c (make_visible_with_new_height): Update.
8877 2019-06-25 Tom Tromey <tom@tromey.com>
8879 * tui/tui-winsource.c (tui_erase_source_content)
8880 (tui_show_source_content, tui_show_exec_info_content)
8881 (tui_erase_exec_info_content): Use refresh_window method.
8882 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8883 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8884 from tui_refresh_win.
8885 (tui_data_window::refresh_window): New method.
8886 (tui_win_info::refresh, tui_source_window_base::refresh)
8887 (tui_refresh_all): Use refresh_window method.
8888 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8890 * tui/tui-regs.c (tui_display_register): Call refresh_window
8892 * tui/tui-layout.c (show_source_disasm_command)
8893 (show_source_or_disasm_and_command): Call refresh_window method.
8894 * tui/tui-data.h (struct tui_gen_win_info)
8895 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8898 2019-06-25 Tom Tromey <tom@tromey.com>
8900 * tui/tui.c (tui_rl_other_window, tui_enable)
8901 (tui_is_window_visible, tui_get_command_dimension): Update.
8902 * tui/tui-winsource.c (tui_update_source_window_as_is)
8903 (tui_clear_source_content, tui_erase_source_content)
8904 (tui_show_source_line, tui_source_window_base::refill)
8905 (tui_source_window_base::do_scroll_horizontal)
8906 (tui_source_window_base::set_is_exec_point_at)
8907 (tui_update_breakpoint_info, tui_set_exec_info_content)
8908 (tui_alloc_source_buffer, tui_line_is_displayed)
8909 (tui_addr_is_displayed): Update.
8910 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8911 (tui_check_and_display_highlight_if_needed)
8912 (tui_win_info::make_visible, tui_win_info::refresh)
8913 (tui_refresh_all): Update.
8914 * tui/tui-windata.c (tui_first_data_item_displayed)
8915 (tui_delete_data_content_windows, tui_erase_data_content)
8916 (tui_display_all_data, tui_data_window::refresh_all)
8917 (tui_check_data_values): Update.
8918 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8919 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8920 (tui_win_info::backward_scroll, tui_refresh_all_win)
8921 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8922 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8923 (tui_source_window_base::set_new_height)
8924 (tui_data_window::set_new_height)
8925 (make_invisible_and_set_new_height)
8926 (make_visible_with_new_height, new_height_ok)
8927 (parse_scrolling_args): Update.
8928 * tui/tui-stack.c (tui_show_frame_info): Update.
8929 * tui/tui-source.c (tui_set_source_content)
8930 (tui_set_source_content_nil, tui_source_is_displayed)
8931 (tui_source_window::do_scroll_vertical): Update.
8932 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8933 (tui_display_registers_from, tui_display_reg_element_at_line)
8934 (tui_check_register_values, tui_reg_command): Update.
8935 * tui/tui-layout.c (tui_default_win_height)
8936 (show_source_disasm_command, show_data, init_and_make_win)
8937 (show_source_or_disasm_and_command): Update.
8938 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8939 (tui_redisplay_readline, tui_mld_flush)
8940 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8942 * tui/tui-disasm.c (tui_set_disassem_content)
8943 (tui_disasm_window::do_scroll_vertical): Update.
8944 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8946 (struct tui_win_info): Derive from tui_gen_win_info.
8947 <~tui_win_info>: Mark as override.
8948 <generic>: Remove member.
8949 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8950 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8951 (~tui_data_window, ~tui_win_info)
8952 (tui_free_all_source_wins_content): Update.
8953 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8955 2019-06-25 Tom Tromey <tom@tromey.com>
8957 * tui/tui-layout.c (init_and_make_win): Use new.
8958 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8959 destructor, initializers.
8960 (tui_alloc_generic_win_info): Don't declare.
8961 * tui/tui-data.c (_locator): Add argument to constructor.
8962 (source_win, disasm_win): New globals.
8963 (exec_info): Remove.
8964 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8966 (tui_alloc_generic_win_info): Remove.
8967 (init_content_element): Use new.
8968 (tui_win_info::tui_win_info): Update.
8969 (free_content_elements) <case DATA_WIN>: Use delete.
8971 2019-06-25 Tom Tromey <tom@tromey.com>
8973 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8974 * tui/tui-windata.c (tui_first_data_item_displayed)
8975 (tui_delete_data_content_windows): Update.
8976 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8977 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8978 (tui_display_registers_from, tui_check_register_values): Update.
8979 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8981 * tui/tui-data.c (init_content_element): Update. Allocate the new
8983 (tui_free_data_content): Update.
8984 (free_content_elements) <case DATA_WIN>: Free the window.
8986 2019-06-25 Tom Tromey <tom@tromey.com>
8988 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8990 * tui/tui-layout.c (make_command_window)
8991 (show_source_disasm_command, show_data, init_and_make_win)
8992 (show_source_or_disasm_and_command): Update.
8993 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8995 <can_highight, is_highlighted>: Now bool.
8996 (tui_set_win_highlight): Don't declare.
8997 * tui/tui-data.c (tui_set_win_highlight): Remove.
8999 2019-06-25 Tom Tromey <tom@tromey.com>
9001 * tui/tui-wingeneral.c (make_visible): Remove check of window
9004 2019-06-25 Tom Tromey <tom@tromey.com>
9006 * tui/tui-win.c (tui_win_info::max_height)
9007 (tui_cmd_window::max_height): New methods.
9008 (new_height_ok): Call max_height.
9009 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
9010 <max_height>: New method.
9012 2019-06-25 Tom Tromey <tom@tromey.com>
9014 * tui/tui-win.c (tui_source_window_base::set_new_height)
9015 (tui_data_window::set_new_height): New methods.
9016 (make_invisible_and_set_new_height): Call set_new_height method.
9017 * tui/tui-data.h (struct tui_win_info)
9018 (struct tui_source_window_base, struct tui_data_window)
9019 <set_new_height>: New method.
9021 2019-06-25 Tom Tromey <tom@tromey.com>
9023 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
9024 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
9025 tui_refresh_data_win.
9026 * tui/tui-win.c (tui_source_window_base::refresh_all): New
9028 (tui_refresh_all_win): Call the refresh_all method.
9029 (tui_set_focus): Likewise.
9030 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
9031 (struct tui_source_window_base, struct tui_data_window) <refresh>:
9034 2019-06-25 Tom Tromey <tom@tromey.com>
9036 * tui/tui-winsource.h (tui_refill_source_window)
9037 (tui_set_is_exec_point_at): Don't declare.
9038 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
9039 (tui_source_window_base::refill): Rename from
9040 tui_refill_source_window.
9041 (tui_source_window_base::do_scroll_horizontal): Update.
9042 (tui_source_window_base::set_is_exec_point_at): Rename from
9043 tui_set_is_exec_point_at.
9044 (tui_update_all_breakpoint_info): Update.
9045 * tui/tui-stack.c (tui_show_frame_info): Update.
9046 * tui/tui-layout.c (show_data): Add cast.
9047 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
9048 * tui/tui-data.h (struct tui_source_window_base) <refill,
9049 set_is_exec_point_at>: New methods.
9050 (tui_source_windows, tui_add_to_source_windows): Update types.
9051 (tui_add_to_source_windows): Remove redundant declaration.
9052 * tui/tui-data.c (source_windows): Store tui_source_window_base.
9053 (tui_source_windows): Change return type.
9054 (tui_clear_source_windows_detail): Update.
9055 (tui_add_to_source_windows): Change type of parameter.
9056 (tui_free_all_source_wins_content): Update.
9058 2019-06-25 Tom Tromey <tom@tromey.com>
9060 * tui/tui-wingeneral.c (tui_win_info::refresh)
9061 (tui_source_window_base::refresh): New methods.
9062 (tui_refresh_all): Call the refresh method.
9063 * tui/tui-data.h (struct tui_win_info)
9064 (struct tui_source_window_base) <refresh>: New method.
9066 2019-06-25 Tom Tromey <tom@tromey.com>
9068 * tui/tui.h (tui_is_window_visible): Return bool.
9069 * tui/tui.c (tui_is_window_visible): Return bool.
9070 * tui/tui-wingeneral.c (tui_make_window, make_visible)
9071 (tui_make_visible, tui_make_invisible)
9072 (tui_win_info::make_visible)
9073 (tui_source_window_base::make_visible, make_all_visible)
9074 (tui_make_all_visible, tui_make_all_invisible): Update.
9075 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
9076 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
9078 (struct tui_win_info, struct tui_source_window_base)
9079 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
9080 * tui/tui-data.c (tui_init_generic_part): Update.
9082 2019-06-25 Tom Tromey <tom@tromey.com>
9084 * tui/tui-wingeneral.c (tui_win_info::make_visible)
9085 (tui_source_window_base::make_visible): New methods.
9086 (make_all_visible): Make method call.
9087 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
9088 (struct tui_source_window_base, struct tui_cmd_window): Override
9090 (tui_win_is_source_type): Don't declare.
9091 * tui/tui-data.c (tui_win_is_source_type): Remove.
9093 2019-06-25 Tom Tromey <tom@tromey.com>
9095 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
9098 2019-06-25 Tom Tromey <tom@tromey.com>
9100 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
9101 Inline constructor. Add initializers for members.
9102 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
9103 constructors; now inline in class.
9105 2019-06-25 Tom Tromey <tom@tromey.com>
9107 * tui/tui-regs.c (tui_show_registers): Update.
9108 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
9110 * tui/tui-data.c (tui_data_window::clear_detail)
9111 (tui_data_window): Update.
9113 2019-06-25 Tom Tromey <tom@tromey.com>
9115 * tui/tui-windata.c (tui_display_all_data)
9116 (tui_display_data_from_line, tui_display_data_from)
9117 (tui_check_data_values, tui_data_window::do_scroll_vertical):
9119 * tui/tui-regs.c (tui_last_regs_line_no)
9120 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
9121 (tui_show_registers, tui_show_register_group)
9122 (tui_display_registers_from, tui_display_reg_element_at_line)
9123 (tui_display_registers_from_line, tui_check_register_values)
9124 (tui_reg_next, tui_reg_prev): Update.
9125 * tui/tui-layout.c (tui_set_layout, show_data): Update.
9126 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
9128 (struct tui_win_info) <detail>: Remove. Add new fields from
9130 (TUI_DATA_WIN): Add cast.
9131 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
9132 (~tui_data_window): Simplify.
9134 2019-06-25 Tom Tromey <tom@tromey.com>
9136 * tui/tui-layout.c (show_source_disasm_command)
9137 (show_source_or_disasm_and_command): Update.
9138 * tui/tui-io.c (update_cmdwin_start_line)
9139 (tui_redisplay_readline): Update.
9140 * tui/tui-data.h (struct tui_command_info): Remove.
9141 (struct tui_win_info) <detail>: Remove command_info member.
9142 (struct tui_data_window) <start_line>: New member, from
9144 (TUI_CMD_WIN): Add casts.
9146 2019-06-25 Tom Tromey <tom@tromey.com>
9148 * tui/tui-winsource.c (tui_update_source_window)
9149 (tui_refill_source_window)
9150 (tui_source_window_base::do_scroll_horizontal)
9151 (tui_update_breakpoint_info, tui_set_exec_info_content)
9152 (tui_show_exec_info_content, tui_erase_exec_info_content)
9153 (tui_clear_exec_info_content): Update.
9154 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
9156 * tui/tui-win.c (make_invisible_and_set_new_height)
9157 (make_visible_with_new_height): Update.
9158 * tui/tui-source.c (tui_set_source_content)
9159 (tui_show_symtab_source): Update.
9160 * tui/tui-layout.c (extract_display_start_addr)
9161 (show_source_disasm_command, show_data)
9162 (make_source_or_disasm_window)
9163 (show_source_or_disasm_and_command): Update.
9164 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
9165 (tui_disasm_window::do_scroll_vertical): Remove shadowing
9167 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
9168 to tui_source_window_base.
9169 (struct tui_win_info) <detail>: Remove source_info member.
9170 (struct tui_source_window_base) <has_locator>: Inline.
9171 Move contents from tui_source_info; rename has_locator member to
9173 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
9174 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
9176 (tui_source_window_base::clear_detail, ~tui_source_window_base):
9178 (tui_free_all_source_wins_content): Cast to
9179 tui_source_window_base.
9181 2019-06-25 Tom Tromey <tom@tromey.com>
9183 * tui/tui-win.c (make_invisible_and_set_new_height)
9184 (make_visible_with_new_height): Call has_locator method.
9185 * tui/tui-layout.c (show_source_disasm_command, show_data)
9186 (show_source_or_disasm_and_command): Update for bool change.
9187 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
9188 (tui_win_info) <has_locator>: New method.
9189 (struct tui_source_window_base) <has_locator>: New method.
9190 (tui_win_has_locator): Don't declare.
9191 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
9192 from tui_win_has_locator.
9193 (tui_source_window_base): Use false, not FALSE.
9195 2019-06-25 Tom Tromey <tom@tromey.com>
9197 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
9198 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
9199 clear_detail method directly.
9200 (tui_clear_win_detail): Remove.
9202 2019-06-25 Tom Tromey <tom@tromey.com>
9204 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
9205 "this", not TUI_DISASM_WIN.
9207 2019-06-25 Tom Tromey <tom@tromey.com>
9209 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
9211 * tui/tui-winsource.c
9212 (tui_source_window_base::do_scroll_horizontal): Rename from
9213 tui_horizontal_source_scroll.
9214 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
9215 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
9216 from tui_vertical_data_scroll.
9217 * tui/tui-win.h (tui_scroll): Don't declare.
9218 * tui/tui-win.c (tui_win_info::forward_scroll)
9219 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
9220 (tui_win_info::right_scroll): Rename and update.
9221 (tui_scroll_forward_command, tui_scroll_backward_command)
9222 (tui_scroll_left_command, tui_scroll_right_command): Update.
9223 (tui_scroll): Remove.
9224 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
9225 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
9226 from tui_vertical_source_scroll.
9227 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
9228 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
9229 from tui_vertical_disassem_scroll.
9230 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
9231 do_scroll_horizontal>: New methods.
9232 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
9234 (struct tui_source_window_base): Add do_scroll_horizontal.
9235 (struct tui_source_window, struct tui_disasm_window): Add
9237 (struct tui_data_window, struct tui_cmd_window): Add
9238 do_scroll_horizontal and do_scroll_vertical.
9239 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
9241 2019-06-25 Tom Tromey <tom@tromey.com>
9243 * tui/tui-data.h (struct tui_source_window_base): New struct.
9244 (struct tui_source_window): Derive from tui_source_window_base.
9245 (struct tui_disasm_window): New struct.
9246 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
9247 from tui_source_window::clear_detail.
9248 (tui_source_window_base): Rename from tui_source_window.
9249 (~tui_source_window_base): Rename from ~tui_source_window.
9250 (tui_alloc_win_info): Create a tui_disasm_window.
9252 2019-06-25 Tom Tromey <tom@tromey.com>
9254 * tui/tui-data.h (struct tui_source_window)
9255 (struct tui_data_window): Declare destructors.
9256 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
9258 (tui_win_info): Simplify.
9260 2019-06-25 Tom Tromey <tom@tromey.com>
9262 * tui/tui-winsource.c (tui_display_main)
9263 (tui_update_source_windows_with_addr)
9264 (tui_update_all_breakpoint_info): Update.
9265 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
9266 (new_height_ok, parse_scrolling_args): Update.
9267 * tui/tui-stack.c (tui_show_frame_info): Update.
9268 * tui/tui-data.h (struct tui_list): Remove.
9269 (tui_source_windows): Return a reference to a std::vector.
9270 * tui/tui-data.c (source_windows): Now a std::vector.
9271 (tui_source_windows): Change return type.
9272 (tui_clear_source_windows): Rewrite.
9273 (tui_clear_source_windows_detail, tui_add_to_source_windows)
9274 (tui_free_all_source_wins_content): Rewrite.
9276 2019-06-25 Tom Tromey <tom@tromey.com>
9278 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
9279 (struct tui_data_window, struct tui_cmd_window): Declare
9280 clear_detail method.
9281 * tui/tui-data.c (tui_source_window::clear_detail)
9282 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
9284 (tui_clear_win_detail): Simplify.
9286 2019-06-25 Tom Tromey <tom@tromey.com>
9288 * tui/tui-layout.c (make_source_window, make_disasm_window)
9289 (make_source_or_disasm_window): Remove win_info_ptr parameter.
9290 Return the new window.
9291 (show_source_disasm_command, show_data)
9292 (show_source_or_disasm_and_command): Update.
9294 2019-06-25 Tom Tromey <tom@tromey.com>
9296 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
9297 parameter. Return the new window.
9298 (show_source_disasm_command): Update and remove NULL check.
9299 (show_source_or_disasm_and_command): Update.
9301 2019-06-25 Tom Tromey <tom@tromey.com>
9303 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
9305 2019-06-25 Tom Tromey <tom@tromey.com>
9307 * tui/tui-data.h (struct tui_win_info): Make constructor
9308 protected. Make destructor virtual. Add initializers.
9309 (tui_source_window, tui_data_window, tui_cmd_window): New
9311 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
9312 constructor. Add "type" parameter.
9313 (tui_source_window, tui_data_window, tui_cmd_window): New
9315 (tui_alloc_win_info): Instantiate the appropriate subclass.
9317 2019-06-25 Tom Tromey <tom@tromey.com>
9319 * tui/tui-win.c (tui_resize_all): Use delete.
9320 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
9322 (tui_free_window): Don't declare.
9323 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
9326 2019-06-25 Tom Tromey <tom@tromey.com>
9328 * tui/tui-data.h (struct tui_win_info): Add constructor.
9329 * tui/tui-data.c (tui_alloc_win_info): Use new.
9330 (tui_free_window): Use delete.
9332 2019-06-22 Tom Tromey <tom@tromey.com>
9334 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
9336 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
9338 2019-06-22 Tom Tromey <tom@tromey.com>
9340 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
9342 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
9344 2019-06-22 Tom de Vries <tdevries@suse.de>
9346 * dwarf2read.c (create_addrmap_from_aranges)
9347 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
9350 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
9352 * dwarf2read.h (dwarf2_section_info_def): Remove.
9353 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
9354 * dwarf2read.c (struct dwo_sections) <types>: Change type to
9355 std::vector<dwarf2_section_info>.
9356 (struct dwo_file) <~dwo_file>: Remove.
9357 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
9359 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
9360 (dwarf2_read_debug_names): Likewise.
9361 (create_debug_types_hash_table): Change parameter type to
9362 array_view, adjust code accordingly.
9363 (dwarf2_locate_dwo_sections): Adjust to std::vector.
9364 (partial_die_info::fixup): Likewise.
9365 (determine_prefix): Likewise.
9366 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
9368 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9370 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
9372 <~dwo_file>: Remove call to gdb_bfd_unref.
9373 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
9374 gdb_bfd_ref_ptr::get.
9376 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9378 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
9380 * dwarf2read.c (struct dwo_file): Initialize fields.
9382 (free_dwo_file): Remove, move content to ~dwo_file.
9383 (struct dwo_file_deleter): Remove.
9384 (dwo_file_up>: Remove custom deleter.
9385 (free_dwo_files): Remove.
9386 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
9388 (process_skeletonless_type_units): Call unique_ptr::get.
9389 (allocate_dwo_file_hash_table): Add deleter to created hash
9390 table. Change return type to htab_up.
9391 (lookup_dwo_file_slot): Don't memset dwo_file, call
9393 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
9394 (create_dwo_unit_in_dwp_v2): Likewise.
9395 (open_and_init_dwo_file): Likewise.
9396 (free_dwo_file_from_slot): Remove.
9398 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
9400 * dwarf2read.h (struct dwarf2_section_info) <readin,
9401 is_virtual>: Change type to bool.
9402 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
9405 2019-06-19 Tom Tromey <tom@tromey.com>
9407 * tui/tui-data.h (tui_init_content_element): Don't declare.
9409 2019-06-19 Tom Tromey <tom@tromey.com>
9411 * tui/tui-data.h (tui_init_win_info): Don't declare.
9413 2019-06-19 Tom de Vries <tdevries@suse.de>
9415 * dwarf2read.h (abstract_to_concrete): Change type to
9416 std::unordered_map<sect_offset, std::vector<sect_offset>,
9417 gdb::hash_enum<sect_offset>>.
9419 2019-06-19 Tom Tromey <tromey@adacore.com>
9421 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
9422 EVAL_AVOID_SIDE_EFFECTS specially.
9424 2019-06-19 Tom Tromey <tromey@adacore.com>
9426 * source-cache.c (highlighter): New global.
9427 (source_cache::get_source_lines): Create a highlighter on demand.
9429 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
9431 * defs.h (deprecated_interactive_hook): Delete declaration.
9432 * interps.c (clear_interpreter_hooks): Remove use of
9433 deprecated_interactive_hook.
9434 * top.c (deprecated_interactive_hook): Delete definition.
9435 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
9437 2019-06-18 Tom de Vries <tdevries@suse.de>
9440 * dwarf2read.h (abstract_to_concrete): Change type from
9441 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
9442 std::unordered_map<sect_offset, std::vector<sect_offset>>.
9443 * dwarf2read.c (read_variable): Update.
9444 (dwarf2_fetch_die_loc_sect_off): Update.
9446 2019-06-17 Tom de Vries <tdevries@suse.de>
9449 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
9450 accessing parent[parent_len - 1].
9452 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
9455 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
9456 call dtrace_process_dof with NULL dof.
9458 2019-06-16 Tom de Vries <tdevries@suse.de>
9461 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
9463 2019-06-16 Tom Tromey <tom@tromey.com>
9465 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
9466 (make_all_visible): Use address of member.
9468 2019-06-16 Tom Tromey <tom@tromey.com>
9470 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
9471 (tui_free_window, free_content, free_content_elements): Remove
9473 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
9475 * tui/tui-regs.c (tui_show_register_group)
9476 (tui_display_registers_from, tui_display_reg_element_at_line):
9477 Remove unnecessary cast.
9479 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
9481 * linux-nat.c (normal_mask): Delete.
9482 (_initialize_linux_nat): Don't initialise normal_mask.
9484 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
9487 * dwarf-index-write.h (write_psymtabs_to_index): Add
9488 dwz_basename parameter.
9489 * dwarf-index-write.c (write_gdbindex): Move file writing to
9490 write_gdbindex_1. Change return type void.
9491 (assert_file_size): Move up, remove filename parameter.
9492 (write_gdbindex_1): New function.
9493 (write_debug_names): Change return type to void, call
9495 (struct index_wip_file): New struct.
9496 (write_psymtabs_to_index): Add dwz_basename parameter. Move
9497 file logic to index_wip_file. Write index for dwz file if
9499 (save_gdb_index_command): Pass basename of dwz file, if present.
9500 * dwarf-index-cache.c (index_cache::store): Obtain and pass
9501 build-id of dwz file, if present.
9502 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
9503 (dwarf2_get_dwz_file): Likewise.
9504 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
9505 (dwarf2_get_dwz_file): Likewise.
9507 2019-06-16 Tom Tromey <tom@tromey.com>
9509 * coffread.c (process_coff_symbol): Use xstrdup.
9510 * value.c (create_internalvar): Use xstrdup.
9512 2019-06-16 Tom Tromey <tom@tromey.com>
9514 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9515 * breakpoint.c (stopin_command, stopat_command)
9516 (until_break_command, decode_location_default): Remove unnecessary
9518 * utils.c (subset_compare): Remove unnecessary cast.
9519 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9521 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9523 * infcmd.c (path_command): Remove unnecessary cast.
9524 * coffread.c (decode_type): Remove unnecessary cast.
9525 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9526 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9527 * tui/tui-stack.c (tui_show_locator_content)
9528 (tui_show_frame_info): Remove unnecessary cast.
9529 * tui/tui-win.c (tui_scroll_forward_command)
9530 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9531 (parse_scrolling_args): Remove unnecessary cast.
9532 * tui/tui-data.c (init_win_info, tui_del_window)
9533 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9534 (free_content_elements): Remove unnecessary cast.
9535 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9537 * tui/tui-source.c (tui_set_source_content)
9538 (tui_vertical_source_scroll): Remove unnecessary cast.
9539 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9541 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9542 * tui/tui-regs.c (tui_display_registers_from)
9543 (tui_display_register): Remove unnecessary cast.
9544 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9545 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9546 (make_visible): Remove unnecessary cast.
9547 * tui/tui-winsource.c (tui_erase_source_content)
9548 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9550 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9551 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9552 * stabsread.c (read_type, read_array_type, read_range_type):
9553 Remove unnecessary cast.
9554 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9555 (parse_symbol, parse_type, upgrade_type, parse_external)
9556 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9558 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9560 2019-06-16 Tom Tromey <tom@tromey.com>
9562 * tui/tui-data.c (tui_alloc_generic_win_info)
9563 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9566 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9567 Andrew Burgess <andrew.burgess@embecosm.com>
9569 * f-typeprint.c (f_print_type): Don't return early for not
9570 associated or not allocated types.
9571 (f_type_print_varspec_suffix): Add print_rank parameter and print
9572 ranks of array types in case they dangling.
9573 (f_type_print_base): Add print_rank parameter.
9575 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9577 * NEWS: Mention new MI commands.
9578 * break-catch-throw.c (enum exception_event_kind): Move to
9580 (print_mention_exception_catchpoint): Output text as a single
9582 (catch_exception_command_1): Rename to...
9583 (catch_exception_event): ...this, make non-static, update header
9584 command, and change some parameter types.
9585 (catch_catch_command): Update for changes to
9586 catch_exception_command_1.
9587 (catch_throw_command): Likewise.
9588 (catch_rethrow_command): Likewise.
9589 * breakpoint.c (enum exception_event_kind): Delete.
9590 * breakpoint.h (enum exception_event_kind): Moved here from
9591 break-catch-throw.c.
9592 (catch_exception_event): Declare.
9593 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9594 (mi_cmd_catch_throw): New function.
9595 (mi_cmd_catch_rethrow): New function.
9596 (mi_cmd_catch_catch): New function.
9597 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9598 'catch-catch' entries.
9599 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9600 (mi_cmd_catch_rethrow): Declare.
9601 (mi_cmd_catch_catch): Declare.
9603 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9605 * annotate.c (annotate_source_line): Change return type to void,
9606 update implementation to match.
9607 * annotate.h (annotate_source_line): Change return type to void,
9608 update header comment.
9609 * stack.c (print_frame_info): Don't change what frame information
9610 is printed based on whether annotations are on or not.
9612 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9614 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9615 (annotate_source): Make static.
9616 (annotate_source_line): Moved from source.c and renamed from
9617 identify_source_line. Update the return type.
9618 * annotate.h (annotate_source): Delete declaration.
9619 (annotate_source_line): Declaration moved from source.h, and
9620 renamed from identify_source_line. Return type updated.
9621 * source.c (identify_source_line): Moved to annotate.c and renamed
9622 to annotate_source_line.
9623 (info_line_command): Remove check of annotation_level.
9624 * source.h (identify_source_line): Move declaration to annotate.h
9625 and rename to annotate_source_line.
9626 * stack.c: Add 'annotate.h' include.
9627 (print_frame_info): Remove check of annotation_level before
9628 calling annotate_source_line.
9630 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9632 * source-cache.c (source_cache::get_plain_source_lines): Use
9633 open_source_file_with_line_charpos instead of just
9634 open_source_file, remove call to find_source_lines.
9635 (source_cache::get_source_lines): Likewise.
9636 * source.c (find_source_lines): Make static.
9637 (get_filename_and_charpos): Renamed into...
9638 (open_source_file_with_line_charpos): ..this along with changes to
9639 return a scoped_fd, and some other minor clean ups.
9640 (identify_source_line): Use open_source_file_with_line_charpos.
9641 (search_command_helper): Use open_source_file_with_line_charpos
9642 instead of just open_source_file, remove call to
9644 * source.h (open_source_file_with_line_charpos): Declare new
9646 (find_source_lines): Delete declaration.
9648 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9650 * source.c (get_filename_and_charpos): Remove fullname
9652 (identify_source_line): Update call to get_filename_and_charpos.
9654 2019-06-14 Tom Tromey <tromey@adacore.com>
9657 * ui-style.h (skip_ansi_escape): Update comment.
9658 * ui-file.h (class no_terminal_escape_file): New class.
9659 * ui-file.c (no_terminal_escape_file::write)
9660 (no_terminal_escape_file::puts): New methods.
9661 * cli/cli-logging.c (handle_redirections): Use
9662 no_terminal_escape_file.
9664 2019-06-14 Tom Tromey <tromey@adacore.com>
9666 * NEWS: Move convenience variable news above Python news.
9668 2019-06-14 Tom Tromey <tom@tromey.com>
9670 * gnulib: Move directory to top-level.
9671 * configure.ac: Don't configure gnulib.
9672 * configure: Rebuild.
9673 * common/common-defs.h: Use new path to gnulib.
9674 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9676 (INCGNU): Look in new gnulib location.
9677 (HFILES_NO_SRCDIR): Remove gnulib files.
9678 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9679 (generated_files): Remove GNULIB_H.
9680 ($(LIBGNU), all-lib): Remove targets.
9681 (distclean): Don't mention GNULIB_BUILDDIR.
9682 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9684 2019-06-14 Tom Tromey <tromey@adacore.com>
9686 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9687 Warn if symbol file does not provide any symbols.
9689 2019-06-14 Tom Tromey <tromey@adacore.com>
9691 * source.c (find_and_open_source): Respect basenames_may_differ.
9693 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9695 * annotate.c (annotate_breakpoints_invalid): Make use of
9696 scoped_restore_terminal_state.
9697 (annotate_frames_invalid): Likewise.
9699 2019-06-14 Tom Tromey <tromey@adacore.com>
9701 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9702 allow assignment to an internalvar.
9704 2019-06-14 Tom Tromey <tromey@adacore.com>
9706 * ada-lex.l: Allow "_" in attribute names.
9708 2019-06-14 Tom Tromey <tromey@adacore.com>
9711 * regcache.c (registers_changed): Don't call alloca.
9712 * top.c (execute_command): Don't call alloca.
9714 2019-06-13 Pedro Alves <palves@redhat.com>
9716 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9717 'expression'. When parsing an expression, error out if there's
9718 junk after "unlimited".
9719 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9720 (do_set_command): Adjust calls to is_unlimited_literal.
9722 2019-06-13 Pedro Alves <palves@redhat.com>
9724 * compile/compile.c (make_compile_options_def_group): Add braces
9725 around array_view initializer.
9726 * thread.c (make_thread_apply_all_options_def_group)
9727 (make_thread_apply_all_options_def_group): Likewise.
9729 2019-06-13 Pedro Alves <palves@redhat.com>
9731 * NEWS (New commands): Mention "maint test-options
9732 require-delimiter", "maint test-options unknown-is-error", "maint
9733 test-options unknown-is-operand" and "maint show
9734 test-options-completion-result".
9735 (New command options, command completion): New section.
9736 (Completion improvements): New section.
9737 Mention that you can abbreviate "unlimited".
9739 2019-06-13 Pedro Alves <palves@redhat.com>
9741 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9742 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9743 * unittests/cli-utils-selftests.c (test_parse_flags)
9744 (test_parse_flags_qcs): Delete.
9745 (test_cli_utils): Don't call deleted functions.
9747 2019-06-13 Pedro Alves <palves@redhat.com>
9749 * thread.c: Include "cli/cli-option.h".
9750 (tp_array_compar_ascending): Global.
9751 (tp_array_compar): Delete function.
9752 (tp_array_compar_ascending, tp_array_compar_descending): New
9754 (ascending_option_def, qcs_flag_option_def)
9755 (thr_qcs_flags_option_defs)
9756 (make_thread_apply_all_options_def_group)
9757 (make_thread_apply_options_def_group): New.
9758 (thread_apply_all_command): Use gdb::option::process_options.
9759 (thread_apply_command_completer)
9760 (thread_apply_all_command_completer): New.
9761 (thread_apply_command): Use gdb::option::process_options.
9762 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9763 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9764 to generate help text of "thread apply". Adjust "taas"'s help.
9765 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9766 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9768 2019-06-13 Pedro Alves <palves@redhat.com>
9770 * thread.c (thread_apply_command): Check for invalid TID with
9771 isdigit instead of !isalpha.
9773 2019-06-13 Pedro Alves <palves@redhat.com>
9775 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9776 (validate_flags_qcs): New.
9777 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9778 (validate_flags_qcs): Declare.
9779 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9780 (make_frame_apply_options_def_group): New.
9781 (frame_apply_command_count): Process options with
9782 gdb::option::process_options.
9783 (frame_apply_completer): New.
9784 (frame_apply_level_completer, frame_apply_all_completer)
9785 (frame_apply_completer): New.
9786 (_initialize_stack): Update help of "frame apply", "frame apply
9787 level", "frame apply all" and "faas" to mention supported options
9788 and install command completers.
9789 * stack.h (frame_apply_all_completer): Declare.
9790 * thread.c: Include "stack.h".
9791 (tfaas_command): Add "--".
9792 (_initialize_thread): Update help "tfaas" to mention supported
9793 options and install command completer.
9795 2019-06-13 Pedro Alves <palves@redhat.com>
9797 * completer.c (complete_nested_command_line): New.
9798 (gdb_completion_word_break_characters_throw): Add assertion.
9799 * completer.h (complete_nested_command_line): Declare.
9801 2019-06-13 Pedro Alves <palves@redhat.com>
9803 * stack.c (parse_backtrace_qualifiers): New.
9804 (backtrace_command): Use it.
9805 (backtrace_command_completer): Complete on qualifiers.
9807 2019-06-13 Pedro Alves <palves@redhat.com>
9809 * frame.c: Include "cli/cli-option.h.
9810 (user_set_backtrace_options): New.
9811 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9813 (get_prev_frame): Adjust.
9814 (boolean_option_def, uinteger_option_def)
9815 (set_backtrace_option_defs): New.
9816 (_initialize_frame): Adjust and use
9817 gdb::option::add_setshow_cmds_for_options to install "set
9818 backtrace past-main" and "set backtrace past-entry".
9819 * frame.h: Include "cli/cli-option.h".
9820 (struct frame_print_options): Forward declare.
9821 (print_frame_arguments_all, print_frame_arguments_scalars)
9822 (print_frame_arguments_none): Declare.
9823 (print_entry_values): Delete declaration.
9824 (struct frame_print_options, user_frame_print_options): New.
9825 (struct set_backtrace_options): New.
9826 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9827 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9828 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9829 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9830 (list_args_or_locals): Add frame_print_options parameter.
9831 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9832 * python/py-framefilter.c (enumerate_args): Pass down
9833 USER_FRAME_PRINT_OPTIONS.
9834 * stack.c: Include "cli/cli-option.h".
9835 (print_frame_arguments_all, print_frame_arguments_scalars)
9836 (print_frame_arguments_none): Declare.
9837 (print_raw_frame_arguments, print_entry_values): Delete.
9838 (user_frame_print_options): New.
9839 (boolean_option_def, enum_option_def, frame_print_option_defs):
9841 (struct backtrace_cmd_options): New.
9842 (bt_flag_option_def): New.
9843 (backtrace_command_option_defs): New.
9844 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9845 (print_frame_arg, read_frame_arg, print_frame_args)
9846 (print_frame_info, print_frame): Add frame_print_options parameter
9848 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9849 (backtrace_command_1): Add frame_print_options and
9850 backtrace_cmd_options parameters and use them.
9851 (make_backtrace_options_def_group): New.
9852 (backtrace_command): Process command options with
9853 gdb::option::process_options.
9854 (backtrace_command_completer): New.
9855 (_initialize_stack): Extend "backtrace"'s help to mention
9856 supported options. Install completer for "backtrace".
9857 Install some settings commands with add_setshow_cmds_for_options.
9859 2019-06-13 Pedro Alves <palves@redhat.com>
9861 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9862 and that "set/show print raw frame-arguments" are now deprecated.
9864 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9866 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9867 * stack.c (_initialize_stack): Install "set/show print
9868 raw-frame-arguments", and deprecate "set/show print raw
9870 * valprint.c (_initialize_valprint): Deprecate "set/show print
9873 2019-06-13 Pedro Alves <palves@redhat.com>
9875 * compile/compile.c (struct compile_options): New.
9876 (compile_flag_option_def, compile_command_option_defs)
9877 (make_compile_options_def_group): New.
9878 (compile_file_command): Handle options with
9879 gdb::option::process_options.
9880 (compile_file_command_completer): New function.
9881 (compile_code_command): Handle options with
9882 gdb::option::process_options.
9883 (compile_code_command_completer): New function.
9884 (_initialize_compiler): Install completers for "compile code" and
9885 "compile file". Mention available options in "compile code" and
9886 "compile code"'s help.
9887 * completer.c (advance_to_completion_word): New, factored out from
9889 (advance_to_expression_complete_word_point): ... this.
9890 (advance_to_filename_complete_word_point): New.
9891 * completer.h (advance_to_filename_complete_word_point): New
9894 2019-06-13 Pedro Alves <palves@redhat.com>
9896 * compile/compile.c: Include "cli/cli-option.h".
9897 (compile_print_value): Scope data pointer is now a
9898 value_print_options pointer; adjust.
9899 (compile_print_command): Process options. Scope data pointer is
9900 now a value_print_options pointer; adjust.
9901 (_initialize_compile): Update "compile print"'s help to include
9902 supported options. Install a completer for "compile print".
9903 * cp-valprint.c (show_vtblprint, show_objectprint)
9904 (show_static_field_print): Delete.
9905 (_initialize_cp_valprint): Don't install "set print
9906 static-members", "set print vtbl", "set print object" here.
9907 * printcmd.c: Include "cli/cli-option.h" and
9908 "common/gdb_optional.h".
9909 (print_command_parse_format): Rework to fill in a
9910 value_print_options instead of a format_data.
9911 (print_value): Change parameter type from format_data pointer to
9912 value_print_options reference. Adjust.
9913 (print_command_1): Process options. Adjust to pass down a
9914 value_print_options.
9915 (print_command_completer): New.
9916 (_initialize_printcmd): Install print_command_completer as
9917 handle_brkchars completer for the "print" command. Update
9918 "print"'s help to include supported options.
9919 * valprint.c: Include "cli/cli-option.h".
9920 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9921 here from cp-valprint.c.
9922 (boolean_option_def, uinteger_option_def)
9923 (value_print_option_defs, make_value_print_options_def_group):
9924 New. Use gdb::option::add_setshow_cmds_for_options to install
9925 "set print elements", "set print null-stop", "set print repeats",
9926 "set print pretty", "set print union", "set print array", "set
9927 print address", "set print symbol", "set print array-indexes".
9928 * valprint.h: Include <string> and "cli/cli-option.h".
9929 (make_value_print_options_def_group): Declare.
9930 (print_value): Change parameter type from format_data pointer to
9931 value_print_options reference.
9932 (print_command_completer): Declare.
9934 2019-06-13 Pedro Alves <palves@redhat.com>
9936 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9937 (COMMON_SFILES): Add maint-test-settings.c.
9938 * cli/cli-decode.c (boolean_enums): New global, factored out from
9940 (add_setshow_boolean_cmd): ... here.
9941 * cli/cli-decode.h (boolean_enums): Declare.
9942 * cli/cli-option.c: New file.
9943 * cli/cli-option.h: New file.
9944 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9945 factored out from ...
9946 (parse_cli_boolean_value(const char *)): ... this.
9947 (is_unlimited_literal): Change parameter type to pointer to
9948 pointer. Adjust and advance ARG pointer.
9949 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9950 (parse_cli_var_enum): New, factored out from ...
9951 (do_set_command): ... this. Adjust.
9952 * cli/cli-setshow.h (parse_cli_boolean_value)
9953 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9954 (parse_cli_var_enum): Declare.
9955 * cli/cli-utils.c: Include "cli/cli-option.h".
9956 (get_ulongest): New.
9957 * cli/cli-utils.h (get_ulongest): Declare.
9958 (check_for_argument): New overloads.
9959 * maint-test-options.c: New file.
9961 2019-06-13 Pedro Alves <palves@redhat.com>
9963 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9964 parse a range if "-" is at the end of the string.
9966 2019-06-13 Pedro Alves <palves@redhat.com>
9968 * cli/cli-setshow.c (parse_auto_binary_operation)
9969 (parse_cli_boolean_value): Don't allow "o".
9971 2019-06-13 Pedro Alves <palves@redhat.com>
9973 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9974 * NEWS: Mention maint test-settings KIND.
9975 * maint-test-settings.c: New file.
9977 2019-06-13 Pedro Alves <palves@redhat.com>
9979 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9981 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9984 2019-06-13 Pedro Alves <palves@redhat.com>
9986 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9989 2019-06-13 Pedro Alves <palves@redhat.com>
9991 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9993 2019-06-13 Pedro Alves <palves@redhat.com>
9995 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9996 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9998 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9999 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
10001 (check_for_argument): Skip spaces after argument.
10003 2019-06-13 Pedro Alves <palves@redhat.com>
10005 * thread.c (thread_apply_command): Adjust TID parsing.
10006 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
10007 detected before end of string.
10008 (tid_is_in_list): Error out if LIST is invalid.
10010 2019-06-13 Pedro Alves <palves@redhat.com>
10012 * completer.c (complete_line_internal_1): Rewind completion word
10014 (completion_tracker::advance_custom_word_point_by): Change
10015 parameter type to int.
10016 * completer.h (completion_tracker::advance_custom_word_point_by):
10019 2019-06-13 Pedro Alves <palves@redhat.com>
10021 * completer.c (advance_to_completion_word): Handle delimiters.
10023 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
10025 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
10027 2019-06-11 Tom Tromey <tom@tromey.com>
10029 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
10030 (xmalloc_failed): Move to alloc.c.
10031 * alloc.c: New file.
10032 * Makefile.in (COMMON_SFILES): Add alloc.c.
10034 2019-06-11 Tom Tromey <tom@tromey.com>
10036 * nat/linux-waitpid.c: Don't include server.h.
10037 (linux_debug): Remove.
10038 (my_waitpid): Update.
10040 2019-06-11 Tom Tromey <tromey@adacore.com>
10042 * infcall.c (_initialize_infcall): Remove trailing newline from
10044 * user-regs.c (_initialize_user_regs): Remove trailing newline
10046 * typeprint.c (_initialize_typeprint): Remove trailing newline
10048 * reverse.c (_initialize_reverse): Remove trailing newlines from
10050 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
10052 * language.c (add_set_language_command): Remove trailing newline
10054 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
10056 * disasm.c (_initialize_disasm): Remove trailing newline from
10058 * top.c (init_main): Remove trailing newline from help.
10059 * interps.c (_initialize_interpreter): Remove trailing newline
10061 * btrace.c (_initialize_btrace): Remove trailing newlines from
10063 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
10065 * python/python.c (_initialize_python): Remove trailing newline
10067 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
10069 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
10070 from help. Reformat some text.
10071 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
10073 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
10076 2019-06-11 Tom Tromey <tromey@adacore.com>
10078 * darwin-nat.c (darwin_decode_exception_message)
10079 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
10081 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
10083 * valops.c (value_slice): Check for not allocated or not
10086 2019-06-10 Tom de Vries <tdevries@suse.de>
10089 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
10090 sure an empty slot (defined by a 32-bit zero pair) is recognized as
10093 2019-06-10 Tom de Vries <tdevries@suse.de>
10096 * linespec.c (linespec_lexer_lex_string): Remove incorrect
10097 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
10099 2019-06-10 Tom de Vries <tdevries@suse.de>
10102 * symtab.c (struct demangled_name_entry): Add language field.
10103 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
10104 static minimal symbol". Set and use language field.
10106 2019-06-10 Tom Tromey <tromey@adacore.com>
10108 * ada-lang.c (_initialize_ada_language): Update help text.
10110 2019-06-10 Tom Tromey <tromey@adacore.com>
10112 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
10114 * guile/guile.c (handle_boot_error): Don't end warning with a
10116 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
10117 warning with a newline.
10118 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
10120 (s12z_frame_cache): Likewise.
10121 * dwarf-index-cache.c (index_cache::store): Don't end warning with
10123 * solib-svr4.c (disable_probes_interface): Don't end warning with
10125 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
10127 * python/python.c (do_finish_initialization): Don't end warning
10130 2019-06-10 Tom Tromey <tom@tromey.com>
10132 * python/py-breakpoint.c (gdbpy_breakpoint_created)
10133 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
10136 2019-06-10 Tom Tromey <tromey@adacore.com>
10138 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
10140 (elf_new_init): Don't call stabsread_new_init.
10141 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
10142 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
10143 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
10145 2019-06-10 Tom de Vries <tdevries@suse.de>
10149 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
10151 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
10153 * source.c (find_and_open_source): Also rewrite relative file
10156 2019-04-26 Amos Bird <amosbird@gmail.com>
10158 * annotate.c (annotate_thread_exited): Add "thread-exited"
10161 2019-06-06 Tom Tromey <tromey@adacore.com>
10163 * maint.h (class scoped_command_stats): Use
10164 DISABLE_COPY_AND_ASSIGN.
10165 <print_time>: New method.
10166 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
10168 (scoped_command_stats::print_time): New method.
10170 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
10172 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
10173 instructions of lengths 6 or 8 bytes.
10175 2019-06-04 Pedro Alves <palves@redhat.com>
10177 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
10179 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
10180 * breakpoint.c (condition_completer): Likewise.
10181 * cli/cli-dump.c (scan_expression): Likewise.
10182 * common/filestuff.c (mkdir_recursive): Likewise.
10183 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
10184 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
10185 (gdb_abspath): Likewise.
10186 * compile/compile-cplus-types.c
10187 (compile_cplus_instance::decl_name): Likewise.
10188 * completer.c (complete_explicit_location):
10189 (signal_completer, reg_or_group_completer_1): Likewise.
10190 * cp-support.c (cp_remove_params_if_any): Likewise.
10191 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
10192 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
10193 * infcmd.c (strip_bg_char): Likewise.
10194 * linespec.c (copy_token_string): Likewise.
10195 * mi/mi-main.c (output_cores): Likewise.
10196 * psymtab.c (psymtab_search_name):
10197 * symfile.c (test_set_ext_lang_command): Likewise.
10198 * target.c (target_fileio_read_stralloc): Likewise.
10199 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
10200 * value.c (complete_internalvar): Likewise.
10202 2019-06-04 Christian Biesinger <cbiesinger@google.com>
10204 Add objfile property to gdb.Type.
10205 * NEWS: Mention Python API addition.
10206 * python/py-type.c (typy_get_objfile): New method.
10208 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10210 * NEWS: Mention the new set|show style [title|highlight].
10211 Mention changes to "show style", "help" and "apropos".
10213 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10215 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
10216 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
10217 instead of print_help_for_command.
10218 (print_doc_of_command): New function.
10219 (help_list): Add 'apropos -v word' suggestion.
10220 (print_help_for_command): Style the command name using title style.
10221 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
10222 (_initialize_cli_cmds): Describe -v in apropos_command help.
10224 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10226 * cli/cli-style.h (cli_style_option): Add name in constructor,
10227 add m_name class member, add constructor with intensity,
10228 add name class function.
10229 (cli_style_option::add_setshow_commands): Remove name argument.
10230 (highlight_style, title_style): New styles.
10231 * cli/cli-style.c (do_show): New function that shows a style
10232 characteristic styling the style name with itself.
10233 (set_style_name): New function.
10234 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
10235 Update all callers according to the changes in cli/cli-style.h.
10236 * utils.h (fputs_highlighted): New function.
10237 * utils.c (fputs_highlighted): Likewise.
10239 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10241 * NEWS: Mention new pipe command and new convenience variables.
10243 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10245 * cli/cli-cmds.c (pipe_command): New function.
10246 (_initialize_cli_cmds): Call add_com for pipe_command.
10247 Define | as an alias for pipe.
10248 (exit_status_set_internal_vars): New function.
10249 (shell_escape): Call exit_status_set_internal_vars.
10250 cli/cli-decode.c (find_command_name_length): Recognize | as
10251 a single character command.
10253 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10255 * gdbcmd.h (execute_command_to_ui_file): New declaration.
10256 top.c (execute_command_to_ui_file): New function, mostly a copy
10257 of execute_command_to_string.
10258 (execute_command_to_string): Implement by calling
10259 execute_command_to_ui_file.
10261 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10263 * top.h (saved_command_line): Remove declaration.
10264 * top.c (previous_saved_command_line, previous_repeat_arguments):
10266 (saved_command_line): Make static, define together with other
10267 'repeat variables'.
10268 (dont_repeat): Clear repeat_arguments.
10269 (repeat_previous, get_saved_command_line, save_command_line):
10271 (gdb_init): Initialize saved_command_line
10272 and previous_saved_command_line.
10273 * main.c (captured_main_1): Remove saved_command_line initialization.
10274 * event-top.c (handle_line_of_input): Update to use
10275 the new 'repeat' related functions instead of direct access to
10276 saved_command_line.
10277 * command.h (repeat_previous, get_saved_command_line,
10278 save_command_line): New declarations.
10279 (dont_repeat): Add comment.
10281 2019-05-30 Tom Tromey <tromey@adacore.com>
10283 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
10285 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
10287 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
10290 * completer.c (complete): Initialize variable word.
10292 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
10294 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10295 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
10296 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
10297 'body' is NULL to the outter 'if', protecting the '!is_define'
10300 2019-05-29 Tom Tromey <tromey@adacore.com>
10302 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
10303 (dwarf_unknown): New function.
10304 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
10305 (dwarf_type_encoding_name): Use dwarf_unknown.
10307 2019-05-29 Tom Tromey <tromey@adacore.com>
10310 * cp-valprint.c (cp_print_value_fields): Call
10311 cp_print_static_field inside "try".
10313 2019-05-29 Tom Tromey <tromey@adacore.com>
10315 * inflow.c (struct terminal_info): Add default operator=.
10316 * configure: Rebuild.
10317 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
10318 -Wdeprecated-copy-dtor, -Wredundant-move.
10320 2019-05-29 Tom Tromey <tromey@adacore.com>
10323 * infcmd.c (print_return_value_1): Handle finish_print
10325 (show_print_finish): New function.
10326 (_initialize_infcmd): Add "set/show print finish" commands.
10327 * valprint.c (user_print_options): Initialize new member.
10328 * valprint.h (struct value_print_options) <finish_print>: New
10331 2019-05-28 Tom Tromey <tromey@adacore.com>
10333 * ada-lang.c (ada_remove_Xbn_suffix)
10334 (find_old_style_renaming_symbol)
10335 (parse_old_style_renaming): Remove.
10336 (ada_find_renaming_symbol): Don't call
10337 find_old_style_renaming_symbol.
10338 (ada_is_renaming_symbol): Rename from
10339 ada_find_renaming_symbol. Remove "block" parameter. Return
10341 (ada_read_var_value): Update and simplify.
10342 * ada-exp.y (write_var_or_type): Remove old code.
10344 2019-05-28 Alan Hayward <alan.hayward@arm.com>
10347 * event-top.c: Remove include comment.
10348 * inflow.c (class scoped_ignore_sigttou): Move from here...
10349 * inflow.h (class scoped_ignore_sigttou): ...to here.
10350 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
10351 * top.c: Remove include comment.
10353 2019-05-27 Tom Tromey <tom@tromey.com>
10357 2019-05-22 Tom Tromey <tromey@adacore.com>
10359 * target.c (target_follow_exec): Constify parameter.
10360 * target-delegates.c: Rebuild.
10361 * remote.c (remote_target::follow_exec): Constify parameter.
10362 * infrun.c (follow_exec): Constify parameter.
10363 * target.h (struct target_ops) <follow_exec>: Constify parameter.
10364 (target_follow_exec): Likewise.
10366 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10368 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
10369 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
10371 2019-05-22 Alan Hayward <alan.hayward@arm.com>
10373 * NEWS: Add debugredirect and testsuite sections.
10375 2019-05-22 Simon Cook <simon.cook@embecosm.com>
10377 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
10378 target descriptions using exclusively floating point register name
10381 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
10384 * f-lang.c (build_fortran_types): Handle the case where
10385 gdbarch_floatformat_for_type returns a nullptr.
10387 2019-05-21 Tom de Vries <tdevries@suse.de>
10390 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
10392 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10395 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
10397 * i386-tdep.c (i386_floatformat_for_type): Use
10398 floatformats_ia64_quad for the 16-byte floating point component
10399 within a fortran 32-byte complex number.
10401 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
10403 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
10404 delete default constructor.
10405 (find_partial_die): Update to return const struct.
10406 (partial_die_parent_scope): Move variable declaration into scope
10407 of its use and change its type to auto.
10408 (guess_partial_die_structure_name): Likewise.
10409 (partial_die_info::fixup): Likewise.
10411 2019-05-17 Tom Tromey <tromey@adacore.com>
10413 * source.c (find_and_open_source): Remove cast.
10415 2019-05-17 Tom Tromey <tromey@adacore.com>
10417 * annotate.c (annotate_source): Make "filename" const.
10418 * annotate.h (annotate_source): Use const.
10420 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10422 * disasm.c (set_disassembler_options): Send errors to stderr.
10424 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10426 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
10427 (cli_interp_base::set_logging): Check debug_redirect.
10428 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
10429 * cli/cli-logging.c (debug_redirect): Add static variable.
10430 (pop_output_files): Add default param.
10431 (handle_redirections): Print debug setting.
10432 (show_logging_command): Likewise.
10433 (_initialize_cli_logging): Add debugredirect command.
10434 * interps.c (current_interp_set_logging): Add debug_redirect
10436 * interps.h (set_logging): Add debug_redirect parameter.
10437 (current_interp_set_logging): Likewise.
10438 * mi/mi-common.h: Likewise.
10439 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
10441 2019-05-17 Alan Hayward <alan.hayward@arm.com>
10442 Tom Tromey <tromey@adacore.com>
10444 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
10446 * cli/cli-interp.h (make_logging_output): Remove declaration.
10447 * cli/cli-logging.c (make_logging_output): Remove function.
10448 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
10450 * ui-file.c (tee_file::tee_file): Remove bools.
10451 (tee_file::~tee_file): Remove deletes.
10452 * ui-file.h (tee_file): Remove bools.
10454 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
10456 * mi/mi-cmds.h (mi_cmd_complete): New function.
10457 * mi/mi-main.c (mi_cmd_complete): Likewise.
10458 * mi/mi-cmds.c: Define new MI command -complete.
10459 * NEWS: Mention new -complete command.
10461 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
10463 * completer.h (complete): New function.
10464 * completer.c (complete): Likewise.
10465 * cli/cli-cmds.c: (complete_command): Update to use new complete()
10466 function defined in completer.h.
10468 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
10470 * MAINTAINERS (Write After Approval): Add myself.
10472 2019-05-17 Tom de Vries <tdevries@suse.de>
10475 * dwarf2read.c (struct cu_partial_die_info): New struct.
10476 (find_partial_die): Return cu_partial_die_info.
10477 (partial_die_parent_scope, guess_partial_die_structure_name)
10478 (partial_die_info::fixup): Handle new return type of find_partial_die.
10480 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10482 PR breakpoints/24541
10483 * stap-probe.c (stap_parse_register_operand): Make "regname" an
10484 "std::string", simplifying the algorithm.
10486 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10488 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
10489 (stap_static_probe_ops::get_probes): Likewise.
10491 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10493 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
10494 '-')" and "else if".
10495 (stap_parse_single_operand): Join checks for
10496 "gdbarch_stap_parse_special_token_p" and
10497 "gdbarch_stap_parse_special_token" in the same "if" statement.
10498 Invert check when verifying for operation on register
10501 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10503 * stap-probe.c (stap_get_opcode): Update comment.
10504 (stap_get_expected_argument_type): Likewise.
10505 (handle_stap_probe): Likewise.
10507 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
10509 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
10510 return type to 'bool'. Adjust comment. Use 'bool' when
10512 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10513 * stap-probe.c (stap_parse_argument_1): Likewise.
10514 (stap_is_operator): Likewise.
10515 (stap_is_generic_prefix): Likewise.
10516 (stap_is_register_prefix): Likewise.
10517 (stap_is_register_indirection_prefix): Likewise.
10518 (stap_is_integer_prefix): Likewise.
10519 (stap_generic_check_suffix): Likewise.
10520 (stap_check_integer_suffix): Likewise.
10521 (stap_check_register_suffix): Likewise.
10522 (stap_check_register_indirection_suffix): Likewise.
10523 (stap_parse_register_operand): Likewise.
10524 (stap_parse_single_operand): Likewise.
10525 (stap_parse_argument_1): Likewise.
10526 (stap_probe::get_argument_count): Likewise.
10527 (stap_is_operator): Likewise.
10529 2019-05-16 Tom Tromey <tromey@adacore.com>
10531 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10532 keyword to foreach.
10534 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
10536 * linux-thread-db.c (try_thread_db_load_1): Change return type
10538 (try_thread_db_load): Likewise.
10539 (try_thread_db_load_from_pdir_1): Likewise.
10540 (try_thread_db_load_from_pdir): Likewise.
10541 (try_thread_db_load_from_sdir): Likewise.
10542 (try_thread_db_load_from_dir): Likewise.
10543 (thread_db_load_search): Likewise.
10544 (has_libpthread): Likewise.
10545 (thread_db_load): Likewise.
10547 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10549 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10550 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10551 NULL, and complain/return if that's the case.
10553 2019-05-15 John Darrington <john@darrington.wattle.id.au>
10555 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10556 (advance, posn, abstract_read_memory): New functions.
10557 [struct mem_read_abstraction]: New struct.
10558 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10560 2019-05-14 Tom Tromey <tromey@adacore.com>
10562 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10563 value is not lval_memory.
10565 2019-05-14 Tom Tromey <tromey@adacore.com>
10567 * solib.c (info_sharedlibrary_command): Style the file name.
10569 2019-05-14 Alan Hayward <alan.hayward@arm.com>
10571 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10572 (aarch64_vnv_type): Likewise.
10573 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10574 * common/tdesc.c: Likewise.
10575 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10576 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10577 * features/aarch64-fpu.xml: Add ieee half view.
10578 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10579 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10580 * gdbtypes.h (struct builtin_type): Likewise.
10581 (struct objfile_type): Likewise.
10583 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
10585 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10587 * location.h (string_to_event_location): Likewise.
10589 2019-05-11 Joel Brobecker <brobecker@adacore.com>
10593 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10595 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10596 New variable declaration.
10597 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10599 (print_one_breakpoint): Use ui_out::test_flags and new global
10600 variable to compute use_fixed_output.
10601 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10603 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10604 (mi_multi_location_breakpoint_output_fixed): Remove.
10605 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10607 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10608 fix_multi_location_breakpoint_output flag if version >= 3.
10609 * ui-out.h (enum ui_out_flag)
10610 <fix_multi_location_breakpoint_output>: New enumerator.
10612 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
10614 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10616 2019-05-10 Tom Tromey <tromey@adacore.com>
10618 * ada-lang.c (catch_ada_completer): New function.
10619 (_initialize_ada_language): Use it.
10621 2019-05-10 Tom Tromey <tromey@adacore.com>
10623 * thread.c (print_thread_info): Make "requested_threads" const.
10624 * gdbthread.h (print_thread_info): Make "requested_threads"
10626 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10627 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10629 2019-05-08 Tom Tromey <tom@tromey.com>
10631 * gdbtypes.c (objfile_type_data): Change type.
10632 (objfile_type, _initialize_gdbtypes): Update.
10634 2019-05-08 Tom Tromey <tom@tromey.com>
10636 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10637 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10638 (_initialize_dwarf2_frame): Update.
10640 2019-05-08 Tom Tromey <tom@tromey.com>
10642 * objc-lang.c (objc_objfile_data): Change type.
10643 (find_methods): Update.
10644 (_initialize_objc_lang): Remove.
10646 2019-05-08 Tom Tromey <tom@tromey.com>
10648 * stabsread.c (rs6000_builtin_type_data): Change type.
10649 (rs6000_builtin_type, _initialize_stabsread): Update.
10651 2019-05-08 Tom Tromey <tom@tromey.com>
10653 * mips-tdep.c (mips_pdr_data): Remove.
10654 (_initialize_mips_tdep): Update.
10656 2019-05-08 Tom Tromey <tom@tromey.com>
10658 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10659 (hppa_init_objfile_priv_data, read_unwind_info)
10660 (find_unwind_entry, _initialize_hppa_tdep): Update.
10662 2019-05-08 Tom Tromey <tom@tromey.com>
10664 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10665 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10667 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10669 2019-05-08 Tom Tromey <tom@tromey.com>
10671 * mdebugread.c (basic_type_data): Change type.
10672 (basic_type, _initialize_mdebugread): Update.
10674 2019-05-08 Tom Tromey <tom@tromey.com>
10676 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10678 2019-05-08 Tom Tromey <tom@tromey.com>
10680 * nto-tdep.c (nto_inferior_data_reg): Change type.
10681 (nto_inferior_data): Update.
10682 (nto_inferior_data_cleanup, nto_new_inferior_data)
10683 (_initialize_nto_tdep): Remove.
10684 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10686 2019-05-08 Tom Tromey <tom@tromey.com>
10688 * ada-lang.c (struct ada_inferior_data): Add initializers.
10689 (ada_inferior_data): Change type.
10690 (ada_inferior_data_cleanup): Remove.
10691 (get_ada_inferior_data, ada_inferior_exit)
10692 (struct ada_pspace_data): Add initializers, destructor.
10693 (ada_pspace_data_handle): Change type.
10694 (get_ada_pspace_data): Update.
10695 (ada_pspace_data_cleanup): Remove.
10697 2019-05-08 Tom Tromey <tom@tromey.com>
10699 * coffread.c (struct coff_symfile_info): Add initializers.
10700 (coff_objfile_data_key): Move lower. Change type.
10701 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10703 (coff_free_info): Remove.
10705 2019-05-08 Tom Tromey <tom@tromey.com>
10707 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10708 (fbsd_pspace_data_handle): Move lower. Change type.
10709 (get_fbsd_pspace_data): Update.
10710 (fbsd_pspace_data_cleanup): Remove.
10711 (_initialize_fbsd_tdep): Update.
10713 2019-05-08 Tom Tromey <tom@tromey.com>
10715 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10716 (get_ada_tasks_pspace_data): Update.
10717 (ada_tasks_pspace_data_cleanup): Remove.
10718 (_initialize_tasks): Update.
10719 (ada_tasks_inferior_data_handle): Change type.
10720 (get_ada_tasks_inferior_data): Update.
10721 (ada_tasks_inferior_data_cleanup): Remove.
10722 (struct ada_tasks_pspace_data): Add initializers.
10724 2019-05-08 Tom Tromey <tom@tromey.com>
10726 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10727 * symfile-debug.c (debug_sym_get_probes): Change type.
10728 * stap-probe.c (handle_stap_probe):
10729 (stap_static_probe_ops::get_probes): Change type.
10730 * probe.h (class static_probe_ops) <get_probes>: Change type.
10731 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10732 (parse_probes_in_pspace): Update.
10733 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10735 (any_static_probe_ops::get_probes): Change type.
10736 * elfread.c (elfread_data): New typedef.
10737 (probe_key): Change type.
10738 (elf_get_probes): Likewise. Update.
10739 (probe_key_free): Remove.
10740 (_initialize_elfread): Update.
10741 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10743 (dtrace_process_dof_probe, dtrace_process_dof)
10744 (dtrace_static_probe_ops::get_probe): Change type.
10746 2019-05-08 Tom Tromey <tom@tromey.com>
10748 * xcoffread.c (struct xcoff_symfile_info): Rename from
10749 coff_symfile_info. Add initializers.
10750 (xcoff_objfile_data_key): Move lower. Change type.
10751 (XCOFF_DATA): Rewrite.
10752 (xcoff_free_info): Remove.
10753 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10754 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10755 (xcoff_initial_scan): Update.
10757 2019-05-08 Tom Tromey <tom@tromey.com>
10759 * solib-svr4.c (struct svr4_info): Add initializers and
10761 <probes_table>: Now an htab_up.
10762 (solib_svr4_pspace_data): Change type.
10763 (free_probes_table): Simplify.
10764 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10765 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10766 (probes_table_remove_objfile_probes, register_solib_event_probe)
10767 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10768 (_initialize_svr4_solib): Update.
10770 2019-05-08 Tom Tromey <tom@tromey.com>
10772 * remote.c (remote_pspace_data): Change type.
10773 (remote_pspace_data_cleanup): Remove.
10774 (get_remote_exec_file, set_pspace_remote_exec_file)
10775 (_initialize_remote): Update.
10777 2019-05-08 Tom Tromey <tom@tromey.com>
10779 * breakpoint.c (breakpoint_objfile_key): Change type.
10780 (get_breakpoint_objfile_data): Update.
10781 (free_breakpoint_objfile_data): Remove.
10782 (_initialize_breakpoint): Update.
10784 2019-05-08 Tom Tromey <tom@tromey.com>
10786 * linux-tdep.c (struct linux_info): Add initializers.
10787 (linux_inferior_data): Move. Change type.
10788 (invalidate_linux_cache_inf): Update.
10789 (linux_inferior_data_cleanup): Remove.
10790 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10792 2019-05-08 Tom Tromey <tom@tromey.com>
10794 * auxv.c (auxv_inferior_data): Move. Change type.
10795 (auxv_inferior_data_cleanup): Remove.
10796 (invalidate_auxv_cache_inf): Rewrite.
10797 (get_auxv_inferior_data, _initialize_auxv): Update.
10799 2019-05-08 Tom Tromey <tom@tromey.com>
10801 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10802 (symfile_debug_objfile_data_key): Change type.
10803 (symfile_debug_installed, debug_qf_has_symbols)
10804 (debug_qf_find_last_source_symtab)
10805 (debug_qf_forget_cached_source_info)
10806 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10807 (debug_qf_print_stats, debug_qf_dump)
10808 (debug_qf_expand_symtabs_for_function)
10809 (debug_qf_expand_all_symtabs)
10810 (debug_qf_expand_symtabs_with_fullname)
10811 (debug_qf_map_matching_symbols)
10812 (debug_qf_expand_symtabs_matching)
10813 (debug_qf_find_pc_sect_compunit_symtab)
10814 (debug_qf_map_symbol_filenames)
10815 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10816 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10817 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10818 (debug_sym_read_linetable, debug_sym_relocate): Update.
10819 (symfile_debug_free_objfile): Remove.
10820 (install_symfile_debug_logging, _initialize_symfile_debug):
10823 2019-05-08 Tom Tromey <tom@tromey.com>
10825 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10826 allocate_on_obstack.
10827 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10828 (get_dwarf2_per_objfile): Update.
10829 (set_dwarf2_per_objfile): Remove.
10830 (dwarf2_has_info, dwarf2_get_section_info): Update.
10831 (dwarf2_free_objfile): Remove.
10832 (_initialize_dwarf2_read): Update.
10834 2019-05-08 Tom Tromey <tom@tromey.com>
10836 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10838 <unsupported_script_warning_printed,
10839 script_not_found_warning_printed>: Now bool.
10840 (auto_load_pspace_data): Change type.
10841 (~auto_load_pspace_info): Rename from
10842 auto_load_pspace_data_cleanup.
10843 (get_auto_load_pspace_data, init_loaded_scripts_info)
10844 (clear_section_scripts, maybe_print_unsupported_script_warning)
10845 (maybe_print_script_not_found_warning, _initialize_auto_load):
10848 2019-05-08 Tom Tromey <tom@tromey.com>
10850 * objfiles.c (objfile_pspace_info): Add destructor and
10852 (objfiles_pspace_data): Change type.
10853 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10854 (get_objfile_pspace_data): Update.
10855 (objfiles_bfd_data): Change type.
10856 (get_objfile_bfd_data): Update.
10857 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10859 2019-05-08 Tom Tromey <tom@tromey.com>
10861 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10863 (get_catch_syscall_inferior_data): Update.
10864 (catch_syscall_inferior_data_cleanup): Remove.
10865 (_initialize_break_catch_syscall): Update.
10867 2019-05-08 Tom Tromey <tom@tromey.com>
10869 * inflow.c (struct terminal_info): Add destructor and
10871 (inflow_inferior_data): Change type.
10872 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10873 (get_inflow_inferior_data, inflow_inferior_exit)
10874 (swap_terminal_info, _initialize_inflow): Update.
10876 2019-05-08 Tom Tromey <tom@tromey.com>
10878 * target-dcache.c (target_dcache_cleanup): Remove.
10879 (target_dcache_aspace_key): Change type.
10880 (target_dcache_init_p, target_dcache_invalidate)
10881 (target_dcache_get, target_dcache_get_or_init)
10882 (_initialize_target_dcache): Update.
10883 * dcache.h (struct dcache_deleter): New.
10885 2019-05-08 Tom Tromey <tom@tromey.com>
10887 * symtab.c (struct symbol_cache): Add destructor and
10889 (symbol_cache_key): Move. Change type.
10890 (make_symbol_cache, free_symbol_cache): Remove.
10891 (get_symbol_cache): Update.
10892 (symbol_cache_cleanup): Remove.
10893 (ALL_PSPACES, symbol_cache_flush)
10894 (maintenance_print_symbol_cache)
10895 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10898 2019-05-08 Tom Tromey <tom@tromey.com>
10900 * symtab.c (struct main_info): Add destructor and initializers.
10901 (main_progspace_key): Move. Change type.
10902 (get_main_info): Update.
10903 (main_info_cleanup): Remove.
10904 (_initialize_symtab): Update.
10906 2019-05-08 Tom Tromey <tom@tromey.com>
10908 * registry.h (DECLARE_REGISTRY): Define the _key class.
10910 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10912 * NEWS: Merge two 'New commands' sections.
10914 2019-05-08 Joel Brobecker <brobecker@adacore.com>
10916 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10917 parameter and use Ada language definition instead.
10918 (ada_val_print_ptr): Remove unused language parameter.
10919 (ada_val_print_num): Remove language parameter and use Ada language
10920 definition instead.
10921 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10923 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10924 parameter and use Ada language definition instead.
10925 (ada_val_print_1): Update all ada_val_print_xxx calls.
10926 Remove language parameter.
10927 (ada_val_print): Update ada_val_print_1 call.
10929 2019-05-08 Tom Tromey <tromey@adacore.com>
10931 * remote.c (remote_hw_watchpoint_limit)
10932 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10935 2019-05-08 Tom Tromey <tromey@adacore.com>
10937 * maint.c (_initialize_maint_cmds): Move initialization code to
10939 (watchdog, show_watchdog): Move to remote.c.
10940 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10942 (_initialize_remote): Move initialization code from maint.c.
10943 * defs.h (watchdog): Don't declare.
10945 2019-05-08 Tom Tromey <tromey@adacore.com>
10947 * tui/tui-interp.c: Include main.h.
10948 * interps.c: Include main.h.
10949 * main.h (interpreter_p): Declare.
10950 * defs.h (interpreter_p): Don't declare.
10952 2019-05-08 Tom Tromey <tromey@adacore.com>
10954 * dwarf2loc.c: Include dwarf2read.h.
10955 * defs.h (read_unsigned_leb128): Don't declare.
10956 * dwarf2read.h (read_unsigned_leb128): Declare.
10958 2019-05-08 Tom Tromey <tromey@adacore.com>
10960 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10963 2019-05-08 Tom Tromey <tromey@adacore.com>
10965 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10966 when no wrap column is set.
10968 2019-05-08 Tom Tromey <tromey@adacore.com>
10970 * c-lang.c (c_get_string): Handle non-C-style arrays.
10972 2019-05-08 Tom Tromey <tromey@adacore.com>
10974 * typeprint.c (print_offset_data::update): Print the bit offset,
10975 not the number of bits remaining.
10977 2019-05-08 Tom Tromey <tromey@adacore.com>
10979 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10980 padding at end of comment.
10982 2019-05-08 Tom Tromey <tromey@adacore.com>
10984 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10985 Compare main types.
10987 2019-05-06 Tom Tromey <tom@tromey.com>
10989 * common/scoped_mmap.c: Include common-defs.h.
10990 * common/scoped_mmap.h: Don't include config.h.
10992 2019-05-04 Tom Tromey <tom@tromey.com>
10994 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10995 (struct aarch64_call_info): Add initializers.
10996 <si>: Now a std::vector.
10997 (pass_on_stack, aarch64_push_dummy_call): Update.
10999 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
11000 Tom Tromey <tom@tromey.com>
11002 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
11003 (ppc_threads): Now a std::vector. Now static.
11004 (hwdebug_find_thread_points_by_tid)
11005 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
11008 2019-05-04 Tom Tromey <tom@tromey.com>
11010 * arc-tdep.c (arc_tdesc_init): Return bool.
11012 2019-05-04 Tom Tromey <tom@tromey.com>
11014 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
11015 Use gdb_assert_not_reached.
11017 2019-05-04 Tom Tromey <tom@tromey.com>
11019 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
11022 2019-05-04 Tom Tromey <tom@tromey.com>
11024 * arc-tdep.c (arc_tdesc_init): Use bool.
11026 2019-05-04 Tom Tromey <tom@tromey.com>
11028 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
11030 2019-05-04 Tom Tromey <tom@tromey.com>
11032 * cli/cli-cmds.c (valid_command_p): Return bool.
11034 2019-05-04 Tom Tromey <tom@tromey.com>
11036 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
11037 * command.h (valid_user_defined_cmd_name_p): Channge return type.
11039 2019-05-04 Raul Tambre <raul@tambre.ee>
11041 * python/lib/gdb/prompt.py (_ExtendedPrompt)
11042 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
11043 operator for comparison.
11045 2019-05-04 Tom Tromey <tom@tromey.com>
11047 * psymtab.c (psymbol_name_matches, match_partial_symbol)
11048 (lookup_partial_symbol, print_partial_symbols)
11049 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
11050 (psymbol_compare): Update.
11051 (add_psymbol_to_bcache): Clear the entire psymbol.
11052 (maintenance_check_psymtabs): Update.
11053 * psympriv.h (struct partial_symbol): Don't derive from
11054 general_symbol_info.
11055 <obj_section, unrelocated_address, address,
11056 set_unrelocated_address>: Update.
11057 <ginfo>: New member.
11058 * dwarf-index-write.c (write_psymbols, debug_names::insert)
11059 (debug_names::write_psymbols): Update.
11061 2019-05-04 Tom de Vries <tdevries@suse.de>
11063 * contrib/cc-with-tweaks.sh: Support -n arg.
11065 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11067 * corelow.c (core_target::detach): Ensure frame cache and
11068 register caches are cleared.
11069 inferior.c (exit_inferior_1): Likewise.
11071 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
11072 Tom Tromey <tom@tromey.com>
11074 * dictionary.c (collate_pending_symbols_by_language): Remove
11075 "struct" from foreach.
11076 * symtab.c (lookup_global_symbol_from_objfile)
11077 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
11079 * ser-tcp.c (net_open): Remove "struct" from foreach.
11080 * objfiles.c (objfile_relocate, objfile_rebase)
11081 (objfile_has_symbols): Remove "struct" from foreach.
11082 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
11084 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
11086 * darwin-nat.c (thread_info_from_private_thread_info): Remove
11087 "struct" from foreach.
11088 * ada-lang.c (create_excep_cond_exprs)
11089 (ada_exception_catchpoint_cond_string): Remove "struct" from
11092 2019-05-03 Tom Tromey <tromey@adacore.com>
11094 * ada-exp.y (convert_char_literal): Check suffix of each
11097 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
11100 * ada-exp.y (yywrap): Don't define.
11101 * ada-lex.l (%option): Add noyywrap
11104 2019-05-03 Eli Zaretskii <eliz@gnu.org>
11106 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
11107 _WIN32_WINNT to the XP level, unless already defined to a higher
11110 * unittests/parse-connection-spec-selftests.c:
11112 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
11115 * symfile.c (find_separate_debug_file): Remove colon from the
11116 drive spec of DOS/Windows file names of the target, so that the
11117 file name produced from DEBUGDIR and the target's directory will
11118 be valid on DOS/Windows systems.
11120 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
11122 * rust-lang.c (val_print_struct): Handle printing structures
11123 containing strings.
11125 2019-05-02 Tom Tromey <tromey@adacore.com>
11127 * valarith.c (_initialize_valarith): Remove.
11129 2019-05-01 Tom Tromey <tromey@adacore.com>
11131 * ada-lang.c (ada_value_primitive_field): Treat more fields as
11134 2019-05-01 Tom Tromey <tromey@adacore.com>
11136 * ada-lang.c (ada_value_assign): Correctly compute starting offset
11137 for big-endian copies.
11139 2019-04-30 Ali Tamur <tamur@google.com>
11140 * gdb/dwarf2read.c (read_3_bytes): New declaration.
11141 (read_attribute_value): Added DW_FORM_strx1-4 cases.
11142 (read_3_bytes): New function.
11144 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11146 * windows-nat.c (main_thread_id): Delete.
11147 (handle_output_debug_string): Replace main_thread_id by
11148 current_event.dwThreadId.
11149 (fake_create_process): Likewise.
11150 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
11151 Do not set main_thread_id.
11152 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
11153 current_event.dwThreadId.
11154 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
11156 2019-04-30 Joel Brobecker <brobecker@adacore.com>
11158 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
11159 Use current_event.dwThreadId instead of main_thread_id.
11161 2019-04-30 Tom Tromey <tromey@adacore.com>
11163 * ada-lang.c (ada_lookup_simple_minsyms): New function.
11164 (create_excep_cond_exprs): Iterate over program spaces.
11165 (ada_exception_catchpoint_cond_string): Examine all minimal
11166 symbols for exception types.
11168 2019-04-30 Tom Tromey <tromey@adacore.com>
11171 * dwarf2read.c (process_structure_scope): Handle case where type
11172 has template parameters but no symbol was created.
11174 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11175 Chris January <chris.january@arm.com>
11177 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
11179 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
11181 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11183 * f-typeprint.c (f_print_type): Update rules for printing
11185 (f_type_print_varspec_suffix): Likewise.
11187 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11188 Chris January <chris.january@arm.com>
11190 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
11191 function arguments.
11193 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11195 * f-lang.c (build_fortran_types): Change name of void type to
11197 * f-typeprint.c (f_type_print_base): Print the name of the void
11198 type, rather than a fixed string.
11199 * f-valprint.c (f_decorations): Use lower case void string.
11201 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11202 Chris January <chris.january@arm.com>
11204 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
11207 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11208 Chris January <chris.january@arm.com>
11209 David Lecomber <david.lecomber@arm.com>
11211 * f-exp.y (BINOP_INTRINSIC): New token.
11212 (exp): New parser rule handling BINOP_INTRINSIC.
11213 (f77_keywords): Add new builtin procedures.
11214 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
11215 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11216 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
11217 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11218 (print_unop_subexp_f): New function.
11219 (print_binop_subexp_f): New function.
11220 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11221 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
11222 (dump_subexp_body_f): Likewise.
11223 (operator_check_f): Likewise.
11224 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
11225 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
11227 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11229 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
11231 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
11232 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
11233 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
11234 (operator_length_f): New fuction.
11235 (print_subexp_f): New function.
11236 (op_name_f): New function.
11237 (dump_subexp_body_f): New function.
11238 (operator_check_f): New function.
11239 (exp_descriptor_f): Replace standard expression handling functions
11240 with new functions.
11241 * gdb/fortran-operator.def: New file.
11242 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
11243 * gdb/std-operator.def: Remove UNOP_KIND.
11245 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
11247 * std-operator.def: Remove unbalanced, stray double quote
11250 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11251 Chris January <chris.january@arm.com>
11252 Daniel Everett <daniel.everett@arm.com>
11253 Nick Forrington <nick.forrington@arm.com>
11254 Richard Bunt <richard.bunt@arm.com>
11256 * cp-valprint.c (cp_print_value_fields): Allow an additional level
11257 of depth when printing anonymous structs or unions.
11258 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
11259 Don't print either the top-level value, or the children if the
11260 max-depth is exceeded.
11261 (ppscm_print_children): When printing the key of a map, allow one
11262 extra level of depth.
11263 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
11264 print either the top-level value, or the children if the max-depth
11266 (print_children): When printing the key of a map, allow one extra
11268 * python/py-value.c (valpy_format_string): Add max_depth keyword.
11269 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
11270 (user_print_options): Initialise max_depth field.
11271 (val_print_scalar_or_string_type_p): New function.
11272 (val_print): Check to see if the max depth has been reached.
11273 (val_print_check_max_depth): Define new function.
11274 (show_print_max_depth): New function.
11275 (_initialize_valprint): Add 'print max-depth' option.
11276 * valprint.h (struct value_print_options) <max_depth>: New field.
11277 (val_print_check_max_depth): Declare new function.
11278 * NEWS: Document new feature.
11280 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11282 * ada-lang.c (ada_language_defn): Initialise new field.
11283 * c-lang.c (c_is_string_type_p): New function.
11284 (c_language_defn): Initialise new field.
11285 (cplus_language_defn): Initialise new field.
11286 (asm_language_defn): Initialise new field.
11287 (minimal_language_defn): Initialise new field.
11288 * c-lang.h (c_is_string_type_p): Declare new function.
11289 * d-lang.c (d_language_defn): Initialise new field.
11290 * f-lang.c (f_is_string_type_p): New function.
11291 (f_language_defn): Initialise new field.
11292 * go-lang.c (go_is_string_type_p): New function.
11293 (go_language_defn): Initialise new field.
11294 * language.c (default_is_string_type_p): New function.
11295 (unknown_language_defn): Initialise new field.
11296 (auto_language_defn): Initialise new field.
11297 * language.h (struct language_defn) <la_is_string_type_p>: New
11299 (default_is_string_type_p): Declare new function.
11300 * m2-lang.c (m2_language_defn): Initialise new field.
11301 * objc-lang.c (objc_language_defn): Initialise new field.
11302 * opencl-lang.c (opencl_language_defn): Initialise new field.
11303 * p-lang.c (pascal_is_string_type_p): New function.
11304 (pascal_language_defn): Initialise new field.
11305 * rust-lang.c (rust_is_string_type_p): New function.
11306 (rust_language_defn): Initialise new field.
11308 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11310 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
11312 * ada-lang.c (ada_language_defn): Initialise new field.
11313 * c-lang.c (c_language_defn): Likewise.
11314 (cplus_language_defn): Likewise.
11315 (asm_language_defn): Likewise.
11316 (minimal_language_defn): Likewise.
11317 * d-lang.c (d_language_defn): Likewise.
11318 * f-lang.c (f_language_defn): Likewise.
11319 * go-lang.c (go_language_defn): Likewise.
11320 * language.c (unknown_language_defn): Likewise.
11321 (auto_language_defn): Likewise.
11322 * m2-lang.c (m2_language_defn): Likewise.
11323 * objc-lang.c (objc_language_defn): Likewise.
11324 * opencl-lang.c (opencl_language_defn): Likewise.
11325 * p-lang.c (pascal_language_defn): Likewise.
11326 * rust-lang.c (rust_language_defn): Likewise.
11328 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
11330 * ada-lang.c (ada_is_character_type): Change return type to bool.
11331 (ada_is_string_type): Likewise.
11332 * ada-lang.h (ada_is_character_type): Update declaration
11333 (ada_is_string_type): Likewise.
11335 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11337 Support style in 'frame|thread apply'
11339 * gdbcmd.h (execute_command_to_string): New term_out parameter.
11340 * record.c (record_start, record_stop): Update callers of
11341 execute_command_to_string with false.
11342 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
11343 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
11345 (class string_file): New constructor with term_out parameter.
11346 Override methods term_out and can_emit_style_escape. New member
11348 (class stdio_file): Override can_emit_style_escape.
11349 (class tee_file): Override term_out and can_emit_style_escape.
11350 * utils.h (can_emit_style_escape): Remove.
11351 * utils.c (can_emit_style_escape): Likewise.
11352 Update all callers of can_emit_style_escape (SOMESTREAM) to
11353 SOMESTREAM->can_emit_style_escape.
11354 * source-cache.c (source_cache::get_source_lines): Likewise.
11355 * stack.c (frame_apply_command_count): Call execute_command_to_string
11356 passing the term_out characteristic of the current gdb_stdout.
11357 * thread.c (thr_try_catch_cmd): Likewise.
11358 * top.c (execute_command_to_string): pass term_out parameter
11359 to construct the string_file for the command output.
11360 * ui-file.c (term_cli_styling): New function (most code moved
11361 from utils.c can_emit_style_escape).
11362 (string_file::string_file, string_file::can_emit_style_escape,
11363 stdio_file::can_emit_style_escape, tee_file::term_out,
11364 tee_file::can_emit_style_escape): New functions.
11366 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11368 * NEWS: Mention the new set|show may-call-functions.
11369 * infcall.c (may_call_functions_p): New variable.
11370 (show_may_call_functions_p): New function.
11371 (call_function_by_hand_dummy): Throws an error if not
11372 may-call-functions.
11373 (_initialize_infcall): Call add_setshow_boolean_cmd for
11374 may-call-functions.
11376 2019-04-25 Keith Seitz <keiths@redhat.com>
11379 * cp-support.c (inspect_type): Don't attempt substitutions
11380 of symbol with the same name.
11382 2019-04-25 Tom Tromey <tromey@adacore.com>
11385 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
11388 2019-04-25 Tom Tromey <tromey@adacore.com>
11390 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
11392 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
11393 (gdb_xml_parser::parse): Use std::move.
11394 * python/python-internal.h (gdbpy_convert_exception): Take a const
11396 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
11398 * python/py-utils.c (gdbpy_convert_exception): Take a const
11400 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11402 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11404 * mi/mi-main.c (mi_print_exception): Take a const reference.
11405 * main.c (handle_command_errors): Take a const reference.
11406 * linespec.c (parse_linespec): Use std::move.
11407 * infcall.c (run_inferior_call): Use std::move.
11408 (call_function_by_hand_dummy): Use std::move.
11409 * exec.c (try_open_exec_file): Use std::move.
11410 * exceptions.h (exception_print, exception_fprintf)
11411 (exception_print_same): Update.
11412 * exceptions.c (print_exception, exception_print)
11413 (exception_fprintf, exception_print_same): Change parameters to
11415 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
11416 * common/new-op.c: Use std::move.
11417 * common/common-exceptions.h (struct gdb_exception): Add move
11419 (struct gdb_exception_error, struct gdb_exception_quit, struct
11420 gdb_quit_bad_alloc): Change constructor to move constructor.
11421 (throw_exception): Change parameter to rvalue reference.
11422 * common/common-exceptions.c (throw_exception): Take rvalue
11424 * cli/cli-interp.c (safe_execute_command): Use std::move.
11425 * breakpoint.c (insert_bp_location, location_to_sals): Use
11428 2019-04-25 Tom Tromey <tromey@adacore.com>
11430 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
11431 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
11432 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
11433 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
11434 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
11435 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
11436 guile/scm-value.c: Use unpack.
11437 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
11438 gdbscm_gdb_exception.
11439 (gdbscm_throw_gdb_exception): Likewise.
11440 (struct gdbscm_gdb_exception): New.
11441 (unpack): New function.
11442 (gdbscm_wrap): Use unpack.
11444 2019-04-25 Tom Tromey <tromey@adacore.com>
11446 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11447 (gdb_rl_callback_handler): Use std::move.
11448 * common/common-exceptions.h (struct gdb_exception): Add move
11449 assignment operator.
11450 (throw_exception_sjlj): Change "exception" to const reference.
11451 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
11452 (throw_exception_sjlj): Change "exception" to const reference.
11454 2019-04-25 Tom Tromey <tromey@adacore.com>
11456 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
11457 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
11458 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
11460 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
11462 * mi/mi-interp.c (mi_interp::exec): Update.
11463 * linespec.c (parse_linespec): Update.
11464 * infcall.c (run_inferior_call): Update.
11465 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
11466 * guile/scm-symbol.c (gdbscm_lookup_symbol)
11467 (gdbscm_lookup_global_symbol): Update.
11468 * guile/scm-param.c (gdbscm_parameter_value): Update.
11469 * guile/scm-frame.c (gdbscm_frame_read_register)
11470 (gdbscm_frame_read_var): Update.
11471 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
11472 * exec.c (try_open_exec_file): Update.
11473 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
11474 (gdb_rl_callback_handler): Update.
11475 * common/common-exceptions.h (exception_none): Don't declare.
11476 * common/common-exceptions.c (exception_none): Don't define.
11477 (struct catcher) <exception>: Update.
11478 * cli/cli-interp.c (safe_execute_command): Update.
11479 * breakpoint.c (insert_bp_location, location_to_sals): Update.
11481 2019-04-25 Ali Tamur <tamur@google.com>
11483 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
11484 (read_attribute_value): Likewise.
11485 (dwarf2_read_addr_index): Update comment.
11486 (read_str_index): Add DW_FORM_strx.
11487 (dwarf2_string_attr): Likewise.
11488 (dwarf2_const_value_attr): Likewise.
11489 (dump_die_shallow): Likewise.
11490 (dwarf2_fetch_constant_bytes): Likewise.
11491 (skip_form_bytes): Likewise.
11492 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
11494 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
11498 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
11499 OFFSET. Verify if current mapping contains an ELF header.
11500 (linux_find_memory_regions_full): Adjust call to
11503 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
11504 Kang Li <kanglictf@gmail.com>
11508 * dwarf2-frame.c (read_initial_length): Be consistent about using
11509 unsigned representation of length.
11510 (decode_frame_entry_1): Likewise. Check for wraparound of
11511 end pointer as well as buffer overflow.
11513 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11515 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11518 2019-04-24 Tom Tromey <tromey@adacore.com>
11520 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11522 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11524 * s12z-tdep.c (s12z_unwind_pc): Delete.
11525 (s12z_unwind_sp): Delete.
11526 (s12z_gdbarch_init): Don't register deleted functions with
11529 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11531 * rl78-tdep.c (rl78_unwind_sp): Delete.
11532 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11534 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11536 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11537 (xstormy16_unwind_pc): Delete.
11538 (xstormy16_dummy_id): Delete.
11539 (xstormy16_gdbarch_init): Don't register deleted functions with
11542 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11544 * vax-tdep.c (vax_unwind_pc): Delete.
11545 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11547 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11549 * v850-tdep.c (v850_unwind_sp): Delete.
11550 (v850_unwind_pc): Delete.
11551 (v850_dummy_id): Delete.
11552 (v850_gdbarch_init): Don't register deleted functions with
11555 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11557 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11558 (tilegx_unwind_pc): Delete.
11559 (tilegx_unwind_dummy_id): Delete.
11560 (tilegx_gdbarch_init): Don't register deleted functions with
11563 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11565 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11566 (tic6x_dummy_id): Delete.
11567 (tic6x_gdbarch_init): Don't register deleted functions with
11570 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11572 * sparc-tdep.c (sparc_unwind_pc): Delete.
11573 (sparc32_gdbarch_init): Don't register deleted function with
11576 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11578 * sh-tdep.c (sh_unwind_sp): Delete.
11579 (sh_unwind_pc): Delete.
11580 (sh_dummy_id): Delete.
11581 (sh_gdbarch_init): Don't register deleted functions with
11584 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11586 * score-tdep.c (score_unwind_sp): Delete.
11587 (score_unwind_pc): Delete.
11588 (score_dummy_id): Delete.
11589 (score_gdbarch_init): Don't register deleted functions with
11592 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11594 * rx-tdep.c (rx_unwind_pc): Delete.
11595 (rx_unwind_sp): Delete.
11596 (rx_dummy_id): Delete.
11597 (rx_gdbarch_init): Don't register deleted functions with
11598 gdbarch. Update comment.
11600 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11602 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11603 (rs6000_dummy_id): Delete.
11604 (rs6000_gdbarch_init): Don't register deleted functions with
11607 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11609 * or1k-tdep.c (or1k_dummy_id): Delete.
11610 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11612 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11614 * nios2-tdep.c (nios2_dummy_id): Delete.
11615 (nios2_unwind_sp): Delete.
11616 (nios2_gdbarch_init): Don't register deleted functions with
11619 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11621 * nds32-tdep.c (nds32_dummy_id): Delete.
11622 (nds32_unwind_pc): Delete.
11623 (nds32_unwind_sp): Delete.
11624 (nds32_gdbarch_init): Don't register deleted functions with
11627 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11629 * msp430-tdep.c (msp430_unwind_pc): Delete.
11630 (msp430_unwind_sp): Delete.
11631 (msp430_dummy_id): Delete.
11632 (msp430_gdbarch_init): Don't register deleted functions with
11635 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11637 * moxie-tdep.c (moxie_unwind_sp): Delete.
11638 (moxie_unwind_pc): Delete.
11639 (moxie_dummy_id): Delete.
11640 (moxie_gdbarch_init): Don't register deleted functions with
11643 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11645 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11646 (mn10300_unwind_pc): Delete.
11647 (mn10300_unwind_sp): Delete.
11648 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11650 (mn10300_frame_unwind_init): Don't register deleted functions with
11653 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11655 * mep-tdep.c (mep_unwind_pc): Delete.
11656 (mep_unwind_sp): Delete.
11657 (mep_dummy_id): Delete.
11658 (mep_gdbarch_init): Don't register deleted functions with
11661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11663 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11664 (m68hc11_unwind_sp): Delete.
11665 (m68hc11_gdbarch_init): Don't register deleted functions with
11668 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11670 * m32r-tdep.c (m32r_unwind_sp): Delete.
11671 (m32r_unwind_pc): Delete.
11672 (m32r_dummy_id): Delete.
11673 (m32r_gdbarch_init): Don't register deleted functions with
11676 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11678 * m32c-tdep.c (m32c_unwind_pc): Delete.
11679 (m32c_unwind_sp): Delete.
11680 (m32c_dummy_id): Delete.
11681 (m32c_gdbarch_init): Don't register deleted functions with
11684 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11686 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11687 (lm32_unwind_pc): Delete.
11688 (lm32_dummy_id): Delete.
11689 (lm32_gdbarch_init): Don't register deleted functions with
11692 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11694 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11695 (iq2000_unwind_pc): Delete.
11696 (iq2000_dummy_id): Delete.
11697 (iq2000_gdbarch_init): Don't register deleted functions with
11700 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11702 * nds32-tdep.c (nds32_type_align): Delete.
11703 (nds32_push_dummy_call): Use type_align instead.
11705 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11707 * arm-tdep.c (arm_type_align): Only handle vector override case.
11708 (arm_push_dummy_call): Use type_align.
11709 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11711 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11713 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11715 (pass_on_stack): Use type_align.
11716 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11719 2019-04-23 Tom Tromey <tromey@adacore.com>
11721 * dwarf2read.c (line_header::file_name_at): Remove unused
11724 2019-04-23 Tom de Vries <tdevries@suse.de>
11727 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11731 2019-03-27 Ali Tamur <tamur@google.com>
11733 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11734 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11735 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11736 (dwarf_expr_context::get_addr_index): Likewise
11737 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11738 (symbol_needs_eval_context::get_addr_index): Likewise
11739 (disassemble_dwarf_expression): Add DW_OP_addrx
11740 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11741 (read_cutu_die_from_dwo): Update comment
11742 (skip_one_die): Add DW_FORM_addrx
11743 (read_attribute_value): Likewise
11744 (var_decode_location): Add DW_OP_addrx
11745 (dwarf2_const_value_attr): Add DW_FORM_addrx
11746 (dump_die_shallow): Likewise
11747 (dwarf2_fetch_constant_bytes): Likewise
11748 (decode_locdesc): Add DW_OP_addrx
11749 (skip_form_bytes): Add DW_FORM_addrx
11751 2019-04-22 Ali Tamur <tamur@google.com>
11753 * MAINTAINERS (Write After Approval): Add self.
11755 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
11757 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11758 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11759 (open_symbol_file_object): Likewise.
11760 (svr4_default_sos): Add info parameter.
11761 (svr4_read_so_list): Likewise.
11762 (svr4_current_sos_direct): Adjust functions calls to pass down
11764 (svr4_current_sos_1): Add info parameter.
11765 (svr4_current_sos): Call get_svr4_info, pass info down to
11766 svr4_current_sos_1.
11767 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11769 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11771 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11773 (probes_table_remove_objfile_probes): Likewise.
11774 (register_solib_event_probe): Add info parameter.
11775 (solist_update_incremental): Pass info parameter down to
11777 (disable_probes_interface): Add info parameter.
11778 (svr4_handle_solib_event): Pass current_program_space to
11779 get_svr4_info. Adjust disable_probes_interface cleanup.
11780 (svr4_create_probe_breakpoints): Add info parameter, pass it
11781 down to register_solib_event_probe.
11782 (svr4_create_solib_event_breakpoints): Add info parameter,
11783 pass it down to svr4_create_probe_breakpoints.
11784 (enable_break): Pass info down to
11785 svr4_create_solib_event_breakpoints.
11786 (svr4_solib_create_inferior_hook): Pass current_program_space to
11788 (svr4_clear_solib): Likewise.
11790 2019-04-22 Pedro Alves <palves@redhat.com>
11792 * solib-svr4.c (svr4_free_objfile_observer): New.
11793 (probe_and_action::objfile): New field.
11794 (probes_table_htab_remove_objfile_probes)
11795 (probes_table_remove_objfile_probes): New functions.
11796 (register_solib_event_probe): Add 'objfile' parameter. Store it
11797 in the new probe_and_action. Don't store the probe in 'lookup'.
11798 (svr4_create_probe_breakpoints): Pass objfile to
11799 register_solib_event_probe.
11800 (_initialize_svr4_solib): Register a free_objfile observer.
11802 2019-04-19 Tom Tromey <tom@tromey.com>
11804 * common/queue.h: Remove.
11806 2019-04-19 Tom Tromey <tom@tromey.com>
11808 * event-loop.c: Don't include "common/queue.h".
11810 2019-04-19 Tom Tromey <tom@tromey.com>
11812 * remote.c (remote_target): Use delete.
11813 * remote-notif.h: Include <list>, not "common/queue.h".
11814 (notif_client_p): Remove typedef.
11815 (remote_notif_state): Add constructor, destructor, initializer.
11816 <notif_queue>: Now a std::list.
11817 (remote_notif_state_xfree): Don't declare.
11818 * remote-notif.c (remote_notif_process, handle_notification)
11819 (remote_notif_state_allocate): Update.
11820 (~remote_notif_state): Rename from remote_notif_state_xfree.
11822 2019-04-19 Tom Tromey <tom@tromey.com>
11824 * symfile.c (reread_symbols): Update.
11825 * objfiles.c (objfile_register_static_link)
11826 (objfile_lookup_static_link): Update
11827 (~objfile) Don't delete static_links.
11828 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11830 2019-04-19 Tom Tromey <tom@tromey.com>
11832 * type-stack.h (struct type_stack) <insert>: Constify string.
11833 * type-stack.c (type_stack::insert): Constify string.
11834 * gdbtypes.h (lookup_template_type): Update.
11835 (address_space_name_to_int): Update.
11836 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11838 (lookup_template_type): Make name const.
11839 * c-exp.y: Update rules.
11840 (lex_one_token, classify_name, classify_inner_name)
11841 (c_print_token): Update.
11842 * p-exp.y: Update rules.
11844 * f-exp.y: Update rules.
11846 * d-exp.y: Update rules.
11847 (lex_one_token, classify_name, classify_inner_name): Update.
11848 * parse.c (write_dollar_variable, copy_name): Return std::string.
11849 * parser-defs.h (copy_name): Change return type.
11850 * m2-exp.y: Update rules.
11852 * go-exp.y (lex_one_token): Update.
11854 (classify_unsafe_function, classify_packaged_name)
11855 (classify_name, yylex): Update.
11857 2019-04-19 Sergei Trofimovich <siarheit@google.com>
11859 * configure.ac: add --enable-source-highlight switch.
11860 * configure: Regenerate.
11861 * top.c (print_gdb_version): plumb --enable-source-highlight
11862 status to "show configuration".
11864 2019-04-19 Tom Tromey <tromey@adacore.com>
11866 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11868 (empty_record, ada_template_to_fixed_record_type_1)
11869 (template_to_static_fixed_type)
11870 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11871 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11872 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11875 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11878 * source.c (print_source_lines_base): Advance "iter" when a
11879 control character is seen.
11881 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11883 * inferior.h (struct infcall_suspend_state_deleter):
11884 Catch exception in destructor to avoid crash.
11886 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11888 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11889 close to the add_com "shell".
11891 2019-04-18 Tom Tromey <tromey@adacore.com>
11893 * process-stratum-target.h (class process_stratum_target)
11894 <stratum>: Add "final".
11896 2019-04-17 Tom Tromey <tromey@adacore.com>
11898 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11899 against nullptr before use.
11901 2019-04-17 Alan Hayward <alan.hayward@arm.com>
11903 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11905 2019-04-17 Jim Wilson <jimw@sifive.com>
11906 Andrew Burgess <andrew.burgess@embecosm.com>
11908 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11909 code read might fail, assume 4-byte breakpoint in that case.
11911 2019-04-15 Leszek Swirski <leszeks@google.com>
11913 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11914 rather than a hand-rolled POD check when checking for forced MEMORY
11917 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11919 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11920 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11922 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11923 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11924 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11927 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11929 * aarch64-linux-nat.c
11930 (aarch64_linux_nat_target::thread_architecture): Add override.
11931 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11934 2019-04-15 Alan Hayward <alan.hayward@arm.com>
11936 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11938 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11940 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11941 target types of size 96-bits, add some additional comments, and
11942 check that the builtin type we found was the correct size.
11944 2019-04-12 Eli Zaretskii <eliz@gnu.org>
11946 * utils.c (prompt_for_continue): Don't restore the styling at the
11947 end, as applied_style has the wrong value. This fixes styling in
11948 long lists of file names that are interrupted by the "Continue?"
11951 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11953 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11954 * c-lang.c (c_language_defn): Likewise.
11955 (cplus_language_defn): Likewise.
11956 (asm_language_defn): Likewise.
11957 (minimal_language_defn): Likewise.
11958 * d-lang.c (d_language_defn): Likewise.
11959 * f-lang.c (f_language_defn): Likewise.
11960 * go-lang.c (go_language_defn): Likewise.
11961 * language.c (unknown_language_defn): Likewise.
11962 (auto_language_defn): Likewise.
11963 * language.h (struct language_defn): Remove la_magic field.
11964 (LANG_MAGIC): Delete.
11965 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11966 * objc-lang.c (objc_language_defn): Likewise.
11967 * opencl-lang.c (opencl_language_defn): Likewise.
11968 * p-lang.c (pascal_language_defn): Likewise.
11969 * rust-lang.c (rust_language_defn): Likewise.
11971 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11973 * riscv-tdep.c (riscv_type_align): New function.
11974 (riscv_type_alignment): Delete.
11975 (riscv_arg_location): Use 'type_align'.
11976 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11978 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11980 * gdbtypes.c (type_align): A struct with no non-static fields also
11981 has alignment of 1.
11983 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11985 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11987 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11989 (riscv_struct_info::analyse): New implementation using new
11990 analyse_inner member function.
11991 (riscv_struct_info::field_offset): New member function.
11992 (riscv_struct_info::m_offsets): New member variable.
11993 (riscv_struct_info::analyse_inner): New private member function,
11994 takes the old implementation of riscv_struct_info::analyse but
11995 extended to track field offsets.
11996 (riscv_call_arg_struct): Update the struct folding special cases
11997 to handle cases where empty C++ structs, which are non-zero
11999 (riscv_arg_location): Initialise the length of each location, a
12000 non-zero length now indicates the location is in use.
12001 (riscv_push_dummy_call): Allow for the first location having a
12002 non-zero offset when setting up arguments.
12003 (riscv_return_value): Likewise, but for return values.
12005 2019-04-11 Tom Tromey <tromey@adacore.com>
12007 * utils.c (internal_vproblem): Make "msg" const.
12009 2019-04-11 Alan Hayward <alan.hayward@arm.com>
12011 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
12012 * trad-frame.c (trad_frame_reset_saved_regs): New function.
12013 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
12014 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
12016 2019-04-10 Kevin Buettner <kevinb@redhat.com>
12018 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
12020 (fill_gregset): Call amd64_linux_collect_native_gregset instead
12021 of amd64_collect_native_gregset.
12022 (amd64_linux_nat_target::store_registers): Likewise.
12024 2019-04-10 Tom Tromey <tom@tromey.com>
12026 * symtab.c (lookup_global_symbol_from_objfile)
12027 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
12028 * objfiles.h (class separate_debug_iterator): New.
12029 (class separate_debug_range): New.
12030 (struct objfile) <separate_debug_objfiles>: New method.
12031 (objfile_separate_debug_iterate): Don't declare.
12032 * objfiles.c (separate_debug_iterator::operator++): Rename from
12033 objfile_separate_debug_iterate.
12034 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
12036 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
12039 2019-04-10 Tom Tromey <tom@tromey.com>
12041 * symfile.c (reread_symbols): Remove old comment.
12042 * objfiles.c (free_all_objfiles): Fix a typo.
12044 2019-04-10 Tom Tromey <tom@tromey.com>
12046 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
12047 * minsyms.c (lookup_minimal_symbol): Use foreach.
12048 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
12049 (lookup_minimal_symbol_solib_trampoline): Likewise.
12050 * symfile.c (reread_symbols): Use foreach.
12052 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
12053 Tom Tromey <tromey@adacore.com>
12056 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
12057 (rust_lex_int_test): Change "value" to be LONGEST.
12058 (rust_lex_tests): Add test for long integer literal.
12060 2019-04-09 Tom Tromey <tromey@adacore.com>
12062 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
12064 (extended_remote_target::attach): Update.
12065 (remote_target::remote_notice_new_inferior): Update.
12066 (remote_target::add_current_inferior_and_thread): Update.
12067 * inferior.c (exit_inferior_1): Use "false".
12068 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
12070 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
12072 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
12073 the "start" command.
12075 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12077 * python/py-inferior.c (infpy_thread_from_thread_handle):
12078 Adjust comments to reflect renaming of thread_from_thread_handle
12079 to thread_from_handle. Adjust keywords. Fix type error message.
12080 (inferior_object_methods): Add thread_from_handle. Retain
12081 thread_from_thread_handle, but mark it as deprecated.
12083 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12085 * gdbthread.h (find_thread_by_handle): Revise declaration.
12086 * thread.c (find_thread_by_handle): Likewise. Adjust
12087 implementation too.
12088 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
12089 support for buffer objects as handles.
12091 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12093 * python/py-infthread.c (thpy_thread_handle): New function.
12094 (thread_object_methods): Register thpy_thread_handle.
12096 2019-04-08 Kevin Buettner <kevinb@redhat.com>
12098 * gdbthread.h (thread_to_thread_handle): Declare.
12099 * thread.c (gdbtypes.h): Include.
12100 (thread_to_thread_handle): New function.
12102 * target.h (struct target_ops): Add thread_info_to_thread_handle.
12103 (target_thread_info_to_thread_handle): Declare.
12104 * target.c (target_thread_info_to_thread_handle): New function.
12105 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
12106 * target-delegates.c: Regenerate.
12108 * linux-thread-db.c (class thread_db_target): Add method
12109 thread_info_to_thread_handle.
12110 (thread_db_target::thread_info_to_thread_handle): Define.
12111 * remote.c (class remote_target): Add new method
12112 thread_info_to_thread_handle.
12113 (remote_target::thread_info_to_thread_handle): Define.
12115 2019-04-08 Pedro Alves <palves@redhat.com>
12117 * common/common-exceptions.c (throw_exception): Don't create
12118 named object to throw; throw directly.
12119 (throw_it): Likewise. Don't initialize gdb_exception::message
12120 here, with new; pass FMT and AP to the ctor instead.
12121 * common/common-exceptions.h: Include <string>.
12122 (gdb_exception::gdb_exception(enum return_reason, enum errors,
12123 const char *, va_list)): New ctor. Use std::make_shared.
12124 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
12126 (gdb_exception_error::gdb_exception_error(enum errors, const char
12128 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
12130 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
12132 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
12133 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
12136 2019-04-08 Tom Tromey <tom@tromey.com>
12138 * valops.c (value_rtti_indirect_type): Replace throw_exception
12140 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
12142 * thread.c (thr_try_catch_cmd): Replace throw_exception with
12144 * target.c (target_translate_tls_address): Replace throw_exception
12146 * stack.c (frame_apply_command_count): Replace throw_exception
12148 * solib-spu.c (append_ocl_sos): Replace throw_exception with
12150 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
12152 * rs6000-tdep.c (rs6000_frame_cache)
12153 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
12154 * remote.c: Replace throw_exception with throw.
12155 * record-full.c (record_full_message, record_full_wait_1)
12156 (record_full_restore): Replace throw_exception with throw.
12158 (get_thread_current_frame_id, record_btrace_start_replaying)
12159 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
12160 (cmd_record_btrace_start): Replace throw_exception with throw.
12161 * parse.c (parse_exp_in_context_1): Replace throw_exception with
12163 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
12164 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
12166 (find_linespec_symbols): Replace throw_exception with throw.
12167 * infrun.c (displaced_step_prepare, resume): Replace
12168 throw_exception with throw.
12169 * infcmd.c (post_create_inferior): Replace throw_exception with
12171 * inf-loop.c (inferior_event_handler): Replace throw_exception
12173 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
12174 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
12175 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
12176 (get_prev_frame_always, get_frame_pc_if_available)
12177 (get_frame_address_in_block_if_available, get_frame_language):
12178 Replace throw_exception with throw.
12179 * frame-unwind.c (frame_unwind_try_unwinder): Replace
12180 throw_exception with throw.
12181 * eval.c (fetch_subexp_value, evaluate_var_value)
12182 (evaluate_funcall, evaluate_subexp_standard): Replace
12183 throw_exception with throw.
12184 * dwarf2loc.c (call_site_find_chain)
12185 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
12186 Replace throw_exception with throw.
12187 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
12189 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
12191 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
12192 * completer.c (complete_line_internal): Replace throw_exception
12194 * compile/compile-object-run.c (compile_object_run): Replace
12195 throw_exception with throw.
12196 * cli/cli-script.c (process_next_line): Replace throw_exception
12198 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
12199 (btrace_enable, btrace_maint_update_pt_packets): Replace
12200 throw_exception with throw.
12201 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
12202 throw_exception with throw.
12203 * break-catch-throw.c (re_set_exception_catchpoint): Replace
12204 throw_exception with throw.
12205 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
12206 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
12207 * aarch64-tdep.c (aarch64_make_prologue_cache)
12208 (aarch64_make_stub_cache): Replace throw_exception with throw.
12210 2019-04-08 Tom Tromey <tom@tromey.com>
12212 * common/common-exceptions.c (throw_exception): Rename from
12213 throw_exception_cxx. Remove old copy. Make argument const.
12214 (throw_it): Create and throw exception objects directly.
12215 * common/common-exceptions.h (throw_exception): Make argument
12217 (struct gdb_exception_error): Add constructor.
12218 (struct gdb_exception_quit): Add constructor.
12220 2019-04-08 Tom Tromey <tom@tromey.com>
12222 * common/common-exceptions.h (exception_rethrow): Don't declare.
12223 (TRY_SJLJ): Update comment.
12224 (TRY, CATCH, END_CATCH): Remove.
12225 * common/common-exceptions.c (exception_rethrow): Remove.
12227 2019-04-08 Tom Tromey <tom@tromey.com>
12229 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
12231 (gdb_exception_error): Rename from
12232 gdb_exception_RETURN_MASK_ERROR.
12233 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
12234 (gdb_quit_bad_alloc): Update.
12235 * aarch64-tdep.c: Update.
12236 * ada-lang.c: Update.
12237 * ada-typeprint.c: Update.
12238 * ada-valprint.c: Update.
12239 * amd64-tdep.c: Update.
12240 * arch-utils.c: Update.
12241 * break-catch-throw.c: Update.
12242 * breakpoint.c: Update.
12243 * btrace.c: Update.
12244 * c-varobj.c: Update.
12245 * cli/cli-cmds.c: Update.
12246 * cli/cli-interp.c: Update.
12247 * cli/cli-script.c: Update.
12248 * common/common-exceptions.c: Update.
12249 * common/new-op.c: Update.
12250 * common/selftest.c: Update.
12251 * compile/compile-c-symbols.c: Update.
12252 * compile/compile-cplus-symbols.c: Update.
12253 * compile/compile-object-load.c: Update.
12254 * compile/compile-object-run.c: Update.
12255 * completer.c: Update.
12256 * corelow.c: Update.
12257 * cp-abi.c: Update.
12258 * cp-support.c: Update.
12259 * cp-valprint.c: Update.
12260 * darwin-nat.c: Update.
12261 * disasm-selftests.c: Update.
12262 * dtrace-probe.c: Update.
12263 * dwarf-index-cache.c: Update.
12264 * dwarf-index-write.c: Update.
12265 * dwarf2-frame-tailcall.c: Update.
12266 * dwarf2-frame.c: Update.
12267 * dwarf2loc.c: Update.
12268 * dwarf2read.c: Update.
12270 * event-loop.c: Update.
12271 * event-top.c: Update.
12273 * f-valprint.c: Update.
12274 * fbsd-tdep.c: Update.
12275 * frame-unwind.c: Update.
12277 * gdbtypes.c: Update.
12278 * gnu-v3-abi.c: Update.
12279 * guile/guile-internal.h: Update.
12280 * guile/scm-block.c: Update.
12281 * guile/scm-breakpoint.c: Update.
12282 * guile/scm-cmd.c: Update.
12283 * guile/scm-disasm.c: Update.
12284 * guile/scm-frame.c: Update.
12285 * guile/scm-lazy-string.c: Update.
12286 * guile/scm-math.c: Update.
12287 * guile/scm-param.c: Update.
12288 * guile/scm-ports.c: Update.
12289 * guile/scm-pretty-print.c: Update.
12290 * guile/scm-symbol.c: Update.
12291 * guile/scm-symtab.c: Update.
12292 * guile/scm-type.c: Update.
12293 * guile/scm-value.c: Update.
12294 * i386-linux-tdep.c: Update.
12295 * i386-tdep.c: Update.
12296 * inf-loop.c: Update.
12297 * infcall.c: Update.
12298 * infcmd.c: Update.
12299 * infrun.c: Update.
12301 * language.c: Update.
12302 * linespec.c: Update.
12303 * linux-fork.c: Update.
12304 * linux-nat.c: Update.
12305 * linux-tdep.c: Update.
12306 * linux-thread-db.c: Update.
12308 * mi/mi-cmd-break.c: Update.
12309 * mi/mi-cmd-stack.c: Update.
12310 * mi/mi-interp.c: Update.
12311 * mi/mi-main.c: Update.
12312 * objc-lang.c: Update.
12313 * p-valprint.c: Update.
12315 * ppc-linux-tdep.c: Update.
12316 * printcmd.c: Update.
12317 * python/py-arch.c: Update.
12318 * python/py-breakpoint.c: Update.
12319 * python/py-cmd.c: Update.
12320 * python/py-finishbreakpoint.c: Update.
12321 * python/py-frame.c: Update.
12322 * python/py-framefilter.c: Update.
12323 * python/py-gdb-readline.c: Update.
12324 * python/py-inferior.c: Update.
12325 * python/py-infthread.c: Update.
12326 * python/py-lazy-string.c: Update.
12327 * python/py-linetable.c: Update.
12328 * python/py-objfile.c: Update.
12329 * python/py-param.c: Update.
12330 * python/py-prettyprint.c: Update.
12331 * python/py-progspace.c: Update.
12332 * python/py-record-btrace.c: Update.
12333 * python/py-record.c: Update.
12334 * python/py-symbol.c: Update.
12335 * python/py-type.c: Update.
12336 * python/py-unwind.c: Update.
12337 * python/py-utils.c: Update.
12338 * python/py-value.c: Update.
12339 * python/python.c: Update.
12340 * record-btrace.c: Update.
12341 * record-full.c: Update.
12342 * remote-fileio.c: Update.
12343 * remote.c: Update.
12344 * riscv-tdep.c: Update.
12345 * rs6000-aix-tdep.c: Update.
12346 * rs6000-tdep.c: Update.
12347 * rust-exp.y: Update.
12348 * rust-lang.c: Update.
12349 * s390-tdep.c: Update.
12350 * selftest-arch.c: Update.
12351 * solib-dsbt.c: Update.
12352 * solib-frv.c: Update.
12353 * solib-spu.c: Update.
12354 * solib-svr4.c: Update.
12356 * sparc64-linux-tdep.c: Update.
12358 * symfile-mem.c: Update.
12359 * symmisc.c: Update.
12360 * target.c: Update.
12361 * thread.c: Update.
12363 * tracefile-tfile.c: Update.
12364 * tui/tui.c: Update.
12365 * typeprint.c: Update.
12366 * unittests/cli-utils-selftests.c: Update.
12367 * unittests/parse-connection-spec-selftests.c: Update.
12368 * valops.c: Update.
12369 * valprint.c: Update.
12371 * varobj.c: Update.
12372 * windows-nat.c: Update.
12373 * x86-linux-nat.c: Update.
12374 * xml-support.c: Update.
12376 2019-04-08 Tom Tromey <tom@tromey.com>
12378 * xml-support.c: Use C++ exception handling.
12379 * x86-linux-nat.c: Use C++ exception handling.
12380 * windows-nat.c: Use C++ exception handling.
12381 * varobj.c: Use C++ exception handling.
12382 * value.c: Use C++ exception handling.
12383 * valprint.c: Use C++ exception handling.
12384 * valops.c: Use C++ exception handling.
12385 * unittests/parse-connection-spec-selftests.c: Use C++ exception
12387 * unittests/cli-utils-selftests.c: Use C++ exception handling.
12388 * typeprint.c: Use C++ exception handling.
12389 * tui/tui.c: Use C++ exception handling.
12390 * tracefile-tfile.c: Use C++ exception handling.
12391 * top.c: Use C++ exception handling.
12392 * thread.c: Use C++ exception handling.
12393 * target.c: Use C++ exception handling.
12394 * symmisc.c: Use C++ exception handling.
12395 * symfile-mem.c: Use C++ exception handling.
12396 * stack.c: Use C++ exception handling.
12397 * sparc64-linux-tdep.c: Use C++ exception handling.
12398 * solib.c: Use C++ exception handling.
12399 * solib-svr4.c: Use C++ exception handling.
12400 * solib-spu.c: Use C++ exception handling.
12401 * solib-frv.c: Use C++ exception handling.
12402 * solib-dsbt.c: Use C++ exception handling.
12403 * selftest-arch.c: Use C++ exception handling.
12404 * s390-tdep.c: Use C++ exception handling.
12405 * rust-lang.c: Use C++ exception handling.
12406 * rust-exp.y: Use C++ exception handling.
12407 * rs6000-tdep.c: Use C++ exception handling.
12408 * rs6000-aix-tdep.c: Use C++ exception handling.
12409 * riscv-tdep.c: Use C++ exception handling.
12410 * remote.c: Use C++ exception handling.
12411 * remote-fileio.c: Use C++ exception handling.
12412 * record-full.c: Use C++ exception handling.
12413 * record-btrace.c: Use C++ exception handling.
12414 * python/python.c: Use C++ exception handling.
12415 * python/py-value.c: Use C++ exception handling.
12416 * python/py-utils.c: Use C++ exception handling.
12417 * python/py-unwind.c: Use C++ exception handling.
12418 * python/py-type.c: Use C++ exception handling.
12419 * python/py-symbol.c: Use C++ exception handling.
12420 * python/py-record.c: Use C++ exception handling.
12421 * python/py-record-btrace.c: Use C++ exception handling.
12422 * python/py-progspace.c: Use C++ exception handling.
12423 * python/py-prettyprint.c: Use C++ exception handling.
12424 * python/py-param.c: Use C++ exception handling.
12425 * python/py-objfile.c: Use C++ exception handling.
12426 * python/py-linetable.c: Use C++ exception handling.
12427 * python/py-lazy-string.c: Use C++ exception handling.
12428 * python/py-infthread.c: Use C++ exception handling.
12429 * python/py-inferior.c: Use C++ exception handling.
12430 * python/py-gdb-readline.c: Use C++ exception handling.
12431 * python/py-framefilter.c: Use C++ exception handling.
12432 * python/py-frame.c: Use C++ exception handling.
12433 * python/py-finishbreakpoint.c: Use C++ exception handling.
12434 * python/py-cmd.c: Use C++ exception handling.
12435 * python/py-breakpoint.c: Use C++ exception handling.
12436 * python/py-arch.c: Use C++ exception handling.
12437 * printcmd.c: Use C++ exception handling.
12438 * ppc-linux-tdep.c: Use C++ exception handling.
12439 * parse.c: Use C++ exception handling.
12440 * p-valprint.c: Use C++ exception handling.
12441 * objc-lang.c: Use C++ exception handling.
12442 * mi/mi-main.c: Use C++ exception handling.
12443 * mi/mi-interp.c: Use C++ exception handling.
12444 * mi/mi-cmd-stack.c: Use C++ exception handling.
12445 * mi/mi-cmd-break.c: Use C++ exception handling.
12446 * main.c: Use C++ exception handling.
12447 * linux-thread-db.c: Use C++ exception handling.
12448 * linux-tdep.c: Use C++ exception handling.
12449 * linux-nat.c: Use C++ exception handling.
12450 * linux-fork.c: Use C++ exception handling.
12451 * linespec.c: Use C++ exception handling.
12452 * language.c: Use C++ exception handling.
12453 * jit.c: Use C++ exception handling.
12454 * infrun.c: Use C++ exception handling.
12455 * infcmd.c: Use C++ exception handling.
12456 * infcall.c: Use C++ exception handling.
12457 * inf-loop.c: Use C++ exception handling.
12458 * i386-tdep.c: Use C++ exception handling.
12459 * i386-linux-tdep.c: Use C++ exception handling.
12460 * guile/scm-value.c: Use C++ exception handling.
12461 * guile/scm-type.c: Use C++ exception handling.
12462 * guile/scm-symtab.c: Use C++ exception handling.
12463 * guile/scm-symbol.c: Use C++ exception handling.
12464 * guile/scm-pretty-print.c: Use C++ exception handling.
12465 * guile/scm-ports.c: Use C++ exception handling.
12466 * guile/scm-param.c: Use C++ exception handling.
12467 * guile/scm-math.c: Use C++ exception handling.
12468 * guile/scm-lazy-string.c: Use C++ exception handling.
12469 * guile/scm-frame.c: Use C++ exception handling.
12470 * guile/scm-disasm.c: Use C++ exception handling.
12471 * guile/scm-cmd.c: Use C++ exception handling.
12472 * guile/scm-breakpoint.c: Use C++ exception handling.
12473 * guile/scm-block.c: Use C++ exception handling.
12474 * guile/guile-internal.h: Use C++ exception handling.
12475 * gnu-v3-abi.c: Use C++ exception handling.
12476 * gdbtypes.c: Use C++ exception handling.
12477 * frame.c: Use C++ exception handling.
12478 * frame-unwind.c: Use C++ exception handling.
12479 * fbsd-tdep.c: Use C++ exception handling.
12480 * f-valprint.c: Use C++ exception handling.
12481 * exec.c: Use C++ exception handling.
12482 * event-top.c: Use C++ exception handling.
12483 * event-loop.c: Use C++ exception handling.
12484 * eval.c: Use C++ exception handling.
12485 * dwarf2read.c: Use C++ exception handling.
12486 * dwarf2loc.c: Use C++ exception handling.
12487 * dwarf2-frame.c: Use C++ exception handling.
12488 * dwarf2-frame-tailcall.c: Use C++ exception handling.
12489 * dwarf-index-write.c: Use C++ exception handling.
12490 * dwarf-index-cache.c: Use C++ exception handling.
12491 * dtrace-probe.c: Use C++ exception handling.
12492 * disasm-selftests.c: Use C++ exception handling.
12493 * darwin-nat.c: Use C++ exception handling.
12494 * cp-valprint.c: Use C++ exception handling.
12495 * cp-support.c: Use C++ exception handling.
12496 * cp-abi.c: Use C++ exception handling.
12497 * corelow.c: Use C++ exception handling.
12498 * completer.c: Use C++ exception handling.
12499 * compile/compile-object-run.c: Use C++ exception handling.
12500 * compile/compile-object-load.c: Use C++ exception handling.
12501 * compile/compile-cplus-symbols.c: Use C++ exception handling.
12502 * compile/compile-c-symbols.c: Use C++ exception handling.
12503 * common/selftest.c: Use C++ exception handling.
12504 * common/new-op.c: Use C++ exception handling.
12505 * cli/cli-script.c: Use C++ exception handling.
12506 * cli/cli-interp.c: Use C++ exception handling.
12507 * cli/cli-cmds.c: Use C++ exception handling.
12508 * c-varobj.c: Use C++ exception handling.
12509 * btrace.c: Use C++ exception handling.
12510 * breakpoint.c: Use C++ exception handling.
12511 * break-catch-throw.c: Use C++ exception handling.
12512 * arch-utils.c: Use C++ exception handling.
12513 * amd64-tdep.c: Use C++ exception handling.
12514 * ada-valprint.c: Use C++ exception handling.
12515 * ada-typeprint.c: Use C++ exception handling.
12516 * ada-lang.c: Use C++ exception handling.
12517 * aarch64-tdep.c: Use C++ exception handling.
12519 2019-04-08 Tom Tromey <tom@tromey.com>
12521 * xml-support.c (gdb_xml_parser::parse): Update.
12522 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12523 * value.c (show_convenience): Update.
12524 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12525 (test_parse_flags_qcs): Update.
12526 * thread.c (thr_try_catch_cmd): Update.
12527 * target.c (target_translate_tls_address): Update.
12528 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12529 (info_frame_command_core, frame_apply_command_count): Update.
12530 * rust-exp.y (rust_lex_exception_test): Update.
12531 * riscv-tdep.c (riscv_print_one_register_info): Update.
12532 * remote.c (remote_target::enable_btrace): Update.
12533 * record-btrace.c (record_btrace_enable_warn): Update.
12534 * python/py-utils.c (gdbpy_convert_exception): Update.
12535 * printcmd.c (do_one_display, print_variable_and_value): Update.
12536 * mi/mi-main.c (mi_print_exception): Update.
12537 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12538 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12539 * linux-nat.c (linux_nat_target::attach): Update.
12540 * linux-fork.c (class scoped_switch_fork_info): Update.
12541 * infrun.c (displaced_step_prepare): Update.
12542 * infcall.c (call_function_by_hand_dummy): Update.
12543 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12544 * gnu-v3-abi.c (print_one_vtable): Update.
12545 * frame.c (get_prev_frame_always): Update.
12546 * f-valprint.c (info_common_command_for_block): Update.
12547 * exec.c (try_open_exec_file): Update.
12548 * exceptions.c (print_exception, exception_print)
12549 (exception_fprintf, exception_print_same): Update.
12550 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12551 * dwarf-index-cache.c (index_cache::store)
12552 (index_cache::lookup_gdb_index): Update.
12553 * darwin-nat.c (maybe_cache_shell): Update.
12554 * cp-valprint.c (cp_print_value_fields): Update.
12555 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12556 (gcc_cplus_symbol_address): Update.
12557 * compile/compile-c-symbols.c (gcc_convert_symbol)
12558 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12559 * common/selftest.c: Update.
12560 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12562 (exception_try_scope_entry, exception_try_scope_exit): Don't
12564 (struct exception_try_scope): Remove.
12565 (TRY): Don't use exception_try_scope.
12566 (struct gdb_exception): Add constructor, operator=.
12567 <what>: New method.
12568 (struct gdb_exception_RETURN_MASK_ALL)
12569 (struct gdb_exception_RETURN_MASK_ERROR)
12570 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12571 (struct gdb_quit_bad_alloc): Update.
12572 * common/common-exceptions.c (exception_none): Change
12574 (struct catcher) <state, exception>: Initialize inline.
12575 <prev>: Remove member.
12576 (current_catcher): Remove.
12577 (catchers): New global.
12578 (exceptions_state_mc_init): Simplify.
12579 (catcher_pop): Remove.
12580 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12581 (try_scope_depth, exception_try_scope_entry)
12582 (exception_try_scope_exit): Remove.
12583 (throw_exception_sjlj): Update.
12584 (exception_messages, exception_messages_size): Remove.
12585 (throw_it): Simplify.
12586 (gdb_exception_sliced_copy): Remove.
12587 (throw_exception_cxx): Update.
12588 * cli/cli-script.c (script_from_file): Update.
12589 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12591 * ada-valprint.c (ada_val_print): Update.
12592 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12593 (create_excep_cond_exprs): Update.
12595 2019-04-08 Tom Tromey <tom@tromey.com>
12597 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12598 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12599 (TRY, CATCH, END_CATCH): Remove some definitions.
12600 * common/common-exceptions.c: Don't use GDB_XCPT.
12601 (catcher_list_size): Remove.
12602 (throw_exception, throw_it): Simplify.
12604 2019-04-05 Tom Tromey <tom@tromey.com>
12606 Revert the header-sorting patch.
12607 * ft32-tdep.c: Revert.
12608 * frv-tdep.c: Revert.
12609 * frv-linux-tdep.c: Revert.
12611 * frame-unwind.c: Revert.
12612 * frame-base.c: Revert.
12613 * fork-child.c: Revert.
12614 * findvar.c: Revert.
12615 * findcmd.c: Revert.
12616 * filesystem.c: Revert.
12617 * filename-seen-cache.h: Revert.
12618 * filename-seen-cache.c: Revert.
12619 * fbsd-tdep.c: Revert.
12620 * fbsd-nat.h: Revert.
12621 * fbsd-nat.c: Revert.
12622 * f-valprint.c: Revert.
12623 * f-typeprint.c: Revert.
12624 * f-lang.c: Revert.
12625 * extension.h: Revert.
12626 * extension.c: Revert.
12627 * extension-priv.h: Revert.
12628 * expprint.c: Revert.
12631 * exceptions.c: Revert.
12632 * event-top.c: Revert.
12633 * event-loop.c: Revert.
12635 * elfread.c: Revert.
12636 * dwarf2read.h: Revert.
12637 * dwarf2read.c: Revert.
12638 * dwarf2loc.c: Revert.
12639 * dwarf2expr.h: Revert.
12640 * dwarf2expr.c: Revert.
12641 * dwarf2-frame.c: Revert.
12642 * dwarf2-frame-tailcall.c: Revert.
12643 * dwarf-index-write.h: Revert.
12644 * dwarf-index-write.c: Revert.
12645 * dwarf-index-common.c: Revert.
12646 * dwarf-index-cache.h: Revert.
12647 * dwarf-index-cache.c: Revert.
12648 * dummy-frame.c: Revert.
12649 * dtrace-probe.c: Revert.
12650 * disasm.h: Revert.
12651 * disasm.c: Revert.
12652 * disasm-selftests.c: Revert.
12653 * dictionary.c: Revert.
12654 * dicos-tdep.c: Revert.
12655 * demangle.c: Revert.
12656 * dcache.h: Revert.
12657 * dcache.c: Revert.
12658 * darwin-nat.h: Revert.
12659 * darwin-nat.c: Revert.
12660 * darwin-nat-info.c: Revert.
12661 * d-valprint.c: Revert.
12662 * d-namespace.c: Revert.
12663 * d-lang.c: Revert.
12665 * csky-tdep.c: Revert.
12666 * csky-linux-tdep.c: Revert.
12667 * cris-tdep.c: Revert.
12668 * cris-linux-tdep.c: Revert.
12669 * cp-valprint.c: Revert.
12670 * cp-support.c: Revert.
12671 * cp-namespace.c: Revert.
12672 * cp-abi.c: Revert.
12673 * corelow.c: Revert.
12674 * corefile.c: Revert.
12675 * continuations.c: Revert.
12676 * completer.h: Revert.
12677 * completer.c: Revert.
12678 * complaints.c: Revert.
12679 * coffread.c: Revert.
12680 * coff-pe-read.c: Revert.
12681 * cli-out.h: Revert.
12682 * cli-out.c: Revert.
12683 * charset.c: Revert.
12684 * c-varobj.c: Revert.
12685 * c-valprint.c: Revert.
12686 * c-typeprint.c: Revert.
12687 * c-lang.c: Revert.
12688 * buildsym.c: Revert.
12689 * buildsym-legacy.c: Revert.
12690 * build-id.h: Revert.
12691 * build-id.c: Revert.
12692 * btrace.c: Revert.
12693 * bsd-uthread.c: Revert.
12694 * breakpoint.h: Revert.
12695 * breakpoint.c: Revert.
12696 * break-catch-throw.c: Revert.
12697 * break-catch-syscall.c: Revert.
12698 * break-catch-sig.c: Revert.
12699 * blockframe.c: Revert.
12701 * bfin-tdep.c: Revert.
12702 * bfin-linux-tdep.c: Revert.
12703 * bfd-target.c: Revert.
12704 * bcache.c: Revert.
12705 * ax-general.c: Revert.
12706 * ax-gdb.h: Revert.
12707 * ax-gdb.c: Revert.
12708 * avr-tdep.c: Revert.
12710 * auto-load.c: Revert.
12711 * arm-wince-tdep.c: Revert.
12712 * arm-tdep.c: Revert.
12713 * arm-symbian-tdep.c: Revert.
12714 * arm-pikeos-tdep.c: Revert.
12715 * arm-obsd-tdep.c: Revert.
12716 * arm-nbsd-tdep.c: Revert.
12717 * arm-nbsd-nat.c: Revert.
12718 * arm-linux-tdep.c: Revert.
12719 * arm-linux-nat.c: Revert.
12720 * arm-fbsd-tdep.c: Revert.
12721 * arm-fbsd-nat.c: Revert.
12722 * arm-bsd-tdep.c: Revert.
12723 * arch-utils.c: Revert.
12724 * arc-tdep.c: Revert.
12725 * arc-newlib-tdep.c: Revert.
12726 * annotate.h: Revert.
12727 * annotate.c: Revert.
12728 * amd64-windows-tdep.c: Revert.
12729 * amd64-windows-nat.c: Revert.
12730 * amd64-tdep.c: Revert.
12731 * amd64-sol2-tdep.c: Revert.
12732 * amd64-obsd-tdep.c: Revert.
12733 * amd64-obsd-nat.c: Revert.
12734 * amd64-nbsd-tdep.c: Revert.
12735 * amd64-nbsd-nat.c: Revert.
12736 * amd64-nat.c: Revert.
12737 * amd64-linux-tdep.c: Revert.
12738 * amd64-linux-nat.c: Revert.
12739 * amd64-fbsd-tdep.c: Revert.
12740 * amd64-fbsd-nat.c: Revert.
12741 * amd64-dicos-tdep.c: Revert.
12742 * amd64-darwin-tdep.c: Revert.
12743 * amd64-bsd-nat.c: Revert.
12744 * alpha-tdep.c: Revert.
12745 * alpha-obsd-tdep.c: Revert.
12746 * alpha-nbsd-tdep.c: Revert.
12747 * alpha-mdebug-tdep.c: Revert.
12748 * alpha-linux-tdep.c: Revert.
12749 * alpha-linux-nat.c: Revert.
12750 * alpha-bsd-tdep.c: Revert.
12751 * alpha-bsd-nat.c: Revert.
12752 * aix-thread.c: Revert.
12754 * addrmap.c: Revert.
12755 * ada-varobj.c: Revert.
12756 * ada-valprint.c: Revert.
12757 * ada-typeprint.c: Revert.
12758 * ada-tasks.c: Revert.
12759 * ada-lang.c: Revert.
12760 * aarch64-tdep.c: Revert.
12761 * aarch64-ravenscar-thread.c: Revert.
12762 * aarch64-newlib-tdep.c: Revert.
12763 * aarch64-linux-tdep.c: Revert.
12764 * aarch64-linux-nat.c: Revert.
12765 * aarch64-fbsd-tdep.c: Revert.
12766 * aarch64-fbsd-nat.c: Revert.
12767 * aarch32-linux-nat.c: Revert.
12769 2019-04-05 Tom Tromey <tom@tromey.com>
12771 * ft32-tdep.c: Sort headers.
12772 * frv-tdep.c: Sort headers.
12773 * frv-linux-tdep.c: Sort headers.
12774 * frame.c: Sort headers.
12775 * frame-unwind.c: Sort headers.
12776 * frame-base.c: Sort headers.
12777 * fork-child.c: Sort headers.
12778 * findvar.c: Sort headers.
12779 * findcmd.c: Sort headers.
12780 * filesystem.c: Sort headers.
12781 * filename-seen-cache.h: Sort headers.
12782 * filename-seen-cache.c: Sort headers.
12783 * fbsd-tdep.c: Sort headers.
12784 * fbsd-nat.h: Sort headers.
12785 * fbsd-nat.c: Sort headers.
12786 * f-valprint.c: Sort headers.
12787 * f-typeprint.c: Sort headers.
12788 * f-lang.c: Sort headers.
12789 * extension.h: Sort headers.
12790 * extension.c: Sort headers.
12791 * extension-priv.h: Sort headers.
12792 * expprint.c: Sort headers.
12793 * exec.h: Sort headers.
12794 * exec.c: Sort headers.
12795 * exceptions.c: Sort headers.
12796 * event-top.c: Sort headers.
12797 * event-loop.c: Sort headers.
12798 * eval.c: Sort headers.
12799 * elfread.c: Sort headers.
12800 * dwarf2read.h: Sort headers.
12801 * dwarf2read.c: Sort headers.
12802 * dwarf2loc.c: Sort headers.
12803 * dwarf2expr.h: Sort headers.
12804 * dwarf2expr.c: Sort headers.
12805 * dwarf2-frame.c: Sort headers.
12806 * dwarf2-frame-tailcall.c: Sort headers.
12807 * dwarf-index-write.h: Sort headers.
12808 * dwarf-index-write.c: Sort headers.
12809 * dwarf-index-common.c: Sort headers.
12810 * dwarf-index-cache.h: Sort headers.
12811 * dwarf-index-cache.c: Sort headers.
12812 * dummy-frame.c: Sort headers.
12813 * dtrace-probe.c: Sort headers.
12814 * disasm.h: Sort headers.
12815 * disasm.c: Sort headers.
12816 * disasm-selftests.c: Sort headers.
12817 * dictionary.c: Sort headers.
12818 * dicos-tdep.c: Sort headers.
12819 * demangle.c: Sort headers.
12820 * dcache.h: Sort headers.
12821 * dcache.c: Sort headers.
12822 * darwin-nat.h: Sort headers.
12823 * darwin-nat.c: Sort headers.
12824 * darwin-nat-info.c: Sort headers.
12825 * d-valprint.c: Sort headers.
12826 * d-namespace.c: Sort headers.
12827 * d-lang.c: Sort headers.
12828 * ctf.c: Sort headers.
12829 * csky-tdep.c: Sort headers.
12830 * csky-linux-tdep.c: Sort headers.
12831 * cris-tdep.c: Sort headers.
12832 * cris-linux-tdep.c: Sort headers.
12833 * cp-valprint.c: Sort headers.
12834 * cp-support.c: Sort headers.
12835 * cp-namespace.c: Sort headers.
12836 * cp-abi.c: Sort headers.
12837 * corelow.c: Sort headers.
12838 * corefile.c: Sort headers.
12839 * continuations.c: Sort headers.
12840 * completer.h: Sort headers.
12841 * completer.c: Sort headers.
12842 * complaints.c: Sort headers.
12843 * coffread.c: Sort headers.
12844 * coff-pe-read.c: Sort headers.
12845 * cli-out.h: Sort headers.
12846 * cli-out.c: Sort headers.
12847 * charset.c: Sort headers.
12848 * c-varobj.c: Sort headers.
12849 * c-valprint.c: Sort headers.
12850 * c-typeprint.c: Sort headers.
12851 * c-lang.c: Sort headers.
12852 * buildsym.c: Sort headers.
12853 * buildsym-legacy.c: Sort headers.
12854 * build-id.h: Sort headers.
12855 * build-id.c: Sort headers.
12856 * btrace.c: Sort headers.
12857 * bsd-uthread.c: Sort headers.
12858 * breakpoint.h: Sort headers.
12859 * breakpoint.c: Sort headers.
12860 * break-catch-throw.c: Sort headers.
12861 * break-catch-syscall.c: Sort headers.
12862 * break-catch-sig.c: Sort headers.
12863 * blockframe.c: Sort headers.
12864 * block.c: Sort headers.
12865 * bfin-tdep.c: Sort headers.
12866 * bfin-linux-tdep.c: Sort headers.
12867 * bfd-target.c: Sort headers.
12868 * bcache.c: Sort headers.
12869 * ax-general.c: Sort headers.
12870 * ax-gdb.h: Sort headers.
12871 * ax-gdb.c: Sort headers.
12872 * avr-tdep.c: Sort headers.
12873 * auxv.c: Sort headers.
12874 * auto-load.c: Sort headers.
12875 * arm-wince-tdep.c: Sort headers.
12876 * arm-tdep.c: Sort headers.
12877 * arm-symbian-tdep.c: Sort headers.
12878 * arm-pikeos-tdep.c: Sort headers.
12879 * arm-obsd-tdep.c: Sort headers.
12880 * arm-nbsd-tdep.c: Sort headers.
12881 * arm-nbsd-nat.c: Sort headers.
12882 * arm-linux-tdep.c: Sort headers.
12883 * arm-linux-nat.c: Sort headers.
12884 * arm-fbsd-tdep.c: Sort headers.
12885 * arm-fbsd-nat.c: Sort headers.
12886 * arm-bsd-tdep.c: Sort headers.
12887 * arch-utils.c: Sort headers.
12888 * arc-tdep.c: Sort headers.
12889 * arc-newlib-tdep.c: Sort headers.
12890 * annotate.h: Sort headers.
12891 * annotate.c: Sort headers.
12892 * amd64-windows-tdep.c: Sort headers.
12893 * amd64-windows-nat.c: Sort headers.
12894 * amd64-tdep.c: Sort headers.
12895 * amd64-sol2-tdep.c: Sort headers.
12896 * amd64-obsd-tdep.c: Sort headers.
12897 * amd64-obsd-nat.c: Sort headers.
12898 * amd64-nbsd-tdep.c: Sort headers.
12899 * amd64-nbsd-nat.c: Sort headers.
12900 * amd64-nat.c: Sort headers.
12901 * amd64-linux-tdep.c: Sort headers.
12902 * amd64-linux-nat.c: Sort headers.
12903 * amd64-fbsd-tdep.c: Sort headers.
12904 * amd64-fbsd-nat.c: Sort headers.
12905 * amd64-dicos-tdep.c: Sort headers.
12906 * amd64-darwin-tdep.c: Sort headers.
12907 * amd64-bsd-nat.c: Sort headers.
12908 * alpha-tdep.c: Sort headers.
12909 * alpha-obsd-tdep.c: Sort headers.
12910 * alpha-nbsd-tdep.c: Sort headers.
12911 * alpha-mdebug-tdep.c: Sort headers.
12912 * alpha-linux-tdep.c: Sort headers.
12913 * alpha-linux-nat.c: Sort headers.
12914 * alpha-bsd-tdep.c: Sort headers.
12915 * alpha-bsd-nat.c: Sort headers.
12916 * aix-thread.c: Sort headers.
12917 * agent.c: Sort headers.
12918 * addrmap.c: Sort headers.
12919 * ada-varobj.c: Sort headers.
12920 * ada-valprint.c: Sort headers.
12921 * ada-typeprint.c: Sort headers.
12922 * ada-tasks.c: Sort headers.
12923 * ada-lang.c: Sort headers.
12924 * aarch64-tdep.c: Sort headers.
12925 * aarch64-ravenscar-thread.c: Sort headers.
12926 * aarch64-newlib-tdep.c: Sort headers.
12927 * aarch64-linux-tdep.c: Sort headers.
12928 * aarch64-linux-nat.c: Sort headers.
12929 * aarch64-fbsd-tdep.c: Sort headers.
12930 * aarch64-fbsd-nat.c: Sort headers.
12931 * aarch32-linux-nat.c: Sort headers.
12933 2019-04-04 Tom Tromey <tom@tromey.com>
12935 * varobj.c (varobj_create): Update.
12936 * rust-exp.y (struct rust_parser) <update_innermost_block,
12937 lookup_symbol>: New methods.
12938 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12940 (rust_parser::rust_lookup_type)
12941 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12942 * printcmd.c (display_command, do_one_display): Update.
12943 * parser-defs.h (struct parser_state) <parser_state>: Add
12944 "tracker" parameter.
12945 (block_tracker): New member.
12946 (class innermost_block_tracker) <innermost_block_tracker>: Add
12948 <reset>: Remove method.
12949 (innermost_block): Don't declare.
12950 (null_post_parser): Update.
12951 * parse.c (innermost_block): Remove global.
12952 (write_dollar_variable): Update.
12953 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12954 Remove "tracker_types" parameter.
12955 (parse_expression): Add "tracker" parameter.
12956 (parse_expression_for_completion): Update.
12957 (null_post_parser): Add "tracker" parameter.
12958 * p-exp.y: Update rules.
12959 * m2-exp.y: Update rules.
12960 * language.h (struct language_defn) <la_post_parser>: Add
12961 "tracker" parameter.
12962 * go-exp.y: Update rules.
12963 * f-exp.y: Update rules.
12964 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12966 * d-exp.y: Update rules.
12967 * c-exp.y: Update rules.
12968 * breakpoint.c (set_breakpoint_condition): Create an
12969 innermost_block_tracker.
12970 (watch_command_1): Likewise.
12971 * ada-lang.c (resolve): Add "tracker" parameter.
12972 (resolve_subexp): Likewise.
12973 * ada-exp.y (write_var_from_sym): Update.
12975 2019-04-04 Tom Tromey <tom@tromey.com>
12977 * type-stack.h: New file.
12978 * type-stack.c: New file.
12979 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12981 (insert_into_type_stack, insert_type, push_type, push_type_int)
12982 (insert_type_address_space, pop_type, pop_type_int)
12983 (pop_typelist, pop_type_stack, append_type_stack)
12984 (push_type_stack, get_type_stack, push_typelist)
12985 (follow_type_instance_flags, follow_types): Don't declare.
12986 * parse.c (type_stack): Remove global.
12987 (parse_exp_in_context): Update.
12988 (insert_into_type_stack, insert_type, push_type, push_type_int)
12989 (insert_type_address_space, pop_type, pop_type_int)
12990 (pop_typelist, pop_type_stack, append_type_stack)
12991 (push_type_stack, get_type_stack, push_typelist)
12992 (follow_type_instance_flags, follow_types): Remove (moved to
12994 * f-exp.y (type_stack): New global.
12996 (push_kind_type, f_parse): Update.
12997 * d-exp.y (type_stack): New global.
13000 * c-exp.y (struct c_parse_state) <type_stack>: New member.
13002 * Makefile.in (COMMON_SFILES): Add type-stack.c.
13003 (HFILES_NO_SRCDIR): Add type-stack.h.
13005 2019-04-04 Tom Tromey <tom@tromey.com>
13007 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
13008 (rust_parser::convert_ast_to_expression, rust_parse)
13009 (rust_lex_test_completion, rust_lex_tests): Update.
13010 * parser-defs.h (struct expr_completion_state): New.
13011 (struct parser_state) <parser_state>: Add completion parameter.
13012 <mark_struct_expression, mark_completion_tag>: New methods.
13013 <parse_completion, m_completion_state>: New members.
13014 (prefixify_expression, null_post_parser): Update.
13015 (mark_struct_expression, mark_completion_tag): Don't declare.
13016 * parse.c (parse_completion, expout_last_struct)
13017 (expout_tag_completion_type, expout_completion_name): Remove
13019 (parser_state::mark_struct_expression)
13020 (parser_state::mark_completion_tag): Now methods.
13021 (prefixify_expression): Add last_struct parameter.
13022 (prefixify_subexp): Likewise.
13023 (parse_exp_1): Update.
13024 (parse_exp_in_context): Add cstate parameter. Update.
13025 (parse_expression_for_completion): Create an
13026 expr_completion_state.
13027 (null_post_parser): Add "completion" parameter.
13028 * p-exp.y: Update rules.
13030 * language.h (struct language_defn) <la_post_parser>: Add
13031 "completing" parameter.
13032 * go-exp.y: Update rules.
13033 (lex_one_token): Update.
13034 * expression.h (parse_completion): Don't declare.
13035 * d-exp.y: Update rules.
13036 (lex_one_token): Update rules.
13037 * c-exp.y: Update rules.
13038 (lex_one_token): Update.
13039 * ada-lang.c (resolve): Add "parse_completion" parameter.
13040 (resolve_subexp): Likewise.
13041 (ada_resolve_function): Likewise.
13043 2019-04-04 Tom Tromey <tom@tromey.com>
13045 * parser-defs.h (struct parser_state) <start_arglist,
13046 end_arglist>: New methods.
13047 <arglist_len, m_funcall_chain>: New members.
13048 (arglist_len, start_arglist, end_arglist): Don't declare.
13049 * parse.c (arglist_len, funcall_chain): Remove global.
13050 (start_arglist, end_arglist): Remove functions.
13051 (parse_exp_in_context): Update.
13052 * p-exp.y: Update rules.
13053 * m2-exp.y: Update rules.
13054 * go-exp.y: Update rules.
13055 * f-exp.y: Update rules.
13056 * d-exp.y: Update rules.
13057 * c-exp.y: Update rules.
13059 2019-04-04 Tom Tromey <tom@tromey.com>
13061 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
13062 lex_operator, push_back>: New methods.
13064 (rust_parser::lex_hex, lex_escape): Rename and update.
13065 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
13066 (rust_parser::lex_operator): Rename and update.
13067 (rust_parser::lex_number, rustyylex, rustyyerror)
13068 (rust_lex_test_init, rust_lex_test_sequence)
13069 (rust_lex_test_push_back, rust_lex_tests): Update.
13070 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
13072 <lexptr, prev_lexptr>: New members.
13073 (lexptr, prev_lexptr): Don't declare.
13074 * parse.c (lexptr, prev_lexptr): Remove globals.
13075 (parse_exp_in_context): Update.
13076 * p-exp.y (yylex, yyerror): Update.
13077 * m2-exp.y (parse_number, yylex, yyerror): Update.
13078 * go-exp.y (lex_one_token, yyerror): Update.
13079 * f-exp.y (match_string_literal, yylex, yyerror): Update.
13080 * d-exp.y (lex_one_token, yyerror): Update.
13081 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
13082 (lex_one_token, yyerror): Update.
13083 * ada-lex.l (YY_INPUT): Update.
13084 (rewind_to_char): Update.
13085 * ada-exp.y (yyerror): Update.
13087 2019-04-04 Tom Tromey <tom@tromey.com>
13089 * rust-exp.y (rustyylex, rust_lex_tests): Update.
13090 * parser-defs.h (struct parser_state) <parser_state>: Add new
13092 <comma_terminates>: New member.
13093 (comma_terminates): Don't declare global.
13094 * parse.c (comma_terminates): Remove global.
13095 (parse_exp_in_context): Update.
13096 * p-exp.y (yylex): Update.
13097 * m2-exp.y (yylex): Update.
13098 * go-exp.y (lex_one_token): Update.
13099 * f-exp.y (yylex): Update.
13100 * d-exp.y (lex_one_token): Update.
13101 * c-exp.y (lex_one_token): Update.
13102 * ada-lex.l: Update.
13104 2019-04-04 Tom Tromey <tom@tromey.com>
13106 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
13107 (rustyylex, rust_lex_test_init, rust_lex_test_one)
13108 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
13109 * parser-defs.h (paren_depth): Don't declare.
13110 * parse.c (paren_depth): Remove global.
13111 (parse_exp_in_context): Update.
13112 * p-exp.y (paren_depth): New global.
13113 (pascal_parse): Initialize it.
13114 * m2-exp.y (paren_depth): New global.
13115 (m2_parse): Initialize it.
13116 * go-exp.y (paren_depth): New global.
13117 (go_parse): Initialize it.
13118 * f-exp.y (paren_depth): New global.
13119 (f_parse): Initialize it.
13120 * d-exp.y (paren_depth): New global.
13121 (d_parse): Initialize it.
13122 * c-exp.y (paren_depth): New global.
13123 (c_parse): Initialize it.
13124 * ada-lex.l (paren_depth): New global.
13125 (lexer_init): Initialize it.
13127 2019-04-04 Tom Tromey <tom@tromey.com>
13129 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
13130 (rust_parser::convert_ast_to_type)
13131 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
13132 * parser-defs.h (struct parser_state) <parser_state>: Add
13133 parameters. Initialize new members.
13134 <expression_context_block, expression_context_pc>: New members.
13135 * parse.c (expression_context_block, expression_context_pc):
13137 (parse_exp_in_context): Update.
13138 * p-exp.y: Update all rules.
13140 * m2-exp.y: Update all rules.
13142 * go-exp.y (yylex): Update.
13143 * f-exp.y (yylex): Update.
13144 * d-exp.y: Update all rules.
13146 * c-exp.y: Update all rules.
13147 (lex_one_token, classify_name, yylex, c_parse): Update.
13148 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
13150 2019-04-04 Tom Tromey <tom@tromey.com>
13152 * gdbarch.h, gdbarch.c: Rebuild.
13153 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
13155 (struct stap_parse_info): Replace "parser_state" with
13157 * parser-defs.h (struct expr_builder): Rename from "parser_state".
13158 (parser_state): New class.
13159 * parse.c (expr_builder): Rename.
13160 (expr_builder::release): Rename.
13161 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
13162 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
13163 (write_exp_elt_longcst, write_exp_elt_floatcst)
13164 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
13165 (write_exp_string_vector, write_exp_bitstring)
13166 (write_exp_msymbol, mark_struct_expression)
13167 (write_dollar_variable)
13168 (insert_type_address_space, increase_expout_size): Replace
13169 "parser_state" with "expr_builder".
13170 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
13171 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
13172 "parser_state" with "expr_builder".
13174 2019-04-04 Tom Tromey <tom@tromey.com>
13176 * rust-exp.y: Replace "parse_language" with method call.
13178 (yylex): Replace "parse_language" with method call.
13180 (yylex): Replace "parse_language" with method call.
13181 * go-exp.y (classify_name): Replace "parse_language" with method
13183 * f-exp.y (yylex): Replace "parse_language" with method call.
13184 * d-exp.y (lex_one_token): Replace "parse_language" with method
13187 (lex_one_token, classify_name, yylex): Replace "parse_language"
13189 * ada-exp.y (find_primitive_type, type_char)
13190 (type_system_address): Replace "parse_language" with method call.
13192 2019-04-04 Tom Tromey <tom@tromey.com>
13194 * rust-exp.y: Replace "parse_gdbarch" with method call.
13195 * parse.c (write_dollar_variable, insert_type_address_space):
13196 Replace "parse_gdbarch" with method call.
13197 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
13199 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
13201 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
13202 "parse_gdbarch" with method call.
13203 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
13205 * f-exp.y (parse_type, parse_f_type, yylex): Replace
13206 "parse_gdbarch" with method call.
13207 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
13208 "parse_gdbarch" with method call.
13209 * c-exp.y (parse_type, parse_number, classify_name): Replace
13210 "parse_gdbarch" with method call.
13211 * ada-lex.l: Replace "parse_gdbarch" with method call.
13212 * ada-exp.y (parse_type, find_primitive_type, type_char)
13213 (type_system_address): Replace "parse_gdbarch" with method call.
13215 2019-04-04 Tom Tromey <tom@tromey.com>
13217 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
13218 * stap-probe.c (stap_parse_argument): Update.
13219 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
13220 initial_size parameter.
13221 * rust-exp.y (rust_lex_tests): Update.
13222 * parse.c (parser_state): Update.
13223 (parse_exp_in_context): Update.
13224 * parser-defs.h (struct parser_state) <parser_state>: Remove
13225 "initial_size" parameter.
13227 2019-04-04 Tom Tromey <tom@tromey.com>
13229 * parser-defs.h (increase_expout_size): Don't declare.
13230 * parse.c (increase_expout_size): Now static.
13232 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
13234 * gnu-nat.c (gnu_nat_target::wait): Fix
13235 target_waitstatus_to_string call.
13237 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13239 * eval.c (evaluate_subexp_standard): Handle internal functions
13240 during Fortran function call handling.
13242 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
13244 * NEWS: Mention new internal functions.
13245 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
13246 (read_base_type): Use dwarf2_init_complex_target_type.
13247 * value.c (creal_internal_fn): New function.
13248 (cimag_internal_fn): New function.
13249 (_initialize_values): Register new internal functions.
13251 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13253 * infrun.c (stop_all_threads): If debug_infrun, always
13254 trace the wait status after wait_one, using
13255 target_waitstatus_to_string and target_pid_to_str.
13256 (handle_inferior_event): Replace various trace of
13257 wait status kind by a single trace.
13258 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
13259 wait status kind image by target_waitstatus_to_string.
13260 * target/waitstatus.c (target_waitstatus_to_string): Fix
13263 2019-04-01 Tom Tromey <tromey@adacore.com>
13266 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
13268 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
13269 Pedro Alves <palves@redhat.com>
13271 * top.c (quit_force): Call 'finalize_values'.
13272 * value.c (finalize_values): New function.
13273 * value.h (finalize_values): Declare.
13275 2019-03-30 Eli Zaretskii <eliz@gnu.org>
13277 * NEWS: Announce $_gdb_major and $_gdb_minor.
13279 * top.c (init_gdb_version_vars): New function.
13280 (gdb_init): Call init_gdb_version_vars.
13282 2019-03-29 Tom Tromey <tromey@adacore.com>
13284 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
13285 help text. Remove dead code.
13287 2019-03-29 Keith Seitz <keiths@redhat.com>
13289 From Siddhesh Poyarekar:
13290 * f-lang.h (f77_get_upperbound): Return LONGEST.
13291 (f77_get_lowerbound): Likewise.
13292 * f-typeprint.c (f_type_print_varspec_suffix): Expand
13293 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
13295 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
13296 plongest to format print it.
13297 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
13298 (f77_get_upperbound): Likewise.
13299 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
13300 LOWER_BOUND to LONGEST.
13301 (f77_create_arrayprint_offset_tbl): Likewise.
13303 2019-03-29 Keith Seitz <keiths@redhat.com>
13305 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
13306 %s/pulongest for TYPE_LENGTH instead of %d in format
13308 * ada-typerint.c (ada_print_type): Likewise.
13309 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
13310 * compile/compile-c-support.c (generate_register_struct): Likewise.
13311 * gdbtypes.c (recursive_dump_type): Likewise.
13312 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
13313 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
13314 instead of %d in format strings.
13315 * riscv-tdep.c (riscv_type_alignment): Cast second argument
13316 to std::min to ULONGEST.
13317 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
13318 instead of %d in format strings.
13319 * tracepoint.c (info_scope_command): Likewise.
13320 * typeprint.c (print_offset_data::update)
13321 (print_offset_data::finish): Likewise.
13322 * xtensa-tdep.c (xtensa_store_return_value)
13323 (xtensa_push_dummy_call): Likewise.
13325 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
13327 * windows-nat.c (display_selector): Fixed format specifications
13330 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13332 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
13334 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
13336 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
13337 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
13338 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
13339 (nios2_linux_init_abi): Install it.
13341 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13343 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
13345 2019-03-28 Alan Hayward <alan.hayward@arm.com>
13347 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
13349 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13350 Tom Tromey <tromey@adacore.com>
13352 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
13354 2019-03-26 Joel Brobecker <brobecker@adacore.com>
13356 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
13357 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
13358 method to compute the bounds of range types. Also print "[evaluated]"
13359 if the bounds' values come from a dynamic evaluation.
13361 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
13363 * cp-valprint.c (cp_print_value_fields): Don't print trailing
13364 whitespace when pretty printing is on.
13366 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13368 * ppc-linux-nat.c: Add include.
13370 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13372 * NEWS: Mention AArch64 Pointer Authentication.
13374 2019-03-26 Alan Hayward <alan.hayward@arm.com>
13376 * arm-linux-nat.c: Add include.
13378 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
13380 * source-cache.c (source_cache::get_source_lines): Re-read
13381 fullname after calling open_source_file.
13383 2019-03-25 John Baldwin <jhb@FreeBSD.org>
13385 * NEWS: Mention TLS support for FreeBSD.
13387 2019-03-25 Tom Tromey <tromey@adacore.com>
13389 * minsyms.c (BUNCH_SIZE): Update comment.
13390 (~minimal_symbol_reader): Remove old comment.
13391 (compact_minimal_symbols): Update comment.
13392 (minimal_symbol_reader::install): Remove old comment. Update
13395 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13397 * s390-linux-nat.c: Add include.
13399 2019-03-25 Alan Hayward <alan.hayward@arm.com>
13401 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
13402 Call linux_get_hwcap.
13403 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
13405 (aarch64_linux_get_hwcap): Remove function.
13406 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
13408 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
13410 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
13411 * linux-tdep.c (linux_get_hwcap): Add function.
13412 (linux_get_hwcap2): Likewise.
13413 * linux-tdep.h (linux_get_hwcap): Add declaration.
13414 (linux_get_hwcap2): Likewise.
13415 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
13416 (ppc_linux_get_hwcap2): Likewise.
13417 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
13419 (ppc_linux_nat_target::insert_watchpoint): Likewise.
13420 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
13421 (ppc_linux_nat_target::read_description): Likewise.
13422 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
13423 * s390-linux-nat.c: Likewise.
13424 * s390-linux-tdep.c (s390_core_read_description): Likewise.
13426 2019-03-24 Tom Tromey <tom@tromey.com>
13428 * ada-lang.c (standard_lookup): Simplify initialization.
13429 (ada_lookup_symbol_nonlocal): Simplify return.
13430 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
13431 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
13432 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
13433 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
13435 * solib.c (solib_global_lookup): Simplify.
13436 * symtab.c (null_block_symbol): Remove.
13437 (symbol_cache_lookup): Simplify returns.
13438 (lookup_language_this): Simplify returns.
13439 (lookup_symbol_aux): Simplify return.
13440 (lookup_local_symbol): Simplify returns.
13441 (lookup_global_symbol_from_objfile): Simplify return.
13442 (lookup_symbol_in_objfile_symtabs)
13443 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
13444 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
13445 (lookup_static_symbol, lookup_global_symbol): Simplify return.
13446 * cp-namespace.c (cp_lookup_bare_symbol)
13447 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
13448 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
13449 (cp_lookup_nested_symbol): Don't use null_block_symbol.
13450 (cp_lookup_symbol_via_imports): Simplify initialization.
13451 (find_symbol_in_baseclass): Likewise.
13452 * symtab.h (null_block_symbol): Remove.
13453 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
13454 (d_lookup_nested_symbol, d_lookup_symbol_imports)
13455 (d_lookup_symbol_module): Likewise.
13456 (find_symbol_in_baseclass): Simplify initialization.
13458 2019-03-24 Tom Tromey <tom@tromey.com>
13460 * expression.h: Don't include symtab.h.
13461 (struct block): Forward declare.
13463 2019-03-24 Tom Tromey <tom@tromey.com>
13465 * c-exp.y (typebase): Remove casts.
13466 * gdbtypes.c (lookup_unsigned_typename, )
13467 (lookup_signed_typename): Remove cast.
13468 * eval.c (parse_to_comma_and_eval): Remove cast.
13469 * parse.c (write_dollar_variable): Remove cast.
13470 * block.h (struct block) <superblock>: Now const.
13471 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
13472 * psymtab.c (psym_map_matching_symbols): Make "block" const.
13473 (map_block): Make "block" const.
13474 * symfile.h (struct quick_symbol_functions)
13475 <map_matching_symbols>: Constify block argument to "callback".
13476 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
13478 (find_pc_sect_compunit_symtab): Make "b" const.
13479 (find_symbol_at_address): Likewise.
13480 (search_symbols): Likewise.
13481 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
13482 (dw2_debug_names_lookup_symbol): Likewise.
13483 (dw2_map_matching_symbols): Update.
13484 * p-valprint.c (pascal_val_print): Remove "block".
13485 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
13486 (aux_add_nonlocal_symbols): Make "block" const.
13487 (resolve_subexp): Remove cast.
13488 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
13490 (iterate_over_file_blocks): Likewise.
13491 * f-exp.y (%union) <bval>: Remove.
13492 * coffread.c (patch_opaque_types): Make "b" const.
13493 * spu-tdep.c (spu_catch_start): Make "block" const.
13494 * c-valprint.c (print_unpacked_pointer): Remove "block".
13495 * symmisc.c (dump_symtab_1): Make "b" const.
13496 (block_depth): Make "block" const.
13497 * d-exp.y (%union) <bval>: Remove.
13498 * cp-support.h (cp_lookup_rtti_type): Update.
13499 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
13500 * psymtab.c (psym_lookup_symbol): Make "block" const.
13501 (maintenance_check_psymtabs): Make "b" const.
13502 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
13503 (enumerate_locals, enumerate_args): Update.
13504 * python/py-symtab.c (stpy_global_block): Make "block" const.
13505 (stpy_static_block): Likewise.
13506 * inline-frame.c (block_starting_point_at): Make "new_block"
13508 * block.c (find_block_in_blockvector): Make return type const.
13509 (blockvector_for_pc_sect): Make "b" const.
13510 (find_block_in_blockvector): Make "b" const.
13512 2019-03-23 Tom Tromey <tom@tromey.com>
13514 * varobj.c (varobj_create): Update.
13515 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13516 * printcmd.c (display_command, do_one_display): Don't reset
13518 * parser-defs.h (enum innermost_block_tracker_type): Move to
13520 (innermost_block): Update comment.
13521 * parse.c (parse_exp_1): Add tracker_types parameter.
13522 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13523 tracker_types parameter. Reset innermost_block.
13524 (parse_exp_in_context): Remove.
13525 (parse_expression_for_completion): Update.
13526 * objfiles.c (~objfile): Don't reset expression_context_block or
13528 * expression.h (enum innermost_block_tracker_type): Move from
13530 (parse_exp_1): Add tracker_types parameter.
13531 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13532 reset innermost_block.
13534 2019-03-23 Tom Tromey <tom@tromey.com>
13536 * objfiles.h: Include bcache.h.
13538 2019-03-23 Tom Tromey <tom@tromey.com>
13540 * linespec.c (get_current_search_block): Use
13541 scoped_restore_current_language.
13542 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13544 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13545 Jiong Wang <jiong.wang@arm.com>
13547 * aarch64-linux-tdep.c
13548 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13550 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13552 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13553 Jiong Wang <jiong.wang@arm.com>
13555 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13557 (aarch64_analyze_prologue_test): Add PACIASP test.
13558 (aarch64_prologue_prev_register): Unmask PC value.
13560 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13561 Jiong Wang <jiong.wang@arm.com>
13563 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13564 (aarch64_dwarf2_prev_register): Unmask PC value.
13565 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13566 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13567 DW_CFA_AARCH64_negate_ra_state.
13568 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13570 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13571 Jiong Wang <jiong.wang@arm.com>
13573 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13575 (aarch64_pseudo_register_name): Likewise.
13576 (aarch64_pseudo_register_type): Likewise.
13577 (aarch64_pseudo_register_reggroup_p): Likewise.
13578 (aarch64_gdbarch_init): Add pauth registers.
13579 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13580 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13581 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13582 (struct gdbarch_tdep): Add regnum for ra_state.
13584 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13585 Jiong Wang <jiong.wang@arm.com>
13587 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13589 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13590 Jiong Wang <jiong.wang@arm.com>
13592 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13594 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13595 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13596 (aarch64_gdbarch_init): Add puth registers.
13597 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13598 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13599 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13601 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13602 Jiong Wang <jiong.wang@arm.com>
13604 * aarch64-linux-nat.c
13605 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13606 * aarch64-linux-tdep.c
13607 (aarch64_linux_core_read_description): Likewise.
13608 (aarch64_linux_get_hwcap): New function.
13609 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13610 (aarch64_linux_get_hwcap): New declaration.
13612 2019-03-22 Alan Hayward <alan.hayward@arm.com>
13613 Jiong Wang <jiong.wang@arm.com>
13615 * aarch64-linux-nat.c
13616 (aarch64_linux_nat_target::read_description): Add pauth param.
13617 * aarch64-linux-tdep.c
13618 (aarch64_linux_core_read_description): Likewise.
13619 * aarch64-tdep.c (struct target_desc): Add in pauth.
13620 (aarch64_read_description): Add pauth param.
13621 (aarch64_gdbarch_init): Likewise.
13622 * aarch64-tdep.h (aarch64_read_description): Likewise.
13623 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13624 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13625 * features/Makefile: Add new files.
13626 * features/aarch64-pauth.c: New file.
13627 * features/aarch64-pauth.xml: New file.
13629 2019-03-20 Tom Tromey <tromey@adacore.com>
13631 * infrun.c (handle_inferior_event): Rename from
13632 handle_inferior_event_1. Create a scoped_value_mark.
13633 (handle_inferior_event): Remove.
13635 2019-03-19 Tom Tromey <tromey@adacore.com>
13637 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13638 * infrun.h (print_stop_event): Add "displays" parameter.
13639 * infrun.c (print_stop_event): Add "displays" parameter.
13641 2019-03-19 Pedro Alves <palves@redhat.com>
13643 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13644 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13645 to -1. Fix TABs vs spaces.
13646 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13647 * tui/tui-out.h (tui_ui_out) Add intro comments.
13648 <m_line, m_start_of_line>: In-class initialize, and add describing
13651 2019-03-18 Alan Hayward <alan.hayward@arm.com>
13653 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13655 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13657 2019-03-18 Pedro Alves <palves@redhat.com>
13658 Eli Zaretskii <eliz@gnu.org>
13660 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13661 m_line and m_start_of_line.
13663 2019-03-18 Eli Zaretskii <eliz@gnu.org>
13665 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13666 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13667 it returns a newline. This fixes a regression in TU mode, whereby
13668 the next line is output on the same screen line as the user input.
13670 2019-03-18 Tom Tromey <tromey@adacore.com>
13672 * minsyms.c (minimal_symbol_reader::install): Remove call to
13675 2019-03-18 Pedro Alves <palves@redhat.com>
13677 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13679 (apply_style): New, factored out from ...
13680 (apply_ansi_escape): ... this. Handle reverse video mode.
13681 (tui_set_reverse_mode): New function.
13682 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13683 * tui/tui-winsource.c (tui_show_source_line): Use
13684 tui_set_reverse_mode instead of setting A_STANDOUT.
13685 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13686 New setter methods.
13688 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
13690 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13693 2019-03-18 Tom Tromey <tromey@adacore.com>
13695 * ada-lang.c (empty_array): Add "high" parameter.
13696 (ada_evaluate_subexp): Update.
13698 2019-03-17 Sergei Trofimovich <siarheit@google.com>
13700 * unittests/string_view-selftests.c: Define
13701 _initialize_string_view_selftests unconditionally.
13703 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13706 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13708 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13711 * windows-nat.c (display_selector): Fix format specifiers.
13713 2019-03-17 Eli Zaretskii <eliz@gnu.org>
13715 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13716 tui_refill_source_window instead of tui_refresh_win, to update the
13717 current execution line. This fixes redisplay of the current line
13718 when stepping through the code with "next" or "step".
13720 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13722 * source-cache.c (source_cache::get_source_lines): Call
13723 find_source_lines to initialize s->nlines. This fixes vertical
13724 scrolling of TUI source window when the DOWN arrow is pressed.
13726 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13728 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13729 linux-thread-db.c (_initialize_thread_db): Likewise.
13731 2019-03-16 Eli Zaretskii <eliz@gnu.org>
13733 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13734 wclrtoeol in tui_show_source_line". This reverts changes made in
13735 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13737 2019-03-15 Tom Tromey <tom@tromey.com>
13739 * symtab.h (struct minimal_symbol): Derive from
13740 general_symbol_info.
13741 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13742 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13743 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13744 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13745 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13746 (MSYMBOL_SEARCH_NAME): Update.
13747 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13748 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13749 * minsyms.c (minimal_symbol_reader::record_full): Update.
13751 2019-03-15 Tom Tromey <tom@tromey.com>
13753 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13755 2019-03-15 Tom Tromey <tom@tromey.com>
13757 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13758 unique_xmalloc_ptr.
13759 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13761 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13762 (build_minimal_symbol_hash_tables)
13763 (minimal_symbol_reader::install): Update.
13765 2019-03-15 Tom Tromey <tom@tromey.com>
13767 * symtab.c (create_demangled_names_hash): Update.
13768 (symbol_set_names): Update.
13769 * objfiles.h (struct objfile_per_bfd_storage)
13770 <demangled_names_hash>: Now an htab_up.
13771 * objfiles.c (objfile_per_bfd_storage): Simplify.
13773 2019-03-15 Tom Tromey <tom@tromey.com>
13775 * objfiles.h (struct objfile_per_bfd_storage): Declare
13777 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13779 (get_objfile_bfd_data): Use new. Don't initialize
13781 (free_objfile_per_bfd_storage): Remove.
13782 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13784 2019-03-15 Tom Tromey <tom@tromey.com>
13786 * symfile.c (reread_symbols): Update.
13787 * objfiles.c (objfile::objfile): Update.
13788 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13789 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13791 (minimal_symbol_reader::install): Update.
13792 (terminate_minimal_symbol_table): Remove.
13793 * jit.c (jit_object_close_impl): Update.
13795 2019-03-15 Tom Tromey <tom@tromey.com>
13797 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13800 2019-03-15 Tom Tromey <tom@tromey.com>
13802 * objfiles.h (struct objfile_per_bfd_storage)
13803 <demangled_hash_languages>: Now a bitset.
13804 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13805 (lookup_minimal_symbol): Update.
13807 2019-03-15 Tom Tromey <tom@tromey.com>
13809 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13810 Don't return the symbol.
13811 * coffread.c (record_minimal_symbol): Use record_full.
13813 2019-03-14 Eli Zaretskii <eliz@gnu.org>
13815 The MS-Windows port of ncurses fails to switch to a color pair if
13816 one or both of the colors are the implicit default colors. This
13817 change records the default colors when TUI is initialized, and
13818 then specifies them explicitly when a color pair uses the default
13819 colors. This allows color styling in TUI mode on MS-Windows.
13821 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13823 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13824 colors in ncurses_norm_attr.
13825 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13826 "none", replace it with the default color recorded in
13829 2019-03-14 Tom Tromey <tromey@adacore.com>
13831 * source-cache.h (class source_cache) <get_source_lines>: Return
13833 * source-cache.c (source_cache::extract_lines): Handle case where
13834 first_pos==npos. Return std::string.
13835 (source_cache::get_source_lines): Update.
13837 2019-03-14 Tom Tromey <tromey@adacore.com>
13839 * NEWS: Add item for "style sources" commands.
13840 * source-cache.c (source_cache::get_source_lines): Check
13842 * cli/cli-style.c (source_styling): New global.
13843 (_initialize_cli_style): Add "style sources" commands.
13844 (show_style_sources): New function.
13845 * cli/cli-style.h (source_styling): Declare.
13847 2019-03-14 Pedro Alves <palves@redhat.com>
13848 Tom Tromey <tromey@adacore.com>
13850 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13851 * tui/tui-winsource.c (tui_refill_source_window): New function,
13853 (tui_horizontal_source_scroll): ... here. Move some logic.
13854 * cli/cli-style.c (set_style_enabled): Notify new observable.
13855 * tui/tui-hooks.c (tui_redisplay_source): New function.
13856 (tui_attach_detach_observers): Attach or detach
13857 tui_redisplay_source.
13858 * observable.h (source_styling_changed): New observable.
13859 * observable.c: Define source_styling_changed observable.
13861 2019-03-13 Tom Tromey <tromey@adacore.com>
13863 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13864 (i386_gnu_nat_target::store_registers): Update.
13865 * target-debug.h (target_debug_print_std_string): New macro.
13866 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13867 * windows-tdep.c (display_one_tib): Update.
13868 * tui/tui-stack.c (tui_make_status_line): Update.
13869 * top.c (print_inferior_quit_action): Update.
13870 * thread.c (thr_try_catch_cmd): Update.
13871 (add_thread_with_info): Update.
13872 (thread_target_id_str): Update.
13873 (thr_try_catch_cmd): Update.
13874 (thread_command): Update.
13875 (thread_find_command): Update.
13876 * record-btrace.c (record_btrace_target::info_record)
13877 (record_btrace_resume_thread, record_btrace_target::resume)
13878 (record_btrace_cancel_resume, record_btrace_step_thread)
13879 (record_btrace_target::wait, record_btrace_target::wait)
13880 (record_btrace_target::wait, record_btrace_target::stop): Update.
13881 * progspace.c (print_program_space): Update.
13882 * process-stratum-target.c
13883 (process_stratum_target::thread_address_space): Update.
13884 * linux-fork.c (linux_fork_mourn_inferior)
13885 (detach_checkpoint_command, info_checkpoints_command)
13886 (linux_fork_context): Update.
13887 (linux_fork_detach): Update.
13888 (class scoped_switch_fork_info): Update.
13889 (delete_checkpoint_command): Update.
13890 * infrun.c (follow_fork_inferior): Update.
13891 (follow_fork_inferior): Update.
13892 (proceed_after_vfork_done): Update.
13893 (handle_vfork_child_exec_or_exit): Update.
13894 (follow_exec): Update.
13895 (displaced_step_prepare_throw): Update.
13896 (displaced_step_restore): Update.
13897 (start_step_over): Update.
13898 (resume_1): Update.
13899 (clear_proceed_status_thread): Update.
13901 (print_target_wait_results): Update.
13902 (do_target_wait): Update.
13903 (context_switch): Update.
13904 (stop_all_threads): Update.
13905 (restart_threads): Update.
13906 (finish_step_over): Update.
13907 (handle_signal_stop): Update.
13908 (switch_back_to_stepped_thread): Update.
13909 (keep_going_pass_signal): Update.
13910 (print_exited_reason): Update.
13911 (normal_stop): Update.
13912 * inferior.c (inferior_pid_to_str): Change return type.
13913 (print_selected_inferior): Update.
13914 (add_inferior): Update.
13915 (detach_inferior): Update.
13916 * dummy-frame.c (fprint_dummy_frames): Update.
13917 * dcache.c (dcache_info_1): Update.
13918 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13919 (btrace_fetch, btrace_clear): Update.
13920 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13921 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13923 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13924 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13925 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13926 * gdbarch.c, gdbarch.h: Rebuild.
13927 * gdbarch.sh (core_pid_to_str): Change return type.
13928 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13930 (windows_nat_target::pid_to_str): Change return type.
13931 (windows_delete_thread): Update.
13932 (windows_nat_target::attach): Update.
13933 (windows_nat_target::files_info): Update.
13934 * target-delegates.c: Rebuild.
13935 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13937 (sol_thread_target::pid_to_str): Change return type.
13938 * remote.c (class remote_target) <pid_to_str>: Change return
13940 (remote_target::pid_to_str): Change return type.
13941 (extended_remote_target::attach, remote_target::remote_stop_ns)
13942 (remote_target::remote_notif_remove_queued_reply)
13943 (remote_target::push_stop_reply, remote_target::disable_btrace):
13945 (extended_remote_target::attach): Update.
13946 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13948 (gdbsim_target::pid_to_str): Change return type.
13949 * ravenscar-thread.c (struct ravenscar_thread_target)
13950 <pid_to_str>: Change return type.
13951 (ravenscar_thread_target::pid_to_str): Change return type.
13952 * procfs.c (class procfs_target) <pid_to_str>: Change return
13954 (procfs_target::pid_to_str): Change return type.
13955 (procfs_target::attach): Update.
13956 (procfs_target::detach): Update.
13957 (procfs_target::fetch_registers): Update.
13958 (procfs_target::store_registers): Update.
13959 (procfs_target::wait): Update.
13960 (procfs_target::files_info): Update.
13961 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13962 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13964 (nto_procfs_target::pid_to_str): Change return type.
13965 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13966 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13968 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13969 (exit_lwp): Update.
13970 (attach_proc_task_lwp_callback, get_detach_signal)
13971 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13972 (linux_nat_target::resume, wait_lwp, stop_callback)
13973 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13974 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13975 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13976 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13977 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13979 (inf_ptrace_target::attach): Update.
13980 (inf_ptrace_target::files_info): Update.
13981 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13983 (go32_nat_target::pid_to_str): Change return type.
13984 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13985 (gnu_nat_target::wait): Update.
13986 (gnu_nat_target::wait): Update.
13987 (gnu_nat_target::resume): Update.
13988 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13989 (fbsd_nat_target::wait): Update.
13990 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13992 (darwin_nat_target::attach): Update.
13993 * corelow.c (class core_target) <pid_to_str>: Change return type.
13994 (core_target::pid_to_str): Change return type.
13995 * target.c (normal_pid_to_str): Change return type.
13996 (default_pid_to_str): Likewise.
13997 (target_pid_to_str): Change return type.
13998 (target_translate_tls_address): Update.
13999 (target_announce_detach): Update.
14000 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
14002 (bsd_uthread_target::pid_to_str): Change return type.
14003 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
14005 (bsd_kvm_target::pid_to_str): Change return type.
14006 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
14008 (aix_thread_target::pid_to_str): Change return type.
14009 * target.h (struct target_ops) <pid_to_str>: Change return type.
14010 (target_pid_to_str, normal_pid_to_str): Likewise.
14011 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
14013 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
14015 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
14017 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
14019 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
14021 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
14024 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
14026 * NEWS: Mention that the new default MI version is 3. Mention
14027 changes to the output of commands and events that deal with
14028 multi-location breakpoints.
14029 * breakpoint.c: Include "mi/mi-out.h".
14030 (print_one_breakpoint): Change output syntax if using MI version
14032 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
14034 (mi_multi_location_breakpoint_output_fixed): New.
14035 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
14036 (mi_cmd_fix_multi_location_breakpoint_output): New.
14037 (mi_multi_location_breakpoint_output_fixed): New.
14038 * mi/mi-cmds.c (mi_cmds): Register command
14039 -fix-multi-location-breakpoint-output.
14040 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
14043 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14045 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
14046 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
14047 instantiate mi_ui_out based on interpreter name.
14048 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
14049 * mi/mi-main.c (mi_load_progress): Likewise.
14051 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14053 * NEWS: Combine separate "New targets" sections for 8.3.
14055 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14057 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
14058 (ppcfbsd_init_abi): Install gdbarch
14059 "fetch_tls_load_module_address" and "get_thread_local_address"
14062 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14064 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
14065 (riscv_fbsd_init_abi): Install gdbarch
14066 "fetch_tls_load_module_address" and "get_thread_local_address"
14069 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14071 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
14072 (i386fbsd_init_abi): Install gdbarch
14073 "fetch_tls_load_module_address" and "get_thread_local_address"
14076 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14078 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
14079 (amd64fbsd_init_abi): Install gdbarch
14080 "fetch_tls_load_module_address" and "get_thread_local_address"
14083 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14085 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
14086 (struct fbsd_pspace_data): New type.
14087 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
14088 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
14089 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
14090 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
14091 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
14093 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14095 * gdbtypes.c (lookup_struct_elt): New function.
14096 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
14097 * gdbtypes.h (struct struct_elt): New type.
14098 (lookup_struct_elt): New prototype.
14100 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14102 * gdbtypes.c (lookup_struct_elt_type): Update comment and
14103 remove disabled code block.
14105 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14107 * gdbarch.sh (get_thread_local_address): New method.
14108 * gdbarch.h, gdbarch.c: Regenerate.
14109 * target.c (target_translate_tls_address): Use
14110 gdbarch_get_thread_local_address if present instead of
14111 target::get_thread_local_address.
14113 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14115 * target.h (target::get_thread_local_address): Update comment.
14117 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14119 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
14120 objfile->separate_debug_objfile_backlink if not NULL.
14122 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14124 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
14125 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
14126 (amd64bsd_store_inferior_registers): Likewise.
14127 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14128 Enable segment base registers.
14129 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
14130 PT_GETFSBASE and PT_GETGSBASE.
14131 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
14133 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
14134 segment base registers.
14135 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14137 2019-03-12 John Baldwin <jhb@FreeBSD.org>
14139 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
14140 Update calls to i386_target_description to add 'segments'
14142 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
14143 add segment base registers.
14144 * arch/i386.c (i386_create_target_description): Add 'segments'
14145 parameter to enable segment base registers.
14146 * arch/i386.h (i386_create_target_description): Likewise.
14147 * features/i386/32bit-segments.xml: New file.
14148 * features/i386/32bit-segments.c: Generate.
14149 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
14150 call to i386_target_description to add 'segments' parameter.
14151 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
14152 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
14153 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
14154 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
14155 if feature is present.
14156 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
14157 Add 'segments' parameter to call to i386_target_description.
14158 (i386_target_description): Add 'segments' parameter to enable
14159 segment base registers.
14160 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
14161 to call to i386_target_description.
14162 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
14163 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
14164 Define I386_NUM_REGS.
14165 (i386_target_description): Add 'segments' parameter to enable
14166 segment base registers.
14168 2019-03-12 Eli Zaretskii <eliz@gnu.org>
14171 * source-cache.c: #undef open and close, to avoid unresolved
14172 externals during linking.
14174 2019-03-12 Tom Tromey <tromey@adacore.com>
14176 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
14177 const. Add initializers.
14178 (_initialize_remote): Don't initialize ptid globals.
14180 2019-03-12 Pedro Alves <palves@redhat.com>
14182 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
14184 2019-03-12 Pedro Alves <palves@redhat.com>
14186 * cp-name-parser.y (main): Remove unused 'len' variable.
14188 2019-03-12 Tom Tromey <tromey@adacore.com>
14190 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
14191 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
14193 2019-03-12 Tom Tromey <tromey@adacore.com>
14195 * linux-nat.c (iterate_over_lwps): Update.
14196 (stop_callback): Remove parameter.
14197 (stop_wait_callback, detach_callback, resume_set_callback)
14198 (select_singlestep_lwp_callback, set_ignore_sigint)
14199 (status_callback, resumed_callback, resume_clear_callback)
14200 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
14202 (linux_nat_target::detach, linux_nat_target::resume)
14203 (linux_stop_and_wait_all_lwps, select_event_lwp)
14204 (linux_nat_filter_event, linux_nat_wait_1)
14205 (linux_nat_target::kill, linux_nat_target::stop)
14206 (linux_nat_target::stop): Update.
14207 (linux_nat_resume_callback): Change type.
14208 (resume_stopped_resumed_lwps, count_events_callback)
14209 (select_event_lwp_callback): Likewise.
14210 (linux_stop_lwp, linux_nat_stop_lwp): Update.
14211 * arm-linux-nat.c (struct update_registers_data): Remove.
14212 (update_registers_callback): Change type.
14213 (arm_linux_insert_hw_breakpoint1): Update.
14214 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
14216 (x86_linux_dr_set_addr): Update.
14217 (x86_linux_dr_set_control): Update.
14218 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
14219 (iterate_over_lwps): Use gdb::function_view.
14220 * nat/aarch64-linux-hw-point.c (struct
14221 aarch64_dr_update_callback_param): Remove.
14222 (debug_reg_change_callback): Change type.
14223 (aarch64_notify_debug_reg_change): Update.
14224 * s390-linux-nat.c (s390_refresh_per_info): Update.
14226 2019-03-11 Tom Tromey <tromey@adacore.com>
14228 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
14229 redundant assignment to "this_cu".
14231 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14233 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
14235 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14237 * gdbtypes.c (rank_one_type_parm_set): New function extracted
14239 (rank_one_type): ... this.
14241 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14243 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
14245 (rank_one_type): ... this.
14247 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14249 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
14251 (rank_one_type): ... this.
14253 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14255 * gdbtypes.c (rank_one_type_parm_float): New function extracted
14257 (rank_one_type): ... this.
14259 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14261 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
14263 (rank_one_type): ... this.
14265 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14267 * gdbtypes.c (rank_one_type_parm_range): New function extracted
14269 (rank_one_type): ... this.
14271 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14273 * gdbtypes.c (rank_one_type_parm_char): New function extracted
14275 (rank_one_type): ... this.
14277 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14279 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
14281 (rank_one_type): ... this.
14283 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14285 * gdbtypes.c (rank_one_type_parm_int): New function extracted
14287 (rank_one_type): ... this.
14289 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14291 * gdbtypes.c (rank_one_type_parm_func): New function extracted
14293 (rank_one_type): ... this.
14295 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14297 * gdbtypes.c (rank_one_type_parm_array): New function extracted
14299 (rank_one_type): ... this.
14301 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
14303 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
14305 (rank_one_type): ... this.
14307 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14309 * inferior.c (initialize_inferiors): Ensure 'help set/show print
14310 inferior-events' shows the example events.
14312 2019-03-08 Eli Zaretskii <eliz@gnu.org>
14314 Support styling on native MS-Windows console
14317 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
14318 on MS-Windows if $TERM is not defined.
14320 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
14322 * posix-hdep.c (gdb_console_fputs):
14323 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
14325 * ui-file.h (gdb_console_fputs): Add prototype.
14327 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
14328 back to fputs only if the former returns zero.
14330 2019-03-07 Tom Tromey <tom@tromey.com>
14332 * symmisc.c (print_symbol_bcache_statistics): Update.
14333 (print_objfile_statistics): Update.
14334 * symfile.c (allocate_symtab): Update.
14335 * stabsread.c: Don't include bcache.h.
14336 * psymtab.h (struct psymbol_bcache): Don't declare.
14337 (class psymtab_storage) <psymbol_cache>: Now a bcache.
14338 (psymbol_bcache_init, psymbol_bcache_free)
14339 (psymbol_bcache_get_bcache): Don't declare.
14340 * psymtab.c (struct psymbol_bcache): Remove.
14341 (psymtab_storage::psymtab_storage): Update.
14342 (psymtab_storage::~psymtab_storage): Update.
14343 (psymbol_bcache_init, psymbol_bcache_free)
14344 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
14345 (add_psymbol_to_bcache): Update.
14346 (allocate_psymtab): Update.
14347 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14348 macro_cache>: No longer pointers.
14349 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
14350 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
14351 * macrotab.c (macro_bcache): Update.
14352 * macroexp.c: Don't include bcache.h.
14353 * gdbtypes.c (check_types_worklist): Update.
14354 (types_deeply_equal): Remove TRY/CATCH. Update.
14355 * elfread.c (elf_symtab_read): Update.
14356 * dwarf2read.c: Don't include bcache.h.
14357 * buildsym.c (buildsym_compunit::get_macro_table): Update.
14358 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
14359 (print_bcache_statistics, bcache_memory_used): Don't declare.
14360 (struct bcache): Move from bcache.c. Add constructor, destructor,
14361 methods. Rename all data members.
14362 * bcache.c (struct bcache): Move to bcache.h.
14363 (bcache::expand_hash_table): Rename from expand_hash_table.
14365 (bcache::insert): Rename from bcache_full.
14366 (bcache::compare): Rename from bcache_compare.
14367 (bcache_xmalloc): Remove.
14368 (bcache::~bcache): Rename from bcache_xfree.
14369 (bcache::print_statistics): Rename from print_bcache_statistics.
14370 (bcache::memory_used): Rename from bcache_memory_used.
14372 2019-03-07 Pedro Alves <palves@redhat.com>
14374 * infrun.c (normal_stop): Also check for
14375 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
14377 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
14379 * f-lang.c (value_from_host_double): Moved to...
14380 * value.c (value_from_host_double): ...here.
14381 * value.h (value_from_host_double): Declare.
14382 * guile/scm-math.c (vlscm_convert_typed_number): Use
14383 value_from_host_double.
14384 (vlscm_convert_number): Likewise.
14385 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
14386 * python/py-value.c (convert_value_from_python): Likewise.
14388 2019-03-06 Tom Tromey <tom@tromey.com>
14390 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
14392 2019-03-06 Tom Tromey <tom@tromey.com>
14394 * utils.h (free_current_contents): Don't declare.
14395 * utils.c (free_current_contents): Remove.
14397 2019-03-06 Tom Tromey <tom@tromey.com>
14399 * top.c (quit_force): Update.
14400 * main.c (captured_command_loop): Update.
14401 * common/new-op.c (operator new): Update.
14402 * common/common-exceptions.c (struct catcher)
14403 <save_cleanup_chain>: Remove member.
14404 (exceptions_state_mc_init): Update.
14405 (exception_try_scope_entry): Return nullptr.
14406 (exception_try_scope_exit, exception_rethrow)
14407 (throw_exception_sjlj, throw_exception_cxx): Update.
14408 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
14409 (all_cleanups, do_cleanups, discard_cleanups)
14410 (discard_final_cleanups, save_cleanups, save_final_cleanups)
14411 (restore_cleanups, restore_final_cleanups): Don't declare.
14412 (do_final_cleanups): Remove parameter.
14413 * common/cleanups.c (cleanup_chain, make_cleanup)
14414 (make_cleanup_dtor, all_cleanups, do_cleanups)
14415 (discard_my_cleanups, discard_cleanups)
14416 (discard_final_cleanups, save_my_cleanups, save_cleanups)
14417 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
14418 (null_cleanup): Remove.
14419 (do_final_cleanups): Remove parameter.
14421 2019-03-06 Tom Tromey <tom@tromey.com>
14423 * remote.c (remote_target::remote_parse_stop_reply): Use
14424 unique_xmalloc_ptr.
14426 2019-03-06 Tom Tromey <tom@tromey.com>
14428 * stabsread.c (struct stabs_field_info): Rename from field_info.
14429 <list, fnlist>: Add initializers.
14430 <obstack>: New member.
14431 (read_member_functions, read_struct_fields, read_baseclasses):
14432 Allocate on obstack. Don't use cleanups.
14433 (read_one_struct_field, read_member_functions, read_struct_fields)
14434 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
14435 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
14436 (read_struct_type): Update.
14438 2019-03-06 Tom Tromey <tom@tromey.com>
14440 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
14441 * common/filestuff.h (make_cleanup_close): Don't declare.
14442 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
14445 2019-03-06 Tom Tromey <tom@tromey.com>
14447 * solib-aix.c: Use make_scope_exit.
14449 2019-03-06 Tom Tromey <tom@tromey.com>
14451 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
14452 Use make_scope_exit.
14454 2019-03-06 Tom Tromey <tom@tromey.com>
14456 * solib-svr4.c (disable_probes_interface): Remove parameter.
14457 (svr4_handle_solib_event): Use make_scope_exit.
14459 2019-03-06 Tom Tromey <tom@tromey.com>
14461 * remote.c (struct stop_reply_deleter): Remove.
14462 (stop_reply_up): Update.
14463 (struct stop_reply): Derive from notif_event. Don't typedef.
14464 <regcache>: Now a std::vector.
14465 (stop_reply_xfree): Remove.
14466 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
14467 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
14468 (remote_target::discard_pending_stop_replies): Use delete.
14469 (remote_target::remote_parse_stop_reply): Update.
14470 (remote_target::process_stop_reply): Update.
14471 * remote-notif.h (struct notif_event): Add virtual destructor.
14472 Remove "dtr" member.
14473 (struct notif_client) <alloc_event>: Return a unique_ptr.
14474 (notif_event_xfree): Don't declare.
14475 (notif_event_up): New typedef.
14476 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
14477 (notif_event_xfree, do_notif_event_xfree): Remove.
14478 (remote_notif_state_xfree): Update.
14480 2019-03-06 Tom Tromey <tom@tromey.com>
14482 * infrun.c (displaced_step_clear_cleanup): Now a
14483 forward_scope_exit type.
14484 (displaced_step_prepare_throw): Update.
14485 (displaced_step_fixup): Update.
14487 2019-03-06 Tom Tromey <tom@tromey.com>
14489 * inferior.h (class inferior): Update comment.
14490 * gdbthread.h (class thread_info): Update comment.
14492 2019-03-06 Joel Brobecker <brobecker@adacore.com>
14493 Tom Tromey <tom@tromey.com>
14495 * stabsread.h (struct stab_section_list): Remove.
14496 (coffstab_build_psymtabs): Update.
14497 * dbxread.c (symbuf_sections): Now a std::vector.
14498 (sect_idx): New global.
14499 (fill_symbuf): Update.
14500 (coffstab_build_psymtabs): Change type of stabsects parameter.
14502 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
14504 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
14505 (coff_locate_sections): Update.
14506 (coff_symfile_read): Remove cleanups. Update.
14507 (init_stringtab): Add storage parameter.
14508 (free_stringtab, free_stringtab_cleanup): Remove.
14509 (init_lineno): Add storage parameter.
14510 (free_linetab, free_linetab_cleanup): Remove.
14512 2019-03-06 Pedro Alves <palves@redhat.com>
14514 * linux-fork.c (fork_info::clobber_regs): Delete.
14515 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14516 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14518 (scoped_switch_fork_info::scoped_switch_fork_info)
14519 (checkpoint_command, linux_fork_context): Adjust
14520 fork_save_infrun_state calls.
14522 2019-03-06 Pedro Alves <palves@redhat.com>
14524 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14525 (inf_has_multiple_threads): Return 'bool' and rewrite using
14526 inferior_info::threads().
14528 2019-03-06 Pedro Alves <palves@redhat.com>
14530 * linux-fork.c: Include <list>.
14531 (fork_list): Now a std::list instance.
14532 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14533 (forks_exist_p, find_last_fork): Adjust.
14534 (new_fork): Delete.
14536 (add_fork): Adjust.
14537 (free_fork): Delete, folded into fork_info::~fork_info().
14538 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14540 (init_fork_list): Delete.
14541 (linux_fork_killall, linux_fork_mourn_inferior)
14542 (linux_fork_detach, info_checkpoints_command): Adjust.
14543 (_initialize_linux_fork): No longer call init_fork_list.
14545 2019-03-06 Pedro Alves <palves@redhat.com>
14547 * linux-fork.c (new_fork): New, split out of ...
14548 (add_fork): ... this. Return void. Move "first fork" special
14549 case from here, to ...
14550 (checkpoint_command): ... here.
14551 * linux-linux.h (add_fork): Return void.
14553 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14555 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14557 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14558 Chris January <chris.january@arm.com>
14559 David Lecomber <david.lecomber@arm.com>
14561 * f-exp.y: New token, UNOP_INTRINSIC.
14562 (exp): New pattern using UNOP_INTRINSIC token.
14563 (f77_keywords): Add 'abs' keyword.
14564 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14565 (value_from_host_double): New function.
14566 (evaluate_subexp_f): Support UNOP_ABS.
14568 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14570 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14573 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14575 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14576 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14577 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14579 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14581 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14583 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14584 Chris January <chris.january@arm.com>
14586 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14587 * f-exp.y: Define 'KIND' token.
14588 (exp): New pattern for KIND expressions.
14589 (ptype): Handle types with a kind extension.
14590 (direct_abs_decl): Extend to spot kind extensions.
14591 (f77_keywords): Add 'kind' to the list.
14592 (push_kind_type): New function.
14593 (convert_to_kind_type): New function.
14594 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14595 * parse.c (operator_length_standard): Likewise.
14596 * parser-defs.h (enum type_pieces): Add tp_kind.
14597 * std-operator.def: Add UNOP_KIND.
14599 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14601 * f-exp.y (f_parse): Set yydebug.
14603 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14605 * f-lang.c (evaluate_subexp_f): New function.
14606 (exp_descriptor_f): New global.
14607 (f_language_defn): Use exp_descriptor_f instead of
14608 exp_descriptor_standard.
14610 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14612 * f-exp.y (struct token): Add comments.
14613 (dot_ops): Remove uppercase versions and the end marker.
14614 (f77_keywords): Likewise.
14615 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14616 entries in the dot_ops array are case insensitive, and use
14617 strncasecmp to compare strings. Also some whitespace cleanup in
14618 this area. Similar for the f77_keywords array, except entries in
14619 this list might be case sensitive.
14621 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14623 * f-exp.y (struct f77_boolean_val): Add comments.
14624 (boolean_values): Remove uppercase versions, and end marker.
14625 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14626 and use strncasecmp to achieve case insensitivity. Additionally,
14627 perform whitespace cleanup around this code.
14629 2019-03-06 Tom Tromey <tromey@adacore.com>
14631 * remote-sim.c (gdbsim_target_open): Use result of
14634 2019-03-06 Richard Bunt <richard.bunt@arm.com>
14635 Dirk Schubert <dirk.schubert@arm.com>
14636 Chris January <chris.january@arm.com>
14638 * eval.c (evaluate_subexp_standard): Call Fortran argument
14640 * f-lang.c (struct value): A value which can be passed into a
14641 Fortran function call.
14642 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14644 (struct type): Value ready for a Fortran function call.
14645 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14647 * f-lang.h (fortran_argument_convert): Declaration.
14648 (fortran_preserve_arg_pointer): Declaration.
14649 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14651 2019-03-05 Tom Tromey <tromey@adacore.com>
14653 * python/py-prettyprint.c (print_string_repr): Remove #if.
14654 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14656 2019-03-05 Tom Tromey <tromey@adacore.com>
14658 * target.c (the_dummy_target): Move later. Change type to
14660 (initialize_targets): Don't initialize the_dummy_target.
14662 2019-03-05 Tom Tromey <tromey@adacore.com>
14664 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14665 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14667 2019-03-05 Tom Tromey <tromey@adacore.com>
14669 * windows-nat.c (windows_nat_target::attach)
14670 (windows_nat_target::detach): Don't call gdb_flush.
14671 * valprint.c (generic_val_print, val_print, val_print_string):
14672 Don't call gdb_flush.
14673 * utils.c (defaulted_query): Don't call gdb_flush.
14674 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14675 * target.c (target_announce_detach): Don't call gdb_flush.
14676 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14677 * remote.c (extended_remote_target::attach): Don't call
14679 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14680 * printcmd.c (do_examine): Don't call gdb_flush.
14681 (info_display_command): Don't call gdb_flush.
14682 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14683 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14684 * memattr.c (info_mem_command): Don't call gdb_flush.
14685 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14686 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14687 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14688 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14689 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14690 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14691 (gnu_nat_target::detach): Don't call gdb_flush.
14692 * f-valprint.c (f_val_print): Don't call gdb_flush.
14693 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14694 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14695 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14697 * c-valprint.c (c_val_print): Don't call gdb_flush.
14698 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14700 2019-03-05 Tom Tromey <tromey@adacore.com>
14702 * varobj.c (update_dynamic_varobj_children): Update.
14703 (install_default_visualizer): Use reset, not release.
14704 * value.c (set_internalvar): Update.
14705 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14706 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14707 ATTRIBUTE_UNUSED_RESULT.
14709 2019-03-05 Tom Tromey <tromey@adacore.com>
14711 * remote.c (class scoped_remote_fd) <release>: Add
14712 ATTRIBUTE_UNUSED_RESULT.
14714 2019-03-05 Tom Tromey <tromey@adacore.com>
14716 * macroexp.c (struct macro_buffer) <release>: Add
14717 ATTRIBUTE_UNUSED_RESULT.
14719 2019-03-05 Tom Tromey <tromey@adacore.com>
14721 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14722 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14723 ATTRIBUTE_UNUSED_RESULT.
14725 2019-03-05 Tom Tromey <tromey@adacore.com>
14727 * common/scoped_fd.h (class scoped_fd) <release>: Add
14728 ATTRIBUTE_UNUSED_RESULT.
14730 2019-03-05 Tom Tromey <tromey@adacore.com>
14732 * parser-defs.h (struct parser_state) <release>: Add
14733 ATTRIBUTE_UNUSED_RESULT.
14735 2019-03-05 Tom Tromey <tromey@adacore.com>
14737 * utils.h (class gdb_argv) <release>: Add
14738 ATTRIBUTE_UNUSED_RESULT.
14739 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14741 2019-03-02 Eli Zaretskii <eliz@gnu.org>
14743 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14744 for-loop range, to avoid compiler warnings.
14746 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14747 avoid compiler warnings about unused variables.
14749 * NEWS: Mention end of support for native debugging on MS-Windows
14753 * common/netstuff.c:
14754 * gdbserver/gdbreplay.c
14755 * gdbserver/remote-utils.c:
14757 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14758 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14759 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14760 'getaddrinfo' and 'freeaddrinfo' were not available before
14761 Windows XP, and mingw.org's MinGW headers by default define
14762 _WIN32_WINNT to 0x500.
14764 2019-03-01 Gary Benson <gbenson@redhat.com>
14766 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14768 2019-02-28 Brian Vandenberg <phantall@gmail.com>
14769 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14772 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14773 set_sigint_trap, clear_sigint_trap.
14775 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14777 * target.c (target_detach): Clear the regcache and the
14780 2019-02-27 Pedro Alves <palves@redhat.com>
14782 * utils.c (set_screen_size): When we cap the height/width sizes,
14783 tweak the corresponding command variable to show "unlimited":
14785 2019-02-27 Saagar Jha <saagar@saagarjha.com>
14786 Pedro Alves <palves@redhat.com>
14788 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14789 before calling rl_set_screen_size.
14791 2019-02-27 Tom Tromey <tromey@adacore.com>
14793 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14795 * python/py-value.c: Remove Python 2.4 workaround.
14796 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14798 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14799 Python 2.4 workaround.
14800 * python/python-internal.h: Remove Python 2.4 comment.
14801 (Py_ssize_t): Don't define.
14802 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14803 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14804 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14805 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14806 * python/python.c (do_start_initialization): Remove Python 2.4
14808 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14809 (print_children): Remove Python 2.4 workaround.
14810 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14812 (CHARBUFFERPROC_NAME): Remove.
14813 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14814 Python 2.4 workaround.
14816 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14818 * NEWS: Note minimum Python version.
14820 2019-02-27 Kevin Buettner <kevinb@redhat.com>
14822 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14823 code from these functions. Remove corresponding ifdefs. Use
14824 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14825 Remove gotos and target of gotos.
14826 (infpy_search_memory): Likewise.
14828 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14830 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14831 (hppa_gdbarch_init): Don't register deleted functions with
14834 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14836 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14837 (h8300_unwind_sp): Delete.
14838 (h8300_dummy_id): Delete.
14839 (h8300_gdbarch_init): Don't register deleted functions with
14842 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14844 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14845 (ft32_unwind_pc): Delete.
14846 (ft32_unwind_sp): Delete.
14847 (ft32_gdbarch_init): Don't register deleted functions with
14850 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14852 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14853 (frv_unwind_pc): Delete.
14854 (frv_unwind_sp): Delete.
14855 (frv_gdbarch_init): Don't register deleted functions with
14858 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14860 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14861 (riscv_unwind_pc): Delete.
14862 (riscv_unwind_sp): Delete.
14863 (riscv_gdbarch_init): Don't register deleted functions with
14866 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14868 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14869 (csky_unwind_pc): Delete.
14870 (csky_unwind_sp): Delete.
14871 (csky_gdbarch_init): Don't register deleted functions with
14874 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14876 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14877 (cris_unwind_pc): Delete.
14878 (cris_unwind_sp): Delete.
14879 (cris_gdbarch_init): Don't register deleted functions with
14882 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14884 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14885 (bfin_unwind_pc): Delete.
14886 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14888 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14890 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14891 (arm_unwind_pc): Delete.
14892 (arm_unwind_sp): Delete.
14893 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14895 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14897 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14898 (arc_unwind_pc): Delete.
14899 (arc_unwind_sp): Delete.
14900 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14902 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14904 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14905 (alpha_unwind_pc): Delete.
14906 (alpha_gdbarch_init): Don't register deleted functions with
14909 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14911 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14912 (aarch64_unwind_pc): Delete.
14913 (aarch64_unwind_sp): Delete.
14914 (aarch64_gdbarch_init): Don't register deleted functions with
14917 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14919 * gdbtypes.c (type_align): Don't consider static members when
14920 computing structure alignment.
14922 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14924 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14925 return 0 for other types.
14926 * arch-utils.c (default_type_align): Always return 0.
14927 * gdbarch.h: Regenerate.
14928 * gdbarch.sh (type_align): Extend comment.
14929 * gdbtypes.c (type_align): Add additional comments, always call
14930 gdbarch_type_align before applying the default rules.
14931 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14932 generic code will then apply a suitable default.
14933 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14934 types, return 0 for other types.
14936 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14938 * NEWS: Create a new section for the next release branch.
14939 Rename the section of the current branch, now that it has
14942 2019-02-27 Joel Brobecker <brobecker@adacore.com>
14944 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14945 * version.in: Bump version to 8.3.50.DATE-git.
14947 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
14949 * aix-thread.c (ptid_cmp): Remove unused variable.
14950 (get_signaled_thread): Likewise.
14951 (store_regs_user_thread): Likewise.
14952 (store_regs_kernel_thread): Likewise.
14953 (fetch_regs_kernel_thread): Remove shadowed variable.
14955 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14957 * features/riscv/32bit-cpu.xml: Add register numbers.
14958 * features/riscv/32bit-fpu.c: Regenerate.
14959 * features/riscv/32bit-fpu.xml: Add register numbers.
14960 * features/riscv/64bit-cpu.xml: Add register numbers.
14961 * features/riscv/64bit-fpu.c: Regenerate.
14962 * features/riscv/64bit-fpu.xml: Add register numbers.
14964 2019-02-26 Kevin Buettner <kevinb@redhat.com>
14966 * NEWS: Mention two argument form of gdb.Value constructor.
14967 * python/py-value.c (convert_buffer_and_type_to_value): New
14969 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14970 Add support for handling an optional second argument. Call
14971 convert_buffer_and_type_to_value as appropriate.
14972 * python/python-internal.h (Py_buffer_deleter): New struct.
14973 (Py_buffer_up): New typedef.
14975 2019-02-25 John Baldwin <jhb@FreeBSD.org>
14977 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14978 instead of releasing ownership.
14980 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
14982 * dwarf2read.c (open_and_init_dwp_file): Call
14983 elf_numsections instead of bfd_count_sections to initialize
14984 dwp_file->num_sections.
14986 2019-02-25 Tom Tromey <tromey@adacore.com>
14988 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14990 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14992 * gcore.in: Add '--readnever' option when invoking GDB.
14994 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14996 * MAINTAINERS: Update my email address.
14998 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
15000 * build-id.c (build_id_to_debug_bfd_1): New function.
15001 (build_id_to_debug_bfd): Look for separate debug file in
15004 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
15006 * gdbarch.sh: Update the copyright year range that is placed into
15009 2019-02-22 Keith Seitz <keiths@redhat.com>
15012 * linespec.c (create_sals_line_offset): Search for the default
15013 symtab's filename instead of its fullname.
15015 2019-02-21 Alan Hayward <alan.hayward@arm.com>
15017 * NEWS: Update style defaults.
15019 2019-02-21 Alan Hayward <alan.hayward@arm.com>
15021 * main.c (captured_main_1): Disable styling in batch mode.
15023 2019-02-20 Tom Tromey <tom@tromey.com>
15025 * symtab.c (symtab_symbol_info): Fix typos.
15027 2019-02-20 Tom Tromey <tromey@adacore.com>
15029 * findcmd.c (_initialize_mem_search): Use upper case for
15030 metasyntactic variables.
15032 2019-02-20 Alan Hayward <alan.hayward@arm.com>
15034 * aarch64-tdep.c (aarch64_add_reggroups): New function.
15035 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
15037 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
15039 * top.h (source_file_name): Change to std::string.
15040 * top.c (source_file_name): Likewise.
15041 (command_line_input): Adjust.
15042 * cli/cli-script.c (script_from_file): Adjust.
15044 2019-02-19 Tom Tromey <tromey@adacore.com>
15046 * ravenscar-thread.c
15047 (ravenscar_thread_target::update_thread_list): Don't call
15048 ada_build_task_list.
15049 * ada-lang.h (ada_build_task_list): Don't declare.
15050 * ada-tasks.c (struct ada_tasks_inferior_data)
15051 <task_list_valid_p>: Now bool.
15052 (read_known_tasks, ada_task_list_changed)
15053 (ada_tasks_invalidate_inferior_data): Update.
15054 (read_known_tasks_array): Return bool.
15055 (read_known_tasks_list): Likewise.
15056 (read_known_tasks): Return void.
15057 (ada_build_task_list): Now static.
15059 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
15061 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
15062 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
15064 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15066 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
15067 variant for ada_tasks_pspace_data_handle and
15068 ada_tasks_inferior_data_handle.
15069 (ada_tasks_pspace_data_cleanup): New function.
15070 (ada_tasks_inferior_data_cleanup): New function.
15072 2019-02-17 Tom Tromey <tom@tromey.com>
15074 * macrotab.h (macro_source_fullname): Return a std::string.
15075 * macrotab.c (macro_include, check_for_redefinition)
15076 (macro_undef, macro_lookup_definition, foreach_macro)
15077 (foreach_macro_in_scope): Update.
15078 (macro_source_fullname): Return a std::string.
15079 * macrocmd.c (show_pp_source_pos): Update.
15081 2019-02-17 Tom Tromey <tom@tromey.com>
15083 * macrocmd.c (show_pp_source_pos): Style the file names.
15085 2019-02-17 Tom Tromey <tom@tromey.com>
15088 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
15090 2019-02-17 Tom Tromey <tom@tromey.com>
15092 * ada-lang.c (user_select_syms): Use filtered printing.
15093 * utils.c (wrap_style): New global.
15094 (desired_style): Remove.
15095 (emit_style_escape): Add stream parameter.
15096 (set_output_style, reset_terminal_style, prompt_for_continue):
15098 (flush_wrap_buffer): Only flush gdb_stdout.
15099 (wrap_here): Set wrap_style.
15100 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
15101 treat escape sequences as a character. Change when wrap buffer is
15103 (fputs_styled): Do not set the output style when the default is
15105 * ui-style.h (struct ui_file_style) <is_default>: New method.
15106 * source.c (print_source_lines_base): Emit escape sequences in one
15109 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15111 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
15112 integers and enumeration types.
15114 2019-02-17 Joel Brobecker <brobecker@adacore.com>
15116 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
15117 instead of lookup_symbol_in_language
15118 (do_exact_match): New function.
15119 (ada_get_symbol_name_matcher): Return do_exact_match when
15120 doing a verbatim match.
15122 2019-02-15 Tom Tromey <tromey@adacore.com>
15124 * ravenscar-thread.c (ravenscar_thread_target::resume)
15125 (ravenscar_thread_target::wait): Special case wildcard requests.
15127 2019-02-15 Tom Tromey <tromey@adacore.com>
15129 * ravenscar-thread.c (base_ptid): Remove.
15130 (struct ravenscar_thread_target) <close>: New method.
15131 <m_base_ptid>: New member.
15132 <update_inferior_ptid, active_task, task_is_currently_active,
15133 runtime_initialized>: Declare methods.
15134 <ravenscar_thread_target>: Add constructor.
15135 (ravenscar_thread_target::task_is_currently_active)
15136 (ravenscar_thread_target::update_inferior_ptid)
15137 (ravenscar_runtime_initialized): Rename. Now methods.
15138 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
15139 (ravenscar_thread_target::update_thread_list): Update.
15140 (ravenscar_thread_target::active_task): Now method.
15141 (ravenscar_thread_target::store_registers)
15142 (ravenscar_thread_target::prepare_to_store)
15143 (ravenscar_thread_target::prepare_to_store)
15144 (ravenscar_thread_target::mourn_inferior): Update.
15145 (ravenscar_inferior_created): Use "new" to create target.
15146 (ravenscar_thread_target::get_ada_task_ptid): Update.
15147 (_initialize_ravenscar): Don't initialize base_ptid.
15148 (ravenscar_ops): Remove global.
15150 2019-02-15 Tom Tromey <tromey@adacore.com>
15152 * target.h (push_target): Declare new overload.
15153 * target.c (push_target): New overload, taking an rvalue reference.
15154 * remote.c (remote_target::open_1): Use push_target overload.
15155 * corelow.c (core_target_open): Use push_target overload.
15157 2019-02-15 Tom Tromey <tromey@adacore.com>
15159 * ravenscar-thread.c (is_ravenscar_task)
15160 (ravenscar_task_is_currently_active): Return bool.
15161 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
15162 (_initialize_ravenscar): Remove "(void)".
15163 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
15166 2019-02-15 Tom Tromey <tromey@adacore.com>
15168 * ravenscar-thread.c (ravenscar_runtime_initializer)
15169 (has_ravenscar_runtime, get_running_thread_id)
15170 (ravenscar_thread_target::resume): Fix indentation.
15172 2019-02-15 Tom Tromey <tromey@adacore.com>
15174 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
15175 from ravenscar_arch_ops.
15176 (sparc_ravenscar_ops::fetch_registers)
15177 (sparc_ravenscar_ops::store_registers): Now methods.
15178 (sparc_ravenscar_prepare_to_store): Remove.
15179 (sparc_ravenscar_ops): Redefine.
15180 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
15181 methods and destructor. Remove members.
15182 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
15183 (ravenscar_thread_target::store_registers)
15184 (ravenscar_thread_target::prepare_to_store): Update.
15185 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
15187 (struct ppc_ravenscar_powerpc_ops): Derive from
15188 ravenscar_arch_ops.
15189 (ppc_ravenscar_powerpc_ops::fetch_registers)
15190 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
15191 (ppc_ravenscar_powerpc_ops): Redefine.
15192 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
15193 (ppc_ravenscar_e500_ops::fetch_registers)
15194 (ppc_ravenscar_e500_ops::store_registers): Now methods.
15195 (ppc_ravenscar_e500_ops): Redefine.
15196 * aarch64-ravenscar-thread.c
15197 (aarch64_ravenscar_generic_prepare_to_store): Remove.
15198 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
15199 (aarch64_ravenscar_fetch_registers)
15200 (aarch64_ravenscar_store_registers): Now methods.
15201 (aarch64_ravenscar_ops): Redefine.
15203 2019-02-15 Tom Tromey <tromey@adacore.com>
15205 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
15206 (ravenscar_thread_target::stopped_by_hw_breakpoint)
15207 (ravenscar_thread_target::stopped_by_watchpoint)
15208 (ravenscar_thread_target::stopped_data_address)
15209 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
15211 2019-02-15 Tom Tromey <tromey@adacore.com>
15213 * ravenscar-thread.c: Fix some typos.
15215 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15216 Tom Tromey <tromey@adacore.com>
15218 * ada-lang.c (ada_exception_sal): Change addr_string to a
15220 (create_ada_exception_catchpoint): Update.
15222 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15223 Tom Tromey <tromey@adacore.com>
15225 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
15226 (bp_location_ops): Remove.
15227 (base_breakpoint_allocate_location): Update.
15228 (free_bp_location): Update.
15229 * ada-lang.c (class ada_catchpoint_location)
15230 <ada_catchpoint_location>: Remove ops parameter.
15231 (ada_catchpoint_location_dtor): Remove.
15232 (ada_catchpoint_location_ops): Remove.
15233 (allocate_location_exception): Update.
15234 * breakpoint.h (struct bp_location_ops): Remove.
15235 (class bp_location) <bp_location>: Remove bp_location_ops
15237 <~bp_location>: Add destructor.
15240 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15241 Pedro Alves <palves@redhat.com>
15243 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
15246 2019-02-14 David Michael <fedora.dm0@gmail.com>
15247 Samuel Thibault <samuel.thibault@gnu.org>
15248 Thomas Schwinge <thomas@codesourcery.com>
15250 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
15251 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
15253 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
15255 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
15256 (check_empty): Use "const char *".
15258 * gnu-nat.c (gnu_nat_target::detach): Instead of
15259 'detach_inferior (pid)' call
15260 'detach_inferior (find_inferior_pid (pid))'.
15262 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
15263 'nat/fork-inferior.o'.
15264 * gnu-nat.c: #include "nat/fork-inferior.h".
15266 * gnu-nat.c (gnu_nat_target::detach): Instead of
15267 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
15268 * gnu-nat.h: #include "inf-child.h".
15269 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
15270 'i386_gnu_nat_target::fetch_registers'.
15271 (gnu_store_registers): Rename/move to
15272 'i386_gnu_nat_target::store_registers'.
15274 * config/i386/nm-i386gnu.h: Don't "#include" any files.
15275 * gnu-nat.h (mach_thread_info): New function.
15276 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
15278 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
15280 2019-02-14 Frederic Konrad <konrad@adacore.com>
15282 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
15284 2019-02-14 Joel Brobecker <brobecker@adacore.com>
15286 * windows-nat.c (windows_add_thread): Add new parameter
15287 "main_thread_p" with default value set to false. Update
15288 function documentation as well as all callers.
15289 (windows_delete_thread): Likewise.
15290 (fake_create_process): Update call to windows_add_thread.
15291 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
15292 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
15293 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
15294 call to windows_delete_thread.
15296 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
15298 * MAINTAINERS: Add Andrew Burgess as global maintainer.
15300 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15302 * symfile.c (find_separate_debug_file): Use canonical path of
15303 sysroot with child_path instead of gdb_sysroot if it is valid.
15305 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15307 * symfile.c (find_separate_debug_file): Use child_path to
15308 determine if an object file is under a sysroot.
15310 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15312 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
15313 unittests/child-path-selftests.c.
15314 * common/pathstuff.c (child_path): New function.
15315 * common/pathstuff.h (child_path): New prototype.
15316 * unittests/child-path-selftests.c: New file.
15318 2019-02-12 John Baldwin <jhb@FreeBSD.org>
15320 * symfile.c (find_separate_debug_file): Look for separate debug
15321 files in debug directories under the sysroot.
15323 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15325 * symtab.h (struct minimal_symbol data_p): New const method.
15326 (struct minimal_symbol text_p): Likewise.
15327 * symtab.c (output_source_filename): Use file name style
15328 to print file name.
15329 (print_symbol_info): Likewise.
15330 (print_msymbol_info): Use address style to print addresses.
15331 Use function name style to print executable text symbols.
15332 (expand_symtab_containing_pc): Use data_p.
15333 (find_pc_sect_compunit_symtab): Likewise.
15335 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15337 * breakpoint.c (describe_other_breakpoints): Use address style
15338 to print addresses.
15339 (say_where): Likewise.
15341 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15343 * ada-typeprint.c (print_func_type): Print function name
15344 style to print function name.
15345 * c-typeprint.c (c_print_type_1): Likewise.
15347 2019-02-11 Alan Hayward <alan.hayward@arm.com>
15349 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
15352 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15354 * c-exp.y (direct_abs_decl): Use emplace_back to record the
15357 2019-02-10 Joel Brobecker <brobecker@adacore.com>
15359 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
15360 TYPE_CODE_REF types.
15362 2019-02-08 Jim Wilson <jimw@sifive.com>
15364 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
15365 (riscv_linux_fregset): New.
15366 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
15368 2019-02-07 Tom Tromey <tom@tromey.com>
15370 * thread.c (thread_cancel_execution_command): Update.
15371 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
15373 (struct thread_fsm_ops): Remove.
15374 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
15375 (thread_fsm_should_stop, thread_fsm_return_value)
15376 (thread_fsm_set_finished, thread_fsm_finished_p)
15377 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
15379 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
15380 * infrun.c (clear_proceed_status_thread)
15381 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
15382 (print_stop_event): Update.
15383 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
15385 (step_command_fsm_ops): Remove.
15386 (new_step_command_fsm): Remove.
15388 (step_command_fsm::should_stop): Rename from
15389 step_command_fsm_should_stop.
15390 (step_command_fsm::clean_up): Rename from
15391 step_command_fsm_clean_up.
15392 (step_command_fsm::do_async_reply_reason): Rename from
15393 step_command_fsm_async_reply_reason.
15394 (struct until_next_fsm): Inherit from thread_fsm. Add
15396 (until_next_fsm_ops): Remove.
15397 (new_until_next_fsm): Remove.
15398 (until_next_fsm::should_stop): Rename from
15399 until_next_fsm_should_stop.
15400 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
15401 (until_next_fsm::do_async_reply_reason): Rename from
15402 until_next_fsm_async_reply_reason.
15403 (struct finish_command_fsm): Inherit from thread_fsm. Add
15404 constructor. Change type of breakpoint.
15405 (finish_command_fsm_ops): Remove.
15406 (new_finish_command_fsm): Remove.
15407 (finish_command_fsm::should_stop): Rename from
15408 finish_command_fsm_should_stop.
15409 (finish_command_fsm::clean_up): Rename from
15410 finish_command_fsm_clean_up.
15411 (finish_command_fsm::return_value): Rename from
15412 finish_command_fsm_return_value.
15413 (finish_command_fsm::do_async_reply_reason): Rename from
15414 finish_command_fsm_async_reply_reason.
15415 (finish_command): Update.
15416 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
15418 (call_thread_fsm_ops): Remove.
15419 (call_thread_fsm::call_thread_fsm): Rename from
15420 new_call_thread_fsm.
15421 (call_thread_fsm::should_stop): Rename from
15422 call_thread_fsm_should_stop.
15423 (call_thread_fsm::should_notify_stop): Rename from
15424 call_thread_fsm_should_notify_stop.
15425 (run_inferior_call, call_function_by_hand_dummy): Update.
15426 * cli/cli-interp.c (should_print_stop_to_console): Update.
15427 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
15428 Add constructor. Change type of location_breakpoint,
15430 (until_break_fsm_ops): Remove.
15431 (new_until_break_fsm): Remove.
15432 (until_break_fsm::should_stop): Rename from
15433 until_break_fsm_should_stop.
15434 (until_break_fsm::clean_up): Rename from
15435 until_break_fsm_clean_up.
15436 (until_break_fsm::do_async_reply_reason): Rename from
15437 until_break_fsm_async_reply_reason.
15438 (until_break_command): Update.
15439 * thread-fsm.c: Remove.
15440 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
15442 2019-02-07 Tom Tromey <tom@tromey.com>
15444 * yy-remap.h: Add include guard.
15445 * xtensa-tdep.h: Add include guard.
15446 * xcoffread.h: Rename include guard.
15447 * varobj-iter.h: Add include guard.
15448 * tui/tui.h: Rename include guard.
15449 * tui/tui-winsource.h: Rename include guard.
15450 * tui/tui-wingeneral.h: Rename include guard.
15451 * tui/tui-windata.h: Rename include guard.
15452 * tui/tui-win.h: Rename include guard.
15453 * tui/tui-stack.h: Rename include guard.
15454 * tui/tui-source.h: Rename include guard.
15455 * tui/tui-regs.h: Rename include guard.
15456 * tui/tui-out.h: Rename include guard.
15457 * tui/tui-layout.h: Rename include guard.
15458 * tui/tui-io.h: Rename include guard.
15459 * tui/tui-hooks.h: Rename include guard.
15460 * tui/tui-file.h: Rename include guard.
15461 * tui/tui-disasm.h: Rename include guard.
15462 * tui/tui-data.h: Rename include guard.
15463 * tui/tui-command.h: Rename include guard.
15464 * tic6x-tdep.h: Add include guard.
15465 * target/waitstatus.h: Rename include guard.
15466 * target/wait.h: Rename include guard.
15467 * target/target.h: Rename include guard.
15468 * target/resume.h: Rename include guard.
15469 * target-float.h: Rename include guard.
15470 * stabsread.h: Add include guard.
15471 * rs6000-tdep.h: Add include guard.
15472 * riscv-fbsd-tdep.h: Add include guard.
15473 * regformats/regdef.h: Rename include guard.
15474 * record.h: Rename include guard.
15475 * python/python.h: Rename include guard.
15476 * python/python-internal.h: Rename include guard.
15477 * python/py-stopevent.h: Rename include guard.
15478 * python/py-ref.h: Rename include guard.
15479 * python/py-record.h: Rename include guard.
15480 * python/py-record-full.h: Rename include guard.
15481 * python/py-record-btrace.h: Rename include guard.
15482 * python/py-instruction.h: Rename include guard.
15483 * python/py-events.h: Rename include guard.
15484 * python/py-event.h: Rename include guard.
15485 * procfs.h: Add include guard.
15486 * proc-utils.h: Add include guard.
15487 * p-lang.h: Add include guard.
15488 * or1k-tdep.h: Rename include guard.
15489 * observable.h: Rename include guard.
15490 * nto-tdep.h: Rename include guard.
15491 * nat/x86-linux.h: Rename include guard.
15492 * nat/x86-linux-dregs.h: Rename include guard.
15493 * nat/x86-gcc-cpuid.h: Add include guard.
15494 * nat/x86-dregs.h: Rename include guard.
15495 * nat/x86-cpuid.h: Rename include guard.
15496 * nat/ppc-linux.h: Rename include guard.
15497 * nat/mips-linux-watch.h: Rename include guard.
15498 * nat/linux-waitpid.h: Rename include guard.
15499 * nat/linux-ptrace.h: Rename include guard.
15500 * nat/linux-procfs.h: Rename include guard.
15501 * nat/linux-osdata.h: Rename include guard.
15502 * nat/linux-nat.h: Rename include guard.
15503 * nat/linux-namespaces.h: Rename include guard.
15504 * nat/linux-btrace.h: Rename include guard.
15505 * nat/glibc_thread_db.h: Rename include guard.
15506 * nat/gdb_thread_db.h: Rename include guard.
15507 * nat/gdb_ptrace.h: Rename include guard.
15508 * nat/fork-inferior.h: Rename include guard.
15509 * nat/amd64-linux-siginfo.h: Rename include guard.
15510 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15511 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15512 * nat/aarch64-linux.h: Rename include guard.
15513 * nat/aarch64-linux-hw-point.h: Rename include guard.
15514 * mn10300-tdep.h: Add include guard.
15515 * mips-linux-tdep.h: Add include guard.
15516 * mi/mi-parse.h: Rename include guard.
15517 * mi/mi-out.h: Rename include guard.
15518 * mi/mi-main.h: Rename include guard.
15519 * mi/mi-interp.h: Rename include guard.
15520 * mi/mi-getopt.h: Rename include guard.
15521 * mi/mi-console.h: Rename include guard.
15522 * mi/mi-common.h: Rename include guard.
15523 * mi/mi-cmds.h: Rename include guard.
15524 * mi/mi-cmd-break.h: Rename include guard.
15525 * m2-lang.h: Add include guard.
15526 * location.h: Rename include guard.
15527 * linux-record.h: Rename include guard.
15528 * linux-nat.h: Add include guard.
15529 * linux-fork.h: Add include guard.
15530 * i386-darwin-tdep.h: Rename include guard.
15531 * hppa-linux-offsets.h: Add include guard.
15532 * guile/guile.h: Rename include guard.
15533 * guile/guile-internal.h: Rename include guard.
15534 * gnu-nat.h: Rename include guard.
15535 * gdb-stabs.h: Rename include guard.
15536 * frv-tdep.h: Add include guard.
15537 * f-lang.h: Add include guard.
15538 * event-loop.h: Add include guard.
15539 * darwin-nat.h: Rename include guard.
15540 * cp-abi.h: Rename include guard.
15541 * config/sparc/nm-sol2.h: Rename include guard.
15542 * config/nm-nto.h: Rename include guard.
15543 * config/nm-linux.h: Add include guard.
15544 * config/i386/nm-i386gnu.h: Rename include guard.
15545 * config/djgpp/nl_types.h: Rename include guard.
15546 * config/djgpp/langinfo.h: Rename include guard.
15547 * compile/gcc-cp-plugin.h: Add include guard.
15548 * compile/gcc-c-plugin.h: Add include guard.
15549 * compile/compile.h: Rename include guard.
15550 * compile/compile-object-run.h: Rename include guard.
15551 * compile/compile-object-load.h: Rename include guard.
15552 * compile/compile-internal.h: Rename include guard.
15553 * compile/compile-cplus.h: Rename include guard.
15554 * compile/compile-c.h: Rename include guard.
15555 * common/xml-utils.h: Rename include guard.
15556 * common/x86-xstate.h: Rename include guard.
15557 * common/version.h: Rename include guard.
15558 * common/vec.h: Rename include guard.
15559 * common/tdesc.h: Rename include guard.
15560 * common/selftest.h: Rename include guard.
15561 * common/scoped_restore.h: Rename include guard.
15562 * common/scoped_mmap.h: Rename include guard.
15563 * common/scoped_fd.h: Rename include guard.
15564 * common/safe-iterator.h: Rename include guard.
15565 * common/run-time-clock.h: Rename include guard.
15566 * common/refcounted-object.h: Rename include guard.
15567 * common/queue.h: Rename include guard.
15568 * common/ptid.h: Rename include guard.
15569 * common/print-utils.h: Rename include guard.
15570 * common/preprocessor.h: Rename include guard.
15571 * common/pathstuff.h: Rename include guard.
15572 * common/observable.h: Rename include guard.
15573 * common/netstuff.h: Rename include guard.
15574 * common/job-control.h: Rename include guard.
15575 * common/host-defs.h: Rename include guard.
15576 * common/gdb_wait.h: Rename include guard.
15577 * common/gdb_vecs.h: Rename include guard.
15578 * common/gdb_unlinker.h: Rename include guard.
15579 * common/gdb_unique_ptr.h: Rename include guard.
15580 * common/gdb_tilde_expand.h: Rename include guard.
15581 * common/gdb_sys_time.h: Rename include guard.
15582 * common/gdb_string_view.h: Rename include guard.
15583 * common/gdb_splay_tree.h: Rename include guard.
15584 * common/gdb_setjmp.h: Rename include guard.
15585 * common/gdb_ref_ptr.h: Rename include guard.
15586 * common/gdb_optional.h: Rename include guard.
15587 * common/gdb_locale.h: Rename include guard.
15588 * common/gdb_assert.h: Rename include guard.
15589 * common/filtered-iterator.h: Rename include guard.
15590 * common/filestuff.h: Rename include guard.
15591 * common/fileio.h: Rename include guard.
15592 * common/environ.h: Rename include guard.
15593 * common/common-utils.h: Rename include guard.
15594 * common/common-types.h: Rename include guard.
15595 * common/common-regcache.h: Rename include guard.
15596 * common/common-inferior.h: Rename include guard.
15597 * common/common-gdbthread.h: Rename include guard.
15598 * common/common-exceptions.h: Rename include guard.
15599 * common/common-defs.h: Rename include guard.
15600 * common/common-debug.h: Rename include guard.
15601 * common/cleanups.h: Rename include guard.
15602 * common/buffer.h: Rename include guard.
15603 * common/btrace-common.h: Rename include guard.
15604 * common/break-common.h: Rename include guard.
15605 * cli/cli-utils.h: Rename include guard.
15606 * cli/cli-style.h: Rename include guard.
15607 * cli/cli-setshow.h: Rename include guard.
15608 * cli/cli-script.h: Rename include guard.
15609 * cli/cli-interp.h: Rename include guard.
15610 * cli/cli-decode.h: Rename include guard.
15611 * cli/cli-cmds.h: Rename include guard.
15612 * charset-list.h: Add include guard.
15613 * buildsym-legacy.h: Rename include guard.
15614 * bfin-tdep.h: Add include guard.
15615 * ax.h: Rename include guard.
15616 * arm-linux-tdep.h: Add include guard.
15617 * arm-fbsd-tdep.h: Add include guard.
15618 * arch/xtensa.h: Rename include guard.
15619 * arch/tic6x.h: Add include guard.
15620 * arch/i386.h: Add include guard.
15621 * arch/arm.h: Rename include guard.
15622 * arch/arm-linux.h: Rename include guard.
15623 * arch/arm-get-next-pcs.h: Rename include guard.
15624 * arch/amd64.h: Add include guard.
15625 * arch/aarch64-insn.h: Rename include guard.
15626 * arch-utils.h: Rename include guard.
15627 * annotate.h: Add include guard.
15628 * amd64-darwin-tdep.h: Rename include guard.
15629 * aarch64-linux-tdep.h: Add include guard.
15630 * aarch64-fbsd-tdep.h: Add include guard.
15631 * aarch32-linux-nat.h: Add include guard.
15633 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15635 * macrotab.c (macro_define_internal): New function that
15636 factorizes macro_define_object_internal and macro_define_function
15638 (macro_define_object_internal): Use macro_define_internal.
15639 (macro_define_function): Likewise.
15641 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15643 * macrocmd.c (extract_identifier): Return
15644 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15647 2019-02-06 John Baldwin <jhb@FreeBSD.org>
15649 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15651 2019-02-05 Tom Tromey <tom@tromey.com>
15653 * target.c (target_stack::unpush): Move assertion earlier.
15655 2019-01-30 Tom Tromey <tom@tromey.com>
15658 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15659 (gdbpy_parse_and_eval): Likewise.
15660 * python/python-internal.h (gdbpy_allow_threads): New class.
15662 2019-01-28 John Baldwin <jhb@FreeBSD.org>
15664 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15665 (aarch64_fbsd_fpregmap): Move earlier.
15666 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15667 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15668 instead of individual calls to trad_frame_set_reg_addr.
15669 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15671 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15672 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15673 instead of individual calls to trad_frame_set_reg_addr.
15675 2019-01-28 Alan Hayward <alan.hayward@arm.com>
15677 * CONTRIBUTE: Replace contribution list with wiki link.
15679 2019-01-25 Tom Tromey <tom@tromey.com>
15681 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15683 2019-01-25 Tom Tromey <tom@tromey.com>
15685 * xtensa-linux-nat.c: Fix common/ includes.
15686 * xml-support.h: Fix common/ includes.
15687 * xml-support.c: Fix common/ includes.
15688 * x86-linux-nat.c: Fix common/ includes.
15689 * windows-nat.c: Fix common/ includes.
15690 * varobj.h: Fix common/ includes.
15691 * varobj.c: Fix common/ includes.
15692 * value.c: Fix common/ includes.
15693 * valops.c: Fix common/ includes.
15694 * utils.c: Fix common/ includes.
15695 * unittests/xml-utils-selftests.c: Fix common/ includes.
15696 * unittests/utils-selftests.c: Fix common/ includes.
15697 * unittests/unpack-selftests.c: Fix common/ includes.
15698 * unittests/tracepoint-selftests.c: Fix common/ includes.
15699 * unittests/style-selftests.c: Fix common/ includes.
15700 * unittests/string_view-selftests.c: Fix common/ includes.
15701 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15702 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15703 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15704 * unittests/rsp-low-selftests.c: Fix common/ includes.
15705 * unittests/parse-connection-spec-selftests.c: Fix common/
15707 * unittests/optional-selftests.c: Fix common/ includes.
15708 * unittests/offset-type-selftests.c: Fix common/ includes.
15709 * unittests/observable-selftests.c: Fix common/ includes.
15710 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15711 * unittests/memrange-selftests.c: Fix common/ includes.
15712 * unittests/memory-map-selftests.c: Fix common/ includes.
15713 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15714 * unittests/function-view-selftests.c: Fix common/ includes.
15715 * unittests/environ-selftests.c: Fix common/ includes.
15716 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15717 * unittests/common-utils-selftests.c: Fix common/ includes.
15718 * unittests/cli-utils-selftests.c: Fix common/ includes.
15719 * unittests/array-view-selftests.c: Fix common/ includes.
15720 * ui-file.c: Fix common/ includes.
15721 * tui/tui-io.c: Fix common/ includes.
15722 * tracepoint.h: Fix common/ includes.
15723 * tracepoint.c: Fix common/ includes.
15724 * tracefile-tfile.c: Fix common/ includes.
15725 * top.h: Fix common/ includes.
15726 * top.c: Fix common/ includes.
15727 * thread.c: Fix common/ includes.
15728 * target/waitstatus.h: Fix common/ includes.
15729 * target/waitstatus.c: Fix common/ includes.
15730 * target.h: Fix common/ includes.
15731 * target.c: Fix common/ includes.
15732 * target-memory.c: Fix common/ includes.
15733 * target-descriptions.c: Fix common/ includes.
15734 * symtab.h: Fix common/ includes.
15735 * symfile.c: Fix common/ includes.
15736 * stap-probe.c: Fix common/ includes.
15737 * spu-linux-nat.c: Fix common/ includes.
15738 * sparc-nat.c: Fix common/ includes.
15739 * source.c: Fix common/ includes.
15740 * solib.c: Fix common/ includes.
15741 * solib-target.c: Fix common/ includes.
15742 * ser-unix.c: Fix common/ includes.
15743 * ser-tcp.c: Fix common/ includes.
15744 * ser-pipe.c: Fix common/ includes.
15745 * ser-base.c: Fix common/ includes.
15746 * selftest-arch.c: Fix common/ includes.
15747 * s12z-tdep.c: Fix common/ includes.
15748 * rust-exp.y: Fix common/ includes.
15749 * rs6000-aix-tdep.c: Fix common/ includes.
15750 * riscv-tdep.c: Fix common/ includes.
15751 * remote.c: Fix common/ includes.
15752 * remote-notif.h: Fix common/ includes.
15753 * remote-fileio.h: Fix common/ includes.
15754 * remote-fileio.c: Fix common/ includes.
15755 * regcache.h: Fix common/ includes.
15756 * regcache.c: Fix common/ includes.
15757 * record-btrace.c: Fix common/ includes.
15758 * python/python.c: Fix common/ includes.
15759 * python/py-type.c: Fix common/ includes.
15760 * python/py-inferior.c: Fix common/ includes.
15761 * progspace.h: Fix common/ includes.
15762 * producer.c: Fix common/ includes.
15763 * procfs.c: Fix common/ includes.
15764 * proc-api.c: Fix common/ includes.
15765 * printcmd.c: Fix common/ includes.
15766 * ppc-linux-nat.c: Fix common/ includes.
15767 * parser-defs.h: Fix common/ includes.
15768 * osdata.c: Fix common/ includes.
15769 * obsd-nat.c: Fix common/ includes.
15770 * nat/x86-linux.c: Fix common/ includes.
15771 * nat/x86-linux-dregs.c: Fix common/ includes.
15772 * nat/x86-dregs.h: Fix common/ includes.
15773 * nat/x86-dregs.c: Fix common/ includes.
15774 * nat/ppc-linux.c: Fix common/ includes.
15775 * nat/mips-linux-watch.h: Fix common/ includes.
15776 * nat/mips-linux-watch.c: Fix common/ includes.
15777 * nat/linux-waitpid.c: Fix common/ includes.
15778 * nat/linux-ptrace.h: Fix common/ includes.
15779 * nat/linux-ptrace.c: Fix common/ includes.
15780 * nat/linux-procfs.c: Fix common/ includes.
15781 * nat/linux-personality.c: Fix common/ includes.
15782 * nat/linux-osdata.c: Fix common/ includes.
15783 * nat/linux-namespaces.c: Fix common/ includes.
15784 * nat/linux-btrace.h: Fix common/ includes.
15785 * nat/linux-btrace.c: Fix common/ includes.
15786 * nat/fork-inferior.c: Fix common/ includes.
15787 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15788 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15789 * nat/aarch64-linux.c: Fix common/ includes.
15790 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15791 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15792 * namespace.h: Fix common/ includes.
15793 * mips-linux-tdep.c: Fix common/ includes.
15794 * minsyms.c: Fix common/ includes.
15795 * mi/mi-parse.h: Fix common/ includes.
15796 * mi/mi-main.c: Fix common/ includes.
15797 * mi/mi-cmd-env.c: Fix common/ includes.
15798 * memrange.h: Fix common/ includes.
15799 * memattr.c: Fix common/ includes.
15800 * maint.h: Fix common/ includes.
15801 * maint.c: Fix common/ includes.
15802 * main.c: Fix common/ includes.
15803 * machoread.c: Fix common/ includes.
15804 * location.c: Fix common/ includes.
15805 * linux-thread-db.c: Fix common/ includes.
15806 * linux-nat.c: Fix common/ includes.
15807 * linux-fork.c: Fix common/ includes.
15808 * inline-frame.c: Fix common/ includes.
15809 * infrun.c: Fix common/ includes.
15810 * inflow.c: Fix common/ includes.
15811 * inferior.h: Fix common/ includes.
15812 * inferior.c: Fix common/ includes.
15813 * infcmd.c: Fix common/ includes.
15814 * inf-ptrace.c: Fix common/ includes.
15815 * inf-child.c: Fix common/ includes.
15816 * ia64-linux-nat.c: Fix common/ includes.
15817 * i387-tdep.c: Fix common/ includes.
15818 * i386-tdep.c: Fix common/ includes.
15819 * i386-linux-tdep.c: Fix common/ includes.
15820 * i386-linux-nat.c: Fix common/ includes.
15821 * i386-go32-tdep.c: Fix common/ includes.
15822 * i386-fbsd-tdep.c: Fix common/ includes.
15823 * i386-fbsd-nat.c: Fix common/ includes.
15824 * guile/scm-type.c: Fix common/ includes.
15825 * guile/guile.c: Fix common/ includes.
15826 * go32-nat.c: Fix common/ includes.
15827 * gnu-nat.c: Fix common/ includes.
15828 * gdbthread.h: Fix common/ includes.
15829 * gdbarch-selftests.c: Fix common/ includes.
15830 * gdb_usleep.c: Fix common/ includes.
15831 * gdb_select.h: Fix common/ includes.
15832 * gdb_bfd.c: Fix common/ includes.
15833 * gcore.c: Fix common/ includes.
15834 * fork-child.c: Fix common/ includes.
15835 * findvar.c: Fix common/ includes.
15836 * fbsd-nat.c: Fix common/ includes.
15837 * event-top.c: Fix common/ includes.
15838 * event-loop.c: Fix common/ includes.
15839 * dwarf2read.c: Fix common/ includes.
15840 * dwarf2loc.c: Fix common/ includes.
15841 * dwarf2-frame.c: Fix common/ includes.
15842 * dwarf-index-cache.c: Fix common/ includes.
15843 * dtrace-probe.c: Fix common/ includes.
15844 * disasm-selftests.c: Fix common/ includes.
15845 * defs.h: Fix common/ includes.
15846 * csky-tdep.c: Fix common/ includes.
15847 * cp-valprint.c: Fix common/ includes.
15848 * cp-support.h: Fix common/ includes.
15849 * cp-support.c: Fix common/ includes.
15850 * corelow.c: Fix common/ includes.
15851 * completer.h: Fix common/ includes.
15852 * completer.c: Fix common/ includes.
15853 * compile/compile.c: Fix common/ includes.
15854 * compile/compile-loc2c.c: Fix common/ includes.
15855 * compile/compile-cplus-types.c: Fix common/ includes.
15856 * compile/compile-cplus-symbols.c: Fix common/ includes.
15857 * command.h: Fix common/ includes.
15858 * cli/cli-dump.c: Fix common/ includes.
15859 * cli/cli-cmds.c: Fix common/ includes.
15860 * charset.c: Fix common/ includes.
15861 * build-id.c: Fix common/ includes.
15862 * btrace.h: Fix common/ includes.
15863 * btrace.c: Fix common/ includes.
15864 * breakpoint.h: Fix common/ includes.
15865 * breakpoint.c: Fix common/ includes.
15867 (enum agent_op): Fix common/ includes.
15868 * ax-general.c (struct aop_map): Fix common/ includes.
15869 * ax-gdb.c: Fix common/ includes.
15870 * auxv.c: Fix common/ includes.
15871 * auto-load.c: Fix common/ includes.
15872 * arm-tdep.c: Fix common/ includes.
15873 * arch/riscv.c: Fix common/ includes.
15874 * arch/ppc-linux-common.c: Fix common/ includes.
15875 * arch/i386.c: Fix common/ includes.
15876 * arch/arm.c: Fix common/ includes.
15877 * arch/arm-linux.c: Fix common/ includes.
15878 * arch/arm-get-next-pcs.c: Fix common/ includes.
15879 * arch/amd64.c: Fix common/ includes.
15880 * arch/aarch64.c: Fix common/ includes.
15881 * arch/aarch64-insn.c: Fix common/ includes.
15882 * arch-utils.c: Fix common/ includes.
15883 * amd64-windows-tdep.c: Fix common/ includes.
15884 * amd64-tdep.c: Fix common/ includes.
15885 * amd64-sol2-tdep.c: Fix common/ includes.
15886 * amd64-obsd-tdep.c: Fix common/ includes.
15887 * amd64-nbsd-tdep.c: Fix common/ includes.
15888 * amd64-linux-tdep.c: Fix common/ includes.
15889 * amd64-linux-nat.c: Fix common/ includes.
15890 * amd64-fbsd-tdep.c: Fix common/ includes.
15891 * amd64-fbsd-nat.c: Fix common/ includes.
15892 * amd64-dicos-tdep.c: Fix common/ includes.
15893 * amd64-darwin-tdep.c: Fix common/ includes.
15894 * agent.c: Fix common/ includes.
15895 * ada-lang.h: Fix common/ includes.
15896 * ada-lang.c: Fix common/ includes.
15897 * aarch64-tdep.c: Fix common/ includes.
15899 2019-01-25 Tom Tromey <tom@tromey.com>
15901 * common/create-version.sh: Use common/version.h.
15903 2019-01-24 Pedro Alves <palves@redhat.com>
15905 * infrun.c (signal_stop, signal_print, signal_program)
15906 (signal_catch, signal_pass): Now arrays instead of pointers.
15907 (update_signals_program_target, do_target_resume)
15908 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15909 * linux-nat.c (linux_nat_target::pass_signals)
15910 (linux_nat_target::create_inferior, linux_nat_target::attach):
15912 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15913 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15914 * procfs.c (procfs_target::pass_signals): Adjust.
15915 * record-full.c (record_full_target::resume): Adjust.
15916 * remote.c (remote_target::pass_signals)
15917 (remote_target::program_signals): Adjust.
15918 * target-debug.h (target_debug_print_signals): Now takes a
15919 gdb::array_view as parameter. Adjust.
15920 * target.h (target_ops) <pass_signals, program_signals>: Replace
15921 pointer and length parameters with gdb::array_view.
15922 (target_pass_signals, target_program_signals): Likewise.
15923 * target-delegates.c: Regenerate.
15925 2019-01-24 Pedro Alves <palves@redhat.com>
15927 * common/forward-scope-exit.h
15928 (forward_scope_exit::forward_scope_exit): Pass arguments to
15929 m_bind_function directly, instead of creating a std::bind and
15932 2019-01-24 Alan Hayward <alan.hayward@arm.com>
15934 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15935 for static members.
15936 (pass_in_v_vfp_candidate): Likewise.
15938 2019-01-23 Tom Tromey <tom@tromey.com>
15939 Pedro Alves <palves@redhat.com>
15941 * regcache.c (class regcache_invalidator): Remove.
15942 (regcache::raw_write): Use make_scope_exit.
15944 2019-01-23 Tom Tromey <tom@tromey.com>
15946 * ui-out.h (class ui_out_emit_type): Update comment.
15948 2019-01-23 Tom Tromey <tom@tromey.com>
15950 * infrun.c (fetch_inferior_event): Update comment.
15952 2019-01-23 Tom Tromey <tom@tromey.com>
15953 Pedro Alves <palves@redhat.com>
15955 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15957 (fetch_inferior_event): Use SCOPE_EXIT.
15960 2019-01-23 Tom Tromey <tom@tromey.com>
15961 Pedro Alves <palves@redhat.com>
15963 * infrun.c (disable_thread_events): Delete.
15964 (stop_all_threads): Use SCOPE_EXIT.
15966 2019-01-23 Tom Tromey <tom@tromey.com>
15967 Pedro Alves <palves@redhat.com>
15969 * symfile.c: Include forward-scope-exit.h.
15970 (clear_symtab_users_cleanup): Replace forward declaration with
15971 a FORWARD_SCOPE_EXIT.
15972 (syms_from_objfile_1): Use the forward_scope_exit and
15973 gdb::optional instead of cleanup_function.
15974 (reread_symbols): Use the forward_scope_exit instead of
15976 (clear_symtab_users_cleanup): Remove function.
15978 2019-01-23 Tom Tromey <tom@tromey.com>
15979 Pedro Alves <palves@redhat.com>
15981 * linux-nat.c: Include scope-exit.h.
15982 (cleanup_target_stop): Remove.
15983 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15986 2019-01-23 Tom Tromey <tom@tromey.com>
15987 Pedro Alves <palves@redhat.com>
15989 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15990 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15992 2019-01-23 Tom Tromey <tom@tromey.com>
15993 Andrew Burgess <andrew.burgess@embecosm.com>
15994 Pedro Alves <palves@redhat.com>
15996 * infrun.c (fetch_inferior_event): Use scope_exit.
15997 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15998 * top.c (execute_command): Use scope_exit.
15999 * breakpoint.c (bpstat_do_actions): Use scope_exit.
16000 * utils.c (do_bpstat_clear_actions_cleanup)
16001 (make_bpstat_clear_actions_cleanup): Remove.
16003 2019-01-23 Tom Tromey <tom@tromey.com>
16004 Pedro Alves <palves@redhat.com>
16006 * infrun.c: Include "common/scope-exit.h"
16007 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
16008 (wait_for_inferior): Use SCOPE_EXIT.
16009 (fetch_inferior_event): Use scope_exit.
16011 2019-01-23 Tom Tromey <tom@tromey.com>
16012 Pedro Alves <palves@redhat.com>
16014 * breakpoint.c (create_breakpoint): Remove cleanup.
16016 2019-01-23 Tom Tromey <tom@tromey.com>
16017 Andrew Burgess <andrew.burgess@embecosm.com>
16018 Pedro Alves <palves@redhat.com>
16020 2019-01-23 Pedro Alves <palves@redhat.com>
16022 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
16024 2019-01-23 Pedro Alves <palves@redhat.com>
16025 Andrew Burgess <andrew.burgess@embecosm.com>
16027 * gdbthread.h: Include "common/forward-scope-exit.h".
16028 (scoped_finish_thread_state): Redefine custom class in terms of
16029 forward_scope_exit.
16031 2019-01-23 Pedro Alves <palves@redhat.com>
16032 Andrew Burgess <andrew.burgess@embecosm.com>
16034 * common/forward-scope-exit.h: New file.
16036 2019-01-23 Pedro Alves <palves@redhat.com>
16037 Andrew Burgess <andrew.burgess@embecosm.com>
16038 Tom Tromey <tom@tromey.com>
16040 * common/scope-exit.h: New file.
16042 2019-01-23 Pedro Alves <palves@redhat.com>
16044 * common/preprocessor.h (ESC): Rename to ...
16045 (ESC_PARENS): ... this.
16046 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
16047 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
16049 2019-01-23 Tom Tromey <tom@tromey.com>
16051 * language.h (class scoped_switch_to_sym_language_if_auto):
16052 Initialize m_lang in both cases.
16054 2019-01-23 Alan Hayward <alan.hayward@arm.com>
16056 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
16059 2019-01-22 Tom Tromey <tom@tromey.com>
16061 * corelow.c: Do not include sys/file.h.
16063 2019-01-22 Tom Tromey <tom@tromey.com>
16065 * tui/tui-wingeneral.h: Include gdb_curses.h.
16067 2019-01-22 Tom Tromey <tom@tromey.com>
16069 * source-cache.h (class source_cache) <get_source_lines,
16070 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
16072 2019-01-22 Tom Tromey <tom@tromey.com>
16074 * remote-fileio.h (struct remote_target): Declare.
16076 2019-01-22 Tom Tromey <tom@tromey.com>
16078 * python/py-arch.c: Do not include py-ref.h.
16079 * python/py-bpevent.c: Do not include py-ref.h.
16080 * python/py-cmd.c: Do not include py-ref.h.
16081 * python/py-continueevent.c: Do not include py-ref.h.
16082 * python/py-event.h: Do not include py-ref.h.
16083 * python/py-evtregistry.c: Do not include py-ref.h.
16084 * python/py-finishbreakpoint.c: Do not include py-ref.h.
16085 * python/py-frame.c: Do not include py-ref.h.
16086 * python/py-framefilter.c: Do not include py-ref.h.
16087 * python/py-function.c: Do not include py-ref.h.
16088 * python/py-infevents.c: Do not include py-ref.h.
16089 * python/py-linetable.c: Do not include py-ref.h.
16090 * python/py-objfile.c: Do not include py-ref.h.
16091 * python/py-param.c: Do not include py-ref.h.
16092 * python/py-prettyprint.c: Do not include py-ref.h.
16093 * python/py-progspace.c: Do not include py-ref.h.
16094 * python/py-symbol.c: Do not include py-ref.h.
16095 * python/py-symtab.c: Do not include py-ref.h.
16096 * python/py-type.c: Do not include py-ref.h.
16097 * python/py-unwind.c: Do not include py-ref.h.
16098 * python/py-utils.c: Do not include py-ref.h.
16099 * python/py-value.c: Do not include py-ref.h.
16100 * python/py-varobj.c: Do not include py-ref.h.
16101 * python/py-xmethods.c: Do not include py-ref.h.
16102 * python/python.c: Do not include py-ref.h.
16103 * varobj.c: Do not include py-ref.h.
16105 2019-01-22 Tom Tromey <tom@tromey.com>
16107 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
16108 keyword for bcache.
16110 2019-01-22 Tom Tromey <tom@tromey.com>
16112 * compile/compile-cplus-types.c: Remove a comment by #include.
16114 2019-01-22 Tom Tromey <tom@tromey.com>
16116 * compile/gcc-c-plugin.h: Include compile-internal.h.
16118 2019-01-22 Tom Tromey <tom@tromey.com>
16120 * stabsread.c (EXTERN): Do not define.
16121 (symnum, next_symbol_text_func, processing_gcc_compilation)
16122 (within_function, global_sym_chain, global_stabs)
16123 (previous_stab_code, this_object_header_files)
16124 (n_this_object_header_files)
16125 (n_allocated_this_object_header_files): Define.
16126 * stabsread.h (EXTERN): Never define. Use "extern".
16128 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16130 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
16133 2019-01-21 Tom Tromey <tom@tromey.com>
16135 * ui-out.c: Fix includes.
16136 * tui/tui-source.c: Fix includes.
16137 * target.c: Fix includes.
16138 * remote.c: Fix includes.
16139 * regcache.c: Fix includes.
16140 * python/py-block.c: Fix includes.
16141 * printcmd.c: Fix includes.
16142 * or1k-tdep.c: Fix includes.
16143 * mi/mi-main.c: Fix includes.
16144 * m32r-tdep.c: Fix includes.
16145 * csky-tdep.c: Fix includes.
16146 * compile/compile-cplus-types.c: Fix includes.
16147 * cli/cli-interp.c: Fix includes.
16149 2019-01-21 Alan Hayward <alan.hayward@arm.com>
16151 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
16154 2019-01-16 Tom Tromey <tom@tromey.com>
16156 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
16158 (struct objfile) <msymbols_range>: Move from top level.
16159 <msymbols>: New method.
16160 (class objfile_msymbols): Remove.
16161 * symtab.c (default_collect_symbol_completion_matches_break_on):
16163 * symmisc.c (dump_msymbols): Update.
16164 * stabsread.c (scan_file_globals): Update.
16165 * objc-lang.c (info_selectors_command, info_classes_command)
16166 (find_methods): Update.
16167 * minsyms.c (find_solib_trampoline_target): Update.
16168 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
16169 * coffread.c (coff_symfile_read): Update.
16170 * ada-lang.c (ada_lookup_simple_minsym)
16171 (ada_collect_symbol_completion_matches): Update.
16173 2019-01-16 Tom Tromey <tom@tromey.com>
16175 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
16176 type. Remove no-argument constructor.
16177 <iterator::operator++>: Simplify.
16179 <end>: Use minimal_symbol_count.
16181 2019-01-16 Tom Tromey <tom@tromey.com>
16183 * objfiles.h (struct objfile) <psymtabs>: New method.
16184 (class objfile_psymtabs): Remove.
16185 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
16187 <range>: New method.
16188 (require_partial_symbols): Change return type.
16189 * psymtab.c (require_partial_symbols)
16190 (psym_expand_symtabs_matching): Update.
16191 * mdebugread.c (parse_partial_symbols): Update.
16192 * dbxread.c (dbx_end_psymtab): Update.
16194 2019-01-15 Tom Tromey <tom@tromey.com>
16196 * symtab.c (lookup_objfile_from_block)
16197 (lookup_symbol_in_objfile_symtabs)
16198 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
16199 (find_line_symtab, info_sources_command)
16200 (default_collect_symbol_completion_matches_break_on)
16201 (make_source_files_completion_list): Update.
16202 * symmisc.c (print_objfile_statistics, dump_objfile)
16203 (maintenance_print_symbols, maintenance_info_symtabs)
16204 (maintenance_check_symtabs, maintenance_info_line_tables):
16206 * source.c (select_source_symtab)
16207 (forget_cached_source_info_for_objfile): Update.
16208 * objfiles.h (class objfile_compunits): Remove.
16209 (struct objfile) <compunits_range>: New typedef.
16210 (compunits): New method.
16211 * objfiles.c (objfile_relocate1): Update.
16212 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16213 * maint.c (count_symtabs_and_blocks): Update.
16214 * linespec.c (iterate_over_all_matching_symtabs): Update.
16215 * cp-support.c (add_symbol_overload_list_qualified): Update.
16216 * coffread.c (coff_symtab_read): Update.
16217 * ada-lang.c (add_nonlocal_symbols)
16218 (ada_collect_symbol_completion_matches)
16219 (ada_add_global_exceptions): Update.
16221 2019-01-15 Tom Tromey <tom@tromey.com>
16223 * progspace.h (program_space) <objfiles_safe_range>: New
16225 <objfiles_safe>: New method.
16226 * objfiles.h (class all_objfiles_safe): Remove.
16227 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
16228 * jit.c (jit_inferior_exit_hook): Update.
16230 2019-01-17 Tom Tromey <tom@tromey.com>
16232 * progspace.h (program_space) <objfiles_range>: New typedef.
16233 <objfiles>: New method.
16234 <objfiles_head>: Rename from objfiles.
16235 (object_files): Update.
16236 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
16237 * guile/scm-pretty-print.c
16238 (ppscm_find_pretty_printer_from_objfiles): Update.
16239 * guile/scm-objfile.c (gdbscm_objfiles): Update.
16240 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
16242 * python/py-progspace.c (pspy_get_objfiles): Update.
16243 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16245 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16246 (objfpy_lookup_objfile_by_build_id): Update.
16247 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
16248 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16250 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16251 (expand_symtab_containing_pc, lookup_objfile_from_block)
16252 (lookup_static_symbol, basic_lookup_transparent_type)
16253 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16254 (find_line_symtab, info_sources_command)
16255 (default_collect_symbol_completion_matches_break_on)
16256 (make_source_files_completion_list, find_main_name): Update.
16257 * symmisc.c (print_symbol_bcache_statistics)
16258 (print_objfile_statistics, maintenance_print_symbols)
16259 (maintenance_print_msymbols, maintenance_print_objfiles)
16260 (maintenance_info_symtabs, maintenance_check_symtabs)
16261 (maintenance_expand_symtabs, maintenance_info_line_tables):
16263 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
16264 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
16265 (map_overlay_command, unmap_overlay_command)
16266 (simple_overlay_update, expand_symtabs_matching)
16267 (map_symbol_filenames): Update.
16268 * symfile-debug.c (set_debug_symfile): Update.
16269 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
16271 * source.c (select_source_symtab, forget_cached_source_info):
16273 * solib.c (solib_read_symbols): Update.
16274 * solib-spu.c (append_ocl_sos): Update.
16275 * psymtab.c (maintenance_print_psymbols)
16276 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
16277 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
16278 * printcmd.c (info_symbol_command): Update.
16279 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
16281 * objfiles.h (class all_objfiles): Remove.
16282 * objfiles.c (have_partial_symbols, have_full_symbols)
16283 (have_minimal_symbols, qsort_cmp, update_section_map)
16284 (shared_objfile_contains_address_p)
16285 (default_iterate_over_objfiles_in_search_order): Update.
16286 * objc-lang.c (info_selectors_command, info_classes_command)
16287 (find_methods): Update.
16288 * minsyms.c (find_solib_trampoline_target): Update.
16289 * maint.c (maintenance_info_sections)
16290 (maintenance_translate_address, count_symtabs_and_blocks):
16292 * main.c (captured_main_1): Update.
16293 * linux-thread-db.c (try_thread_db_load_from_pdir)
16294 (has_libpthread): Update.
16295 * linespec.c (iterate_over_all_matching_symtabs)
16296 (search_minsyms_for_name): Update.
16297 * jit.c (jit_find_objf_with_entry_addr): Update.
16298 * hppa-tdep.c (find_unwind_entry)
16299 (hppa_lookup_stub_minimal_symbol): Update.
16300 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
16302 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16303 (elf_gnu_ifunc_resolve_by_got): Update.
16304 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
16305 * dwarf-index-write.c (save_gdb_index_command): Update.
16306 * cp-support.c (add_symbol_overload_list_qualified): Update.
16307 * breakpoint.c (create_overlay_event_breakpoint)
16308 (create_longjmp_master_breakpoint)
16309 (create_std_terminate_master_breakpoint)
16310 (create_exception_master_breakpoint): Update.
16311 * blockframe.c (find_pc_partial_function): Update.
16312 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
16313 (ada_collect_symbol_completion_matches)
16314 (ada_add_global_exceptions): Update.
16316 2019-01-17 Tom Tromey <tom@tromey.com>
16318 * solib-target.c (lm_info_target_p): Remove typedef. Don't
16320 (solib_target_parse_libraries): Change return type.
16321 (library_list_start_segment, library_list_start_section)
16322 (library_list_end_library, library_list_start_library); Update.
16323 (solib_target_free_library_list): Remove.
16324 (solib_target_parse_libraries): Remove cleanup. Change return
16326 (solib_target_current_sos): Update.
16328 2019-01-17 Tom Tromey <tromey@bapiya>
16330 * valprint.c: Replace "the the" with "the".
16331 * symtab.c: Replace "the the" with "the".
16332 * solib.c: Replace "the the" with "the".
16333 * solib-dsbt.c: Replace "the the" with "the".
16334 * linespec.c: Replace "the the" with "the".
16335 * dwarf2loc.h: Replace "the the" with "the".
16336 * amd64-windows-tdep.c: Replace "the the" with "the".
16337 * aarch64-tdep.c: Replace "the the" with "the".
16339 2019-01-16 Keith Seitz <keiths@redhat.com>
16342 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
16343 <builder>: Rename to ..
16344 <m_builder>: ... this and make private.
16345 (dwarf2_cu::get_builder): New method. Change all users of
16346 `builder' to use this method.
16347 (dwarf2_start_symtab): Move to ...
16348 (dwarf2_cu::start_symtab): ... here. Update all callers
16349 (setup_type_unit_groups): Move to ...
16350 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
16352 (dwarf2_cu::reset_builder): New method.
16353 (process_full_compunit, process_full_type_unit): Use
16354 dwarf2_cu::reset_builder.
16355 (follow_die_offset): Record the ancestor CU if it is different
16356 from the followed DIE's CU.
16357 (follow_die_sig_1): Likewise.
16359 2019-01-15 Tom Tromey <tom@tromey.com>
16361 * remote.c (class remote_state) <buf>: Now a char_vector.
16362 <buf_size>: Remove.
16363 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
16365 (remote_target::getpkt_or_notif_sane_1)
16366 (remote_target::getpkt_sane)
16367 (remote_target::getpkt_or_notif_sane): Likewise.
16368 (class remote_target) <putpkt>: New overload.
16369 (remote_target::read_frame): Change type of "buf_p". Remove
16370 sizeof_p parameter.
16371 (packet_ok): New overload.
16372 (packet_check_result): New overload.
16375 2019-01-14 Tom Tromey <tom@tromey.com>
16377 * remote-notif.c (handle_notification, remote_notif_ack)
16378 (remote_notif_parse): Make "buf" const.
16379 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
16381 (remote_notif_parse, remote_notif_ack, handle_notification):
16383 * remote.c (remote_notif_stop_parse): Make "buf" const.
16384 (remote_target::remote_parse_stop_reply): Make "buf" const.
16385 (remote_notif_stop_ack): Make "buf" const.
16387 2019-01-14 Tom Tromey <tom@tromey.com>
16389 * remote.c (remote_console_output): Make parameter const.
16391 2019-01-14 Tom Tromey <tom@tromey.com>
16393 * target-debug.h (target_debug_print_signals): Constify.
16394 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
16395 * procfs.c (procfs_target::pass_signals): Update.
16396 * linux-nat.c (linux_nat_target::pass_signals): Update.
16397 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
16398 * target-delegates.c: Rebuild.
16399 * remote.c (remote_target::program_signals): Update.
16400 (remote_target::pass_signals): Update.
16401 * target.c (target_pass_signals): Constify argument.
16402 (target_program_signals): Likewise.
16403 * target.h (struct target_ops) <pass_signals, program_signals>:
16405 (target_pass_signals, target_program_signals): Constify argument.
16407 2019-01-14 Tom Tromey <tom@tromey.com>
16410 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
16412 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
16414 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
16416 * rs6000-tdep.c: Include reggroups.h.
16417 (IS_V_ALIAS_PSEUDOREG): Define.
16418 (rs6000_register_name): Return names for the "vX" aliases.
16419 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
16420 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
16421 aliases. Call default_register_reggroup_p for all other
16423 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
16425 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
16426 Handle "vX" aliases.
16427 (v_alias_pseudo_register_collect): New function.
16428 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
16429 (rs6000_gdbarch_init): Initialize "vX" aliases as
16430 pseudo-registers. Restore registration of
16431 rs6000_pseudo_register_reggroup_p with
16432 set_tdesc_pseudo_register_reggroup_p.
16434 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
16436 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
16437 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
16438 set_gdbarch_num_pseudo_regs.
16440 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16442 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
16443 Remove arg prefixname, add do_set and do_show.
16444 Add member functions set_list and show_list.
16445 * cli/cli-style.c (class cli_style_option): Update accordingly.
16446 (style_set_list): Move to file scope.
16447 (style_show_list): Likewise.
16448 (set_style): Call help_list.
16449 (show_style): Call cmd_show_list.
16450 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
16451 Update to use the new macro.
16453 2019-10-12 Joel Brobecker <brobecker@adacore.com>
16455 * ada-lang.c (_initialize_ada_language): Expand the help text
16456 for the "catch exception" command.
16458 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16460 * symtab.c (matching_obj_sections): Initialize obj,
16461 declare it closer to its usage.
16463 2019-01-10 Tom Tromey <tom@tromey.com>
16465 * thread-iter.h (inf_threads_iterator): Use next_iterator.
16466 (basic_inf_threads_range): Remove.
16467 (inf_threads_range, inf_non_exited_threads_range)
16468 (safe_inf_threads_range): Use next_adapter.
16470 2019-01-10 Keith Seitz <keiths@redhat.com>
16474 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
16475 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
16477 2019-01-10 Keith Seitz <keiths@redhat.com>
16481 * dictionary.c (pending_to_vector): Remove.
16482 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16483 Remove _1 suffix, replacing functions of the same name. Update
16485 (dict_create_hashed, dict_create_hashed_expandable)
16486 (dict_create_linear, dict_create_linear_expandable, dict_free)
16487 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
16488 Make functions static.
16490 2019-01-10 Keith Seitz <keiths@redhat.com>
16494 * dictionary.h (struct dictionary): Replace declaration with
16496 (dict_create_hashed, dict_create_hashed_expandable)
16497 (dict_create_linear, dict_create_linear_expandable)
16498 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
16499 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
16500 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
16501 taking multidictionary argument.
16502 [ALL_DICT_SYMBOLS]: Update for multidictionary.
16503 * block.h (struct block) <dict>: Change to multidictionary
16504 and rename `multidict'.
16505 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
16506 symmisc.c: Update all dictionary references to multidictionary.
16508 2019-01-10 Keith Seitz <keiths@redhat.com>
16512 * dictionary.c: Include unordered_map.
16513 (pending_to_vector): New function.
16514 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16515 Rewrite the non-"_1" functions to take vector instead
16517 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16518 "new" _1 versions of the same name.
16519 (multidictionary): Define.
16520 (std::hash<enum language): New definition.
16521 (collate_pending_symbols_by_language, mdict_create_hashed)
16522 (mdict_create_hashed_expandable, mdict_create_linear)
16523 (mdict_create_linear_expandable, mdict_free)
16524 (find_language_dictionary, create_new_language_dictionary)
16525 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16526 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16527 (mdict_size, mdict_empty): New functions.
16528 * dictionary.h (mdict_iterator): Define.
16530 2019-01-10 Pedro Alves <palves@redhat.com>
16532 * breakpoint.c (read_uploaded_action)
16533 (create_tracepoint_from_upload): Adjust to use
16534 gdb::unique_xmalloc_ptr.
16535 * ctf.c (ctf_write_uploaded_tp):
16536 (SET_ARRAY_FIELD): Use emplace_back.
16537 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16538 * tracefile-tfile.c (tfile_write_uploaded_tp):
16539 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16540 gdb::unique_xmalloc_ptr.
16541 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16542 at_string, cond_string, cmd_strings>: Replace char pointers
16543 with gdb::unique_xmalloc_ptr.
16545 2019-01-10 Pedro Alves <palves@redhat.com>
16547 * solib-target.c (library_list_start_library): Don't xstrdup name.
16549 2019-01-10 Pedro Alves <palves@redhat.com>
16551 * mdebugread.c (parse_partial_symbols): Use
16552 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16554 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16556 * linux-fork.c (scoped_switch_fork_info)
16557 <~scoped_switch_fork_info>: Fix incorrect variable name.
16559 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16561 * linux-fork.c (scoped_switch_fork_info)
16562 <scoped_switch_fork_info>: Make explicit.
16563 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16565 2019-01-10 Tom Tromey <tom@tromey.com>
16567 * objfiles.h (objfile::reset_psymtabs): Update.
16568 * objfiles.c (objfile::objfile): Update.
16569 * psymtab.h (psymtab_storage::obstack): Update.
16570 (psymtab_storage::m_obstack): Use gdb::optional.
16571 (class psymtab_storage): Update comment. Remove objfile
16573 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16575 2019-01-10 Tom Tromey <tom@tromey.com>
16577 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16578 <free_psymtabs>: Now private.
16579 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16580 (allocate_psymtab): Use new method.
16582 2019-01-10 Tom Tromey <tom@tromey.com>
16584 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16585 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16586 * mdebugread.c (parse_partial_symbols): Use
16587 allocate_dependencies.
16588 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16589 allocate_dependencies.
16590 (process_psymtab_comp_unit_reader)
16591 (build_type_psymtab_dependencies): Likewise.
16592 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16594 2019-01-10 Tom Tromey <tom@tromey.com>
16596 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16597 PSYMBOL_SET_LANGUAGE.
16598 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16600 2019-01-10 Tom Tromey <tom@tromey.com>
16602 * psymtab.h (psymtab_storage::obstack): New method.
16603 <m_obstack>: Rename from obstack; now private.
16604 * psymtab.c (psymtab_storage): Update.
16605 * dwarf2read.c (create_addrmap_from_index)
16606 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16609 2019-01-10 Tom Tromey <tom@tromey.com>
16611 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16612 * objfiles.h (objfile::reset_psymtabs): New method.
16614 2019-01-10 Tom Tromey <tom@tromey.com>
16616 * symmisc.c (print_symbol_bcache_statistics): Update.
16617 (print_objfile_statistics): Update.
16618 * symfile.c (reread_symbols): Update.
16619 * psymtab.h (class psymtab_storage): New.
16620 * psymtab.c (psymtab_storage): New constructor.
16621 (~psymtab_storage): New destructor.
16622 (require_partial_symbols): Update.
16623 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16624 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16625 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16626 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16627 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16628 (start_psymtab_common, end_psymtab_common)
16629 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16630 (allocate_psymtab): Update.
16631 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16633 (dump_psymtab_addrmap, maintenance_print_psymbols)
16634 (maintenance_check_psymtabs): Update.
16635 (class objfile_psymtabs): Move to objfiles.h.
16636 * psympriv.h (discard_psymtab): Now inline.
16637 (psymtab_discarder::psymtab_discarder): Update.
16638 (psymtab_discarder::~psymtab_discarder): Update.
16639 (ALL_OBJFILE_PSYMTABS): Rewrite.
16640 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16641 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16643 <partial_symtabs>: New field.
16644 (class objfile_psymtabs): Move from psymtab.h. Update.
16645 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16647 (objfile::~objfile): Don't destroy psymbol_cache.
16648 * mdebugread.c (parse_partial_symbols): Update.
16649 * dwarf2read.c (create_addrmap_from_index)
16650 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16651 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16652 (add_partial_subprogram, dwarf2_ranges_read): Update.
16653 * dwarf-index-write.c (write_address_map)
16654 (write_one_signatured_type, recursively_write_psymbols)
16655 (class debug_names, class debug_names, write_psymtabs_to_index):
16658 2019-01-10 Tom Tromey <tom@tromey.com>
16660 * symtab.h (SYMBOL_SET_NAMES): Update.
16661 (symbol_set_names): Update.
16662 (MSYMBOL_SET_NAMES): Update.
16663 * symtab.c (symbol_set_names): Change argument to be an
16664 objfile_per_bfd_storage.
16665 * psymtab.c (add_psymbol_to_bcache): Update.
16666 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16668 2019-01-10 Tom Tromey <tom@tromey.com>
16670 * symtab.c (create_demangled_names_hash): Change argument to be an
16671 objfile_per_bfd_storage.
16672 (symbol_set_names): Update.
16674 2019-01-10 Tom Tromey <tom@tromey.com>
16676 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16678 * psymtab.c (init_psymbol_list): Do nothing if already called.
16679 * psympriv.h (init_psymbol_list): Add comment.
16680 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16682 * dbxread.c (dbx_symfile_read): Unconditionally call
16685 2019-01-10 Tom Tromey <tom@tromey.com>
16687 * xcoffread.c (scan_xcoff_symtab): Update.
16688 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16690 * mdebugread.c (parse_partial_symbols)
16691 (handle_psymbol_enumerators): Update.
16692 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16693 * dbxread.c (read_dbx_symtab): Update.
16694 * psympriv.h (psymbol_placement): New enum.
16695 (add_psymbol_to_list): Update.
16697 2019-01-10 Tom Tromey <tom@tromey.com>
16699 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16700 static_psymbols parameters.
16701 (scan_xcoff_symtab): Update.
16702 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16703 static_psymbols parameters.
16704 * psympriv.h (start_psymtab_common): Update.
16705 * mdebugread.c (parse_partial_symbols): Update.
16706 * dwarf2read.c (create_partial_symtab): Update.
16707 * dbxread.c (read_dbx_symtab): Update.
16708 (start_psymtab): Remove global_psymbols and static_psymbols
16711 2019-01-10 Tom Tromey <tom@tromey.com>
16713 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16714 * psymtab.c (allocate_psymtab): Add comment.
16715 * psympriv.h (allocate_psymtab): Add comment.
16716 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16718 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16720 2019-01-10 Tom Tromey <tom@tromey.com>
16722 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16724 * mipsread.c: Include mdebugread.h.
16725 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16727 * elfread.c: Include mdebugread.h.
16729 2019-01-09 Tom Tromey <tom@tromey.com>
16731 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16732 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16733 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16734 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16735 (psym_lookup_symbol, psym_find_last_source_symtab)
16736 (psym_forget_cached_source_info, psym_print_stats)
16737 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16738 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16739 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16740 (psym_find_compunit_symtab_by_address)
16741 (maintenance_print_psymbols, maintenance_info_psymtabs)
16742 (maintenance_check_psymtabs): Use ranged for.
16743 * psymtab.h (class objfile_psymtabs): New.
16744 (require_partial_symbols): Return objfile_psymtabs.
16745 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16747 2019-01-09 Tom Tromey <tom@tromey.com>
16749 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16750 (find_pc_mapped_section, list_overlays_command)
16751 (map_overlay_command, unmap_overlay_command)
16752 (simple_overlay_update): Use all_objfiles.
16753 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16754 * printcmd.c (info_symbol_command): Use all_objfiles.
16755 * objfiles.h (ALL_OBJSECTIONS): Remove.
16756 * maint.c (maintenance_translate_address): Use all_objfiles.
16757 * gcore.c (gcore_create_callback): Use all_objfiles.
16758 (objfile_find_memory_regions): Likewise.
16760 2019-01-09 Tom Tromey <tom@tromey.com>
16762 * symtab.c (find_line_symtab, info_sources_command)
16763 (make_source_files_completion_list): Use objfile_compunits.
16764 * source.c (select_source_symtab): Use objfile_compunits.
16765 * objfiles.h (struct objfile): Update comment.
16766 (ALL_OBJFILES): Remove.
16767 (ALL_FILETABS): Remove.
16768 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16771 2019-01-09 Tom Tromey <tom@tromey.com>
16773 * symmisc.c (print_objfile_statistics, dump_objfile)
16774 (maintenance_print_symbols): Use compunit_filetabs.
16775 * source.c (forget_cached_source_info_for_objfile): Use
16777 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16778 (ALL_FILETABS): Use compunit_filetabs.
16779 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16780 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16782 2019-01-09 Tom Tromey <tom@tromey.com>
16784 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16785 (compunit_filetabs): New.
16786 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16788 (info_sources_command, make_source_files_completion_list): Remove
16790 * symmisc.c (print_objfile_statistics, dump_objfile)
16791 (maintenance_print_symbols): Remove declaration.
16792 (maintenance_info_symtabs): Use compunit_filetabs.
16793 (maintenance_info_line_tables): Likewise.
16794 * source.c (select_source_symtab): Change local variable name.
16795 (forget_cached_source_info_for_objfile): Remove declaration.
16796 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16797 * objfiles.c (objfile_relocate1): Remove declaration.
16798 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16800 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16801 * coffread.c (coff_symtab_read): Remove declaration.
16802 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16805 2019-01-09 Tom Tromey <tom@tromey.com>
16807 * symtab.c (lookup_objfile_from_block)
16808 (find_pc_sect_compunit_symtab, search_symbols)
16809 (default_collect_symbol_completion_matches_break_on): Use
16811 * objfiles.h (ALL_COMPUNITS): Remove.
16812 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16813 * cp-support.c (add_symbol_overload_list_qualified): Use
16815 * ada-lang.c (ada_collect_symbol_completion_matches)
16816 (ada_add_global_exceptions): Use objfile_compunits.
16818 2019-01-09 Tom Tromey <tom@tromey.com>
16820 * source.c (select_source_symtab)
16821 (forget_cached_source_info_for_objfile): Remove declaration.
16822 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16824 * maint.c (count_symtabs_and_blocks): Remove declaration.
16825 * cp-support.c (add_symbol_overload_list_qualified): Remove
16827 * coffread.c (coff_symtab_read): Remove declaration.
16828 * symtab.c (lookup_symbol_in_objfile_symtabs)
16829 (basic_lookup_transparent_type_1): Use objfile_compunits.
16830 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16831 (info_sources_command, search_symbols)
16832 (default_collect_symbol_completion_matches_break_on)
16833 (make_source_files_completion_list): Remove declaration.
16834 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16835 (ada_collect_symbol_completion_matches)
16836 (ada_add_global_exceptions): Remove declaration.
16837 * linespec.c (iterate_over_all_matching_symtabs): Use
16839 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16840 (class objfile_compunits): New.
16841 (ALL_COMPUNITS): Use objfile_compunits.
16842 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16843 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16845 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16847 2019-01-09 Tom Tromey <tom@tromey.com>
16849 * symtab.c (search_symbols)
16850 (default_collect_symbol_completion_matches_break_on): Use
16852 * ada-lang.c (ada_lookup_simple_minsym)
16853 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16854 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16855 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16857 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16858 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16859 * objc-lang.c (find_methods): Use objfile_msymbols.
16860 (info_selectors_command, info_classes_command): Likewise.
16861 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16862 * objfiles.h (class objfile_msymbols): New.
16863 (ALL_OBJFILE_MSYMBOLS): Remove.
16864 (ALL_MSYMBOLS): Remove.
16866 2019-01-09 Tom Tromey <tom@tromey.com>
16868 * common/next-iterator.h (next_adapter): Add Iterator template
16870 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16871 (class all_objfiles_safe): New.
16872 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16873 * objfiles.c (put_objfile_before): Update comment.
16874 (add_separate_debug_objfile): Likewise.
16875 (free_all_objfiles): Use all_objfiles_safe.
16876 (objfile_purge_solibs): Likewise.
16878 2019-01-09 Tom Tromey <tom@tromey.com>
16880 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16881 (expand_symtab_containing_pc, lookup_static_symbol)
16882 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16883 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16885 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16886 * breakpoint.c (create_overlay_event_breakpoint)
16887 (create_longjmp_master_breakpoint)
16888 (create_std_terminate_master_breakpoint)
16889 (create_exception_master_breakpoint): Use all_objfiles.
16890 * linux-thread-db.c (try_thread_db_load_from_pdir)
16891 (has_libpthread): Use all_objfiles.
16892 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16893 * linespec.c (iterate_over_all_matching_symtabs)
16894 (search_minsyms_for_name): Use all_objfiles.
16895 * maint.c (maintenance_info_sections): Use all_objfiles.
16896 * main.c (captured_main_1): Use all_objfiles.
16897 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16898 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16899 * guile/scm-pretty-print.c
16900 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16901 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16902 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16903 (maintenance_print_msymbols): Use all_objfiles.
16904 * source.c (select_source_symtab): Use all_objfiles.
16905 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16906 * symfile.c (remove_symbol_file_command)
16907 (expand_symtabs_matching, map_symbol_filenames): Use
16909 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16911 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16912 * objc-lang.c (find_methods): Use all_objfiles.
16913 * objfiles.c (have_partial_symbols, have_full_symbols)
16914 (have_minimal_symbols, qsort_cmp)
16915 (default_iterate_over_objfiles_in_search_order): Use
16917 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16918 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16919 (maintenance_check_psymtabs): Use all_objfiles.
16920 (ALL_PSYMTABS): Remove.
16921 * compile/compile-object-run.c (do_module_cleanup): Use
16923 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16924 * cp-support.c (add_symbol_overload_list_qualified): Use
16926 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16928 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16929 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16931 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16932 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16933 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16935 * solib.c (solib_read_symbols): Use all_objfiles
16937 2019-01-09 Tom Tromey <tom@tromey.com>
16939 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16940 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16942 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16943 * symmisc.c (print_symbol_bcache_statistics)
16944 (print_objfile_statistics, maintenance_print_objfiles)
16945 (maintenance_info_symtabs, maintenance_check_symtabs)
16946 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16948 * source.c (forget_cached_source_info): Use all_objfiles.
16949 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16950 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16951 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16952 * objfiles.c (update_section_map): Use all_objfiles.
16953 (shared_objfile_contains_address_p): Likewise.
16954 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16955 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16957 2019-01-09 Tom Tromey <tom@tromey.com>
16959 * common/next-iterator.h: New file.
16960 * objfiles.h (class all_objfiles): New.
16961 (struct objfile_iterator): New.
16963 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16965 * NEWS: Move the description of the changed "frame", "select-frame",
16966 and "info frame" commands to the Changed commands section.
16968 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16970 * gdbtypes.c (check_stub_method_group): Remove handling of old
16972 * linespec.c (find_methods): Likewise.
16973 * stabsread.c (read_member_functions): Likewise.
16974 * valops.c (search_struct_method): Likewise.
16975 (value_struct_elt_for_reference): Likewise.
16976 * NEWS: Mention this change.
16978 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16980 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16981 print_source_lines.
16982 * source.c (print_source_lines_base): Update line number check.
16983 (print_source_lines): New function.
16984 (source_lines_range::source_lines_range): New function.
16985 * source.h (class source_lines_range): New class.
16986 (print_source_lines): New declaration.
16988 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16990 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16992 2019-01-08 Tom Tromey <tom@tromey.com>
16993 Simon Marchi <simon.marchi@ericsson.com>
16996 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16997 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16998 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16999 * f-exp.y (DOLLAR_VARIABLE): Likewise.
17000 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
17001 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
17003 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17005 * source.c (select_source_symtab): Move header comment to
17006 declaration in source.h.
17007 (forget_cached_source_info_for_objfile): Likewise.
17008 (forget_cached_source_info): Likewise.
17009 (identify_source_line): Likewise.
17010 * source.h (identify_source_line): Move declaration from symtab.h
17011 and add comment from source.c
17012 (print_source_lines): Likewise.
17013 (forget_cached_source_info_for_objfile): Likewise.
17014 (forget_cached_source_info): Likewise.
17015 (select_source_symtab): Likewise.
17016 (enum print_source_lines_flag): Move definition from symtab.h.
17017 * symtab.h (identify_source_line): Move declaration to source.h.
17018 (print_source_lines): Likewise.
17019 (forget_cached_source_info_for_objfile): Likewise.
17020 (forget_cached_source_info): Likewise.
17021 (select_source_symtab): Likewise.
17022 (enum print_source_lines_flag): Move definition to source.h.
17023 * tui/tui-hooks.c: Add 'source.h' include.
17025 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17027 * source.c (print_source_lines_base): Handle requests to print
17028 reverse line number sequences, and guard against empty lines
17031 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
17033 * source.c (print_source_lines_base): Fix skip of '\r' if next
17036 2019-01-06 Tom Tromey <tom@tromey.com>
17038 * c-exp.y (struct c_parse_state) <macro_original_text,
17039 expansion_obstack>: New member.
17040 (macro_original_text, expansion_obstack): Remove globals.
17041 (scan_macro_expansion, scanning_macro_expansion)
17042 (finished_macro_expansion): Update.
17043 (scan_macro_cleanup): Remove.
17044 (yylex, c_parse): Update.
17046 2019-01-06 Tom Tromey <tom@tromey.com>
17048 * c-exp.y (struct c_parse_state) <strings>: New member.
17049 (operator_stoken): Update.
17051 2019-01-06 Tom Tromey <tom@tromey.com>
17053 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
17054 (union type_stack_elt) <typelist_val>: Now a pointer to
17056 (type_stack_cleanup): Don't declare.
17057 (push_typelist): Update.
17058 * parse.c (pop_typelist): Return a std::vector.
17059 (push_typelist): Take a std::vector.
17060 (follow_types): Update. Do not free args.
17061 (type_stack_cleanup): Remove.
17062 * c-exp.y (struct c_parse_state): New.
17063 (cpstate): New global.
17064 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
17065 (nonempty_typelist): Update.
17066 (func_mod): Create a new vector.
17067 (c_parse): Create a c_parse_state.
17068 (check_parameter_typelist): Do not delete params.
17069 (function_method): Update. Do not delete type_list.
17071 2019-01-06 Tom Tromey <tom@tromey.com>
17074 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
17076 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
17077 (print_return_value): Likewise.
17079 2019-01-05 Tom Tromey <tom@tromey.com>
17081 * contrib/cleanup_check.py: Remove.
17082 * contrib/gcc-with-excheck: Remove.
17083 * contrib/exsummary.py: Remove.
17084 * contrib/excheck.py: Remove.
17086 2019-01-05 Joel Brobecker <brobecker@adacore.com>
17088 * thread.c (delete_thread_1): Add gdb_assert that THR is not
17089 NULL. Initialize tpprev to NULL instead of assigning it
17090 to NULL on the next statement.
17091 * windows-nat.c (windows_delete_thread): Remove check for
17092 main_thread_id before printing thread exit notifications.
17093 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
17094 Remove thread ID check against main_thread_id.
17095 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
17096 windows_delete_thread.
17097 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
17099 2019-01-04 Tom Tromey <tom@tromey.com>
17101 * compile/compile.c (_initialize_compile): Use upper case for
17102 metasyntactic variables.
17103 * symmisc.c (_initialize_symmisc): Use upper case for
17104 metasyntactic variables.
17105 * psymtab.c (_initialize_psymtab): Use upper case for
17106 metasyntactic variables.
17107 * demangle.c (demangle_command): Use upper case for metasyntactic
17109 (_initialize_demangler): Likewise.
17110 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
17113 2019-01-03 Tom Tromey <tom@tromey.com>
17115 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
17117 2019-01-03 Tom Tromey <tom@tromey.com>
17119 * python/py-symtab.c (salpy_str): Update.
17120 (struct salpy_sal_object) <symtab>: Now a PyObject.
17121 (salpy_dealloc): Update.
17122 (del_objfile_sal): Use gdbpy_ref.
17124 2019-01-03 Tom Tromey <tom@tromey.com>
17126 * python/py-type.c (convert_field): Use new_reference. Return
17128 (make_fielditem): Return gdbpy_ref.
17129 (typy_fields): Update.
17130 (typy_getitem): Update.
17131 (field_name): Return gdbpy_ref. Use new_reference.
17132 (typy_iterator_iternext): Update.
17134 2019-01-03 Tom Tromey <tom@tromey.com>
17136 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
17138 2019-01-03 Tom Tromey <tom@tromey.com>
17140 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
17141 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
17142 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
17143 (pspy_set_frame_filters, pspy_set_frame_unwinders)
17144 (pspy_set_type_printers): Likewise.
17145 * python/py-function.c (fnpy_init): Use gdbpy_ref.
17146 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
17147 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
17148 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
17149 (objfpy_set_type_printers): Likewise.
17151 2019-01-03 Tom Tromey <tom@tromey.com>
17153 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
17154 (gdbpy_print_stack): Use gdbpy_err_fetch.
17155 * python/python-internal.h (class gdbpy_err_fetch): New class.
17156 (class gdbpy_enter) <m_error_type, m_error_value,
17157 m_error_traceback>: Remove.
17158 <m_error>: New member.
17159 (gdbpy_exception_to_string): Don't declare.
17160 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
17161 * python/py-value.c (convert_value_from_python): Use
17163 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
17164 gdbpy_exception_to_string.
17165 (gdbpy_handle_exception): Use gdbpy_err_fetch.
17166 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
17169 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17171 * linux-nat.c (delete_lwp_cleanup): Delete.
17172 (struct lwp_deleter): New struct.
17173 (lwp_info_up): New typedef.
17174 (linux_nat_target::follow_fork): Delete cleanup, and make use of
17177 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17179 * linux-fork.c (class scoped_switch_fork_info): New class.
17180 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
17182 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17184 * valops.c (find_overload_match): Remove use of null_cleanup, and
17185 calls to do_cleanups.
17187 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17189 * compile/compile-cplus-types.c
17190 (compile_cplus_instance::decl_name): Handle changes to
17192 * cp-support.c (cp_func_name): Update header comment, update
17194 * cp-support.h (cp_func_name): Update return type in declaration.
17195 * valops.c (find_overload_match): Move temp_func local to top
17196 level of function and change its type. Use temp_func to hold and
17197 delete temporary string obtained from cp_func_name.
17199 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
17201 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
17202 gdb::char_vector, remove cleanup, and update uses of `msg`.
17204 2019-01-03 Jim Wilson <jimw@sifive.com>
17206 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
17208 2019-01-02 Tom Tromey <tom@tromey.com>
17210 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
17211 (tdesc_parse_xml): Remove cleanups.
17212 * target-descriptions.h (make_cleanup_free_target_description):
17214 (target_desc_deleter): New struct.
17215 (target_desc_up): New typedef.
17216 * target-descriptions.c (target_desc_deleter::operator()): Rename
17217 from free_target_description.
17218 (make_cleanup_free_target_description): Remove.
17220 2019-01-02 Tom Tromey <tom@tromey.com>
17222 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
17223 constructor, destructor.
17224 (linespec_parser): Remove typedef.
17225 (~linespec_parser): Rename from linespec_parser_delete.
17226 (linespec_lex_to_end, linespec_complete_label)
17227 (linespec_complete): Update.
17228 (decode_line_full): Remove cleanups.
17229 (decode_line_1): Update.
17231 2019-01-02 Tom Tromey <tom@tromey.com>
17233 * python/python-internal.h (inferior_to_inferior_object): Change
17235 * python/py-exitedevent.c (create_exited_event_object): Update.
17236 * python/py-inferior.c (inferior_to_inferior_object): Return
17238 (python_new_inferior, python_inferior_deleted)
17239 (thread_to_thread_object, delete_thread_object)
17240 (build_inferior_list, gdbpy_selected_inferior): Update.
17241 * python/py-infthread.c (create_thread_object): Update. Also fail
17242 if inferior_to_inferior_object fails.
17244 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
17246 * inferior.h (class inferior) <displaced_step_state>: New field.
17247 * infrun.h (struct displaced_step_state): Move here from
17248 infrun.c. Initialize fields, add constructor.
17249 <inf>: Remove field.
17250 <reset>: New method.
17251 * infrun.c (struct displaced_step_inferior_state): Move to
17253 (displaced_step_inferior_states): Remove.
17254 (get_displaced_stepping_state): Adust.
17255 (displaced_step_in_progress_any_inferior): Adjust.
17256 (displaced_step_in_progress_thread): Adjust.
17257 (displaced_step_in_progress): Adjust.
17258 (add_displaced_stepping_state): Remove.
17259 (get_displaced_step_closure_by_addr): Adjust.
17260 (remove_displaced_stepping_state): Remove.
17261 (infrun_inferior_exit): Call displaced_step_state.reset.
17262 (use_displaced_stepping): Don't check for NULL.
17263 (displaced_step_prepare_throw): Call
17264 get_displaced_stepping_state.
17265 (displaced_step_fixup): Don't check for NULL.
17266 (prepare_for_detach): Don't check for NULL.
17268 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17270 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
17271 in case of call that did not complete.
17273 2019-01-02 Andrey Utkin <autkin@undo.io>
17275 * symfile.c (find_separate_debug_file): Fix search of debug files for
17278 2019-01-02 Tom Tromey <tom@tromey.com>
17280 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
17282 * python/py-frame.c (frapy_older): Remove cast.
17283 (frapy_newer): Likewise.
17284 * python/py-breakpoint.c (local_setattro): Remove cast.
17285 * python/py-arch.c (archpy_name): Remove local variable.
17286 * python/py-type.c (gdbpy_lookup_type): Remove cast.
17288 2019-01-02 Joel Brobecker <brobecker@adacore.com>
17290 * unittests/basic_string_view/element_access/char/empty.cc:
17291 Fix year range in copyright header.
17293 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
17295 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
17297 <operator==>: Update with for removed field.
17299 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
17300 <isa_features>: ...this.
17301 <abi_features>: New field.
17302 (riscv_isa_flen): Update comment.
17303 (riscv_abi_xlen): New declaration.
17304 (riscv_abi_flen): New declaration.
17305 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
17307 (riscv_abi_xlen): New function.
17308 (riscv_isa_flen): Update to get answer from isa_features.
17309 (riscv_abi_flen): New function.
17310 (riscv_has_fp_abi): Update to get answer from abi_features.
17311 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
17313 (riscv_call_info) <xlen, flen>: Update comment.
17314 (riscv_call_arg_struct): Remove invalid assertions
17315 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
17317 (riscv_gdbarch_init): Gather isa features and abi features
17318 separately, ensure both match on the gdbarch when reusing an old
17319 gdbarch. Relax an error check to allow 32-bit abi float to run on
17320 a target with 64-bit float hardware.
17322 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17324 * source.c (search_command_helper): Stop reverse search
17325 when line 1 has been searched.
17327 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17329 * record-full.c (record_full_base_target::close): Rewrite
17330 record_full_core_buf_list free logic.
17332 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17334 * break-catch-syscall.c (print_one_catch_syscall): xfree
17337 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17339 * top.c (print_gdb_version): Update Copyright year in version
17342 2019-01-01 Joel Brobecker <brobecker@adacore.com>
17344 Update copyright year range in all GDB files.
17346 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
17348 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
17350 For older changes see ChangeLog-2018.
17356 version-control: never