1 2019-10-09 Tom Tromey <tom@tromey.com>
3 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
5 2019-10-09 Tom Tromey <tom@tromey.com>
7 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
8 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
10 2019-10-09 Tom Tromey <tom@tromey.com>
12 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
13 window height directly.
14 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
16 * tui/tui-layout.c (tui_default_win_height): Remove.
17 (tui_default_win_viewport_height): Remove.
19 2019-10-09 Tom Tromey <tom@tromey.com>
21 * tui/tui.h: Remove comments.
23 2019-10-09 Tom de Vries <tdevries@suse.de>
25 * python/lib/gdb/printer/bound_registers.py: Use
26 '^builtin_type_bound128' as regexp argument for
27 add_builtin_pretty_printer.
29 2019-10-09 Christian Biesinger <cbiesinger@google.com>
31 * guile/guile.c (guile_extension_script_ops): Remove forward
32 declaration and mark as static.
33 (guile_script_ops): Likewise.
34 (extension_language_guile): Move further down in the file so
35 it can reference the definitions for guile_{extension_,}script_ops.
37 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
39 * s390-tdep.c (390_process_record): Handle new arch13 instructions
40 except SORTL, DFLTCC, and KDSA.
42 2019-10-08 Tom Tromey <tromey@adacore.com>
44 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
45 (struct safe_symbol_file_add_args): Remove.
47 2019-10-08 Tom Tromey <tromey@adacore.com>
49 * windows-nat.c: Don't include buildsym-legacy.h.
51 2019-10-08 Tom Tromey <tromey@adacore.com>
53 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
55 2019-10-08 Christian Biesinger <cbiesinger@google.com>
57 * gdbtypes.c (overload_debug): Move comment to header.
58 * gdbtypes.h (overload_debug): Declare.
59 * valops.c: Remove declaration of overload_debug, instead
62 2019-10-08 Christian Biesinger <cbiesinger@google.com>
64 * language.c (show_language_command): Pass lang_frame_mismatch_warn
66 (lang_frame_mismatch_warn): Make const, mark with N_(), and
68 * language.h (lang_frame_mismatch_warn): ... here. Also add
70 * top.c (lang_frame_mismatch_warn): Remove declaration.
71 (check_frame_language_change): Pass lang_frame_mismatch_warn
74 2019-10-07 Christian Biesinger <cbiesinger@google.com>
76 * c-lang.h (vtbl_ptr_name): Declare.
77 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
79 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
81 2019-10-07 Christian Biesinger <cbiesinger@google.com>
83 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
86 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
88 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
89 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
90 * ctfread.c: New file.
91 * ctfread.h: New file.
92 * elfread.c: Include ctfread.h.
93 (struct elfinfo text_p): New member ctfsect.
94 (elf_locate_sections): Mark CTF section.
95 (elf_symfile_read): Call elfctf_build_psymtabs.
96 * Makefile.in (LIBCTF): Add.
99 (DIST): Add ctfread.c.
101 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
103 * ctfread.c (struct nextfield): Renamed to ...
104 (struct ctf_nextfield): ... this.
105 (struct field_info): Renamed to ...
106 (strut ctf_field_info): ... this.
107 (attach_fields_to_type): Update for renamed structures.
108 (ctf_add_member_cb): Likewise.
109 (ctf_add_enum_member_cb): Likewise.
110 (process_struct_members): Likewise.
111 (process_enum_type): Likewise.
113 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
115 * tracectf.h: Rename, was ctf.h.
116 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
117 * tracefile.c: Likewise.
118 * tracepoint.c: Remove unused include ctf.h.
119 * mi/mi-main.c: Likewise.
120 * Makefile.in Replace ctf.c with tracectf.c.
122 2019-10-06 Joel Brobecker <brobecker@adacore.com>
124 * version.in: Change version number to "9.0.50.DATE-git".
126 2019-10-03 Tom Tromey <tom@tromey.com>
129 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
131 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
133 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
135 * NEWS: Add entry about nested function support.
137 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
138 Andrew Burgess <andrew.burgess@embecosm.com>
140 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
141 for nested static variables when searchin VAR_DOMAIN.
142 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
143 global scope, update comment.
144 (add_partial_subprogram): Call add_partial_subprogram recursively
145 for nested subroutines when processinng Fortran.
146 (load_partial_dies): Process the child entities of a subprogram
147 when processing Fortran.
148 (partial_die_parent_scope): Handle building scope
149 for Fortran nested functions.
150 (process_die): Record that nested functions have a scope.
151 (new_symbol): Always record Fortran subprograms on the global
153 (determine_prefix): How to build the prefix for Fortran
156 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
158 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
159 have just sent the thread a SIGSTOP and are waiting for it to
162 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
164 * btrace.c (btrace_add_pc): Remove whitespace before the template
165 parameter in 'std::vector <...>'.
166 (parse_xml_btrace_block): Likewise.
167 (btrace_maint_decode_pt): Likewise.
168 (btrace_maint_update_packets): Likewise.
169 (btrace_maint_print_packets): Likewise.
170 * btrace.h (struct btrace_maint_info): Likewise.
171 * dwarf2read.c (struct type_unit_group): Likewise.
172 (build_type_psymtabs_reader): Likewise.
173 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
174 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
175 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
177 2019-10-03 Tom de Vries <tdevries@suse.de>
179 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
180 the first line of the help text for set/show style metadata.
182 2019-10-02 Tom Tromey <tromey@adacore.com>
184 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
185 * gdbsupport/common-inferior.c: New file.
186 * infcmd.c (startup_with_shell): Don't define.
187 * nat/fork-inferior.h (startup_with_shell): Don't declare.
188 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
189 * inferior.h (startup_with_shell): Don't declare.
191 2019-10-02 Christian Biesinger <cbiesinger@google.com>
193 * gdbsupport/gdb_assert.h: Include errors.h.
194 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
196 2019-10-02 Tom Tromey <tromey@adacore.com>
198 * NEWS: Add $_ada_exception entry.
199 * ada-lang.c (struct ada_catchpoint): Add constructor.
200 <m_kind>: New member.
201 (allocate_location_exception, re_set_exception): Remove
203 (should_stop_exception): Compute $_ada_exception.
204 (check_status_exception, print_it_exception)
205 (print_one_exception, print_mention_exception): Remove
207 (allocate_location_catch_exception, re_set_catch_exception)
208 (check_status_exception, print_it_catch_exception)
209 (print_one_catch_exception, print_mention_catch_exception)
210 (print_recreate_catch_exception)
211 (allocate_location_catch_exception_unhandled)
212 (re_set_catch_exception_unhandled)
213 (check_status_exception, print_it_catch_exception_unhandled)
214 (print_one_catch_exception_unhandled)
215 (print_mention_catch_exception_unhandled)
216 (print_recreate_catch_exception_unhandled)
217 (allocate_location_catch_assert, re_set_catch_assert)
218 (check_status_assert, print_it_catch_assert)
219 (print_one_catch_assert, print_mention_catch_assert)
220 (print_recreate_catch_assert)
221 (allocate_location_catch_handlers, re_set_catch_handlers)
222 (check_status_handlers, print_it_catch_handlers)
223 (print_one_catch_handlers, print_mention_catch_handlers)
224 (print_recreate_catch_handlers): Remove.
225 (create_ada_exception_catchpoint): Update.
226 (initialize_ada_catchpoint_ops): Update.
228 2019-10-02 Tom Tromey <tromey@adacore.com>
230 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
231 (create_excep_cond_exprs): Simplify exception string computation.
232 (ada_exception_catchpoint_cond_string): Likewise.
234 2019-10-02 Tom Tromey <tromey@adacore.com>
236 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
237 * ada-lang.c (lesseq_defined_than): Handle
239 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
241 (dwarf2_has_info): Likewise.
242 (new_symbol): Set maybe_copied on symbol when
244 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
246 <can_copy>: New member.
247 * elfread.c (record_minimal_symbol): Set maybe_copied
248 on symbol when appropriate.
249 (elf_symfile_read): Update call to dwarf2_has_info.
250 * minsyms.c (lookup_minimal_symbol_linkage): New
252 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
253 * symtab.c (get_symbol_address, get_msymbol_address):
255 * symtab.h (get_symbol_address, get_msymbol_address):
257 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
259 (struct symbol, struct minimal_symbol) <maybe_copied>:
262 2019-10-02 Tom Tromey <tromey@adacore.com>
264 * source.c (struct current_source_location): New.
265 (current_source_key): New global.
266 (current_source_symtab, current_source_line)
267 (current_source_pspace): Remove.
268 (get_source_location): New function.
269 (get_current_source_symtab_and_line)
270 (set_default_source_symtab_and_line)
271 (set_current_source_symtab_and_line)
272 (clear_current_source_symtab_and_line, select_source_symtab)
273 (info_source_command, print_source_lines_base)
274 (info_line_command, search_command_helper, _initialize_source):
277 2019-10-02 Tom Tromey <tromey@adacore.com>
279 * source.c (select_source_symtab): Don't call
280 decode_line_with_current_source.
282 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
284 * symtab.c (lookup_global_symbol): Search global block.
286 2019-10-02 Tom Tromey <tromey@adacore.com>
288 * coffread.c (process_coff_symbol): Update.
289 * dwarf2read.c (var_decode_location, new_symbol): Update.
290 * mdebugread.c (parse_symbol): Update.
291 * objfiles.c (relocate_one_symbol): Update.
292 * stabsread.c (define_symbol, fix_common_block)
293 (scan_file_globals): Update.
294 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
295 (SET_SYMBOL_VALUE_ADDRESS): New macro.
296 * xcoffread.c (process_xcoff_symbol): Update.
298 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
300 * MAINTAINERS: Update my email address.
302 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
304 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
306 (build_type_psymtabs_reader): Update for std::vector.
307 (build_type_psymtab_dependencies): Likewise.
308 * dwarf2read.h: Remove use of DEF_VEC_P.
309 (typedef sig_type_ptr): Delete.
311 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
313 * btrace.c (btrace_maint_clear): Update to handle change from VEC
315 (btrace_maint_decode_pt): Likewise, and move allocation of the
316 vector outside of the loop.
317 (btrace_maint_update_packets): Update to handle change from VEC to
319 (btrace_maint_print_packets): Likewise.
320 (maint_info_btrace_cmd): Likewise.
321 * btrace.h: Remove use of DEF_VEC_O.
322 (typedef btrace_pt_packet_s): Delete.
323 (struct btrace_maint_info) <packets>: Change fromm VEC to
325 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
327 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
329 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
330 make accesses into the vector constant references.
331 (btrace_add_pc): Update for std::vector.
332 (btrace_stitch_bts): Likewise.
333 (parse_xml_btrace_block): Likewise.
334 (btrace_maint_update_packets): Likewise.
335 (btrace_maint_print_packets): Likewise.
336 (maint_info_btrace_cmd): Likewise.
337 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
339 (btrace_data::empty): Likewise.
340 (btrace_data_append): Likewise.
341 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
342 (typedef btrace_block_s): Delete.
343 (struct btrace_block): Add constructor.
344 (struct btrace_data_bts) <blocks>: Change to std::vector.
345 * nat/linux-btrace.c (perf_event_read_bts): Update for
347 (linux_read_bts): Likewise.
349 2019-10-01 Tom Tromey <tom@tromey.com>
351 * cli/cli-logging.c (show_logging_filename): Use styled_string.
353 2019-10-01 Tom Tromey <tom@tromey.com>
355 * stack.c (print_frame, info_frame_command_core): Use
357 * linux-thread-db.c (try_thread_db_load_1)
358 (try_thread_db_load_from_pdir_1): Use styled_string.
359 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
360 (auto_load_section_scripts, info_auto_load_local_gdbinit)
361 (maybe_print_unsupported_script_warning)
362 (maybe_print_script_not_found_warning): Use styled_string.
363 * ada-lang.c (user_select_syms): Use styled_string.
365 2019-10-01 Tom Tromey <tom@tromey.com>
367 * p-lang.c (pascal_printstr): Use metadata style.
368 * value.c (show_convenience): Use metadata style.
369 * valprint.c (valprint_check_validity, val_print_optimized_out)
370 (val_print_not_saved, val_print_unavailable)
371 (val_print_invalid_address, generic_val_print, val_print)
372 (value_check_printable, val_print_array_elements): Use metadata
374 * ui-out.h (class ui_out) <field_fmt>: New overload.
375 <do_field_fmt>: Add style parameter.
376 * ui-out.c (ui_out::field_fmt): New overload.
377 * typeprint.c (type_print_unknown_return_type)
378 (val_print_not_allocated, val_print_not_associated): Use metadata
380 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
382 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
383 * tracepoint.c (tvariables_info_1): Use metadata style.
384 * stack.c (print_frame_arg, print_frame_info, print_frame)
385 (info_frame_command_core): Use metadata style.
386 * skip.c (info_skip_command): Use metadata style.
387 * rust-lang.c (rust_print_enum): Use metadata style.
388 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
390 * python/py-framefilter.c (py_print_single_arg): Use metadata
392 * printcmd.c (do_one_display, print_variable_and_value): Use
394 * p-valprint.c (pascal_val_print)
395 (pascal_object_print_value_fields): Use metadata style.
396 * p-typeprint.c (pascal_type_print_base): Use metadata style.
397 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
399 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
400 * m2-valprint.c (m2_print_long_set): Use metadata style.
401 * m2-typeprint.c (m2_print_type): Use metadata style.
402 * infcmd.c (print_return_value_1): Use metadata style.
403 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
404 * f-valprint.c (info_common_command_for_block): Use metadata
406 * f-typeprint.c (f_type_print_base): Use metadata style.
407 * expprint.c (print_subexp_standard): Use metadata style.
408 * cp-valprint.c (cp_print_value_fields): Use metadata style.
409 * cli/cli-style.h (class cli_style_option): Add constructor.
410 (metadata_style): Declare.
411 * cli/cli-style.c (metadata_style): New global.
412 (_initialize_cli_style): Register metadata style.
413 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
415 * cli-out.c (cli_ui_out::do_field_fmt): Update.
416 * c-typeprint.c (c_type_print_base_struct_union)
417 (c_type_print_base_1): Use metadata style.
418 * breakpoint.c (watchpoint_value_print)
419 (print_one_breakpoint_location): Use metadata style.
420 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
422 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
424 * ada-valprint.c (val_print_packed_array_elements, printstr)
425 (print_field_values, ada_val_print_ref, ada_val_print): Use
427 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
429 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
431 * ada-lang.c (user_select_syms): Use metadata style.
433 2019-10-01 Tom Tromey <tom@tromey.com>
435 * cli/cli-cmds.c (pwd_command): Style output.
437 2019-10-01 Pedro Alves <palves@redhat.com>
438 Tom Tromey <tom@tromey.com>
440 * symtab.c (print_symbol_info): Use %ps.
441 (print_msymbol_info): Use %ps.
442 * symfile.c (symbol_file_add_with_addrs): Use %ps.
443 * printcmd.c (print_variable_and_value): Use %ps.
444 * macrocmd.c (show_pp_source_pos): Use %ps.
445 * infrun.c (print_exited_reason): Use ui_out::message.
446 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
447 (describe_other_breakpoints): Use ui_out::message and new
449 (say_where): Use new formats.
450 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
453 2019-10-01 Pedro Alves <palves@redhat.com>
454 Tom Tromey <tom@tromey.com>
456 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
457 (test_gdb_formats): New function.
458 (run_tests): Call it.
459 (test_format_specifier): Update.
460 * utils.h (fputs_filtered): Update comment.
461 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
462 (fputs_styled_unfiltered): Declare.
463 * utils.c (fputs_styled_unfiltered): New function.
464 (vfprintf_maybe_filtered): Add gdbfmt parameter.
465 (vfprintf_filtered): Update.
466 (vfprintf_unfiltered, vprintf_filtered): Update.
467 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
468 * ui-out.h (enum ui_out_flag) <unfiltered_output,
469 disallow_ui_out_field>: New constants.
470 (enum class field_kind): New.
471 (struct base_field_s, struct signed_field_s): New.
472 (signed_field): New function.
473 (struct string_field_s): New.
474 (string_field): New function.
475 (struct styled_string_s): New.
476 (styled_string): New function.
477 (class ui_out) <message>: Add comment.
478 <vmessage, call_do_message>: New methods.
479 <do_message>: Add style parameter.
480 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
482 (ui_out::message): Rewrite.
483 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
485 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
486 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
487 gdb_extensions parameter.
488 (class format_piece): Add parameter to constructor.
489 (n_int_args): New field.
490 * gdbsupport/format.c (format_pieces::format_pieces): Add
491 gdb_extensions parameter. Handle '*'.
492 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
493 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
494 vfprintf_styled_no_gdbfmt.
495 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
496 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
498 * ui-style.h (struct ui_file_style) <ptr>: New method.
500 2019-10-01 Tom Tromey <tom@tromey.com>
502 * unittests/format_pieces-selftests.c: Update. Add final format.
503 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
504 empty literal pieces.
506 2019-10-01 Tom Tromey <tom@tromey.com>
508 * ui-out.h (enum class ui_out_style_kind): Remove.
509 (class ui_out) <field_string, field_stsream, do_field_string>:
510 Change type of "style".
511 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
512 (ui_out::field_string): Update.
513 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
515 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
516 * tracepoint.c (print_one_static_tracepoint_marker): Update.
517 * stack.c (print_frame_arg, print_frame_info, print_frame):
519 * source.c (print_source_lines_base): Update.
520 * solib.c (info_sharedlibrary_command): Update.
521 * skip.c (info_skip_command): Update.
522 * record-btrace.c (btrace_call_history_src_line)
523 (btrace_call_history): Update.
524 * python/py-framefilter.c (py_print_frame): Update.
525 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
527 * mi/mi-out.c (mi_ui_out::do_table_header)
528 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
529 (mi_ui_out::do_field_string): Update.
530 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
532 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
534 * cli-out.c (cli_ui_out::do_table_header)
535 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
536 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
537 (cli_ui_out::do_field_fmt): Update.
538 * breakpoint.c (print_breakpoint_location): Update.
539 (update_static_tracepoint): Update.
541 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
543 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
544 conversion of gdb_datadir.
545 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
546 remove not needed c_str ().
548 2019-09-30 Ali Tamur <tamur@google.com>
550 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
551 (dwarf2_string_attr): Likewise.
553 2019-09-30 Ali Tamur <tamur@google.com>
555 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
556 (process_full_type_unit): Likewise.
557 (dump_die_shallow): Likewise.
558 (cu_debug_loc_section): Likewise.
560 2019-09-28 Christian Biesinger <cbiesinger@google.com>
562 * minsyms.c (compare_minimal_symbols): Rename to...
563 (minimal_symbol_is_less_than): ...this, and adjust to STL
564 conventions (return bool, take arguments as references)
565 (minimal_symbol_reader::install): Call std::sort instead
568 2019-09-29 Christian Biesinger <cbiesinger@google.com>
570 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
572 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
573 msymbol_hash, msymbol_demangled_hash>: Improve comments.
575 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
577 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
578 * psympriv.h (add_psymbol_to_list): Move comment here and update
581 2019-09-29 Tom de Vries <tdevries@suse.de>
583 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
584 Use $tmpdir/$(basename "$output_file").dwz instead of
585 "${output_file}.dwz".
587 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
590 * hppa-linux-nat.c: Include gdbarch.h.
592 2019-09-26 Christian Biesinger <cbiesinger@google.com>
594 * blockframe.c (find_pc_partial_function): Change return type to bool.
595 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
596 * minsyms.c (in_gnu_ifunc_stub): Likewise.
597 (stub_gnu_ifunc_resolve_name): Likewise.
598 * symtab.c (compare_filenames_for_search): Likewise.
599 (compare_glob_filenames_for_search): Likewise.
600 (matching_obj_sections): Likewise.
601 (symbol_matches_domain): Likewise.
602 (find_line_symtab): Change out param EXACT_MATCH to bool *.
603 (find_line_pc): Change return type to bool.
604 (find_line_pc_range): Likewise.
605 (producer_is_realview): Likewise.
606 * symtab.h (symbol_matches_domain): Likewise.
607 (find_pc_partial_function): Likewise.
608 (find_pc_line_pc_range): Likewise.
609 (in_gnu_ifunc_stub): Likewise.
610 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
611 (find_line_pc): Likewise.
612 (find_line_pc_range): Likewise.
613 (matching_obj_sections): Likewise.
614 (find_line_symtab): Change out parameter to bool.
615 (producer_is_realview): Change return type to bool.
616 (compare_filenames_for_search): Likewise.
617 (compare_glob_filenames_for_search): Likewise.
619 2019-09-26 Tom Tromey <tom@tromey.com>
621 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
622 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
623 * gdb_usleep.h: Remove.
624 * gdb_usleep.c: Remove.
625 * utils.c: Don't include gdb_usleep.h.
627 2019-09-26 Tom Tromey <tromey@adacore.com>
629 * python/py-type.c (type_to_type_object): Call check_typedef
632 2019-09-26 Tom Tromey <tom@tromey.com>
634 * utils.h (initialize_utils): Don't declare.
635 * top.c (gdb_init): Don't call initialize_utils.
636 * utils.c (initialize_utils): Remove. Move contents...
637 (_initialize_utils): ... here.
639 2019-09-25 Tom Tromey <tom@tromey.com>
641 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
642 * utils.h (make_hex_string): Don't declare.
643 * utils.c (make_hex_string): Remove.
645 2019-09-24 Tom de Vries <tdevries@suse.de>
648 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
649 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
651 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
653 * NEWS: Mention new simulator port for PRU.
655 2019-09-23 Christian Biesinger <cbiesinger@google.com>
657 * ada-exp.y (write_object_remaining): Update.
658 * ada-lang.c (ada_decode): Return a std::string instead of a char*
659 and eliminate the static buffer.
660 (ada_decode_symbol): Update.
661 (ada_la_decode): Update.
662 (ada_sniff_from_mangled_name): Update.
663 (is_valid_name_for_wild_match): Update.
664 (ada_lookup_name_info::matches): Update and simplify.
665 (name_matches_regex): Update.
666 (ada_add_global_exceptions): Update.
667 * ada-lang.h (ada_decode): Update signature.
668 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
669 * dwarf-index-write.c (debug_names::insert): Update.
671 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
673 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
676 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
678 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
679 Change "nonzero" to "true" in documentation.
681 2019-09-20 Christian Biesinger <cbiesinger@google.com>
683 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
684 (_initialize_darwin_solib): Don't set
685 darwin_so_ops.lookup_lib_global_symbol.
686 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
687 set_gdbarch_iterate_over_objfiles_in_search_order.
688 (elf_lookup_lib_symbol): Rename to...
689 (svr4_iterate_over_objfiles_in_search_order): this, and update
690 to iterate semantics.
691 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
692 * solib.c (solib_global_lookup): Remove.
693 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
694 (solib_global_lookup): Remove.
695 * symtab.c (lookup_global_or_static_symbol): Remove call to
698 2019-09-20 Joel Brobecker <brobecker@adacore.com>
700 * NEWS: Move entries about default MI version now being
701 version 3, and about the GDB/MI fix for multi-location
702 breakpoints to the "since GDB 8.3" section.
704 2019-09-20 Joel Brobecker <brobecker@adacore.com>
708 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
710 * NEWS: Mention that Cell/B.E. debugging support was removed.
711 * MAINTAINERS: Remove spu target.
713 * config/djgpp/fnchange.lst: Remove entries for removed files.
715 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
716 spu-multiarch.o, and spu-tdep.o.
717 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
718 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
719 spu-multiarch.c, and spu-tdep.c.
720 * spu-linux-nat.c: Remove file.
721 * spu-multiarch.c: Remove file.
722 * spu-tdep.c: Remove file.
723 * spu-tdep.h: Remove file.
724 * solib-spu.c: Remove file.
725 * solib-spu.h: Remove file.
727 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
728 * configure.nat (spu-linux): Remove.
729 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
730 solib-multiarch.o from gdb_target_obs.
733 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
735 (ppc_linux_no_features): Update.
736 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
738 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
739 (tdesc_powerpc_cell64l): Likewise.
740 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
741 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
743 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
744 Do not include "features/rs6000/powerpc-cell32l.c" or
745 "features/rs6000/powerpc-cell64l.c".
746 (ppc_linux_spu_section): Remove.
747 (ppc_linux_core_read_description): Remove Cell/B.E. support.
748 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
749 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
750 (ppc_linux_spe_context_lookup): Remove.
751 (ppc_linux_spe_context_inferior_created): Remove.
752 (ppc_linux_spe_context_solib_loaded): Remove.
753 (ppc_linux_spe_context_solib_unloaded): Remove.
754 (ppc_linux_spe_context): Remove.
755 (struct ppu2spu_cache): Remove.
756 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
757 (struct ppu2spu_data): Remove.
758 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
759 ppu2spu_unwind): Remove.
760 (ppc_linux_init_abi): Remove Cell/B.E. support.
761 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
763 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
764 (rs6000/powerpc-cell64l-expedite): Likewise
765 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
766 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
767 rs6000/powerpc-cell64l.xml.
768 * features/rs6000/powerpc-cell32l.xml: Remove.
769 * features/rs6000/powerpc-cell64l.xml: Likewise.
770 * features/rs6000/powerpc-cell32l.c: Remove generated file.
771 * features/rs6000/powerpc-cell64l.c: Likewise.
772 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
773 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
774 * regformats/reg-spu.dat: Remove.
776 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
777 * corelow.c (struct spuid_list): Remove.
778 (add_to_spuid_list): Remove.
779 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
780 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
781 (remote_protocol_features): Remove associated entries.
782 (_initialize_remote): No longer initialize them.
783 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
784 * linux-nat.c (SPUFS_MAGIC): Remove.
785 (linux_proc_xfer_spu): Remove.
786 (spu_enumerate_spu_ids): Remove.
787 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
788 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
789 (linux_make_corefile_notes): No longer call it.
791 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
792 (cooked_write_test): Likewise.
794 2019-09-20 Tom Tromey <tom@tromey.com>
796 * NEWS: Mention case-sensitivity of TUI commands.
797 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
798 (tui_set_win_height_command, parse_scrolling_args): Likewise.
799 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
801 2019-09-20 Tom Tromey <tom@tromey.com>
803 * tui/tui-source.c (tui_source_window::set_contents): Use
805 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
808 2019-09-20 Tom Tromey <tom@tromey.com>
810 * tui/tui-data.c: Remove separator comments.
811 * tui/tui-layout.c: Remove separator comments.
812 * tui/tui-win.c: Remove separator comments.
813 * tui/tui-wingeneral.c: Remove separator comments.
815 2019-09-20 Tom Tromey <tom@tromey.com>
817 * tui/tui.h (strcat_to_buf): Don't declare.
818 * tui/tui.c (strcat_to_buf): Remove.
820 2019-09-20 Tom Tromey <tom@tromey.com>
822 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
824 * tui/tui-source.c (tui_source_window::set_contents)
825 (tui_source_window::location_matches_p)
826 (tui_source_window::maybe_update): Update.
828 2019-09-20 Tom Tromey <tom@tromey.com>
830 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
832 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
834 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
835 (tui_data_window::line_from_reg_element_no)
836 (tui_data_window::first_reg_element_no_inline)
837 (tui_data_window::show_registers)
838 (tui_data_window::show_register_group)
839 (tui_data_window::display_registers_from)
840 (tui_data_window::display_registers_from_line)
841 (tui_data_window::first_data_item_displayed)
842 (tui_data_window::delete_data_content_windows)
843 (tui_data_window::erase_data_content)
844 (tui_data_window::do_scroll_vertical)
845 (tui_data_window::refresh_window)
846 (tui_data_window::check_register_values): Update.
848 2019-09-20 Tom Tromey <tom@tromey.com>
850 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
851 (struct tui_locator_window) <full_name, proc_name>: Now
853 * tui/tui-stack.c (tui_locator_window::make_status_line)
854 (tui_locator_window::set_locator_fullname)
855 (tui_locator_window::set_locator_info): Update.
856 * tui/tui-source.c (tui_source_window::set_contents)
857 (tui_source_window::showing_source_p): Update.
859 2019-09-20 Tom Tromey <tom@tromey.com>
861 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
862 Don't call tui_locator_win_info_ptr.
864 2019-09-20 Tom Tromey <tom@tromey.com>
866 * tui/tui-win.c (tui_resize_all): Don't call refresh.
868 2019-09-20 Tom Tromey <tom@tromey.com>
870 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
872 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
873 * tui/tui-layout.c (show_source_disasm_command, show_data)
874 (show_source_or_disasm_and_command): Use 1 as height for locator.
876 2019-09-20 Tom Tromey <tom@tromey.com>
878 * tui/tui.c (tui_enable): Update.
879 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
881 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
883 * tui/tui-data.c (win_resized): Now bool.
884 (tui_win_resized): Return bool.
885 (tui_set_win_resized_to): Accept a bool.
887 2019-09-20 Tom Tromey <tom@tromey.com>
889 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
890 Change type of "refresh_values_only".
891 * tui/tui-regs.c (tui_data_window::show_register_group): Change
892 type of "refresh_values_only".
894 2019-09-20 Tom Tromey <tom@tromey.com>
896 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
898 (tui_disassemble): Add "pos" parameter.
899 (tui_disasm_window::set_contents): Simplify.
901 2019-09-20 Tom Tromey <tom@tromey.com>
903 * tui/tui-winsource.h (struct tui_source_window_base)
904 <show_source_content>: Now private.
905 * tui/tui-winsource.c
906 (tui_source_window_base::show_source_content): Don't handle empty
909 2019-09-20 Tom Tromey <tom@tromey.com>
911 * tui/tui-layout.c (show_source_disasm_command)
912 (show_source_or_disasm_and_command): Don't call
915 2019-09-20 Tom Tromey <tom@tromey.com>
917 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
919 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
920 from tui_make_status_line.
921 (tui_locator_window::rerender): Update.
923 2019-09-20 Tom Tromey <tom@tromey.com>
925 * tui/tui-stack.c (tui_make_status_line): Return std::string.
926 (tui_locator_window::rerender): Update.
928 2019-09-20 Tom Tromey <tom@tromey.com>
930 * tui/tui-winsource.h (struct tui_source_window_base)
931 <~tui_source_window_base>: Don't declare.
933 * tui/tui-winsource.c (~tui_source_window_base): Remove.
934 * tui/tui-source.h (struct tui_source_window) <fullname>: New
936 * tui/tui-source.c (tui_source_window::set_contents): Update.
937 (tui_source_window::location_matches_p)
938 (tui_source_window::maybe_update): Update.
940 2019-09-20 Tom Tromey <tom@tromey.com>
942 * tui/tui-winsource.h (~tui_source_element): Remove.
943 (tui_source_element): Update.
944 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
945 * tui/tui-winsource.c (tui_show_source_line): Update.
946 * tui/tui-source.c (tui_source_window::set_contents): Update.
947 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
949 2019-09-20 Tom Tromey <tom@tromey.com>
951 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
953 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
954 tui_clear_source_windows_detail.
955 * tui/tui-winsource.h (struct tui_source_window_base)
956 <clear_detail>: Don't declare.
957 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
959 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
961 2019-09-20 Tom Tromey <tromey@adacore.com>
964 * block.c (contained_in): Fix final return value.
966 2019-09-20 Alan Modra <amodra@gmail.com>
968 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
969 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
970 (read_indirect_string_from_dwz): Use bfd accessor.
971 * dwarf2read.h (struct dwz_file <filename>): Likewise.
972 * machoread.c (macho_symfile_read_all_oso): Likewise.
973 * solib.c (solib_bfd_open): Likewise.
975 2019-09-19 Christian Biesinger <cbiesinger@google.com>
977 * eval.c: Move declaration of overload_resolution to...
980 2019-09-19 Christian Biesinger <cbiesinger@google.com>
982 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
983 * arm-linux-tdep.c: Likewise.
984 * arm-nbsd-nat.c: Likewise.
985 * arm-tdep.h: Declare arm_apcs_32.
986 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
988 2019-09-19 Christian Biesinger <cbiesinger@google.com>
990 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
991 * dwarf2read.h: Declare dwarf_always_disassemble.
993 2019-09-19 Tom de Vries <tdevries@suse.de>
996 * source-cache.c (source_cache::ensure): Catch exception thrown during
997 construction of the highlighter.
999 2019-09-18 Alan Modra <amodra@gmail.com>
1001 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1002 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1003 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1004 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1005 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1006 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1007 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1008 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1009 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1010 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1011 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1012 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1013 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1014 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1015 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1016 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1017 * mi/mi-interp.c: Update throughout for bfd section macro and
1019 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1020 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1022 2019-09-18 Tom Tromey <tom@tromey.com>
1025 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1027 (tui_enable): Do not call rl_initialize.
1029 2019-09-18 Christian Groessler <chris@groessler.org>
1031 * alpha-linux-nat.c: Include gdbarch.h.
1033 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1035 * ui-file.c: Include cli/cli-style.h.
1036 (term_cli_styling): Remove cli_styling declaration.
1038 2019-09-18 Alan Modra <amodra@gmail.com>
1040 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1041 to bfd_asymbol_section.
1043 2019-09-18 Alan Modra <amodra@gmail.com>
1045 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1046 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1047 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1049 2019-09-18 Alan Modra <amodra@gmail.com>
1051 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1052 * spu-linux-nat.c (spu_bfd_open): Likewise.
1054 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1056 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1057 to bool to match definition in dwarf2read.c.
1059 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1061 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1062 (print_signatures): Likewise.
1063 (trust_pad_over_xvs): Likewise.
1064 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1065 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1066 * arm-linux-nat.c (arm_apcs_32): Likewise.
1067 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1068 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1069 * arm-tdep.c (arm_debug): Likewise.
1070 (arm_apcs_32): Likewise.
1071 * auto-load.c (debug_auto_load): Likewise.
1072 (auto_load_gdb_scripts): Likewise.
1073 (global_auto_load): Likewise.
1074 (auto_load_local_gdbinit): Likewise.
1075 (auto_load_local_gdbinit_loaded): Likewise.
1076 * auto-load.h (global_auto_load): Likewise.
1077 (auto_load_local_gdbinit): Likewise.
1078 (auto_load_local_gdbinit_loaded): Likewise.
1079 * breakpoint.c (disconnected_dprintf): Likewise.
1080 (breakpoint_proceeded): Likewise.
1081 (automatic_hardware_breakpoints): Likewise.
1082 (always_inserted_mode): Likewise.
1083 (target_exact_watchpoints): Likewise.
1084 (_initialize_breakpoint): Update.
1085 * breakpoint.h (target_exact_watchpoints): Change to bool.
1086 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1087 * cli/cli-cmds.c (trace_commands): Likewise.
1088 * cli/cli-cmds.h (trace_commands): Likewise.
1089 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1091 * cli/cli-logging.c (logging_overwrite): Change to bool.
1092 (logging_redirect): Likewise.
1093 (debug_redirect): Likewise.
1094 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1095 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1097 <boolean_option_def>: Update.
1098 (struct flag_option_def): Change default type of Context to bool
1100 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1101 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1102 (get_setshow_command_value_string): Likewise.
1103 * cli/cli-style.c (cli_styling): Change to bool.
1104 (source_styling): Likewise.
1105 * cli/cli-style.h (source_styling): Likewise.
1106 (cli_styling): Likewise.
1107 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1109 * command.h (var_types): Update comment.
1110 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1111 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1113 (debug_compile_cplus_scopes): Likewise.
1114 * compile/compile-internal.h (compile_debug): Likewise.
1115 * compile/compile.c (compile_debug): Likewise.
1116 (struct compile_options) <raw>: Likewise.
1117 * cp-support.c (catch_demangler_crashes): Likewise.
1118 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1119 (usr_cmd_cris_dwarf2_cfi): Likewise.
1120 * csky-tdep.c (csky_debug): Likewise.
1121 * darwin-nat.c (enable_mach_exceptions): Likewise.
1122 * dcache.c (dcache_enabled_p): Likewise.
1123 * defs.h (info_verbose): Likewise.
1124 * demangle.c (demangle): Likewise.
1125 (asm_demangle): Likewise.
1126 * dwarf-index-cache.c (debug_index_cache): Likewise.
1127 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1128 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1129 * dwarf2read.c (check_physname): Likewise.
1130 (use_deprecated_index_sections): Likewise.
1131 (dwarf_always_disassemble): Likewise.
1132 * eval.c (overload_resolution): Likewise.
1133 * event-top.c (set_editing_cmd_var): Likewise.
1134 (exec_done_display_p): Likewise.
1135 * event-top.h (set_editing_cmd_var): Likewise.
1136 (exec_done_display_p): Likewise.
1137 * exec.c (write_files): Likewise.
1138 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1139 (debug_fbsd_nat): Likewise.
1140 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1142 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1143 <backtrace_past_entry> Likewise.
1144 * gdb-demangle.h (demangle): Likewise.
1145 (asm_demangle): Likewise.
1146 * gdb_bfd.c (bfd_sharing): Likewise.
1147 * gdbcore.h (write_files): Likewise.
1148 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1149 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1150 * gdbthread.h (print_thread_events): Likewise.
1151 * gdbtypes.c (opaque_type_resolution): Likewise.
1152 (strict_type_checking): Likewise.
1153 * gnu-nat.c (gnu_debug_flag): Likewise.
1154 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1155 * guile/scm-param.c (pascm_variable): Add boolval.
1156 (add_setshow_generic): Update.
1157 (pascm_param_value): Update.
1158 (pascm_set_param_value_x): Update.
1159 * hppa-tdep.c (hppa_debug): Change to bool..
1160 * infcall.c (may_call_functions_p): Likewise.
1161 (coerce_float_to_double_p): Likewise.
1162 (unwind_on_signal_p): Likewise.
1163 (unwind_on_terminating_exception_p): Likewise.
1164 * infcmd.c (startup_with_shell): Likewise.
1165 * inferior.c (print_inferior_events): Likewise.
1166 * inferior.h (startup_with_shell): Likewise.
1167 (print_inferior_events): Likewise.
1168 * infrun.c (step_stop_if_no_debug): Likewise.
1169 (detach_fork): Likewise.
1170 (debug_displaced): Likewise.
1171 (disable_randomization): Likewise.
1172 (non_stop): Likewise.
1173 (non_stop_1): Likewise.
1174 (observer_mode): Likewise.
1175 (observer_mode_1): Likewise.
1176 (set_observer_mode): Update.
1177 (sched_multi): Change to bool.
1178 * infrun.h (debug_displaced): Likewise.
1179 (sched_multi): Likewise.
1180 (step_stop_if_no_debug): Likewise.
1181 (non_stop): Likewise.
1182 (disable_randomization): Likewise.
1183 * linux-tdep.c (use_coredump_filter): Likewise.
1184 (dump_excluded_mappings): Likewise.
1185 * linux-thread-db.c (auto_load_thread_db): Likewise.
1186 (check_thread_db_on_load): Likewise.
1187 * main.c (captured_main_1): Update.
1188 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1189 xx2_opt, boolean_opt>: Change to bool.
1190 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1191 * maint.c (maintenance_profile_p): Likewise.
1192 (per_command_time): Likewise.
1193 (per_command_space): Likewise.
1194 (per_command_symtab): Likewise.
1195 * memattr.c (inaccessible_by_default): Likewise.
1196 * mi/mi-main.c (mi_async): Likewise.
1197 (mi_async_1): Likewise.
1198 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1199 * nat/fork-inferior.h (startup_with_shell): Likewise.
1200 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1201 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1202 * nios2-tdep.c (nios2_debug): Likewise.
1203 * or1k-tdep.c (or1k_debug): Likewise.
1204 * parse.c (parser_debug): Likewise.
1205 * parser-defs.h (parser_debug): Likewise.
1206 * printcmd.c (print_symbol_filename): Likewise.
1207 * proc-api.c (procfs_trace): Likewise.
1208 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1209 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1210 (set_parameter_value): Update.
1211 (add_setshow_generic): Update.
1212 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1214 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1216 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1217 * record-btrace.c (record_btrace_target::store_registers): Update.
1218 * record-full.c (record_full_memory_query): Change to bool.
1219 (record_full_stop_at_limit): Likewise.
1220 * record-full.h (record_full_memory_query): Likewise.
1221 * remote-notif.c (notif_debug): Likewise.
1222 * remote-notif.h (notif_debug): Likewise.
1223 * remote.c (use_range_stepping): Likewise.
1224 (interrupt_on_connect): Likewise.
1225 (remote_break): Likewise.
1226 * ser-tcp.c (tcp_auto_retry): Likewise.
1227 * ser-unix.c (serial_hwflow): Likewise.
1228 * skip.c (debug_skip): Likewise.
1229 * solib-aix.c (solib_aix_debug): Likewise.
1230 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1231 (spu_auto_flush_cache_p): Likewise.
1232 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1234 (struct info_print_options) <quiet>: Likewise.
1235 * symfile-debug.c (debug_symfile): Likewise.
1236 * symfile.c (auto_solib_add): Likewise.
1237 (separate_debug_file_debug): Likewise.
1238 * symfile.h (auto_solib_add): Likewise.
1239 (separate_debug_file_debug): Likewise.
1240 * symtab.c (basenames_may_differ): Likewise.
1241 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1242 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1243 (struct info_types_options) <quiet>: Likewise.
1244 * symtab.h (demangle): Likewise.
1245 (basenames_may_differ): Likewise.
1246 * target-dcache.c (stack_cache_enabled_1): Likewise.
1247 (code_cache_enabled_1): Likewise.
1248 * target.c (trust_readonly): Likewise.
1249 (may_write_registers): Likewise.
1250 (may_write_memory): Likewise.
1251 (may_insert_breakpoints): Likewise.
1252 (may_insert_tracepoints): Likewise.
1253 (may_insert_fast_tracepoints): Likewise.
1254 (may_stop): Likewise.
1255 (auto_connect_native_target): Likewise.
1256 (target_stop_and_wait): Update.
1257 (target_async_permitted): Change to bool.
1258 (target_async_permitted_1): Likewise.
1259 (may_write_registers_1): Likewise.
1260 (may_write_memory_1): Likewise.
1261 (may_insert_breakpoints_1): Likewise.
1262 (may_insert_tracepoints_1): Likewise.
1263 (may_insert_fast_tracepoints_1): Likewise.
1264 (may_stop_1): Likewise.
1265 * target.h (target_async_permitted): Likewise.
1266 (may_write_registers): Likewise.
1267 (may_write_memory): Likewise.
1268 (may_insert_breakpoints): Likewise.
1269 (may_insert_tracepoints): Likewise.
1270 (may_insert_fast_tracepoints): Likewise.
1271 (may_stop): Likewise.
1272 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1273 (make_thread_apply_all_options_def_group): Change argument from int*
1275 (thread_apply_all_command): Update.
1276 (print_thread_events): Change to bool.
1277 * top.c (confirm): Likewise.
1278 (command_editing_p): Likewise.
1279 (history_expansion_p): Likewise.
1280 (write_history_p): Likewise.
1281 (info_verbose): Likewise.
1282 * top.h (confirm): Likewise.
1283 (history_expansion_p): Likewise.
1284 * tracepoint.c (disconnected_tracing): Likewise.
1285 (circular_trace_buffer): Likewise.
1286 * typeprint.c (print_methods): Likewise.
1287 (print_typedefs): Likewise.
1288 * utils.c (debug_timestamp): Likewise.
1289 (sevenbit_strings): Likewise.
1290 (pagination_enabled): Likewise.
1291 * utils.h (sevenbit_strings): Likewise.
1292 (pagination_enabled): Likewise.
1293 * valops.c (overload_resolution): Likewise.
1294 * valprint.h (struct value_print_options) <prettyformat_arrays,
1295 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1296 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1297 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1299 * windows-nat.c (new_console): Likewise.
1300 (cygwin_exceptions): Likewise.
1301 (new_group): Likewise.
1302 (debug_exec): Likewise.
1303 (debug_events): Likewise.
1304 (debug_memory): Likewise.
1305 (debug_exceptions): Likewise.
1306 (useshell): Likewise.
1307 * windows-tdep.c (maint_display_all_tib): Likewise.
1308 * xml-support.c (debug_xml): Likewise.
1310 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1312 * source.c (prepare_path_for_appending): New function.
1313 (openp): Make use of new function.
1314 (find_and_open_source): Search for the compilation directory and
1315 source file as a relative path beneath the directory search path.
1317 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1319 * source-cache.c (source_cache::get_line_charpos): Catch
1320 exceptions and return false, this matches the behaviour documented
1323 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1325 * ada-tasks.c (info_task): Remove quoting of the task's name.
1327 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1329 * symfile.c (auto_solib_add): Replace comment with a reference
1332 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1334 * NEWS: Mention that gdb can now be compiled with Python 3
1337 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1339 * maint.c (maint_print_section_data::maint_print_section_data):
1340 Force use of 'float log10 (float)' by casting the argument to
1343 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1345 * maint.c: Add 'cmath' include.
1346 (struct maint_print_section_data): New structure.
1347 (print_section_index): New function.
1348 (print_bfd_section_info): Add header comment, small whitespace
1349 cleanup, and update to call new print_section_index function.
1350 (print_objfile_section_info): Likewise.
1351 (maint_obj_section_from_bfd_section): New function.
1352 (print_bfd_section_info_maybe_relocated): New function.
1353 (maintenance_info_sections): Add header comment, always use
1354 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1356 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1358 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1359 inner scope, add check that the objfile has psymtabs before
1360 checking psymtabs_addrmap.
1361 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1363 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1365 * NEWS: Announce that Ada task names are now shown at more places,
1366 and between quotes (except in info task output).
1367 * gdb/ada-tasks.c (task_to_str): New function.
1368 (display_current_task_id): Call task_to_str.
1369 (task_command_1): Likewise.
1370 (print_ada_task_info): In non-mi mode, Properly align headers and data
1371 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1373 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1375 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1376 prstatus.pr_lwp.pr_info instead of making it up.
1378 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1380 * auto-load.c (auto_load_expand_dir_vars): Update.
1381 * defs.h (gdb_datadir): Change to std::string.
1382 (python_libdir): Likewise.
1383 (relocate_gdb_directory): Change return type to std::string.
1384 * guile/guile.c (gdbscm_data_directory): Update.
1385 (initialize_scheme_side): Update.
1386 * jit.c (jit_reader_dir): Change to std::string.
1387 (jit_reader_load_command): Update.
1388 * main.c (gdb_datadir): Change to std::string.
1389 (python_libdir): Likewise.
1390 (set_gdb_data_directory): Update.
1391 (relocate_path): Change to return std::string.
1392 (relocate_gdb_directory): Change to return std::string.
1393 (relocate_gdbinit_path_maybe_in_datadir): Update.
1394 (captured_main_1): Update.
1395 * python/python.c (do_start_initialization): Update.
1396 * top.c (show_gdb_datadir): Update.
1397 * xml-syscall.c (xml_init_syscalls_info): Update.
1398 (init_syscalls_info): Update.
1400 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1402 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1403 out of get_init_files.
1404 (get_init_files): Update.
1406 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1408 * main.c (get_init_files): Change to use std::string.
1409 (captured_main_1): Update.
1410 (print_gdb_help): Update.
1412 2019-09-11 Ali Tamur <tamur@google.com>
1414 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1417 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1419 * dbxread.c (read_dbx_symtab): Update.
1420 * dwarf2read.c (load_partial_dies): Update.
1421 * mdebugread.c (parse_partial_symbols): Update.
1422 (handle_psymbol_enumerators): Update.
1423 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1424 * psymtab.c (add_psymbol_to_bcache): Likewise.
1425 (add_psymbol_to_list): Likewise.
1426 * symtab.c (symbol_set_names): Likewise.
1427 * symtab.h (symbol_set_names): Likewise.
1428 * xcoffread.c (scan_xcoff_symtab): Update.
1430 2019-09-11 Tom Tromey <tom@tromey.com>
1432 * symfile-mem.c (symbol_file_add_from_memory): Use
1434 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1435 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1437 2019-09-10 Tom Tromey <tromey@adacore.com>
1439 * dwarf-index-write.c (write_psymbols): Extend error message.
1440 (debug_names::insert): Add Ada code.
1441 (debug_names::write_psymbols): Remove Ada check.
1442 (debug_names) <m_string_obstack>: New member.
1443 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1444 (gdb_index_symbol_name_matcher::matches): Remove.
1445 (mapped_index_base::find_name_components_bounds): Add "lang"
1447 (mapped_index_base::build_name_components): Also split names
1448 according to Ada syntax.
1449 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1450 type of "match_callback".
1451 (check_match, check_find_bounds_finds)
1452 (dw2_expand_symtabs_matching): Update.
1453 (dw2_debug_names_iterator): Add new constructor.
1454 (dw2_debug_names_map_matching_symbols): New function.
1455 (dw2_debug_names_expand_symtabs_matching): Update.
1456 (dwarf2_debug_names_functions): Use
1457 dw2_debug_names_map_matching_symbols.
1459 2019-09-10 Tom Tromey <tromey@adacore.com>
1461 * dwarf2read.c (dw2_get_file_names_reader): Add the
1462 CU's file name to the results.
1464 2019-09-10 Tom Tromey <tromey@adacore.com>
1466 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1467 map_matching_symbols. Update.
1468 * dwarf2read.c (dw2_map_matching_symbols): Update.
1469 * psymtab.c (match_partial_symbol): Change type; update.
1470 (psym_map_matching_symbols): Likewise.
1471 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1473 * symfile.h (struct quick_symbol_functions)
1474 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1477 2019-09-10 Tom Tromey <tromey@adacore.com>
1479 * psymtab.c (map_block): Remove.
1480 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1481 * symtab.c (iterate_over_symbols_terminated): New function.
1482 * symtab.c (iterate_over_symbols_terminated): Declare.
1484 2019-09-10 Tom Tromey <tromey@adacore.com>
1486 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1487 * language.h (struct language_defn) <la_iterate_over_symbols>:
1489 * symtab.c (iterate_over_symbols): Return bool.
1490 * symtab.h (iterate_over_symbols): Return bool.
1492 2019-09-10 Tom Tromey <tromey@adacore.com>
1494 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1495 (add_nonlocal_symbols): Update.
1496 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1497 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1498 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1499 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1500 Change type of "callback". Remove "data".
1503 2019-09-09 Ali Tamur <tamur@google.com>
1505 * dwarf2read.c (comp_unit_head): Update comment.
1506 (dwarf2_dwo_name): New function declaration.
1507 (dwarf_unit_type_name): New function declaration.
1508 (read_comp_unit_head): Add support for new compilation units,
1509 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1510 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1511 (currently named as "signature") in their header. Also clarify error
1513 (lookup_dwo_id): New function. Returns the dwo id of the given
1515 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1516 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1518 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1519 (dwarf2_dwo_name): Get the dwo name if present.
1520 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1523 2019-09-09 Tom Tromey <tom@tromey.com>
1525 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1527 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1529 * python/python.c (do_start_initialization): Make progname_copy static,
1530 to avoid a leak report.
1532 2019-09-08 Tom Tromey <tom@tromey.com>
1534 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1536 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1538 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1539 Change type to gdb::optional<block_enum>.
1540 (dw2_symtab_iter_init): Change block_index parameter type
1541 to gdb::optional<block_enum>.
1542 (dw2_lookup_symbol): Change block_index parameter
1543 type to block_enum.c
1544 (dw2_debug_names_lookup_symbol): Likewise.
1545 * psymtab.c (psym_lookup_symbol): Likewise.
1546 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1547 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1550 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1552 * defs.h (relocate_gdb_directory): Change int to bool in
1553 signature and rename flag to relocatable.
1554 * main.c (relocate_path): Likewise.
1555 (relocate_gdb_directory): Likewise.
1557 2019-09-06 Alan Modra <amodra@gmail.com>
1559 * coffread.c (coff_symfile_read): Constify filename variable.
1560 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1561 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1562 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1563 * solib.c (reload_shared_libraries_1): Likewise.
1564 * symfile.c (reread_symbols): Likewise.
1565 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1566 * solib-darwin.c (darwin_bfd_open): Likewise.
1567 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1569 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1571 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1572 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1574 2019-09-03 Tom Tromey <tromey@adacore.com>
1576 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1578 (has_negatives): Unbias a range type bound.
1579 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1580 * gdbtypes.c (operator==): Handle new field.
1581 (create_range_type): Add "bias" parameter.
1582 (create_static_range_type, resolve_dynamic_range): Update.
1583 * gdbtypes.h (struct range_bounds) <bias>: New member.
1584 (create_range_type): Add bias parameter.
1585 * printcmd.c (print_scalar_formatted): Unbias range types.
1586 * value.c (unpack_long): Unbias range types.
1587 (pack_long): Bias range types.
1589 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1591 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1594 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1596 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1597 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1598 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1599 (compile_probe_arg): Likewise.
1600 * probe.h (get_argument_count): Likewise.
1601 * solib-svr4.c (solib_event_probe_action): Likewise.
1602 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1604 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1606 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1608 (svr4_create_solib_event_breakpoints): ...from here.
1610 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1612 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1613 suffix from warning message.
1615 2019-08-30 Tom Tromey <tom@tromey.com>
1617 * tui/tui-winsource.h (struct tui_source_window_base)
1618 <refresh_all>: Don't declare.
1619 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1621 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1622 tui_show_locator_content.
1623 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1625 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1626 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1629 2019-08-30 Tom Tromey <tom@tromey.com>
1631 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1633 2019-08-30 Tom Tromey <tom@tromey.com>
1635 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1636 Remove unnecessary forward declarations.
1638 2019-08-30 Tom Tromey <tom@tromey.com>
1640 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1642 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1643 tui_show_locator_content.
1645 2019-08-30 Tom Tromey <tom@tromey.com>
1647 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1648 (tui_locator_window::rerender): Rewrite using body of previous
1649 tui_show_locator_content.
1651 2019-08-30 Tom Tromey <tom@tromey.com>
1653 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1654 set_locator_fullname>: New methods.
1655 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1656 Rename from tui_set_locator_fullname.
1657 (tui_locator_window::set_locator_info): Rename from
1658 tui_set_locator_info. Return bool.
1659 (tui_update_locator_fullname, tui_show_frame_info): Update.
1661 2019-08-30 Tom Tromey <tom@tromey.com>
1663 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1665 2019-08-30 Tom Tromey <tom@tromey.com>
1667 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1670 2019-08-30 Tom Tromey <tom@tromey.com>
1672 * tui/tui-wingeneral.c (box_win): Assume win_info and
1673 win_info->handle cannot be NULL.
1675 2019-08-30 Tom Tromey <tom@tromey.com>
1677 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1678 refresh_window>: Declare.
1679 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1681 (tui_data_item_window::rerender): Rename from
1682 tui_display_register.
1683 (tui_data_item_window::refresh_window): New method.
1684 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1687 2019-08-30 Tom Tromey <tom@tromey.com>
1689 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1690 regs_column_count, current_group>: Move later. Now private.
1691 <get_current_group>: New method.
1692 * tui/tui-regs.c (tui_reg_command): Update.
1693 * tui/tui-layout.c (tui_set_layout): Update.
1695 2019-08-30 Tom Tromey <tom@tromey.com>
1697 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1698 (tui_data_window::rerender): Don't call
1699 check_and_display_highlight_if_needed.
1700 (tui_data_window::refresh_all): Remove call to
1703 2019-08-30 Tom Tromey <tom@tromey.com>
1705 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1706 (tui_data_window::display_registers_from)
1707 (tui_data_window::display_reg_element_at_line)
1708 (tui_data_window::display_registers_from_line): Remove checks of
1711 2019-08-30 Tom Tromey <tom@tromey.com>
1713 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1715 * tui/tui-regs.c (tui_data_window::show_registers): Call
1717 (tui_data_window::rerender): Rename from display_all_data.
1718 (tui_data_window::rerender): Remove old implementation.
1720 2019-08-30 Tom Tromey <tom@tromey.com>
1722 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1724 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1726 2019-08-29 Bernhard Wodok <barto@gmx.net>
1727 Sergio Durigan Junior <sergiodj@redhat.com>
1730 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1732 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1734 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1735 when searching for types.
1737 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1739 * f-lang.c (f_language_defn): Use f_print_typedef.
1740 * f-lang.h (f_print_typedef): Declare.
1741 * f-typeprint.c (f_print_typedef): Define.
1743 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1745 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1747 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1749 * cli/cli-utils.c (info_print_options_defs): Delete.
1750 (make_info_print_options_def_group): Delete.
1751 (extract_info_print_options): Delete.
1752 (info_print_command_completer): Delete.
1753 (info_print_args_help): Add extra parameter, and optionally
1754 include text about -n flag.
1755 * cli/cli-utils.h (struct info_print_options): Delete.
1756 (extract_info_print_options): Delete declaration.
1757 (info_print_command_completer): Delete declaration.
1758 (info_print_args_help): Add extra parameter, extend header
1760 * python/python.c (gdbpy_rbreak): Pass additional parameter to
1762 * stack.c (struct info_print_options): New type.
1763 (info_print_options_defs): New file scoped variable.
1764 (make_info_print_options_def_group): New static function.
1765 (info_print_command_completer): New static function.
1766 (info_locals_command): Update to use new local functions.
1767 (info_args_command): Likewise.
1768 (_initialize_stack): Add extra parameter to calls to
1769 info_print_args_help.
1770 * symtab.c (search_symbols): Add extra parameter, use this to
1771 possibly excluse non-debug symbols.
1772 (symtab_symbol_info): Add extra parameter, which is passed on to
1774 (struct info_print_options): New type.
1775 (info_print_options_defs): New file scoped variable.
1776 (make_info_print_options_def_group): New static function.
1777 (info_print_command_completer): New static function.
1778 (info_variables_command): Update to use local functions, and pass
1779 extra parameter through to symtab_symbol_info.
1780 (info_functions_command): Likewise.
1781 (info_types_command): Pass additional argument through to
1783 (rbreak_command): Pass extra argument to search_symbols.
1784 (_initialize_symtab): Add extra arguments for calls to
1785 info_print_args_help, and update help text for 'info variables',
1786 'whereis', and 'info functions' commands.
1787 * symtab.h (search_symbols): Add extra argument to declaration.
1788 * NEWS: Mention new flags.
1790 2019-08-26 Christian Biesinger <cbiesinger@google.com>
1792 * symtab.c (lookup_static_symbol): Call the new function (and move
1793 it down to be next to lookup_global_symbol).
1794 (struct global_sym_lookup_data): Add block_enum member and rename to...
1795 (struct global_or_static_sym_lookup_data): ...this.
1796 (lookup_symbol_global_iterator_cb): Pass block_index instead of
1797 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
1798 (lookup_symbol_global_or_static_iterator_cb): ...this.
1799 (lookup_global_or_static_symbol): New function.
1800 (lookup_global_symbol): Call new function.
1802 2019-08-26 Tom de Vries <tdevries@suse.de>
1805 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
1806 when pc_probe.prob == NULL.
1808 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1810 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
1811 variable symbol_linkage to symbol_linkage_.
1813 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
1815 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
1816 represent whether the symbol is static, dynamic, or we don't
1819 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
1821 * gdb/rx-tdep.c (rx_register_names): New.
1822 (rx_register_name): Delete.
1823 (rx_psw_type): Delete.
1824 (rx_fpsw_type): Delete.
1825 (rx_register_type): Delete.
1826 (rx_gdbarch_init): Convert target-descriptions.
1827 (_initialize_rx_tdep): Add initialize_tdesc_rx.
1828 * gdb/features/Makefile: Add rx.xml.
1829 * gdb/features/rx.xml: New.
1830 * gdb/features/rx.c: Generated.
1831 * gdb/NEWS: Mention target description support.
1833 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1835 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
1838 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1840 * configure.ac: Don't check for 'dlfcn.h' (moved to
1841 gdbsupport/common.m4).
1842 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
1844 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
1845 * compile/compile-c-support.c: Include
1846 'gdbsupport/gdb-dlfcn.h'.
1847 * gdbsupport/common.m4: Check for 'dlfcn.h'.
1848 * gdb-dlfcn.c: Move to...
1849 * gdbsupport/gdb-dlfcn.c: ... here.
1850 * gdb-dlfcn.h: Move to...
1851 * gdbsupport/gdb-dlfcn.h: ... here.
1853 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
1855 * nios2-tdep.c (struct reg_value): Improve comments. Make
1856 the offset field signed.
1858 2019-08-22 Christian Biesinger <cbiesinger@google.com>
1860 * python/lib/gdb/__init__.py (_execute_file): New function.
1861 * python/python.c (python_run_simple_file): Call gdb._execute_file
1864 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
1866 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
1867 all uses as this was never set to anything but a zero value.
1869 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
1871 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
1873 2019-08-21 Christian Biesinger <cbiesinger@google.com>
1875 * tui/tui-data.h (tui_gen_win_info): Add an =default
1876 move constructor, required by some GCC versions.
1878 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
1880 * go32-nat.c (go32_sysinfo): Add hygon_p.
1882 2019-08-20 Tom Tromey <tom@tromey.com>
1884 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
1885 line_from_reg_element_no, first_reg_element_no_inline,
1886 display_all_data, delete_data_content_windows,
1887 erase_data_content>: Now private.
1889 2019-08-20 Tom Tromey <tom@tromey.com>
1891 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
1892 (tui_unhighlight_win, tui_highlight_win)
1893 (tui_win_info::make_window): Update.
1894 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
1896 2019-08-20 Tom Tromey <tom@tromey.com>
1898 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1899 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1900 (MAX_PID_WIDTH): Move to tui-stack.c.
1901 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
1902 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
1903 (MAX_PID_WIDTH): Move from tui-data.h.
1905 2019-08-20 Tom Tromey <tom@tromey.com>
1907 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
1908 * tui/tui-wingeneral.c (box_win): Change type of win_info.
1910 (tui_gen_win_info::make_window): Rename from tui_make_window.
1911 (tui_win_info::make_window): New method.
1912 (tui_gen_win_info::make_visible): Update.
1913 * tui/tui-source.c (tui_source_window::set_contents): Update.
1914 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1915 (tui_data_window::display_registers_from): Update.
1916 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1917 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
1921 (struct tui_win_info) <make_window>: Declare.
1922 <can_box>: Now virtual.
1923 <title>: New member.
1924 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
1925 * tui/tui-command.c (tui_cmd_window::resize): Update.
1927 2019-08-20 Tom Tromey <tom@tromey.com>
1929 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
1930 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1931 (tui_data_window::check_register_values): Update.
1933 2019-08-20 Tom Tromey <tom@tromey.com>
1935 * tui/tui-regs.h (struct tui_data_window): Use
1936 DISABLE_COPY_AND_ASSIGN.
1937 <regs_content>: Change type, removing unique_ptr.
1938 <tui_data_window>: Add move constructor.
1939 * tui/tui-regs.c (tui_data_window::show_registers)
1940 (tui_data_window::show_register_group)
1941 (tui_data_window::display_registers_from)
1942 (tui_data_window::display_registers_from)
1943 (tui_data_window::first_data_item_displayed)
1944 (tui_data_window::delete_data_content_windows)
1945 (tui_data_window::rerender, tui_data_window::refresh_window)
1946 (tui_data_window::check_register_values): Update.
1948 2019-08-20 Tom Tromey <tom@tromey.com>
1950 * tui/tui-regs.h (struct tui_data_window) <show_registers,
1951 show_register_group>: Declare.
1952 (tui_show_register_group): Don't declare.
1953 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
1955 (tui_data_window::show_register_group): Rename from
1956 tui_show_register_group.
1957 (tui_data_window::check_register_values, tui_reg_command):
1959 * tui/tui-layout.c (tui_set_layout): Update.
1961 2019-08-20 Tom Tromey <tom@tromey.com>
1963 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
1965 (tui_check_register_values): Don't declare.
1966 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
1967 from tui_check_register_values.
1968 * tui/tui-hooks.c (tui_register_changed): Update.
1970 2019-08-20 Tom Tromey <tom@tromey.com>
1972 * tui/tui-regs.c (tui_reg_layout): Move later.
1973 (tui_show_registers): Don't enable TUI mode or change layout.
1975 2019-08-20 Tom Tromey <tom@tromey.com>
1977 * tui/tui-regs.h (struct tui_data_item_window)
1978 <~tui_data_item_window>: Remove.
1979 <content>: Now a unique_xmalloc_ptr.
1980 * tui/tui-regs.c (tui_register_format): Return a
1982 (tui_get_register): Update.
1983 (~tui_data_item_window): Remove.
1984 (tui_data_window::display_registers_from, tui_display_register):
1986 * tui/tui-io.h (tui_expand_tabs): Update.
1987 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
1988 Remove "col" parameter.
1990 2019-08-20 Tom Tromey <tom@tromey.com>
1992 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
1994 * tui/tui-regs.c (~tui_data_item_window): Update.
1996 2019-08-20 Tom Tromey <tom@tromey.com>
1998 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2001 2019-08-20 Tom Tromey <tom@tromey.com>
2003 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2005 2019-08-20 Tom Tromey <tom@tromey.com>
2007 * tui/tui-source.h (struct tui_source_window): Update.
2008 * tui/tui-regs.c (tui_show_registers): Update.
2009 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2010 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2011 (NO_REGS_STRING): Remove defines.
2013 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2015 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2016 unnecessary thread walk if remote doesn't support the packet.
2018 2019-08-19 Tom Tromey <tromey@adacore.com>
2020 * python/py-value.c (value_has_field): Fix indentation.
2022 2019-08-19 Tom Tromey <tromey@adacore.com>
2024 * printcmd.c (do_one_display, info_display_command): Update.
2025 * block.h (contained_in): Return bool. Add allow_nested
2027 * block.c (contained_in): Return bool. Add allow_nested
2030 2019-08-19 Tom Tromey <tom@tromey.com>
2032 * configure: Rebuild.
2033 * configure.ac: Disallow the combination of -static-libstdc++ and
2035 * source-cache.c (get_language_name): Handle rust.
2036 (source_cache::get_source_lines): Ignore highlighting exceptions.
2038 2019-08-16 Tom Tromey <tom@tromey.com>
2040 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2041 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2042 (struct tui_source_window_base) <make_visible, refresh_window,
2043 resize>: Remove methods.
2044 <execution_info>: Remove field.
2045 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2046 (tui_show_source_line, tui_source_window_base)
2047 (~tui_source_window_base): Update.
2048 (tui_source_window_base::resize)
2049 (tui_source_window_base::make_visible)
2050 (tui_source_window_base::refresh_window): Remove.
2051 (tui_source_window_base::update_exec_info): Update.
2052 * tui/tui-source.c (tui_source_window::set_contents): Update.
2053 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2055 2019-08-16 Tom Tromey <tom@tromey.com>
2057 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2058 deprecated_query_hook.
2060 2019-08-16 Tom Tromey <tom@tromey.com>
2062 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2063 (tui_update_source_windows_with_line): Update.
2064 * tui/tui-source.h (struct tui_source_window)
2065 <show_symtab_source>: Declare.
2066 (tui_show_symtab_source): Don't declare.
2067 * tui/tui-source.c (tui_show_symtab_source): Rename from
2068 tui_show_symtab_source.
2070 2019-08-16 Tom Tromey <tom@tromey.com>
2072 * tui/tui-winsource.h (struct tui_source_window_base)
2073 <set_contents>: Declare.
2074 * tui/tui-winsource.c
2075 (tui_source_window_base::update_source_window_as_is): Update.
2076 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2078 (tui_set_source_content): Don't declare.
2079 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2080 tui_set_source_content.
2081 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2083 (tui_set_disassem_content): Don't declare.
2084 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2085 tui_set_disassem_content.
2087 2019-08-16 Tom Tromey <tom@tromey.com>
2089 * tui/tui-winsource.h (struct tui_source_window_base)
2090 <update_breakpoint_info>: Declare.
2091 (tui_update_breakpoint_info): Don't declare.
2092 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2093 (tui_update_all_breakpoint_info): Update.
2094 (tui_source_window_base::update_breakpoint_info): Rename from
2095 tui_update_breakpoint_info.
2096 (tui_source_window_base::update_exec_info): Update.
2098 2019-08-16 Tom Tromey <tom@tromey.com>
2100 * tui/tui-winsource.h (struct tui_source_window_base)
2101 <update_source_window>: Declare.
2102 (tui_update_source_window): Don't declare.
2103 * tui/tui-winsource.c
2104 (tui_source_window_base::update_source_window): Rename from
2105 tui_update_source_window.
2106 (tui_source_window_base::rerender): Update.
2107 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2108 * tui/tui-disasm.c (tui_show_disassem)
2109 (tui_show_disassem_and_update_source)
2110 (tui_disasm_window::maybe_update): Update.
2112 2019-08-16 Tom Tromey <tom@tromey.com>
2114 * tui/tui-winsource.h (struct tui_source_window_base)
2115 <update_source_window_as_is>: Declare.
2116 (tui_update_source_window_as_is): Don't declare.
2117 * tui/tui-winsource.c (tui_update_source_window): Update
2118 (tui_source_window_base::update_source_window_as_is): Rename from
2119 tui_update_source_window_as_is.
2120 (tui_source_window_base::refill): Update.
2121 * tui/tui-source.c (tui_show_symtab_source): Update.
2122 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2125 2019-08-16 Tom Tromey <tom@tromey.com>
2127 * tui/tui-winsource.h (tui_update_source_window)
2128 (tui_update_source_window_as_is): Remove "noerror" parameter.
2129 * tui/tui-winsource.c (tui_update_source_window)
2130 (tui_update_source_window_as_is): Remove "noerror" parameter.
2131 (tui_update_source_windows_with_addr)
2132 (tui_update_source_windows_with_line)
2133 (tui_source_window_base::rerender)
2134 (tui_source_window_base::refill): Update.
2135 * tui/tui-source.h (tui_set_source_content)
2136 (tui_show_symtab_source): Remove "noerror" parameter.
2137 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2139 (tui_show_symtab_source): Likewise.
2140 (tui_source_window::maybe_update): Update.
2141 * tui/tui-disasm.c (tui_show_disassem)
2142 (tui_show_disassem_and_update_source)
2143 (tui_disasm_window::do_scroll_vertical)
2144 (tui_disasm_window::maybe_update): Update.
2146 2019-08-16 Tom Tromey <tom@tromey.com>
2148 * tui/tui.c (tui_is_window_visible): Update.
2149 * tui/tui-wingeneral.c (tui_make_window)
2150 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2151 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2152 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2153 (tui_set_win_height_command, parse_scrolling_args): Update.
2154 * tui/tui-source.c (tui_source_window::style_changed): Update.
2155 * tui/tui-regs.c (tui_show_registers)
2156 (tui_data_window::first_data_item_displayed)
2157 (tui_data_window::delete_data_content_windows)
2158 (tui_check_register_values, tui_reg_command): Update.
2159 * tui/tui-disasm.c (tui_show_disassem): Update.
2160 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2162 <is_visible>: Remove field.
2163 * tui/tui-data.c (tui_next_win, tui_prev_win)
2164 (tui_delete_invisible_windows): Update.
2166 2019-08-16 Tom Tromey <tom@tromey.com>
2168 * tui/tui-winsource.h (struct tui_source_window_base)
2169 <m_has_locator>: Remove.
2170 * tui/tui-layout.c (show_source_disasm_command, show_data)
2171 (show_source_or_disasm_and_command): Update.
2173 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2175 * NEWS (Other MI changes): New subsection.
2176 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2177 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2178 * arch-utils.c (default_get_pc_address_flags): New function.
2179 * arch-utils.h (default_get_pc_address_flags): New declaration.
2180 * gdbarch.sh: Add get_pc_address_flags.
2181 * gdbarch.c: Regenerate.
2182 * gdbarch.h: Likewise.
2183 * stack.c (print_pc): New function.
2184 (print_frame_info) (print_frame): Call print_pc.
2186 2019-08-16 Tom de Vries <tdevries@suse.de>
2188 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2189 print_objfile_section_info.
2191 2019-08-15 Tom Tromey <tom@tromey.com>
2193 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2194 calling update_cmdwin_start_line.
2195 * tui/tui-winsource.h (struct tui_source_window_base)
2196 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2197 <rerender>: Declare.
2198 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2200 (tui_source_window_base::set_new_height): Remove.
2201 (tui_source_window_base::rerender): Rename from
2202 do_make_visible_with_new_height.
2203 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2205 (tui_win_info::make_invisible_and_set_new_height)
2206 (tui_win_info::make_visible_with_new_height): Remove.
2207 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2209 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2210 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2211 do_make_visible_with_new_height>: Don't declare.
2212 <rerender>: Declare.
2213 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2215 (tui_data_window::do_make_visible_with_new_height): Remove.
2216 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2217 call tui_show_locator_content.
2218 (tui_gen_win_info::resize): Call rerender.
2219 (show_source_or_disasm_and_command): Don't call
2220 tui_show_locator_content.
2221 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2223 (struct tui_win_info) <rerender>: Declare.
2224 <set_new_height, make_invisible_and_set_new_height,
2225 make_visible_with_new_height>: Don't declare.
2226 * tui/tui-data.c (tui_win_list::rerender): New method.
2227 * tui/tui-command.h (struct tui_cmd_window)
2228 <do_make_visible_with_new_height>: Don't declare.
2230 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2232 2019-08-15 Tom Tromey <tromey@adacore.com>
2234 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2235 * ada-lang.c (ada_enum_name): Likewise.
2237 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2239 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2241 (GdbOutputErrorFile): Likewise.
2242 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2244 (execute_unwinders): Rename to have a leading underscore.
2245 (auto_load_packages): Likewise.
2246 (global scope): Adjust call to auto_load_packages accordingly.
2247 (GdbSetPythonDirectory): Likewise.
2248 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2249 instead of execute_unwinders.
2251 2019-08-15 Tom Tromey <tom@tromey.com>
2253 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2254 (show_data): Don't change window visibility.
2255 (tui_gen_win_info::resize): Remove special case for command
2256 window. Use wresize, when available.
2257 (show_source_or_disasm_and_command): Don't change window
2259 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2260 <make_visible>: New method.
2261 * tui/tui-command.c (tui_cmd_window::resize): New method.
2263 2019-08-15 Tom Tromey <tom@tromey.com>
2265 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2266 (struct tui_source_windows): New.
2267 * tui/tui-winsource.c (tui_display_main): Update.
2268 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2269 (new_height_ok, parse_scrolling_args): Update.
2270 * tui/tui-layout.c (show_layout, show_data): Update.
2271 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2272 (tui_add_to_source_windows): Don't declare.
2273 * tui/tui-data.c (source_windows, tui_source_windows)
2274 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2276 2019-08-15 Tom Tromey <tom@tromey.com>
2278 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2280 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2281 * tui/tui-layout.c (show_source_disasm_command, show_data):
2283 (tui_gen_win_info::resize): Rename.
2284 (show_source_or_disasm_and_command): Update.
2285 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2288 2019-08-15 Tom Tromey <tom@tromey.com>
2290 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2291 * tui/tui-interp.c (tui_interp::init): Don't call
2292 tui_initialize_static_data.
2293 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2295 2019-08-15 Tom Tromey <tom@tromey.com>
2297 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2298 examine tui_win_list.
2300 2019-08-15 Tom Tromey <tom@tromey.com>
2302 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2303 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2304 tui_clear_source_content.
2305 (tui_clear_source_content): Remove.
2306 (tui_source_window_base::do_erase_source_content): Hoist call to
2308 * tui/tui-stack.c (tui_show_frame_info): Don't call
2309 tui_clear_source_content.
2311 2019-08-15 Tom Tromey <tom@tromey.com>
2313 * tui/tui-winsource.h (struct tui_source_window_base)
2314 <do_erase_source_content>: New method.
2315 <erase_source_content>: New method.
2316 (tui_erase_source_content): Don't declare.
2317 * tui/tui-winsource.c (tui_clear_source_content): Update.
2318 (tui_source_window_base::do_erase_source_content): Rename from
2319 tui_erase_source_content.
2320 (tui_source_window_base::show_source_content): Update.
2321 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2322 * tui/tui-source.h (struct tui_source_window)
2323 <erase_source_content>: New method.
2324 * tui/tui-disasm.h (struct tui_disasm_window)
2325 <erase_source_content>: New method.
2327 2019-08-15 Tom Tromey <tom@tromey.com>
2329 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2330 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2332 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2333 * tui/tui-source.c (tui_set_source_content): Update.
2334 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2336 2019-08-15 Tom Tromey <tom@tromey.com>
2338 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2339 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2341 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2343 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2345 (tui_source_window::maybe_update): Update.
2347 2019-08-15 Tom Tromey <tom@tromey.com>
2349 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2350 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2352 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2354 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2356 (tui_disasm_window::maybe_update): Update.
2358 2019-08-15 Tom Tromey <tom@tromey.com>
2360 * tui/tui-winsource.h (struct tui_source_window_base)
2361 <maybe_update>: Declare.
2362 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2364 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2366 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2367 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2369 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2371 2019-08-15 Tom Tromey <tom@tromey.com>
2373 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2375 2019-08-15 Tom Tromey <tom@tromey.com>
2377 * tui/tui-wingeneral.c: Include tui-stack.h.
2378 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2379 (struct tui_locator_window): Move from tui-data.h.
2380 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2381 (tui_initialize_static_data): Move from tui-data.c.
2382 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2383 (struct tui_locator_window): Move to tui-stack.c.
2384 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2385 (tui_initialize_static_data): Move to tui-stack.c.
2387 2019-08-15 Tom Tromey <tom@tromey.com>
2389 * tui/tui-layout.c (show_source_disasm_command)
2390 (show_source_or_disasm_and_command): Use make_visible method, not
2392 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2395 2019-08-15 Tom Tromey <tom@tromey.com>
2397 * tui/tui-wingeneral.h (tui_make_window): Update.
2398 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2400 (tui_gen_win_info::make_visible): Update.
2401 * tui/tui-regs.c (tui_data_window::display_registers_from):
2403 * tui/tui-layout.c (show_source_disasm_command)
2404 (show_source_or_disasm_and_command): Update.
2405 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2406 (enum tui_box): Remove.
2407 (struct tui_win_info) <can_box>: New method.
2408 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2411 2019-08-15 Tom de Vries <tdevries@suse.de>
2413 * linux-nat-trad.c: Include gdbarch.h.
2415 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2417 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2420 2019-08-14 Tom Tromey <tromey@adacore.com>
2422 * darwin-nat.c: Include gdbarch.h.
2423 * darwin-nat-info.c: Include gdbarch.h.
2425 2019-08-13 Tom Tromey <tom@tromey.com>
2427 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2429 * tui/tui-data.c (tui_initialize_static_data): Update.
2431 2019-08-13 Tom Tromey <tom@tromey.com>
2433 * tui/tui-winsource.h (struct tui_exec_info_window)
2434 <~tui_exec_info_window, maybe_allocate_content, get_content,
2436 (struct tui_source_window_base) <set_exec_info_content,
2437 show_exec_info_content>: Don't declare.
2438 * tui/tui-winsource.c
2439 (tui_exec_info_window::maybe_allocate_content): Remove.
2440 (tui_source_window_base::update_exec_info): Rename from
2441 set_exec_info_content.
2442 (tui_source_window_base::show_exec_info_content)
2443 (tui_source_window_base::update_exec_info): Remove.
2445 2019-08-13 Tom Tromey <tom@tromey.com>
2447 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2449 * tui/tui-winsource.c (tui_update_source_window_as_is)
2450 (tui_update_source_windows_with_addr, tui_erase_source_content):
2452 (tui_clear_exec_info_content): Remove.
2454 2019-08-13 Tom Tromey <tom@tromey.com>
2456 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2458 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2459 call tui_erase_exec_info_content.
2460 (tui_clear_exec_info_content): Rename from
2461 tui_erase_exec_info_content.
2462 (tui_clear_exec_info_content): Delete.
2464 2019-08-13 Tom Tromey <tom@tromey.com>
2466 * tui/tui-winsource.h (struct tui_source_window_base)
2467 <show_exec_info_content>: Declare.
2468 (tui_show_exec_info_content): Don't declare.
2469 * tui/tui-winsource.c
2470 (tui_source_window_base::show_exec_info_content): Rename from
2471 tui_show_exec_info_content.
2472 (tui_source_window_base::update_exec_info): Update.
2474 2019-08-13 Tom Tromey <tom@tromey.com>
2476 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2477 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2478 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2479 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2480 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2481 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2484 2019-08-13 Tom Tromey <tom@tromey.com>
2486 * tui/tui-winsource.h (struct tui_source_window_base)
2487 <update_exec_info>: Declare.
2488 (tui_update_exec_info): Don't declare.
2489 * tui/tui-winsource.c (tui_update_source_window_as_is)
2490 (tui_source_window_base::refresh_all)
2491 (tui_update_all_breakpoint_info): Update.
2492 (tui_source_window_base::update_exec_info): Rename from
2493 tui_update_exec_info.
2494 * tui/tui-stack.c (tui_show_frame_info): Update.
2496 2019-08-13 Tom Tromey <tom@tromey.com>
2498 * tui/tui-winsource.h (struct tui_source_window_base)
2499 <set_exec_info_content>: Declare.
2500 (tui_set_exec_info_content): Don't declare.
2501 * tui/tui-winsource.c
2502 (tui_source_window_base::set_exec_info_content): Rename from
2503 tui_set_exec_info_content.
2504 (tui_update_exec_info): Update.
2506 2019-08-13 Tom Tromey <tom@tromey.com>
2508 * tui/tui-winsource.h (struct tui_source_window_base)
2509 <show_source_content>: Declare.
2510 (tui_show_source_content): Don't declare.
2511 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2512 (tui_source_window_base::show_source_content): Rename from
2513 tui_show_source_content.
2514 (tui_source_window_base::refresh_all): Update.
2515 * tui/tui-layout.c (show_source_disasm_command)
2516 (show_source_or_disasm_and_command): Update.
2518 2019-08-13 Tom Tromey <tom@tromey.com>
2520 * tui/tui-winsource.c (tui_erase_source_content)
2521 (tui_show_source_content, tui_source_window_base::refresh_all):
2523 * tui/tui-wingeneral.h
2524 (tui_check_and_display_highlight_if_needed): Don't declare.
2525 * tui/tui-wingeneral.c
2526 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2527 check_and_display_highlight_if_needed.
2528 * tui/tui-win.c (tui_rehighlight_all)
2529 (tui_win_info::make_visible_with_new_height): Update.
2530 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2531 (tui_data_window::erase_data_content)
2532 (tui_data_window::display_all_data): Update.
2533 * tui/tui-data.h (struct tui_win_info)
2534 <check_and_display_highlight_if_needed>: Declare.
2536 2019-08-13 Tom Tromey <tom@tromey.com>
2538 * tui/tui-win.c (tui_resize_all): Call
2539 tui_delete_invisible_windows.
2540 * tui/tui-layout.c (show_layout): Call
2541 tui_delete_invisible_windows.
2542 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2543 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2545 2019-08-13 Tom Tromey <tom@tromey.com>
2547 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2548 tui_add_win_to_layout.
2550 2019-08-13 Tom Tromey <tom@tromey.com>
2552 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2553 * tui/tui-layout.c (tui_default_win_height): Now static.
2555 2019-08-13 Tom Tromey <tom@tromey.com>
2557 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2559 (show_source_disasm_command, show_source_or_disasm_and_command):
2560 Don't check current layout.
2562 2019-08-13 Tom Tromey <tom@tromey.com>
2564 * tui/tui-wingeneral.c (make_all_visible): Remove.
2565 (tui_make_all_invisible): Simplify.
2566 * tui/tui-layout.c (tui_make_all_invisible): Move from
2567 tui-wingeneral.c; simplify.
2568 (show_layout): Hoist call to tui_make_all_invisible.
2569 (show_data): Don't call tui_make_all_invisible.
2571 2019-08-13 Tom Tromey <tom@tromey.com>
2573 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2574 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2576 2019-08-13 Tom Tromey <tom@tromey.com>
2578 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2580 (show_source_disasm_command, show_data)
2581 (show_source_or_disasm_and_command): Don't use
2582 tui_set_current_layout_to.
2583 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2584 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2586 (tui_set_current_layout_to): Remove.
2588 2019-08-13 Tom Tromey <tom@tromey.com>
2590 * tui/tui-layout.c (tui_set_layout): Update.
2591 * tui/tui-data.h (struct tui_layout_def): Remove.
2592 (tui_layout_def): Don't declare.
2593 * tui/tui-data.c (layout_def): Remove.
2594 (tui_layout_def): Remove.
2596 2019-08-13 Tom Tromey <tom@tromey.com>
2598 * tui/tui-winsource.h (struct tui_source_window_base)
2599 <clear_detail>: No longer "override".
2600 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2601 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2602 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2603 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2605 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2607 2019-08-13 Tom Tromey <tromey@adacore.com>
2609 * tracepoint.c: Don't include readline.h or history.h.
2611 2019-08-12 Tom Tromey <tom@tromey.com>
2613 * configure: Rebuild.
2614 * configure.ac: Check for readline 7.
2615 * NEWS: Mention readline 7 requirement.
2618 2019-08-12 Tom Tromey <tom@tromey.com>
2620 * mingw-hdep.c (gdb_select): Remove readline hack.
2622 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2624 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2625 when the function fails.
2627 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2629 * s390-tdep.c (s390_type_align): New function.
2630 (s390_gdbarch_init): Set it as type_align gdbarch method.
2632 2019-08-09 Tom de Vries <tdevries@suse.de>
2635 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2636 pc_low with relocation offset.
2638 2019-08-07 Tom Tromey <tromey@adacore.com>
2640 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2641 (print_frame_args): Update.
2642 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2644 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2645 * frame.h (struct frame_arg): Add initializers.
2646 <error>: Now a unique_xmalloc_ptr.
2648 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2650 * NEWS: Expand the Pointer Authentication entry.
2651 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2652 (aarch64_frame_unmask_lr): ... to this.
2653 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2654 Call aarch64_frame_unmask_lr.
2655 * frame.c (struct frame_info): Add "masked" variable.
2656 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2657 (fprint_frame): Check for masked pc.
2658 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2660 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2661 * stack.c (print_frame): Check for masked pc.
2663 2019-08-06 Tom Tromey <tom@tromey.com>
2665 * stabsread.c (patch_block_stabs, read_one_struct_field)
2666 (read_enum_type): Use obstack_strndup.
2667 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2668 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2669 * dwarf2read.c (guess_full_die_structure_name)
2670 (anonymous_struct_prefix): Use obstack_strndup.
2671 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2672 * c-exp.y (yylex): Use obstack_strndup.
2673 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2674 (write_var_or_type): Use obstack_strndup.
2676 2019-08-06 Tom Tromey <tom@tromey.com>
2678 * symfile.c (reread_symbols): Use obstack_strdup.
2679 * stabsread.c (read_type): Use obstack_strdup.
2680 * gdb_obstack.h (obstack_strdup): New overload.
2681 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2682 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2683 (dwarf2_canonicalize_name): Use obstack_strdup.
2684 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2685 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2688 2019-08-06 Tom Tromey <tom@tromey.com>
2690 * gdb_obstack.h (obstack_strdup): Define.
2691 * gdb_obstack.c (obstack_strdup): Don't define.
2693 2019-08-06 Tom Tromey <tom@tromey.com>
2695 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2697 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2699 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2700 * stabsread.c (common_block_start): Use obstack_strdup.
2701 * objfiles.c (set_objfile_main_name, objfile): Use
2703 * namespace.c (add_using_directive): Use obstack_strdup.
2704 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2705 * jit.c (finalize_symtab): Use obstack_strdup.
2706 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2707 (guess_partial_die_structure_name, partial_die_info::fixup)
2708 (dwarf2_name): Use obstack_strdup.
2709 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2711 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2712 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2714 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2716 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2718 * unittests/help-doc-selftests.c: New file.
2719 * Makefile.in: Add the new file.
2721 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2723 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2724 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2725 the full first line, except when FOR_VALUE_PREFIX. In this case,
2726 the trailing '.' is not output, and the first character is uppercased.
2727 (print_help_for_command): Update call to print_doc_line.
2728 (print_doc_of_command): Likewise.
2729 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2730 * cli/cli-option.c (append_indented_doc): Do not append newline.
2731 (build_help_option): Append newline after first appended_indented_doc
2732 only if a second call is done.
2733 (build_help): Append 2 new lines before each option, except the first
2735 * compile/compile.c (_initialize_compile): Add new lines after
2736 %OPTIONS%, when not at the end of the help.
2737 Change help doc or code
2738 producing the help doc to respect the invariants.
2739 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2740 Also removed the new line after 'Options:', as all other commands
2741 do not put an empty line between 'Options:' and the first option.
2742 * printcmd.c (_initialize_printcmd): Likewise.
2743 * stack.c (_initialize_stack): Likewise.
2744 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2745 incorrectly telling COMMAND is optional.
2746 * ada-lang.c (_initialize_ada_language): Change help doc or code
2747 producing the help doc to respect the invariants.
2748 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2749 * breakpoint.c (_initialize_breakpoint): Likewise.
2750 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2751 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2752 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2753 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2754 _initialize_cli_style): Likewise.
2755 * corelow.c (core_target_info): Likewise.
2756 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2757 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
2758 * filesystem.c (_initialize_filesystem): Likewise.
2759 * frame.c (_initialize_frame): Likewise.
2760 * gnu-nat.c (add_task_commands): Likewise.
2761 * infcall.c (_initialize_infcall): Likewise.
2762 * infcmd.c (_initialize_infcmd): Likewise.
2763 * interps.c (_initialize_interpreter): Likewise.
2764 * language.c (_initialize_language): Likewise.
2765 * linux-fork.c (_initialize_linux_fork): Likewise.
2766 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
2767 * maint.c (_initialize_maint_cmds): Likewise.
2768 * memattr.c (_initialize_mem): Likewise.
2769 * printcmd.c (_initialize_printcmd): Likewise.
2770 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
2772 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
2773 * record-btrace.c (_initialize_record_btrace): Likewise.
2774 * record-full.c (_initialize_record_full): Likewise.
2775 * record.c (_initialize_record): Likewise.
2776 * regcache-dump.c (_initialize_regcache_dump): Likewise.
2777 * regcache.c (_initialize_regcache): Likewise.
2778 * remote.c (add_packet_config_cmd, init_remote_threadtests,
2779 _initialize_remote): Likewise.
2780 * ser-tcp.c (_initialize_ser_tcp): Likewise.
2781 * serial.c (_initialize_serial): Likewise.
2782 * skip.c (_initialize_step_skip): Likewise.
2783 * source.c (_initialize_source): Likewise.
2784 * stack.c (_initialize_stack): Likewise.
2785 * symfile.c (_initialize_symfile): Likewise.
2786 * symtab.c (_initialize_symtab): Likewise.
2787 * target-descriptions.c (_initialize_target_descriptions): Likewise.
2788 * top.c (init_main): Likewise.
2789 * tracefile-tfile.c (tfile_target_info): Likewise.
2790 * tracepoint.c (_initialize_tracepoint): Likewise.
2791 * tui/tui-win.c (_initialize_tui_win): Likewise.
2792 * utils.c (add_internal_problem_command): Likewise.
2793 * valprint.c (value_print_option_defs): Likewise.
2795 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2798 * configure.ac: Drop enable-libmcheck support.
2799 * configure, config.in: Rebuild.
2800 * libmcheck.m4: Remove.
2801 * acinclude.m4: Don't include it.
2802 * Makefile.in: Don't distribute it.
2803 * top.c (print_gdb_configuration): Don't mention it.
2805 2019-08-06 Tom Tromey <tom@tromey.com>
2807 * utils.c (set_output_style): Sometimes pass stream to
2809 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
2810 * record-btrace.c (btrace_insn_history): Update.
2811 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
2813 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
2814 Update initializers.
2815 <m_uiout>: New field.
2817 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2818 Remove "uiout" parameter.
2819 (dump_insns): Update.
2820 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
2821 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
2823 2019-08-06 Christian Biesinger <cbiesinger@google.com>
2825 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
2826 (error_in_psymtab_expansion): Likewise.
2827 (lookup_symbol_via_quick_fns): Likewise.
2828 (basic_lookup_transparent_type_quick): Likewise.
2829 (basic_lookup_transparent_type_1): Likewise.
2831 2019-08-06 Tom Tromey <tromey@adacore.com>
2833 * source.c (last_source_error): Now bool.
2834 (print_source_lines_base): Make "noprint" bool. Only open
2835 source file when last_source_visited changes.
2837 2019-08-06 Tom Tromey <tromey@adacore.com>
2839 * annotate.c (annotate_source_line): Use g_source_cache.
2840 * source-cache.c (source_cache::get_plain_source_lines): Change
2841 parameters. Populate m_offset_cache.
2842 (source_cache::ensure): New method.
2843 (source_cache::get_line_charpos): New method.
2844 (extract_lines): Move lower. Change parameters.
2845 (source_cache::get_source_lines): Move lower.
2846 * source-cache.h (class source_cache): Update comment.
2847 <get_line_charpos>: New method.
2848 <get_source_lines>: Update comment.
2849 <clear>: Clear m_offset_cache.
2850 <get_plain_source_lines>: Change parameters.
2851 <ensure>: New method
2852 <m_offset_cache>: New member.
2853 * source.c (forget_cached_source_info_for_objfile): Update.
2854 (info_source_command): Use g_source_cache.
2855 (find_source_lines, open_source_file_with_line_charpos): Remove.
2856 (print_source_lines_base, search_command_helper): Use g_source_cache.
2857 * source.h (open_source_file_with_line_charpos): Don't declare.
2858 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
2859 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
2862 2019-08-06 Tom Tromey <tromey@adacore.com>
2864 * source-cache.c (source_cache::get_plain_source_lines):
2865 Remove "first_line" and "last_line" parameters.
2866 (source_cache::get_source_lines): Cache plain text.
2867 * source-cache.h (class source_cache)
2868 <get_plain_source_lines>: Update.
2870 2019-08-06 Tom Tromey <tromey@adacore.com>
2872 * source-cache.c (extract_lines): No longer a method.
2873 Changed type of parameter. Include final newline.
2874 (selftests::extract_lines_test): New function.
2875 (_initialize_source_cache): Likewise.
2876 * source-cache.h (class source_cache)
2877 <extract_lines>: Don't declare.
2879 2019-08-06 Tom Tromey <tromey@adacore.com>
2881 * breakpoint.c (init_breakpoint_sal): Update.
2882 (breakpoint): Update.
2883 * breakpoint.h (struct breakpoint) <filter>: Now a
2886 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2888 * NEWS: Mention dictionary access on blocks.
2889 * python/py-block.c (blpy_getitem): New function.
2890 (block_object_as_mapping): New struct.
2891 (block_object_type): Use new struct for tp_as_mapping field.
2893 2019-08-05 Christian Biesinger <cbiesinger@google.com>
2895 * objfiles.h (objfile): Add a comment describing partial symbols.
2897 2019-08-05 Tom Tromey <tromey@adacore.com>
2899 * compile/compile.c (_initialize_compile): Use _(), not N_().
2900 * thread.c (_initialize_thread): Use _(), not N_().
2901 * stack.c (_initialize_stack): Use _(), not N_().
2902 * printcmd.c (_initialize_printcmd): Use _(), not N_().
2904 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2906 * dwarf2read.c (struct dw2_symtab_iterator):
2907 <want_specific_block>: Remove.
2908 <block_index>: Change type to gdb::optional.
2909 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
2910 change type of BLOCK_INDEX parameter to gdb::optional.
2911 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
2912 (dw2_lookup_symbol): Don't pass argument for
2913 WANT_SPECIFIC_BLOCK.
2914 (dw2_expand_symtabs_for_function): Don't pass argument for
2915 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
2916 (class dw2_debug_names_iterator)
2917 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
2918 parameter, change BLOCK_INDEX type to gdb::optional.
2919 <m_want_specific_block>: Remove.
2920 <m_block_index>: Change type to gdb::optional.
2921 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
2922 gdb::optional. Re-write in function of gdb::optional.
2923 (dw2_debug_names_lookup_symbol): Don't pass argument for
2924 WANT_SPECIFIC_BLOCK.
2925 (dw2_debug_names_expand_symtabs_for_function): Don't pass
2926 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
2929 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2931 * NEWS: Mention changes to "info sources" command.
2933 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2935 * symtab.c (filename_partial_match_opts): New struct type.
2936 (struct output_source_filename_data): New members
2937 regexp, c_regexp, partial_match.
2938 (output_source_filename): Use new members to decide to print file.
2939 (info_sources_option_defs): New variable.
2940 (make_info_sources_options_def_group, print_info_sources_header,
2941 info_sources_command_completer):
2943 (info_sources_command): Read new optional arguments.
2944 (_initialize_symtab): Update info sources help.
2946 2019-08-02 Alexandre Oliva <oliva@adacore.com>
2948 * ada-lang.c (exception_support_info_v0): Renamed from...
2949 (default_exception_support_info): ... this. Create new
2951 (ada_has_this_exception_support): Look up catch_handlers_sym.
2952 (ada_exception_support_info_sniffer): Try v0 after default.
2954 2019-08-01 Tom Tromey <tromey@adacore.com>
2956 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
2959 2019-08-01 Christian Biesinger <cbiesinger@google.com>
2961 * s12z-tdep.c: Fix include path for s12z-opc.h.
2963 2019-08-01 Alan Hayward <alan.hayward@arm.com>
2965 * NEWS: Require GNU make 3.82.
2967 2019-07-16 Tom Tromey <tom@tromey.com>
2969 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
2972 2019-07-30 Tom Tromey <tromey@adacore.com>
2974 * block.c (contained_in): Remove BLOCK_FUNCTION check.
2976 2019-07-30 Kevin Buettner <kevinb@redhat.com>
2978 * printcmd.c (print_address_symbolic): Print negative offsets.
2979 (build_address_symbolic): Force signed arithmetic when computing
2982 2019-07-30 Christian Biesinger <cbiesinger@google.com>
2984 PR/24474: Add a function to lookup static variables.
2985 * NEWS: Mention this new function.
2986 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
2987 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
2988 * python/python.c (python_GdbMethods): Add new function.
2990 2019-07-29 Christian Biesinger <cbiesinger@google.com>
2992 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
2993 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
2994 (objfpy_lookup_static_symbol): New function.
2995 (objfile_object_methods): Add new functions.
2997 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2999 * NEWS: Mention 'set|show print frame-info'. Mention new
3000 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3001 backtrace argument. Mention that python frame filtering code
3002 is now consistent with what 'backtrace' command prints.
3004 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3006 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3008 (print_frame_info_auto, print_frame_info_source_line,
3009 print_frame_info_location, print_frame_info_source_and_location,
3010 print_frame_info_location_and_address, print_frame_info_short_location):
3012 (struct frame_print_options): New member print_frame_info.
3013 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3014 * stack.h (get_user_print_what_frame_info): New declaration.
3015 (frame_show_address): New declaration.
3016 * stack.c (print_frame_arguments_choices): New value 'presence'.
3017 (print_frame_info_auto, print_frame_info_source_line,
3018 print_frame_info_location, print_frame_info_source_and_location,
3019 print_frame_info_location_and_address, print_frame_info_short_location,
3020 print_frame_info_choices, print_frame_info_print_what): New definitions.
3021 (print_frame_args): Only print dots for args if print frame-arguments
3023 (frame_print_option_defs): New element for "frame-info".
3024 (get_user_print_what_frame_info): New function.
3025 (frame_show_address): Make non static. Move comment to stack.h.
3026 (print_frame_info_to_print_what): New function.
3027 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3028 to decide what to print.
3029 (backtrace_command_1): Handle the new print_frame_arguments_presence
3031 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3032 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3033 (py_print_frame): In non-mi mode, use LOCATION as default for
3034 print_what, similarly to frame information printed directly by
3035 backtrace command. Handle frame-info user option in non MI mode.
3037 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3039 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3040 Add case for debugging 32-bit target on 64-bit host. Revise
3043 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3045 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3046 instead of find_function_entry_range_from_pc.
3048 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3050 * stack.c (find_frame_funname): Remove code which preferred
3051 minsym over symtab sym in "certain pathological cases".
3053 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3054 parameter. Change type of "do_demangle" to bool.
3055 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3056 Pass suitable "prefer_sym_over_minsym" flag to
3057 build_address_symbolic(). Don't output "+" for negative offsets.
3058 * printcmd.c (print_address_symbolic): Update invocation of
3059 build_address_symbolic to include a "prefer_sym_over_minsym"
3061 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3062 Restrict cases in which use of minimal symbol is preferred to that
3063 of a found symbol. Update comments.
3065 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3066 for entry pc when entry pc is out of range for that FDE.
3068 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3071 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3074 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3076 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3077 this function's Python signature.
3080 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3082 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3083 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3084 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3085 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3086 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3089 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3091 * h8300-tdep.c (h8300_register_name_common): New.
3092 h8300_register_name): Use h8300_register_name_common.
3093 (h8300s_register_name): Likewise.
3094 (h8300sx_register_name): Likewise.
3095 (h8300h_register_nam): New.
3096 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3099 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3101 * arm-tdep.c (arm_skip_cmse_entry): New function.
3102 (arm_is_sgstubs_section): New function.
3103 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3105 2019-07-22 Tom Tromey <tom@tromey.com>
3107 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3110 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3112 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3115 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3117 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3118 so that GDB doesn't match any msymbols when searching in the
3120 (print_symbol_info): Print using typedef_print or type_print based
3121 on the type of the symbol. Add updated FIXME comment moved from...
3122 (_initialize_symtab): ... move and update FIXME comment to above.
3124 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3126 * NEWS: Mention adding -q option to "info types".
3127 * symtab.c (struct info_types_options): New struct.
3128 (info_types_options_defs): New variable.
3129 (make_info_types_options_def_group): New function.
3130 (info_types_command): Use gdb::option framework to parse options.
3131 (info_types_command_completer): New function.
3132 (_initialize_symtab): Extend the help text on "info types" and
3133 register command completer.
3135 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3137 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3138 (lookup_symbol_in_objfile): Change int to block_enum and add a
3139 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3141 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3143 * MAINTAINERS (Write After Approval): Add self.
3145 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3147 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3148 instruction to the dummy code region.
3150 2019-07-19 Tom Tromey <tromey@adacore.com>
3152 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3153 (ARGSUSED, PARAMS, __func__): Remove rules.
3155 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3157 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3158 * features/arm/arm-with-iwmmxt.c: Remove.
3159 * features/arm/arm-with-iwmmxt.xml: Remove.
3160 * features/arm/arm-with-m-fpa-layout.c: Remove.
3161 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3162 * features/arm/arm-with-m-vfp-d16.c: Remove.
3163 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3164 * features/arm/arm-with-m.c: Remove.
3165 * features/arm/arm-with-m.xml: Remove.
3166 * features/arm/arm-with-neon.c: Remove.
3167 * features/arm/arm-with-neon.xml: Remove.
3168 * features/arm/arm-with-vfpv2.c: Remove.
3169 * features/arm/arm-with-vfpv2.xml: Remove.
3170 * features/arm/arm-with-vfpv3.c: Remove.
3171 * features/arm/arm-with-vfpv3.xml: Remove.
3173 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3175 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3177 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3179 * arch/aarch32.c (aarch32_create_target_description): Create
3180 target descriptions using features.
3181 * arch/arm.c (arm_create_target_description)
3182 (arm_create_mprofile_target_description): Likewise.
3183 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3185 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3187 * Makefile.in: Add new files.
3188 * aarch32-tdep.c: New file.
3189 * aarch32-tdep.h: New file.
3190 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3191 Call aarch32_read_description.
3192 * arch/aarch32.c: New file.
3193 * arch/aarch32.h: New file.
3194 * arch/arm.c (arm_create_target_description)
3195 (arm_create_mprofile_target_description): New function.
3196 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3197 (arm_create_target_description)
3198 (arm_create_mprofile_target_description): New declaration.
3199 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3200 read_description functions.
3201 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3203 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3204 * arm-tdep.c (tdesc_arm_list): New variable.
3205 (arm_register_g_packet_guesses): Call create description functions.
3206 (arm_read_description) (arm_read_mprofile_description): New
3208 * arm-tdep.h (arm_read_description)
3209 (arm_read_mprofile_description): Add declaration.
3210 * configure.tgt: Add new files.
3212 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3214 * top.c (new_ui_command): Open specified terminal just once.
3216 2019-07-18 Tom Tromey <tromey@adacore.com>
3218 * symtab.c (main_name): Constify return type.
3219 * symfile.c (set_initial_language): Update.
3220 * symtab.h (main_name): Constify return type.
3222 2019-07-17 Tom Tromey <tom@tromey.com>
3224 * tui/tui-winsource.c (tui_update_source_window)
3225 (tui_update_source_window_as_is)
3226 (tui_update_source_windows_with_line): Remove return.
3227 * tui/tui-disasm.c (tui_show_disassem)
3228 (tui_show_disassem_and_update_source): Remove return.
3229 * tui/tui.c (tui_reset): Remove return.
3230 * tui/tui-wingeneral.c
3231 (tui_check_and_display_highlight_if_needed): Remove return.
3233 2019-07-17 Tom Tromey <tom@tromey.com>
3235 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3237 2019-07-17 Tom Tromey <tom@tromey.com>
3239 * tui/tui-winsource.h (struct tui_exec_info_window)
3240 (struct tui_source_window_base): Move from tui-data.h.
3241 * tui/tui-winsource.c: Move many method definitions from
3242 elsewhere. Remove "structuring" comments.
3243 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3244 (tui_source_window_base::refresh_window): Move to
3246 * tui/tui-win.c (tui_source_window_base::refresh_all)
3247 (tui_source_window_base::update_tab_width)
3248 (tui_source_window_base::set_new_height)
3249 (tui_source_window_base::do_make_visible_with_new_height): Move to
3251 * tui/tui-source.h: Update.
3252 * tui/tui-source.c (tui_source_window_base::reset): Move to
3254 * tui/tui-disasm.h: Update.
3255 * tui/tui-data.h (struct tui_exec_info_window): Move to
3257 (struct tui_source_window_base): Likewise.
3258 * tui/tui-data.c (tui_source_window_base::clear_detail)
3259 (tui_source_window_base, ~tui_source_window_base): Move to
3262 2019-07-17 Tom Tromey <tom@tromey.com>
3264 * tui/tui-win.c (tui_resize_all)
3265 (tui_source_window_base::update_tab_width)
3266 (tui_adjust_win_heights): Update.
3267 (tui_win_info::make_invisible_and_set_new_height): Rename from
3268 make_invisible_and_set_new_height.
3269 * tui/tui-data.h (struct tui_win_info)
3270 <make_invisible_and_set_new_height>: New method.
3272 2019-07-17 Tom Tromey <tom@tromey.com>
3274 * tui/tui.c: Update.
3275 * tui/tui-source.h (struct tui_source_window): Move from
3277 * tui/tui-layout.c: Update.
3278 * tui/tui-disasm.c: Update.
3279 * tui/tui-data.h (struct tui_source_window): Move to
3282 2019-07-17 Tom Tromey <tom@tromey.com>
3284 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3286 * tui/tui-data.h (struct tui_disasm_window): Move to
3289 2019-07-17 Tom Tromey <tom@tromey.com>
3291 * tui/tui-regs.h (struct tui_data_item_window): Move from
3293 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3294 * tui/tui-data.h (struct tui_data_item_window): Move to
3296 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3298 2019-07-17 Tom Tromey <tom@tromey.com>
3300 * tui/tui.c: Update.
3301 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3302 (tui_cmd_window::max_height): Move to tui-command.c.
3303 * tui/tui-layout.c: Update.
3304 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3305 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3307 * tui/tui-command.h (struct tui_cmd_window): Move from
3309 * tui/tui-command.c: Remove "structuring" comments.
3310 (tui_cmd_window::clear_detail)
3311 (tui_cmd_window::do_make_visible_with_new_height)
3312 (tui_cmd_window::max_height): Move from elsewhere.
3314 2019-07-17 Tom Tromey <tom@tromey.com>
3316 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3318 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3319 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3321 2019-07-17 Tom Tromey <tom@tromey.com>
3323 * tui/tui.c: Update.
3324 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3326 * tui/tui-windata.h: Remove file.
3327 * tui/tui-windata.c: Remove file.
3328 * tui/tui-win.c (tui_data_window::set_new_height)
3329 (tui_data_window::do_make_visible_with_new_height): Move to
3331 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3332 * tui/tui-regs.c: Remove "structuring" comments.
3333 (tui_data_window::first_data_item_displayed)
3334 (tui_data_window::delete_data_content_windows)
3335 (tui_data_window::erase_data_content)
3336 (tui_data_window::display_all_data)
3337 (tui_data_window::refresh_all)
3338 (tui_data_window::do_scroll_vertical)
3339 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3340 (tui_data_window::do_make_visible_with_new_height)
3341 (tui_data_window::refresh_window): Move from elsewhere.
3342 (_initialize_tui_regs): Move to end of file.
3343 * tui/tui-layout.c: Update.
3344 * tui/tui-hooks.c: Update.
3345 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3346 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3348 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3350 2019-07-17 Tom Tromey <tom@tromey.com>
3352 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3355 2019-07-17 Tom Tromey <tom@tromey.com>
3357 * tui/tui-win.c (tui_source_window_base::set_new_height)
3358 (tui_source_window_base::do_make_visible_with_new_height): Use
3359 m_has_locator field directly.
3360 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3362 (struct tui_source_window_base) <has_locator>: Likewise.
3364 2019-07-17 Tom Tromey <tom@tromey.com>
3366 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3368 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3370 * tui/tui-win.c (tui_source_window_base::set_new_height)
3371 (tui_source_window_base::set_new_height)
3372 (make_invisible_and_set_new_height)
3373 (tui_source_window_base::do_make_visible_with_new_height)
3374 (tui_source_window_base::do_make_visible_with_new_height):
3376 * tui/tui-layout.c (show_source_disasm_command, show_data)
3377 (show_source_or_disasm_and_command): Update.
3378 * tui/tui-layout.c (show_layout): Update.
3380 2019-07-17 Tom Tromey <tom@tromey.com>
3382 * tui/tui-layout.c (make_data_window): Remove.
3383 (show_data): Unify creation and re-initialization cases.
3385 2019-07-17 Tom Tromey <tom@tromey.com>
3387 * tui/tui-layout.c (make_source_window, make_disasm_window):
3389 (show_data): Unify creation and re-initialization cases.
3391 2019-07-17 Tom Tromey <tom@tromey.com>
3393 * tui/tui-layout.c (make_command_window): Remove.
3394 (show_source_disasm_command, show_source_or_disasm_and_command):
3395 Unify creation and re-initialization cases.
3397 2019-07-17 Tom Tromey <tom@tromey.com>
3399 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3400 creation and re-initialization cases.
3402 2019-07-17 Tom Tromey <tom@tromey.com>
3404 * tui/tui-regs.c (tui_get_register): Return void.
3406 2019-07-17 Tom Tromey <tom@tromey.com>
3408 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3411 2019-07-17 Tom Tromey <tom@tromey.com>
3413 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3416 2019-07-17 Tom Tromey <tom@tromey.com>
3418 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3419 * tui/tui-regs.c (tui_reg_layout): New function.
3420 (tui_show_registers, tui_reg_command): Use it.
3421 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3422 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3424 (tui_layout_command): Remove.
3426 2019-07-17 Tom Tromey <tom@tromey.com>
3428 * tui/tui-layout.h (tui/tui-layout): Return void.
3429 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3431 2019-07-17 Tom Tromey <tom@tromey.com>
3433 * tui/tui-layout.c (show_source_disasm_command, show_data):
3435 (reset_locator): Remove.
3436 (show_source_or_disasm_and_command): Update.
3438 2019-07-17 Tom Tromey <tom@tromey.com>
3440 * tui/tui-source.c (tui_source_window_base::reset): Remove
3442 * tui/tui-layout.c (make_command_window, make_source_window)
3443 (make_disasm_window, make_data_window)
3444 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3445 (reset_locator, show_source_or_disasm_and_command): Update.
3446 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3448 (struct tui_source_window_base) <reset>: Likewise.
3450 2019-07-17 Tom Tromey <tom@tromey.com>
3452 * tui/tui-layout.c (show_source_disasm_command): Use
3454 (reset_locator): New function.
3455 (init_and_make_win): Remove.
3456 (show_source_or_disasm_and_command): Use reset_locator.
3458 2019-07-17 Tom Tromey <tom@tromey.com>
3460 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3462 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3464 * tui/tui-source.c (tui_source_window_base::reset): New method.
3465 * tui/tui-layout.c (make_command_window): Don't call
3467 (make_source_window, make_disasm_window): Don't call
3468 make_source_or_disasm_window.
3469 (make_data_window): Don't call init_and_make_win. Change calling
3471 (show_source_disasm_command, show_data): Simplify.
3472 (make_source_or_disasm_window): Remove.
3473 (show_source_or_disasm_and_command): Simplify.
3474 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3475 (struct tui_source_window_base) <reset>: Likewise.
3476 <execution_info>: Remove initializer.
3477 * tui/tui-data.c (tui_source_window_base): Initialize
3480 2019-07-17 Tom Tromey <tom@tromey.com>
3482 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3485 2019-07-17 Tom Tromey <tom@tromey.com>
3487 * tui/tui.c (tui_rl_other_window): Update.
3488 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3489 superclass method first. Always iterate over regs_content.
3490 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3492 * tui/tui-win.c (tui_set_focus_command): Update.
3494 2019-07-17 Tom Tromey <tom@tromey.com>
3496 * tui/tui-win.c (tui_set_focus_command): Rename from
3497 tui_set_focus. Call tui_enable.
3498 (tui_set_focus_command): Remove.
3500 2019-07-17 Tom Tromey <tom@tromey.com>
3502 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3504 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3506 (tui_data_window::refresh_window): Call refresh_window on data
3507 items. Always call superclass refresh_window.
3508 (tui_win_info::refresh): Remove.
3509 (tui_source_window_base::refresh_window): Update.
3510 (tui_refresh_all): Update.
3511 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3513 (show_source_or_disasm_and_command): Likewise.
3514 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3515 (struct tui_source_window_base) <refresh>: Likewise.
3517 2019-07-17 Tom Tromey <tom@tromey.com>
3519 * tui/tui-winsource.c (tui_clear_source_content)
3520 (tui_show_source_content): Update.
3521 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3522 whether content is empty.
3523 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3526 2019-07-17 Tom Tromey <tom@tromey.com>
3528 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3530 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3531 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3533 2019-07-17 Tom Tromey <tom@tromey.com>
3535 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3536 (struct tui_data_item_window): Update.
3538 2019-07-17 Tom Tromey <tom@tromey.com>
3540 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3541 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3544 2019-07-17 Tom Tromey <tom@tromey.com>
3546 * tui/tui-winsource.h (tui_erase_source_content)
3547 (tui_clear_source_content): Remove "display_prompt" parameter.
3548 * tui/tui-winsource.c (tui_update_source_window_as_is)
3549 (tui_update_source_windows_with_addr): Update.
3550 (tui_clear_source_content): Remove "display_prompt" parameter.
3551 (tui_erase_source_content): Likewise. Simplify.
3552 (tui_show_source_content): Update.
3553 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3554 * tui/tui-stack.c (tui_show_frame_info): Update.
3555 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3558 2019-07-17 Tom Tromey <tom@tromey.com>
3560 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3561 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3563 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3566 2019-07-17 Tom Tromey <tom@tromey.com>
3568 * tui/tui-winsource.c (tui_clear_source_content)
3569 (tui_show_source_content, tui_show_exec_info_content)
3570 (tui_clear_exec_info_content): Update.
3571 * tui/tui-stack.c (tui_show_locator_content): Update.
3572 (tui_show_frame_info): Update.
3573 * tui/tui-source.h (tui_source_window): Don't declare.
3574 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3575 from tui_source_is_displayed.
3576 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3578 (struct tui_source_window_base) <content_in_use>: New field. Now
3580 (struct tui_source_window) <showing_source_p>: New method.
3581 (TUI_SRC_WIN): Change cast.
3582 * tui/tui-data.c (tui_initialize_static_data): Update.
3584 2019-07-17 Tom Tromey <tom@tromey.com>
3586 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3588 * tui/tui-source.c (tui_source_window::location_matches_p): New
3590 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3592 * tui/tui-data.h (struct tui_source_window_base)
3593 <location_matches_p>: New method.
3594 (struct tui_source_window, struct tui_disasm_window)
3595 <location_matches_p>: Likewise.
3597 2019-07-17 Tom Tromey <tom@tromey.com>
3599 * tui/tui-win.c (tui_set_win_height_command): Rename from
3601 (tui_set_win_height_command): Remove.
3603 2019-07-17 Tom Tromey <tom@tromey.com>
3605 * tui/tui-source.c (tui_source_window): New constructor. Add
3607 (~tui_source_window): New destructor.
3608 (tui_source_window::style_changed): New method.
3609 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3610 (tui_attach_detach_observers): Update.
3611 * tui/tui-data.h (struct tui_source_window): Make constructor not
3612 inline. Add destructor.
3613 (struct tui_source_window) <style_changed>: New method.
3614 <m_observable>: New member.
3616 2019-07-17 Tom Tromey <tom@tromey.com>
3618 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3619 * tui/tui-win.c (tui_resize_all): Fix typo.
3621 2019-07-17 Tom Tromey <tom@tromey.com>
3623 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3624 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3625 (tui_refresh_all): Remove "list" parameter. Use foreach.
3626 * tui/tui-win.c (window_name_completer): Use foreach.
3627 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3628 (update_tab_width): Likewise.
3629 * tui/tui-layout.c (show_layout): Update.
3630 * tui/tui-data.h (class tui_window_iterator): New.
3631 (struct all_tui_windows): New.
3632 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3634 2019-07-17 Tom Tromey <tom@tromey.com>
3636 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3637 parameter. Don't reference globals.
3638 (tui_reg_command): Update.
3640 2019-07-17 Tom Tromey <tom@tromey.com>
3642 * tui/tui-regs.c (tui_show_registers): Simplify.
3644 2019-07-17 Tom Tromey <tom@tromey.com>
3646 * tui/tui-regs.c (tui_show_registers): Update.
3647 (tui_show_register_group): Add win_info parameter.
3649 2019-07-17 Tom Tromey <tom@tromey.com>
3651 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3652 Rename from tui_display_reg_element_at_line.
3653 (tui_data_window::display_registers_from_line): Update.
3654 * tui/tui-data.h (struct tui_data_window)
3655 <display_reg_element_at_line>: New method.
3657 2019-07-17 Tom Tromey <tom@tromey.com>
3659 * tui/tui-regs.h (tui_display_registers_from)
3660 (tui_display_registers_from_line): Don't declare.
3661 * tui/tui-windata.c (tui_data_window::display_all_data)
3662 (tui_data_window::refresh_all)
3663 (tui_data_window::do_scroll_vertical): Update.
3664 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3665 from tui_display_registers_from.
3666 (tui_display_reg_element_at_line): Update.
3667 (tui_data_window::display_registers_from_line): Rename from
3668 tui_display_registers_from_line.
3669 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3670 display_registers_from_line>: New methods.
3672 2019-07-17 Tom Tromey <tom@tromey.com>
3674 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3675 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3676 from tui_erase_data_content.
3677 (tui_data_window::display_all_data)
3678 (tui_data_window::refresh_all)
3679 (tui_data_window::do_scroll_vertical): Update.
3680 * tui/tui-regs.c (tui_show_registers): Update.
3681 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3684 2019-07-17 Tom Tromey <tom@tromey.com>
3686 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3689 (tui_data_window::delete_data_content_windows): Rename from
3690 tui_delete_data_content_windows.
3691 (tui_data_window::display_all_data)
3692 (tui_data_window::do_scroll_vertical): Update.
3693 * tui/tui-data.h (struct tui_data_window)
3694 <delete_data_content_windows>: New method.
3696 2019-07-17 Tom Tromey <tom@tromey.com>
3698 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3699 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3701 2019-07-17 Tom Tromey <tom@tromey.com>
3703 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3704 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3705 from tui_display_all_data.
3707 (tui_data_window::do_make_visible_with_new_height): Update.
3708 * tui/tui-regs.c (tui_show_registers): Update.
3709 * tui/tui-layout.c (tui_set_layout): Update.
3710 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3713 2019-07-17 Tom Tromey <tom@tromey.com>
3715 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3716 * tui/tui-windata.c (tui_display_data_from): Remove.
3717 (tui_data_window::refresh_all): Update.
3719 2019-07-17 Tom Tromey <tom@tromey.com>
3721 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3722 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3723 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3724 tui_display_registers_from_line.
3725 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3726 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3727 "force_display" parameter.
3729 2019-07-17 Tom Tromey <tom@tromey.com>
3731 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3733 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3734 Rename from tui_first_reg_element_no_inline.
3735 (tui_display_reg_element_at_line)
3736 (tui_display_registers_from_line): Update.
3737 * tui/tui-data.h (struct tui_data_window)
3738 <first_reg_element_no_inline>: New method.
3740 2019-07-17 Tom Tromey <tom@tromey.com>
3742 * tui/tui-windata.c (tui_display_data_from)
3743 (tui_data_window::do_scroll_vertical): Update.
3744 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3745 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3746 Rename from tui_line_from_reg_element_no.
3747 (tui_display_registers_from_line): Update.
3748 * tui/tui-data.h (struct tui_data_window)
3749 <line_from_reg_element_no>: New method.
3751 2019-07-17 Tom Tromey <tom@tromey.com>
3753 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3754 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3755 tui_last_regs_line_no.
3756 (tui_display_reg_element_at_line)
3757 (tui_display_registers_from_line): Update.
3758 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
3761 2019-07-17 Tom Tromey <tom@tromey.com>
3764 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
3765 (tui_update_breakpoint_info): Add "being_deleted" parameter.
3766 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3767 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
3768 (tui_update_breakpoint_info): Likewise.
3769 * tui/tui-hooks.c (tui_event_create_breakpoint)
3770 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
3773 2019-07-17 Tom Tromey <tom@tromey.com>
3775 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
3777 2019-07-17 Tom Tromey <tom@tromey.com>
3779 * tui/tui-winsource.c (tui_update_source_window_as_is)
3780 (tui_update_source_windows_with_addr): Update.
3781 * tui/tui-source.h (tui_set_source_content)
3782 (tui_show_symtab_source): Add "win_info" parameter.
3783 * tui/tui-source.c (tui_set_source_content): Add "win_info"
3785 (tui_show_symtab_source): Likewise.
3787 2019-07-17 Tom Tromey <tom@tromey.com>
3789 * tui/tui-wingeneral.c
3790 (tui_check_and_display_highlight_if_needed): Check can_highlight.
3792 2019-07-17 Tom Tromey <tom@tromey.com>
3794 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
3795 (struct tui_cmd_window) <can_scroll>: New method.
3796 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
3799 2019-07-17 Tom Tromey <tromey@adacore.com>
3801 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
3802 do_field_signed>: Rename. Change type of "value".
3803 * ui-out.c (ui_out::field_signed): Rename from field_int.
3804 Change type of "value".
3805 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
3807 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
3808 do_field_int. Change type of "value".
3809 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
3810 do_field_int. Change type of "value".
3811 * tracepoint.c (trace_status_mi, tfind_1)
3812 (print_one_static_tracepoint_marker): Update.
3813 * thread.c (print_thread_info_1, print_selected_thread_frame):
3815 * stack.c (print_frame, print_frame_info): Update.
3816 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
3818 * source.c (print_source_lines_base): Update.
3819 * skip.c (info_skip_command): Update.
3820 * record-btrace.c (btrace_ui_out_decode_error)
3821 (btrace_call_history_src_line): Update.
3822 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
3824 * progspace.c (print_program_space): Update.
3825 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
3826 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
3827 do_field_int. Change type of "value".
3828 * mi/mi-out.c (mi_ui_out::do_table_begin)
3829 (mi_ui_out::do_table_header): Update.
3830 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
3832 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
3833 (mi_cmd_data_list_changed_registers, output_register)
3834 (mi_cmd_data_read_memory, mi_load_progress)
3835 (mi_cmd_trace_frame_collected): Update.
3836 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
3838 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3839 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
3840 (mi_cmd_var_list_children, varobj_update_one): Update.
3841 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
3842 (mi_cmd_stack_list_args, list_arg_or_local): Update.
3843 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
3844 * inferior.c (print_inferior): Update.
3845 * gdb_bfd.c (print_one_bfd): Update.
3846 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3848 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
3849 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
3850 do_field_int. Change type of "value".
3851 * cli-out.c (cli_ui_out::do_field_signed): Rename from
3852 do_field_int. Change type of "value".
3853 * breakpoint.c (watchpoint_check, print_breakpoint_location)
3854 (print_one_breakpoint_location, print_it_catch_fork)
3855 (print_one_catch_fork, print_it_catch_vfork)
3856 (print_one_catch_vfork, print_it_catch_solib)
3857 (print_it_catch_exec, print_it_ranged_breakpoint)
3858 (print_mention_watchpoint, print_mention_masked_watchpoint)
3859 (bkpt_print_it, update_static_tracepoint): Update.
3860 * break-catch-throw.c (print_it_exception_catchpoint): Update.
3861 * break-catch-syscall.c (print_it_catch_syscall): Update.
3862 * ada-tasks.c (print_ada_task_info): Update.
3863 * ada-lang.c (print_it_exception, print_mention_exception):
3866 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3868 PR breakpoints/24541
3869 * gdbarch.c: Regenerate.
3870 * gdbarch.h: Regenerate.
3871 * gdbarch.sh: Adjust return type and parameter types for
3872 'stap_adjust_register'.
3873 (i386_stap_adjust_register): Adjust signature and return new
3875 * stap-probe.c (stap_parse_register_operand): Adjust use of
3876 'gdbarch_stap_adjust_register'.
3878 2019-07-17 Tom Tromey <tromey@adacore.com>
3880 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
3882 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
3884 (struct s390_process_info): Add initializers.
3885 (s390_add_process): Use new.
3886 (s390_linux_nat_target::low_forget_process): Use delete.
3887 (s390_linux_nat_target::low_new_fork)
3888 (s390_linux_nat_target::stopped_by_watchpoint)
3889 (s390_linux_nat_target::low_prepare_to_resume)
3890 (s390_linux_nat_target::insert_watchpoint)
3891 (s390_linux_nat_target::insert_hw_breakpoint)
3892 (s390_linux_nat_target::remove_watchpoint)
3893 (s390_linux_nat_target::remove_hw_breakpoint): Update.
3895 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3897 * aarch64-fbsd-nat.c: Include regcache.h.
3898 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
3900 (aarch64_fbsd_nat_target::fetch_registers)
3901 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
3903 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
3905 2019-07-16 John Baldwin <jhb@FreeBSD.org>
3907 * fbsd-nat.c: Include gdbarch.h.
3909 2019-07-15 Tom Tromey <tromey@adacore.com>
3911 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
3913 2019-07-15 Tom Tromey <tromey@adacore.com>
3915 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
3916 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
3917 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
3918 * cli-out.c (cli_ui_out::do_field_int): New method.
3919 * ui-out.c (ui_out::field_unsigned): New method.
3920 * symfile.c (generic_load): Use field_unsigned.
3921 (print_transfer_performance): Likewise.
3922 * record-btrace.c (ui_out_field_uint): Remove.
3923 (btrace_call_history_insn_range, btrace_call_history): Use
3925 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3927 * ui-out.h (class ui_out) <field_unsigned>: New method.
3928 <do_field_unsigned>: Likewise.
3930 2019-07-15 Tom Tromey <tromey@adacore.com>
3932 * mi/mi-main.c (list_available_thread_groups): Use field_string.
3933 * mi/mi-interp.c (mi_memory_changed): Use field_string.
3934 * target.c (flash_erase_command): Use field_string.
3935 * infrun.c (print_signal_received_reason): Use field_string.
3936 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
3937 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
3939 * ada-tasks.c (print_ada_task_info): Use field_string.
3941 2019-07-15 Tom Tromey <tromey@adacore.com>
3943 * target.c (flash_erase_command): Use field_core_addr.
3944 * symfile.c (generic_load): Use field_core_addr.
3945 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3946 Use field_core_addr.
3947 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
3950 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3952 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
3953 value if its desired type is smaller than a CORE_ADDR and signed.
3955 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3957 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
3958 of changes to field names, and use new is_reference field to
3959 decide if a property is a reference or not.
3960 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
3962 (struct dwarf2_property_baton): Update header comment, rename
3963 'referenced_type' to 'property_type' and update comments.
3964 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
3965 default property type, store in property baton, update to take
3966 accound of renamed field.
3967 (read_func_scope): Update call to attr_to_dynamic_prop.
3968 (read_array_type): Likewise.
3969 (dwarf2_per_cu_addr_sized_int_type): New function.
3970 (read_subrange_index_type): Move type finding code to
3971 dwarf2_per_cu_addr_sized_int_type.
3972 (read_subrange_type): Update calls to attr_to_dynamic_prop.
3973 (dwarf2_per_cu_addr_type): New function.
3974 (set_die_type): Update calls to attr_to_dynamic_prop.
3976 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3978 * dwarf2read.c (read_subrange_index_type): New function.
3979 (read_subrange_type): Move code into new function and call it.
3980 * gdbtypes.c (create_range_type): Add some asserts.
3982 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3984 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
3985 update return statements.
3986 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
3987 declaration, and update comment to match.
3988 * gdbtypes.c (resolve_dynamic_array): Update call to
3989 dwarf2_evaluate_property to match new return type.
3991 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
3993 * valarith.c (value_subscripted_rvalue): Change lowerbound
3994 parameter type from int to LONGEST.
3995 * value.h (value_subscripted_rvalue): Likewise in declaration.
3997 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
3999 * cli/cli-utils.c (info_print_command_completer): New function.
4000 * cli/cli-utils.h: Add 'completer.h' include, and forward
4001 declaration for 'struct cmd_list_element'.
4002 (info_print_command_completer): Declare.
4003 * stack.c (_initialize_stack): Add completer for 'info locals' and
4005 * symtab.c (_initialize_symtab): Add completer for 'info
4006 variables' and 'info functions'.
4007 * NEWS: Mention completion for additional info commands.
4009 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4011 * cli/cli-utils.c (extract_info_print_args): Delete.
4012 (extract_arg_maybe_quoted): Delete.
4013 (info_print_options_defs): New variable.
4014 (make_info_print_options_def_group): New function.
4015 (extract_info_print_options): Define new function.
4016 * cli/cli-utils.h (extract_info_print_args): Delete.
4017 (struct info_print_options): New structure.
4018 (extract_info_print_options): Declare new function.
4019 * stack.c (info_locals_command): Update to use new
4020 extract_info_print_options, also add a header comment.
4021 (info_args_command): Likewise.
4022 * symtab.c (info_variables_command): Likewise.
4023 (info_functions_command): Likewise.
4025 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4027 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4028 to extract string arguments.
4029 * common/common-utils.c (extract_string_maybe_quoted): New function.
4030 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4032 2019-07-11 Tom Tromey <tromey@adacore.com>
4034 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4035 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4036 * top.h (gdbinit): Don't declare.
4037 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4039 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4040 * top.c (gdb_init): Don't call init_cli_cmds.
4042 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4044 2019-07-11 Tom Tromey <tromey@adacore.com>
4046 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4047 after it has been moved.
4049 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4051 * valops.c (value_must_coerce_to_target): Change return type to
4053 * value.h (value_must_coerce_to_target): Likewise.
4055 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4057 * breakpoint.c (is_hardware_watchpoint): Remove
4058 forward-declaration.
4059 (is_masked_watchpoint): Change return type to bool.
4060 (is_tracepoint): Likewise.
4061 (is_breakpoint): Likewise.
4062 (is_hardware_watchpoint): Likewise.
4063 (is_watchpoint): Likewise.
4064 (is_no_memory_software_watchpoint): Likewise.
4065 (is_catchpoint): Likewise.
4066 (breakpoint_1): Make FILTER parameter's return type bool.
4067 is_masked_watchpoint): Change return type to bool.
4068 (save_breakpoints): Make FILTER parameter's return type bool.
4069 * breakpoint.h (is_breakpoint): Change return type to bool.
4070 (is_watchpoint): Likewise.
4071 (is_catchpoint): Likewise.
4072 (is_tracepoint): Likewise.
4074 2019-07-10 Tom Tromey <tom@tromey.com>
4076 * defs.h: Don't include gdbarch.h.
4077 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4078 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4079 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4080 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4081 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4082 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4083 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4084 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4085 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4086 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4087 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4088 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4089 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4090 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4091 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4092 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4093 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4094 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4095 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4096 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4097 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4098 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4099 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4100 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4101 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4102 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4103 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4105 2019-07-10 Tom Tromey <tromey@adacore.com>
4107 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4108 * breakpoint.c (init_ada_exception_breakpoint): Register as
4110 (print_one_breakpoint_location, print_one_breakpoint): Use
4111 is_ada_exception_catchpoint.
4112 * ada-lang.c (class ada_catchpoint_location): Pass
4113 bp_loc_software_breakpoint to bp_location constructor.
4114 (is_ada_exception_catchpoint): New function.
4116 2019-07-10 Tom Tromey <tromey@adacore.com>
4118 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4120 (struct arm_exidx_entry): New method operator<.
4121 (struct arm_exidx_data) <section_maps>: Change type.
4122 (arm_exidx_data_free): Remove.
4123 (arm_exidx_data_key): Change type. Move lower.
4124 (arm_exidx_new_objfile): Update.
4125 (arm_compare_exidx_entries): Remove.
4126 (arm_find_exidx_entry, _initialize_arm_tdep)
4128 2019-07-10 Tom Tromey <tromey@adacore.com>
4130 * solib-spu.c (ocl_program_data_key): Change type.
4131 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4134 2019-07-10 Tom Tromey <tromey@adacore.com>
4136 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4137 (struct solib_aix_inferior_data) <library_list>: Change type.
4138 (solib_aix_inferior_data_handle): Change type.
4139 (get_solib_aix_inferior_data): Update.
4140 (solib_aix_free_library_list): Remove.
4141 (library_list_start_library): Update.
4142 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4144 (solib_aix_get_library_list)
4145 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4146 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4148 2019-07-10 Tom Tromey <tromey@adacore.com>
4150 * solib-dsbt.c (struct dsbt_info): Add initializers.
4151 (solib_dsbt_pspace_data): Change type.
4152 (dsbt_pspace_data_cleanup): Remove.
4153 (get_dsbt_info, _initialize_dsbt_solib): Update.
4155 2019-07-10 Tom Tromey <tromey@adacore.com>
4157 * spu-tdep.c (spu_overlay_data): Change type.
4158 (spu_get_overlay_table, spu_overlay_new_objfile)
4159 (_initialize_spu_tdep): Update.
4161 2019-07-10 Tom Tromey <tromey@adacore.com>
4163 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4165 (dbx_objfile_data_key): Change type and declare later.
4166 (DBX_SYMFILE_INFO): Rewrite.
4167 * dbxread.c (dbx_objfile_data_key): Change type.
4168 (dbx_symfile_init): Update.
4169 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4170 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4171 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4173 2019-07-10 Tom Tromey <tromey@adacore.com>
4175 * jit.c (jit_program_space_key): Change type. Move lower.
4176 (get_jit_program_space_data): Update.
4177 (jit_program_space_data_cleanup): Remove.
4178 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4180 (struct jit_program_space_data): Add initializers.
4182 2019-07-10 Tom Tromey <tromey@adacore.com>
4184 * solib-darwin.c (struct darwin_info): Add initializers.
4185 (solib_darwin_pspace_data): Change type.
4186 (darwin_pspace_data_cleanup): Remove.
4187 (get_darwin_info, _initialize_darwin_solib): Update.
4189 2019-07-10 Tom Tromey <tromey@adacore.com>
4191 * remote-sim.c (struct sim_inferior_data): Add initializers,
4192 constructor, and destructor.
4193 (sim_inferior_data_key): Change type. Move lower.
4194 (check_for_duplicate_sim_descriptor): Update.
4195 (get_sim_inferior_data): Use new. Update.
4196 (~sim_inferior_data_cleanup): Rename from
4197 sim_inferior_data_cleanup. Simplify.
4198 (gdbsim_close_inferior, simulator_command)
4199 (sim_command_completer, _initialize_remote_sim): Update.
4200 (next_pid, INITIAL_PID): Move earlier.
4202 2019-07-10 Tom Tromey <tromey@adacore.com>
4204 * python/python-internal.h (create_thread_object): Return
4206 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4207 * python/py-inferior.c (struct threadlist_entry): Add
4209 <thread_obj>: Now a gdbpy_ref.
4210 (thread_to_thread_object): Update.
4211 (add_thread_object): Use new.
4212 (delete_thread_object): Use delete.
4213 (infpy_threads): Update.
4214 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4217 2019-07-10 Tom Tromey <tromey@adacore.com>
4219 * valops.c (value_cast): Specialize error message for Ada.
4221 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4223 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4225 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4227 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4228 bpstat_should_step): Return bool, adjust comments.
4229 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4230 bpstat_should_step): Likewise.
4232 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4234 * features/Makefile: Use feature target descriptions for Arm.
4235 * features/arm/arm-core.c: Generate new file.
4236 * features/arm/arm-fpa.c: Likewise.
4237 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4238 * features/arm/arm-m-profile.c: Likewise.
4239 * features/arm/arm-vfpv2.c: Likewise.
4240 * features/arm/arm-vfpv3.c: Likewise.
4241 * features/arm/xscale-iwmmxt.c: Likewise.
4242 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4244 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4246 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4249 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4251 * features/aarch64-pauth.c: Regenerate.
4253 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4255 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4257 (bpstat_what): Use false instead of 0.
4259 2019-07-09 Pedro Alves <palves@redhat.com>
4261 * break-catch-throw.c (is_exception_catchpoint): New.
4262 * breakpoint.c (print_one_breakpoint_location): New parameter
4263 'raw_loc'. Handle it. Use
4264 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4265 looking at the breakpoint's type.
4266 (print_one_breakpoint): If handling "maint info breakpoints", also
4267 print locations of exception catchpoints.
4268 * breakpoint.h (is_exception_catchpoint): Declare.
4270 2019-07-09 Pedro Alves <palves@redhat.com>
4272 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4274 (allocate_location_exception_catchpoint): New.
4275 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4276 (initialize_throw_catchpoint_ops): Install
4277 allocate_location_exception_catchpoint as allocate_location
4279 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4280 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4282 (breakpoint_address_is_meaningful): Delete.
4283 (bl_address_is_meaningful): New.
4284 (breakpoint_locations_match): Adjust comment.
4285 (bp_location_from_bp_type): New, factored out of...
4286 (bp_location::bp_location(breakpoint *)): ... this.
4287 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4289 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4290 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4291 breakpoint_address_is_meaningful.
4292 (bp_locations_compare): Adjust comment.
4293 (update_global_location_list): Use bl_address_is_meaningful
4294 instead of breakpoint_address_is_meaningful.
4295 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4297 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4298 * python/py-breakpoint.c (bppy_get_location): No longer check
4299 whether location is null.
4301 2019-07-09 Pedro Alves <palves@redhat.com>
4304 * breakpoint.c (print_one_breakpoint_location): Remove
4305 single-location assert.
4307 2019-07-09 Tom Tromey <tom@tromey.com>
4309 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4310 * configure: Rebuild.
4311 * configure.ac: Change common to gdbsupport.
4312 * gdbsupport: Rename from common.
4313 * acinclude.m4: Change common to gdbsupport.
4314 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4315 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4317 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4318 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4319 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4320 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4321 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4322 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4323 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4324 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4325 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4326 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4327 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4328 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4329 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4330 coff-pe-read.c, command.h, compile/compile-c-support.c,
4331 compile/compile-c.h, compile/compile-cplus-symbols.c,
4332 compile/compile-cplus-types.c, compile/compile-cplus.h,
4333 compile/compile-loc2c.c, compile/compile.c, completer.c,
4334 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4335 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4336 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4337 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4338 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4339 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4340 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4341 features/aarch64-core.c, features/aarch64-fpu.c,
4342 features/aarch64-pauth.c, features/aarch64-sve.c,
4343 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4344 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4345 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4346 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4347 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4348 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4349 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4350 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4351 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4352 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4353 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4354 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4355 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4356 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4357 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4358 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4359 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4360 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4361 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4362 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4363 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4364 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4365 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4366 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4367 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4368 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4369 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4370 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4371 minsyms.c, mips-linux-tdep.c, namespace.h,
4372 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4373 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4374 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4375 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4376 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4377 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4378 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4379 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4380 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4381 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4382 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4383 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4384 procfs.c, producer.c, progspace.h, psymtab.h,
4385 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4386 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4387 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4388 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4389 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4390 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4391 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4392 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4393 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4394 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4395 target-memory.c, target.c, target.h, target/waitstatus.c,
4396 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4397 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4398 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4399 unittests/array-view-selftests.c,
4400 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4401 unittests/common-utils-selftests.c,
4402 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4403 unittests/format_pieces-selftests.c,
4404 unittests/function-view-selftests.c,
4405 unittests/lookup_name_info-selftests.c,
4406 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4407 unittests/mkdir-recursive-selftests.c,
4408 unittests/observable-selftests.c,
4409 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4410 unittests/parse-connection-spec-selftests.c,
4411 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4412 unittests/scoped_fd-selftests.c,
4413 unittests/scoped_mmap-selftests.c,
4414 unittests/scoped_restore-selftests.c,
4415 unittests/string_view-selftests.c, unittests/style-selftests.c,
4416 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4417 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4418 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4419 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4420 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4421 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4423 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4425 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4427 (decode_digits_ordinary): Set explicit_line field in sal.
4428 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4429 symtab_and_line that was set on an explicit line number in
4430 assembler code. Do always update the recorded symtab and line if
4431 we do skip the prologue.
4433 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4435 * breakpoint.c (set_breakpoint_location_function): Remove
4436 explicit_loc parameter.
4437 (momentary_breakpoint_from_master): Update call to
4438 set_breakpoint_location_function.
4439 (add_location_to_breakpoint): Likewise.
4441 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4443 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4444 required features based on default bfd type when no specific bfd
4447 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4449 * NEWS: Mention that GDB printf and eval commands can now print
4450 C-style and Ada-style convenience var strings without
4451 calling the inferior.
4452 * printcmd.c (printf_c_string): Locally print GDB internal var
4453 instead of transiting via the inferior.
4454 (printf_wide_c_string): Likewise.
4456 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4458 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4460 2019-07-04 Tom Tromey <tom@tromey.com>
4463 * tui/tui-winsource.c (tui_clear_source_content): Update.
4464 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4465 (tui_update_breakpoint_info): Update.
4466 (tui_set_exec_info_content): Update.
4467 * tui/tui-source.c (tui_set_source_content_nil): Update.
4468 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4470 * tui/tui-data.h (enum tui_bp_flag): New.
4471 (tui_bp_flags): New enum flags type.
4472 (struct tui_source_element) <break_mode>: Change type. Rename
4474 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4475 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4477 * tui/tui-winsource.h: Fix comment.
4479 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4481 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4482 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4483 (store_fpregs_to_thread)
4484 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4485 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4486 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4487 (IWMMXT_REGS_SIZE): Add define.
4488 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4489 (fetch_vfp_regs, store_vfp_regs)
4490 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4491 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4493 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4495 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4497 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4498 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4499 (ARM_INT_REGISTER_SIZE): ...to this.
4500 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4501 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4502 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4503 (arm_linux_collect_gregset, supply_nwfpe_register)
4504 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4506 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4507 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4508 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4509 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4510 (arm_return_in_memory, arm_store_return_value)
4511 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4512 (arm_record_ld_st_multiple): Likewise.
4513 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4514 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4516 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4518 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4519 AARCH64_DISPLACED_MODIFIED_INSNS.
4520 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4521 (aarch64_displaced_step_copy_insn): Likewise.
4522 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4523 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4524 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4525 ARM_DISPLACED_MODIFIED_INSNS.
4526 * arm-tdep.c (arm_gdbarch_init): Likewise.
4527 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4528 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4529 (struct arm_displaced_step_closure): Use
4530 ARM_DISPLACED_MODIFIED_INSNS.
4532 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4534 * features/Makefile: Remove unused xml files.
4535 * features/aarch64.xml: Remove.
4536 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4537 * features/i386/amd64-avx-avx512.xml: Remove.
4538 * features/i386/amd64-avx-linux.xml: Remove.
4539 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4540 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4541 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4542 * features/i386/amd64-avx-mpx.xml: Remove.
4543 * features/i386/amd64-avx.xml: Remove.
4544 * features/i386/amd64-linux.xml: Remove.
4545 * features/i386/amd64-mpx-linux.xml: Remove.
4546 * features/i386/amd64-mpx.xml: Remove.
4547 * features/i386/amd64.xml: Remove.
4548 * features/i386/i386-avx-avx512-linux.xml: Remove.
4549 * features/i386/i386-avx-avx512.xml: Remove.
4550 * features/i386/i386-avx-linux.xml: Remove.
4551 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4552 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4553 * features/i386/i386-avx-mpx-linux.xml: Remove.
4554 * features/i386/i386-avx-mpx.xml: Remove.
4555 * features/i386/i386-avx.xml: Remove.
4556 * features/i386/i386-linux.xml: Remove.
4557 * features/i386/i386-mmx-linux.xml: Remove.
4558 * features/i386/i386-mmx.xml: Remove.
4559 * features/i386/i386-mpx-linux.xml: Remove.
4560 * features/i386/i386-mpx.xml: Remove.
4561 * features/i386/i386.xml: Remove.
4562 * features/i386/x32-avx-avx512-linux.xml: Remove.
4563 * features/i386/x32-avx-linux.xml: Remove.
4564 * features/i386/x32-linux.xml: Remove.
4566 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4568 * regformats/aarch64.dat: Remove.
4569 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4570 * regformats/i386/amd64-avx-linux.dat: Remove.
4571 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4572 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4573 * regformats/i386/amd64-linux.dat: Remove.
4574 * regformats/i386/amd64-mpx-linux.dat: Remove.
4575 * regformats/i386/amd64.dat: Remove.
4576 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4577 * regformats/i386/i386-avx-linux.dat: Remove.
4578 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4579 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4580 * regformats/i386/i386-linux.dat: Remove.
4581 * regformats/i386/i386-mmx-linux.dat: Remove.
4582 * regformats/i386/i386-mpx-linux.dat: Remove.
4583 * regformats/i386/i386.dat: Remove.
4584 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4585 * regformats/i386/x32-avx-linux.dat: Remove.
4586 * regformats/i386/x32-linux.dat: Remove.
4588 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4590 * aarch64-tdep.c: Remove xml self tests.
4591 * amd64-linux-tdep.c: Likewise.
4592 * amd64-tdep.c: Likewise.
4593 * i386-linux-tdep.c: Likewise.
4594 * i386-tdep.c: Likewise.
4596 2019-07-03 Pedro Alves <palves@redhat.com>
4599 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4600 (pipe_cmd_option_defs): New.
4601 (make_pipe_cmd_options_def_group): New.
4602 (pipe_command): Use gdb::option::process_options.
4603 (pipe_command_completer): New function.
4604 (_initialize_cli_cmds): Install completer for "pipe" command.
4606 2019-07-03 Pedro Alves <palves@redhat.com>
4608 * cli/cli-option.c (union option_value) <string>: New field.
4609 (struct option_def_and_value): Add ctor, move ctor, dtor and
4610 use DISABLE_COPY_AND_ASSIGN.
4611 (option_def_and_value::clear_value): New.
4612 (parse_option, save_option_value_in_ctx, get_val_type_str)
4613 (add_setshow_cmds_for_options): Handle var_string.
4614 * cli-option.h (union option_def::var_address) <string>: New
4616 (struct string_option_def): New.
4617 * maint-test-options.c (struct test_options_opts): Add default
4618 ctor and use DISABLE_COPY_AND_ASSIGN.
4619 <string_opt>: New field.
4620 (test_options_opts::~test_options_opts): New.
4621 (test_options_opts::dump): Also dump "-string".
4622 (test_options_option_defs): Install "string.
4624 2019-07-03 Pedro Alves <palves@redhat.com>
4626 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4627 option_value with a null enumeration.
4628 (complete_options): Save the option values in the context.
4629 (save_option_value_in_ctx): New, factored out from ...
4630 (process_options): ... here.
4631 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4633 * maint-test-options.c (test_options_opts::dump): New, factored
4635 (maintenance_test_options_command_mode): ... here.
4636 (maintenance_test_options_command_completion_result): Delete.
4637 (maintenance_test_options_command_completion_text): Update
4639 (maintenance_show_test_options_completion_result): Change
4640 prototype. Just print
4641 maintenance_test_options_command_completion_text.
4642 (save_completion_result): New.
4643 (maintenance_test_options_completer_mode): Pass options context to
4644 complete_options, and then save a dump.
4645 (_initialize_maint_test_options): Use add_cmd to install "maint
4646 show test-options-completion-result".
4648 2019-07-03 Pedro Alves <palves@redhat.com>
4650 * NEWS (New commands): Mention "with" and "maint with".
4651 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4652 (with_command, with_command_completer): New.
4653 (pipe_command): Adjust to new repeat_previous
4655 (_initialize_cli_cmds): Install the "with" command and its "w"
4657 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4659 * cli/cli-setshow.c (parse_cli_var_uinteger)
4660 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4661 argument strings for all var_types.
4662 (get_setshow_command_value_string): New, factored out from ...
4663 (do_show_command): ... this.
4664 * cli/cli-setshow.h: Include <string>.
4665 (get_setshow_command_value_string): Declare.
4666 * command.h (repeat_previous): Now returns const char *. Adjust
4668 * maint.c: Include "cli/cli-cmds.h".
4669 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4670 (_initialize_maint_cmds): Register the "maintenance with" command.
4671 * top.c (repeat_previous): Move bits from pipe_command here:
4672 Return the saved command line, if any; error out if there's no
4673 command to relaunch.
4675 2019-07-03 Pedro Alves <palves@redhat.com>
4677 * NEWS (New commands): Mention "maint set/show test-settings"
4678 instead of "maint test-settings".
4679 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4680 (maintenance_test_settings_set_list): Rename to ...
4681 (maintenance_set_test_settings_list): ... this.
4682 (maintenance_test_settings_show_list): Rename to ...
4683 (maintenance_show_test_settings_list): ... this.
4684 (maintenance_test_settings_cmd): Delete.
4685 (maintenance_test_settings_set_cmd): ...
4686 (maintenance_set_test_settings_cmd): ... this.
4687 (maintenance_test_settings_show_cmd): ...
4688 (maintenance_show_test_settings_cmd): ... this.
4689 (maintenance_test_settings_show_value_cmd):
4690 (maintenance_show_test_settings_value_cmd): ... this.
4691 (_initialize_maint_test_settings): No longer install the "maint
4692 test-settings" prefix command. Rename "maint test-settings set"
4693 to "maint set test-settings", and "maint test-settings show" to
4694 "maint show test-settings". Adjust all subcommands.
4696 2019-07-03 Pedro Alves <palves@redhat.com>
4698 * maint-test-settings.c: Fix file's intro comment. Replace all
4699 references to "test-options" with references to "test-settings",
4702 2019-07-03 Pedro Alves <palves@redhat.com>
4704 * maint-test-settings.c (maintenance_test_settings_xxx)
4705 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4707 (maintenance_test_settings_enums): Use them.
4708 (maintenance_test_settings_enum): Default to
4709 maintenance_test_settings_xxx.
4710 (_initialize_maint_test_settings): Initialize
4711 MAINTENANCE_TEST_SETTINGS_FILENAME.
4713 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4715 * breakpoint.h (remove_breakpoints_inf): Change return type to
4716 void, move function documentation here.
4717 * breakpoint.c (remove_breakpoints_inf): Change return type to
4718 void, move function documentation to header.
4720 2019-07-02 Pedro Alves <palves@redhat.com>
4722 * NEWS (Completion improvements): Mention "info threads".
4723 * thread.c (struct info_threads_opts, info_threads_option_defs)
4724 (make_info_threads_options_def_group): New.
4725 (info_threads_command): Use gdb::option::process_options.
4726 (info_threads_command_completer): New.
4727 (_initialize_thread): Use gdb::option::build_help to build the
4728 help text for "info threads".
4730 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4732 * defs.h (generic_load): Move from here...
4733 * symfile.h (generic_load): ... to here. Rename name parameter
4735 * symfile.c (generic_load): Add comment.
4737 2019-07-01 Tom Tromey <tromey@adacore.com>
4740 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4741 declaration of without_params. Fix formatting.
4743 2019-07-01 Tom Tromey <tromey@adacore.com>
4745 * ada-exp.y (find_primitive_type): Update.
4746 * ada-lang.h (ada_lookup_symbol): Update.
4747 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4749 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4751 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4753 PR breakpoints/24541
4754 * gdbarch.c: Regenerate.
4755 * gdbarch.h: Regenerate.
4756 * gdbarch.sh: Add 'stap_adjust_register'.
4757 * i386-tdep.c: Include '<unordered_set>'.
4758 (i386_stap_adjust_register): New function.
4759 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
4760 * stap-probe.c (stap_parse_register_operand): Call
4761 'gdbarch_stap_adjust_register'.
4763 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4766 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
4767 * python/python.c (do_start_initialization): Use 'xmalloc'
4768 instead of 'PyMem_Malloc'.
4770 2019-06-28 Tom Tromey <tromey@adacore.com>
4772 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
4775 2019-06-27 Tom Tromey <tromey@adacore.com>
4777 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
4779 (arm_find_mapping_symbol, arm_record_special_symbol)
4780 (_initialize_arm_tdep): Update.
4781 (arm_objfile_data_free): Remove.
4783 2019-06-27 Tom Tromey <tromey@adacore.com>
4785 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
4786 to cp_print_static_field.
4788 2019-06-26 Tom Tromey <tromey@adacore.com>
4790 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
4791 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
4794 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4796 * features/aarch64-core.c (create_feature_aarch64_core):
4798 * features/aarch64-core.xml: Add cpsr flags.
4800 2019-06-26 Alan Hayward <alan.hayward@arm.com>
4802 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
4803 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
4805 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4807 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
4809 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
4811 (arm_record_special_symbol): Don't insert new symbol in sorted
4812 position, push it at the end.
4814 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
4816 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
4817 (arm_mapping_symbol_s): Remove.
4818 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
4819 (arm_mapping_symbol_vec): New typedef.
4820 (struct arm_per_objfile): Add constructor.
4821 <section_maps>: Change type to
4822 std::unique_ptr<arm_mapping_symbol_vec[]>.
4823 (arm_compare_mapping_symbols): Remove.
4824 (arm_find_mapping_symbol): Adjust to section_maps type change.
4825 (arm_objfile_data_free): Call delete on arm_per_objfile.
4826 (arm_record_special_symbol): Adjust to section_maps type change.
4827 Allocate arm_per_objfile with new.
4829 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4831 * cli/cli-cmds.c (alias_command): Compare the alias prefix
4832 with the command prefix.
4834 2019-06-25 Tom Tromey <tom@tromey.com>
4836 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
4837 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
4839 2019-06-25 Tom Tromey <tom@tromey.com>
4841 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
4843 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
4846 2019-06-25 Tom Tromey <tom@tromey.com>
4848 * tui/tui-winsource.c
4849 (tui_source_window_base::set_is_exec_point_at): Add check against
4852 2019-06-25 Tom Tromey <tom@tromey.com>
4854 * tui/tui-source.c (tui_set_source_content): Don't check before
4856 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
4858 2019-06-25 Tom Tromey <tom@tromey.com>
4860 * tui/tui-winsource.h (tui_update_source_window_as_is)
4861 (tui_alloc_source_buffer, tui_line_is_displayed)
4862 (tui_addr_is_displayed): Change type of win_info.
4863 * tui/tui-winsource.c (tui_update_source_window_as_is)
4864 (tui_clear_source_content, tui_show_source_line)
4865 (tui_show_source_content, tui_source_window_base::refill)
4866 (tui_source_window_base::set_is_exec_point_at)
4867 (tui_source_window_base::set_is_exec_point_at)
4868 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
4869 (tui_alloc_source_buffer, tui_line_is_displayed)
4870 (tui_addr_is_displayed): Change type of win_info. Update.
4871 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4872 (tui_source_window_base::do_make_visible_with_new_height):
4874 * tui/tui-source.c (tui_set_source_content)
4875 (tui_set_source_content_nil)
4876 (tui_source_window::do_scroll_vertical): Update.
4877 * tui/tui-layout.c (show_layout): Update.
4878 * tui/tui-disasm.c (tui_set_disassem_content)
4879 (tui_disasm_window::do_scroll_vertical): Update.
4880 * tui/tui-data.h (tui_win_content): Remove.
4881 (struct tui_gen_win_info) <content, content_size>: Remove.
4882 (struct tui_source_element): Add initializers and destructor.
4883 (union tui_which_element, struct tui_win_element): Remove.
4884 (struct tui_source_window_base) <content>: New field.
4885 (struct tui_data_window): Remove destructor.
4886 (tui_alloc_content, tui_free_win_content)
4887 (tui_free_all_source_wins_content): Don't declare.
4888 * tui/tui-data.c (tui_initialize_static_data): Update.
4889 (init_content_element, tui_alloc_content): Remove.
4890 (~tui_gen_win_info): Update.
4891 (~tui_data_window, tui_free_all_source_wins_content)
4892 (tui_free_win_content, free_content, free_content_elements):
4895 2019-06-25 Tom Tromey <tom@tromey.com>
4897 * tui/tui-winsource.h (tui_clear_source_content)
4898 (tui_erase_source_content, tui_show_source_content): Change type
4900 * tui/tui-winsource.c (tui_clear_source_content)
4901 (tui_erase_source_content, tui_show_source_content): Change type
4903 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4904 * tui/tui-source.h (tui_set_source_content_nil): Change type of
4906 * tui/tui-source.c (tui_set_source_content_nil): Change type of
4908 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
4910 2019-06-25 Tom Tromey <tom@tromey.com>
4912 * tui/tui-winsource.c (tui_clear_source_content)
4913 (tui_source_window_base::set_is_exec_point_at): Update.
4914 * tui/tui-source.c (tui_set_source_content_nil): Update.
4915 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
4917 * tui/tui-data.c (init_content_element): Update.
4919 2019-06-25 Tom Tromey <tom@tromey.com>
4921 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
4922 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
4923 * tui/tui-layout.c (init_and_make_win): Update.
4924 * tui/tui.h (enum tui_win_type): Update.
4925 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
4926 tui_win_is_auxillary.
4927 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
4928 tui_win_is_auxillary.
4930 2019-06-25 Tom Tromey <tom@tromey.com>
4932 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
4933 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
4934 (tui_delete_data_content_windows, tui_display_all_data)
4935 (tui_data_window::do_scroll_vertical, tui_display_data_from):
4937 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
4938 * tui/tui-regs.c (tui_last_regs_line_no)
4939 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
4940 (tui_show_registers): Update.
4941 (tui_show_register_group): Return void. Update.
4942 (tui_display_registers_from, tui_display_reg_element_at_line)
4943 (tui_display_registers_from_line, tui_check_register_values):
4945 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
4947 (struct tui_data_window) <regs_content>: Now a std::vector.
4948 <regs_content_count>: Remove.
4949 (tui_add_content_elements, tui_free_data_content): Don't declare.
4950 * tui/tui-data.c (tui_data_window::clear_detail): Update.
4951 (init_content_element): Remove DATA_WIN case. Add assert.
4952 (tui_add_content_elements): Remove.
4953 (tui_data_window): Update.
4954 (tui_free_data_content): Remove.
4955 (free_content_elements): Remove DATA_WIN case.
4957 2019-06-25 Tom Tromey <tom@tromey.com>
4959 * tui/tui-data.c (tui_data_item_window): Update.
4960 * tui/tui-windata.h (tui_check_data_values): Don't declare.
4961 * tui/tui-windata.c (tui_display_all_data)
4962 (tui_display_data_from_line): Update.
4963 (tui_check_data_values): Remove.
4964 * tui/tui-regs.c (tui_show_register_group)
4965 (tui_display_reg_element_at_line): Update.
4966 * tui/tui-hooks.c (tui_register_changed)
4967 (tui_refresh_frame_and_register_information): Call
4968 tui_check_register_values.
4969 * tui/tui-data.h (struct tui_data_window) <data_content,
4970 data_content_count, data_type>: Remove.
4971 (enum tui_data_type): Remove.
4973 * tui/tui-data.c (tui_data_window::clear_detail)
4974 (~tui_data_window): Update.
4976 2019-06-25 Tom Tromey <tom@tromey.com>
4978 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
4980 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
4981 Rename from tui_first_data_item_displayed. Update.
4982 (tui_data_window::refresh_all)
4983 (tui_data_window::do_scroll_vertical): Update.
4984 * tui/tui-data.h (struct tui_data_window)
4985 <first_data_item_displayed>: Declare new method.
4987 2019-06-25 Tom Tromey <tom@tromey.com>
4989 * tui/tui-data.h (tui_init_generic_part): Don't declare.
4990 * tui/tui-data.c (tui_init_generic_part): Remove, moving
4992 (tui_initialize_static_data): ...here.
4994 2019-06-25 Tom Tromey <tom@tromey.com>
4996 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
4997 (tui_display_registers_from, tui_check_register_values): Update.
4998 (tui_display_register): Remove win_info parameter; update.
4999 (tui_get_register): Change type of parameters.
5000 * tui/tui-data.h (struct tui_data_element): Remove.
5001 (union tui_which_element) <data>: Remove.
5002 <data_window>: Change type.
5003 (struct tui_data_item_window): New.
5004 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5006 (~tui_data_item_window): New destructor.
5007 (free_content_elements): Remove DATA_ITEM_WIN case.
5009 2019-06-25 Tom Tromey <tom@tromey.com>
5011 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5014 2019-06-25 Tom Tromey <tom@tromey.com>
5016 * tui/tui-data.h (struct tui_command_element): Remove.
5017 (union tui_which_element) <command>: Remove.
5018 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5020 (free_content_elements): Remove CMD_WIN case.
5022 2019-06-25 Tom Tromey <tom@tromey.com>
5024 * tui/tui-layout.c (tui_set_layout): Update.
5025 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5026 * tui/tui-data.c (layout_def): Update.
5028 2019-06-25 Tom Tromey <tom@tromey.com>
5030 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5031 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5032 (tui_source_window_base::set_new_height): Update.
5033 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5035 (tui_set_locator_fullname, tui_set_locator_info)
5036 (tui_show_frame_info): Update.
5037 * tui/tui-source.c (tui_set_source_content)
5038 (tui_source_is_displayed): Update.
5039 * tui/tui-layout.c (show_source_disasm_command, show_data)
5040 (show_source_or_disasm_and_command): Update.
5041 * tui/tui-disasm.c (tui_set_disassem_content)
5042 (tui_get_begin_asm_address): Update.
5043 * tui/tui-data.h (struct tui_locator_element): Remove.
5044 (union tui_which_element) <locator>: Remove.
5045 (struct tui_locator_window): New.
5046 (tui_locator_win_info_ptr): Change return type.
5047 * tui/tui-data.c (_locator): Change type.
5048 (tui_locator_win_info_ptr): Change return type.
5049 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5050 (tui_alloc_content): Add assert.
5052 2019-06-25 Tom Tromey <tom@tromey.com>
5054 * tui/tui-winsource.c
5055 (tui_exec_info_window::maybe_allocate_content): New method.
5056 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5057 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5058 (make_source_or_disasm_window): Add cast.
5059 * tui/tui-data.h (union tui_which_element) <simple_string>:
5061 (struct tui_source_info): New.
5062 (struct tui_source_window_base) <execution_info>: Change type.
5063 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5064 case, and add assert.
5065 (tui_alloc_content): Add assert.
5067 2019-06-25 Tom Tromey <tom@tromey.com>
5069 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5070 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5071 * tui/tui-data.c (tui_alloc_win_info): Remove.
5073 2019-06-25 Tom Tromey <tom@tromey.com>
5075 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5076 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5079 2019-06-25 Tom Tromey <tom@tromey.com>
5081 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5082 make_visible_with_new_height method.
5083 (tui_win_info::make_visible_with_new_height): New method.
5084 (tui_source_window_base::do_make_visible_with_new_height)
5085 (tui_data_window::do_make_visible_with_new_height)
5086 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5087 (make_visible_with_new_height): Remove.
5088 (tui_resize_all, tui_adjust_win_heights): Use
5089 make_visible_with_new_height method.
5090 * tui/tui-data.h (struct tui_win_info)
5091 <do_make_visible_with_new_height, make_visible_with_new_height>:
5093 (struct tui_source_window_base, struct tui_data_window)
5094 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5097 2019-06-25 Tom Tromey <tom@tromey.com>
5099 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5101 (update_tab_width): Call update_tab_width method.
5102 * tui/tui-data.h (struct tui_win_info)
5103 (struct tui_source_window_base) <update_tab_width>: New methods.
5105 2019-06-25 Tom Tromey <tom@tromey.com>
5107 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5109 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5111 (tui_gen_win_info::make_visible): Update.
5112 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5114 * tui/tui-data.h (enum tui_box): New enum.
5115 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5117 2019-06-25 Tom Tromey <tom@tromey.com>
5119 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5120 init_and_make_win for EXEC_INFO_WIN.
5121 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5123 (struct tui_win_info) <~tui_win_info>: Inline.
5124 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5126 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5127 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5129 (tui_initialize_static_data): Update.
5130 (~tui_gen_win_info): Handle more cleanup here.
5131 (~tui_source_window_base): Delete "execution_info".
5132 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5134 2019-06-25 Tom Tromey <tom@tromey.com>
5136 * tui/tui-layout.c (make_command_window): Don't set
5138 (show_source_disasm_command): Call the reset method.
5139 (show_data): Don't set can_highlight. Call the reset method.
5140 (tui_gen_win_info::reset): Rename from init_gen_win_info
5141 (init_and_make_win): Simplify. Return tui_gen_win_info.
5142 (show_source_or_disasm_and_command): Call the reset method.
5143 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5144 (struct tui_cmd_window): Set can_highlight.
5146 2019-06-25 Tom Tromey <tom@tromey.com>
5148 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5150 (tui_make_visible, tui_make_invisible): Rewrite.
5151 (tui_win_info::make_visible): Remove.
5152 (tui_source_window_base::make_visible): Update.
5153 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5154 method. Moved from...
5155 (struct tui_win_info) <make_visible>: ...here.
5157 2019-06-25 Tom Tromey <tom@tromey.com>
5159 * tui/tui-winsource.c
5160 (tui_source_window_base::do_scroll_horizontal): Remove direction
5162 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5163 direction parameter.
5164 * tui/tui-win.c (tui_win_info::forward_scroll)
5165 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5166 (tui_win_info::right_scroll): Update.
5167 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5168 direction parameter.
5169 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5170 direction parameter.
5171 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5172 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5173 Remove direction parameter.
5174 (struct tui_source_window_base, struct tui_source_window)
5175 (struct tui_disasm_window, struct tui_data_window)
5176 (struct tui_cmd_window): Update.
5178 2019-06-25 Tom Tromey <tom@tromey.com>
5180 * tui/tui-winsource.h (tui_set_exec_info_content)
5181 (tui_show_exec_info_content, tui_erase_exec_info_content)
5182 (tui_clear_exec_info_content, tui_update_exec_info): Change
5183 argument to tui_source_window_base.
5184 * tui/tui-winsource.c (tui_set_exec_info_content)
5185 (tui_show_exec_info_content, tui_erase_exec_info_content)
5186 (tui_clear_exec_info_content, tui_update_exec_info): Change
5187 argument to tui_source_window_base.
5189 2019-06-25 Tom Tromey <tom@tromey.com>
5191 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5192 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5194 2019-06-25 Tom Tromey <tom@tromey.com>
5196 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5199 2019-06-25 Tom Tromey <tom@tromey.com>
5201 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5203 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5205 * tui/tui-source.c (tui_set_source_content): Update.
5206 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5208 2019-06-25 Tom Tromey <tom@tromey.com>
5210 * tui/tui-win.c (window_name_completer, tui_set_focus)
5211 (tui_all_windows_info): Use name method.
5212 * tui/tui-data.h (struct tui_gen_win_info)
5213 (struct tui_source_window, struct tui_disasm_window)
5214 (struct tui_data_window, struct tui_cmd_window) <name>: New
5216 (tui_win_name): Don't declare.
5217 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5218 (tui_win_name): Remove.
5220 2019-06-25 Tom Tromey <tom@tromey.com>
5222 * tui/tui-winsource.h (tui_update_source_window)
5223 (tui_update_source_window_as_is): Change parameter type.
5224 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5225 to be a tui_source_window_base.
5226 (tui_update_source_window_as_is): Likewise.
5227 * tui/tui-win.c (make_visible_with_new_height): Update.
5229 2019-06-25 Tom Tromey <tom@tromey.com>
5231 * tui/tui-winsource.c (tui_erase_source_content)
5232 (tui_show_source_content, tui_show_exec_info_content)
5233 (tui_erase_exec_info_content): Use refresh_window method.
5234 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5235 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5236 from tui_refresh_win.
5237 (tui_data_window::refresh_window): New method.
5238 (tui_win_info::refresh, tui_source_window_base::refresh)
5239 (tui_refresh_all): Use refresh_window method.
5240 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5242 * tui/tui-regs.c (tui_display_register): Call refresh_window
5244 * tui/tui-layout.c (show_source_disasm_command)
5245 (show_source_or_disasm_and_command): Call refresh_window method.
5246 * tui/tui-data.h (struct tui_gen_win_info)
5247 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5250 2019-06-25 Tom Tromey <tom@tromey.com>
5252 * tui/tui.c (tui_rl_other_window, tui_enable)
5253 (tui_is_window_visible, tui_get_command_dimension): Update.
5254 * tui/tui-winsource.c (tui_update_source_window_as_is)
5255 (tui_clear_source_content, tui_erase_source_content)
5256 (tui_show_source_line, tui_source_window_base::refill)
5257 (tui_source_window_base::do_scroll_horizontal)
5258 (tui_source_window_base::set_is_exec_point_at)
5259 (tui_update_breakpoint_info, tui_set_exec_info_content)
5260 (tui_alloc_source_buffer, tui_line_is_displayed)
5261 (tui_addr_is_displayed): Update.
5262 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5263 (tui_check_and_display_highlight_if_needed)
5264 (tui_win_info::make_visible, tui_win_info::refresh)
5265 (tui_refresh_all): Update.
5266 * tui/tui-windata.c (tui_first_data_item_displayed)
5267 (tui_delete_data_content_windows, tui_erase_data_content)
5268 (tui_display_all_data, tui_data_window::refresh_all)
5269 (tui_check_data_values): Update.
5270 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5271 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5272 (tui_win_info::backward_scroll, tui_refresh_all_win)
5273 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5274 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5275 (tui_source_window_base::set_new_height)
5276 (tui_data_window::set_new_height)
5277 (make_invisible_and_set_new_height)
5278 (make_visible_with_new_height, new_height_ok)
5279 (parse_scrolling_args): Update.
5280 * tui/tui-stack.c (tui_show_frame_info): Update.
5281 * tui/tui-source.c (tui_set_source_content)
5282 (tui_set_source_content_nil, tui_source_is_displayed)
5283 (tui_source_window::do_scroll_vertical): Update.
5284 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5285 (tui_display_registers_from, tui_display_reg_element_at_line)
5286 (tui_check_register_values, tui_reg_command): Update.
5287 * tui/tui-layout.c (tui_default_win_height)
5288 (show_source_disasm_command, show_data, init_and_make_win)
5289 (show_source_or_disasm_and_command): Update.
5290 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5291 (tui_redisplay_readline, tui_mld_flush)
5292 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5294 * tui/tui-disasm.c (tui_set_disassem_content)
5295 (tui_disasm_window::do_scroll_vertical): Update.
5296 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5298 (struct tui_win_info): Derive from tui_gen_win_info.
5299 <~tui_win_info>: Mark as override.
5300 <generic>: Remove member.
5301 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5302 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5303 (~tui_data_window, ~tui_win_info)
5304 (tui_free_all_source_wins_content): Update.
5305 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5307 2019-06-25 Tom Tromey <tom@tromey.com>
5309 * tui/tui-layout.c (init_and_make_win): Use new.
5310 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5311 destructor, initializers.
5312 (tui_alloc_generic_win_info): Don't declare.
5313 * tui/tui-data.c (_locator): Add argument to constructor.
5314 (source_win, disasm_win): New globals.
5315 (exec_info): Remove.
5316 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5318 (tui_alloc_generic_win_info): Remove.
5319 (init_content_element): Use new.
5320 (tui_win_info::tui_win_info): Update.
5321 (free_content_elements) <case DATA_WIN>: Use delete.
5323 2019-06-25 Tom Tromey <tom@tromey.com>
5325 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5326 * tui/tui-windata.c (tui_first_data_item_displayed)
5327 (tui_delete_data_content_windows): Update.
5328 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5329 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5330 (tui_display_registers_from, tui_check_register_values): Update.
5331 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5333 * tui/tui-data.c (init_content_element): Update. Allocate the new
5335 (tui_free_data_content): Update.
5336 (free_content_elements) <case DATA_WIN>: Free the window.
5338 2019-06-25 Tom Tromey <tom@tromey.com>
5340 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5342 * tui/tui-layout.c (make_command_window)
5343 (show_source_disasm_command, show_data, init_and_make_win)
5344 (show_source_or_disasm_and_command): Update.
5345 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5347 <can_highight, is_highlighted>: Now bool.
5348 (tui_set_win_highlight): Don't declare.
5349 * tui/tui-data.c (tui_set_win_highlight): Remove.
5351 2019-06-25 Tom Tromey <tom@tromey.com>
5353 * tui/tui-wingeneral.c (make_visible): Remove check of window
5356 2019-06-25 Tom Tromey <tom@tromey.com>
5358 * tui/tui-win.c (tui_win_info::max_height)
5359 (tui_cmd_window::max_height): New methods.
5360 (new_height_ok): Call max_height.
5361 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5362 <max_height>: New method.
5364 2019-06-25 Tom Tromey <tom@tromey.com>
5366 * tui/tui-win.c (tui_source_window_base::set_new_height)
5367 (tui_data_window::set_new_height): New methods.
5368 (make_invisible_and_set_new_height): Call set_new_height method.
5369 * tui/tui-data.h (struct tui_win_info)
5370 (struct tui_source_window_base, struct tui_data_window)
5371 <set_new_height>: New method.
5373 2019-06-25 Tom Tromey <tom@tromey.com>
5375 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5376 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5377 tui_refresh_data_win.
5378 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5380 (tui_refresh_all_win): Call the refresh_all method.
5381 (tui_set_focus): Likewise.
5382 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5383 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5386 2019-06-25 Tom Tromey <tom@tromey.com>
5388 * tui/tui-winsource.h (tui_refill_source_window)
5389 (tui_set_is_exec_point_at): Don't declare.
5390 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5391 (tui_source_window_base::refill): Rename from
5392 tui_refill_source_window.
5393 (tui_source_window_base::do_scroll_horizontal): Update.
5394 (tui_source_window_base::set_is_exec_point_at): Rename from
5395 tui_set_is_exec_point_at.
5396 (tui_update_all_breakpoint_info): Update.
5397 * tui/tui-stack.c (tui_show_frame_info): Update.
5398 * tui/tui-layout.c (show_data): Add cast.
5399 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5400 * tui/tui-data.h (struct tui_source_window_base) <refill,
5401 set_is_exec_point_at>: New methods.
5402 (tui_source_windows, tui_add_to_source_windows): Update types.
5403 (tui_add_to_source_windows): Remove redundant declaration.
5404 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5405 (tui_source_windows): Change return type.
5406 (tui_clear_source_windows_detail): Update.
5407 (tui_add_to_source_windows): Change type of parameter.
5408 (tui_free_all_source_wins_content): Update.
5410 2019-06-25 Tom Tromey <tom@tromey.com>
5412 * tui/tui-wingeneral.c (tui_win_info::refresh)
5413 (tui_source_window_base::refresh): New methods.
5414 (tui_refresh_all): Call the refresh method.
5415 * tui/tui-data.h (struct tui_win_info)
5416 (struct tui_source_window_base) <refresh>: New method.
5418 2019-06-25 Tom Tromey <tom@tromey.com>
5420 * tui/tui.h (tui_is_window_visible): Return bool.
5421 * tui/tui.c (tui_is_window_visible): Return bool.
5422 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5423 (tui_make_visible, tui_make_invisible)
5424 (tui_win_info::make_visible)
5425 (tui_source_window_base::make_visible, make_all_visible)
5426 (tui_make_all_visible, tui_make_all_invisible): Update.
5427 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5428 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5430 (struct tui_win_info, struct tui_source_window_base)
5431 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5432 * tui/tui-data.c (tui_init_generic_part): Update.
5434 2019-06-25 Tom Tromey <tom@tromey.com>
5436 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5437 (tui_source_window_base::make_visible): New methods.
5438 (make_all_visible): Make method call.
5439 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5440 (struct tui_source_window_base, struct tui_cmd_window): Override
5442 (tui_win_is_source_type): Don't declare.
5443 * tui/tui-data.c (tui_win_is_source_type): Remove.
5445 2019-06-25 Tom Tromey <tom@tromey.com>
5447 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5450 2019-06-25 Tom Tromey <tom@tromey.com>
5452 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5453 Inline constructor. Add initializers for members.
5454 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5455 constructors; now inline in class.
5457 2019-06-25 Tom Tromey <tom@tromey.com>
5459 * tui/tui-regs.c (tui_show_registers): Update.
5460 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5462 * tui/tui-data.c (tui_data_window::clear_detail)
5463 (tui_data_window): Update.
5465 2019-06-25 Tom Tromey <tom@tromey.com>
5467 * tui/tui-windata.c (tui_display_all_data)
5468 (tui_display_data_from_line, tui_display_data_from)
5469 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5471 * tui/tui-regs.c (tui_last_regs_line_no)
5472 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5473 (tui_show_registers, tui_show_register_group)
5474 (tui_display_registers_from, tui_display_reg_element_at_line)
5475 (tui_display_registers_from_line, tui_check_register_values)
5476 (tui_reg_next, tui_reg_prev): Update.
5477 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5478 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5480 (struct tui_win_info) <detail>: Remove. Add new fields from
5482 (TUI_DATA_WIN): Add cast.
5483 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5484 (~tui_data_window): Simplify.
5486 2019-06-25 Tom Tromey <tom@tromey.com>
5488 * tui/tui-layout.c (show_source_disasm_command)
5489 (show_source_or_disasm_and_command): Update.
5490 * tui/tui-io.c (update_cmdwin_start_line)
5491 (tui_redisplay_readline): Update.
5492 * tui/tui-data.h (struct tui_command_info): Remove.
5493 (struct tui_win_info) <detail>: Remove command_info member.
5494 (struct tui_data_window) <start_line>: New member, from
5496 (TUI_CMD_WIN): Add casts.
5498 2019-06-25 Tom Tromey <tom@tromey.com>
5500 * tui/tui-winsource.c (tui_update_source_window)
5501 (tui_refill_source_window)
5502 (tui_source_window_base::do_scroll_horizontal)
5503 (tui_update_breakpoint_info, tui_set_exec_info_content)
5504 (tui_show_exec_info_content, tui_erase_exec_info_content)
5505 (tui_clear_exec_info_content): Update.
5506 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5508 * tui/tui-win.c (make_invisible_and_set_new_height)
5509 (make_visible_with_new_height): Update.
5510 * tui/tui-source.c (tui_set_source_content)
5511 (tui_show_symtab_source): Update.
5512 * tui/tui-layout.c (extract_display_start_addr)
5513 (show_source_disasm_command, show_data)
5514 (make_source_or_disasm_window)
5515 (show_source_or_disasm_and_command): Update.
5516 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5517 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5519 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5520 to tui_source_window_base.
5521 (struct tui_win_info) <detail>: Remove source_info member.
5522 (struct tui_source_window_base) <has_locator>: Inline.
5523 Move contents from tui_source_info; rename has_locator member to
5525 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5526 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5528 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5530 (tui_free_all_source_wins_content): Cast to
5531 tui_source_window_base.
5533 2019-06-25 Tom Tromey <tom@tromey.com>
5535 * tui/tui-win.c (make_invisible_and_set_new_height)
5536 (make_visible_with_new_height): Call has_locator method.
5537 * tui/tui-layout.c (show_source_disasm_command, show_data)
5538 (show_source_or_disasm_and_command): Update for bool change.
5539 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5540 (tui_win_info) <has_locator>: New method.
5541 (struct tui_source_window_base) <has_locator>: New method.
5542 (tui_win_has_locator): Don't declare.
5543 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5544 from tui_win_has_locator.
5545 (tui_source_window_base): Use false, not FALSE.
5547 2019-06-25 Tom Tromey <tom@tromey.com>
5549 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5550 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5551 clear_detail method directly.
5552 (tui_clear_win_detail): Remove.
5554 2019-06-25 Tom Tromey <tom@tromey.com>
5556 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5557 "this", not TUI_DISASM_WIN.
5559 2019-06-25 Tom Tromey <tom@tromey.com>
5561 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5563 * tui/tui-winsource.c
5564 (tui_source_window_base::do_scroll_horizontal): Rename from
5565 tui_horizontal_source_scroll.
5566 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5567 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5568 from tui_vertical_data_scroll.
5569 * tui/tui-win.h (tui_scroll): Don't declare.
5570 * tui/tui-win.c (tui_win_info::forward_scroll)
5571 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5572 (tui_win_info::right_scroll): Rename and update.
5573 (tui_scroll_forward_command, tui_scroll_backward_command)
5574 (tui_scroll_left_command, tui_scroll_right_command): Update.
5575 (tui_scroll): Remove.
5576 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5577 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5578 from tui_vertical_source_scroll.
5579 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5580 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5581 from tui_vertical_disassem_scroll.
5582 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5583 do_scroll_horizontal>: New methods.
5584 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5586 (struct tui_source_window_base): Add do_scroll_horizontal.
5587 (struct tui_source_window, struct tui_disasm_window): Add
5589 (struct tui_data_window, struct tui_cmd_window): Add
5590 do_scroll_horizontal and do_scroll_vertical.
5591 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5593 2019-06-25 Tom Tromey <tom@tromey.com>
5595 * tui/tui-data.h (struct tui_source_window_base): New struct.
5596 (struct tui_source_window): Derive from tui_source_window_base.
5597 (struct tui_disasm_window): New struct.
5598 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5599 from tui_source_window::clear_detail.
5600 (tui_source_window_base): Rename from tui_source_window.
5601 (~tui_source_window_base): Rename from ~tui_source_window.
5602 (tui_alloc_win_info): Create a tui_disasm_window.
5604 2019-06-25 Tom Tromey <tom@tromey.com>
5606 * tui/tui-data.h (struct tui_source_window)
5607 (struct tui_data_window): Declare destructors.
5608 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5610 (tui_win_info): Simplify.
5612 2019-06-25 Tom Tromey <tom@tromey.com>
5614 * tui/tui-winsource.c (tui_display_main)
5615 (tui_update_source_windows_with_addr)
5616 (tui_update_all_breakpoint_info): Update.
5617 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5618 (new_height_ok, parse_scrolling_args): Update.
5619 * tui/tui-stack.c (tui_show_frame_info): Update.
5620 * tui/tui-data.h (struct tui_list): Remove.
5621 (tui_source_windows): Return a reference to a std::vector.
5622 * tui/tui-data.c (source_windows): Now a std::vector.
5623 (tui_source_windows): Change return type.
5624 (tui_clear_source_windows): Rewrite.
5625 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5626 (tui_free_all_source_wins_content): Rewrite.
5628 2019-06-25 Tom Tromey <tom@tromey.com>
5630 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5631 (struct tui_data_window, struct tui_cmd_window): Declare
5632 clear_detail method.
5633 * tui/tui-data.c (tui_source_window::clear_detail)
5634 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5636 (tui_clear_win_detail): Simplify.
5638 2019-06-25 Tom Tromey <tom@tromey.com>
5640 * tui/tui-layout.c (make_source_window, make_disasm_window)
5641 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5642 Return the new window.
5643 (show_source_disasm_command, show_data)
5644 (show_source_or_disasm_and_command): Update.
5646 2019-06-25 Tom Tromey <tom@tromey.com>
5648 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5649 parameter. Return the new window.
5650 (show_source_disasm_command): Update and remove NULL check.
5651 (show_source_or_disasm_and_command): Update.
5653 2019-06-25 Tom Tromey <tom@tromey.com>
5655 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5657 2019-06-25 Tom Tromey <tom@tromey.com>
5659 * tui/tui-data.h (struct tui_win_info): Make constructor
5660 protected. Make destructor virtual. Add initializers.
5661 (tui_source_window, tui_data_window, tui_cmd_window): New
5663 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5664 constructor. Add "type" parameter.
5665 (tui_source_window, tui_data_window, tui_cmd_window): New
5667 (tui_alloc_win_info): Instantiate the appropriate subclass.
5669 2019-06-25 Tom Tromey <tom@tromey.com>
5671 * tui/tui-win.c (tui_resize_all): Use delete.
5672 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5674 (tui_free_window): Don't declare.
5675 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5678 2019-06-25 Tom Tromey <tom@tromey.com>
5680 * tui/tui-data.h (struct tui_win_info): Add constructor.
5681 * tui/tui-data.c (tui_alloc_win_info): Use new.
5682 (tui_free_window): Use delete.
5684 2019-06-22 Tom Tromey <tom@tromey.com>
5686 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5688 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5690 2019-06-22 Tom Tromey <tom@tromey.com>
5692 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5694 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5696 2019-06-22 Tom de Vries <tdevries@suse.de>
5698 * dwarf2read.c (create_addrmap_from_aranges)
5699 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5702 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5704 * dwarf2read.h (dwarf2_section_info_def): Remove.
5705 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5706 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5707 std::vector<dwarf2_section_info>.
5708 (struct dwo_file) <~dwo_file>: Remove.
5709 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5711 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5712 (dwarf2_read_debug_names): Likewise.
5713 (create_debug_types_hash_table): Change parameter type to
5714 array_view, adjust code accordingly.
5715 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5716 (partial_die_info::fixup): Likewise.
5717 (determine_prefix): Likewise.
5718 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5720 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5722 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5724 <~dwo_file>: Remove call to gdb_bfd_unref.
5725 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5726 gdb_bfd_ref_ptr::get.
5728 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5730 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5732 * dwarf2read.c (struct dwo_file): Initialize fields.
5734 (free_dwo_file): Remove, move content to ~dwo_file.
5735 (struct dwo_file_deleter): Remove.
5736 (dwo_file_up>: Remove custom deleter.
5737 (free_dwo_files): Remove.
5738 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5740 (process_skeletonless_type_units): Call unique_ptr::get.
5741 (allocate_dwo_file_hash_table): Add deleter to created hash
5742 table. Change return type to htab_up.
5743 (lookup_dwo_file_slot): Don't memset dwo_file, call
5745 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5746 (create_dwo_unit_in_dwp_v2): Likewise.
5747 (open_and_init_dwo_file): Likewise.
5748 (free_dwo_file_from_slot): Remove.
5750 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5752 * dwarf2read.h (struct dwarf2_section_info) <readin,
5753 is_virtual>: Change type to bool.
5754 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
5757 2019-06-19 Tom Tromey <tom@tromey.com>
5759 * tui/tui-data.h (tui_init_content_element): Don't declare.
5761 2019-06-19 Tom Tromey <tom@tromey.com>
5763 * tui/tui-data.h (tui_init_win_info): Don't declare.
5765 2019-06-19 Tom de Vries <tdevries@suse.de>
5767 * dwarf2read.h (abstract_to_concrete): Change type to
5768 std::unordered_map<sect_offset, std::vector<sect_offset>,
5769 gdb::hash_enum<sect_offset>>.
5771 2019-06-19 Tom Tromey <tromey@adacore.com>
5773 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
5774 EVAL_AVOID_SIDE_EFFECTS specially.
5776 2019-06-19 Tom Tromey <tromey@adacore.com>
5778 * source-cache.c (highlighter): New global.
5779 (source_cache::get_source_lines): Create a highlighter on demand.
5781 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
5783 * defs.h (deprecated_interactive_hook): Delete declaration.
5784 * interps.c (clear_interpreter_hooks): Remove use of
5785 deprecated_interactive_hook.
5786 * top.c (deprecated_interactive_hook): Delete definition.
5787 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
5789 2019-06-18 Tom de Vries <tdevries@suse.de>
5792 * dwarf2read.h (abstract_to_concrete): Change type from
5793 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
5794 std::unordered_map<sect_offset, std::vector<sect_offset>>.
5795 * dwarf2read.c (read_variable): Update.
5796 (dwarf2_fetch_die_loc_sect_off): Update.
5798 2019-06-17 Tom de Vries <tdevries@suse.de>
5801 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
5802 accessing parent[parent_len - 1].
5804 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5807 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
5808 call dtrace_process_dof with NULL dof.
5810 2019-06-16 Tom de Vries <tdevries@suse.de>
5813 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
5815 2019-06-16 Tom Tromey <tom@tromey.com>
5817 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5818 (make_all_visible): Use address of member.
5820 2019-06-16 Tom Tromey <tom@tromey.com>
5822 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
5823 (tui_free_window, free_content, free_content_elements): Remove
5825 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
5827 * tui/tui-regs.c (tui_show_register_group)
5828 (tui_display_registers_from, tui_display_reg_element_at_line):
5829 Remove unnecessary cast.
5831 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5833 * linux-nat.c (normal_mask): Delete.
5834 (_initialize_linux_nat): Don't initialise normal_mask.
5836 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
5839 * dwarf-index-write.h (write_psymtabs_to_index): Add
5840 dwz_basename parameter.
5841 * dwarf-index-write.c (write_gdbindex): Move file writing to
5842 write_gdbindex_1. Change return type void.
5843 (assert_file_size): Move up, remove filename parameter.
5844 (write_gdbindex_1): New function.
5845 (write_debug_names): Change return type to void, call
5847 (struct index_wip_file): New struct.
5848 (write_psymtabs_to_index): Add dwz_basename parameter. Move
5849 file logic to index_wip_file. Write index for dwz file if
5851 (save_gdb_index_command): Pass basename of dwz file, if present.
5852 * dwarf-index-cache.c (index_cache::store): Obtain and pass
5853 build-id of dwz file, if present.
5854 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
5855 (dwarf2_get_dwz_file): Likewise.
5856 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
5857 (dwarf2_get_dwz_file): Likewise.
5859 2019-06-16 Tom Tromey <tom@tromey.com>
5861 * coffread.c (process_coff_symbol): Use xstrdup.
5862 * value.c (create_internalvar): Use xstrdup.
5864 2019-06-16 Tom Tromey <tom@tromey.com>
5866 * valops.c (value_cast, value_slice): Remove unnecessary cast.
5867 * breakpoint.c (stopin_command, stopat_command)
5868 (until_break_command, decode_location_default): Remove unnecessary
5870 * utils.c (subset_compare): Remove unnecessary cast.
5871 * ada-lang.c (ada_update_initial_language): Remove unnecessary
5873 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
5875 * infcmd.c (path_command): Remove unnecessary cast.
5876 * coffread.c (decode_type): Remove unnecessary cast.
5877 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
5878 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
5879 * tui/tui-stack.c (tui_show_locator_content)
5880 (tui_show_frame_info): Remove unnecessary cast.
5881 * tui/tui-win.c (tui_scroll_forward_command)
5882 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
5883 (parse_scrolling_args): Remove unnecessary cast.
5884 * tui/tui-data.c (init_win_info, tui_del_window)
5885 (tui_free_window, tui_del_data_windows, tui_free_data_content)
5886 (free_content_elements): Remove unnecessary cast.
5887 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
5889 * tui/tui-source.c (tui_set_source_content)
5890 (tui_vertical_source_scroll): Remove unnecessary cast.
5891 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
5893 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
5894 * tui/tui-regs.c (tui_display_registers_from)
5895 (tui_display_register): Remove unnecessary cast.
5896 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
5897 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
5898 (make_visible): Remove unnecessary cast.
5899 * tui/tui-winsource.c (tui_erase_source_content)
5900 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
5902 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
5903 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
5904 * stabsread.c (read_type, read_array_type, read_range_type):
5905 Remove unnecessary cast.
5906 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
5907 (parse_symbol, parse_type, upgrade_type, parse_external)
5908 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
5910 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
5912 2019-06-16 Tom Tromey <tom@tromey.com>
5914 * tui/tui-data.c (tui_alloc_generic_win_info)
5915 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
5918 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
5919 Andrew Burgess <andrew.burgess@embecosm.com>
5921 * f-typeprint.c (f_print_type): Don't return early for not
5922 associated or not allocated types.
5923 (f_type_print_varspec_suffix): Add print_rank parameter and print
5924 ranks of array types in case they dangling.
5925 (f_type_print_base): Add print_rank parameter.
5927 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5929 * NEWS: Mention new MI commands.
5930 * break-catch-throw.c (enum exception_event_kind): Move to
5932 (print_mention_exception_catchpoint): Output text as a single
5934 (catch_exception_command_1): Rename to...
5935 (catch_exception_event): ...this, make non-static, update header
5936 command, and change some parameter types.
5937 (catch_catch_command): Update for changes to
5938 catch_exception_command_1.
5939 (catch_throw_command): Likewise.
5940 (catch_rethrow_command): Likewise.
5941 * breakpoint.c (enum exception_event_kind): Delete.
5942 * breakpoint.h (enum exception_event_kind): Moved here from
5943 break-catch-throw.c.
5944 (catch_exception_event): Declare.
5945 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
5946 (mi_cmd_catch_throw): New function.
5947 (mi_cmd_catch_rethrow): New function.
5948 (mi_cmd_catch_catch): New function.
5949 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
5950 'catch-catch' entries.
5951 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
5952 (mi_cmd_catch_rethrow): Declare.
5953 (mi_cmd_catch_catch): Declare.
5955 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5957 * annotate.c (annotate_source_line): Change return type to void,
5958 update implementation to match.
5959 * annotate.h (annotate_source_line): Change return type to void,
5960 update header comment.
5961 * stack.c (print_frame_info): Don't change what frame information
5962 is printed based on whether annotations are on or not.
5964 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5966 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
5967 (annotate_source): Make static.
5968 (annotate_source_line): Moved from source.c and renamed from
5969 identify_source_line. Update the return type.
5970 * annotate.h (annotate_source): Delete declaration.
5971 (annotate_source_line): Declaration moved from source.h, and
5972 renamed from identify_source_line. Return type updated.
5973 * source.c (identify_source_line): Moved to annotate.c and renamed
5974 to annotate_source_line.
5975 (info_line_command): Remove check of annotation_level.
5976 * source.h (identify_source_line): Move declaration to annotate.h
5977 and rename to annotate_source_line.
5978 * stack.c: Add 'annotate.h' include.
5979 (print_frame_info): Remove check of annotation_level before
5980 calling annotate_source_line.
5982 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
5984 * source-cache.c (source_cache::get_plain_source_lines): Use
5985 open_source_file_with_line_charpos instead of just
5986 open_source_file, remove call to find_source_lines.
5987 (source_cache::get_source_lines): Likewise.
5988 * source.c (find_source_lines): Make static.
5989 (get_filename_and_charpos): Renamed into...
5990 (open_source_file_with_line_charpos): ..this along with changes to
5991 return a scoped_fd, and some other minor clean ups.
5992 (identify_source_line): Use open_source_file_with_line_charpos.
5993 (search_command_helper): Use open_source_file_with_line_charpos
5994 instead of just open_source_file, remove call to
5996 * source.h (open_source_file_with_line_charpos): Declare new
5998 (find_source_lines): Delete declaration.
6000 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6002 * source.c (get_filename_and_charpos): Remove fullname
6004 (identify_source_line): Update call to get_filename_and_charpos.
6006 2019-06-14 Tom Tromey <tromey@adacore.com>
6009 * ui-style.h (skip_ansi_escape): Update comment.
6010 * ui-file.h (class no_terminal_escape_file): New class.
6011 * ui-file.c (no_terminal_escape_file::write)
6012 (no_terminal_escape_file::puts): New methods.
6013 * cli/cli-logging.c (handle_redirections): Use
6014 no_terminal_escape_file.
6016 2019-06-14 Tom Tromey <tromey@adacore.com>
6018 * NEWS: Move convenience variable news above Python news.
6020 2019-06-14 Tom Tromey <tom@tromey.com>
6022 * gnulib: Move directory to top-level.
6023 * configure.ac: Don't configure gnulib.
6024 * configure: Rebuild.
6025 * common/common-defs.h: Use new path to gnulib.
6026 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6028 (INCGNU): Look in new gnulib location.
6029 (HFILES_NO_SRCDIR): Remove gnulib files.
6030 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6031 (generated_files): Remove GNULIB_H.
6032 ($(LIBGNU), all-lib): Remove targets.
6033 (distclean): Don't mention GNULIB_BUILDDIR.
6034 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6036 2019-06-14 Tom Tromey <tromey@adacore.com>
6038 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6039 Warn if symbol file does not provide any symbols.
6041 2019-06-14 Tom Tromey <tromey@adacore.com>
6043 * source.c (find_and_open_source): Respect basenames_may_differ.
6045 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6047 * annotate.c (annotate_breakpoints_invalid): Make use of
6048 scoped_restore_terminal_state.
6049 (annotate_frames_invalid): Likewise.
6051 2019-06-14 Tom Tromey <tromey@adacore.com>
6053 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6054 allow assignment to an internalvar.
6056 2019-06-14 Tom Tromey <tromey@adacore.com>
6058 * ada-lex.l: Allow "_" in attribute names.
6060 2019-06-14 Tom Tromey <tromey@adacore.com>
6063 * regcache.c (registers_changed): Don't call alloca.
6064 * top.c (execute_command): Don't call alloca.
6066 2019-06-13 Pedro Alves <palves@redhat.com>
6068 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6069 'expression'. When parsing an expression, error out if there's
6070 junk after "unlimited".
6071 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6072 (do_set_command): Adjust calls to is_unlimited_literal.
6074 2019-06-13 Pedro Alves <palves@redhat.com>
6076 * compile/compile.c (make_compile_options_def_group): Add braces
6077 around array_view initializer.
6078 * thread.c (make_thread_apply_all_options_def_group)
6079 (make_thread_apply_all_options_def_group): Likewise.
6081 2019-06-13 Pedro Alves <palves@redhat.com>
6083 * NEWS (New commands): Mention "maint test-options
6084 require-delimiter", "maint test-options unknown-is-error", "maint
6085 test-options unknown-is-operand" and "maint show
6086 test-options-completion-result".
6087 (New command options, command completion): New section.
6088 (Completion improvements): New section.
6089 Mention that you can abbreviate "unlimited".
6091 2019-06-13 Pedro Alves <palves@redhat.com>
6093 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6094 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6095 * unittests/cli-utils-selftests.c (test_parse_flags)
6096 (test_parse_flags_qcs): Delete.
6097 (test_cli_utils): Don't call deleted functions.
6099 2019-06-13 Pedro Alves <palves@redhat.com>
6101 * thread.c: Include "cli/cli-option.h".
6102 (tp_array_compar_ascending): Global.
6103 (tp_array_compar): Delete function.
6104 (tp_array_compar_ascending, tp_array_compar_descending): New
6106 (ascending_option_def, qcs_flag_option_def)
6107 (thr_qcs_flags_option_defs)
6108 (make_thread_apply_all_options_def_group)
6109 (make_thread_apply_options_def_group): New.
6110 (thread_apply_all_command): Use gdb::option::process_options.
6111 (thread_apply_command_completer)
6112 (thread_apply_all_command_completer): New.
6113 (thread_apply_command): Use gdb::option::process_options.
6114 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6115 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6116 to generate help text of "thread apply". Adjust "taas"'s help.
6117 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6118 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6120 2019-06-13 Pedro Alves <palves@redhat.com>
6122 * thread.c (thread_apply_command): Check for invalid TID with
6123 isdigit instead of !isalpha.
6125 2019-06-13 Pedro Alves <palves@redhat.com>
6127 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6128 (validate_flags_qcs): New.
6129 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6130 (validate_flags_qcs): Declare.
6131 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6132 (make_frame_apply_options_def_group): New.
6133 (frame_apply_command_count): Process options with
6134 gdb::option::process_options.
6135 (frame_apply_completer): New.
6136 (frame_apply_level_completer, frame_apply_all_completer)
6137 (frame_apply_completer): New.
6138 (_initialize_stack): Update help of "frame apply", "frame apply
6139 level", "frame apply all" and "faas" to mention supported options
6140 and install command completers.
6141 * stack.h (frame_apply_all_completer): Declare.
6142 * thread.c: Include "stack.h".
6143 (tfaas_command): Add "--".
6144 (_initialize_thread): Update help "tfaas" to mention supported
6145 options and install command completer.
6147 2019-06-13 Pedro Alves <palves@redhat.com>
6149 * completer.c (complete_nested_command_line): New.
6150 (gdb_completion_word_break_characters_throw): Add assertion.
6151 * completer.h (complete_nested_command_line): Declare.
6153 2019-06-13 Pedro Alves <palves@redhat.com>
6155 * stack.c (parse_backtrace_qualifiers): New.
6156 (backtrace_command): Use it.
6157 (backtrace_command_completer): Complete on qualifiers.
6159 2019-06-13 Pedro Alves <palves@redhat.com>
6161 * frame.c: Include "cli/cli-option.h.
6162 (user_set_backtrace_options): New.
6163 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6165 (get_prev_frame): Adjust.
6166 (boolean_option_def, uinteger_option_def)
6167 (set_backtrace_option_defs): New.
6168 (_initialize_frame): Adjust and use
6169 gdb::option::add_setshow_cmds_for_options to install "set
6170 backtrace past-main" and "set backtrace past-entry".
6171 * frame.h: Include "cli/cli-option.h".
6172 (struct frame_print_options): Forward declare.
6173 (print_frame_arguments_all, print_frame_arguments_scalars)
6174 (print_frame_arguments_none): Declare.
6175 (print_entry_values): Delete declaration.
6176 (struct frame_print_options, user_frame_print_options): New.
6177 (struct set_backtrace_options): New.
6178 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6180 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6181 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6182 (list_args_or_locals): Add frame_print_options parameter.
6183 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6184 * python/py-framefilter.c (enumerate_args): Pass down
6185 USER_FRAME_PRINT_OPTIONS.
6186 * stack.c: Include "cli/cli-option.h".
6187 (print_frame_arguments_all, print_frame_arguments_scalars)
6188 (print_frame_arguments_none): Declare.
6189 (print_raw_frame_arguments, print_entry_values): Delete.
6190 (user_frame_print_options): New.
6191 (boolean_option_def, enum_option_def, frame_print_option_defs):
6193 (struct backtrace_cmd_options): New.
6194 (bt_flag_option_def): New.
6195 (backtrace_command_option_defs): New.
6196 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6197 (print_frame_arg, read_frame_arg, print_frame_args)
6198 (print_frame_info, print_frame): Add frame_print_options parameter
6200 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6201 (backtrace_command_1): Add frame_print_options and
6202 backtrace_cmd_options parameters and use them.
6203 (make_backtrace_options_def_group): New.
6204 (backtrace_command): Process command options with
6205 gdb::option::process_options.
6206 (backtrace_command_completer): New.
6207 (_initialize_stack): Extend "backtrace"'s help to mention
6208 supported options. Install completer for "backtrace".
6209 Install some settings commands with add_setshow_cmds_for_options.
6211 2019-06-13 Pedro Alves <palves@redhat.com>
6213 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6214 and that "set/show print raw frame-arguments" are now deprecated.
6216 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6218 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6219 * stack.c (_initialize_stack): Install "set/show print
6220 raw-frame-arguments", and deprecate "set/show print raw
6222 * valprint.c (_initialize_valprint): Deprecate "set/show print
6225 2019-06-13 Pedro Alves <palves@redhat.com>
6227 * compile/compile.c (struct compile_options): New.
6228 (compile_flag_option_def, compile_command_option_defs)
6229 (make_compile_options_def_group): New.
6230 (compile_file_command): Handle options with
6231 gdb::option::process_options.
6232 (compile_file_command_completer): New function.
6233 (compile_code_command): Handle options with
6234 gdb::option::process_options.
6235 (compile_code_command_completer): New function.
6236 (_initialize_compiler): Install completers for "compile code" and
6237 "compile file". Mention available options in "compile code" and
6238 "compile code"'s help.
6239 * completer.c (advance_to_completion_word): New, factored out from
6241 (advance_to_expression_complete_word_point): ... this.
6242 (advance_to_filename_complete_word_point): New.
6243 * completer.h (advance_to_filename_complete_word_point): New
6246 2019-06-13 Pedro Alves <palves@redhat.com>
6248 * compile/compile.c: Include "cli/cli-option.h".
6249 (compile_print_value): Scope data pointer is now a
6250 value_print_options pointer; adjust.
6251 (compile_print_command): Process options. Scope data pointer is
6252 now a value_print_options pointer; adjust.
6253 (_initialize_compile): Update "compile print"'s help to include
6254 supported options. Install a completer for "compile print".
6255 * cp-valprint.c (show_vtblprint, show_objectprint)
6256 (show_static_field_print): Delete.
6257 (_initialize_cp_valprint): Don't install "set print
6258 static-members", "set print vtbl", "set print object" here.
6259 * printcmd.c: Include "cli/cli-option.h" and
6260 "common/gdb_optional.h".
6261 (print_command_parse_format): Rework to fill in a
6262 value_print_options instead of a format_data.
6263 (print_value): Change parameter type from format_data pointer to
6264 value_print_options reference. Adjust.
6265 (print_command_1): Process options. Adjust to pass down a
6266 value_print_options.
6267 (print_command_completer): New.
6268 (_initialize_printcmd): Install print_command_completer as
6269 handle_brkchars completer for the "print" command. Update
6270 "print"'s help to include supported options.
6271 * valprint.c: Include "cli/cli-option.h".
6272 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6273 here from cp-valprint.c.
6274 (boolean_option_def, uinteger_option_def)
6275 (value_print_option_defs, make_value_print_options_def_group):
6276 New. Use gdb::option::add_setshow_cmds_for_options to install
6277 "set print elements", "set print null-stop", "set print repeats",
6278 "set print pretty", "set print union", "set print array", "set
6279 print address", "set print symbol", "set print array-indexes".
6280 * valprint.h: Include <string> and "cli/cli-option.h".
6281 (make_value_print_options_def_group): Declare.
6282 (print_value): Change parameter type from format_data pointer to
6283 value_print_options reference.
6284 (print_command_completer): Declare.
6286 2019-06-13 Pedro Alves <palves@redhat.com>
6288 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6289 (COMMON_SFILES): Add maint-test-settings.c.
6290 * cli/cli-decode.c (boolean_enums): New global, factored out from
6292 (add_setshow_boolean_cmd): ... here.
6293 * cli/cli-decode.h (boolean_enums): Declare.
6294 * cli/cli-option.c: New file.
6295 * cli/cli-option.h: New file.
6296 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6297 factored out from ...
6298 (parse_cli_boolean_value(const char *)): ... this.
6299 (is_unlimited_literal): Change parameter type to pointer to
6300 pointer. Adjust and advance ARG pointer.
6301 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6302 (parse_cli_var_enum): New, factored out from ...
6303 (do_set_command): ... this. Adjust.
6304 * cli/cli-setshow.h (parse_cli_boolean_value)
6305 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6306 (parse_cli_var_enum): Declare.
6307 * cli/cli-utils.c: Include "cli/cli-option.h".
6308 (get_ulongest): New.
6309 * cli/cli-utils.h (get_ulongest): Declare.
6310 (check_for_argument): New overloads.
6311 * maint-test-options.c: New file.
6313 2019-06-13 Pedro Alves <palves@redhat.com>
6315 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6316 parse a range if "-" is at the end of the string.
6318 2019-06-13 Pedro Alves <palves@redhat.com>
6320 * cli/cli-setshow.c (parse_auto_binary_operation)
6321 (parse_cli_boolean_value): Don't allow "o".
6323 2019-06-13 Pedro Alves <palves@redhat.com>
6325 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6326 * NEWS: Mention maint test-settings KIND.
6327 * maint-test-settings.c: New file.
6329 2019-06-13 Pedro Alves <palves@redhat.com>
6331 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6333 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6336 2019-06-13 Pedro Alves <palves@redhat.com>
6338 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6341 2019-06-13 Pedro Alves <palves@redhat.com>
6343 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6345 2019-06-13 Pedro Alves <palves@redhat.com>
6347 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6348 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6350 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6351 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6353 (check_for_argument): Skip spaces after argument.
6355 2019-06-13 Pedro Alves <palves@redhat.com>
6357 * thread.c (thread_apply_command): Adjust TID parsing.
6358 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6359 detected before end of string.
6360 (tid_is_in_list): Error out if LIST is invalid.
6362 2019-06-13 Pedro Alves <palves@redhat.com>
6364 * completer.c (complete_line_internal_1): Rewind completion word
6366 (completion_tracker::advance_custom_word_point_by): Change
6367 parameter type to int.
6368 * completer.h (completion_tracker::advance_custom_word_point_by):
6371 2019-06-13 Pedro Alves <palves@redhat.com>
6373 * completer.c (advance_to_completion_word): Handle delimiters.
6375 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6377 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6379 2019-06-11 Tom Tromey <tom@tromey.com>
6381 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6382 (xmalloc_failed): Move to alloc.c.
6383 * alloc.c: New file.
6384 * Makefile.in (COMMON_SFILES): Add alloc.c.
6386 2019-06-11 Tom Tromey <tom@tromey.com>
6388 * nat/linux-waitpid.c: Don't include server.h.
6389 (linux_debug): Remove.
6390 (my_waitpid): Update.
6392 2019-06-11 Tom Tromey <tromey@adacore.com>
6394 * infcall.c (_initialize_infcall): Remove trailing newline from
6396 * user-regs.c (_initialize_user_regs): Remove trailing newline
6398 * typeprint.c (_initialize_typeprint): Remove trailing newline
6400 * reverse.c (_initialize_reverse): Remove trailing newlines from
6402 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6404 * language.c (add_set_language_command): Remove trailing newline
6406 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6408 * disasm.c (_initialize_disasm): Remove trailing newline from
6410 * top.c (init_main): Remove trailing newline from help.
6411 * interps.c (_initialize_interpreter): Remove trailing newline
6413 * btrace.c (_initialize_btrace): Remove trailing newlines from
6415 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6417 * python/python.c (_initialize_python): Remove trailing newline
6419 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6421 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6422 from help. Reformat some text.
6423 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6425 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6428 2019-06-11 Tom Tromey <tromey@adacore.com>
6430 * darwin-nat.c (darwin_decode_exception_message)
6431 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6433 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6435 * valops.c (value_slice): Check for not allocated or not
6438 2019-06-10 Tom de Vries <tdevries@suse.de>
6441 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6442 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6445 2019-06-10 Tom de Vries <tdevries@suse.de>
6448 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6449 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6451 2019-06-10 Tom de Vries <tdevries@suse.de>
6454 * symtab.c (struct demangled_name_entry): Add language field.
6455 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6456 static minimal symbol". Set and use language field.
6458 2019-06-10 Tom Tromey <tromey@adacore.com>
6460 * ada-lang.c (_initialize_ada_language): Update help text.
6462 2019-06-10 Tom Tromey <tromey@adacore.com>
6464 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6466 * guile/guile.c (handle_boot_error): Don't end warning with a
6468 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6469 warning with a newline.
6470 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6472 (s12z_frame_cache): Likewise.
6473 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6475 * solib-svr4.c (disable_probes_interface): Don't end warning with
6477 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6479 * python/python.c (do_finish_initialization): Don't end warning
6482 2019-06-10 Tom Tromey <tom@tromey.com>
6484 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6485 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6488 2019-06-10 Tom Tromey <tromey@adacore.com>
6490 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6492 (elf_new_init): Don't call stabsread_new_init.
6493 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6494 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6495 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6497 2019-06-10 Tom de Vries <tdevries@suse.de>
6501 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6503 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6505 * source.c (find_and_open_source): Also rewrite relative file
6508 2019-04-26 Amos Bird <amosbird@gmail.com>
6510 * annotate.c (annotate_thread_exited): Add "thread-exited"
6513 2019-06-06 Tom Tromey <tromey@adacore.com>
6515 * maint.h (class scoped_command_stats): Use
6516 DISABLE_COPY_AND_ASSIGN.
6517 <print_time>: New method.
6518 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6520 (scoped_command_stats::print_time): New method.
6522 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6524 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6525 instructions of lengths 6 or 8 bytes.
6527 2019-06-04 Pedro Alves <palves@redhat.com>
6529 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6531 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6532 * breakpoint.c (condition_completer): Likewise.
6533 * cli/cli-dump.c (scan_expression): Likewise.
6534 * common/filestuff.c (mkdir_recursive): Likewise.
6535 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6536 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6537 (gdb_abspath): Likewise.
6538 * compile/compile-cplus-types.c
6539 (compile_cplus_instance::decl_name): Likewise.
6540 * completer.c (complete_explicit_location):
6541 (signal_completer, reg_or_group_completer_1): Likewise.
6542 * cp-support.c (cp_remove_params_if_any): Likewise.
6543 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6544 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6545 * infcmd.c (strip_bg_char): Likewise.
6546 * linespec.c (copy_token_string): Likewise.
6547 * mi/mi-main.c (output_cores): Likewise.
6548 * psymtab.c (psymtab_search_name):
6549 * symfile.c (test_set_ext_lang_command): Likewise.
6550 * target.c (target_fileio_read_stralloc): Likewise.
6551 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6552 * value.c (complete_internalvar): Likewise.
6554 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6556 Add objfile property to gdb.Type.
6557 * NEWS: Mention Python API addition.
6558 * python/py-type.c (typy_get_objfile): New method.
6560 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6562 * NEWS: Mention the new set|show style [title|highlight].
6563 Mention changes to "show style", "help" and "apropos".
6565 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6567 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6568 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6569 instead of print_help_for_command.
6570 (print_doc_of_command): New function.
6571 (help_list): Add 'apropos -v word' suggestion.
6572 (print_help_for_command): Style the command name using title style.
6573 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6574 (_initialize_cli_cmds): Describe -v in apropos_command help.
6576 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6578 * cli/cli-style.h (cli_style_option): Add name in constructor,
6579 add m_name class member, add constructor with intensity,
6580 add name class function.
6581 (cli_style_option::add_setshow_commands): Remove name argument.
6582 (highlight_style, title_style): New styles.
6583 * cli/cli-style.c (do_show): New function that shows a style
6584 characteristic styling the style name with itself.
6585 (set_style_name): New function.
6586 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6587 Update all callers according to the changes in cli/cli-style.h.
6588 * utils.h (fputs_highlighted): New function.
6589 * utils.c (fputs_highlighted): Likewise.
6591 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6593 * NEWS: Mention new pipe command and new convenience variables.
6595 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6597 * cli/cli-cmds.c (pipe_command): New function.
6598 (_initialize_cli_cmds): Call add_com for pipe_command.
6599 Define | as an alias for pipe.
6600 (exit_status_set_internal_vars): New function.
6601 (shell_escape): Call exit_status_set_internal_vars.
6602 cli/cli-decode.c (find_command_name_length): Recognize | as
6603 a single character command.
6605 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6607 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6608 top.c (execute_command_to_ui_file): New function, mostly a copy
6609 of execute_command_to_string.
6610 (execute_command_to_string): Implement by calling
6611 execute_command_to_ui_file.
6613 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6615 * top.h (saved_command_line): Remove declaration.
6616 * top.c (previous_saved_command_line, previous_repeat_arguments):
6618 (saved_command_line): Make static, define together with other
6620 (dont_repeat): Clear repeat_arguments.
6621 (repeat_previous, get_saved_command_line, save_command_line):
6623 (gdb_init): Initialize saved_command_line
6624 and previous_saved_command_line.
6625 * main.c (captured_main_1): Remove saved_command_line initialization.
6626 * event-top.c (handle_line_of_input): Update to use
6627 the new 'repeat' related functions instead of direct access to
6629 * command.h (repeat_previous, get_saved_command_line,
6630 save_command_line): New declarations.
6631 (dont_repeat): Add comment.
6633 2019-05-30 Tom Tromey <tromey@adacore.com>
6635 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6637 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6639 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6642 * completer.c (complete): Initialize variable word.
6644 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6646 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6647 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6648 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6649 'body' is NULL to the outter 'if', protecting the '!is_define'
6652 2019-05-29 Tom Tromey <tromey@adacore.com>
6654 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6655 (dwarf_unknown): New function.
6656 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6657 (dwarf_type_encoding_name): Use dwarf_unknown.
6659 2019-05-29 Tom Tromey <tromey@adacore.com>
6662 * cp-valprint.c (cp_print_value_fields): Call
6663 cp_print_static_field inside "try".
6665 2019-05-29 Tom Tromey <tromey@adacore.com>
6667 * inflow.c (struct terminal_info): Add default operator=.
6668 * configure: Rebuild.
6669 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6670 -Wdeprecated-copy-dtor, -Wredundant-move.
6672 2019-05-29 Tom Tromey <tromey@adacore.com>
6675 * infcmd.c (print_return_value_1): Handle finish_print
6677 (show_print_finish): New function.
6678 (_initialize_infcmd): Add "set/show print finish" commands.
6679 * valprint.c (user_print_options): Initialize new member.
6680 * valprint.h (struct value_print_options) <finish_print>: New
6683 2019-05-28 Tom Tromey <tromey@adacore.com>
6685 * ada-lang.c (ada_remove_Xbn_suffix)
6686 (find_old_style_renaming_symbol)
6687 (parse_old_style_renaming): Remove.
6688 (ada_find_renaming_symbol): Don't call
6689 find_old_style_renaming_symbol.
6690 (ada_is_renaming_symbol): Rename from
6691 ada_find_renaming_symbol. Remove "block" parameter. Return
6693 (ada_read_var_value): Update and simplify.
6694 * ada-exp.y (write_var_or_type): Remove old code.
6696 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6698 * event-top.c: Remove include comment.
6699 * inflow.c (class scoped_ignore_sigttou): Move from here...
6700 * inflow.h (class scoped_ignore_sigttou): ...to here.
6701 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6702 * top.c: Remove include comment.
6704 2019-05-27 Tom Tromey <tom@tromey.com>
6708 2019-05-22 Tom Tromey <tromey@adacore.com>
6710 * target.c (target_follow_exec): Constify parameter.
6711 * target-delegates.c: Rebuild.
6712 * remote.c (remote_target::follow_exec): Constify parameter.
6713 * infrun.c (follow_exec): Constify parameter.
6714 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6715 (target_follow_exec): Likewise.
6717 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6719 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6720 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6722 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6724 * NEWS: Add debugredirect and testsuite sections.
6726 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6728 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6729 target descriptions using exclusively floating point register name
6732 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6735 * f-lang.c (build_fortran_types): Handle the case where
6736 gdbarch_floatformat_for_type returns a nullptr.
6738 2019-05-21 Tom de Vries <tdevries@suse.de>
6741 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6743 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6746 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6748 * i386-tdep.c (i386_floatformat_for_type): Use
6749 floatformats_ia64_quad for the 16-byte floating point component
6750 within a fortran 32-byte complex number.
6752 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6754 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6755 delete default constructor.
6756 (find_partial_die): Update to return const struct.
6757 (partial_die_parent_scope): Move variable declaration into scope
6758 of its use and change its type to auto.
6759 (guess_partial_die_structure_name): Likewise.
6760 (partial_die_info::fixup): Likewise.
6762 2019-05-17 Tom Tromey <tromey@adacore.com>
6764 * source.c (find_and_open_source): Remove cast.
6766 2019-05-17 Tom Tromey <tromey@adacore.com>
6768 * annotate.c (annotate_source): Make "filename" const.
6769 * annotate.h (annotate_source): Use const.
6771 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6773 * disasm.c (set_disassembler_options): Send errors to stderr.
6775 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6777 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
6778 (cli_interp_base::set_logging): Check debug_redirect.
6779 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
6780 * cli/cli-logging.c (debug_redirect): Add static variable.
6781 (pop_output_files): Add default param.
6782 (handle_redirections): Print debug setting.
6783 (show_logging_command): Likewise.
6784 (_initialize_cli_logging): Add debugredirect command.
6785 * interps.c (current_interp_set_logging): Add debug_redirect
6787 * interps.h (set_logging): Add debug_redirect parameter.
6788 (current_interp_set_logging): Likewise.
6789 * mi/mi-common.h: Likewise.
6790 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
6792 2019-05-17 Alan Hayward <alan.hayward@arm.com>
6793 Tom Tromey <tromey@adacore.com>
6795 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
6797 * cli/cli-interp.h (make_logging_output): Remove declaration.
6798 * cli/cli-logging.c (make_logging_output): Remove function.
6799 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
6801 * ui-file.c (tee_file::tee_file): Remove bools.
6802 (tee_file::~tee_file): Remove deletes.
6803 * ui-file.h (tee_file): Remove bools.
6805 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
6807 * mi/mi-cmds.h (mi_cmd_complete): New function.
6808 * mi/mi-main.c (mi_cmd_complete): Likewise.
6809 * mi/mi-cmds.c: Define new MI command -complete.
6810 * NEWS: Mention new -complete command.
6812 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
6814 * completer.h (complete): New function.
6815 * completer.c (complete): Likewise.
6816 * cli/cli-cmds.c: (complete_command): Update to use new complete()
6817 function defined in completer.h.
6819 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
6821 * MAINTAINERS (Write After Approval): Add myself.
6823 2019-05-17 Tom de Vries <tdevries@suse.de>
6826 * dwarf2read.c (struct cu_partial_die_info): New struct.
6827 (find_partial_die): Return cu_partial_die_info.
6828 (partial_die_parent_scope, guess_partial_die_structure_name)
6829 (partial_die_info::fixup): Handle new return type of find_partial_die.
6831 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6833 PR breakpoints/24541
6834 * stap-probe.c (stap_parse_register_operand): Make "regname" an
6835 "std::string", simplifying the algorithm.
6837 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6839 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
6840 (stap_static_probe_ops::get_probes): Likewise.
6842 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6844 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
6845 '-')" and "else if".
6846 (stap_parse_single_operand): Join checks for
6847 "gdbarch_stap_parse_special_token_p" and
6848 "gdbarch_stap_parse_special_token" in the same "if" statement.
6849 Invert check when verifying for operation on register
6852 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6854 * stap-probe.c (stap_get_opcode): Update comment.
6855 (stap_get_expected_argument_type): Likewise.
6856 (handle_stap_probe): Likewise.
6858 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6860 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
6861 return type to 'bool'. Adjust comment. Use 'bool' when
6863 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6864 * stap-probe.c (stap_parse_argument_1): Likewise.
6865 (stap_is_operator): Likewise.
6866 (stap_is_generic_prefix): Likewise.
6867 (stap_is_register_prefix): Likewise.
6868 (stap_is_register_indirection_prefix): Likewise.
6869 (stap_is_integer_prefix): Likewise.
6870 (stap_generic_check_suffix): Likewise.
6871 (stap_check_integer_suffix): Likewise.
6872 (stap_check_register_suffix): Likewise.
6873 (stap_check_register_indirection_suffix): Likewise.
6874 (stap_parse_register_operand): Likewise.
6875 (stap_parse_single_operand): Likewise.
6876 (stap_parse_argument_1): Likewise.
6877 (stap_probe::get_argument_count): Likewise.
6878 (stap_is_operator): Likewise.
6880 2019-05-16 Tom Tromey <tromey@adacore.com>
6882 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
6885 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
6887 * linux-thread-db.c (try_thread_db_load_1): Change return type
6889 (try_thread_db_load): Likewise.
6890 (try_thread_db_load_from_pdir_1): Likewise.
6891 (try_thread_db_load_from_pdir): Likewise.
6892 (try_thread_db_load_from_sdir): Likewise.
6893 (try_thread_db_load_from_dir): Likewise.
6894 (thread_db_load_search): Likewise.
6895 (has_libpthread): Likewise.
6896 (thread_db_load): Likewise.
6898 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
6900 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6901 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
6902 NULL, and complain/return if that's the case.
6904 2019-05-15 John Darrington <john@darrington.wattle.id.au>
6906 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
6907 (advance, posn, abstract_read_memory): New functions.
6908 [struct mem_read_abstraction]: New struct.
6909 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
6911 2019-05-14 Tom Tromey <tromey@adacore.com>
6913 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
6914 value is not lval_memory.
6916 2019-05-14 Tom Tromey <tromey@adacore.com>
6918 * solib.c (info_sharedlibrary_command): Style the file name.
6920 2019-05-14 Alan Hayward <alan.hayward@arm.com>
6922 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
6923 (aarch64_vnv_type): Likewise.
6924 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
6925 * common/tdesc.c: Likewise.
6926 * common/tdesc.h (enum tdesc_type_kind): Likewise.
6927 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
6928 * features/aarch64-fpu.xml: Add ieee half view.
6929 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
6930 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
6931 * gdbtypes.h (struct builtin_type): Likewise.
6932 (struct objfile_type): Likewise.
6934 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
6936 * language.c (language_sniff_from_mangled_name): Fix "langauge"
6938 * location.h (string_to_event_location): Likewise.
6940 2019-05-11 Joel Brobecker <brobecker@adacore.com>
6944 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6946 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
6947 New variable declaration.
6948 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
6950 (print_one_breakpoint): Use ui_out::test_flags and new global
6951 variable to compute use_fixed_output.
6952 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
6954 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
6955 (mi_multi_location_breakpoint_output_fixed): Remove.
6956 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
6958 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
6959 fix_multi_location_breakpoint_output flag if version >= 3.
6960 * ui-out.h (enum ui_out_flag)
6961 <fix_multi_location_breakpoint_output>: New enumerator.
6963 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
6965 * contrib/cc-with-tweaks.sh: Validate dwz's work.
6967 2019-05-10 Tom Tromey <tromey@adacore.com>
6969 * ada-lang.c (catch_ada_completer): New function.
6970 (_initialize_ada_language): Use it.
6972 2019-05-10 Tom Tromey <tromey@adacore.com>
6974 * thread.c (print_thread_info): Make "requested_threads" const.
6975 * gdbthread.h (print_thread_info): Make "requested_threads"
6977 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
6978 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
6980 2019-05-08 Tom Tromey <tom@tromey.com>
6982 * gdbtypes.c (objfile_type_data): Change type.
6983 (objfile_type, _initialize_gdbtypes): Update.
6985 2019-05-08 Tom Tromey <tom@tromey.com>
6987 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
6988 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
6989 (_initialize_dwarf2_frame): Update.
6991 2019-05-08 Tom Tromey <tom@tromey.com>
6993 * objc-lang.c (objc_objfile_data): Change type.
6994 (find_methods): Update.
6995 (_initialize_objc_lang): Remove.
6997 2019-05-08 Tom Tromey <tom@tromey.com>
6999 * stabsread.c (rs6000_builtin_type_data): Change type.
7000 (rs6000_builtin_type, _initialize_stabsread): Update.
7002 2019-05-08 Tom Tromey <tom@tromey.com>
7004 * mips-tdep.c (mips_pdr_data): Remove.
7005 (_initialize_mips_tdep): Update.
7007 2019-05-08 Tom Tromey <tom@tromey.com>
7009 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7010 (hppa_init_objfile_priv_data, read_unwind_info)
7011 (find_unwind_entry, _initialize_hppa_tdep): Update.
7013 2019-05-08 Tom Tromey <tom@tromey.com>
7015 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7016 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7018 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7020 2019-05-08 Tom Tromey <tom@tromey.com>
7022 * mdebugread.c (basic_type_data): Change type.
7023 (basic_type, _initialize_mdebugread): Update.
7025 2019-05-08 Tom Tromey <tom@tromey.com>
7027 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7029 2019-05-08 Tom Tromey <tom@tromey.com>
7031 * nto-tdep.c (nto_inferior_data_reg): Change type.
7032 (nto_inferior_data): Update.
7033 (nto_inferior_data_cleanup, nto_new_inferior_data)
7034 (_initialize_nto_tdep): Remove.
7035 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7037 2019-05-08 Tom Tromey <tom@tromey.com>
7039 * ada-lang.c (struct ada_inferior_data): Add initializers.
7040 (ada_inferior_data): Change type.
7041 (ada_inferior_data_cleanup): Remove.
7042 (get_ada_inferior_data, ada_inferior_exit)
7043 (struct ada_pspace_data): Add initializers, destructor.
7044 (ada_pspace_data_handle): Change type.
7045 (get_ada_pspace_data): Update.
7046 (ada_pspace_data_cleanup): Remove.
7048 2019-05-08 Tom Tromey <tom@tromey.com>
7050 * coffread.c (struct coff_symfile_info): Add initializers.
7051 (coff_objfile_data_key): Move lower. Change type.
7052 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7054 (coff_free_info): Remove.
7056 2019-05-08 Tom Tromey <tom@tromey.com>
7058 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7059 (fbsd_pspace_data_handle): Move lower. Change type.
7060 (get_fbsd_pspace_data): Update.
7061 (fbsd_pspace_data_cleanup): Remove.
7062 (_initialize_fbsd_tdep): Update.
7064 2019-05-08 Tom Tromey <tom@tromey.com>
7066 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7067 (get_ada_tasks_pspace_data): Update.
7068 (ada_tasks_pspace_data_cleanup): Remove.
7069 (_initialize_tasks): Update.
7070 (ada_tasks_inferior_data_handle): Change type.
7071 (get_ada_tasks_inferior_data): Update.
7072 (ada_tasks_inferior_data_cleanup): Remove.
7073 (struct ada_tasks_pspace_data): Add initializers.
7075 2019-05-08 Tom Tromey <tom@tromey.com>
7077 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7078 * symfile-debug.c (debug_sym_get_probes): Change type.
7079 * stap-probe.c (handle_stap_probe):
7080 (stap_static_probe_ops::get_probes): Change type.
7081 * probe.h (class static_probe_ops) <get_probes>: Change type.
7082 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7083 (parse_probes_in_pspace): Update.
7084 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7086 (any_static_probe_ops::get_probes): Change type.
7087 * elfread.c (elfread_data): New typedef.
7088 (probe_key): Change type.
7089 (elf_get_probes): Likewise. Update.
7090 (probe_key_free): Remove.
7091 (_initialize_elfread): Update.
7092 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7094 (dtrace_process_dof_probe, dtrace_process_dof)
7095 (dtrace_static_probe_ops::get_probe): Change type.
7097 2019-05-08 Tom Tromey <tom@tromey.com>
7099 * xcoffread.c (struct xcoff_symfile_info): Rename from
7100 coff_symfile_info. Add initializers.
7101 (xcoff_objfile_data_key): Move lower. Change type.
7102 (XCOFF_DATA): Rewrite.
7103 (xcoff_free_info): Remove.
7104 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7105 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7106 (xcoff_initial_scan): Update.
7108 2019-05-08 Tom Tromey <tom@tromey.com>
7110 * solib-svr4.c (struct svr4_info): Add initializers and
7112 <probes_table>: Now an htab_up.
7113 (solib_svr4_pspace_data): Change type.
7114 (free_probes_table): Simplify.
7115 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7116 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7117 (probes_table_remove_objfile_probes, register_solib_event_probe)
7118 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7119 (_initialize_svr4_solib): Update.
7121 2019-05-08 Tom Tromey <tom@tromey.com>
7123 * remote.c (remote_pspace_data): Change type.
7124 (remote_pspace_data_cleanup): Remove.
7125 (get_remote_exec_file, set_pspace_remote_exec_file)
7126 (_initialize_remote): Update.
7128 2019-05-08 Tom Tromey <tom@tromey.com>
7130 * breakpoint.c (breakpoint_objfile_key): Change type.
7131 (get_breakpoint_objfile_data): Update.
7132 (free_breakpoint_objfile_data): Remove.
7133 (_initialize_breakpoint): Update.
7135 2019-05-08 Tom Tromey <tom@tromey.com>
7137 * linux-tdep.c (struct linux_info): Add initializers.
7138 (linux_inferior_data): Move. Change type.
7139 (invalidate_linux_cache_inf): Update.
7140 (linux_inferior_data_cleanup): Remove.
7141 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7143 2019-05-08 Tom Tromey <tom@tromey.com>
7145 * auxv.c (auxv_inferior_data): Move. Change type.
7146 (auxv_inferior_data_cleanup): Remove.
7147 (invalidate_auxv_cache_inf): Rewrite.
7148 (get_auxv_inferior_data, _initialize_auxv): Update.
7150 2019-05-08 Tom Tromey <tom@tromey.com>
7152 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7153 (symfile_debug_objfile_data_key): Change type.
7154 (symfile_debug_installed, debug_qf_has_symbols)
7155 (debug_qf_find_last_source_symtab)
7156 (debug_qf_forget_cached_source_info)
7157 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7158 (debug_qf_print_stats, debug_qf_dump)
7159 (debug_qf_expand_symtabs_for_function)
7160 (debug_qf_expand_all_symtabs)
7161 (debug_qf_expand_symtabs_with_fullname)
7162 (debug_qf_map_matching_symbols)
7163 (debug_qf_expand_symtabs_matching)
7164 (debug_qf_find_pc_sect_compunit_symtab)
7165 (debug_qf_map_symbol_filenames)
7166 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7167 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7168 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7169 (debug_sym_read_linetable, debug_sym_relocate): Update.
7170 (symfile_debug_free_objfile): Remove.
7171 (install_symfile_debug_logging, _initialize_symfile_debug):
7174 2019-05-08 Tom Tromey <tom@tromey.com>
7176 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7177 allocate_on_obstack.
7178 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7179 (get_dwarf2_per_objfile): Update.
7180 (set_dwarf2_per_objfile): Remove.
7181 (dwarf2_has_info, dwarf2_get_section_info): Update.
7182 (dwarf2_free_objfile): Remove.
7183 (_initialize_dwarf2_read): Update.
7185 2019-05-08 Tom Tromey <tom@tromey.com>
7187 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7189 <unsupported_script_warning_printed,
7190 script_not_found_warning_printed>: Now bool.
7191 (auto_load_pspace_data): Change type.
7192 (~auto_load_pspace_info): Rename from
7193 auto_load_pspace_data_cleanup.
7194 (get_auto_load_pspace_data, init_loaded_scripts_info)
7195 (clear_section_scripts, maybe_print_unsupported_script_warning)
7196 (maybe_print_script_not_found_warning, _initialize_auto_load):
7199 2019-05-08 Tom Tromey <tom@tromey.com>
7201 * objfiles.c (objfile_pspace_info): Add destructor and
7203 (objfiles_pspace_data): Change type.
7204 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7205 (get_objfile_pspace_data): Update.
7206 (objfiles_bfd_data): Change type.
7207 (get_objfile_bfd_data): Update.
7208 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7210 2019-05-08 Tom Tromey <tom@tromey.com>
7212 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7214 (get_catch_syscall_inferior_data): Update.
7215 (catch_syscall_inferior_data_cleanup): Remove.
7216 (_initialize_break_catch_syscall): Update.
7218 2019-05-08 Tom Tromey <tom@tromey.com>
7220 * inflow.c (struct terminal_info): Add destructor and
7222 (inflow_inferior_data): Change type.
7223 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7224 (get_inflow_inferior_data, inflow_inferior_exit)
7225 (swap_terminal_info, _initialize_inflow): Update.
7227 2019-05-08 Tom Tromey <tom@tromey.com>
7229 * target-dcache.c (target_dcache_cleanup): Remove.
7230 (target_dcache_aspace_key): Change type.
7231 (target_dcache_init_p, target_dcache_invalidate)
7232 (target_dcache_get, target_dcache_get_or_init)
7233 (_initialize_target_dcache): Update.
7234 * dcache.h (struct dcache_deleter): New.
7236 2019-05-08 Tom Tromey <tom@tromey.com>
7238 * symtab.c (struct symbol_cache): Add destructor and
7240 (symbol_cache_key): Move. Change type.
7241 (make_symbol_cache, free_symbol_cache): Remove.
7242 (get_symbol_cache): Update.
7243 (symbol_cache_cleanup): Remove.
7244 (ALL_PSPACES, symbol_cache_flush)
7245 (maintenance_print_symbol_cache)
7246 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7249 2019-05-08 Tom Tromey <tom@tromey.com>
7251 * symtab.c (struct main_info): Add destructor and initializers.
7252 (main_progspace_key): Move. Change type.
7253 (get_main_info): Update.
7254 (main_info_cleanup): Remove.
7255 (_initialize_symtab): Update.
7257 2019-05-08 Tom Tromey <tom@tromey.com>
7259 * registry.h (DECLARE_REGISTRY): Define the _key class.
7261 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7263 * NEWS: Merge two 'New commands' sections.
7265 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7267 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7268 parameter and use Ada language definition instead.
7269 (ada_val_print_ptr): Remove unused language parameter.
7270 (ada_val_print_num): Remove language parameter and use Ada language
7272 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7274 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7275 parameter and use Ada language definition instead.
7276 (ada_val_print_1): Update all ada_val_print_xxx calls.
7277 Remove language parameter.
7278 (ada_val_print): Update ada_val_print_1 call.
7280 2019-05-08 Tom Tromey <tromey@adacore.com>
7282 * remote.c (remote_hw_watchpoint_limit)
7283 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7286 2019-05-08 Tom Tromey <tromey@adacore.com>
7288 * maint.c (_initialize_maint_cmds): Move initialization code to
7290 (watchdog, show_watchdog): Move to remote.c.
7291 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7293 (_initialize_remote): Move initialization code from maint.c.
7294 * defs.h (watchdog): Don't declare.
7296 2019-05-08 Tom Tromey <tromey@adacore.com>
7298 * tui/tui-interp.c: Include main.h.
7299 * interps.c: Include main.h.
7300 * main.h (interpreter_p): Declare.
7301 * defs.h (interpreter_p): Don't declare.
7303 2019-05-08 Tom Tromey <tromey@adacore.com>
7305 * dwarf2loc.c: Include dwarf2read.h.
7306 * defs.h (read_unsigned_leb128): Don't declare.
7307 * dwarf2read.h (read_unsigned_leb128): Declare.
7309 2019-05-08 Tom Tromey <tromey@adacore.com>
7311 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7314 2019-05-08 Tom Tromey <tromey@adacore.com>
7316 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7317 when no wrap column is set.
7319 2019-05-08 Tom Tromey <tromey@adacore.com>
7321 * c-lang.c (c_get_string): Handle non-C-style arrays.
7323 2019-05-08 Tom Tromey <tromey@adacore.com>
7325 * typeprint.c (print_offset_data::update): Print the bit offset,
7326 not the number of bits remaining.
7328 2019-05-08 Tom Tromey <tromey@adacore.com>
7330 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7331 padding at end of comment.
7333 2019-05-08 Tom Tromey <tromey@adacore.com>
7335 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7338 2019-05-06 Tom Tromey <tom@tromey.com>
7340 * common/scoped_mmap.c: Include common-defs.h.
7341 * common/scoped_mmap.h: Don't include config.h.
7343 2019-05-04 Tom Tromey <tom@tromey.com>
7345 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7346 (struct aarch64_call_info): Add initializers.
7347 <si>: Now a std::vector.
7348 (pass_on_stack, aarch64_push_dummy_call): Update.
7350 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7351 Tom Tromey <tom@tromey.com>
7353 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7354 (ppc_threads): Now a std::vector. Now static.
7355 (hwdebug_find_thread_points_by_tid)
7356 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7359 2019-05-04 Tom Tromey <tom@tromey.com>
7361 * arc-tdep.c (arc_tdesc_init): Return bool.
7363 2019-05-04 Tom Tromey <tom@tromey.com>
7365 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7366 Use gdb_assert_not_reached.
7368 2019-05-04 Tom Tromey <tom@tromey.com>
7370 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7373 2019-05-04 Tom Tromey <tom@tromey.com>
7375 * arc-tdep.c (arc_tdesc_init): Use bool.
7377 2019-05-04 Tom Tromey <tom@tromey.com>
7379 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7381 2019-05-04 Tom Tromey <tom@tromey.com>
7383 * cli/cli-cmds.c (valid_command_p): Return bool.
7385 2019-05-04 Tom Tromey <tom@tromey.com>
7387 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7388 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7390 2019-05-04 Raul Tambre <raul@tambre.ee>
7392 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7393 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7394 operator for comparison.
7396 2019-05-04 Tom Tromey <tom@tromey.com>
7398 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7399 (lookup_partial_symbol, print_partial_symbols)
7400 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7401 (psymbol_compare): Update.
7402 (add_psymbol_to_bcache): Clear the entire psymbol.
7403 (maintenance_check_psymtabs): Update.
7404 * psympriv.h (struct partial_symbol): Don't derive from
7405 general_symbol_info.
7406 <obj_section, unrelocated_address, address,
7407 set_unrelocated_address>: Update.
7408 <ginfo>: New member.
7409 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7410 (debug_names::write_psymbols): Update.
7412 2019-05-04 Tom de Vries <tdevries@suse.de>
7414 * contrib/cc-with-tweaks.sh: Support -n arg.
7416 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7418 * corelow.c (core_target::detach): Ensure frame cache and
7419 register caches are cleared.
7420 inferior.c (exit_inferior_1): Likewise.
7422 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7423 Tom Tromey <tom@tromey.com>
7425 * dictionary.c (collate_pending_symbols_by_language): Remove
7426 "struct" from foreach.
7427 * symtab.c (lookup_global_symbol_from_objfile)
7428 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7430 * ser-tcp.c (net_open): Remove "struct" from foreach.
7431 * objfiles.c (objfile_relocate, objfile_rebase)
7432 (objfile_has_symbols): Remove "struct" from foreach.
7433 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7435 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7437 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7438 "struct" from foreach.
7439 * ada-lang.c (create_excep_cond_exprs)
7440 (ada_exception_catchpoint_cond_string): Remove "struct" from
7443 2019-05-03 Tom Tromey <tromey@adacore.com>
7445 * ada-exp.y (convert_char_literal): Check suffix of each
7448 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7451 * ada-exp.y (yywrap): Don't define.
7452 * ada-lex.l (%option): Add noyywrap
7455 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7457 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7458 _WIN32_WINNT to the XP level, unless already defined to a higher
7461 * unittests/parse-connection-spec-selftests.c:
7463 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7466 * symfile.c (find_separate_debug_file): Remove colon from the
7467 drive spec of DOS/Windows file names of the target, so that the
7468 file name produced from DEBUGDIR and the target's directory will
7469 be valid on DOS/Windows systems.
7471 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7473 * rust-lang.c (val_print_struct): Handle printing structures
7476 2019-05-02 Tom Tromey <tromey@adacore.com>
7478 * valarith.c (_initialize_valarith): Remove.
7480 2019-05-01 Tom Tromey <tromey@adacore.com>
7482 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7485 2019-05-01 Tom Tromey <tromey@adacore.com>
7487 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7488 for big-endian copies.
7490 2019-04-30 Ali Tamur <tamur@google.com>
7491 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7492 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7493 (read_3_bytes): New function.
7495 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7497 * windows-nat.c (main_thread_id): Delete.
7498 (handle_output_debug_string): Replace main_thread_id by
7499 current_event.dwThreadId.
7500 (fake_create_process): Likewise.
7501 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7502 Do not set main_thread_id.
7503 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7504 current_event.dwThreadId.
7505 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7507 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7509 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7510 Use current_event.dwThreadId instead of main_thread_id.
7512 2019-04-30 Tom Tromey <tromey@adacore.com>
7514 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7515 (create_excep_cond_exprs): Iterate over program spaces.
7516 (ada_exception_catchpoint_cond_string): Examine all minimal
7517 symbols for exception types.
7519 2019-04-30 Tom Tromey <tromey@adacore.com>
7522 * dwarf2read.c (process_structure_scope): Handle case where type
7523 has template parameters but no symbol was created.
7525 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7526 Chris January <chris.january@arm.com>
7528 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7530 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7532 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7534 * f-typeprint.c (f_print_type): Update rules for printing
7536 (f_type_print_varspec_suffix): Likewise.
7538 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7539 Chris January <chris.january@arm.com>
7541 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7544 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7546 * f-lang.c (build_fortran_types): Change name of void type to
7548 * f-typeprint.c (f_type_print_base): Print the name of the void
7549 type, rather than a fixed string.
7550 * f-valprint.c (f_decorations): Use lower case void string.
7552 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7553 Chris January <chris.january@arm.com>
7555 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7558 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7559 Chris January <chris.january@arm.com>
7560 David Lecomber <david.lecomber@arm.com>
7562 * f-exp.y (BINOP_INTRINSIC): New token.
7563 (exp): New parser rule handling BINOP_INTRINSIC.
7564 (f77_keywords): Add new builtin procedures.
7565 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7566 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7567 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7568 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7569 (print_unop_subexp_f): New function.
7570 (print_binop_subexp_f): New function.
7571 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7572 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7573 (dump_subexp_body_f): Likewise.
7574 (operator_check_f): Likewise.
7575 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7576 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7578 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7580 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7582 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7583 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7584 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7585 (operator_length_f): New fuction.
7586 (print_subexp_f): New function.
7587 (op_name_f): New function.
7588 (dump_subexp_body_f): New function.
7589 (operator_check_f): New function.
7590 (exp_descriptor_f): Replace standard expression handling functions
7592 * gdb/fortran-operator.def: New file.
7593 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7594 * gdb/std-operator.def: Remove UNOP_KIND.
7596 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7598 * std-operator.def: Remove unbalanced, stray double quote
7601 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7602 Chris January <chris.january@arm.com>
7603 Daniel Everett <daniel.everett@arm.com>
7604 Nick Forrington <nick.forrington@arm.com>
7605 Richard Bunt <richard.bunt@arm.com>
7607 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7608 of depth when printing anonymous structs or unions.
7609 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7610 Don't print either the top-level value, or the children if the
7611 max-depth is exceeded.
7612 (ppscm_print_children): When printing the key of a map, allow one
7613 extra level of depth.
7614 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7615 print either the top-level value, or the children if the max-depth
7617 (print_children): When printing the key of a map, allow one extra
7619 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7620 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7621 (user_print_options): Initialise max_depth field.
7622 (val_print_scalar_or_string_type_p): New function.
7623 (val_print): Check to see if the max depth has been reached.
7624 (val_print_check_max_depth): Define new function.
7625 (show_print_max_depth): New function.
7626 (_initialize_valprint): Add 'print max-depth' option.
7627 * valprint.h (struct value_print_options) <max_depth>: New field.
7628 (val_print_check_max_depth): Declare new function.
7629 * NEWS: Document new feature.
7631 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7633 * ada-lang.c (ada_language_defn): Initialise new field.
7634 * c-lang.c (c_is_string_type_p): New function.
7635 (c_language_defn): Initialise new field.
7636 (cplus_language_defn): Initialise new field.
7637 (asm_language_defn): Initialise new field.
7638 (minimal_language_defn): Initialise new field.
7639 * c-lang.h (c_is_string_type_p): Declare new function.
7640 * d-lang.c (d_language_defn): Initialise new field.
7641 * f-lang.c (f_is_string_type_p): New function.
7642 (f_language_defn): Initialise new field.
7643 * go-lang.c (go_is_string_type_p): New function.
7644 (go_language_defn): Initialise new field.
7645 * language.c (default_is_string_type_p): New function.
7646 (unknown_language_defn): Initialise new field.
7647 (auto_language_defn): Initialise new field.
7648 * language.h (struct language_defn) <la_is_string_type_p>: New
7650 (default_is_string_type_p): Declare new function.
7651 * m2-lang.c (m2_language_defn): Initialise new field.
7652 * objc-lang.c (objc_language_defn): Initialise new field.
7653 * opencl-lang.c (opencl_language_defn): Initialise new field.
7654 * p-lang.c (pascal_is_string_type_p): New function.
7655 (pascal_language_defn): Initialise new field.
7656 * rust-lang.c (rust_is_string_type_p): New function.
7657 (rust_language_defn): Initialise new field.
7659 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7661 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7663 * ada-lang.c (ada_language_defn): Initialise new field.
7664 * c-lang.c (c_language_defn): Likewise.
7665 (cplus_language_defn): Likewise.
7666 (asm_language_defn): Likewise.
7667 (minimal_language_defn): Likewise.
7668 * d-lang.c (d_language_defn): Likewise.
7669 * f-lang.c (f_language_defn): Likewise.
7670 * go-lang.c (go_language_defn): Likewise.
7671 * language.c (unknown_language_defn): Likewise.
7672 (auto_language_defn): Likewise.
7673 * m2-lang.c (m2_language_defn): Likewise.
7674 * objc-lang.c (objc_language_defn): Likewise.
7675 * opencl-lang.c (opencl_language_defn): Likewise.
7676 * p-lang.c (pascal_language_defn): Likewise.
7677 * rust-lang.c (rust_language_defn): Likewise.
7679 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7681 * ada-lang.c (ada_is_character_type): Change return type to bool.
7682 (ada_is_string_type): Likewise.
7683 * ada-lang.h (ada_is_character_type): Update declaration
7684 (ada_is_string_type): Likewise.
7686 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7688 Support style in 'frame|thread apply'
7690 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7691 * record.c (record_start, record_stop): Update callers of
7692 execute_command_to_string with false.
7693 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7694 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7696 (class string_file): New constructor with term_out parameter.
7697 Override methods term_out and can_emit_style_escape. New member
7699 (class stdio_file): Override can_emit_style_escape.
7700 (class tee_file): Override term_out and can_emit_style_escape.
7701 * utils.h (can_emit_style_escape): Remove.
7702 * utils.c (can_emit_style_escape): Likewise.
7703 Update all callers of can_emit_style_escape (SOMESTREAM) to
7704 SOMESTREAM->can_emit_style_escape.
7705 * source-cache.c (source_cache::get_source_lines): Likewise.
7706 * stack.c (frame_apply_command_count): Call execute_command_to_string
7707 passing the term_out characteristic of the current gdb_stdout.
7708 * thread.c (thr_try_catch_cmd): Likewise.
7709 * top.c (execute_command_to_string): pass term_out parameter
7710 to construct the string_file for the command output.
7711 * ui-file.c (term_cli_styling): New function (most code moved
7712 from utils.c can_emit_style_escape).
7713 (string_file::string_file, string_file::can_emit_style_escape,
7714 stdio_file::can_emit_style_escape, tee_file::term_out,
7715 tee_file::can_emit_style_escape): New functions.
7717 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7719 * NEWS: Mention the new set|show may-call-functions.
7720 * infcall.c (may_call_functions_p): New variable.
7721 (show_may_call_functions_p): New function.
7722 (call_function_by_hand_dummy): Throws an error if not
7724 (_initialize_infcall): Call add_setshow_boolean_cmd for
7727 2019-04-25 Keith Seitz <keiths@redhat.com>
7730 * cp-support.c (inspect_type): Don't attempt substitutions
7731 of symbol with the same name.
7733 2019-04-25 Tom Tromey <tromey@adacore.com>
7736 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7739 2019-04-25 Tom Tromey <tromey@adacore.com>
7741 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7743 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7744 (gdb_xml_parser::parse): Use std::move.
7745 * python/python-internal.h (gdbpy_convert_exception): Take a const
7747 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7749 * python/py-utils.c (gdbpy_convert_exception): Take a const
7751 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7753 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7755 * mi/mi-main.c (mi_print_exception): Take a const reference.
7756 * main.c (handle_command_errors): Take a const reference.
7757 * linespec.c (parse_linespec): Use std::move.
7758 * infcall.c (run_inferior_call): Use std::move.
7759 (call_function_by_hand_dummy): Use std::move.
7760 * exec.c (try_open_exec_file): Use std::move.
7761 * exceptions.h (exception_print, exception_fprintf)
7762 (exception_print_same): Update.
7763 * exceptions.c (print_exception, exception_print)
7764 (exception_fprintf, exception_print_same): Change parameters to
7766 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
7767 * common/new-op.c: Use std::move.
7768 * common/common-exceptions.h (struct gdb_exception): Add move
7770 (struct gdb_exception_error, struct gdb_exception_quit, struct
7771 gdb_quit_bad_alloc): Change constructor to move constructor.
7772 (throw_exception): Change parameter to rvalue reference.
7773 * common/common-exceptions.c (throw_exception): Take rvalue
7775 * cli/cli-interp.c (safe_execute_command): Use std::move.
7776 * breakpoint.c (insert_bp_location, location_to_sals): Use
7779 2019-04-25 Tom Tromey <tromey@adacore.com>
7781 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
7782 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
7783 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
7784 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
7785 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
7786 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
7787 guile/scm-value.c: Use unpack.
7788 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
7789 gdbscm_gdb_exception.
7790 (gdbscm_throw_gdb_exception): Likewise.
7791 (struct gdbscm_gdb_exception): New.
7792 (unpack): New function.
7793 (gdbscm_wrap): Use unpack.
7795 2019-04-25 Tom Tromey <tromey@adacore.com>
7797 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7798 (gdb_rl_callback_handler): Use std::move.
7799 * common/common-exceptions.h (struct gdb_exception): Add move
7800 assignment operator.
7801 (throw_exception_sjlj): Change "exception" to const reference.
7802 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
7803 (throw_exception_sjlj): Change "exception" to const reference.
7805 2019-04-25 Tom Tromey <tromey@adacore.com>
7807 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
7808 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
7809 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7811 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7813 * mi/mi-interp.c (mi_interp::exec): Update.
7814 * linespec.c (parse_linespec): Update.
7815 * infcall.c (run_inferior_call): Update.
7816 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
7817 * guile/scm-symbol.c (gdbscm_lookup_symbol)
7818 (gdbscm_lookup_global_symbol): Update.
7819 * guile/scm-param.c (gdbscm_parameter_value): Update.
7820 * guile/scm-frame.c (gdbscm_frame_read_register)
7821 (gdbscm_frame_read_var): Update.
7822 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7823 * exec.c (try_open_exec_file): Update.
7824 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
7825 (gdb_rl_callback_handler): Update.
7826 * common/common-exceptions.h (exception_none): Don't declare.
7827 * common/common-exceptions.c (exception_none): Don't define.
7828 (struct catcher) <exception>: Update.
7829 * cli/cli-interp.c (safe_execute_command): Update.
7830 * breakpoint.c (insert_bp_location, location_to_sals): Update.
7832 2019-04-25 Ali Tamur <tamur@google.com>
7834 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
7835 (read_attribute_value): Likewise.
7836 (dwarf2_read_addr_index): Update comment.
7837 (read_str_index): Add DW_FORM_strx.
7838 (dwarf2_string_attr): Likewise.
7839 (dwarf2_const_value_attr): Likewise.
7840 (dump_die_shallow): Likewise.
7841 (dwarf2_fetch_constant_bytes): Likewise.
7842 (skip_form_bytes): Likewise.
7843 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
7845 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7849 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
7850 OFFSET. Verify if current mapping contains an ELF header.
7851 (linux_find_memory_regions_full): Adjust call to
7854 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
7855 Kang Li <kanglictf@gmail.com>
7859 * dwarf2-frame.c (read_initial_length): Be consistent about using
7860 unsigned representation of length.
7861 (decode_frame_entry_1): Likewise. Check for wraparound of
7862 end pointer as well as buffer overflow.
7864 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7866 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
7869 2019-04-24 Tom Tromey <tromey@adacore.com>
7871 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
7873 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7875 * s12z-tdep.c (s12z_unwind_pc): Delete.
7876 (s12z_unwind_sp): Delete.
7877 (s12z_gdbarch_init): Don't register deleted functions with
7880 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7882 * rl78-tdep.c (rl78_unwind_sp): Delete.
7883 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
7885 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7887 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
7888 (xstormy16_unwind_pc): Delete.
7889 (xstormy16_dummy_id): Delete.
7890 (xstormy16_gdbarch_init): Don't register deleted functions with
7893 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7895 * vax-tdep.c (vax_unwind_pc): Delete.
7896 (vax_gdbarch_init): Don't register deleted function with gdbarch.
7898 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7900 * v850-tdep.c (v850_unwind_sp): Delete.
7901 (v850_unwind_pc): Delete.
7902 (v850_dummy_id): Delete.
7903 (v850_gdbarch_init): Don't register deleted functions with
7906 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7908 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
7909 (tilegx_unwind_pc): Delete.
7910 (tilegx_unwind_dummy_id): Delete.
7911 (tilegx_gdbarch_init): Don't register deleted functions with
7914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7916 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
7917 (tic6x_dummy_id): Delete.
7918 (tic6x_gdbarch_init): Don't register deleted functions with
7921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7923 * sparc-tdep.c (sparc_unwind_pc): Delete.
7924 (sparc32_gdbarch_init): Don't register deleted function with
7927 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7929 * sh-tdep.c (sh_unwind_sp): Delete.
7930 (sh_unwind_pc): Delete.
7931 (sh_dummy_id): Delete.
7932 (sh_gdbarch_init): Don't register deleted functions with
7935 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7937 * score-tdep.c (score_unwind_sp): Delete.
7938 (score_unwind_pc): Delete.
7939 (score_dummy_id): Delete.
7940 (score_gdbarch_init): Don't register deleted functions with
7943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7945 * rx-tdep.c (rx_unwind_pc): Delete.
7946 (rx_unwind_sp): Delete.
7947 (rx_dummy_id): Delete.
7948 (rx_gdbarch_init): Don't register deleted functions with
7949 gdbarch. Update comment.
7951 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7953 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
7954 (rs6000_dummy_id): Delete.
7955 (rs6000_gdbarch_init): Don't register deleted functions with
7958 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7960 * or1k-tdep.c (or1k_dummy_id): Delete.
7961 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
7963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7965 * nios2-tdep.c (nios2_dummy_id): Delete.
7966 (nios2_unwind_sp): Delete.
7967 (nios2_gdbarch_init): Don't register deleted functions with
7970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7972 * nds32-tdep.c (nds32_dummy_id): Delete.
7973 (nds32_unwind_pc): Delete.
7974 (nds32_unwind_sp): Delete.
7975 (nds32_gdbarch_init): Don't register deleted functions with
7978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7980 * msp430-tdep.c (msp430_unwind_pc): Delete.
7981 (msp430_unwind_sp): Delete.
7982 (msp430_dummy_id): Delete.
7983 (msp430_gdbarch_init): Don't register deleted functions with
7986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7988 * moxie-tdep.c (moxie_unwind_sp): Delete.
7989 (moxie_unwind_pc): Delete.
7990 (moxie_dummy_id): Delete.
7991 (moxie_gdbarch_init): Don't register deleted functions with
7994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
7996 * mn10300-tdep.c (mn10300_dummy_id): Delete.
7997 (mn10300_unwind_pc): Delete.
7998 (mn10300_unwind_sp): Delete.
7999 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8001 (mn10300_frame_unwind_init): Don't register deleted functions with
8004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8006 * mep-tdep.c (mep_unwind_pc): Delete.
8007 (mep_unwind_sp): Delete.
8008 (mep_dummy_id): Delete.
8009 (mep_gdbarch_init): Don't register deleted functions with
8012 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8014 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8015 (m68hc11_unwind_sp): Delete.
8016 (m68hc11_gdbarch_init): Don't register deleted functions with
8019 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8021 * m32r-tdep.c (m32r_unwind_sp): Delete.
8022 (m32r_unwind_pc): Delete.
8023 (m32r_dummy_id): Delete.
8024 (m32r_gdbarch_init): Don't register deleted functions with
8027 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8029 * m32c-tdep.c (m32c_unwind_pc): Delete.
8030 (m32c_unwind_sp): Delete.
8031 (m32c_dummy_id): Delete.
8032 (m32c_gdbarch_init): Don't register deleted functions with
8035 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8037 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8038 (lm32_unwind_pc): Delete.
8039 (lm32_dummy_id): Delete.
8040 (lm32_gdbarch_init): Don't register deleted functions with
8043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8045 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8046 (iq2000_unwind_pc): Delete.
8047 (iq2000_dummy_id): Delete.
8048 (iq2000_gdbarch_init): Don't register deleted functions with
8051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8053 * nds32-tdep.c (nds32_type_align): Delete.
8054 (nds32_push_dummy_call): Use type_align instead.
8056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8058 * arm-tdep.c (arm_type_align): Only handle vector override case.
8059 (arm_push_dummy_call): Use type_align.
8060 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8064 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8066 (pass_on_stack): Use type_align.
8067 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8070 2019-04-23 Tom Tromey <tromey@adacore.com>
8072 * dwarf2read.c (line_header::file_name_at): Remove unused
8075 2019-04-23 Tom de Vries <tdevries@suse.de>
8078 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8082 2019-03-27 Ali Tamur <tamur@google.com>
8084 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8085 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8086 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8087 (dwarf_expr_context::get_addr_index): Likewise
8088 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8089 (symbol_needs_eval_context::get_addr_index): Likewise
8090 (disassemble_dwarf_expression): Add DW_OP_addrx
8091 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8092 (read_cutu_die_from_dwo): Update comment
8093 (skip_one_die): Add DW_FORM_addrx
8094 (read_attribute_value): Likewise
8095 (var_decode_location): Add DW_OP_addrx
8096 (dwarf2_const_value_attr): Add DW_FORM_addrx
8097 (dump_die_shallow): Likewise
8098 (dwarf2_fetch_constant_bytes): Likewise
8099 (decode_locdesc): Add DW_OP_addrx
8100 (skip_form_bytes): Add DW_FORM_addrx
8102 2019-04-22 Ali Tamur <tamur@google.com>
8104 * MAINTAINERS (Write After Approval): Add self.
8106 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8108 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8109 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8110 (open_symbol_file_object): Likewise.
8111 (svr4_default_sos): Add info parameter.
8112 (svr4_read_so_list): Likewise.
8113 (svr4_current_sos_direct): Adjust functions calls to pass down
8115 (svr4_current_sos_1): Add info parameter.
8116 (svr4_current_sos): Call get_svr4_info, pass info down to
8118 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8120 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8122 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8124 (probes_table_remove_objfile_probes): Likewise.
8125 (register_solib_event_probe): Add info parameter.
8126 (solist_update_incremental): Pass info parameter down to
8128 (disable_probes_interface): Add info parameter.
8129 (svr4_handle_solib_event): Pass current_program_space to
8130 get_svr4_info. Adjust disable_probes_interface cleanup.
8131 (svr4_create_probe_breakpoints): Add info parameter, pass it
8132 down to register_solib_event_probe.
8133 (svr4_create_solib_event_breakpoints): Add info parameter,
8134 pass it down to svr4_create_probe_breakpoints.
8135 (enable_break): Pass info down to
8136 svr4_create_solib_event_breakpoints.
8137 (svr4_solib_create_inferior_hook): Pass current_program_space to
8139 (svr4_clear_solib): Likewise.
8141 2019-04-22 Pedro Alves <palves@redhat.com>
8143 * solib-svr4.c (svr4_free_objfile_observer): New.
8144 (probe_and_action::objfile): New field.
8145 (probes_table_htab_remove_objfile_probes)
8146 (probes_table_remove_objfile_probes): New functions.
8147 (register_solib_event_probe): Add 'objfile' parameter. Store it
8148 in the new probe_and_action. Don't store the probe in 'lookup'.
8149 (svr4_create_probe_breakpoints): Pass objfile to
8150 register_solib_event_probe.
8151 (_initialize_svr4_solib): Register a free_objfile observer.
8153 2019-04-19 Tom Tromey <tom@tromey.com>
8155 * common/queue.h: Remove.
8157 2019-04-19 Tom Tromey <tom@tromey.com>
8159 * event-loop.c: Don't include "common/queue.h".
8161 2019-04-19 Tom Tromey <tom@tromey.com>
8163 * remote.c (remote_target): Use delete.
8164 * remote-notif.h: Include <list>, not "common/queue.h".
8165 (notif_client_p): Remove typedef.
8166 (remote_notif_state): Add constructor, destructor, initializer.
8167 <notif_queue>: Now a std::list.
8168 (remote_notif_state_xfree): Don't declare.
8169 * remote-notif.c (remote_notif_process, handle_notification)
8170 (remote_notif_state_allocate): Update.
8171 (~remote_notif_state): Rename from remote_notif_state_xfree.
8173 2019-04-19 Tom Tromey <tom@tromey.com>
8175 * symfile.c (reread_symbols): Update.
8176 * objfiles.c (objfile_register_static_link)
8177 (objfile_lookup_static_link): Update
8178 (~objfile) Don't delete static_links.
8179 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8181 2019-04-19 Tom Tromey <tom@tromey.com>
8183 * type-stack.h (struct type_stack) <insert>: Constify string.
8184 * type-stack.c (type_stack::insert): Constify string.
8185 * gdbtypes.h (lookup_template_type): Update.
8186 (address_space_name_to_int): Update.
8187 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8189 (lookup_template_type): Make name const.
8190 * c-exp.y: Update rules.
8191 (lex_one_token, classify_name, classify_inner_name)
8192 (c_print_token): Update.
8193 * p-exp.y: Update rules.
8195 * f-exp.y: Update rules.
8197 * d-exp.y: Update rules.
8198 (lex_one_token, classify_name, classify_inner_name): Update.
8199 * parse.c (write_dollar_variable, copy_name): Return std::string.
8200 * parser-defs.h (copy_name): Change return type.
8201 * m2-exp.y: Update rules.
8203 * go-exp.y (lex_one_token): Update.
8205 (classify_unsafe_function, classify_packaged_name)
8206 (classify_name, yylex): Update.
8208 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8210 * configure.ac: add --enable-source-highlight switch.
8211 * configure: Regenerate.
8212 * top.c (print_gdb_version): plumb --enable-source-highlight
8213 status to "show configuration".
8215 2019-04-19 Tom Tromey <tromey@adacore.com>
8217 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8219 (empty_record, ada_template_to_fixed_record_type_1)
8220 (template_to_static_fixed_type)
8221 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8222 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8223 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8226 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8229 * source.c (print_source_lines_base): Advance "iter" when a
8230 control character is seen.
8232 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8234 * inferior.h (struct infcall_suspend_state_deleter):
8235 Catch exception in destructor to avoid crash.
8237 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8239 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8240 close to the add_com "shell".
8242 2019-04-18 Tom Tromey <tromey@adacore.com>
8244 * process-stratum-target.h (class process_stratum_target)
8245 <stratum>: Add "final".
8247 2019-04-17 Tom Tromey <tromey@adacore.com>
8249 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8250 against nullptr before use.
8252 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8254 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8256 2019-04-17 Jim Wilson <jimw@sifive.com>
8257 Andrew Burgess <andrew.burgess@embecosm.com>
8259 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8260 code read might fail, assume 4-byte breakpoint in that case.
8262 2019-04-15 Leszek Swirski <leszeks@google.com>
8264 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8265 rather than a hand-rolled POD check when checking for forced MEMORY
8268 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8270 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8271 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8273 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8274 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8275 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8278 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8280 * aarch64-linux-nat.c
8281 (aarch64_linux_nat_target::thread_architecture): Add override.
8282 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8285 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8287 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8289 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8291 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8292 target types of size 96-bits, add some additional comments, and
8293 check that the builtin type we found was the correct size.
8295 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8297 * utils.c (prompt_for_continue): Don't restore the styling at the
8298 end, as applied_style has the wrong value. This fixes styling in
8299 long lists of file names that are interrupted by the "Continue?"
8302 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8304 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8305 * c-lang.c (c_language_defn): Likewise.
8306 (cplus_language_defn): Likewise.
8307 (asm_language_defn): Likewise.
8308 (minimal_language_defn): Likewise.
8309 * d-lang.c (d_language_defn): Likewise.
8310 * f-lang.c (f_language_defn): Likewise.
8311 * go-lang.c (go_language_defn): Likewise.
8312 * language.c (unknown_language_defn): Likewise.
8313 (auto_language_defn): Likewise.
8314 * language.h (struct language_defn): Remove la_magic field.
8315 (LANG_MAGIC): Delete.
8316 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8317 * objc-lang.c (objc_language_defn): Likewise.
8318 * opencl-lang.c (opencl_language_defn): Likewise.
8319 * p-lang.c (pascal_language_defn): Likewise.
8320 * rust-lang.c (rust_language_defn): Likewise.
8322 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8324 * riscv-tdep.c (riscv_type_align): New function.
8325 (riscv_type_alignment): Delete.
8326 (riscv_arg_location): Use 'type_align'.
8327 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8329 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8331 * gdbtypes.c (type_align): A struct with no non-static fields also
8334 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8336 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8338 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8340 (riscv_struct_info::analyse): New implementation using new
8341 analyse_inner member function.
8342 (riscv_struct_info::field_offset): New member function.
8343 (riscv_struct_info::m_offsets): New member variable.
8344 (riscv_struct_info::analyse_inner): New private member function,
8345 takes the old implementation of riscv_struct_info::analyse but
8346 extended to track field offsets.
8347 (riscv_call_arg_struct): Update the struct folding special cases
8348 to handle cases where empty C++ structs, which are non-zero
8350 (riscv_arg_location): Initialise the length of each location, a
8351 non-zero length now indicates the location is in use.
8352 (riscv_push_dummy_call): Allow for the first location having a
8353 non-zero offset when setting up arguments.
8354 (riscv_return_value): Likewise, but for return values.
8356 2019-04-11 Tom Tromey <tromey@adacore.com>
8358 * utils.c (internal_vproblem): Make "msg" const.
8360 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8362 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8363 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8364 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8365 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8367 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8369 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8371 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8372 of amd64_collect_native_gregset.
8373 (amd64_linux_nat_target::store_registers): Likewise.
8375 2019-04-10 Tom Tromey <tom@tromey.com>
8377 * symtab.c (lookup_global_symbol_from_objfile)
8378 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8379 * objfiles.h (class separate_debug_iterator): New.
8380 (class separate_debug_range): New.
8381 (struct objfile) <separate_debug_objfiles>: New method.
8382 (objfile_separate_debug_iterate): Don't declare.
8383 * objfiles.c (separate_debug_iterator::operator++): Rename from
8384 objfile_separate_debug_iterate.
8385 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8387 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8390 2019-04-10 Tom Tromey <tom@tromey.com>
8392 * symfile.c (reread_symbols): Remove old comment.
8393 * objfiles.c (free_all_objfiles): Fix a typo.
8395 2019-04-10 Tom Tromey <tom@tromey.com>
8397 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8398 * minsyms.c (lookup_minimal_symbol): Use foreach.
8399 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8400 (lookup_minimal_symbol_solib_trampoline): Likewise.
8401 * symfile.c (reread_symbols): Use foreach.
8403 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8404 Tom Tromey <tromey@adacore.com>
8407 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8408 (rust_lex_int_test): Change "value" to be LONGEST.
8409 (rust_lex_tests): Add test for long integer literal.
8411 2019-04-09 Tom Tromey <tromey@adacore.com>
8413 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8415 (extended_remote_target::attach): Update.
8416 (remote_target::remote_notice_new_inferior): Update.
8417 (remote_target::add_current_inferior_and_thread): Update.
8418 * inferior.c (exit_inferior_1): Use "false".
8419 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8421 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8423 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8424 the "start" command.
8426 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8428 * python/py-inferior.c (infpy_thread_from_thread_handle):
8429 Adjust comments to reflect renaming of thread_from_thread_handle
8430 to thread_from_handle. Adjust keywords. Fix type error message.
8431 (inferior_object_methods): Add thread_from_handle. Retain
8432 thread_from_thread_handle, but mark it as deprecated.
8434 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8436 * gdbthread.h (find_thread_by_handle): Revise declaration.
8437 * thread.c (find_thread_by_handle): Likewise. Adjust
8439 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8440 support for buffer objects as handles.
8442 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8444 * python/py-infthread.c (thpy_thread_handle): New function.
8445 (thread_object_methods): Register thpy_thread_handle.
8447 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8449 * gdbthread.h (thread_to_thread_handle): Declare.
8450 * thread.c (gdbtypes.h): Include.
8451 (thread_to_thread_handle): New function.
8453 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8454 (target_thread_info_to_thread_handle): Declare.
8455 * target.c (target_thread_info_to_thread_handle): New function.
8456 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8457 * target-delegates.c: Regenerate.
8459 * linux-thread-db.c (class thread_db_target): Add method
8460 thread_info_to_thread_handle.
8461 (thread_db_target::thread_info_to_thread_handle): Define.
8462 * remote.c (class remote_target): Add new method
8463 thread_info_to_thread_handle.
8464 (remote_target::thread_info_to_thread_handle): Define.
8466 2019-04-08 Pedro Alves <palves@redhat.com>
8468 * common/common-exceptions.c (throw_exception): Don't create
8469 named object to throw; throw directly.
8470 (throw_it): Likewise. Don't initialize gdb_exception::message
8471 here, with new; pass FMT and AP to the ctor instead.
8472 * common/common-exceptions.h: Include <string>.
8473 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8474 const char *, va_list)): New ctor. Use std::make_shared.
8475 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8477 (gdb_exception_error::gdb_exception_error(enum errors, const char
8479 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8481 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8483 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8484 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8487 2019-04-08 Tom Tromey <tom@tromey.com>
8489 * valops.c (value_rtti_indirect_type): Replace throw_exception
8491 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8493 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8495 * target.c (target_translate_tls_address): Replace throw_exception
8497 * stack.c (frame_apply_command_count): Replace throw_exception
8499 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8501 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8503 * rs6000-tdep.c (rs6000_frame_cache)
8504 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8505 * remote.c: Replace throw_exception with throw.
8506 * record-full.c (record_full_message, record_full_wait_1)
8507 (record_full_restore): Replace throw_exception with throw.
8509 (get_thread_current_frame_id, record_btrace_start_replaying)
8510 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8511 (cmd_record_btrace_start): Replace throw_exception with throw.
8512 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8514 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8515 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8517 (find_linespec_symbols): Replace throw_exception with throw.
8518 * infrun.c (displaced_step_prepare, resume): Replace
8519 throw_exception with throw.
8520 * infcmd.c (post_create_inferior): Replace throw_exception with
8522 * inf-loop.c (inferior_event_handler): Replace throw_exception
8524 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8525 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8526 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8527 (get_prev_frame_always, get_frame_pc_if_available)
8528 (get_frame_address_in_block_if_available, get_frame_language):
8529 Replace throw_exception with throw.
8530 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8531 throw_exception with throw.
8532 * eval.c (fetch_subexp_value, evaluate_var_value)
8533 (evaluate_funcall, evaluate_subexp_standard): Replace
8534 throw_exception with throw.
8535 * dwarf2loc.c (call_site_find_chain)
8536 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8537 Replace throw_exception with throw.
8538 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8540 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8542 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8543 * completer.c (complete_line_internal): Replace throw_exception
8545 * compile/compile-object-run.c (compile_object_run): Replace
8546 throw_exception with throw.
8547 * cli/cli-script.c (process_next_line): Replace throw_exception
8549 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8550 (btrace_enable, btrace_maint_update_pt_packets): Replace
8551 throw_exception with throw.
8552 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8553 throw_exception with throw.
8554 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8555 throw_exception with throw.
8556 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8557 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8558 * aarch64-tdep.c (aarch64_make_prologue_cache)
8559 (aarch64_make_stub_cache): Replace throw_exception with throw.
8561 2019-04-08 Tom Tromey <tom@tromey.com>
8563 * common/common-exceptions.c (throw_exception): Rename from
8564 throw_exception_cxx. Remove old copy. Make argument const.
8565 (throw_it): Create and throw exception objects directly.
8566 * common/common-exceptions.h (throw_exception): Make argument
8568 (struct gdb_exception_error): Add constructor.
8569 (struct gdb_exception_quit): Add constructor.
8571 2019-04-08 Tom Tromey <tom@tromey.com>
8573 * common/common-exceptions.h (exception_rethrow): Don't declare.
8574 (TRY_SJLJ): Update comment.
8575 (TRY, CATCH, END_CATCH): Remove.
8576 * common/common-exceptions.c (exception_rethrow): Remove.
8578 2019-04-08 Tom Tromey <tom@tromey.com>
8580 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8582 (gdb_exception_error): Rename from
8583 gdb_exception_RETURN_MASK_ERROR.
8584 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8585 (gdb_quit_bad_alloc): Update.
8586 * aarch64-tdep.c: Update.
8587 * ada-lang.c: Update.
8588 * ada-typeprint.c: Update.
8589 * ada-valprint.c: Update.
8590 * amd64-tdep.c: Update.
8591 * arch-utils.c: Update.
8592 * break-catch-throw.c: Update.
8593 * breakpoint.c: Update.
8595 * c-varobj.c: Update.
8596 * cli/cli-cmds.c: Update.
8597 * cli/cli-interp.c: Update.
8598 * cli/cli-script.c: Update.
8599 * common/common-exceptions.c: Update.
8600 * common/new-op.c: Update.
8601 * common/selftest.c: Update.
8602 * compile/compile-c-symbols.c: Update.
8603 * compile/compile-cplus-symbols.c: Update.
8604 * compile/compile-object-load.c: Update.
8605 * compile/compile-object-run.c: Update.
8606 * completer.c: Update.
8607 * corelow.c: Update.
8609 * cp-support.c: Update.
8610 * cp-valprint.c: Update.
8611 * darwin-nat.c: Update.
8612 * disasm-selftests.c: Update.
8613 * dtrace-probe.c: Update.
8614 * dwarf-index-cache.c: Update.
8615 * dwarf-index-write.c: Update.
8616 * dwarf2-frame-tailcall.c: Update.
8617 * dwarf2-frame.c: Update.
8618 * dwarf2loc.c: Update.
8619 * dwarf2read.c: Update.
8621 * event-loop.c: Update.
8622 * event-top.c: Update.
8624 * f-valprint.c: Update.
8625 * fbsd-tdep.c: Update.
8626 * frame-unwind.c: Update.
8628 * gdbtypes.c: Update.
8629 * gnu-v3-abi.c: Update.
8630 * guile/guile-internal.h: Update.
8631 * guile/scm-block.c: Update.
8632 * guile/scm-breakpoint.c: Update.
8633 * guile/scm-cmd.c: Update.
8634 * guile/scm-disasm.c: Update.
8635 * guile/scm-frame.c: Update.
8636 * guile/scm-lazy-string.c: Update.
8637 * guile/scm-math.c: Update.
8638 * guile/scm-param.c: Update.
8639 * guile/scm-ports.c: Update.
8640 * guile/scm-pretty-print.c: Update.
8641 * guile/scm-symbol.c: Update.
8642 * guile/scm-symtab.c: Update.
8643 * guile/scm-type.c: Update.
8644 * guile/scm-value.c: Update.
8645 * i386-linux-tdep.c: Update.
8646 * i386-tdep.c: Update.
8647 * inf-loop.c: Update.
8648 * infcall.c: Update.
8652 * language.c: Update.
8653 * linespec.c: Update.
8654 * linux-fork.c: Update.
8655 * linux-nat.c: Update.
8656 * linux-tdep.c: Update.
8657 * linux-thread-db.c: Update.
8659 * mi/mi-cmd-break.c: Update.
8660 * mi/mi-cmd-stack.c: Update.
8661 * mi/mi-interp.c: Update.
8662 * mi/mi-main.c: Update.
8663 * objc-lang.c: Update.
8664 * p-valprint.c: Update.
8666 * ppc-linux-tdep.c: Update.
8667 * printcmd.c: Update.
8668 * python/py-arch.c: Update.
8669 * python/py-breakpoint.c: Update.
8670 * python/py-cmd.c: Update.
8671 * python/py-finishbreakpoint.c: Update.
8672 * python/py-frame.c: Update.
8673 * python/py-framefilter.c: Update.
8674 * python/py-gdb-readline.c: Update.
8675 * python/py-inferior.c: Update.
8676 * python/py-infthread.c: Update.
8677 * python/py-lazy-string.c: Update.
8678 * python/py-linetable.c: Update.
8679 * python/py-objfile.c: Update.
8680 * python/py-param.c: Update.
8681 * python/py-prettyprint.c: Update.
8682 * python/py-progspace.c: Update.
8683 * python/py-record-btrace.c: Update.
8684 * python/py-record.c: Update.
8685 * python/py-symbol.c: Update.
8686 * python/py-type.c: Update.
8687 * python/py-unwind.c: Update.
8688 * python/py-utils.c: Update.
8689 * python/py-value.c: Update.
8690 * python/python.c: Update.
8691 * record-btrace.c: Update.
8692 * record-full.c: Update.
8693 * remote-fileio.c: Update.
8695 * riscv-tdep.c: Update.
8696 * rs6000-aix-tdep.c: Update.
8697 * rs6000-tdep.c: Update.
8698 * rust-exp.y: Update.
8699 * rust-lang.c: Update.
8700 * s390-tdep.c: Update.
8701 * selftest-arch.c: Update.
8702 * solib-dsbt.c: Update.
8703 * solib-frv.c: Update.
8704 * solib-spu.c: Update.
8705 * solib-svr4.c: Update.
8707 * sparc64-linux-tdep.c: Update.
8709 * symfile-mem.c: Update.
8710 * symmisc.c: Update.
8714 * tracefile-tfile.c: Update.
8715 * tui/tui.c: Update.
8716 * typeprint.c: Update.
8717 * unittests/cli-utils-selftests.c: Update.
8718 * unittests/parse-connection-spec-selftests.c: Update.
8720 * valprint.c: Update.
8723 * windows-nat.c: Update.
8724 * x86-linux-nat.c: Update.
8725 * xml-support.c: Update.
8727 2019-04-08 Tom Tromey <tom@tromey.com>
8729 * xml-support.c: Use C++ exception handling.
8730 * x86-linux-nat.c: Use C++ exception handling.
8731 * windows-nat.c: Use C++ exception handling.
8732 * varobj.c: Use C++ exception handling.
8733 * value.c: Use C++ exception handling.
8734 * valprint.c: Use C++ exception handling.
8735 * valops.c: Use C++ exception handling.
8736 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8738 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8739 * typeprint.c: Use C++ exception handling.
8740 * tui/tui.c: Use C++ exception handling.
8741 * tracefile-tfile.c: Use C++ exception handling.
8742 * top.c: Use C++ exception handling.
8743 * thread.c: Use C++ exception handling.
8744 * target.c: Use C++ exception handling.
8745 * symmisc.c: Use C++ exception handling.
8746 * symfile-mem.c: Use C++ exception handling.
8747 * stack.c: Use C++ exception handling.
8748 * sparc64-linux-tdep.c: Use C++ exception handling.
8749 * solib.c: Use C++ exception handling.
8750 * solib-svr4.c: Use C++ exception handling.
8751 * solib-spu.c: Use C++ exception handling.
8752 * solib-frv.c: Use C++ exception handling.
8753 * solib-dsbt.c: Use C++ exception handling.
8754 * selftest-arch.c: Use C++ exception handling.
8755 * s390-tdep.c: Use C++ exception handling.
8756 * rust-lang.c: Use C++ exception handling.
8757 * rust-exp.y: Use C++ exception handling.
8758 * rs6000-tdep.c: Use C++ exception handling.
8759 * rs6000-aix-tdep.c: Use C++ exception handling.
8760 * riscv-tdep.c: Use C++ exception handling.
8761 * remote.c: Use C++ exception handling.
8762 * remote-fileio.c: Use C++ exception handling.
8763 * record-full.c: Use C++ exception handling.
8764 * record-btrace.c: Use C++ exception handling.
8765 * python/python.c: Use C++ exception handling.
8766 * python/py-value.c: Use C++ exception handling.
8767 * python/py-utils.c: Use C++ exception handling.
8768 * python/py-unwind.c: Use C++ exception handling.
8769 * python/py-type.c: Use C++ exception handling.
8770 * python/py-symbol.c: Use C++ exception handling.
8771 * python/py-record.c: Use C++ exception handling.
8772 * python/py-record-btrace.c: Use C++ exception handling.
8773 * python/py-progspace.c: Use C++ exception handling.
8774 * python/py-prettyprint.c: Use C++ exception handling.
8775 * python/py-param.c: Use C++ exception handling.
8776 * python/py-objfile.c: Use C++ exception handling.
8777 * python/py-linetable.c: Use C++ exception handling.
8778 * python/py-lazy-string.c: Use C++ exception handling.
8779 * python/py-infthread.c: Use C++ exception handling.
8780 * python/py-inferior.c: Use C++ exception handling.
8781 * python/py-gdb-readline.c: Use C++ exception handling.
8782 * python/py-framefilter.c: Use C++ exception handling.
8783 * python/py-frame.c: Use C++ exception handling.
8784 * python/py-finishbreakpoint.c: Use C++ exception handling.
8785 * python/py-cmd.c: Use C++ exception handling.
8786 * python/py-breakpoint.c: Use C++ exception handling.
8787 * python/py-arch.c: Use C++ exception handling.
8788 * printcmd.c: Use C++ exception handling.
8789 * ppc-linux-tdep.c: Use C++ exception handling.
8790 * parse.c: Use C++ exception handling.
8791 * p-valprint.c: Use C++ exception handling.
8792 * objc-lang.c: Use C++ exception handling.
8793 * mi/mi-main.c: Use C++ exception handling.
8794 * mi/mi-interp.c: Use C++ exception handling.
8795 * mi/mi-cmd-stack.c: Use C++ exception handling.
8796 * mi/mi-cmd-break.c: Use C++ exception handling.
8797 * main.c: Use C++ exception handling.
8798 * linux-thread-db.c: Use C++ exception handling.
8799 * linux-tdep.c: Use C++ exception handling.
8800 * linux-nat.c: Use C++ exception handling.
8801 * linux-fork.c: Use C++ exception handling.
8802 * linespec.c: Use C++ exception handling.
8803 * language.c: Use C++ exception handling.
8804 * jit.c: Use C++ exception handling.
8805 * infrun.c: Use C++ exception handling.
8806 * infcmd.c: Use C++ exception handling.
8807 * infcall.c: Use C++ exception handling.
8808 * inf-loop.c: Use C++ exception handling.
8809 * i386-tdep.c: Use C++ exception handling.
8810 * i386-linux-tdep.c: Use C++ exception handling.
8811 * guile/scm-value.c: Use C++ exception handling.
8812 * guile/scm-type.c: Use C++ exception handling.
8813 * guile/scm-symtab.c: Use C++ exception handling.
8814 * guile/scm-symbol.c: Use C++ exception handling.
8815 * guile/scm-pretty-print.c: Use C++ exception handling.
8816 * guile/scm-ports.c: Use C++ exception handling.
8817 * guile/scm-param.c: Use C++ exception handling.
8818 * guile/scm-math.c: Use C++ exception handling.
8819 * guile/scm-lazy-string.c: Use C++ exception handling.
8820 * guile/scm-frame.c: Use C++ exception handling.
8821 * guile/scm-disasm.c: Use C++ exception handling.
8822 * guile/scm-cmd.c: Use C++ exception handling.
8823 * guile/scm-breakpoint.c: Use C++ exception handling.
8824 * guile/scm-block.c: Use C++ exception handling.
8825 * guile/guile-internal.h: Use C++ exception handling.
8826 * gnu-v3-abi.c: Use C++ exception handling.
8827 * gdbtypes.c: Use C++ exception handling.
8828 * frame.c: Use C++ exception handling.
8829 * frame-unwind.c: Use C++ exception handling.
8830 * fbsd-tdep.c: Use C++ exception handling.
8831 * f-valprint.c: Use C++ exception handling.
8832 * exec.c: Use C++ exception handling.
8833 * event-top.c: Use C++ exception handling.
8834 * event-loop.c: Use C++ exception handling.
8835 * eval.c: Use C++ exception handling.
8836 * dwarf2read.c: Use C++ exception handling.
8837 * dwarf2loc.c: Use C++ exception handling.
8838 * dwarf2-frame.c: Use C++ exception handling.
8839 * dwarf2-frame-tailcall.c: Use C++ exception handling.
8840 * dwarf-index-write.c: Use C++ exception handling.
8841 * dwarf-index-cache.c: Use C++ exception handling.
8842 * dtrace-probe.c: Use C++ exception handling.
8843 * disasm-selftests.c: Use C++ exception handling.
8844 * darwin-nat.c: Use C++ exception handling.
8845 * cp-valprint.c: Use C++ exception handling.
8846 * cp-support.c: Use C++ exception handling.
8847 * cp-abi.c: Use C++ exception handling.
8848 * corelow.c: Use C++ exception handling.
8849 * completer.c: Use C++ exception handling.
8850 * compile/compile-object-run.c: Use C++ exception handling.
8851 * compile/compile-object-load.c: Use C++ exception handling.
8852 * compile/compile-cplus-symbols.c: Use C++ exception handling.
8853 * compile/compile-c-symbols.c: Use C++ exception handling.
8854 * common/selftest.c: Use C++ exception handling.
8855 * common/new-op.c: Use C++ exception handling.
8856 * cli/cli-script.c: Use C++ exception handling.
8857 * cli/cli-interp.c: Use C++ exception handling.
8858 * cli/cli-cmds.c: Use C++ exception handling.
8859 * c-varobj.c: Use C++ exception handling.
8860 * btrace.c: Use C++ exception handling.
8861 * breakpoint.c: Use C++ exception handling.
8862 * break-catch-throw.c: Use C++ exception handling.
8863 * arch-utils.c: Use C++ exception handling.
8864 * amd64-tdep.c: Use C++ exception handling.
8865 * ada-valprint.c: Use C++ exception handling.
8866 * ada-typeprint.c: Use C++ exception handling.
8867 * ada-lang.c: Use C++ exception handling.
8868 * aarch64-tdep.c: Use C++ exception handling.
8870 2019-04-08 Tom Tromey <tom@tromey.com>
8872 * xml-support.c (gdb_xml_parser::parse): Update.
8873 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
8874 * value.c (show_convenience): Update.
8875 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
8876 (test_parse_flags_qcs): Update.
8877 * thread.c (thr_try_catch_cmd): Update.
8878 * target.c (target_translate_tls_address): Update.
8879 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
8880 (info_frame_command_core, frame_apply_command_count): Update.
8881 * rust-exp.y (rust_lex_exception_test): Update.
8882 * riscv-tdep.c (riscv_print_one_register_info): Update.
8883 * remote.c (remote_target::enable_btrace): Update.
8884 * record-btrace.c (record_btrace_enable_warn): Update.
8885 * python/py-utils.c (gdbpy_convert_exception): Update.
8886 * printcmd.c (do_one_display, print_variable_and_value): Update.
8887 * mi/mi-main.c (mi_print_exception): Update.
8888 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
8889 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
8890 * linux-nat.c (linux_nat_target::attach): Update.
8891 * linux-fork.c (class scoped_switch_fork_info): Update.
8892 * infrun.c (displaced_step_prepare): Update.
8893 * infcall.c (call_function_by_hand_dummy): Update.
8894 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
8895 * gnu-v3-abi.c (print_one_vtable): Update.
8896 * frame.c (get_prev_frame_always): Update.
8897 * f-valprint.c (info_common_command_for_block): Update.
8898 * exec.c (try_open_exec_file): Update.
8899 * exceptions.c (print_exception, exception_print)
8900 (exception_fprintf, exception_print_same): Update.
8901 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
8902 * dwarf-index-cache.c (index_cache::store)
8903 (index_cache::lookup_gdb_index): Update.
8904 * darwin-nat.c (maybe_cache_shell): Update.
8905 * cp-valprint.c (cp_print_value_fields): Update.
8906 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
8907 (gcc_cplus_symbol_address): Update.
8908 * compile/compile-c-symbols.c (gcc_convert_symbol)
8909 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
8910 * common/selftest.c: Update.
8911 * common/common-exceptions.h (struct gdb_exception) <message>: Now
8913 (exception_try_scope_entry, exception_try_scope_exit): Don't
8915 (struct exception_try_scope): Remove.
8916 (TRY): Don't use exception_try_scope.
8917 (struct gdb_exception): Add constructor, operator=.
8919 (struct gdb_exception_RETURN_MASK_ALL)
8920 (struct gdb_exception_RETURN_MASK_ERROR)
8921 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
8922 (struct gdb_quit_bad_alloc): Update.
8923 * common/common-exceptions.c (exception_none): Change
8925 (struct catcher) <state, exception>: Initialize inline.
8926 <prev>: Remove member.
8927 (current_catcher): Remove.
8928 (catchers): New global.
8929 (exceptions_state_mc_init): Simplify.
8930 (catcher_pop): Remove.
8931 (exceptions_state_mc, exceptions_state_mc_catch): Update.
8932 (try_scope_depth, exception_try_scope_entry)
8933 (exception_try_scope_exit): Remove.
8934 (throw_exception_sjlj): Update.
8935 (exception_messages, exception_messages_size): Remove.
8936 (throw_it): Simplify.
8937 (gdb_exception_sliced_copy): Remove.
8938 (throw_exception_cxx): Update.
8939 * cli/cli-script.c (script_from_file): Update.
8940 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
8942 * ada-valprint.c (ada_val_print): Update.
8943 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
8944 (create_excep_cond_exprs): Update.
8946 2019-04-08 Tom Tromey <tom@tromey.com>
8948 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
8949 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
8950 (TRY, CATCH, END_CATCH): Remove some definitions.
8951 * common/common-exceptions.c: Don't use GDB_XCPT.
8952 (catcher_list_size): Remove.
8953 (throw_exception, throw_it): Simplify.
8955 2019-04-05 Tom Tromey <tom@tromey.com>
8957 Revert the header-sorting patch.
8958 * ft32-tdep.c: Revert.
8959 * frv-tdep.c: Revert.
8960 * frv-linux-tdep.c: Revert.
8962 * frame-unwind.c: Revert.
8963 * frame-base.c: Revert.
8964 * fork-child.c: Revert.
8965 * findvar.c: Revert.
8966 * findcmd.c: Revert.
8967 * filesystem.c: Revert.
8968 * filename-seen-cache.h: Revert.
8969 * filename-seen-cache.c: Revert.
8970 * fbsd-tdep.c: Revert.
8971 * fbsd-nat.h: Revert.
8972 * fbsd-nat.c: Revert.
8973 * f-valprint.c: Revert.
8974 * f-typeprint.c: Revert.
8976 * extension.h: Revert.
8977 * extension.c: Revert.
8978 * extension-priv.h: Revert.
8979 * expprint.c: Revert.
8982 * exceptions.c: Revert.
8983 * event-top.c: Revert.
8984 * event-loop.c: Revert.
8986 * elfread.c: Revert.
8987 * dwarf2read.h: Revert.
8988 * dwarf2read.c: Revert.
8989 * dwarf2loc.c: Revert.
8990 * dwarf2expr.h: Revert.
8991 * dwarf2expr.c: Revert.
8992 * dwarf2-frame.c: Revert.
8993 * dwarf2-frame-tailcall.c: Revert.
8994 * dwarf-index-write.h: Revert.
8995 * dwarf-index-write.c: Revert.
8996 * dwarf-index-common.c: Revert.
8997 * dwarf-index-cache.h: Revert.
8998 * dwarf-index-cache.c: Revert.
8999 * dummy-frame.c: Revert.
9000 * dtrace-probe.c: Revert.
9003 * disasm-selftests.c: Revert.
9004 * dictionary.c: Revert.
9005 * dicos-tdep.c: Revert.
9006 * demangle.c: Revert.
9009 * darwin-nat.h: Revert.
9010 * darwin-nat.c: Revert.
9011 * darwin-nat-info.c: Revert.
9012 * d-valprint.c: Revert.
9013 * d-namespace.c: Revert.
9016 * csky-tdep.c: Revert.
9017 * csky-linux-tdep.c: Revert.
9018 * cris-tdep.c: Revert.
9019 * cris-linux-tdep.c: Revert.
9020 * cp-valprint.c: Revert.
9021 * cp-support.c: Revert.
9022 * cp-namespace.c: Revert.
9024 * corelow.c: Revert.
9025 * corefile.c: Revert.
9026 * continuations.c: Revert.
9027 * completer.h: Revert.
9028 * completer.c: Revert.
9029 * complaints.c: Revert.
9030 * coffread.c: Revert.
9031 * coff-pe-read.c: Revert.
9032 * cli-out.h: Revert.
9033 * cli-out.c: Revert.
9034 * charset.c: Revert.
9035 * c-varobj.c: Revert.
9036 * c-valprint.c: Revert.
9037 * c-typeprint.c: Revert.
9039 * buildsym.c: Revert.
9040 * buildsym-legacy.c: Revert.
9041 * build-id.h: Revert.
9042 * build-id.c: Revert.
9044 * bsd-uthread.c: Revert.
9045 * breakpoint.h: Revert.
9046 * breakpoint.c: Revert.
9047 * break-catch-throw.c: Revert.
9048 * break-catch-syscall.c: Revert.
9049 * break-catch-sig.c: Revert.
9050 * blockframe.c: Revert.
9052 * bfin-tdep.c: Revert.
9053 * bfin-linux-tdep.c: Revert.
9054 * bfd-target.c: Revert.
9056 * ax-general.c: Revert.
9059 * avr-tdep.c: Revert.
9061 * auto-load.c: Revert.
9062 * arm-wince-tdep.c: Revert.
9063 * arm-tdep.c: Revert.
9064 * arm-symbian-tdep.c: Revert.
9065 * arm-pikeos-tdep.c: Revert.
9066 * arm-obsd-tdep.c: Revert.
9067 * arm-nbsd-tdep.c: Revert.
9068 * arm-nbsd-nat.c: Revert.
9069 * arm-linux-tdep.c: Revert.
9070 * arm-linux-nat.c: Revert.
9071 * arm-fbsd-tdep.c: Revert.
9072 * arm-fbsd-nat.c: Revert.
9073 * arm-bsd-tdep.c: Revert.
9074 * arch-utils.c: Revert.
9075 * arc-tdep.c: Revert.
9076 * arc-newlib-tdep.c: Revert.
9077 * annotate.h: Revert.
9078 * annotate.c: Revert.
9079 * amd64-windows-tdep.c: Revert.
9080 * amd64-windows-nat.c: Revert.
9081 * amd64-tdep.c: Revert.
9082 * amd64-sol2-tdep.c: Revert.
9083 * amd64-obsd-tdep.c: Revert.
9084 * amd64-obsd-nat.c: Revert.
9085 * amd64-nbsd-tdep.c: Revert.
9086 * amd64-nbsd-nat.c: Revert.
9087 * amd64-nat.c: Revert.
9088 * amd64-linux-tdep.c: Revert.
9089 * amd64-linux-nat.c: Revert.
9090 * amd64-fbsd-tdep.c: Revert.
9091 * amd64-fbsd-nat.c: Revert.
9092 * amd64-dicos-tdep.c: Revert.
9093 * amd64-darwin-tdep.c: Revert.
9094 * amd64-bsd-nat.c: Revert.
9095 * alpha-tdep.c: Revert.
9096 * alpha-obsd-tdep.c: Revert.
9097 * alpha-nbsd-tdep.c: Revert.
9098 * alpha-mdebug-tdep.c: Revert.
9099 * alpha-linux-tdep.c: Revert.
9100 * alpha-linux-nat.c: Revert.
9101 * alpha-bsd-tdep.c: Revert.
9102 * alpha-bsd-nat.c: Revert.
9103 * aix-thread.c: Revert.
9105 * addrmap.c: Revert.
9106 * ada-varobj.c: Revert.
9107 * ada-valprint.c: Revert.
9108 * ada-typeprint.c: Revert.
9109 * ada-tasks.c: Revert.
9110 * ada-lang.c: Revert.
9111 * aarch64-tdep.c: Revert.
9112 * aarch64-ravenscar-thread.c: Revert.
9113 * aarch64-newlib-tdep.c: Revert.
9114 * aarch64-linux-tdep.c: Revert.
9115 * aarch64-linux-nat.c: Revert.
9116 * aarch64-fbsd-tdep.c: Revert.
9117 * aarch64-fbsd-nat.c: Revert.
9118 * aarch32-linux-nat.c: Revert.
9120 2019-04-05 Tom Tromey <tom@tromey.com>
9122 * ft32-tdep.c: Sort headers.
9123 * frv-tdep.c: Sort headers.
9124 * frv-linux-tdep.c: Sort headers.
9125 * frame.c: Sort headers.
9126 * frame-unwind.c: Sort headers.
9127 * frame-base.c: Sort headers.
9128 * fork-child.c: Sort headers.
9129 * findvar.c: Sort headers.
9130 * findcmd.c: Sort headers.
9131 * filesystem.c: Sort headers.
9132 * filename-seen-cache.h: Sort headers.
9133 * filename-seen-cache.c: Sort headers.
9134 * fbsd-tdep.c: Sort headers.
9135 * fbsd-nat.h: Sort headers.
9136 * fbsd-nat.c: Sort headers.
9137 * f-valprint.c: Sort headers.
9138 * f-typeprint.c: Sort headers.
9139 * f-lang.c: Sort headers.
9140 * extension.h: Sort headers.
9141 * extension.c: Sort headers.
9142 * extension-priv.h: Sort headers.
9143 * expprint.c: Sort headers.
9144 * exec.h: Sort headers.
9145 * exec.c: Sort headers.
9146 * exceptions.c: Sort headers.
9147 * event-top.c: Sort headers.
9148 * event-loop.c: Sort headers.
9149 * eval.c: Sort headers.
9150 * elfread.c: Sort headers.
9151 * dwarf2read.h: Sort headers.
9152 * dwarf2read.c: Sort headers.
9153 * dwarf2loc.c: Sort headers.
9154 * dwarf2expr.h: Sort headers.
9155 * dwarf2expr.c: Sort headers.
9156 * dwarf2-frame.c: Sort headers.
9157 * dwarf2-frame-tailcall.c: Sort headers.
9158 * dwarf-index-write.h: Sort headers.
9159 * dwarf-index-write.c: Sort headers.
9160 * dwarf-index-common.c: Sort headers.
9161 * dwarf-index-cache.h: Sort headers.
9162 * dwarf-index-cache.c: Sort headers.
9163 * dummy-frame.c: Sort headers.
9164 * dtrace-probe.c: Sort headers.
9165 * disasm.h: Sort headers.
9166 * disasm.c: Sort headers.
9167 * disasm-selftests.c: Sort headers.
9168 * dictionary.c: Sort headers.
9169 * dicos-tdep.c: Sort headers.
9170 * demangle.c: Sort headers.
9171 * dcache.h: Sort headers.
9172 * dcache.c: Sort headers.
9173 * darwin-nat.h: Sort headers.
9174 * darwin-nat.c: Sort headers.
9175 * darwin-nat-info.c: Sort headers.
9176 * d-valprint.c: Sort headers.
9177 * d-namespace.c: Sort headers.
9178 * d-lang.c: Sort headers.
9179 * ctf.c: Sort headers.
9180 * csky-tdep.c: Sort headers.
9181 * csky-linux-tdep.c: Sort headers.
9182 * cris-tdep.c: Sort headers.
9183 * cris-linux-tdep.c: Sort headers.
9184 * cp-valprint.c: Sort headers.
9185 * cp-support.c: Sort headers.
9186 * cp-namespace.c: Sort headers.
9187 * cp-abi.c: Sort headers.
9188 * corelow.c: Sort headers.
9189 * corefile.c: Sort headers.
9190 * continuations.c: Sort headers.
9191 * completer.h: Sort headers.
9192 * completer.c: Sort headers.
9193 * complaints.c: Sort headers.
9194 * coffread.c: Sort headers.
9195 * coff-pe-read.c: Sort headers.
9196 * cli-out.h: Sort headers.
9197 * cli-out.c: Sort headers.
9198 * charset.c: Sort headers.
9199 * c-varobj.c: Sort headers.
9200 * c-valprint.c: Sort headers.
9201 * c-typeprint.c: Sort headers.
9202 * c-lang.c: Sort headers.
9203 * buildsym.c: Sort headers.
9204 * buildsym-legacy.c: Sort headers.
9205 * build-id.h: Sort headers.
9206 * build-id.c: Sort headers.
9207 * btrace.c: Sort headers.
9208 * bsd-uthread.c: Sort headers.
9209 * breakpoint.h: Sort headers.
9210 * breakpoint.c: Sort headers.
9211 * break-catch-throw.c: Sort headers.
9212 * break-catch-syscall.c: Sort headers.
9213 * break-catch-sig.c: Sort headers.
9214 * blockframe.c: Sort headers.
9215 * block.c: Sort headers.
9216 * bfin-tdep.c: Sort headers.
9217 * bfin-linux-tdep.c: Sort headers.
9218 * bfd-target.c: Sort headers.
9219 * bcache.c: Sort headers.
9220 * ax-general.c: Sort headers.
9221 * ax-gdb.h: Sort headers.
9222 * ax-gdb.c: Sort headers.
9223 * avr-tdep.c: Sort headers.
9224 * auxv.c: Sort headers.
9225 * auto-load.c: Sort headers.
9226 * arm-wince-tdep.c: Sort headers.
9227 * arm-tdep.c: Sort headers.
9228 * arm-symbian-tdep.c: Sort headers.
9229 * arm-pikeos-tdep.c: Sort headers.
9230 * arm-obsd-tdep.c: Sort headers.
9231 * arm-nbsd-tdep.c: Sort headers.
9232 * arm-nbsd-nat.c: Sort headers.
9233 * arm-linux-tdep.c: Sort headers.
9234 * arm-linux-nat.c: Sort headers.
9235 * arm-fbsd-tdep.c: Sort headers.
9236 * arm-fbsd-nat.c: Sort headers.
9237 * arm-bsd-tdep.c: Sort headers.
9238 * arch-utils.c: Sort headers.
9239 * arc-tdep.c: Sort headers.
9240 * arc-newlib-tdep.c: Sort headers.
9241 * annotate.h: Sort headers.
9242 * annotate.c: Sort headers.
9243 * amd64-windows-tdep.c: Sort headers.
9244 * amd64-windows-nat.c: Sort headers.
9245 * amd64-tdep.c: Sort headers.
9246 * amd64-sol2-tdep.c: Sort headers.
9247 * amd64-obsd-tdep.c: Sort headers.
9248 * amd64-obsd-nat.c: Sort headers.
9249 * amd64-nbsd-tdep.c: Sort headers.
9250 * amd64-nbsd-nat.c: Sort headers.
9251 * amd64-nat.c: Sort headers.
9252 * amd64-linux-tdep.c: Sort headers.
9253 * amd64-linux-nat.c: Sort headers.
9254 * amd64-fbsd-tdep.c: Sort headers.
9255 * amd64-fbsd-nat.c: Sort headers.
9256 * amd64-dicos-tdep.c: Sort headers.
9257 * amd64-darwin-tdep.c: Sort headers.
9258 * amd64-bsd-nat.c: Sort headers.
9259 * alpha-tdep.c: Sort headers.
9260 * alpha-obsd-tdep.c: Sort headers.
9261 * alpha-nbsd-tdep.c: Sort headers.
9262 * alpha-mdebug-tdep.c: Sort headers.
9263 * alpha-linux-tdep.c: Sort headers.
9264 * alpha-linux-nat.c: Sort headers.
9265 * alpha-bsd-tdep.c: Sort headers.
9266 * alpha-bsd-nat.c: Sort headers.
9267 * aix-thread.c: Sort headers.
9268 * agent.c: Sort headers.
9269 * addrmap.c: Sort headers.
9270 * ada-varobj.c: Sort headers.
9271 * ada-valprint.c: Sort headers.
9272 * ada-typeprint.c: Sort headers.
9273 * ada-tasks.c: Sort headers.
9274 * ada-lang.c: Sort headers.
9275 * aarch64-tdep.c: Sort headers.
9276 * aarch64-ravenscar-thread.c: Sort headers.
9277 * aarch64-newlib-tdep.c: Sort headers.
9278 * aarch64-linux-tdep.c: Sort headers.
9279 * aarch64-linux-nat.c: Sort headers.
9280 * aarch64-fbsd-tdep.c: Sort headers.
9281 * aarch64-fbsd-nat.c: Sort headers.
9282 * aarch32-linux-nat.c: Sort headers.
9284 2019-04-04 Tom Tromey <tom@tromey.com>
9286 * varobj.c (varobj_create): Update.
9287 * rust-exp.y (struct rust_parser) <update_innermost_block,
9288 lookup_symbol>: New methods.
9289 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9291 (rust_parser::rust_lookup_type)
9292 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9293 * printcmd.c (display_command, do_one_display): Update.
9294 * parser-defs.h (struct parser_state) <parser_state>: Add
9295 "tracker" parameter.
9296 (block_tracker): New member.
9297 (class innermost_block_tracker) <innermost_block_tracker>: Add
9299 <reset>: Remove method.
9300 (innermost_block): Don't declare.
9301 (null_post_parser): Update.
9302 * parse.c (innermost_block): Remove global.
9303 (write_dollar_variable): Update.
9304 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9305 Remove "tracker_types" parameter.
9306 (parse_expression): Add "tracker" parameter.
9307 (parse_expression_for_completion): Update.
9308 (null_post_parser): Add "tracker" parameter.
9309 * p-exp.y: Update rules.
9310 * m2-exp.y: Update rules.
9311 * language.h (struct language_defn) <la_post_parser>: Add
9312 "tracker" parameter.
9313 * go-exp.y: Update rules.
9314 * f-exp.y: Update rules.
9315 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9317 * d-exp.y: Update rules.
9318 * c-exp.y: Update rules.
9319 * breakpoint.c (set_breakpoint_condition): Create an
9320 innermost_block_tracker.
9321 (watch_command_1): Likewise.
9322 * ada-lang.c (resolve): Add "tracker" parameter.
9323 (resolve_subexp): Likewise.
9324 * ada-exp.y (write_var_from_sym): Update.
9326 2019-04-04 Tom Tromey <tom@tromey.com>
9328 * type-stack.h: New file.
9329 * type-stack.c: New file.
9330 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9332 (insert_into_type_stack, insert_type, push_type, push_type_int)
9333 (insert_type_address_space, pop_type, pop_type_int)
9334 (pop_typelist, pop_type_stack, append_type_stack)
9335 (push_type_stack, get_type_stack, push_typelist)
9336 (follow_type_instance_flags, follow_types): Don't declare.
9337 * parse.c (type_stack): Remove global.
9338 (parse_exp_in_context): Update.
9339 (insert_into_type_stack, insert_type, push_type, push_type_int)
9340 (insert_type_address_space, pop_type, pop_type_int)
9341 (pop_typelist, pop_type_stack, append_type_stack)
9342 (push_type_stack, get_type_stack, push_typelist)
9343 (follow_type_instance_flags, follow_types): Remove (moved to
9345 * f-exp.y (type_stack): New global.
9347 (push_kind_type, f_parse): Update.
9348 * d-exp.y (type_stack): New global.
9351 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9353 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9354 (HFILES_NO_SRCDIR): Add type-stack.h.
9356 2019-04-04 Tom Tromey <tom@tromey.com>
9358 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9359 (rust_parser::convert_ast_to_expression, rust_parse)
9360 (rust_lex_test_completion, rust_lex_tests): Update.
9361 * parser-defs.h (struct expr_completion_state): New.
9362 (struct parser_state) <parser_state>: Add completion parameter.
9363 <mark_struct_expression, mark_completion_tag>: New methods.
9364 <parse_completion, m_completion_state>: New members.
9365 (prefixify_expression, null_post_parser): Update.
9366 (mark_struct_expression, mark_completion_tag): Don't declare.
9367 * parse.c (parse_completion, expout_last_struct)
9368 (expout_tag_completion_type, expout_completion_name): Remove
9370 (parser_state::mark_struct_expression)
9371 (parser_state::mark_completion_tag): Now methods.
9372 (prefixify_expression): Add last_struct parameter.
9373 (prefixify_subexp): Likewise.
9374 (parse_exp_1): Update.
9375 (parse_exp_in_context): Add cstate parameter. Update.
9376 (parse_expression_for_completion): Create an
9377 expr_completion_state.
9378 (null_post_parser): Add "completion" parameter.
9379 * p-exp.y: Update rules.
9381 * language.h (struct language_defn) <la_post_parser>: Add
9382 "completing" parameter.
9383 * go-exp.y: Update rules.
9384 (lex_one_token): Update.
9385 * expression.h (parse_completion): Don't declare.
9386 * d-exp.y: Update rules.
9387 (lex_one_token): Update rules.
9388 * c-exp.y: Update rules.
9389 (lex_one_token): Update.
9390 * ada-lang.c (resolve): Add "parse_completion" parameter.
9391 (resolve_subexp): Likewise.
9392 (ada_resolve_function): Likewise.
9394 2019-04-04 Tom Tromey <tom@tromey.com>
9396 * parser-defs.h (struct parser_state) <start_arglist,
9397 end_arglist>: New methods.
9398 <arglist_len, m_funcall_chain>: New members.
9399 (arglist_len, start_arglist, end_arglist): Don't declare.
9400 * parse.c (arglist_len, funcall_chain): Remove global.
9401 (start_arglist, end_arglist): Remove functions.
9402 (parse_exp_in_context): Update.
9403 * p-exp.y: Update rules.
9404 * m2-exp.y: Update rules.
9405 * go-exp.y: Update rules.
9406 * f-exp.y: Update rules.
9407 * d-exp.y: Update rules.
9408 * c-exp.y: Update rules.
9410 2019-04-04 Tom Tromey <tom@tromey.com>
9412 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9413 lex_operator, push_back>: New methods.
9415 (rust_parser::lex_hex, lex_escape): Rename and update.
9416 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9417 (rust_parser::lex_operator): Rename and update.
9418 (rust_parser::lex_number, rustyylex, rustyyerror)
9419 (rust_lex_test_init, rust_lex_test_sequence)
9420 (rust_lex_test_push_back, rust_lex_tests): Update.
9421 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9423 <lexptr, prev_lexptr>: New members.
9424 (lexptr, prev_lexptr): Don't declare.
9425 * parse.c (lexptr, prev_lexptr): Remove globals.
9426 (parse_exp_in_context): Update.
9427 * p-exp.y (yylex, yyerror): Update.
9428 * m2-exp.y (parse_number, yylex, yyerror): Update.
9429 * go-exp.y (lex_one_token, yyerror): Update.
9430 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9431 * d-exp.y (lex_one_token, yyerror): Update.
9432 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9433 (lex_one_token, yyerror): Update.
9434 * ada-lex.l (YY_INPUT): Update.
9435 (rewind_to_char): Update.
9436 * ada-exp.y (yyerror): Update.
9438 2019-04-04 Tom Tromey <tom@tromey.com>
9440 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9441 * parser-defs.h (struct parser_state) <parser_state>: Add new
9443 <comma_terminates>: New member.
9444 (comma_terminates): Don't declare global.
9445 * parse.c (comma_terminates): Remove global.
9446 (parse_exp_in_context): Update.
9447 * p-exp.y (yylex): Update.
9448 * m2-exp.y (yylex): Update.
9449 * go-exp.y (lex_one_token): Update.
9450 * f-exp.y (yylex): Update.
9451 * d-exp.y (lex_one_token): Update.
9452 * c-exp.y (lex_one_token): Update.
9453 * ada-lex.l: Update.
9455 2019-04-04 Tom Tromey <tom@tromey.com>
9457 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9458 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9459 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9460 * parser-defs.h (paren_depth): Don't declare.
9461 * parse.c (paren_depth): Remove global.
9462 (parse_exp_in_context): Update.
9463 * p-exp.y (paren_depth): New global.
9464 (pascal_parse): Initialize it.
9465 * m2-exp.y (paren_depth): New global.
9466 (m2_parse): Initialize it.
9467 * go-exp.y (paren_depth): New global.
9468 (go_parse): Initialize it.
9469 * f-exp.y (paren_depth): New global.
9470 (f_parse): Initialize it.
9471 * d-exp.y (paren_depth): New global.
9472 (d_parse): Initialize it.
9473 * c-exp.y (paren_depth): New global.
9474 (c_parse): Initialize it.
9475 * ada-lex.l (paren_depth): New global.
9476 (lexer_init): Initialize it.
9478 2019-04-04 Tom Tromey <tom@tromey.com>
9480 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9481 (rust_parser::convert_ast_to_type)
9482 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9483 * parser-defs.h (struct parser_state) <parser_state>: Add
9484 parameters. Initialize new members.
9485 <expression_context_block, expression_context_pc>: New members.
9486 * parse.c (expression_context_block, expression_context_pc):
9488 (parse_exp_in_context): Update.
9489 * p-exp.y: Update all rules.
9491 * m2-exp.y: Update all rules.
9493 * go-exp.y (yylex): Update.
9494 * f-exp.y (yylex): Update.
9495 * d-exp.y: Update all rules.
9497 * c-exp.y: Update all rules.
9498 (lex_one_token, classify_name, yylex, c_parse): Update.
9499 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9501 2019-04-04 Tom Tromey <tom@tromey.com>
9503 * gdbarch.h, gdbarch.c: Rebuild.
9504 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9506 (struct stap_parse_info): Replace "parser_state" with
9508 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9509 (parser_state): New class.
9510 * parse.c (expr_builder): Rename.
9511 (expr_builder::release): Rename.
9512 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9513 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9514 (write_exp_elt_longcst, write_exp_elt_floatcst)
9515 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9516 (write_exp_string_vector, write_exp_bitstring)
9517 (write_exp_msymbol, mark_struct_expression)
9518 (write_dollar_variable)
9519 (insert_type_address_space, increase_expout_size): Replace
9520 "parser_state" with "expr_builder".
9521 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9522 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9523 "parser_state" with "expr_builder".
9525 2019-04-04 Tom Tromey <tom@tromey.com>
9527 * rust-exp.y: Replace "parse_language" with method call.
9529 (yylex): Replace "parse_language" with method call.
9531 (yylex): Replace "parse_language" with method call.
9532 * go-exp.y (classify_name): Replace "parse_language" with method
9534 * f-exp.y (yylex): Replace "parse_language" with method call.
9535 * d-exp.y (lex_one_token): Replace "parse_language" with method
9538 (lex_one_token, classify_name, yylex): Replace "parse_language"
9540 * ada-exp.y (find_primitive_type, type_char)
9541 (type_system_address): Replace "parse_language" with method call.
9543 2019-04-04 Tom Tromey <tom@tromey.com>
9545 * rust-exp.y: Replace "parse_gdbarch" with method call.
9546 * parse.c (write_dollar_variable, insert_type_address_space):
9547 Replace "parse_gdbarch" with method call.
9548 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9550 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9552 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9553 "parse_gdbarch" with method call.
9554 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9556 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9557 "parse_gdbarch" with method call.
9558 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9559 "parse_gdbarch" with method call.
9560 * c-exp.y (parse_type, parse_number, classify_name): Replace
9561 "parse_gdbarch" with method call.
9562 * ada-lex.l: Replace "parse_gdbarch" with method call.
9563 * ada-exp.y (parse_type, find_primitive_type, type_char)
9564 (type_system_address): Replace "parse_gdbarch" with method call.
9566 2019-04-04 Tom Tromey <tom@tromey.com>
9568 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9569 * stap-probe.c (stap_parse_argument): Update.
9570 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9571 initial_size parameter.
9572 * rust-exp.y (rust_lex_tests): Update.
9573 * parse.c (parser_state): Update.
9574 (parse_exp_in_context): Update.
9575 * parser-defs.h (struct parser_state) <parser_state>: Remove
9576 "initial_size" parameter.
9578 2019-04-04 Tom Tromey <tom@tromey.com>
9580 * parser-defs.h (increase_expout_size): Don't declare.
9581 * parse.c (increase_expout_size): Now static.
9583 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9585 * gnu-nat.c (gnu_nat_target::wait): Fix
9586 target_waitstatus_to_string call.
9588 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9590 * eval.c (evaluate_subexp_standard): Handle internal functions
9591 during Fortran function call handling.
9593 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9595 * NEWS: Mention new internal functions.
9596 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9597 (read_base_type): Use dwarf2_init_complex_target_type.
9598 * value.c (creal_internal_fn): New function.
9599 (cimag_internal_fn): New function.
9600 (_initialize_values): Register new internal functions.
9602 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9604 * infrun.c (stop_all_threads): If debug_infrun, always
9605 trace the wait status after wait_one, using
9606 target_waitstatus_to_string and target_pid_to_str.
9607 (handle_inferior_event): Replace various trace of
9608 wait status kind by a single trace.
9609 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9610 wait status kind image by target_waitstatus_to_string.
9611 * target/waitstatus.c (target_waitstatus_to_string): Fix
9614 2019-04-01 Tom Tromey <tromey@adacore.com>
9617 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9619 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9620 Pedro Alves <palves@redhat.com>
9622 * top.c (quit_force): Call 'finalize_values'.
9623 * value.c (finalize_values): New function.
9624 * value.h (finalize_values): Declare.
9626 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9628 * NEWS: Announce $_gdb_major and $_gdb_minor.
9630 * top.c (init_gdb_version_vars): New function.
9631 (gdb_init): Call init_gdb_version_vars.
9633 2019-03-29 Tom Tromey <tromey@adacore.com>
9635 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9636 help text. Remove dead code.
9638 2019-03-29 Keith Seitz <keiths@redhat.com>
9640 From Siddhesh Poyarekar:
9641 * f-lang.h (f77_get_upperbound): Return LONGEST.
9642 (f77_get_lowerbound): Likewise.
9643 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9644 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9646 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9647 plongest to format print it.
9648 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9649 (f77_get_upperbound): Likewise.
9650 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9651 LOWER_BOUND to LONGEST.
9652 (f77_create_arrayprint_offset_tbl): Likewise.
9654 2019-03-29 Keith Seitz <keiths@redhat.com>
9656 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9657 %s/pulongest for TYPE_LENGTH instead of %d in format
9659 * ada-typerint.c (ada_print_type): Likewise.
9660 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9661 * compile/compile-c-support.c (generate_register_struct): Likewise.
9662 * gdbtypes.c (recursive_dump_type): Likewise.
9663 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9664 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9665 instead of %d in format strings.
9666 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9667 to std::min to ULONGEST.
9668 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9669 instead of %d in format strings.
9670 * tracepoint.c (info_scope_command): Likewise.
9671 * typeprint.c (print_offset_data::update)
9672 (print_offset_data::finish): Likewise.
9673 * xtensa-tdep.c (xtensa_store_return_value)
9674 (xtensa_push_dummy_call): Likewise.
9676 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9678 * windows-nat.c (display_selector): Fixed format specifications
9681 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9683 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9685 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9687 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9688 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9689 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9690 (nios2_linux_init_abi): Install it.
9692 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9694 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9696 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9698 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9700 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9701 Tom Tromey <tromey@adacore.com>
9703 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9705 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9707 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9708 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9709 method to compute the bounds of range types. Also print "[evaluated]"
9710 if the bounds' values come from a dynamic evaluation.
9712 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9714 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9715 whitespace when pretty printing is on.
9717 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9719 * ppc-linux-nat.c: Add include.
9721 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9723 * NEWS: Mention AArch64 Pointer Authentication.
9725 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9727 * arm-linux-nat.c: Add include.
9729 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9731 * source-cache.c (source_cache::get_source_lines): Re-read
9732 fullname after calling open_source_file.
9734 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9736 * NEWS: Mention TLS support for FreeBSD.
9738 2019-03-25 Tom Tromey <tromey@adacore.com>
9740 * minsyms.c (BUNCH_SIZE): Update comment.
9741 (~minimal_symbol_reader): Remove old comment.
9742 (compact_minimal_symbols): Update comment.
9743 (minimal_symbol_reader::install): Remove old comment. Update
9746 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9748 * s390-linux-nat.c: Add include.
9750 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9752 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9753 Call linux_get_hwcap.
9754 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
9756 (aarch64_linux_get_hwcap): Remove function.
9757 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
9759 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
9761 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
9762 * linux-tdep.c (linux_get_hwcap): Add function.
9763 (linux_get_hwcap2): Likewise.
9764 * linux-tdep.h (linux_get_hwcap): Add declaration.
9765 (linux_get_hwcap2): Likewise.
9766 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
9767 (ppc_linux_get_hwcap2): Likewise.
9768 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
9770 (ppc_linux_nat_target::insert_watchpoint): Likewise.
9771 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
9772 (ppc_linux_nat_target::read_description): Likewise.
9773 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
9774 * s390-linux-nat.c: Likewise.
9775 * s390-linux-tdep.c (s390_core_read_description): Likewise.
9777 2019-03-24 Tom Tromey <tom@tromey.com>
9779 * ada-lang.c (standard_lookup): Simplify initialization.
9780 (ada_lookup_symbol_nonlocal): Simplify return.
9781 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
9782 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
9783 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
9784 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
9786 * solib.c (solib_global_lookup): Simplify.
9787 * symtab.c (null_block_symbol): Remove.
9788 (symbol_cache_lookup): Simplify returns.
9789 (lookup_language_this): Simplify returns.
9790 (lookup_symbol_aux): Simplify return.
9791 (lookup_local_symbol): Simplify returns.
9792 (lookup_global_symbol_from_objfile): Simplify return.
9793 (lookup_symbol_in_objfile_symtabs)
9794 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
9795 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
9796 (lookup_static_symbol, lookup_global_symbol): Simplify return.
9797 * cp-namespace.c (cp_lookup_bare_symbol)
9798 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
9799 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
9800 (cp_lookup_nested_symbol): Don't use null_block_symbol.
9801 (cp_lookup_symbol_via_imports): Simplify initialization.
9802 (find_symbol_in_baseclass): Likewise.
9803 * symtab.h (null_block_symbol): Remove.
9804 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
9805 (d_lookup_nested_symbol, d_lookup_symbol_imports)
9806 (d_lookup_symbol_module): Likewise.
9807 (find_symbol_in_baseclass): Simplify initialization.
9809 2019-03-24 Tom Tromey <tom@tromey.com>
9811 * expression.h: Don't include symtab.h.
9812 (struct block): Forward declare.
9814 2019-03-24 Tom Tromey <tom@tromey.com>
9816 * c-exp.y (typebase): Remove casts.
9817 * gdbtypes.c (lookup_unsigned_typename, )
9818 (lookup_signed_typename): Remove cast.
9819 * eval.c (parse_to_comma_and_eval): Remove cast.
9820 * parse.c (write_dollar_variable): Remove cast.
9821 * block.h (struct block) <superblock>: Now const.
9822 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
9823 * psymtab.c (psym_map_matching_symbols): Make "block" const.
9824 (map_block): Make "block" const.
9825 * symfile.h (struct quick_symbol_functions)
9826 <map_matching_symbols>: Constify block argument to "callback".
9827 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
9829 (find_pc_sect_compunit_symtab): Make "b" const.
9830 (find_symbol_at_address): Likewise.
9831 (search_symbols): Likewise.
9832 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
9833 (dw2_debug_names_lookup_symbol): Likewise.
9834 (dw2_map_matching_symbols): Update.
9835 * p-valprint.c (pascal_val_print): Remove "block".
9836 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
9837 (aux_add_nonlocal_symbols): Make "block" const.
9838 (resolve_subexp): Remove cast.
9839 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
9841 (iterate_over_file_blocks): Likewise.
9842 * f-exp.y (%union) <bval>: Remove.
9843 * coffread.c (patch_opaque_types): Make "b" const.
9844 * spu-tdep.c (spu_catch_start): Make "block" const.
9845 * c-valprint.c (print_unpacked_pointer): Remove "block".
9846 * symmisc.c (dump_symtab_1): Make "b" const.
9847 (block_depth): Make "block" const.
9848 * d-exp.y (%union) <bval>: Remove.
9849 * cp-support.h (cp_lookup_rtti_type): Update.
9850 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
9851 * psymtab.c (psym_lookup_symbol): Make "block" const.
9852 (maintenance_check_psymtabs): Make "b" const.
9853 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
9854 (enumerate_locals, enumerate_args): Update.
9855 * python/py-symtab.c (stpy_global_block): Make "block" const.
9856 (stpy_static_block): Likewise.
9857 * inline-frame.c (block_starting_point_at): Make "new_block"
9859 * block.c (find_block_in_blockvector): Make return type const.
9860 (blockvector_for_pc_sect): Make "b" const.
9861 (find_block_in_blockvector): Make "b" const.
9863 2019-03-23 Tom Tromey <tom@tromey.com>
9865 * varobj.c (varobj_create): Update.
9866 * symfile.c (clear_symtab_users): Don't reset innermost_block.
9867 * printcmd.c (display_command, do_one_display): Don't reset
9869 * parser-defs.h (enum innermost_block_tracker_type): Move to
9871 (innermost_block): Update comment.
9872 * parse.c (parse_exp_1): Add tracker_types parameter.
9873 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
9874 tracker_types parameter. Reset innermost_block.
9875 (parse_exp_in_context): Remove.
9876 (parse_expression_for_completion): Update.
9877 * objfiles.c (~objfile): Don't reset expression_context_block or
9879 * expression.h (enum innermost_block_tracker_type): Move from
9881 (parse_exp_1): Add tracker_types parameter.
9882 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
9883 reset innermost_block.
9885 2019-03-23 Tom Tromey <tom@tromey.com>
9887 * objfiles.h: Include bcache.h.
9889 2019-03-23 Tom Tromey <tom@tromey.com>
9891 * linespec.c (get_current_search_block): Use
9892 scoped_restore_current_language.
9893 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
9895 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9896 Jiong Wang <jiong.wang@arm.com>
9898 * aarch64-linux-tdep.c
9899 (aarch64_linux_iterate_over_regset_sections): Check for pauth
9901 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
9903 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9904 Jiong Wang <jiong.wang@arm.com>
9906 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
9908 (aarch64_analyze_prologue_test): Add PACIASP test.
9909 (aarch64_prologue_prev_register): Unmask PC value.
9911 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9912 Jiong Wang <jiong.wang@arm.com>
9914 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
9915 (aarch64_dwarf2_prev_register): Unmask PC value.
9916 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
9917 (aarch64_execute_dwarf_cfa_vendor_op): Check for
9918 DW_CFA_AARCH64_negate_ra_state.
9919 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
9921 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9922 Jiong Wang <jiong.wang@arm.com>
9924 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
9926 (aarch64_pseudo_register_name): Likewise.
9927 (aarch64_pseudo_register_type): Likewise.
9928 (aarch64_pseudo_register_reggroup_p): Likewise.
9929 (aarch64_gdbarch_init): Add pauth registers.
9930 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
9931 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
9932 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
9933 (struct gdbarch_tdep): Add regnum for ra_state.
9935 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9936 Jiong Wang <jiong.wang@arm.com>
9938 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
9940 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9941 Jiong Wang <jiong.wang@arm.com>
9943 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
9945 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
9946 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
9947 (aarch64_gdbarch_init): Add puth registers.
9948 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
9949 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
9950 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
9952 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9953 Jiong Wang <jiong.wang@arm.com>
9955 * aarch64-linux-nat.c
9956 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
9957 * aarch64-linux-tdep.c
9958 (aarch64_linux_core_read_description): Likewise.
9959 (aarch64_linux_get_hwcap): New function.
9960 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
9961 (aarch64_linux_get_hwcap): New declaration.
9963 2019-03-22 Alan Hayward <alan.hayward@arm.com>
9964 Jiong Wang <jiong.wang@arm.com>
9966 * aarch64-linux-nat.c
9967 (aarch64_linux_nat_target::read_description): Add pauth param.
9968 * aarch64-linux-tdep.c
9969 (aarch64_linux_core_read_description): Likewise.
9970 * aarch64-tdep.c (struct target_desc): Add in pauth.
9971 (aarch64_read_description): Add pauth param.
9972 (aarch64_gdbarch_init): Likewise.
9973 * aarch64-tdep.h (aarch64_read_description): Likewise.
9974 * arch/aarch64.c (aarch64_create_target_description): Likewise.
9975 * arch/aarch64.h (aarch64_create_target_description): Likewise.
9976 * features/Makefile: Add new files.
9977 * features/aarch64-pauth.c: New file.
9978 * features/aarch64-pauth.xml: New file.
9980 2019-03-20 Tom Tromey <tromey@adacore.com>
9982 * infrun.c (handle_inferior_event): Rename from
9983 handle_inferior_event_1. Create a scoped_value_mark.
9984 (handle_inferior_event): Remove.
9986 2019-03-19 Tom Tromey <tromey@adacore.com>
9988 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
9989 * infrun.h (print_stop_event): Add "displays" parameter.
9990 * infrun.c (print_stop_event): Add "displays" parameter.
9992 2019-03-19 Pedro Alves <palves@redhat.com>
9994 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
9995 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
9996 to -1. Fix TABs vs spaces.
9997 (tui_ui_out::tui_ui_out): Don't initialize fields here.
9998 * tui/tui-out.h (tui_ui_out) Add intro comments.
9999 <m_line, m_start_of_line>: In-class initialize, and add describing
10002 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10004 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10006 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10008 2019-03-18 Pedro Alves <palves@redhat.com>
10009 Eli Zaretskii <eliz@gnu.org>
10011 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10012 m_line and m_start_of_line.
10014 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10016 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10017 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10018 it returns a newline. This fixes a regression in TU mode, whereby
10019 the next line is output on the same screen line as the user input.
10021 2019-03-18 Tom Tromey <tromey@adacore.com>
10023 * minsyms.c (minimal_symbol_reader::install): Remove call to
10026 2019-03-18 Pedro Alves <palves@redhat.com>
10028 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10030 (apply_style): New, factored out from ...
10031 (apply_ansi_escape): ... this. Handle reverse video mode.
10032 (tui_set_reverse_mode): New function.
10033 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10034 * tui/tui-winsource.c (tui_show_source_line): Use
10035 tui_set_reverse_mode instead of setting A_STANDOUT.
10036 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10037 New setter methods.
10039 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10041 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10044 2019-03-18 Tom Tromey <tromey@adacore.com>
10046 * ada-lang.c (empty_array): Add "high" parameter.
10047 (ada_evaluate_subexp): Update.
10049 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10051 * unittests/string_view-selftests.c: Define
10052 _initialize_string_view_selftests unconditionally.
10054 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10057 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10059 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10062 * windows-nat.c (display_selector): Fix format specifiers.
10064 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10066 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10067 tui_refill_source_window instead of tui_refresh_win, to update the
10068 current execution line. This fixes redisplay of the current line
10069 when stepping through the code with "next" or "step".
10071 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10073 * source-cache.c (source_cache::get_source_lines): Call
10074 find_source_lines to initialize s->nlines. This fixes vertical
10075 scrolling of TUI source window when the DOWN arrow is pressed.
10077 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10079 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10080 linux-thread-db.c (_initialize_thread_db): Likewise.
10082 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10084 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10085 wclrtoeol in tui_show_source_line". This reverts changes made in
10086 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10088 2019-03-15 Tom Tromey <tom@tromey.com>
10090 * symtab.h (struct minimal_symbol): Derive from
10091 general_symbol_info.
10092 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10093 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10094 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10095 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10096 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10097 (MSYMBOL_SEARCH_NAME): Update.
10098 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10099 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10100 * minsyms.c (minimal_symbol_reader::record_full): Update.
10102 2019-03-15 Tom Tromey <tom@tromey.com>
10104 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10106 2019-03-15 Tom Tromey <tom@tromey.com>
10108 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10109 unique_xmalloc_ptr.
10110 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10112 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10113 (build_minimal_symbol_hash_tables)
10114 (minimal_symbol_reader::install): Update.
10116 2019-03-15 Tom Tromey <tom@tromey.com>
10118 * symtab.c (create_demangled_names_hash): Update.
10119 (symbol_set_names): Update.
10120 * objfiles.h (struct objfile_per_bfd_storage)
10121 <demangled_names_hash>: Now an htab_up.
10122 * objfiles.c (objfile_per_bfd_storage): Simplify.
10124 2019-03-15 Tom Tromey <tom@tromey.com>
10126 * objfiles.h (struct objfile_per_bfd_storage): Declare
10128 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10130 (get_objfile_bfd_data): Use new. Don't initialize
10132 (free_objfile_per_bfd_storage): Remove.
10133 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10135 2019-03-15 Tom Tromey <tom@tromey.com>
10137 * symfile.c (reread_symbols): Update.
10138 * objfiles.c (objfile::objfile): Update.
10139 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10140 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10142 (minimal_symbol_reader::install): Update.
10143 (terminate_minimal_symbol_table): Remove.
10144 * jit.c (jit_object_close_impl): Update.
10146 2019-03-15 Tom Tromey <tom@tromey.com>
10148 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10151 2019-03-15 Tom Tromey <tom@tromey.com>
10153 * objfiles.h (struct objfile_per_bfd_storage)
10154 <demangled_hash_languages>: Now a bitset.
10155 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10156 (lookup_minimal_symbol): Update.
10158 2019-03-15 Tom Tromey <tom@tromey.com>
10160 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10161 Don't return the symbol.
10162 * coffread.c (record_minimal_symbol): Use record_full.
10164 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10166 The MS-Windows port of ncurses fails to switch to a color pair if
10167 one or both of the colors are the implicit default colors. This
10168 change records the default colors when TUI is initialized, and
10169 then specifies them explicitly when a color pair uses the default
10170 colors. This allows color styling in TUI mode on MS-Windows.
10172 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10174 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10175 colors in ncurses_norm_attr.
10176 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10177 "none", replace it with the default color recorded in
10180 2019-03-14 Tom Tromey <tromey@adacore.com>
10182 * source-cache.h (class source_cache) <get_source_lines>: Return
10184 * source-cache.c (source_cache::extract_lines): Handle case where
10185 first_pos==npos. Return std::string.
10186 (source_cache::get_source_lines): Update.
10188 2019-03-14 Tom Tromey <tromey@adacore.com>
10190 * NEWS: Add item for "style sources" commands.
10191 * source-cache.c (source_cache::get_source_lines): Check
10193 * cli/cli-style.c (source_styling): New global.
10194 (_initialize_cli_style): Add "style sources" commands.
10195 (show_style_sources): New function.
10196 * cli/cli-style.h (source_styling): Declare.
10198 2019-03-14 Pedro Alves <palves@redhat.com>
10199 Tom Tromey <tromey@adacore.com>
10201 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10202 * tui/tui-winsource.c (tui_refill_source_window): New function,
10204 (tui_horizontal_source_scroll): ... here. Move some logic.
10205 * cli/cli-style.c (set_style_enabled): Notify new observable.
10206 * tui/tui-hooks.c (tui_redisplay_source): New function.
10207 (tui_attach_detach_observers): Attach or detach
10208 tui_redisplay_source.
10209 * observable.h (source_styling_changed): New observable.
10210 * observable.c: Define source_styling_changed observable.
10212 2019-03-13 Tom Tromey <tromey@adacore.com>
10214 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10215 (i386_gnu_nat_target::store_registers): Update.
10216 * target-debug.h (target_debug_print_std_string): New macro.
10217 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10218 * windows-tdep.c (display_one_tib): Update.
10219 * tui/tui-stack.c (tui_make_status_line): Update.
10220 * top.c (print_inferior_quit_action): Update.
10221 * thread.c (thr_try_catch_cmd): Update.
10222 (add_thread_with_info): Update.
10223 (thread_target_id_str): Update.
10224 (thr_try_catch_cmd): Update.
10225 (thread_command): Update.
10226 (thread_find_command): Update.
10227 * record-btrace.c (record_btrace_target::info_record)
10228 (record_btrace_resume_thread, record_btrace_target::resume)
10229 (record_btrace_cancel_resume, record_btrace_step_thread)
10230 (record_btrace_target::wait, record_btrace_target::wait)
10231 (record_btrace_target::wait, record_btrace_target::stop): Update.
10232 * progspace.c (print_program_space): Update.
10233 * process-stratum-target.c
10234 (process_stratum_target::thread_address_space): Update.
10235 * linux-fork.c (linux_fork_mourn_inferior)
10236 (detach_checkpoint_command, info_checkpoints_command)
10237 (linux_fork_context): Update.
10238 (linux_fork_detach): Update.
10239 (class scoped_switch_fork_info): Update.
10240 (delete_checkpoint_command): Update.
10241 * infrun.c (follow_fork_inferior): Update.
10242 (follow_fork_inferior): Update.
10243 (proceed_after_vfork_done): Update.
10244 (handle_vfork_child_exec_or_exit): Update.
10245 (follow_exec): Update.
10246 (displaced_step_prepare_throw): Update.
10247 (displaced_step_restore): Update.
10248 (start_step_over): Update.
10249 (resume_1): Update.
10250 (clear_proceed_status_thread): Update.
10252 (print_target_wait_results): Update.
10253 (do_target_wait): Update.
10254 (context_switch): Update.
10255 (stop_all_threads): Update.
10256 (restart_threads): Update.
10257 (finish_step_over): Update.
10258 (handle_signal_stop): Update.
10259 (switch_back_to_stepped_thread): Update.
10260 (keep_going_pass_signal): Update.
10261 (print_exited_reason): Update.
10262 (normal_stop): Update.
10263 * inferior.c (inferior_pid_to_str): Change return type.
10264 (print_selected_inferior): Update.
10265 (add_inferior): Update.
10266 (detach_inferior): Update.
10267 * dummy-frame.c (fprint_dummy_frames): Update.
10268 * dcache.c (dcache_info_1): Update.
10269 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10270 (btrace_fetch, btrace_clear): Update.
10271 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10272 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10274 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10275 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10276 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10277 * gdbarch.c, gdbarch.h: Rebuild.
10278 * gdbarch.sh (core_pid_to_str): Change return type.
10279 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10281 (windows_nat_target::pid_to_str): Change return type.
10282 (windows_delete_thread): Update.
10283 (windows_nat_target::attach): Update.
10284 (windows_nat_target::files_info): Update.
10285 * target-delegates.c: Rebuild.
10286 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10288 (sol_thread_target::pid_to_str): Change return type.
10289 * remote.c (class remote_target) <pid_to_str>: Change return
10291 (remote_target::pid_to_str): Change return type.
10292 (extended_remote_target::attach, remote_target::remote_stop_ns)
10293 (remote_target::remote_notif_remove_queued_reply)
10294 (remote_target::push_stop_reply, remote_target::disable_btrace):
10296 (extended_remote_target::attach): Update.
10297 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10299 (gdbsim_target::pid_to_str): Change return type.
10300 * ravenscar-thread.c (struct ravenscar_thread_target)
10301 <pid_to_str>: Change return type.
10302 (ravenscar_thread_target::pid_to_str): Change return type.
10303 * procfs.c (class procfs_target) <pid_to_str>: Change return
10305 (procfs_target::pid_to_str): Change return type.
10306 (procfs_target::attach): Update.
10307 (procfs_target::detach): Update.
10308 (procfs_target::fetch_registers): Update.
10309 (procfs_target::store_registers): Update.
10310 (procfs_target::wait): Update.
10311 (procfs_target::files_info): Update.
10312 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10313 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10315 (nto_procfs_target::pid_to_str): Change return type.
10316 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10317 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10319 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10320 (exit_lwp): Update.
10321 (attach_proc_task_lwp_callback, get_detach_signal)
10322 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10323 (linux_nat_target::resume, wait_lwp, stop_callback)
10324 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10325 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10326 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10327 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10328 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10330 (inf_ptrace_target::attach): Update.
10331 (inf_ptrace_target::files_info): Update.
10332 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10334 (go32_nat_target::pid_to_str): Change return type.
10335 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10336 (gnu_nat_target::wait): Update.
10337 (gnu_nat_target::wait): Update.
10338 (gnu_nat_target::resume): Update.
10339 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10340 (fbsd_nat_target::wait): Update.
10341 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10343 (darwin_nat_target::attach): Update.
10344 * corelow.c (class core_target) <pid_to_str>: Change return type.
10345 (core_target::pid_to_str): Change return type.
10346 * target.c (normal_pid_to_str): Change return type.
10347 (default_pid_to_str): Likewise.
10348 (target_pid_to_str): Change return type.
10349 (target_translate_tls_address): Update.
10350 (target_announce_detach): Update.
10351 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10353 (bsd_uthread_target::pid_to_str): Change return type.
10354 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10356 (bsd_kvm_target::pid_to_str): Change return type.
10357 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10359 (aix_thread_target::pid_to_str): Change return type.
10360 * target.h (struct target_ops) <pid_to_str>: Change return type.
10361 (target_pid_to_str, normal_pid_to_str): Likewise.
10362 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10364 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10366 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10368 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10370 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10372 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10375 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10377 * NEWS: Mention that the new default MI version is 3. Mention
10378 changes to the output of commands and events that deal with
10379 multi-location breakpoints.
10380 * breakpoint.c: Include "mi/mi-out.h".
10381 (print_one_breakpoint): Change output syntax if using MI version
10383 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10385 (mi_multi_location_breakpoint_output_fixed): New.
10386 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10387 (mi_cmd_fix_multi_location_breakpoint_output): New.
10388 (mi_multi_location_breakpoint_output_fixed): New.
10389 * mi/mi-cmds.c (mi_cmds): Register command
10390 -fix-multi-location-breakpoint-output.
10391 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10394 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10396 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10397 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10398 instantiate mi_ui_out based on interpreter name.
10399 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10400 * mi/mi-main.c (mi_load_progress): Likewise.
10402 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10404 * NEWS: Combine separate "New targets" sections for 8.3.
10406 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10408 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10409 (ppcfbsd_init_abi): Install gdbarch
10410 "fetch_tls_load_module_address" and "get_thread_local_address"
10413 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10415 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10416 (riscv_fbsd_init_abi): Install gdbarch
10417 "fetch_tls_load_module_address" and "get_thread_local_address"
10420 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10422 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10423 (i386fbsd_init_abi): Install gdbarch
10424 "fetch_tls_load_module_address" and "get_thread_local_address"
10427 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10429 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10430 (amd64fbsd_init_abi): Install gdbarch
10431 "fetch_tls_load_module_address" and "get_thread_local_address"
10434 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10436 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10437 (struct fbsd_pspace_data): New type.
10438 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10439 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10440 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10441 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10442 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10444 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10446 * gdbtypes.c (lookup_struct_elt): New function.
10447 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10448 * gdbtypes.h (struct struct_elt): New type.
10449 (lookup_struct_elt): New prototype.
10451 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10453 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10454 remove disabled code block.
10456 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10458 * gdbarch.sh (get_thread_local_address): New method.
10459 * gdbarch.h, gdbarch.c: Regenerate.
10460 * target.c (target_translate_tls_address): Use
10461 gdbarch_get_thread_local_address if present instead of
10462 target::get_thread_local_address.
10464 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10466 * target.h (target::get_thread_local_address): Update comment.
10468 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10470 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10471 objfile->separate_debug_objfile_backlink if not NULL.
10473 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10475 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10476 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10477 (amd64bsd_store_inferior_registers): Likewise.
10478 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10479 Enable segment base registers.
10480 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10481 PT_GETFSBASE and PT_GETGSBASE.
10482 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10484 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10485 segment base registers.
10486 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10488 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10490 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10491 Update calls to i386_target_description to add 'segments'
10493 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10494 add segment base registers.
10495 * arch/i386.c (i386_create_target_description): Add 'segments'
10496 parameter to enable segment base registers.
10497 * arch/i386.h (i386_create_target_description): Likewise.
10498 * features/i386/32bit-segments.xml: New file.
10499 * features/i386/32bit-segments.c: Generate.
10500 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10501 call to i386_target_description to add 'segments' parameter.
10502 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10503 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10504 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10505 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10506 if feature is present.
10507 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10508 Add 'segments' parameter to call to i386_target_description.
10509 (i386_target_description): Add 'segments' parameter to enable
10510 segment base registers.
10511 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10512 to call to i386_target_description.
10513 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10514 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10515 Define I386_NUM_REGS.
10516 (i386_target_description): Add 'segments' parameter to enable
10517 segment base registers.
10519 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10522 * source-cache.c: #undef open and close, to avoid unresolved
10523 externals during linking.
10525 2019-03-12 Tom Tromey <tromey@adacore.com>
10527 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10528 const. Add initializers.
10529 (_initialize_remote): Don't initialize ptid globals.
10531 2019-03-12 Pedro Alves <palves@redhat.com>
10533 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10535 2019-03-12 Pedro Alves <palves@redhat.com>
10537 * cp-name-parser.y (main): Remove unused 'len' variable.
10539 2019-03-12 Tom Tromey <tromey@adacore.com>
10541 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10542 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10544 2019-03-12 Tom Tromey <tromey@adacore.com>
10546 * linux-nat.c (iterate_over_lwps): Update.
10547 (stop_callback): Remove parameter.
10548 (stop_wait_callback, detach_callback, resume_set_callback)
10549 (select_singlestep_lwp_callback, set_ignore_sigint)
10550 (status_callback, resumed_callback, resume_clear_callback)
10551 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10553 (linux_nat_target::detach, linux_nat_target::resume)
10554 (linux_stop_and_wait_all_lwps, select_event_lwp)
10555 (linux_nat_filter_event, linux_nat_wait_1)
10556 (linux_nat_target::kill, linux_nat_target::stop)
10557 (linux_nat_target::stop): Update.
10558 (linux_nat_resume_callback): Change type.
10559 (resume_stopped_resumed_lwps, count_events_callback)
10560 (select_event_lwp_callback): Likewise.
10561 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10562 * arm-linux-nat.c (struct update_registers_data): Remove.
10563 (update_registers_callback): Change type.
10564 (arm_linux_insert_hw_breakpoint1): Update.
10565 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10567 (x86_linux_dr_set_addr): Update.
10568 (x86_linux_dr_set_control): Update.
10569 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10570 (iterate_over_lwps): Use gdb::function_view.
10571 * nat/aarch64-linux-hw-point.c (struct
10572 aarch64_dr_update_callback_param): Remove.
10573 (debug_reg_change_callback): Change type.
10574 (aarch64_notify_debug_reg_change): Update.
10575 * s390-linux-nat.c (s390_refresh_per_info): Update.
10577 2019-03-11 Tom Tromey <tromey@adacore.com>
10579 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10580 redundant assignment to "this_cu".
10582 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10584 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10586 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10588 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10590 (rank_one_type): ... this.
10592 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10594 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10596 (rank_one_type): ... this.
10598 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10600 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10602 (rank_one_type): ... this.
10604 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10606 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10608 (rank_one_type): ... this.
10610 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10612 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10614 (rank_one_type): ... this.
10616 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10618 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10620 (rank_one_type): ... this.
10622 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10624 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10626 (rank_one_type): ... this.
10628 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10630 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10632 (rank_one_type): ... this.
10634 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10636 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10638 (rank_one_type): ... this.
10640 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10642 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10644 (rank_one_type): ... this.
10646 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10648 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10650 (rank_one_type): ... this.
10652 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10654 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10656 (rank_one_type): ... this.
10658 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10660 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10661 inferior-events' shows the example events.
10663 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10665 Support styling on native MS-Windows console
10668 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10669 on MS-Windows if $TERM is not defined.
10671 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10673 * posix-hdep.c (gdb_console_fputs):
10674 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10676 * ui-file.h (gdb_console_fputs): Add prototype.
10678 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10679 back to fputs only if the former returns zero.
10681 2019-03-07 Tom Tromey <tom@tromey.com>
10683 * symmisc.c (print_symbol_bcache_statistics): Update.
10684 (print_objfile_statistics): Update.
10685 * symfile.c (allocate_symtab): Update.
10686 * stabsread.c: Don't include bcache.h.
10687 * psymtab.h (struct psymbol_bcache): Don't declare.
10688 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10689 (psymbol_bcache_init, psymbol_bcache_free)
10690 (psymbol_bcache_get_bcache): Don't declare.
10691 * psymtab.c (struct psymbol_bcache): Remove.
10692 (psymtab_storage::psymtab_storage): Update.
10693 (psymtab_storage::~psymtab_storage): Update.
10694 (psymbol_bcache_init, psymbol_bcache_free)
10695 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10696 (add_psymbol_to_bcache): Update.
10697 (allocate_psymtab): Update.
10698 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10699 macro_cache>: No longer pointers.
10700 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10701 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10702 * macrotab.c (macro_bcache): Update.
10703 * macroexp.c: Don't include bcache.h.
10704 * gdbtypes.c (check_types_worklist): Update.
10705 (types_deeply_equal): Remove TRY/CATCH. Update.
10706 * elfread.c (elf_symtab_read): Update.
10707 * dwarf2read.c: Don't include bcache.h.
10708 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10709 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10710 (print_bcache_statistics, bcache_memory_used): Don't declare.
10711 (struct bcache): Move from bcache.c. Add constructor, destructor,
10712 methods. Rename all data members.
10713 * bcache.c (struct bcache): Move to bcache.h.
10714 (bcache::expand_hash_table): Rename from expand_hash_table.
10716 (bcache::insert): Rename from bcache_full.
10717 (bcache::compare): Rename from bcache_compare.
10718 (bcache_xmalloc): Remove.
10719 (bcache::~bcache): Rename from bcache_xfree.
10720 (bcache::print_statistics): Rename from print_bcache_statistics.
10721 (bcache::memory_used): Rename from bcache_memory_used.
10723 2019-03-07 Pedro Alves <palves@redhat.com>
10725 * infrun.c (normal_stop): Also check for
10726 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10728 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10730 * f-lang.c (value_from_host_double): Moved to...
10731 * value.c (value_from_host_double): ...here.
10732 * value.h (value_from_host_double): Declare.
10733 * guile/scm-math.c (vlscm_convert_typed_number): Use
10734 value_from_host_double.
10735 (vlscm_convert_number): Likewise.
10736 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10737 * python/py-value.c (convert_value_from_python): Likewise.
10739 2019-03-06 Tom Tromey <tom@tromey.com>
10741 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10743 2019-03-06 Tom Tromey <tom@tromey.com>
10745 * utils.h (free_current_contents): Don't declare.
10746 * utils.c (free_current_contents): Remove.
10748 2019-03-06 Tom Tromey <tom@tromey.com>
10750 * top.c (quit_force): Update.
10751 * main.c (captured_command_loop): Update.
10752 * common/new-op.c (operator new): Update.
10753 * common/common-exceptions.c (struct catcher)
10754 <save_cleanup_chain>: Remove member.
10755 (exceptions_state_mc_init): Update.
10756 (exception_try_scope_entry): Return nullptr.
10757 (exception_try_scope_exit, exception_rethrow)
10758 (throw_exception_sjlj, throw_exception_cxx): Update.
10759 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
10760 (all_cleanups, do_cleanups, discard_cleanups)
10761 (discard_final_cleanups, save_cleanups, save_final_cleanups)
10762 (restore_cleanups, restore_final_cleanups): Don't declare.
10763 (do_final_cleanups): Remove parameter.
10764 * common/cleanups.c (cleanup_chain, make_cleanup)
10765 (make_cleanup_dtor, all_cleanups, do_cleanups)
10766 (discard_my_cleanups, discard_cleanups)
10767 (discard_final_cleanups, save_my_cleanups, save_cleanups)
10768 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
10769 (null_cleanup): Remove.
10770 (do_final_cleanups): Remove parameter.
10772 2019-03-06 Tom Tromey <tom@tromey.com>
10774 * remote.c (remote_target::remote_parse_stop_reply): Use
10775 unique_xmalloc_ptr.
10777 2019-03-06 Tom Tromey <tom@tromey.com>
10779 * stabsread.c (struct stabs_field_info): Rename from field_info.
10780 <list, fnlist>: Add initializers.
10781 <obstack>: New member.
10782 (read_member_functions, read_struct_fields, read_baseclasses):
10783 Allocate on obstack. Don't use cleanups.
10784 (read_one_struct_field, read_member_functions, read_struct_fields)
10785 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
10786 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
10787 (read_struct_type): Update.
10789 2019-03-06 Tom Tromey <tom@tromey.com>
10791 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
10792 * common/filestuff.h (make_cleanup_close): Don't declare.
10793 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
10796 2019-03-06 Tom Tromey <tom@tromey.com>
10798 * solib-aix.c: Use make_scope_exit.
10800 2019-03-06 Tom Tromey <tom@tromey.com>
10802 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
10803 Use make_scope_exit.
10805 2019-03-06 Tom Tromey <tom@tromey.com>
10807 * solib-svr4.c (disable_probes_interface): Remove parameter.
10808 (svr4_handle_solib_event): Use make_scope_exit.
10810 2019-03-06 Tom Tromey <tom@tromey.com>
10812 * remote.c (struct stop_reply_deleter): Remove.
10813 (stop_reply_up): Update.
10814 (struct stop_reply): Derive from notif_event. Don't typedef.
10815 <regcache>: Now a std::vector.
10816 (stop_reply_xfree): Remove.
10817 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
10818 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
10819 (remote_target::discard_pending_stop_replies): Use delete.
10820 (remote_target::remote_parse_stop_reply): Update.
10821 (remote_target::process_stop_reply): Update.
10822 * remote-notif.h (struct notif_event): Add virtual destructor.
10823 Remove "dtr" member.
10824 (struct notif_client) <alloc_event>: Return a unique_ptr.
10825 (notif_event_xfree): Don't declare.
10826 (notif_event_up): New typedef.
10827 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
10828 (notif_event_xfree, do_notif_event_xfree): Remove.
10829 (remote_notif_state_xfree): Update.
10831 2019-03-06 Tom Tromey <tom@tromey.com>
10833 * infrun.c (displaced_step_clear_cleanup): Now a
10834 forward_scope_exit type.
10835 (displaced_step_prepare_throw): Update.
10836 (displaced_step_fixup): Update.
10838 2019-03-06 Tom Tromey <tom@tromey.com>
10840 * inferior.h (class inferior): Update comment.
10841 * gdbthread.h (class thread_info): Update comment.
10843 2019-03-06 Joel Brobecker <brobecker@adacore.com>
10844 Tom Tromey <tom@tromey.com>
10846 * stabsread.h (struct stab_section_list): Remove.
10847 (coffstab_build_psymtabs): Update.
10848 * dbxread.c (symbuf_sections): Now a std::vector.
10849 (sect_idx): New global.
10850 (fill_symbuf): Update.
10851 (coffstab_build_psymtabs): Change type of stabsects parameter.
10853 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
10855 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
10856 (coff_locate_sections): Update.
10857 (coff_symfile_read): Remove cleanups. Update.
10858 (init_stringtab): Add storage parameter.
10859 (free_stringtab, free_stringtab_cleanup): Remove.
10860 (init_lineno): Add storage parameter.
10861 (free_linetab, free_linetab_cleanup): Remove.
10863 2019-03-06 Pedro Alves <palves@redhat.com>
10865 * linux-fork.c (fork_info::clobber_regs): Delete.
10866 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
10867 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
10869 (scoped_switch_fork_info::scoped_switch_fork_info)
10870 (checkpoint_command, linux_fork_context): Adjust
10871 fork_save_infrun_state calls.
10873 2019-03-06 Pedro Alves <palves@redhat.com>
10875 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
10876 (inf_has_multiple_threads): Return 'bool' and rewrite using
10877 inferior_info::threads().
10879 2019-03-06 Pedro Alves <palves@redhat.com>
10881 * linux-fork.c: Include <list>.
10882 (fork_list): Now a std::list instance.
10883 (fork_info): Add ctor, dtor, and in-class initialize all fields.
10884 (forks_exist_p, find_last_fork): Adjust.
10885 (new_fork): Delete.
10887 (add_fork): Adjust.
10888 (free_fork): Delete, folded into fork_info::~fork_info().
10889 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
10891 (init_fork_list): Delete.
10892 (linux_fork_killall, linux_fork_mourn_inferior)
10893 (linux_fork_detach, info_checkpoints_command): Adjust.
10894 (_initialize_linux_fork): No longer call init_fork_list.
10896 2019-03-06 Pedro Alves <palves@redhat.com>
10898 * linux-fork.c (new_fork): New, split out of ...
10899 (add_fork): ... this. Return void. Move "first fork" special
10900 case from here, to ...
10901 (checkpoint_command): ... here.
10902 * linux-linux.h (add_fork): Return void.
10904 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10906 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
10908 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10909 Chris January <chris.january@arm.com>
10910 David Lecomber <david.lecomber@arm.com>
10912 * f-exp.y: New token, UNOP_INTRINSIC.
10913 (exp): New pattern using UNOP_INTRINSIC token.
10914 (f77_keywords): Add 'abs' keyword.
10915 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
10916 (value_from_host_double): New function.
10917 (evaluate_subexp_f): Support UNOP_ABS.
10919 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10921 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
10924 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10926 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
10927 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
10928 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
10930 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10932 * f-exp.y (convert_to_kind_type): Handle more type kinds.
10934 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10935 Chris January <chris.january@arm.com>
10937 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
10938 * f-exp.y: Define 'KIND' token.
10939 (exp): New pattern for KIND expressions.
10940 (ptype): Handle types with a kind extension.
10941 (direct_abs_decl): Extend to spot kind extensions.
10942 (f77_keywords): Add 'kind' to the list.
10943 (push_kind_type): New function.
10944 (convert_to_kind_type): New function.
10945 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
10946 * parse.c (operator_length_standard): Likewise.
10947 * parser-defs.h (enum type_pieces): Add tp_kind.
10948 * std-operator.def: Add UNOP_KIND.
10950 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10952 * f-exp.y (f_parse): Set yydebug.
10954 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10956 * f-lang.c (evaluate_subexp_f): New function.
10957 (exp_descriptor_f): New global.
10958 (f_language_defn): Use exp_descriptor_f instead of
10959 exp_descriptor_standard.
10961 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10963 * f-exp.y (struct token): Add comments.
10964 (dot_ops): Remove uppercase versions and the end marker.
10965 (f77_keywords): Likewise.
10966 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
10967 entries in the dot_ops array are case insensitive, and use
10968 strncasecmp to compare strings. Also some whitespace cleanup in
10969 this area. Similar for the f77_keywords array, except entries in
10970 this list might be case sensitive.
10972 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10974 * f-exp.y (struct f77_boolean_val): Add comments.
10975 (boolean_values): Remove uppercase versions, and end marker.
10976 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
10977 and use strncasecmp to achieve case insensitivity. Additionally,
10978 perform whitespace cleanup around this code.
10980 2019-03-06 Tom Tromey <tromey@adacore.com>
10982 * remote-sim.c (gdbsim_target_open): Use result of
10985 2019-03-06 Richard Bunt <richard.bunt@arm.com>
10986 Dirk Schubert <dirk.schubert@arm.com>
10987 Chris January <chris.january@arm.com>
10989 * eval.c (evaluate_subexp_standard): Call Fortran argument
10991 * f-lang.c (struct value): A value which can be passed into a
10992 Fortran function call.
10993 (fortran_argument_convert): Wrap Fortran arguments in a pointer
10995 (struct type): Value ready for a Fortran function call.
10996 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
10998 * f-lang.h (fortran_argument_convert): Declaration.
10999 (fortran_preserve_arg_pointer): Declaration.
11000 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11002 2019-03-05 Tom Tromey <tromey@adacore.com>
11004 * python/py-prettyprint.c (print_string_repr): Remove #if.
11005 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11007 2019-03-05 Tom Tromey <tromey@adacore.com>
11009 * target.c (the_dummy_target): Move later. Change type to
11011 (initialize_targets): Don't initialize the_dummy_target.
11013 2019-03-05 Tom Tromey <tromey@adacore.com>
11015 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11016 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11018 2019-03-05 Tom Tromey <tromey@adacore.com>
11020 * windows-nat.c (windows_nat_target::attach)
11021 (windows_nat_target::detach): Don't call gdb_flush.
11022 * valprint.c (generic_val_print, val_print, val_print_string):
11023 Don't call gdb_flush.
11024 * utils.c (defaulted_query): Don't call gdb_flush.
11025 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11026 * target.c (target_announce_detach): Don't call gdb_flush.
11027 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11028 * remote.c (extended_remote_target::attach): Don't call
11030 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11031 * printcmd.c (do_examine): Don't call gdb_flush.
11032 (info_display_command): Don't call gdb_flush.
11033 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11034 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11035 * memattr.c (info_mem_command): Don't call gdb_flush.
11036 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11037 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11038 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11039 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11040 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11041 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11042 (gnu_nat_target::detach): Don't call gdb_flush.
11043 * f-valprint.c (f_val_print): Don't call gdb_flush.
11044 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11045 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11046 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11048 * c-valprint.c (c_val_print): Don't call gdb_flush.
11049 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11051 2019-03-05 Tom Tromey <tromey@adacore.com>
11053 * varobj.c (update_dynamic_varobj_children): Update.
11054 (install_default_visualizer): Use reset, not release.
11055 * value.c (set_internalvar): Update.
11056 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11057 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11058 ATTRIBUTE_UNUSED_RESULT.
11060 2019-03-05 Tom Tromey <tromey@adacore.com>
11062 * remote.c (class scoped_remote_fd) <release>: Add
11063 ATTRIBUTE_UNUSED_RESULT.
11065 2019-03-05 Tom Tromey <tromey@adacore.com>
11067 * macroexp.c (struct macro_buffer) <release>: Add
11068 ATTRIBUTE_UNUSED_RESULT.
11070 2019-03-05 Tom Tromey <tromey@adacore.com>
11072 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11073 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11074 ATTRIBUTE_UNUSED_RESULT.
11076 2019-03-05 Tom Tromey <tromey@adacore.com>
11078 * common/scoped_fd.h (class scoped_fd) <release>: Add
11079 ATTRIBUTE_UNUSED_RESULT.
11081 2019-03-05 Tom Tromey <tromey@adacore.com>
11083 * parser-defs.h (struct parser_state) <release>: Add
11084 ATTRIBUTE_UNUSED_RESULT.
11086 2019-03-05 Tom Tromey <tromey@adacore.com>
11088 * utils.h (class gdb_argv) <release>: Add
11089 ATTRIBUTE_UNUSED_RESULT.
11090 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11092 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11094 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11095 for-loop range, to avoid compiler warnings.
11097 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11098 avoid compiler warnings about unused variables.
11100 * NEWS: Mention end of support for native debugging on MS-Windows
11104 * common/netstuff.c:
11105 * gdbserver/gdbreplay.c
11106 * gdbserver/remote-utils.c:
11108 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11109 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11110 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11111 'getaddrinfo' and 'freeaddrinfo' were not available before
11112 Windows XP, and mingw.org's MinGW headers by default define
11113 _WIN32_WINNT to 0x500.
11115 2019-03-01 Gary Benson <gbenson@redhat.com>
11117 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11119 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11120 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11123 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11124 set_sigint_trap, clear_sigint_trap.
11126 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11128 * target.c (target_detach): Clear the regcache and the
11131 2019-02-27 Pedro Alves <palves@redhat.com>
11133 * utils.c (set_screen_size): When we cap the height/width sizes,
11134 tweak the corresponding command variable to show "unlimited":
11136 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11137 Pedro Alves <palves@redhat.com>
11139 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11140 before calling rl_set_screen_size.
11142 2019-02-27 Tom Tromey <tromey@adacore.com>
11144 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11146 * python/py-value.c: Remove Python 2.4 workaround.
11147 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11149 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11150 Python 2.4 workaround.
11151 * python/python-internal.h: Remove Python 2.4 comment.
11152 (Py_ssize_t): Don't define.
11153 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11154 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11155 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11156 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11157 * python/python.c (do_start_initialization): Remove Python 2.4
11159 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11160 (print_children): Remove Python 2.4 workaround.
11161 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11163 (CHARBUFFERPROC_NAME): Remove.
11164 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11165 Python 2.4 workaround.
11167 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11169 * NEWS: Note minimum Python version.
11171 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11173 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11174 code from these functions. Remove corresponding ifdefs. Use
11175 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11176 Remove gotos and target of gotos.
11177 (infpy_search_memory): Likewise.
11179 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11181 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11182 (hppa_gdbarch_init): Don't register deleted functions with
11185 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11187 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11188 (h8300_unwind_sp): Delete.
11189 (h8300_dummy_id): Delete.
11190 (h8300_gdbarch_init): Don't register deleted functions with
11193 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11195 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11196 (ft32_unwind_pc): Delete.
11197 (ft32_unwind_sp): Delete.
11198 (ft32_gdbarch_init): Don't register deleted functions with
11201 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11203 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11204 (frv_unwind_pc): Delete.
11205 (frv_unwind_sp): Delete.
11206 (frv_gdbarch_init): Don't register deleted functions with
11209 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11211 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11212 (riscv_unwind_pc): Delete.
11213 (riscv_unwind_sp): Delete.
11214 (riscv_gdbarch_init): Don't register deleted functions with
11217 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11219 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11220 (csky_unwind_pc): Delete.
11221 (csky_unwind_sp): Delete.
11222 (csky_gdbarch_init): Don't register deleted functions with
11225 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11227 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11228 (cris_unwind_pc): Delete.
11229 (cris_unwind_sp): Delete.
11230 (cris_gdbarch_init): Don't register deleted functions with
11233 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11235 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11236 (bfin_unwind_pc): Delete.
11237 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11239 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11241 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11242 (arm_unwind_pc): Delete.
11243 (arm_unwind_sp): Delete.
11244 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11246 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11248 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11249 (arc_unwind_pc): Delete.
11250 (arc_unwind_sp): Delete.
11251 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11253 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11255 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11256 (alpha_unwind_pc): Delete.
11257 (alpha_gdbarch_init): Don't register deleted functions with
11260 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11262 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11263 (aarch64_unwind_pc): Delete.
11264 (aarch64_unwind_sp): Delete.
11265 (aarch64_gdbarch_init): Don't register deleted functions with
11268 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11270 * gdbtypes.c (type_align): Don't consider static members when
11271 computing structure alignment.
11273 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11275 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11276 return 0 for other types.
11277 * arch-utils.c (default_type_align): Always return 0.
11278 * gdbarch.h: Regenerate.
11279 * gdbarch.sh (type_align): Extend comment.
11280 * gdbtypes.c (type_align): Add additional comments, always call
11281 gdbarch_type_align before applying the default rules.
11282 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11283 generic code will then apply a suitable default.
11284 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11285 types, return 0 for other types.
11287 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11289 * NEWS: Create a new section for the next release branch.
11290 Rename the section of the current branch, now that it has
11293 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11295 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11296 * version.in: Bump version to 8.3.50.DATE-git.
11298 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11300 * aix-thread.c (ptid_cmp): Remove unused variable.
11301 (get_signaled_thread): Likewise.
11302 (store_regs_user_thread): Likewise.
11303 (store_regs_kernel_thread): Likewise.
11304 (fetch_regs_kernel_thread): Remove shadowed variable.
11306 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11308 * features/riscv/32bit-cpu.xml: Add register numbers.
11309 * features/riscv/32bit-fpu.c: Regenerate.
11310 * features/riscv/32bit-fpu.xml: Add register numbers.
11311 * features/riscv/64bit-cpu.xml: Add register numbers.
11312 * features/riscv/64bit-fpu.c: Regenerate.
11313 * features/riscv/64bit-fpu.xml: Add register numbers.
11315 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11317 * NEWS: Mention two argument form of gdb.Value constructor.
11318 * python/py-value.c (convert_buffer_and_type_to_value): New
11320 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11321 Add support for handling an optional second argument. Call
11322 convert_buffer_and_type_to_value as appropriate.
11323 * python/python-internal.h (Py_buffer_deleter): New struct.
11324 (Py_buffer_up): New typedef.
11326 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11328 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11329 instead of releasing ownership.
11331 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11333 * dwarf2read.c (open_and_init_dwp_file): Call
11334 elf_numsections instead of bfd_count_sections to initialize
11335 dwp_file->num_sections.
11337 2019-02-25 Tom Tromey <tromey@adacore.com>
11339 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11341 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11343 * gcore.in: Add '--readnever' option when invoking GDB.
11345 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11347 * MAINTAINERS: Update my email address.
11349 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11351 * build-id.c (build_id_to_debug_bfd_1): New function.
11352 (build_id_to_debug_bfd): Look for separate debug file in
11355 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11357 * gdbarch.sh: Update the copyright year range that is placed into
11360 2019-02-22 Keith Seitz <keiths@redhat.com>
11363 * linespec.c (create_sals_line_offset): Search for the default
11364 symtab's filename instead of its fullname.
11366 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11368 * NEWS: Update style defaults.
11370 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11372 * main.c (captured_main_1): Disable styling in batch mode.
11374 2019-02-20 Tom Tromey <tom@tromey.com>
11376 * symtab.c (symtab_symbol_info): Fix typos.
11378 2019-02-20 Tom Tromey <tromey@adacore.com>
11380 * findcmd.c (_initialize_mem_search): Use upper case for
11381 metasyntactic variables.
11383 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11385 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11386 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11388 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11390 * top.h (source_file_name): Change to std::string.
11391 * top.c (source_file_name): Likewise.
11392 (command_line_input): Adjust.
11393 * cli/cli-script.c (script_from_file): Adjust.
11395 2019-02-19 Tom Tromey <tromey@adacore.com>
11397 * ravenscar-thread.c
11398 (ravenscar_thread_target::update_thread_list): Don't call
11399 ada_build_task_list.
11400 * ada-lang.h (ada_build_task_list): Don't declare.
11401 * ada-tasks.c (struct ada_tasks_inferior_data)
11402 <task_list_valid_p>: Now bool.
11403 (read_known_tasks, ada_task_list_changed)
11404 (ada_tasks_invalidate_inferior_data): Update.
11405 (read_known_tasks_array): Return bool.
11406 (read_known_tasks_list): Likewise.
11407 (read_known_tasks): Return void.
11408 (ada_build_task_list): Now static.
11410 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11412 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11413 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11415 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11417 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11418 variant for ada_tasks_pspace_data_handle and
11419 ada_tasks_inferior_data_handle.
11420 (ada_tasks_pspace_data_cleanup): New function.
11421 (ada_tasks_inferior_data_cleanup): New function.
11423 2019-02-17 Tom Tromey <tom@tromey.com>
11425 * macrotab.h (macro_source_fullname): Return a std::string.
11426 * macrotab.c (macro_include, check_for_redefinition)
11427 (macro_undef, macro_lookup_definition, foreach_macro)
11428 (foreach_macro_in_scope): Update.
11429 (macro_source_fullname): Return a std::string.
11430 * macrocmd.c (show_pp_source_pos): Update.
11432 2019-02-17 Tom Tromey <tom@tromey.com>
11434 * macrocmd.c (show_pp_source_pos): Style the file names.
11436 2019-02-17 Tom Tromey <tom@tromey.com>
11439 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11441 2019-02-17 Tom Tromey <tom@tromey.com>
11443 * ada-lang.c (user_select_syms): Use filtered printing.
11444 * utils.c (wrap_style): New global.
11445 (desired_style): Remove.
11446 (emit_style_escape): Add stream parameter.
11447 (set_output_style, reset_terminal_style, prompt_for_continue):
11449 (flush_wrap_buffer): Only flush gdb_stdout.
11450 (wrap_here): Set wrap_style.
11451 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11452 treat escape sequences as a character. Change when wrap buffer is
11454 (fputs_styled): Do not set the output style when the default is
11456 * ui-style.h (struct ui_file_style) <is_default>: New method.
11457 * source.c (print_source_lines_base): Emit escape sequences in one
11460 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11462 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11463 integers and enumeration types.
11465 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11467 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11468 instead of lookup_symbol_in_language
11469 (do_exact_match): New function.
11470 (ada_get_symbol_name_matcher): Return do_exact_match when
11471 doing a verbatim match.
11473 2019-02-15 Tom Tromey <tromey@adacore.com>
11475 * ravenscar-thread.c (ravenscar_thread_target::resume)
11476 (ravenscar_thread_target::wait): Special case wildcard requests.
11478 2019-02-15 Tom Tromey <tromey@adacore.com>
11480 * ravenscar-thread.c (base_ptid): Remove.
11481 (struct ravenscar_thread_target) <close>: New method.
11482 <m_base_ptid>: New member.
11483 <update_inferior_ptid, active_task, task_is_currently_active,
11484 runtime_initialized>: Declare methods.
11485 <ravenscar_thread_target>: Add constructor.
11486 (ravenscar_thread_target::task_is_currently_active)
11487 (ravenscar_thread_target::update_inferior_ptid)
11488 (ravenscar_runtime_initialized): Rename. Now methods.
11489 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11490 (ravenscar_thread_target::update_thread_list): Update.
11491 (ravenscar_thread_target::active_task): Now method.
11492 (ravenscar_thread_target::store_registers)
11493 (ravenscar_thread_target::prepare_to_store)
11494 (ravenscar_thread_target::prepare_to_store)
11495 (ravenscar_thread_target::mourn_inferior): Update.
11496 (ravenscar_inferior_created): Use "new" to create target.
11497 (ravenscar_thread_target::get_ada_task_ptid): Update.
11498 (_initialize_ravenscar): Don't initialize base_ptid.
11499 (ravenscar_ops): Remove global.
11501 2019-02-15 Tom Tromey <tromey@adacore.com>
11503 * target.h (push_target): Declare new overload.
11504 * target.c (push_target): New overload, taking an rvalue reference.
11505 * remote.c (remote_target::open_1): Use push_target overload.
11506 * corelow.c (core_target_open): Use push_target overload.
11508 2019-02-15 Tom Tromey <tromey@adacore.com>
11510 * ravenscar-thread.c (is_ravenscar_task)
11511 (ravenscar_task_is_currently_active): Return bool.
11512 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11513 (_initialize_ravenscar): Remove "(void)".
11514 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11517 2019-02-15 Tom Tromey <tromey@adacore.com>
11519 * ravenscar-thread.c (ravenscar_runtime_initializer)
11520 (has_ravenscar_runtime, get_running_thread_id)
11521 (ravenscar_thread_target::resume): Fix indentation.
11523 2019-02-15 Tom Tromey <tromey@adacore.com>
11525 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11526 from ravenscar_arch_ops.
11527 (sparc_ravenscar_ops::fetch_registers)
11528 (sparc_ravenscar_ops::store_registers): Now methods.
11529 (sparc_ravenscar_prepare_to_store): Remove.
11530 (sparc_ravenscar_ops): Redefine.
11531 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11532 methods and destructor. Remove members.
11533 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11534 (ravenscar_thread_target::store_registers)
11535 (ravenscar_thread_target::prepare_to_store): Update.
11536 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11538 (struct ppc_ravenscar_powerpc_ops): Derive from
11539 ravenscar_arch_ops.
11540 (ppc_ravenscar_powerpc_ops::fetch_registers)
11541 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11542 (ppc_ravenscar_powerpc_ops): Redefine.
11543 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11544 (ppc_ravenscar_e500_ops::fetch_registers)
11545 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11546 (ppc_ravenscar_e500_ops): Redefine.
11547 * aarch64-ravenscar-thread.c
11548 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11549 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11550 (aarch64_ravenscar_fetch_registers)
11551 (aarch64_ravenscar_store_registers): Now methods.
11552 (aarch64_ravenscar_ops): Redefine.
11554 2019-02-15 Tom Tromey <tromey@adacore.com>
11556 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11557 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11558 (ravenscar_thread_target::stopped_by_watchpoint)
11559 (ravenscar_thread_target::stopped_data_address)
11560 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11562 2019-02-15 Tom Tromey <tromey@adacore.com>
11564 * ravenscar-thread.c: Fix some typos.
11566 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11567 Tom Tromey <tromey@adacore.com>
11569 * ada-lang.c (ada_exception_sal): Change addr_string to a
11571 (create_ada_exception_catchpoint): Update.
11573 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11574 Tom Tromey <tromey@adacore.com>
11576 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11577 (bp_location_ops): Remove.
11578 (base_breakpoint_allocate_location): Update.
11579 (free_bp_location): Update.
11580 * ada-lang.c (class ada_catchpoint_location)
11581 <ada_catchpoint_location>: Remove ops parameter.
11582 (ada_catchpoint_location_dtor): Remove.
11583 (ada_catchpoint_location_ops): Remove.
11584 (allocate_location_exception): Update.
11585 * breakpoint.h (struct bp_location_ops): Remove.
11586 (class bp_location) <bp_location>: Remove bp_location_ops
11588 <~bp_location>: Add destructor.
11591 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11592 Pedro Alves <palves@redhat.com>
11594 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11597 2019-02-14 David Michael <fedora.dm0@gmail.com>
11598 Samuel Thibault <samuel.thibault@gnu.org>
11599 Thomas Schwinge <thomas@codesourcery.com>
11601 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11602 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11604 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11606 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11607 (check_empty): Use "const char *".
11609 * gnu-nat.c (gnu_nat_target::detach): Instead of
11610 'detach_inferior (pid)' call
11611 'detach_inferior (find_inferior_pid (pid))'.
11613 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11614 'nat/fork-inferior.o'.
11615 * gnu-nat.c: #include "nat/fork-inferior.h".
11617 * gnu-nat.c (gnu_nat_target::detach): Instead of
11618 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11619 * gnu-nat.h: #include "inf-child.h".
11620 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11621 'i386_gnu_nat_target::fetch_registers'.
11622 (gnu_store_registers): Rename/move to
11623 'i386_gnu_nat_target::store_registers'.
11625 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11626 * gnu-nat.h (mach_thread_info): New function.
11627 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11629 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11631 2019-02-14 Frederic Konrad <konrad@adacore.com>
11633 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11635 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11637 * windows-nat.c (windows_add_thread): Add new parameter
11638 "main_thread_p" with default value set to false. Update
11639 function documentation as well as all callers.
11640 (windows_delete_thread): Likewise.
11641 (fake_create_process): Update call to windows_add_thread.
11642 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11643 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11644 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11645 call to windows_delete_thread.
11647 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11649 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11651 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11653 * symfile.c (find_separate_debug_file): Use canonical path of
11654 sysroot with child_path instead of gdb_sysroot if it is valid.
11656 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11658 * symfile.c (find_separate_debug_file): Use child_path to
11659 determine if an object file is under a sysroot.
11661 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11664 unittests/child-path-selftests.c.
11665 * common/pathstuff.c (child_path): New function.
11666 * common/pathstuff.h (child_path): New prototype.
11667 * unittests/child-path-selftests.c: New file.
11669 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11671 * symfile.c (find_separate_debug_file): Look for separate debug
11672 files in debug directories under the sysroot.
11674 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11676 * symtab.h (struct minimal_symbol data_p): New const method.
11677 (struct minimal_symbol text_p): Likewise.
11678 * symtab.c (output_source_filename): Use file name style
11679 to print file name.
11680 (print_symbol_info): Likewise.
11681 (print_msymbol_info): Use address style to print addresses.
11682 Use function name style to print executable text symbols.
11683 (expand_symtab_containing_pc): Use data_p.
11684 (find_pc_sect_compunit_symtab): Likewise.
11686 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11688 * breakpoint.c (describe_other_breakpoints): Use address style
11689 to print addresses.
11690 (say_where): Likewise.
11692 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11694 * ada-typeprint.c (print_func_type): Print function name
11695 style to print function name.
11696 * c-typeprint.c (c_print_type_1): Likewise.
11698 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11700 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11703 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11705 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11708 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11710 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11711 TYPE_CODE_REF types.
11713 2019-02-08 Jim Wilson <jimw@sifive.com>
11715 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11716 (riscv_linux_fregset): New.
11717 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11719 2019-02-07 Tom Tromey <tom@tromey.com>
11721 * thread.c (thread_cancel_execution_command): Update.
11722 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11724 (struct thread_fsm_ops): Remove.
11725 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11726 (thread_fsm_should_stop, thread_fsm_return_value)
11727 (thread_fsm_set_finished, thread_fsm_finished_p)
11728 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11730 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11731 * infrun.c (clear_proceed_status_thread)
11732 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11733 (print_stop_event): Update.
11734 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11736 (step_command_fsm_ops): Remove.
11737 (new_step_command_fsm): Remove.
11739 (step_command_fsm::should_stop): Rename from
11740 step_command_fsm_should_stop.
11741 (step_command_fsm::clean_up): Rename from
11742 step_command_fsm_clean_up.
11743 (step_command_fsm::do_async_reply_reason): Rename from
11744 step_command_fsm_async_reply_reason.
11745 (struct until_next_fsm): Inherit from thread_fsm. Add
11747 (until_next_fsm_ops): Remove.
11748 (new_until_next_fsm): Remove.
11749 (until_next_fsm::should_stop): Rename from
11750 until_next_fsm_should_stop.
11751 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11752 (until_next_fsm::do_async_reply_reason): Rename from
11753 until_next_fsm_async_reply_reason.
11754 (struct finish_command_fsm): Inherit from thread_fsm. Add
11755 constructor. Change type of breakpoint.
11756 (finish_command_fsm_ops): Remove.
11757 (new_finish_command_fsm): Remove.
11758 (finish_command_fsm::should_stop): Rename from
11759 finish_command_fsm_should_stop.
11760 (finish_command_fsm::clean_up): Rename from
11761 finish_command_fsm_clean_up.
11762 (finish_command_fsm::return_value): Rename from
11763 finish_command_fsm_return_value.
11764 (finish_command_fsm::do_async_reply_reason): Rename from
11765 finish_command_fsm_async_reply_reason.
11766 (finish_command): Update.
11767 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
11769 (call_thread_fsm_ops): Remove.
11770 (call_thread_fsm::call_thread_fsm): Rename from
11771 new_call_thread_fsm.
11772 (call_thread_fsm::should_stop): Rename from
11773 call_thread_fsm_should_stop.
11774 (call_thread_fsm::should_notify_stop): Rename from
11775 call_thread_fsm_should_notify_stop.
11776 (run_inferior_call, call_function_by_hand_dummy): Update.
11777 * cli/cli-interp.c (should_print_stop_to_console): Update.
11778 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
11779 Add constructor. Change type of location_breakpoint,
11781 (until_break_fsm_ops): Remove.
11782 (new_until_break_fsm): Remove.
11783 (until_break_fsm::should_stop): Rename from
11784 until_break_fsm_should_stop.
11785 (until_break_fsm::clean_up): Rename from
11786 until_break_fsm_clean_up.
11787 (until_break_fsm::do_async_reply_reason): Rename from
11788 until_break_fsm_async_reply_reason.
11789 (until_break_command): Update.
11790 * thread-fsm.c: Remove.
11791 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
11793 2019-02-07 Tom Tromey <tom@tromey.com>
11795 * yy-remap.h: Add include guard.
11796 * xtensa-tdep.h: Add include guard.
11797 * xcoffread.h: Rename include guard.
11798 * varobj-iter.h: Add include guard.
11799 * tui/tui.h: Rename include guard.
11800 * tui/tui-winsource.h: Rename include guard.
11801 * tui/tui-wingeneral.h: Rename include guard.
11802 * tui/tui-windata.h: Rename include guard.
11803 * tui/tui-win.h: Rename include guard.
11804 * tui/tui-stack.h: Rename include guard.
11805 * tui/tui-source.h: Rename include guard.
11806 * tui/tui-regs.h: Rename include guard.
11807 * tui/tui-out.h: Rename include guard.
11808 * tui/tui-layout.h: Rename include guard.
11809 * tui/tui-io.h: Rename include guard.
11810 * tui/tui-hooks.h: Rename include guard.
11811 * tui/tui-file.h: Rename include guard.
11812 * tui/tui-disasm.h: Rename include guard.
11813 * tui/tui-data.h: Rename include guard.
11814 * tui/tui-command.h: Rename include guard.
11815 * tic6x-tdep.h: Add include guard.
11816 * target/waitstatus.h: Rename include guard.
11817 * target/wait.h: Rename include guard.
11818 * target/target.h: Rename include guard.
11819 * target/resume.h: Rename include guard.
11820 * target-float.h: Rename include guard.
11821 * stabsread.h: Add include guard.
11822 * rs6000-tdep.h: Add include guard.
11823 * riscv-fbsd-tdep.h: Add include guard.
11824 * regformats/regdef.h: Rename include guard.
11825 * record.h: Rename include guard.
11826 * python/python.h: Rename include guard.
11827 * python/python-internal.h: Rename include guard.
11828 * python/py-stopevent.h: Rename include guard.
11829 * python/py-ref.h: Rename include guard.
11830 * python/py-record.h: Rename include guard.
11831 * python/py-record-full.h: Rename include guard.
11832 * python/py-record-btrace.h: Rename include guard.
11833 * python/py-instruction.h: Rename include guard.
11834 * python/py-events.h: Rename include guard.
11835 * python/py-event.h: Rename include guard.
11836 * procfs.h: Add include guard.
11837 * proc-utils.h: Add include guard.
11838 * p-lang.h: Add include guard.
11839 * or1k-tdep.h: Rename include guard.
11840 * observable.h: Rename include guard.
11841 * nto-tdep.h: Rename include guard.
11842 * nat/x86-linux.h: Rename include guard.
11843 * nat/x86-linux-dregs.h: Rename include guard.
11844 * nat/x86-gcc-cpuid.h: Add include guard.
11845 * nat/x86-dregs.h: Rename include guard.
11846 * nat/x86-cpuid.h: Rename include guard.
11847 * nat/ppc-linux.h: Rename include guard.
11848 * nat/mips-linux-watch.h: Rename include guard.
11849 * nat/linux-waitpid.h: Rename include guard.
11850 * nat/linux-ptrace.h: Rename include guard.
11851 * nat/linux-procfs.h: Rename include guard.
11852 * nat/linux-osdata.h: Rename include guard.
11853 * nat/linux-nat.h: Rename include guard.
11854 * nat/linux-namespaces.h: Rename include guard.
11855 * nat/linux-btrace.h: Rename include guard.
11856 * nat/glibc_thread_db.h: Rename include guard.
11857 * nat/gdb_thread_db.h: Rename include guard.
11858 * nat/gdb_ptrace.h: Rename include guard.
11859 * nat/fork-inferior.h: Rename include guard.
11860 * nat/amd64-linux-siginfo.h: Rename include guard.
11861 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
11862 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
11863 * nat/aarch64-linux.h: Rename include guard.
11864 * nat/aarch64-linux-hw-point.h: Rename include guard.
11865 * mn10300-tdep.h: Add include guard.
11866 * mips-linux-tdep.h: Add include guard.
11867 * mi/mi-parse.h: Rename include guard.
11868 * mi/mi-out.h: Rename include guard.
11869 * mi/mi-main.h: Rename include guard.
11870 * mi/mi-interp.h: Rename include guard.
11871 * mi/mi-getopt.h: Rename include guard.
11872 * mi/mi-console.h: Rename include guard.
11873 * mi/mi-common.h: Rename include guard.
11874 * mi/mi-cmds.h: Rename include guard.
11875 * mi/mi-cmd-break.h: Rename include guard.
11876 * m2-lang.h: Add include guard.
11877 * location.h: Rename include guard.
11878 * linux-record.h: Rename include guard.
11879 * linux-nat.h: Add include guard.
11880 * linux-fork.h: Add include guard.
11881 * i386-darwin-tdep.h: Rename include guard.
11882 * hppa-linux-offsets.h: Add include guard.
11883 * guile/guile.h: Rename include guard.
11884 * guile/guile-internal.h: Rename include guard.
11885 * gnu-nat.h: Rename include guard.
11886 * gdb-stabs.h: Rename include guard.
11887 * frv-tdep.h: Add include guard.
11888 * f-lang.h: Add include guard.
11889 * event-loop.h: Add include guard.
11890 * darwin-nat.h: Rename include guard.
11891 * cp-abi.h: Rename include guard.
11892 * config/sparc/nm-sol2.h: Rename include guard.
11893 * config/nm-nto.h: Rename include guard.
11894 * config/nm-linux.h: Add include guard.
11895 * config/i386/nm-i386gnu.h: Rename include guard.
11896 * config/djgpp/nl_types.h: Rename include guard.
11897 * config/djgpp/langinfo.h: Rename include guard.
11898 * compile/gcc-cp-plugin.h: Add include guard.
11899 * compile/gcc-c-plugin.h: Add include guard.
11900 * compile/compile.h: Rename include guard.
11901 * compile/compile-object-run.h: Rename include guard.
11902 * compile/compile-object-load.h: Rename include guard.
11903 * compile/compile-internal.h: Rename include guard.
11904 * compile/compile-cplus.h: Rename include guard.
11905 * compile/compile-c.h: Rename include guard.
11906 * common/xml-utils.h: Rename include guard.
11907 * common/x86-xstate.h: Rename include guard.
11908 * common/version.h: Rename include guard.
11909 * common/vec.h: Rename include guard.
11910 * common/tdesc.h: Rename include guard.
11911 * common/selftest.h: Rename include guard.
11912 * common/scoped_restore.h: Rename include guard.
11913 * common/scoped_mmap.h: Rename include guard.
11914 * common/scoped_fd.h: Rename include guard.
11915 * common/safe-iterator.h: Rename include guard.
11916 * common/run-time-clock.h: Rename include guard.
11917 * common/refcounted-object.h: Rename include guard.
11918 * common/queue.h: Rename include guard.
11919 * common/ptid.h: Rename include guard.
11920 * common/print-utils.h: Rename include guard.
11921 * common/preprocessor.h: Rename include guard.
11922 * common/pathstuff.h: Rename include guard.
11923 * common/observable.h: Rename include guard.
11924 * common/netstuff.h: Rename include guard.
11925 * common/job-control.h: Rename include guard.
11926 * common/host-defs.h: Rename include guard.
11927 * common/gdb_wait.h: Rename include guard.
11928 * common/gdb_vecs.h: Rename include guard.
11929 * common/gdb_unlinker.h: Rename include guard.
11930 * common/gdb_unique_ptr.h: Rename include guard.
11931 * common/gdb_tilde_expand.h: Rename include guard.
11932 * common/gdb_sys_time.h: Rename include guard.
11933 * common/gdb_string_view.h: Rename include guard.
11934 * common/gdb_splay_tree.h: Rename include guard.
11935 * common/gdb_setjmp.h: Rename include guard.
11936 * common/gdb_ref_ptr.h: Rename include guard.
11937 * common/gdb_optional.h: Rename include guard.
11938 * common/gdb_locale.h: Rename include guard.
11939 * common/gdb_assert.h: Rename include guard.
11940 * common/filtered-iterator.h: Rename include guard.
11941 * common/filestuff.h: Rename include guard.
11942 * common/fileio.h: Rename include guard.
11943 * common/environ.h: Rename include guard.
11944 * common/common-utils.h: Rename include guard.
11945 * common/common-types.h: Rename include guard.
11946 * common/common-regcache.h: Rename include guard.
11947 * common/common-inferior.h: Rename include guard.
11948 * common/common-gdbthread.h: Rename include guard.
11949 * common/common-exceptions.h: Rename include guard.
11950 * common/common-defs.h: Rename include guard.
11951 * common/common-debug.h: Rename include guard.
11952 * common/cleanups.h: Rename include guard.
11953 * common/buffer.h: Rename include guard.
11954 * common/btrace-common.h: Rename include guard.
11955 * common/break-common.h: Rename include guard.
11956 * cli/cli-utils.h: Rename include guard.
11957 * cli/cli-style.h: Rename include guard.
11958 * cli/cli-setshow.h: Rename include guard.
11959 * cli/cli-script.h: Rename include guard.
11960 * cli/cli-interp.h: Rename include guard.
11961 * cli/cli-decode.h: Rename include guard.
11962 * cli/cli-cmds.h: Rename include guard.
11963 * charset-list.h: Add include guard.
11964 * buildsym-legacy.h: Rename include guard.
11965 * bfin-tdep.h: Add include guard.
11966 * ax.h: Rename include guard.
11967 * arm-linux-tdep.h: Add include guard.
11968 * arm-fbsd-tdep.h: Add include guard.
11969 * arch/xtensa.h: Rename include guard.
11970 * arch/tic6x.h: Add include guard.
11971 * arch/i386.h: Add include guard.
11972 * arch/arm.h: Rename include guard.
11973 * arch/arm-linux.h: Rename include guard.
11974 * arch/arm-get-next-pcs.h: Rename include guard.
11975 * arch/amd64.h: Add include guard.
11976 * arch/aarch64-insn.h: Rename include guard.
11977 * arch-utils.h: Rename include guard.
11978 * annotate.h: Add include guard.
11979 * amd64-darwin-tdep.h: Rename include guard.
11980 * aarch64-linux-tdep.h: Add include guard.
11981 * aarch64-fbsd-tdep.h: Add include guard.
11982 * aarch32-linux-nat.h: Add include guard.
11984 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11986 * macrotab.c (macro_define_internal): New function that
11987 factorizes macro_define_object_internal and macro_define_function
11989 (macro_define_object_internal): Use macro_define_internal.
11990 (macro_define_function): Likewise.
11992 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11994 * macrocmd.c (extract_identifier): Return
11995 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
11998 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12000 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12002 2019-02-05 Tom Tromey <tom@tromey.com>
12004 * target.c (target_stack::unpush): Move assertion earlier.
12006 2019-01-30 Tom Tromey <tom@tromey.com>
12009 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12010 (gdbpy_parse_and_eval): Likewise.
12011 * python/python-internal.h (gdbpy_allow_threads): New class.
12013 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12015 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12016 (aarch64_fbsd_fpregmap): Move earlier.
12017 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12018 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12019 instead of individual calls to trad_frame_set_reg_addr.
12020 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12022 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12023 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12024 instead of individual calls to trad_frame_set_reg_addr.
12026 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12028 * CONTRIBUTE: Replace contribution list with wiki link.
12030 2019-01-25 Tom Tromey <tom@tromey.com>
12032 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12034 2019-01-25 Tom Tromey <tom@tromey.com>
12036 * xtensa-linux-nat.c: Fix common/ includes.
12037 * xml-support.h: Fix common/ includes.
12038 * xml-support.c: Fix common/ includes.
12039 * x86-linux-nat.c: Fix common/ includes.
12040 * windows-nat.c: Fix common/ includes.
12041 * varobj.h: Fix common/ includes.
12042 * varobj.c: Fix common/ includes.
12043 * value.c: Fix common/ includes.
12044 * valops.c: Fix common/ includes.
12045 * utils.c: Fix common/ includes.
12046 * unittests/xml-utils-selftests.c: Fix common/ includes.
12047 * unittests/utils-selftests.c: Fix common/ includes.
12048 * unittests/unpack-selftests.c: Fix common/ includes.
12049 * unittests/tracepoint-selftests.c: Fix common/ includes.
12050 * unittests/style-selftests.c: Fix common/ includes.
12051 * unittests/string_view-selftests.c: Fix common/ includes.
12052 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12053 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12054 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12055 * unittests/rsp-low-selftests.c: Fix common/ includes.
12056 * unittests/parse-connection-spec-selftests.c: Fix common/
12058 * unittests/optional-selftests.c: Fix common/ includes.
12059 * unittests/offset-type-selftests.c: Fix common/ includes.
12060 * unittests/observable-selftests.c: Fix common/ includes.
12061 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12062 * unittests/memrange-selftests.c: Fix common/ includes.
12063 * unittests/memory-map-selftests.c: Fix common/ includes.
12064 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12065 * unittests/function-view-selftests.c: Fix common/ includes.
12066 * unittests/environ-selftests.c: Fix common/ includes.
12067 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12068 * unittests/common-utils-selftests.c: Fix common/ includes.
12069 * unittests/cli-utils-selftests.c: Fix common/ includes.
12070 * unittests/array-view-selftests.c: Fix common/ includes.
12071 * ui-file.c: Fix common/ includes.
12072 * tui/tui-io.c: Fix common/ includes.
12073 * tracepoint.h: Fix common/ includes.
12074 * tracepoint.c: Fix common/ includes.
12075 * tracefile-tfile.c: Fix common/ includes.
12076 * top.h: Fix common/ includes.
12077 * top.c: Fix common/ includes.
12078 * thread.c: Fix common/ includes.
12079 * target/waitstatus.h: Fix common/ includes.
12080 * target/waitstatus.c: Fix common/ includes.
12081 * target.h: Fix common/ includes.
12082 * target.c: Fix common/ includes.
12083 * target-memory.c: Fix common/ includes.
12084 * target-descriptions.c: Fix common/ includes.
12085 * symtab.h: Fix common/ includes.
12086 * symfile.c: Fix common/ includes.
12087 * stap-probe.c: Fix common/ includes.
12088 * spu-linux-nat.c: Fix common/ includes.
12089 * sparc-nat.c: Fix common/ includes.
12090 * source.c: Fix common/ includes.
12091 * solib.c: Fix common/ includes.
12092 * solib-target.c: Fix common/ includes.
12093 * ser-unix.c: Fix common/ includes.
12094 * ser-tcp.c: Fix common/ includes.
12095 * ser-pipe.c: Fix common/ includes.
12096 * ser-base.c: Fix common/ includes.
12097 * selftest-arch.c: Fix common/ includes.
12098 * s12z-tdep.c: Fix common/ includes.
12099 * rust-exp.y: Fix common/ includes.
12100 * rs6000-aix-tdep.c: Fix common/ includes.
12101 * riscv-tdep.c: Fix common/ includes.
12102 * remote.c: Fix common/ includes.
12103 * remote-notif.h: Fix common/ includes.
12104 * remote-fileio.h: Fix common/ includes.
12105 * remote-fileio.c: Fix common/ includes.
12106 * regcache.h: Fix common/ includes.
12107 * regcache.c: Fix common/ includes.
12108 * record-btrace.c: Fix common/ includes.
12109 * python/python.c: Fix common/ includes.
12110 * python/py-type.c: Fix common/ includes.
12111 * python/py-inferior.c: Fix common/ includes.
12112 * progspace.h: Fix common/ includes.
12113 * producer.c: Fix common/ includes.
12114 * procfs.c: Fix common/ includes.
12115 * proc-api.c: Fix common/ includes.
12116 * printcmd.c: Fix common/ includes.
12117 * ppc-linux-nat.c: Fix common/ includes.
12118 * parser-defs.h: Fix common/ includes.
12119 * osdata.c: Fix common/ includes.
12120 * obsd-nat.c: Fix common/ includes.
12121 * nat/x86-linux.c: Fix common/ includes.
12122 * nat/x86-linux-dregs.c: Fix common/ includes.
12123 * nat/x86-dregs.h: Fix common/ includes.
12124 * nat/x86-dregs.c: Fix common/ includes.
12125 * nat/ppc-linux.c: Fix common/ includes.
12126 * nat/mips-linux-watch.h: Fix common/ includes.
12127 * nat/mips-linux-watch.c: Fix common/ includes.
12128 * nat/linux-waitpid.c: Fix common/ includes.
12129 * nat/linux-ptrace.h: Fix common/ includes.
12130 * nat/linux-ptrace.c: Fix common/ includes.
12131 * nat/linux-procfs.c: Fix common/ includes.
12132 * nat/linux-personality.c: Fix common/ includes.
12133 * nat/linux-osdata.c: Fix common/ includes.
12134 * nat/linux-namespaces.c: Fix common/ includes.
12135 * nat/linux-btrace.h: Fix common/ includes.
12136 * nat/linux-btrace.c: Fix common/ includes.
12137 * nat/fork-inferior.c: Fix common/ includes.
12138 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12139 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12140 * nat/aarch64-linux.c: Fix common/ includes.
12141 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12142 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12143 * namespace.h: Fix common/ includes.
12144 * mips-linux-tdep.c: Fix common/ includes.
12145 * minsyms.c: Fix common/ includes.
12146 * mi/mi-parse.h: Fix common/ includes.
12147 * mi/mi-main.c: Fix common/ includes.
12148 * mi/mi-cmd-env.c: Fix common/ includes.
12149 * memrange.h: Fix common/ includes.
12150 * memattr.c: Fix common/ includes.
12151 * maint.h: Fix common/ includes.
12152 * maint.c: Fix common/ includes.
12153 * main.c: Fix common/ includes.
12154 * machoread.c: Fix common/ includes.
12155 * location.c: Fix common/ includes.
12156 * linux-thread-db.c: Fix common/ includes.
12157 * linux-nat.c: Fix common/ includes.
12158 * linux-fork.c: Fix common/ includes.
12159 * inline-frame.c: Fix common/ includes.
12160 * infrun.c: Fix common/ includes.
12161 * inflow.c: Fix common/ includes.
12162 * inferior.h: Fix common/ includes.
12163 * inferior.c: Fix common/ includes.
12164 * infcmd.c: Fix common/ includes.
12165 * inf-ptrace.c: Fix common/ includes.
12166 * inf-child.c: Fix common/ includes.
12167 * ia64-linux-nat.c: Fix common/ includes.
12168 * i387-tdep.c: Fix common/ includes.
12169 * i386-tdep.c: Fix common/ includes.
12170 * i386-linux-tdep.c: Fix common/ includes.
12171 * i386-linux-nat.c: Fix common/ includes.
12172 * i386-go32-tdep.c: Fix common/ includes.
12173 * i386-fbsd-tdep.c: Fix common/ includes.
12174 * i386-fbsd-nat.c: Fix common/ includes.
12175 * guile/scm-type.c: Fix common/ includes.
12176 * guile/guile.c: Fix common/ includes.
12177 * go32-nat.c: Fix common/ includes.
12178 * gnu-nat.c: Fix common/ includes.
12179 * gdbthread.h: Fix common/ includes.
12180 * gdbarch-selftests.c: Fix common/ includes.
12181 * gdb_usleep.c: Fix common/ includes.
12182 * gdb_select.h: Fix common/ includes.
12183 * gdb_bfd.c: Fix common/ includes.
12184 * gcore.c: Fix common/ includes.
12185 * fork-child.c: Fix common/ includes.
12186 * findvar.c: Fix common/ includes.
12187 * fbsd-nat.c: Fix common/ includes.
12188 * event-top.c: Fix common/ includes.
12189 * event-loop.c: Fix common/ includes.
12190 * dwarf2read.c: Fix common/ includes.
12191 * dwarf2loc.c: Fix common/ includes.
12192 * dwarf2-frame.c: Fix common/ includes.
12193 * dwarf-index-cache.c: Fix common/ includes.
12194 * dtrace-probe.c: Fix common/ includes.
12195 * disasm-selftests.c: Fix common/ includes.
12196 * defs.h: Fix common/ includes.
12197 * csky-tdep.c: Fix common/ includes.
12198 * cp-valprint.c: Fix common/ includes.
12199 * cp-support.h: Fix common/ includes.
12200 * cp-support.c: Fix common/ includes.
12201 * corelow.c: Fix common/ includes.
12202 * completer.h: Fix common/ includes.
12203 * completer.c: Fix common/ includes.
12204 * compile/compile.c: Fix common/ includes.
12205 * compile/compile-loc2c.c: Fix common/ includes.
12206 * compile/compile-cplus-types.c: Fix common/ includes.
12207 * compile/compile-cplus-symbols.c: Fix common/ includes.
12208 * command.h: Fix common/ includes.
12209 * cli/cli-dump.c: Fix common/ includes.
12210 * cli/cli-cmds.c: Fix common/ includes.
12211 * charset.c: Fix common/ includes.
12212 * build-id.c: Fix common/ includes.
12213 * btrace.h: Fix common/ includes.
12214 * btrace.c: Fix common/ includes.
12215 * breakpoint.h: Fix common/ includes.
12216 * breakpoint.c: Fix common/ includes.
12218 (enum agent_op): Fix common/ includes.
12219 * ax-general.c (struct aop_map): Fix common/ includes.
12220 * ax-gdb.c: Fix common/ includes.
12221 * auxv.c: Fix common/ includes.
12222 * auto-load.c: Fix common/ includes.
12223 * arm-tdep.c: Fix common/ includes.
12224 * arch/riscv.c: Fix common/ includes.
12225 * arch/ppc-linux-common.c: Fix common/ includes.
12226 * arch/i386.c: Fix common/ includes.
12227 * arch/arm.c: Fix common/ includes.
12228 * arch/arm-linux.c: Fix common/ includes.
12229 * arch/arm-get-next-pcs.c: Fix common/ includes.
12230 * arch/amd64.c: Fix common/ includes.
12231 * arch/aarch64.c: Fix common/ includes.
12232 * arch/aarch64-insn.c: Fix common/ includes.
12233 * arch-utils.c: Fix common/ includes.
12234 * amd64-windows-tdep.c: Fix common/ includes.
12235 * amd64-tdep.c: Fix common/ includes.
12236 * amd64-sol2-tdep.c: Fix common/ includes.
12237 * amd64-obsd-tdep.c: Fix common/ includes.
12238 * amd64-nbsd-tdep.c: Fix common/ includes.
12239 * amd64-linux-tdep.c: Fix common/ includes.
12240 * amd64-linux-nat.c: Fix common/ includes.
12241 * amd64-fbsd-tdep.c: Fix common/ includes.
12242 * amd64-fbsd-nat.c: Fix common/ includes.
12243 * amd64-dicos-tdep.c: Fix common/ includes.
12244 * amd64-darwin-tdep.c: Fix common/ includes.
12245 * agent.c: Fix common/ includes.
12246 * ada-lang.h: Fix common/ includes.
12247 * ada-lang.c: Fix common/ includes.
12248 * aarch64-tdep.c: Fix common/ includes.
12250 2019-01-25 Tom Tromey <tom@tromey.com>
12252 * common/create-version.sh: Use common/version.h.
12254 2019-01-24 Pedro Alves <palves@redhat.com>
12256 * infrun.c (signal_stop, signal_print, signal_program)
12257 (signal_catch, signal_pass): Now arrays instead of pointers.
12258 (update_signals_program_target, do_target_resume)
12259 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12260 * linux-nat.c (linux_nat_target::pass_signals)
12261 (linux_nat_target::create_inferior, linux_nat_target::attach):
12263 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12264 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12265 * procfs.c (procfs_target::pass_signals): Adjust.
12266 * record-full.c (record_full_target::resume): Adjust.
12267 * remote.c (remote_target::pass_signals)
12268 (remote_target::program_signals): Adjust.
12269 * target-debug.h (target_debug_print_signals): Now takes a
12270 gdb::array_view as parameter. Adjust.
12271 * target.h (target_ops) <pass_signals, program_signals>: Replace
12272 pointer and length parameters with gdb::array_view.
12273 (target_pass_signals, target_program_signals): Likewise.
12274 * target-delegates.c: Regenerate.
12276 2019-01-24 Pedro Alves <palves@redhat.com>
12278 * common/forward-scope-exit.h
12279 (forward_scope_exit::forward_scope_exit): Pass arguments to
12280 m_bind_function directly, instead of creating a std::bind and
12283 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12285 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12286 for static members.
12287 (pass_in_v_vfp_candidate): Likewise.
12289 2019-01-23 Tom Tromey <tom@tromey.com>
12290 Pedro Alves <palves@redhat.com>
12292 * regcache.c (class regcache_invalidator): Remove.
12293 (regcache::raw_write): Use make_scope_exit.
12295 2019-01-23 Tom Tromey <tom@tromey.com>
12297 * ui-out.h (class ui_out_emit_type): Update comment.
12299 2019-01-23 Tom Tromey <tom@tromey.com>
12301 * infrun.c (fetch_inferior_event): Update comment.
12303 2019-01-23 Tom Tromey <tom@tromey.com>
12304 Pedro Alves <palves@redhat.com>
12306 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12308 (fetch_inferior_event): Use SCOPE_EXIT.
12311 2019-01-23 Tom Tromey <tom@tromey.com>
12312 Pedro Alves <palves@redhat.com>
12314 * infrun.c (disable_thread_events): Delete.
12315 (stop_all_threads): Use SCOPE_EXIT.
12317 2019-01-23 Tom Tromey <tom@tromey.com>
12318 Pedro Alves <palves@redhat.com>
12320 * symfile.c: Include forward-scope-exit.h.
12321 (clear_symtab_users_cleanup): Replace forward declaration with
12322 a FORWARD_SCOPE_EXIT.
12323 (syms_from_objfile_1): Use the forward_scope_exit and
12324 gdb::optional instead of cleanup_function.
12325 (reread_symbols): Use the forward_scope_exit instead of
12327 (clear_symtab_users_cleanup): Remove function.
12329 2019-01-23 Tom Tromey <tom@tromey.com>
12330 Pedro Alves <palves@redhat.com>
12332 * linux-nat.c: Include scope-exit.h.
12333 (cleanup_target_stop): Remove.
12334 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12337 2019-01-23 Tom Tromey <tom@tromey.com>
12338 Pedro Alves <palves@redhat.com>
12340 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12341 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12343 2019-01-23 Tom Tromey <tom@tromey.com>
12344 Andrew Burgess <andrew.burgess@embecosm.com>
12345 Pedro Alves <palves@redhat.com>
12347 * infrun.c (fetch_inferior_event): Use scope_exit.
12348 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12349 * top.c (execute_command): Use scope_exit.
12350 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12351 * utils.c (do_bpstat_clear_actions_cleanup)
12352 (make_bpstat_clear_actions_cleanup): Remove.
12354 2019-01-23 Tom Tromey <tom@tromey.com>
12355 Pedro Alves <palves@redhat.com>
12357 * infrun.c: Include "common/scope-exit.h"
12358 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12359 (wait_for_inferior): Use SCOPE_EXIT.
12360 (fetch_inferior_event): Use scope_exit.
12362 2019-01-23 Tom Tromey <tom@tromey.com>
12363 Pedro Alves <palves@redhat.com>
12365 * breakpoint.c (create_breakpoint): Remove cleanup.
12367 2019-01-23 Tom Tromey <tom@tromey.com>
12368 Andrew Burgess <andrew.burgess@embecosm.com>
12369 Pedro Alves <palves@redhat.com>
12371 2019-01-23 Pedro Alves <palves@redhat.com>
12373 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12375 2019-01-23 Pedro Alves <palves@redhat.com>
12376 Andrew Burgess <andrew.burgess@embecosm.com>
12378 * gdbthread.h: Include "common/forward-scope-exit.h".
12379 (scoped_finish_thread_state): Redefine custom class in terms of
12380 forward_scope_exit.
12382 2019-01-23 Pedro Alves <palves@redhat.com>
12383 Andrew Burgess <andrew.burgess@embecosm.com>
12385 * common/forward-scope-exit.h: New file.
12387 2019-01-23 Pedro Alves <palves@redhat.com>
12388 Andrew Burgess <andrew.burgess@embecosm.com>
12389 Tom Tromey <tom@tromey.com>
12391 * common/scope-exit.h: New file.
12393 2019-01-23 Pedro Alves <palves@redhat.com>
12395 * common/preprocessor.h (ESC): Rename to ...
12396 (ESC_PARENS): ... this.
12397 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12398 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12400 2019-01-23 Tom Tromey <tom@tromey.com>
12402 * language.h (class scoped_switch_to_sym_language_if_auto):
12403 Initialize m_lang in both cases.
12405 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12407 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12410 2019-01-22 Tom Tromey <tom@tromey.com>
12412 * corelow.c: Do not include sys/file.h.
12414 2019-01-22 Tom Tromey <tom@tromey.com>
12416 * tui/tui-wingeneral.h: Include gdb_curses.h.
12418 2019-01-22 Tom Tromey <tom@tromey.com>
12420 * source-cache.h (class source_cache) <get_source_lines,
12421 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12423 2019-01-22 Tom Tromey <tom@tromey.com>
12425 * remote-fileio.h (struct remote_target): Declare.
12427 2019-01-22 Tom Tromey <tom@tromey.com>
12429 * python/py-arch.c: Do not include py-ref.h.
12430 * python/py-bpevent.c: Do not include py-ref.h.
12431 * python/py-cmd.c: Do not include py-ref.h.
12432 * python/py-continueevent.c: Do not include py-ref.h.
12433 * python/py-event.h: Do not include py-ref.h.
12434 * python/py-evtregistry.c: Do not include py-ref.h.
12435 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12436 * python/py-frame.c: Do not include py-ref.h.
12437 * python/py-framefilter.c: Do not include py-ref.h.
12438 * python/py-function.c: Do not include py-ref.h.
12439 * python/py-infevents.c: Do not include py-ref.h.
12440 * python/py-linetable.c: Do not include py-ref.h.
12441 * python/py-objfile.c: Do not include py-ref.h.
12442 * python/py-param.c: Do not include py-ref.h.
12443 * python/py-prettyprint.c: Do not include py-ref.h.
12444 * python/py-progspace.c: Do not include py-ref.h.
12445 * python/py-symbol.c: Do not include py-ref.h.
12446 * python/py-symtab.c: Do not include py-ref.h.
12447 * python/py-type.c: Do not include py-ref.h.
12448 * python/py-unwind.c: Do not include py-ref.h.
12449 * python/py-utils.c: Do not include py-ref.h.
12450 * python/py-value.c: Do not include py-ref.h.
12451 * python/py-varobj.c: Do not include py-ref.h.
12452 * python/py-xmethods.c: Do not include py-ref.h.
12453 * python/python.c: Do not include py-ref.h.
12454 * varobj.c: Do not include py-ref.h.
12456 2019-01-22 Tom Tromey <tom@tromey.com>
12458 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12459 keyword for bcache.
12461 2019-01-22 Tom Tromey <tom@tromey.com>
12463 * compile/compile-cplus-types.c: Remove a comment by #include.
12465 2019-01-22 Tom Tromey <tom@tromey.com>
12467 * compile/gcc-c-plugin.h: Include compile-internal.h.
12469 2019-01-22 Tom Tromey <tom@tromey.com>
12471 * stabsread.c (EXTERN): Do not define.
12472 (symnum, next_symbol_text_func, processing_gcc_compilation)
12473 (within_function, global_sym_chain, global_stabs)
12474 (previous_stab_code, this_object_header_files)
12475 (n_this_object_header_files)
12476 (n_allocated_this_object_header_files): Define.
12477 * stabsread.h (EXTERN): Never define. Use "extern".
12479 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12481 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12484 2019-01-21 Tom Tromey <tom@tromey.com>
12486 * ui-out.c: Fix includes.
12487 * tui/tui-source.c: Fix includes.
12488 * target.c: Fix includes.
12489 * remote.c: Fix includes.
12490 * regcache.c: Fix includes.
12491 * python/py-block.c: Fix includes.
12492 * printcmd.c: Fix includes.
12493 * or1k-tdep.c: Fix includes.
12494 * mi/mi-main.c: Fix includes.
12495 * m32r-tdep.c: Fix includes.
12496 * csky-tdep.c: Fix includes.
12497 * compile/compile-cplus-types.c: Fix includes.
12498 * cli/cli-interp.c: Fix includes.
12500 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12502 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12505 2019-01-16 Tom Tromey <tom@tromey.com>
12507 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12509 (struct objfile) <msymbols_range>: Move from top level.
12510 <msymbols>: New method.
12511 (class objfile_msymbols): Remove.
12512 * symtab.c (default_collect_symbol_completion_matches_break_on):
12514 * symmisc.c (dump_msymbols): Update.
12515 * stabsread.c (scan_file_globals): Update.
12516 * objc-lang.c (info_selectors_command, info_classes_command)
12517 (find_methods): Update.
12518 * minsyms.c (find_solib_trampoline_target): Update.
12519 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12520 * coffread.c (coff_symfile_read): Update.
12521 * ada-lang.c (ada_lookup_simple_minsym)
12522 (ada_collect_symbol_completion_matches): Update.
12524 2019-01-16 Tom Tromey <tom@tromey.com>
12526 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12527 type. Remove no-argument constructor.
12528 <iterator::operator++>: Simplify.
12530 <end>: Use minimal_symbol_count.
12532 2019-01-16 Tom Tromey <tom@tromey.com>
12534 * objfiles.h (struct objfile) <psymtabs>: New method.
12535 (class objfile_psymtabs): Remove.
12536 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12538 <range>: New method.
12539 (require_partial_symbols): Change return type.
12540 * psymtab.c (require_partial_symbols)
12541 (psym_expand_symtabs_matching): Update.
12542 * mdebugread.c (parse_partial_symbols): Update.
12543 * dbxread.c (dbx_end_psymtab): Update.
12545 2019-01-15 Tom Tromey <tom@tromey.com>
12547 * symtab.c (lookup_objfile_from_block)
12548 (lookup_symbol_in_objfile_symtabs)
12549 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12550 (find_line_symtab, info_sources_command)
12551 (default_collect_symbol_completion_matches_break_on)
12552 (make_source_files_completion_list): Update.
12553 * symmisc.c (print_objfile_statistics, dump_objfile)
12554 (maintenance_print_symbols, maintenance_info_symtabs)
12555 (maintenance_check_symtabs, maintenance_info_line_tables):
12557 * source.c (select_source_symtab)
12558 (forget_cached_source_info_for_objfile): Update.
12559 * objfiles.h (class objfile_compunits): Remove.
12560 (struct objfile) <compunits_range>: New typedef.
12561 (compunits): New method.
12562 * objfiles.c (objfile_relocate1): Update.
12563 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12564 * maint.c (count_symtabs_and_blocks): Update.
12565 * linespec.c (iterate_over_all_matching_symtabs): Update.
12566 * cp-support.c (add_symbol_overload_list_qualified): Update.
12567 * coffread.c (coff_symtab_read): Update.
12568 * ada-lang.c (add_nonlocal_symbols)
12569 (ada_collect_symbol_completion_matches)
12570 (ada_add_global_exceptions): Update.
12572 2019-01-15 Tom Tromey <tom@tromey.com>
12574 * progspace.h (program_space) <objfiles_safe_range>: New
12576 <objfiles_safe>: New method.
12577 * objfiles.h (class all_objfiles_safe): Remove.
12578 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12579 * jit.c (jit_inferior_exit_hook): Update.
12581 2019-01-17 Tom Tromey <tom@tromey.com>
12583 * progspace.h (program_space) <objfiles_range>: New typedef.
12584 <objfiles>: New method.
12585 <objfiles_head>: Rename from objfiles.
12586 (object_files): Update.
12587 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12588 * guile/scm-pretty-print.c
12589 (ppscm_find_pretty_printer_from_objfiles): Update.
12590 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12591 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12593 * python/py-progspace.c (pspy_get_objfiles): Update.
12594 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12596 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12597 (objfpy_lookup_objfile_by_build_id): Update.
12598 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12599 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12601 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12602 (expand_symtab_containing_pc, lookup_objfile_from_block)
12603 (lookup_static_symbol, basic_lookup_transparent_type)
12604 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12605 (find_line_symtab, info_sources_command)
12606 (default_collect_symbol_completion_matches_break_on)
12607 (make_source_files_completion_list, find_main_name): Update.
12608 * symmisc.c (print_symbol_bcache_statistics)
12609 (print_objfile_statistics, maintenance_print_symbols)
12610 (maintenance_print_msymbols, maintenance_print_objfiles)
12611 (maintenance_info_symtabs, maintenance_check_symtabs)
12612 (maintenance_expand_symtabs, maintenance_info_line_tables):
12614 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12615 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12616 (map_overlay_command, unmap_overlay_command)
12617 (simple_overlay_update, expand_symtabs_matching)
12618 (map_symbol_filenames): Update.
12619 * symfile-debug.c (set_debug_symfile): Update.
12620 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12622 * source.c (select_source_symtab, forget_cached_source_info):
12624 * solib.c (solib_read_symbols): Update.
12625 * solib-spu.c (append_ocl_sos): Update.
12626 * psymtab.c (maintenance_print_psymbols)
12627 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12628 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12629 * printcmd.c (info_symbol_command): Update.
12630 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12632 * objfiles.h (class all_objfiles): Remove.
12633 * objfiles.c (have_partial_symbols, have_full_symbols)
12634 (have_minimal_symbols, qsort_cmp, update_section_map)
12635 (shared_objfile_contains_address_p)
12636 (default_iterate_over_objfiles_in_search_order): Update.
12637 * objc-lang.c (info_selectors_command, info_classes_command)
12638 (find_methods): Update.
12639 * minsyms.c (find_solib_trampoline_target): Update.
12640 * maint.c (maintenance_info_sections)
12641 (maintenance_translate_address, count_symtabs_and_blocks):
12643 * main.c (captured_main_1): Update.
12644 * linux-thread-db.c (try_thread_db_load_from_pdir)
12645 (has_libpthread): Update.
12646 * linespec.c (iterate_over_all_matching_symtabs)
12647 (search_minsyms_for_name): Update.
12648 * jit.c (jit_find_objf_with_entry_addr): Update.
12649 * hppa-tdep.c (find_unwind_entry)
12650 (hppa_lookup_stub_minimal_symbol): Update.
12651 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12653 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12654 (elf_gnu_ifunc_resolve_by_got): Update.
12655 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12656 * dwarf-index-write.c (save_gdb_index_command): Update.
12657 * cp-support.c (add_symbol_overload_list_qualified): Update.
12658 * breakpoint.c (create_overlay_event_breakpoint)
12659 (create_longjmp_master_breakpoint)
12660 (create_std_terminate_master_breakpoint)
12661 (create_exception_master_breakpoint): Update.
12662 * blockframe.c (find_pc_partial_function): Update.
12663 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12664 (ada_collect_symbol_completion_matches)
12665 (ada_add_global_exceptions): Update.
12667 2019-01-17 Tom Tromey <tom@tromey.com>
12669 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12671 (solib_target_parse_libraries): Change return type.
12672 (library_list_start_segment, library_list_start_section)
12673 (library_list_end_library, library_list_start_library); Update.
12674 (solib_target_free_library_list): Remove.
12675 (solib_target_parse_libraries): Remove cleanup. Change return
12677 (solib_target_current_sos): Update.
12679 2019-01-17 Tom Tromey <tromey@bapiya>
12681 * valprint.c: Replace "the the" with "the".
12682 * symtab.c: Replace "the the" with "the".
12683 * solib.c: Replace "the the" with "the".
12684 * solib-dsbt.c: Replace "the the" with "the".
12685 * linespec.c: Replace "the the" with "the".
12686 * dwarf2loc.h: Replace "the the" with "the".
12687 * amd64-windows-tdep.c: Replace "the the" with "the".
12688 * aarch64-tdep.c: Replace "the the" with "the".
12690 2019-01-16 Keith Seitz <keiths@redhat.com>
12693 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12694 <builder>: Rename to ..
12695 <m_builder>: ... this and make private.
12696 (dwarf2_cu::get_builder): New method. Change all users of
12697 `builder' to use this method.
12698 (dwarf2_start_symtab): Move to ...
12699 (dwarf2_cu::start_symtab): ... here. Update all callers
12700 (setup_type_unit_groups): Move to ...
12701 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12703 (dwarf2_cu::reset_builder): New method.
12704 (process_full_compunit, process_full_type_unit): Use
12705 dwarf2_cu::reset_builder.
12706 (follow_die_offset): Record the ancestor CU if it is different
12707 from the followed DIE's CU.
12708 (follow_die_sig_1): Likewise.
12710 2019-01-15 Tom Tromey <tom@tromey.com>
12712 * remote.c (class remote_state) <buf>: Now a char_vector.
12713 <buf_size>: Remove.
12714 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12716 (remote_target::getpkt_or_notif_sane_1)
12717 (remote_target::getpkt_sane)
12718 (remote_target::getpkt_or_notif_sane): Likewise.
12719 (class remote_target) <putpkt>: New overload.
12720 (remote_target::read_frame): Change type of "buf_p". Remove
12721 sizeof_p parameter.
12722 (packet_ok): New overload.
12723 (packet_check_result): New overload.
12726 2019-01-14 Tom Tromey <tom@tromey.com>
12728 * remote-notif.c (handle_notification, remote_notif_ack)
12729 (remote_notif_parse): Make "buf" const.
12730 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12732 (remote_notif_parse, remote_notif_ack, handle_notification):
12734 * remote.c (remote_notif_stop_parse): Make "buf" const.
12735 (remote_target::remote_parse_stop_reply): Make "buf" const.
12736 (remote_notif_stop_ack): Make "buf" const.
12738 2019-01-14 Tom Tromey <tom@tromey.com>
12740 * remote.c (remote_console_output): Make parameter const.
12742 2019-01-14 Tom Tromey <tom@tromey.com>
12744 * target-debug.h (target_debug_print_signals): Constify.
12745 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12746 * procfs.c (procfs_target::pass_signals): Update.
12747 * linux-nat.c (linux_nat_target::pass_signals): Update.
12748 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12749 * target-delegates.c: Rebuild.
12750 * remote.c (remote_target::program_signals): Update.
12751 (remote_target::pass_signals): Update.
12752 * target.c (target_pass_signals): Constify argument.
12753 (target_program_signals): Likewise.
12754 * target.h (struct target_ops) <pass_signals, program_signals>:
12756 (target_pass_signals, target_program_signals): Constify argument.
12758 2019-01-14 Tom Tromey <tom@tromey.com>
12761 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
12763 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12765 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
12767 * rs6000-tdep.c: Include reggroups.h.
12768 (IS_V_ALIAS_PSEUDOREG): Define.
12769 (rs6000_register_name): Return names for the "vX" aliases.
12770 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
12771 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
12772 aliases. Call default_register_reggroup_p for all other
12774 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
12776 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
12777 Handle "vX" aliases.
12778 (v_alias_pseudo_register_collect): New function.
12779 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
12780 (rs6000_gdbarch_init): Initialize "vX" aliases as
12781 pseudo-registers. Restore registration of
12782 rs6000_pseudo_register_reggroup_p with
12783 set_tdesc_pseudo_register_reggroup_p.
12785 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
12787 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
12788 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
12789 set_gdbarch_num_pseudo_regs.
12791 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12793 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
12794 Remove arg prefixname, add do_set and do_show.
12795 Add member functions set_list and show_list.
12796 * cli/cli-style.c (class cli_style_option): Update accordingly.
12797 (style_set_list): Move to file scope.
12798 (style_show_list): Likewise.
12799 (set_style): Call help_list.
12800 (show_style): Call cmd_show_list.
12801 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
12802 Update to use the new macro.
12804 2019-10-12 Joel Brobecker <brobecker@adacore.com>
12806 * ada-lang.c (_initialize_ada_language): Expand the help text
12807 for the "catch exception" command.
12809 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12811 * symtab.c (matching_obj_sections): Initialize obj,
12812 declare it closer to its usage.
12814 2019-01-10 Tom Tromey <tom@tromey.com>
12816 * thread-iter.h (inf_threads_iterator): Use next_iterator.
12817 (basic_inf_threads_range): Remove.
12818 (inf_threads_range, inf_non_exited_threads_range)
12819 (safe_inf_threads_range): Use next_adapter.
12821 2019-01-10 Keith Seitz <keiths@redhat.com>
12825 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
12826 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
12828 2019-01-10 Keith Seitz <keiths@redhat.com>
12832 * dictionary.c (pending_to_vector): Remove.
12833 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12834 Remove _1 suffix, replacing functions of the same name. Update
12836 (dict_create_hashed, dict_create_hashed_expandable)
12837 (dict_create_linear, dict_create_linear_expandable, dict_free)
12838 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
12839 Make functions static.
12841 2019-01-10 Keith Seitz <keiths@redhat.com>
12845 * dictionary.h (struct dictionary): Replace declaration with
12847 (dict_create_hashed, dict_create_hashed_expandable)
12848 (dict_create_linear, dict_create_linear_expandable)
12849 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
12850 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
12851 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
12852 taking multidictionary argument.
12853 [ALL_DICT_SYMBOLS]: Update for multidictionary.
12854 * block.h (struct block) <dict>: Change to multidictionary
12855 and rename `multidict'.
12856 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
12857 symmisc.c: Update all dictionary references to multidictionary.
12859 2019-01-10 Keith Seitz <keiths@redhat.com>
12863 * dictionary.c: Include unordered_map.
12864 (pending_to_vector): New function.
12865 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
12866 Rewrite the non-"_1" functions to take vector instead
12868 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
12869 "new" _1 versions of the same name.
12870 (multidictionary): Define.
12871 (std::hash<enum language): New definition.
12872 (collate_pending_symbols_by_language, mdict_create_hashed)
12873 (mdict_create_hashed_expandable, mdict_create_linear)
12874 (mdict_create_linear_expandable, mdict_free)
12875 (find_language_dictionary, create_new_language_dictionary)
12876 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
12877 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
12878 (mdict_size, mdict_empty): New functions.
12879 * dictionary.h (mdict_iterator): Define.
12881 2019-01-10 Pedro Alves <palves@redhat.com>
12883 * breakpoint.c (read_uploaded_action)
12884 (create_tracepoint_from_upload): Adjust to use
12885 gdb::unique_xmalloc_ptr.
12886 * ctf.c (ctf_write_uploaded_tp):
12887 (SET_ARRAY_FIELD): Use emplace_back.
12888 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
12889 * tracefile-tfile.c (tfile_write_uploaded_tp):
12890 * tracepoint.c (parse_tracepoint_definition): Adjust to use
12891 gdb::unique_xmalloc_ptr.
12892 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
12893 at_string, cond_string, cmd_strings>: Replace char pointers
12894 with gdb::unique_xmalloc_ptr.
12896 2019-01-10 Pedro Alves <palves@redhat.com>
12898 * solib-target.c (library_list_start_library): Don't xstrdup name.
12900 2019-01-10 Pedro Alves <palves@redhat.com>
12902 * mdebugread.c (parse_partial_symbols): Use
12903 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
12905 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12907 * linux-fork.c (scoped_switch_fork_info)
12908 <~scoped_switch_fork_info>: Fix incorrect variable name.
12910 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
12912 * linux-fork.c (scoped_switch_fork_info)
12913 <scoped_switch_fork_info>: Make explicit.
12914 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
12916 2019-01-10 Tom Tromey <tom@tromey.com>
12918 * objfiles.h (objfile::reset_psymtabs): Update.
12919 * objfiles.c (objfile::objfile): Update.
12920 * psymtab.h (psymtab_storage::obstack): Update.
12921 (psymtab_storage::m_obstack): Use gdb::optional.
12922 (class psymtab_storage): Update comment. Remove objfile
12924 * psymtab.c (psymtab_storage::psymtab_storage): Update.
12926 2019-01-10 Tom Tromey <tom@tromey.com>
12928 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
12929 <free_psymtabs>: Now private.
12930 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
12931 (allocate_psymtab): Use new method.
12933 2019-01-10 Tom Tromey <tom@tromey.com>
12935 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
12936 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
12937 * mdebugread.c (parse_partial_symbols): Use
12938 allocate_dependencies.
12939 * dwarf2read.c (dwarf2_create_include_psymtab): Use
12940 allocate_dependencies.
12941 (process_psymtab_comp_unit_reader)
12942 (build_type_psymtab_dependencies): Likewise.
12943 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
12945 2019-01-10 Tom Tromey <tom@tromey.com>
12947 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
12948 PSYMBOL_SET_LANGUAGE.
12949 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
12951 2019-01-10 Tom Tromey <tom@tromey.com>
12953 * psymtab.h (psymtab_storage::obstack): New method.
12954 <m_obstack>: Rename from obstack; now private.
12955 * psymtab.c (psymtab_storage): Update.
12956 * dwarf2read.c (create_addrmap_from_index)
12957 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
12960 2019-01-10 Tom Tromey <tom@tromey.com>
12962 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
12963 * objfiles.h (objfile::reset_psymtabs): New method.
12965 2019-01-10 Tom Tromey <tom@tromey.com>
12967 * symmisc.c (print_symbol_bcache_statistics): Update.
12968 (print_objfile_statistics): Update.
12969 * symfile.c (reread_symbols): Update.
12970 * psymtab.h (class psymtab_storage): New.
12971 * psymtab.c (psymtab_storage): New constructor.
12972 (~psymtab_storage): New destructor.
12973 (require_partial_symbols): Update.
12974 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
12975 (find_pc_sect_psymtab, find_pc_sect_psymbol)
12976 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
12977 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
12978 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
12979 (start_psymtab_common, end_psymtab_common)
12980 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
12981 (allocate_psymtab): Update.
12982 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
12984 (dump_psymtab_addrmap, maintenance_print_psymbols)
12985 (maintenance_check_psymtabs): Update.
12986 (class objfile_psymtabs): Move to objfiles.h.
12987 * psympriv.h (discard_psymtab): Now inline.
12988 (psymtab_discarder::psymtab_discarder): Update.
12989 (psymtab_discarder::~psymtab_discarder): Update.
12990 (ALL_OBJFILE_PSYMTABS): Rewrite.
12991 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
12992 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
12994 <partial_symtabs>: New field.
12995 (class objfile_psymtabs): Move from psymtab.h. Update.
12996 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
12998 (objfile::~objfile): Don't destroy psymbol_cache.
12999 * mdebugread.c (parse_partial_symbols): Update.
13000 * dwarf2read.c (create_addrmap_from_index)
13001 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13002 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13003 (add_partial_subprogram, dwarf2_ranges_read): Update.
13004 * dwarf-index-write.c (write_address_map)
13005 (write_one_signatured_type, recursively_write_psymbols)
13006 (class debug_names, class debug_names, write_psymtabs_to_index):
13009 2019-01-10 Tom Tromey <tom@tromey.com>
13011 * symtab.h (SYMBOL_SET_NAMES): Update.
13012 (symbol_set_names): Update.
13013 (MSYMBOL_SET_NAMES): Update.
13014 * symtab.c (symbol_set_names): Change argument to be an
13015 objfile_per_bfd_storage.
13016 * psymtab.c (add_psymbol_to_bcache): Update.
13017 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13019 2019-01-10 Tom Tromey <tom@tromey.com>
13021 * symtab.c (create_demangled_names_hash): Change argument to be an
13022 objfile_per_bfd_storage.
13023 (symbol_set_names): Update.
13025 2019-01-10 Tom Tromey <tom@tromey.com>
13027 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13029 * psymtab.c (init_psymbol_list): Do nothing if already called.
13030 * psympriv.h (init_psymbol_list): Add comment.
13031 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13033 * dbxread.c (dbx_symfile_read): Unconditionally call
13036 2019-01-10 Tom Tromey <tom@tromey.com>
13038 * xcoffread.c (scan_xcoff_symtab): Update.
13039 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13041 * mdebugread.c (parse_partial_symbols)
13042 (handle_psymbol_enumerators): Update.
13043 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13044 * dbxread.c (read_dbx_symtab): Update.
13045 * psympriv.h (psymbol_placement): New enum.
13046 (add_psymbol_to_list): Update.
13048 2019-01-10 Tom Tromey <tom@tromey.com>
13050 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13051 static_psymbols parameters.
13052 (scan_xcoff_symtab): Update.
13053 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13054 static_psymbols parameters.
13055 * psympriv.h (start_psymtab_common): Update.
13056 * mdebugread.c (parse_partial_symbols): Update.
13057 * dwarf2read.c (create_partial_symtab): Update.
13058 * dbxread.c (read_dbx_symtab): Update.
13059 (start_psymtab): Remove global_psymbols and static_psymbols
13062 2019-01-10 Tom Tromey <tom@tromey.com>
13064 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13065 * psymtab.c (allocate_psymtab): Add comment.
13066 * psympriv.h (allocate_psymtab): Add comment.
13067 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13069 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13071 2019-01-10 Tom Tromey <tom@tromey.com>
13073 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13075 * mipsread.c: Include mdebugread.h.
13076 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13078 * elfread.c: Include mdebugread.h.
13080 2019-01-09 Tom Tromey <tom@tromey.com>
13082 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13083 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13084 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13085 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13086 (psym_lookup_symbol, psym_find_last_source_symtab)
13087 (psym_forget_cached_source_info, psym_print_stats)
13088 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13089 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13090 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13091 (psym_find_compunit_symtab_by_address)
13092 (maintenance_print_psymbols, maintenance_info_psymtabs)
13093 (maintenance_check_psymtabs): Use ranged for.
13094 * psymtab.h (class objfile_psymtabs): New.
13095 (require_partial_symbols): Return objfile_psymtabs.
13096 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13098 2019-01-09 Tom Tromey <tom@tromey.com>
13100 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13101 (find_pc_mapped_section, list_overlays_command)
13102 (map_overlay_command, unmap_overlay_command)
13103 (simple_overlay_update): Use all_objfiles.
13104 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13105 * printcmd.c (info_symbol_command): Use all_objfiles.
13106 * objfiles.h (ALL_OBJSECTIONS): Remove.
13107 * maint.c (maintenance_translate_address): Use all_objfiles.
13108 * gcore.c (gcore_create_callback): Use all_objfiles.
13109 (objfile_find_memory_regions): Likewise.
13111 2019-01-09 Tom Tromey <tom@tromey.com>
13113 * symtab.c (find_line_symtab, info_sources_command)
13114 (make_source_files_completion_list): Use objfile_compunits.
13115 * source.c (select_source_symtab): Use objfile_compunits.
13116 * objfiles.h (struct objfile): Update comment.
13117 (ALL_OBJFILES): Remove.
13118 (ALL_FILETABS): Remove.
13119 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13122 2019-01-09 Tom Tromey <tom@tromey.com>
13124 * symmisc.c (print_objfile_statistics, dump_objfile)
13125 (maintenance_print_symbols): Use compunit_filetabs.
13126 * source.c (forget_cached_source_info_for_objfile): Use
13128 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13129 (ALL_FILETABS): Use compunit_filetabs.
13130 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13131 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13133 2019-01-09 Tom Tromey <tom@tromey.com>
13135 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13136 (compunit_filetabs): New.
13137 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13139 (info_sources_command, make_source_files_completion_list): Remove
13141 * symmisc.c (print_objfile_statistics, dump_objfile)
13142 (maintenance_print_symbols): Remove declaration.
13143 (maintenance_info_symtabs): Use compunit_filetabs.
13144 (maintenance_info_line_tables): Likewise.
13145 * source.c (select_source_symtab): Change local variable name.
13146 (forget_cached_source_info_for_objfile): Remove declaration.
13147 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13148 * objfiles.c (objfile_relocate1): Remove declaration.
13149 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13151 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13152 * coffread.c (coff_symtab_read): Remove declaration.
13153 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13156 2019-01-09 Tom Tromey <tom@tromey.com>
13158 * symtab.c (lookup_objfile_from_block)
13159 (find_pc_sect_compunit_symtab, search_symbols)
13160 (default_collect_symbol_completion_matches_break_on): Use
13162 * objfiles.h (ALL_COMPUNITS): Remove.
13163 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13164 * cp-support.c (add_symbol_overload_list_qualified): Use
13166 * ada-lang.c (ada_collect_symbol_completion_matches)
13167 (ada_add_global_exceptions): Use objfile_compunits.
13169 2019-01-09 Tom Tromey <tom@tromey.com>
13171 * source.c (select_source_symtab)
13172 (forget_cached_source_info_for_objfile): Remove declaration.
13173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13175 * maint.c (count_symtabs_and_blocks): Remove declaration.
13176 * cp-support.c (add_symbol_overload_list_qualified): Remove
13178 * coffread.c (coff_symtab_read): Remove declaration.
13179 * symtab.c (lookup_symbol_in_objfile_symtabs)
13180 (basic_lookup_transparent_type_1): Use objfile_compunits.
13181 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13182 (info_sources_command, search_symbols)
13183 (default_collect_symbol_completion_matches_break_on)
13184 (make_source_files_completion_list): Remove declaration.
13185 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13186 (ada_collect_symbol_completion_matches)
13187 (ada_add_global_exceptions): Remove declaration.
13188 * linespec.c (iterate_over_all_matching_symtabs): Use
13190 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13191 (class objfile_compunits): New.
13192 (ALL_COMPUNITS): Use objfile_compunits.
13193 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13194 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13196 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13198 2019-01-09 Tom Tromey <tom@tromey.com>
13200 * symtab.c (search_symbols)
13201 (default_collect_symbol_completion_matches_break_on): Use
13203 * ada-lang.c (ada_lookup_simple_minsym)
13204 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13205 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13206 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13208 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13209 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13210 * objc-lang.c (find_methods): Use objfile_msymbols.
13211 (info_selectors_command, info_classes_command): Likewise.
13212 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13213 * objfiles.h (class objfile_msymbols): New.
13214 (ALL_OBJFILE_MSYMBOLS): Remove.
13215 (ALL_MSYMBOLS): Remove.
13217 2019-01-09 Tom Tromey <tom@tromey.com>
13219 * common/next-iterator.h (next_adapter): Add Iterator template
13221 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13222 (class all_objfiles_safe): New.
13223 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13224 * objfiles.c (put_objfile_before): Update comment.
13225 (add_separate_debug_objfile): Likewise.
13226 (free_all_objfiles): Use all_objfiles_safe.
13227 (objfile_purge_solibs): Likewise.
13229 2019-01-09 Tom Tromey <tom@tromey.com>
13231 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13232 (expand_symtab_containing_pc, lookup_static_symbol)
13233 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13234 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13236 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13237 * breakpoint.c (create_overlay_event_breakpoint)
13238 (create_longjmp_master_breakpoint)
13239 (create_std_terminate_master_breakpoint)
13240 (create_exception_master_breakpoint): Use all_objfiles.
13241 * linux-thread-db.c (try_thread_db_load_from_pdir)
13242 (has_libpthread): Use all_objfiles.
13243 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13244 * linespec.c (iterate_over_all_matching_symtabs)
13245 (search_minsyms_for_name): Use all_objfiles.
13246 * maint.c (maintenance_info_sections): Use all_objfiles.
13247 * main.c (captured_main_1): Use all_objfiles.
13248 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13249 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13250 * guile/scm-pretty-print.c
13251 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13252 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13253 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13254 (maintenance_print_msymbols): Use all_objfiles.
13255 * source.c (select_source_symtab): Use all_objfiles.
13256 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13257 * symfile.c (remove_symbol_file_command)
13258 (expand_symtabs_matching, map_symbol_filenames): Use
13260 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13262 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13263 * objc-lang.c (find_methods): Use all_objfiles.
13264 * objfiles.c (have_partial_symbols, have_full_symbols)
13265 (have_minimal_symbols, qsort_cmp)
13266 (default_iterate_over_objfiles_in_search_order): Use
13268 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13269 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13270 (maintenance_check_psymtabs): Use all_objfiles.
13271 (ALL_PSYMTABS): Remove.
13272 * compile/compile-object-run.c (do_module_cleanup): Use
13274 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13275 * cp-support.c (add_symbol_overload_list_qualified): Use
13277 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13279 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13280 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13282 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13283 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13284 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13286 * solib.c (solib_read_symbols): Use all_objfiles
13288 2019-01-09 Tom Tromey <tom@tromey.com>
13290 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13291 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13293 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13294 * symmisc.c (print_symbol_bcache_statistics)
13295 (print_objfile_statistics, maintenance_print_objfiles)
13296 (maintenance_info_symtabs, maintenance_check_symtabs)
13297 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13299 * source.c (forget_cached_source_info): Use all_objfiles.
13300 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13301 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13302 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13303 * objfiles.c (update_section_map): Use all_objfiles.
13304 (shared_objfile_contains_address_p): Likewise.
13305 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13306 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13308 2019-01-09 Tom Tromey <tom@tromey.com>
13310 * common/next-iterator.h: New file.
13311 * objfiles.h (class all_objfiles): New.
13312 (struct objfile_iterator): New.
13314 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13316 * NEWS: Move the description of the changed "frame", "select-frame",
13317 and "info frame" commands to the Changed commands section.
13319 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13321 * gdbtypes.c (check_stub_method_group): Remove handling of old
13323 * linespec.c (find_methods): Likewise.
13324 * stabsread.c (read_member_functions): Likewise.
13325 * valops.c (search_struct_method): Likewise.
13326 (value_struct_elt_for_reference): Likewise.
13327 * NEWS: Mention this change.
13329 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13331 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13332 print_source_lines.
13333 * source.c (print_source_lines_base): Update line number check.
13334 (print_source_lines): New function.
13335 (source_lines_range::source_lines_range): New function.
13336 * source.h (class source_lines_range): New class.
13337 (print_source_lines): New declaration.
13339 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13341 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13343 2019-01-08 Tom Tromey <tom@tromey.com>
13344 Simon Marchi <simon.marchi@ericsson.com>
13347 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13348 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13349 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13350 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13351 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13352 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13354 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13356 * source.c (select_source_symtab): Move header comment to
13357 declaration in source.h.
13358 (forget_cached_source_info_for_objfile): Likewise.
13359 (forget_cached_source_info): Likewise.
13360 (identify_source_line): Likewise.
13361 * source.h (identify_source_line): Move declaration from symtab.h
13362 and add comment from source.c
13363 (print_source_lines): Likewise.
13364 (forget_cached_source_info_for_objfile): Likewise.
13365 (forget_cached_source_info): Likewise.
13366 (select_source_symtab): Likewise.
13367 (enum print_source_lines_flag): Move definition from symtab.h.
13368 * symtab.h (identify_source_line): Move declaration to source.h.
13369 (print_source_lines): Likewise.
13370 (forget_cached_source_info_for_objfile): Likewise.
13371 (forget_cached_source_info): Likewise.
13372 (select_source_symtab): Likewise.
13373 (enum print_source_lines_flag): Move definition to source.h.
13374 * tui/tui-hooks.c: Add 'source.h' include.
13376 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13378 * source.c (print_source_lines_base): Handle requests to print
13379 reverse line number sequences, and guard against empty lines
13382 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13384 * source.c (print_source_lines_base): Fix skip of '\r' if next
13387 2019-01-06 Tom Tromey <tom@tromey.com>
13389 * c-exp.y (struct c_parse_state) <macro_original_text,
13390 expansion_obstack>: New member.
13391 (macro_original_text, expansion_obstack): Remove globals.
13392 (scan_macro_expansion, scanning_macro_expansion)
13393 (finished_macro_expansion): Update.
13394 (scan_macro_cleanup): Remove.
13395 (yylex, c_parse): Update.
13397 2019-01-06 Tom Tromey <tom@tromey.com>
13399 * c-exp.y (struct c_parse_state) <strings>: New member.
13400 (operator_stoken): Update.
13402 2019-01-06 Tom Tromey <tom@tromey.com>
13404 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13405 (union type_stack_elt) <typelist_val>: Now a pointer to
13407 (type_stack_cleanup): Don't declare.
13408 (push_typelist): Update.
13409 * parse.c (pop_typelist): Return a std::vector.
13410 (push_typelist): Take a std::vector.
13411 (follow_types): Update. Do not free args.
13412 (type_stack_cleanup): Remove.
13413 * c-exp.y (struct c_parse_state): New.
13414 (cpstate): New global.
13415 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13416 (nonempty_typelist): Update.
13417 (func_mod): Create a new vector.
13418 (c_parse): Create a c_parse_state.
13419 (check_parameter_typelist): Do not delete params.
13420 (function_method): Update. Do not delete type_list.
13422 2019-01-06 Tom Tromey <tom@tromey.com>
13425 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13427 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13428 (print_return_value): Likewise.
13430 2019-01-05 Tom Tromey <tom@tromey.com>
13432 * contrib/cleanup_check.py: Remove.
13433 * contrib/gcc-with-excheck: Remove.
13434 * contrib/exsummary.py: Remove.
13435 * contrib/excheck.py: Remove.
13437 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13439 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13440 NULL. Initialize tpprev to NULL instead of assigning it
13441 to NULL on the next statement.
13442 * windows-nat.c (windows_delete_thread): Remove check for
13443 main_thread_id before printing thread exit notifications.
13444 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13445 Remove thread ID check against main_thread_id.
13446 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13447 windows_delete_thread.
13448 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13450 2019-01-04 Tom Tromey <tom@tromey.com>
13452 * compile/compile.c (_initialize_compile): Use upper case for
13453 metasyntactic variables.
13454 * symmisc.c (_initialize_symmisc): Use upper case for
13455 metasyntactic variables.
13456 * psymtab.c (_initialize_psymtab): Use upper case for
13457 metasyntactic variables.
13458 * demangle.c (demangle_command): Use upper case for metasyntactic
13460 (_initialize_demangler): Likewise.
13461 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13464 2019-01-03 Tom Tromey <tom@tromey.com>
13466 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13468 2019-01-03 Tom Tromey <tom@tromey.com>
13470 * python/py-symtab.c (salpy_str): Update.
13471 (struct salpy_sal_object) <symtab>: Now a PyObject.
13472 (salpy_dealloc): Update.
13473 (del_objfile_sal): Use gdbpy_ref.
13475 2019-01-03 Tom Tromey <tom@tromey.com>
13477 * python/py-type.c (convert_field): Use new_reference. Return
13479 (make_fielditem): Return gdbpy_ref.
13480 (typy_fields): Update.
13481 (typy_getitem): Update.
13482 (field_name): Return gdbpy_ref. Use new_reference.
13483 (typy_iterator_iternext): Update.
13485 2019-01-03 Tom Tromey <tom@tromey.com>
13487 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13489 2019-01-03 Tom Tromey <tom@tromey.com>
13491 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13492 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13493 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13494 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13495 (pspy_set_type_printers): Likewise.
13496 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13497 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13498 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13499 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13500 (objfpy_set_type_printers): Likewise.
13502 2019-01-03 Tom Tromey <tom@tromey.com>
13504 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13505 (gdbpy_print_stack): Use gdbpy_err_fetch.
13506 * python/python-internal.h (class gdbpy_err_fetch): New class.
13507 (class gdbpy_enter) <m_error_type, m_error_value,
13508 m_error_traceback>: Remove.
13509 <m_error>: New member.
13510 (gdbpy_exception_to_string): Don't declare.
13511 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13512 * python/py-value.c (convert_value_from_python): Use
13514 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13515 gdbpy_exception_to_string.
13516 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13517 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13520 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13522 * linux-nat.c (delete_lwp_cleanup): Delete.
13523 (struct lwp_deleter): New struct.
13524 (lwp_info_up): New typedef.
13525 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13528 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13530 * linux-fork.c (class scoped_switch_fork_info): New class.
13531 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13533 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13535 * valops.c (find_overload_match): Remove use of null_cleanup, and
13536 calls to do_cleanups.
13538 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13540 * compile/compile-cplus-types.c
13541 (compile_cplus_instance::decl_name): Handle changes to
13543 * cp-support.c (cp_func_name): Update header comment, update
13545 * cp-support.h (cp_func_name): Update return type in declaration.
13546 * valops.c (find_overload_match): Move temp_func local to top
13547 level of function and change its type. Use temp_func to hold and
13548 delete temporary string obtained from cp_func_name.
13550 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13552 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13553 gdb::char_vector, remove cleanup, and update uses of `msg`.
13555 2019-01-03 Jim Wilson <jimw@sifive.com>
13557 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13559 2019-01-02 Tom Tromey <tom@tromey.com>
13561 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13562 (tdesc_parse_xml): Remove cleanups.
13563 * target-descriptions.h (make_cleanup_free_target_description):
13565 (target_desc_deleter): New struct.
13566 (target_desc_up): New typedef.
13567 * target-descriptions.c (target_desc_deleter::operator()): Rename
13568 from free_target_description.
13569 (make_cleanup_free_target_description): Remove.
13571 2019-01-02 Tom Tromey <tom@tromey.com>
13573 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13574 constructor, destructor.
13575 (linespec_parser): Remove typedef.
13576 (~linespec_parser): Rename from linespec_parser_delete.
13577 (linespec_lex_to_end, linespec_complete_label)
13578 (linespec_complete): Update.
13579 (decode_line_full): Remove cleanups.
13580 (decode_line_1): Update.
13582 2019-01-02 Tom Tromey <tom@tromey.com>
13584 * python/python-internal.h (inferior_to_inferior_object): Change
13586 * python/py-exitedevent.c (create_exited_event_object): Update.
13587 * python/py-inferior.c (inferior_to_inferior_object): Return
13589 (python_new_inferior, python_inferior_deleted)
13590 (thread_to_thread_object, delete_thread_object)
13591 (build_inferior_list, gdbpy_selected_inferior): Update.
13592 * python/py-infthread.c (create_thread_object): Update. Also fail
13593 if inferior_to_inferior_object fails.
13595 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13597 * inferior.h (class inferior) <displaced_step_state>: New field.
13598 * infrun.h (struct displaced_step_state): Move here from
13599 infrun.c. Initialize fields, add constructor.
13600 <inf>: Remove field.
13601 <reset>: New method.
13602 * infrun.c (struct displaced_step_inferior_state): Move to
13604 (displaced_step_inferior_states): Remove.
13605 (get_displaced_stepping_state): Adust.
13606 (displaced_step_in_progress_any_inferior): Adjust.
13607 (displaced_step_in_progress_thread): Adjust.
13608 (displaced_step_in_progress): Adjust.
13609 (add_displaced_stepping_state): Remove.
13610 (get_displaced_step_closure_by_addr): Adjust.
13611 (remove_displaced_stepping_state): Remove.
13612 (infrun_inferior_exit): Call displaced_step_state.reset.
13613 (use_displaced_stepping): Don't check for NULL.
13614 (displaced_step_prepare_throw): Call
13615 get_displaced_stepping_state.
13616 (displaced_step_fixup): Don't check for NULL.
13617 (prepare_for_detach): Don't check for NULL.
13619 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13621 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13622 in case of call that did not complete.
13624 2019-01-02 Andrey Utkin <autkin@undo.io>
13626 * symfile.c (find_separate_debug_file): Fix search of debug files for
13629 2019-01-02 Tom Tromey <tom@tromey.com>
13631 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13633 * python/py-frame.c (frapy_older): Remove cast.
13634 (frapy_newer): Likewise.
13635 * python/py-breakpoint.c (local_setattro): Remove cast.
13636 * python/py-arch.c (archpy_name): Remove local variable.
13637 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13639 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13641 * unittests/basic_string_view/element_access/char/empty.cc:
13642 Fix year range in copyright header.
13644 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13646 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13648 <operator==>: Update with for removed field.
13650 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13651 <isa_features>: ...this.
13652 <abi_features>: New field.
13653 (riscv_isa_flen): Update comment.
13654 (riscv_abi_xlen): New declaration.
13655 (riscv_abi_flen): New declaration.
13656 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13658 (riscv_abi_xlen): New function.
13659 (riscv_isa_flen): Update to get answer from isa_features.
13660 (riscv_abi_flen): New function.
13661 (riscv_has_fp_abi): Update to get answer from abi_features.
13662 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13664 (riscv_call_info) <xlen, flen>: Update comment.
13665 (riscv_call_arg_struct): Remove invalid assertions
13666 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13668 (riscv_gdbarch_init): Gather isa features and abi features
13669 separately, ensure both match on the gdbarch when reusing an old
13670 gdbarch. Relax an error check to allow 32-bit abi float to run on
13671 a target with 64-bit float hardware.
13673 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13675 * source.c (search_command_helper): Stop reverse search
13676 when line 1 has been searched.
13678 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13680 * record-full.c (record_full_base_target::close): Rewrite
13681 record_full_core_buf_list free logic.
13683 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13685 * break-catch-syscall.c (print_one_catch_syscall): xfree
13688 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13690 * top.c (print_gdb_version): Update Copyright year in version
13693 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13695 Update copyright year range in all GDB files.
13697 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13699 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13701 For older changes see ChangeLog-2018.
13707 version-control: never