1 2019-10-16 Jim Wilson <jimw@sifive.com>
3 * riscv-tdep.c (riscv_gcc_target_options): New.
4 (riscv_gnu_triplet_regexp): New.
5 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
6 set_gdbarch_gnu_triplet_regexp.
8 2019-10-16 Christian Biesinger <cbiesinger@google.com>
10 * Makefile.in: Add xml-builtin.h.
11 * features/feature_to_c.sh: Add an include for xml-builtin.h
12 to ensure that the compiler checks that the types match.
13 * xml-builtin.h: New file.
14 * xml-support.c (fetch_xml_builtin): Add missing const.
15 * xml-support.h: Remove declaration of xml_builtins.
17 2019-10-16 Tom de Vries <tdevries@suse.de>
20 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
21 (amd64_classify_aggregate): ... here.
22 (amd64_classify_aggregate_field): Handled fiels of nested structs
25 2019-10-16 Tom de Vries <tdevries@suse.de>
28 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
29 that handles 'theclass'.
31 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
33 * linespec.c (decode_digits_ordinary): Update comment.
34 * make-target-delegates: No longer need to handle VEC case.
35 * memrange.c (normalize_mem_ranges): Update comment.
36 * namespace.c (add_using_directive): Update comment.
37 * objc-lang.c (uniquify_strings): Update comment.
38 * ppc-linux-nat.c (struct thread_points): Update comment.
39 * probe.h (find_probes_in_objfile): Update comment.
40 * target.h (enum flash_preserve_mode): Update comment.
41 * varobj.c (varobj_restrict_range): Update comment.
42 * varobj.h (varobj_list_children): Update comment.
44 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
46 * Makefile.in: Remove references to vec.h and vec.c.
47 * aarch64-tdep.c: No longer include vec.h.
48 * ada-lang.c: Likewise.
49 * ada-lang.h: Likewise.
50 * arm-tdep.c: Likewise.
52 * breakpoint.h: Likewise.
53 * charset.c: Likewise.
54 * cp-support.h: Likewise.
55 * dtrace-probe.c: Likewise.
56 * dwarf2read.c: Likewise.
57 * extension.h: Likewise.
58 * gdb_bfd.c: Likewise.
59 * gdbsupport/gdb_vecs.h: Likewise.
60 * gdbsupport/vec.c: Remove.
61 * gdbsupport/vec.h: Remove.
62 * gdbthread.h: Likewise.
63 * guile/scm-type.c: Likewise.
64 * inline-frame.c: Likewise.
65 * machoread.c: Likewise.
66 * memattr.c: Likewise.
67 * memrange.h: Likewise.
68 * namespace.h: Likewise.
69 * nat/linux-btrace.h: Likewise.
71 * parser-defs.h: Likewise.
72 * progspace.h: Likewise.
73 * python/py-type.c: Likewise.
74 * record-btrace.c: Likewise.
75 * rust-exp.y: Likewise.
76 * solib-target.c: Likewise.
77 * stap-probe.c: Likewise.
78 * target-descriptions.c: Likewise.
79 * target-memory.c: Likewise.
83 * xml-support.h: Likewise.
85 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
87 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
88 Update for new std::vector based implementation.
89 (process_psymtab_comp_unit_reader): Likewise.
90 (scan_partial_symbols): Likewise.
91 (recursively_compute_inclusions): Likewise.
92 (compute_compunit_symtab_includes): Likewise.
93 (process_imported_unit_die): Likewise.
94 (queue_and_load_dwo_tu): Likewise.
95 (follow_die_sig_1): Likewise.
96 * gdb/dwarf2read.h: Remove DEF_VEC_P.
97 (typedef dwarf2_per_cu_ptr): Remove.
98 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
100 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
101 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
102 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
103 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
106 2019-10-15 Tom Tromey <tromey@adacore.com>
108 * windows-nat.c (windows_nat_target::resume): Use %x when logging
111 2019-10-15 Tom Tromey <tromey@adacore.com>
113 * windows-nat.c (windows_nat_target::fetch_registers)
114 (windows_nat_target::store_registers): Rename "pid" to "tid".
116 2019-10-15 Tom Tromey <tromey@adacore.com>
118 * gdbarch.h, gdbarch.c: Rebuild.
119 * gdbarch.sh (gcc_target_options): Change return type to
121 * compile/compile.c (get_args): Update.
122 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
123 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
125 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
127 * arch-utils.c (default_gcc_target_options): Return std::string.
128 * arch-utils.h (default_gcc_target_options): Return std::string.
129 * s390-tdep.c (s390_gcc_target_options): Return std::string.
131 2019-10-15 Christian Biesinger <cbiesinger@google.com>
133 * breakpoint.c (breakpoint_chain): Make static.
134 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
135 of accessing breakpoint_chain.
137 2019-10-15 Christian Biesinger <cbiesinger@google.com>
139 * breakpoint.c (iterate_over_breakpoints): Change function pointer
140 to a gdb::function_view and return value to bool.
141 * breakpoint.h (iterate_over_breakpoints): Likewise.
142 * dummy-frame.c (pop_dummy_frame_bpt): Update.
143 (pop_dummy_frame): Update.
144 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
145 (gdbscm_breakpoints): Update.
146 * python/py-breakpoint.c (build_bp_list): Update.
147 (gdbpy_breakpoints): Update.
148 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
150 (bpfinishpy_handle_stop): Update.
151 (bpfinishpy_handle_exit): Update.
152 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
153 (svr4_update_solib_event_breakpoints): Update.
155 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
157 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
158 when unwrapping single-field structs.
160 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
162 * dwarf2read.c: Remove includes.
164 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
166 * ui-out.c (ui_out::call_do_message): Silence
167 -Wformat-nonliteral warning.
169 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
171 * breakpoint.c: Remove some includes: continuations.h, skip.h,
172 mi/mi-main.h, readline/readline.h, readline/history.h. Add
173 include: readline/tilde.h.
175 2019-10-12 Christian Biesinger <cbiesinger@google.com>
177 * remote.c (remote_target::get_trace_status): Remove declaration of
180 2019-10-12 Christian Biesinger <cbiesinger@google.com>
182 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
183 (show_user): Remove declaration of cmdlist.
184 * cli/cli-cmds.h (max_user_call_depth): Declare.
185 * cli/cli-script.c (execute_user_command): Remove declaration
186 of max_user_call_depth.
188 2019-10-11 Jim Wilson <jimw@sifive.com>
190 * gdbsupport/print-utils.h (pulongest): Fix comment.
191 (plongest): Likewise.
192 (phex): Add missing comment, mention leading zeros.
193 (phex_nz): Add mention of no leading zeros to comment.
195 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
196 plongest instead of unsigned long long cast.
198 2019-10-10 Christian Biesinger <cbiesinger@google.com>
200 * main.c (captured_main_1): Include gdbtk.h and remove declarations
201 for external_editor_command and gdbtk_test.
203 2019-10-10 Christian Biesinger <cbiesinger@google.com>
205 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
206 * varobj.c (varobjdebug): Move comment to...
207 * varobj.h (varobjdebug): ...here, and declare.
209 2019-10-09 Tom Tromey <tom@tromey.com>
211 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
214 2019-10-09 Tom Tromey <tom@tromey.com>
216 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
217 * tui/tui-stack.c (tui_locator_window::rerender): Update.
218 * tui/tui-command.c (tui_cmd_window::resize)
219 (tui_refresh_cmd_win): Update.
220 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
221 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
222 * tui/tui-data.c (~tui_gen_win_info): Remove.
223 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
224 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
225 (tui_redisplay_readline, tui_mld_flush)
226 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
227 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
228 (tui_data_window::erase_data_content)
229 (tui_data_item_window::rerender)
230 (tui_data_item_window::refresh_window): Update.
231 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
232 (box_win, tui_gen_win_info::make_window)
233 (tui_gen_win_info::make_visible): Update.
234 (tui_delete_win): Remove.
235 * tui/tui-winsource.c
236 (tui_source_window_base::do_erase_source_content): Update.
237 (tui_show_source_line, tui_source_window_base::update_tab_width)
238 (tui_source_window_base::update_exec_info): Update.
239 * tui/tui-data.h (struct curses_deleter): New.
240 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
241 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
243 2019-10-09 Tom Tromey <tom@tromey.com>
245 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
247 2019-10-09 Tom Tromey <tom@tromey.com>
249 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
250 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
252 2019-10-09 Tom Tromey <tom@tromey.com>
254 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
255 window height directly.
256 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
258 * tui/tui-layout.c (tui_default_win_height): Remove.
259 (tui_default_win_viewport_height): Remove.
261 2019-10-09 Tom Tromey <tom@tromey.com>
263 * tui/tui.h: Remove comments.
265 2019-10-09 Tom de Vries <tdevries@suse.de>
267 * python/lib/gdb/printer/bound_registers.py: Use
268 '^builtin_type_bound128' as regexp argument for
269 add_builtin_pretty_printer.
271 2019-10-09 Christian Biesinger <cbiesinger@google.com>
273 * guile/guile.c (guile_extension_script_ops): Remove forward
274 declaration and mark as static.
275 (guile_script_ops): Likewise.
276 (extension_language_guile): Move further down in the file so
277 it can reference the definitions for guile_{extension_,}script_ops.
279 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
281 * s390-tdep.c (390_process_record): Handle new arch13 instructions
282 except SORTL, DFLTCC, and KDSA.
284 2019-10-08 Tom Tromey <tromey@adacore.com>
286 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
287 (struct safe_symbol_file_add_args): Remove.
289 2019-10-08 Tom Tromey <tromey@adacore.com>
291 * windows-nat.c: Don't include buildsym-legacy.h.
293 2019-10-08 Tom Tromey <tromey@adacore.com>
295 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
297 2019-10-08 Christian Biesinger <cbiesinger@google.com>
299 * gdbtypes.c (overload_debug): Move comment to header.
300 * gdbtypes.h (overload_debug): Declare.
301 * valops.c: Remove declaration of overload_debug, instead
304 2019-10-08 Christian Biesinger <cbiesinger@google.com>
306 * language.c (show_language_command): Pass lang_frame_mismatch_warn
308 (lang_frame_mismatch_warn): Make const, mark with N_(), and
310 * language.h (lang_frame_mismatch_warn): ... here. Also add
312 * top.c (lang_frame_mismatch_warn): Remove declaration.
313 (check_frame_language_change): Pass lang_frame_mismatch_warn
316 2019-10-07 Christian Biesinger <cbiesinger@google.com>
318 * c-lang.h (vtbl_ptr_name): Declare.
319 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
321 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
323 2019-10-07 Christian Biesinger <cbiesinger@google.com>
325 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
328 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
330 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
331 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
332 * ctfread.c: New file.
333 * ctfread.h: New file.
334 * elfread.c: Include ctfread.h.
335 (struct elfinfo text_p): New member ctfsect.
336 (elf_locate_sections): Mark CTF section.
337 (elf_symfile_read): Call elfctf_build_psymtabs.
338 * Makefile.in (LIBCTF): Add.
341 (DIST): Add ctfread.c.
343 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
345 * ctfread.c (struct nextfield): Renamed to ...
346 (struct ctf_nextfield): ... this.
347 (struct field_info): Renamed to ...
348 (strut ctf_field_info): ... this.
349 (attach_fields_to_type): Update for renamed structures.
350 (ctf_add_member_cb): Likewise.
351 (ctf_add_enum_member_cb): Likewise.
352 (process_struct_members): Likewise.
353 (process_enum_type): Likewise.
355 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
357 * tracectf.h: Rename, was ctf.h.
358 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
359 * tracefile.c: Likewise.
360 * tracepoint.c: Remove unused include ctf.h.
361 * mi/mi-main.c: Likewise.
362 * Makefile.in Replace ctf.c with tracectf.c.
364 2019-10-06 Joel Brobecker <brobecker@adacore.com>
366 * version.in: Change version number to "9.0.50.DATE-git".
368 2019-10-03 Tom Tromey <tom@tromey.com>
371 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
373 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
375 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
377 * NEWS: Add entry about nested function support.
379 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
380 Andrew Burgess <andrew.burgess@embecosm.com>
382 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
383 for nested static variables when searchin VAR_DOMAIN.
384 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
385 global scope, update comment.
386 (add_partial_subprogram): Call add_partial_subprogram recursively
387 for nested subroutines when processinng Fortran.
388 (load_partial_dies): Process the child entities of a subprogram
389 when processing Fortran.
390 (partial_die_parent_scope): Handle building scope
391 for Fortran nested functions.
392 (process_die): Record that nested functions have a scope.
393 (new_symbol): Always record Fortran subprograms on the global
395 (determine_prefix): How to build the prefix for Fortran
398 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
400 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
401 have just sent the thread a SIGSTOP and are waiting for it to
404 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
406 * btrace.c (btrace_add_pc): Remove whitespace before the template
407 parameter in 'std::vector <...>'.
408 (parse_xml_btrace_block): Likewise.
409 (btrace_maint_decode_pt): Likewise.
410 (btrace_maint_update_packets): Likewise.
411 (btrace_maint_print_packets): Likewise.
412 * btrace.h (struct btrace_maint_info): Likewise.
413 * dwarf2read.c (struct type_unit_group): Likewise.
414 (build_type_psymtabs_reader): Likewise.
415 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
416 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
417 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
419 2019-10-03 Tom de Vries <tdevries@suse.de>
421 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
422 the first line of the help text for set/show style metadata.
424 2019-10-02 Tom Tromey <tromey@adacore.com>
426 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
427 * gdbsupport/common-inferior.c: New file.
428 * infcmd.c (startup_with_shell): Don't define.
429 * nat/fork-inferior.h (startup_with_shell): Don't declare.
430 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
431 * inferior.h (startup_with_shell): Don't declare.
433 2019-10-02 Christian Biesinger <cbiesinger@google.com>
435 * gdbsupport/gdb_assert.h: Include errors.h.
436 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
438 2019-10-02 Tom Tromey <tromey@adacore.com>
440 * NEWS: Add $_ada_exception entry.
441 * ada-lang.c (struct ada_catchpoint): Add constructor.
442 <m_kind>: New member.
443 (allocate_location_exception, re_set_exception): Remove
445 (should_stop_exception): Compute $_ada_exception.
446 (check_status_exception, print_it_exception)
447 (print_one_exception, print_mention_exception): Remove
449 (allocate_location_catch_exception, re_set_catch_exception)
450 (check_status_exception, print_it_catch_exception)
451 (print_one_catch_exception, print_mention_catch_exception)
452 (print_recreate_catch_exception)
453 (allocate_location_catch_exception_unhandled)
454 (re_set_catch_exception_unhandled)
455 (check_status_exception, print_it_catch_exception_unhandled)
456 (print_one_catch_exception_unhandled)
457 (print_mention_catch_exception_unhandled)
458 (print_recreate_catch_exception_unhandled)
459 (allocate_location_catch_assert, re_set_catch_assert)
460 (check_status_assert, print_it_catch_assert)
461 (print_one_catch_assert, print_mention_catch_assert)
462 (print_recreate_catch_assert)
463 (allocate_location_catch_handlers, re_set_catch_handlers)
464 (check_status_handlers, print_it_catch_handlers)
465 (print_one_catch_handlers, print_mention_catch_handlers)
466 (print_recreate_catch_handlers): Remove.
467 (create_ada_exception_catchpoint): Update.
468 (initialize_ada_catchpoint_ops): Update.
470 2019-10-02 Tom Tromey <tromey@adacore.com>
472 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
473 (create_excep_cond_exprs): Simplify exception string computation.
474 (ada_exception_catchpoint_cond_string): Likewise.
476 2019-10-02 Tom Tromey <tromey@adacore.com>
478 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
479 * ada-lang.c (lesseq_defined_than): Handle
481 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
483 (dwarf2_has_info): Likewise.
484 (new_symbol): Set maybe_copied on symbol when
486 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
488 <can_copy>: New member.
489 * elfread.c (record_minimal_symbol): Set maybe_copied
490 on symbol when appropriate.
491 (elf_symfile_read): Update call to dwarf2_has_info.
492 * minsyms.c (lookup_minimal_symbol_linkage): New
494 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
495 * symtab.c (get_symbol_address, get_msymbol_address):
497 * symtab.h (get_symbol_address, get_msymbol_address):
499 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
501 (struct symbol, struct minimal_symbol) <maybe_copied>:
504 2019-10-02 Tom Tromey <tromey@adacore.com>
506 * source.c (struct current_source_location): New.
507 (current_source_key): New global.
508 (current_source_symtab, current_source_line)
509 (current_source_pspace): Remove.
510 (get_source_location): New function.
511 (get_current_source_symtab_and_line)
512 (set_default_source_symtab_and_line)
513 (set_current_source_symtab_and_line)
514 (clear_current_source_symtab_and_line, select_source_symtab)
515 (info_source_command, print_source_lines_base)
516 (info_line_command, search_command_helper, _initialize_source):
519 2019-10-02 Tom Tromey <tromey@adacore.com>
521 * source.c (select_source_symtab): Don't call
522 decode_line_with_current_source.
524 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
526 * symtab.c (lookup_global_symbol): Search global block.
528 2019-10-02 Tom Tromey <tromey@adacore.com>
530 * coffread.c (process_coff_symbol): Update.
531 * dwarf2read.c (var_decode_location, new_symbol): Update.
532 * mdebugread.c (parse_symbol): Update.
533 * objfiles.c (relocate_one_symbol): Update.
534 * stabsread.c (define_symbol, fix_common_block)
535 (scan_file_globals): Update.
536 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
537 (SET_SYMBOL_VALUE_ADDRESS): New macro.
538 * xcoffread.c (process_xcoff_symbol): Update.
540 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
542 * MAINTAINERS: Update my email address.
544 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
546 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
548 (build_type_psymtabs_reader): Update for std::vector.
549 (build_type_psymtab_dependencies): Likewise.
550 * dwarf2read.h: Remove use of DEF_VEC_P.
551 (typedef sig_type_ptr): Delete.
553 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
555 * btrace.c (btrace_maint_clear): Update to handle change from VEC
557 (btrace_maint_decode_pt): Likewise, and move allocation of the
558 vector outside of the loop.
559 (btrace_maint_update_packets): Update to handle change from VEC to
561 (btrace_maint_print_packets): Likewise.
562 (maint_info_btrace_cmd): Likewise.
563 * btrace.h: Remove use of DEF_VEC_O.
564 (typedef btrace_pt_packet_s): Delete.
565 (struct btrace_maint_info) <packets>: Change fromm VEC to
567 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
569 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
571 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
572 make accesses into the vector constant references.
573 (btrace_add_pc): Update for std::vector.
574 (btrace_stitch_bts): Likewise.
575 (parse_xml_btrace_block): Likewise.
576 (btrace_maint_update_packets): Likewise.
577 (btrace_maint_print_packets): Likewise.
578 (maint_info_btrace_cmd): Likewise.
579 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
581 (btrace_data::empty): Likewise.
582 (btrace_data_append): Likewise.
583 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
584 (typedef btrace_block_s): Delete.
585 (struct btrace_block): Add constructor.
586 (struct btrace_data_bts) <blocks>: Change to std::vector.
587 * nat/linux-btrace.c (perf_event_read_bts): Update for
589 (linux_read_bts): Likewise.
591 2019-10-01 Tom Tromey <tom@tromey.com>
593 * cli/cli-logging.c (show_logging_filename): Use styled_string.
595 2019-10-01 Tom Tromey <tom@tromey.com>
597 * stack.c (print_frame, info_frame_command_core): Use
599 * linux-thread-db.c (try_thread_db_load_1)
600 (try_thread_db_load_from_pdir_1): Use styled_string.
601 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
602 (auto_load_section_scripts, info_auto_load_local_gdbinit)
603 (maybe_print_unsupported_script_warning)
604 (maybe_print_script_not_found_warning): Use styled_string.
605 * ada-lang.c (user_select_syms): Use styled_string.
607 2019-10-01 Tom Tromey <tom@tromey.com>
609 * p-lang.c (pascal_printstr): Use metadata style.
610 * value.c (show_convenience): Use metadata style.
611 * valprint.c (valprint_check_validity, val_print_optimized_out)
612 (val_print_not_saved, val_print_unavailable)
613 (val_print_invalid_address, generic_val_print, val_print)
614 (value_check_printable, val_print_array_elements): Use metadata
616 * ui-out.h (class ui_out) <field_fmt>: New overload.
617 <do_field_fmt>: Add style parameter.
618 * ui-out.c (ui_out::field_fmt): New overload.
619 * typeprint.c (type_print_unknown_return_type)
620 (val_print_not_allocated, val_print_not_associated): Use metadata
622 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
624 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
625 * tracepoint.c (tvariables_info_1): Use metadata style.
626 * stack.c (print_frame_arg, print_frame_info, print_frame)
627 (info_frame_command_core): Use metadata style.
628 * skip.c (info_skip_command): Use metadata style.
629 * rust-lang.c (rust_print_enum): Use metadata style.
630 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
632 * python/py-framefilter.c (py_print_single_arg): Use metadata
634 * printcmd.c (do_one_display, print_variable_and_value): Use
636 * p-valprint.c (pascal_val_print)
637 (pascal_object_print_value_fields): Use metadata style.
638 * p-typeprint.c (pascal_type_print_base): Use metadata style.
639 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
641 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
642 * m2-valprint.c (m2_print_long_set): Use metadata style.
643 * m2-typeprint.c (m2_print_type): Use metadata style.
644 * infcmd.c (print_return_value_1): Use metadata style.
645 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
646 * f-valprint.c (info_common_command_for_block): Use metadata
648 * f-typeprint.c (f_type_print_base): Use metadata style.
649 * expprint.c (print_subexp_standard): Use metadata style.
650 * cp-valprint.c (cp_print_value_fields): Use metadata style.
651 * cli/cli-style.h (class cli_style_option): Add constructor.
652 (metadata_style): Declare.
653 * cli/cli-style.c (metadata_style): New global.
654 (_initialize_cli_style): Register metadata style.
655 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
657 * cli-out.c (cli_ui_out::do_field_fmt): Update.
658 * c-typeprint.c (c_type_print_base_struct_union)
659 (c_type_print_base_1): Use metadata style.
660 * breakpoint.c (watchpoint_value_print)
661 (print_one_breakpoint_location): Use metadata style.
662 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
664 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
666 * ada-valprint.c (val_print_packed_array_elements, printstr)
667 (print_field_values, ada_val_print_ref, ada_val_print): Use
669 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
671 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
673 * ada-lang.c (user_select_syms): Use metadata style.
675 2019-10-01 Tom Tromey <tom@tromey.com>
677 * cli/cli-cmds.c (pwd_command): Style output.
679 2019-10-01 Pedro Alves <palves@redhat.com>
680 Tom Tromey <tom@tromey.com>
682 * symtab.c (print_symbol_info): Use %ps.
683 (print_msymbol_info): Use %ps.
684 * symfile.c (symbol_file_add_with_addrs): Use %ps.
685 * printcmd.c (print_variable_and_value): Use %ps.
686 * macrocmd.c (show_pp_source_pos): Use %ps.
687 * infrun.c (print_exited_reason): Use ui_out::message.
688 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
689 (describe_other_breakpoints): Use ui_out::message and new
691 (say_where): Use new formats.
692 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
695 2019-10-01 Pedro Alves <palves@redhat.com>
696 Tom Tromey <tom@tromey.com>
698 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
699 (test_gdb_formats): New function.
700 (run_tests): Call it.
701 (test_format_specifier): Update.
702 * utils.h (fputs_filtered): Update comment.
703 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
704 (fputs_styled_unfiltered): Declare.
705 * utils.c (fputs_styled_unfiltered): New function.
706 (vfprintf_maybe_filtered): Add gdbfmt parameter.
707 (vfprintf_filtered): Update.
708 (vfprintf_unfiltered, vprintf_filtered): Update.
709 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
710 * ui-out.h (enum ui_out_flag) <unfiltered_output,
711 disallow_ui_out_field>: New constants.
712 (enum class field_kind): New.
713 (struct base_field_s, struct signed_field_s): New.
714 (signed_field): New function.
715 (struct string_field_s): New.
716 (string_field): New function.
717 (struct styled_string_s): New.
718 (styled_string): New function.
719 (class ui_out) <message>: Add comment.
720 <vmessage, call_do_message>: New methods.
721 <do_message>: Add style parameter.
722 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
724 (ui_out::message): Rewrite.
725 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
727 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
728 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
729 gdb_extensions parameter.
730 (class format_piece): Add parameter to constructor.
731 (n_int_args): New field.
732 * gdbsupport/format.c (format_pieces::format_pieces): Add
733 gdb_extensions parameter. Handle '*'.
734 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
735 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
736 vfprintf_styled_no_gdbfmt.
737 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
738 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
740 * ui-style.h (struct ui_file_style) <ptr>: New method.
742 2019-10-01 Tom Tromey <tom@tromey.com>
744 * unittests/format_pieces-selftests.c: Update. Add final format.
745 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
746 empty literal pieces.
748 2019-10-01 Tom Tromey <tom@tromey.com>
750 * ui-out.h (enum class ui_out_style_kind): Remove.
751 (class ui_out) <field_string, field_stsream, do_field_string>:
752 Change type of "style".
753 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
754 (ui_out::field_string): Update.
755 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
757 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
758 * tracepoint.c (print_one_static_tracepoint_marker): Update.
759 * stack.c (print_frame_arg, print_frame_info, print_frame):
761 * source.c (print_source_lines_base): Update.
762 * solib.c (info_sharedlibrary_command): Update.
763 * skip.c (info_skip_command): Update.
764 * record-btrace.c (btrace_call_history_src_line)
765 (btrace_call_history): Update.
766 * python/py-framefilter.c (py_print_frame): Update.
767 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
769 * mi/mi-out.c (mi_ui_out::do_table_header)
770 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
771 (mi_ui_out::do_field_string): Update.
772 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
774 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
776 * cli-out.c (cli_ui_out::do_table_header)
777 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
778 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
779 (cli_ui_out::do_field_fmt): Update.
780 * breakpoint.c (print_breakpoint_location): Update.
781 (update_static_tracepoint): Update.
783 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
785 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
786 conversion of gdb_datadir.
787 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
788 remove not needed c_str ().
790 2019-09-30 Ali Tamur <tamur@google.com>
792 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
793 (dwarf2_string_attr): Likewise.
795 2019-09-30 Ali Tamur <tamur@google.com>
797 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
798 (process_full_type_unit): Likewise.
799 (dump_die_shallow): Likewise.
800 (cu_debug_loc_section): Likewise.
802 2019-09-28 Christian Biesinger <cbiesinger@google.com>
804 * minsyms.c (compare_minimal_symbols): Rename to...
805 (minimal_symbol_is_less_than): ...this, and adjust to STL
806 conventions (return bool, take arguments as references)
807 (minimal_symbol_reader::install): Call std::sort instead
810 2019-09-29 Christian Biesinger <cbiesinger@google.com>
812 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
814 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
815 msymbol_hash, msymbol_demangled_hash>: Improve comments.
817 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
819 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
820 * psympriv.h (add_psymbol_to_list): Move comment here and update
823 2019-09-29 Tom de Vries <tdevries@suse.de>
825 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
826 Use $tmpdir/$(basename "$output_file").dwz instead of
827 "${output_file}.dwz".
829 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
832 * hppa-linux-nat.c: Include gdbarch.h.
834 2019-09-26 Christian Biesinger <cbiesinger@google.com>
836 * blockframe.c (find_pc_partial_function): Change return type to bool.
837 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
838 * minsyms.c (in_gnu_ifunc_stub): Likewise.
839 (stub_gnu_ifunc_resolve_name): Likewise.
840 * symtab.c (compare_filenames_for_search): Likewise.
841 (compare_glob_filenames_for_search): Likewise.
842 (matching_obj_sections): Likewise.
843 (symbol_matches_domain): Likewise.
844 (find_line_symtab): Change out param EXACT_MATCH to bool *.
845 (find_line_pc): Change return type to bool.
846 (find_line_pc_range): Likewise.
847 (producer_is_realview): Likewise.
848 * symtab.h (symbol_matches_domain): Likewise.
849 (find_pc_partial_function): Likewise.
850 (find_pc_line_pc_range): Likewise.
851 (in_gnu_ifunc_stub): Likewise.
852 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
853 (find_line_pc): Likewise.
854 (find_line_pc_range): Likewise.
855 (matching_obj_sections): Likewise.
856 (find_line_symtab): Change out parameter to bool.
857 (producer_is_realview): Change return type to bool.
858 (compare_filenames_for_search): Likewise.
859 (compare_glob_filenames_for_search): Likewise.
861 2019-09-26 Tom Tromey <tom@tromey.com>
863 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
864 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
865 * gdb_usleep.h: Remove.
866 * gdb_usleep.c: Remove.
867 * utils.c: Don't include gdb_usleep.h.
869 2019-09-26 Tom Tromey <tromey@adacore.com>
871 * python/py-type.c (type_to_type_object): Call check_typedef
874 2019-09-26 Tom Tromey <tom@tromey.com>
876 * utils.h (initialize_utils): Don't declare.
877 * top.c (gdb_init): Don't call initialize_utils.
878 * utils.c (initialize_utils): Remove. Move contents...
879 (_initialize_utils): ... here.
881 2019-09-25 Tom Tromey <tom@tromey.com>
883 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
884 * utils.h (make_hex_string): Don't declare.
885 * utils.c (make_hex_string): Remove.
887 2019-09-24 Tom de Vries <tdevries@suse.de>
890 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
891 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
893 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
895 * NEWS: Mention new simulator port for PRU.
897 2019-09-23 Christian Biesinger <cbiesinger@google.com>
899 * ada-exp.y (write_object_remaining): Update.
900 * ada-lang.c (ada_decode): Return a std::string instead of a char*
901 and eliminate the static buffer.
902 (ada_decode_symbol): Update.
903 (ada_la_decode): Update.
904 (ada_sniff_from_mangled_name): Update.
905 (is_valid_name_for_wild_match): Update.
906 (ada_lookup_name_info::matches): Update and simplify.
907 (name_matches_regex): Update.
908 (ada_add_global_exceptions): Update.
909 * ada-lang.h (ada_decode): Update signature.
910 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
911 * dwarf-index-write.c (debug_names::insert): Update.
913 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
915 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
918 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
920 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
921 Change "nonzero" to "true" in documentation.
923 2019-09-20 Christian Biesinger <cbiesinger@google.com>
925 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
926 (_initialize_darwin_solib): Don't set
927 darwin_so_ops.lookup_lib_global_symbol.
928 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
929 set_gdbarch_iterate_over_objfiles_in_search_order.
930 (elf_lookup_lib_symbol): Rename to...
931 (svr4_iterate_over_objfiles_in_search_order): this, and update
932 to iterate semantics.
933 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
934 * solib.c (solib_global_lookup): Remove.
935 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
936 (solib_global_lookup): Remove.
937 * symtab.c (lookup_global_or_static_symbol): Remove call to
940 2019-09-20 Joel Brobecker <brobecker@adacore.com>
942 * NEWS: Move entries about default MI version now being
943 version 3, and about the GDB/MI fix for multi-location
944 breakpoints to the "since GDB 8.3" section.
946 2019-09-20 Joel Brobecker <brobecker@adacore.com>
950 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
952 * NEWS: Mention that Cell/B.E. debugging support was removed.
953 * MAINTAINERS: Remove spu target.
955 * config/djgpp/fnchange.lst: Remove entries for removed files.
957 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
958 spu-multiarch.o, and spu-tdep.o.
959 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
960 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
961 spu-multiarch.c, and spu-tdep.c.
962 * spu-linux-nat.c: Remove file.
963 * spu-multiarch.c: Remove file.
964 * spu-tdep.c: Remove file.
965 * spu-tdep.h: Remove file.
966 * solib-spu.c: Remove file.
967 * solib-spu.h: Remove file.
969 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
970 * configure.nat (spu-linux): Remove.
971 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
972 solib-multiarch.o from gdb_target_obs.
975 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
977 (ppc_linux_no_features): Update.
978 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
980 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
981 (tdesc_powerpc_cell64l): Likewise.
982 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
983 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
985 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
986 Do not include "features/rs6000/powerpc-cell32l.c" or
987 "features/rs6000/powerpc-cell64l.c".
988 (ppc_linux_spu_section): Remove.
989 (ppc_linux_core_read_description): Remove Cell/B.E. support.
990 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
991 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
992 (ppc_linux_spe_context_lookup): Remove.
993 (ppc_linux_spe_context_inferior_created): Remove.
994 (ppc_linux_spe_context_solib_loaded): Remove.
995 (ppc_linux_spe_context_solib_unloaded): Remove.
996 (ppc_linux_spe_context): Remove.
997 (struct ppu2spu_cache): Remove.
998 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
999 (struct ppu2spu_data): Remove.
1000 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1001 ppu2spu_unwind): Remove.
1002 (ppc_linux_init_abi): Remove Cell/B.E. support.
1003 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1005 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1006 (rs6000/powerpc-cell64l-expedite): Likewise
1007 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1008 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1009 rs6000/powerpc-cell64l.xml.
1010 * features/rs6000/powerpc-cell32l.xml: Remove.
1011 * features/rs6000/powerpc-cell64l.xml: Likewise.
1012 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1013 * features/rs6000/powerpc-cell64l.c: Likewise.
1014 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1015 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1016 * regformats/reg-spu.dat: Remove.
1018 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1019 * corelow.c (struct spuid_list): Remove.
1020 (add_to_spuid_list): Remove.
1021 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1022 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1023 (remote_protocol_features): Remove associated entries.
1024 (_initialize_remote): No longer initialize them.
1025 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1026 * linux-nat.c (SPUFS_MAGIC): Remove.
1027 (linux_proc_xfer_spu): Remove.
1028 (spu_enumerate_spu_ids): Remove.
1029 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1030 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1031 (linux_make_corefile_notes): No longer call it.
1033 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1034 (cooked_write_test): Likewise.
1036 2019-09-20 Tom Tromey <tom@tromey.com>
1038 * NEWS: Mention case-sensitivity of TUI commands.
1039 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1040 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1041 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1043 2019-09-20 Tom Tromey <tom@tromey.com>
1045 * tui/tui-source.c (tui_source_window::set_contents): Use
1046 make_unique_xstrdup.
1047 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1048 make_unique_xstrdup.
1050 2019-09-20 Tom Tromey <tom@tromey.com>
1052 * tui/tui-data.c: Remove separator comments.
1053 * tui/tui-layout.c: Remove separator comments.
1054 * tui/tui-win.c: Remove separator comments.
1055 * tui/tui-wingeneral.c: Remove separator comments.
1057 2019-09-20 Tom Tromey <tom@tromey.com>
1059 * tui/tui.h (strcat_to_buf): Don't declare.
1060 * tui/tui.c (strcat_to_buf): Remove.
1062 2019-09-20 Tom Tromey <tom@tromey.com>
1064 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1066 * tui/tui-source.c (tui_source_window::set_contents)
1067 (tui_source_window::location_matches_p)
1068 (tui_source_window::maybe_update): Update.
1070 2019-09-20 Tom Tromey <tom@tromey.com>
1072 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1074 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1076 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1077 (tui_data_window::line_from_reg_element_no)
1078 (tui_data_window::first_reg_element_no_inline)
1079 (tui_data_window::show_registers)
1080 (tui_data_window::show_register_group)
1081 (tui_data_window::display_registers_from)
1082 (tui_data_window::display_registers_from_line)
1083 (tui_data_window::first_data_item_displayed)
1084 (tui_data_window::delete_data_content_windows)
1085 (tui_data_window::erase_data_content)
1086 (tui_data_window::do_scroll_vertical)
1087 (tui_data_window::refresh_window)
1088 (tui_data_window::check_register_values): Update.
1090 2019-09-20 Tom Tromey <tom@tromey.com>
1092 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1093 (struct tui_locator_window) <full_name, proc_name>: Now
1095 * tui/tui-stack.c (tui_locator_window::make_status_line)
1096 (tui_locator_window::set_locator_fullname)
1097 (tui_locator_window::set_locator_info): Update.
1098 * tui/tui-source.c (tui_source_window::set_contents)
1099 (tui_source_window::showing_source_p): Update.
1101 2019-09-20 Tom Tromey <tom@tromey.com>
1103 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1104 Don't call tui_locator_win_info_ptr.
1106 2019-09-20 Tom Tromey <tom@tromey.com>
1108 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1110 2019-09-20 Tom Tromey <tom@tromey.com>
1112 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1114 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1115 * tui/tui-layout.c (show_source_disasm_command, show_data)
1116 (show_source_or_disasm_and_command): Use 1 as height for locator.
1118 2019-09-20 Tom Tromey <tom@tromey.com>
1120 * tui/tui.c (tui_enable): Update.
1121 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1123 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1125 * tui/tui-data.c (win_resized): Now bool.
1126 (tui_win_resized): Return bool.
1127 (tui_set_win_resized_to): Accept a bool.
1129 2019-09-20 Tom Tromey <tom@tromey.com>
1131 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1132 Change type of "refresh_values_only".
1133 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1134 type of "refresh_values_only".
1136 2019-09-20 Tom Tromey <tom@tromey.com>
1138 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1140 (tui_disassemble): Add "pos" parameter.
1141 (tui_disasm_window::set_contents): Simplify.
1143 2019-09-20 Tom Tromey <tom@tromey.com>
1145 * tui/tui-winsource.h (struct tui_source_window_base)
1146 <show_source_content>: Now private.
1147 * tui/tui-winsource.c
1148 (tui_source_window_base::show_source_content): Don't handle empty
1151 2019-09-20 Tom Tromey <tom@tromey.com>
1153 * tui/tui-layout.c (show_source_disasm_command)
1154 (show_source_or_disasm_and_command): Don't call
1155 show_source_content.
1157 2019-09-20 Tom Tromey <tom@tromey.com>
1159 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1161 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1162 from tui_make_status_line.
1163 (tui_locator_window::rerender): Update.
1165 2019-09-20 Tom Tromey <tom@tromey.com>
1167 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1168 (tui_locator_window::rerender): Update.
1170 2019-09-20 Tom Tromey <tom@tromey.com>
1172 * tui/tui-winsource.h (struct tui_source_window_base)
1173 <~tui_source_window_base>: Don't declare.
1175 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1176 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1178 * tui/tui-source.c (tui_source_window::set_contents): Update.
1179 (tui_source_window::location_matches_p)
1180 (tui_source_window::maybe_update): Update.
1182 2019-09-20 Tom Tromey <tom@tromey.com>
1184 * tui/tui-winsource.h (~tui_source_element): Remove.
1185 (tui_source_element): Update.
1186 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1187 * tui/tui-winsource.c (tui_show_source_line): Update.
1188 * tui/tui-source.c (tui_source_window::set_contents): Update.
1189 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1191 2019-09-20 Tom Tromey <tom@tromey.com>
1193 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1195 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1196 tui_clear_source_windows_detail.
1197 * tui/tui-winsource.h (struct tui_source_window_base)
1198 <clear_detail>: Don't declare.
1199 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1201 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1203 2019-09-20 Tom Tromey <tromey@adacore.com>
1206 * block.c (contained_in): Fix final return value.
1208 2019-09-20 Alan Modra <amodra@gmail.com>
1210 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1211 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1212 (read_indirect_string_from_dwz): Use bfd accessor.
1213 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1214 * machoread.c (macho_symfile_read_all_oso): Likewise.
1215 * solib.c (solib_bfd_open): Likewise.
1217 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1219 * eval.c: Move declaration of overload_resolution to...
1222 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1224 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1225 * arm-linux-tdep.c: Likewise.
1226 * arm-nbsd-nat.c: Likewise.
1227 * arm-tdep.h: Declare arm_apcs_32.
1228 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1230 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1232 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1233 * dwarf2read.h: Declare dwarf_always_disassemble.
1235 2019-09-19 Tom de Vries <tdevries@suse.de>
1238 * source-cache.c (source_cache::ensure): Catch exception thrown during
1239 construction of the highlighter.
1241 2019-09-18 Alan Modra <amodra@gmail.com>
1243 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1244 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1245 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1246 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1247 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1248 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1249 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1250 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1251 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1252 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1253 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1254 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1255 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1256 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1257 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1258 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1259 * mi/mi-interp.c: Update throughout for bfd section macro and
1261 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1262 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1264 2019-09-18 Tom Tromey <tom@tromey.com>
1267 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1269 (tui_enable): Do not call rl_initialize.
1271 2019-09-18 Christian Groessler <chris@groessler.org>
1273 * alpha-linux-nat.c: Include gdbarch.h.
1275 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1277 * ui-file.c: Include cli/cli-style.h.
1278 (term_cli_styling): Remove cli_styling declaration.
1280 2019-09-18 Alan Modra <amodra@gmail.com>
1282 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1283 to bfd_asymbol_section.
1285 2019-09-18 Alan Modra <amodra@gmail.com>
1287 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1288 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1289 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1291 2019-09-18 Alan Modra <amodra@gmail.com>
1293 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1294 * spu-linux-nat.c (spu_bfd_open): Likewise.
1296 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1298 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1299 to bool to match definition in dwarf2read.c.
1301 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1303 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1304 (print_signatures): Likewise.
1305 (trust_pad_over_xvs): Likewise.
1306 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1307 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1308 * arm-linux-nat.c (arm_apcs_32): Likewise.
1309 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1310 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1311 * arm-tdep.c (arm_debug): Likewise.
1312 (arm_apcs_32): Likewise.
1313 * auto-load.c (debug_auto_load): Likewise.
1314 (auto_load_gdb_scripts): Likewise.
1315 (global_auto_load): Likewise.
1316 (auto_load_local_gdbinit): Likewise.
1317 (auto_load_local_gdbinit_loaded): Likewise.
1318 * auto-load.h (global_auto_load): Likewise.
1319 (auto_load_local_gdbinit): Likewise.
1320 (auto_load_local_gdbinit_loaded): Likewise.
1321 * breakpoint.c (disconnected_dprintf): Likewise.
1322 (breakpoint_proceeded): Likewise.
1323 (automatic_hardware_breakpoints): Likewise.
1324 (always_inserted_mode): Likewise.
1325 (target_exact_watchpoints): Likewise.
1326 (_initialize_breakpoint): Update.
1327 * breakpoint.h (target_exact_watchpoints): Change to bool.
1328 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1329 * cli/cli-cmds.c (trace_commands): Likewise.
1330 * cli/cli-cmds.h (trace_commands): Likewise.
1331 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1333 * cli/cli-logging.c (logging_overwrite): Change to bool.
1334 (logging_redirect): Likewise.
1335 (debug_redirect): Likewise.
1336 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1337 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1339 <boolean_option_def>: Update.
1340 (struct flag_option_def): Change default type of Context to bool
1342 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1343 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1344 (get_setshow_command_value_string): Likewise.
1345 * cli/cli-style.c (cli_styling): Change to bool.
1346 (source_styling): Likewise.
1347 * cli/cli-style.h (source_styling): Likewise.
1348 (cli_styling): Likewise.
1349 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1351 * command.h (var_types): Update comment.
1352 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1353 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1355 (debug_compile_cplus_scopes): Likewise.
1356 * compile/compile-internal.h (compile_debug): Likewise.
1357 * compile/compile.c (compile_debug): Likewise.
1358 (struct compile_options) <raw>: Likewise.
1359 * cp-support.c (catch_demangler_crashes): Likewise.
1360 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1361 (usr_cmd_cris_dwarf2_cfi): Likewise.
1362 * csky-tdep.c (csky_debug): Likewise.
1363 * darwin-nat.c (enable_mach_exceptions): Likewise.
1364 * dcache.c (dcache_enabled_p): Likewise.
1365 * defs.h (info_verbose): Likewise.
1366 * demangle.c (demangle): Likewise.
1367 (asm_demangle): Likewise.
1368 * dwarf-index-cache.c (debug_index_cache): Likewise.
1369 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1370 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1371 * dwarf2read.c (check_physname): Likewise.
1372 (use_deprecated_index_sections): Likewise.
1373 (dwarf_always_disassemble): Likewise.
1374 * eval.c (overload_resolution): Likewise.
1375 * event-top.c (set_editing_cmd_var): Likewise.
1376 (exec_done_display_p): Likewise.
1377 * event-top.h (set_editing_cmd_var): Likewise.
1378 (exec_done_display_p): Likewise.
1379 * exec.c (write_files): Likewise.
1380 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1381 (debug_fbsd_nat): Likewise.
1382 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1384 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1385 <backtrace_past_entry> Likewise.
1386 * gdb-demangle.h (demangle): Likewise.
1387 (asm_demangle): Likewise.
1388 * gdb_bfd.c (bfd_sharing): Likewise.
1389 * gdbcore.h (write_files): Likewise.
1390 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1391 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1392 * gdbthread.h (print_thread_events): Likewise.
1393 * gdbtypes.c (opaque_type_resolution): Likewise.
1394 (strict_type_checking): Likewise.
1395 * gnu-nat.c (gnu_debug_flag): Likewise.
1396 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1397 * guile/scm-param.c (pascm_variable): Add boolval.
1398 (add_setshow_generic): Update.
1399 (pascm_param_value): Update.
1400 (pascm_set_param_value_x): Update.
1401 * hppa-tdep.c (hppa_debug): Change to bool..
1402 * infcall.c (may_call_functions_p): Likewise.
1403 (coerce_float_to_double_p): Likewise.
1404 (unwind_on_signal_p): Likewise.
1405 (unwind_on_terminating_exception_p): Likewise.
1406 * infcmd.c (startup_with_shell): Likewise.
1407 * inferior.c (print_inferior_events): Likewise.
1408 * inferior.h (startup_with_shell): Likewise.
1409 (print_inferior_events): Likewise.
1410 * infrun.c (step_stop_if_no_debug): Likewise.
1411 (detach_fork): Likewise.
1412 (debug_displaced): Likewise.
1413 (disable_randomization): Likewise.
1414 (non_stop): Likewise.
1415 (non_stop_1): Likewise.
1416 (observer_mode): Likewise.
1417 (observer_mode_1): Likewise.
1418 (set_observer_mode): Update.
1419 (sched_multi): Change to bool.
1420 * infrun.h (debug_displaced): Likewise.
1421 (sched_multi): Likewise.
1422 (step_stop_if_no_debug): Likewise.
1423 (non_stop): Likewise.
1424 (disable_randomization): Likewise.
1425 * linux-tdep.c (use_coredump_filter): Likewise.
1426 (dump_excluded_mappings): Likewise.
1427 * linux-thread-db.c (auto_load_thread_db): Likewise.
1428 (check_thread_db_on_load): Likewise.
1429 * main.c (captured_main_1): Update.
1430 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1431 xx2_opt, boolean_opt>: Change to bool.
1432 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1433 * maint.c (maintenance_profile_p): Likewise.
1434 (per_command_time): Likewise.
1435 (per_command_space): Likewise.
1436 (per_command_symtab): Likewise.
1437 * memattr.c (inaccessible_by_default): Likewise.
1438 * mi/mi-main.c (mi_async): Likewise.
1439 (mi_async_1): Likewise.
1440 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1441 * nat/fork-inferior.h (startup_with_shell): Likewise.
1442 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1443 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1444 * nios2-tdep.c (nios2_debug): Likewise.
1445 * or1k-tdep.c (or1k_debug): Likewise.
1446 * parse.c (parser_debug): Likewise.
1447 * parser-defs.h (parser_debug): Likewise.
1448 * printcmd.c (print_symbol_filename): Likewise.
1449 * proc-api.c (procfs_trace): Likewise.
1450 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1451 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1452 (set_parameter_value): Update.
1453 (add_setshow_generic): Update.
1454 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1456 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1458 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1459 * record-btrace.c (record_btrace_target::store_registers): Update.
1460 * record-full.c (record_full_memory_query): Change to bool.
1461 (record_full_stop_at_limit): Likewise.
1462 * record-full.h (record_full_memory_query): Likewise.
1463 * remote-notif.c (notif_debug): Likewise.
1464 * remote-notif.h (notif_debug): Likewise.
1465 * remote.c (use_range_stepping): Likewise.
1466 (interrupt_on_connect): Likewise.
1467 (remote_break): Likewise.
1468 * ser-tcp.c (tcp_auto_retry): Likewise.
1469 * ser-unix.c (serial_hwflow): Likewise.
1470 * skip.c (debug_skip): Likewise.
1471 * solib-aix.c (solib_aix_debug): Likewise.
1472 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1473 (spu_auto_flush_cache_p): Likewise.
1474 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1476 (struct info_print_options) <quiet>: Likewise.
1477 * symfile-debug.c (debug_symfile): Likewise.
1478 * symfile.c (auto_solib_add): Likewise.
1479 (separate_debug_file_debug): Likewise.
1480 * symfile.h (auto_solib_add): Likewise.
1481 (separate_debug_file_debug): Likewise.
1482 * symtab.c (basenames_may_differ): Likewise.
1483 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1484 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1485 (struct info_types_options) <quiet>: Likewise.
1486 * symtab.h (demangle): Likewise.
1487 (basenames_may_differ): Likewise.
1488 * target-dcache.c (stack_cache_enabled_1): Likewise.
1489 (code_cache_enabled_1): Likewise.
1490 * target.c (trust_readonly): Likewise.
1491 (may_write_registers): Likewise.
1492 (may_write_memory): Likewise.
1493 (may_insert_breakpoints): Likewise.
1494 (may_insert_tracepoints): Likewise.
1495 (may_insert_fast_tracepoints): Likewise.
1496 (may_stop): Likewise.
1497 (auto_connect_native_target): Likewise.
1498 (target_stop_and_wait): Update.
1499 (target_async_permitted): Change to bool.
1500 (target_async_permitted_1): Likewise.
1501 (may_write_registers_1): Likewise.
1502 (may_write_memory_1): Likewise.
1503 (may_insert_breakpoints_1): Likewise.
1504 (may_insert_tracepoints_1): Likewise.
1505 (may_insert_fast_tracepoints_1): Likewise.
1506 (may_stop_1): Likewise.
1507 * target.h (target_async_permitted): Likewise.
1508 (may_write_registers): Likewise.
1509 (may_write_memory): Likewise.
1510 (may_insert_breakpoints): Likewise.
1511 (may_insert_tracepoints): Likewise.
1512 (may_insert_fast_tracepoints): Likewise.
1513 (may_stop): Likewise.
1514 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1515 (make_thread_apply_all_options_def_group): Change argument from int*
1517 (thread_apply_all_command): Update.
1518 (print_thread_events): Change to bool.
1519 * top.c (confirm): Likewise.
1520 (command_editing_p): Likewise.
1521 (history_expansion_p): Likewise.
1522 (write_history_p): Likewise.
1523 (info_verbose): Likewise.
1524 * top.h (confirm): Likewise.
1525 (history_expansion_p): Likewise.
1526 * tracepoint.c (disconnected_tracing): Likewise.
1527 (circular_trace_buffer): Likewise.
1528 * typeprint.c (print_methods): Likewise.
1529 (print_typedefs): Likewise.
1530 * utils.c (debug_timestamp): Likewise.
1531 (sevenbit_strings): Likewise.
1532 (pagination_enabled): Likewise.
1533 * utils.h (sevenbit_strings): Likewise.
1534 (pagination_enabled): Likewise.
1535 * valops.c (overload_resolution): Likewise.
1536 * valprint.h (struct value_print_options) <prettyformat_arrays,
1537 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1538 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1539 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1541 * windows-nat.c (new_console): Likewise.
1542 (cygwin_exceptions): Likewise.
1543 (new_group): Likewise.
1544 (debug_exec): Likewise.
1545 (debug_events): Likewise.
1546 (debug_memory): Likewise.
1547 (debug_exceptions): Likewise.
1548 (useshell): Likewise.
1549 * windows-tdep.c (maint_display_all_tib): Likewise.
1550 * xml-support.c (debug_xml): Likewise.
1552 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1554 * source.c (prepare_path_for_appending): New function.
1555 (openp): Make use of new function.
1556 (find_and_open_source): Search for the compilation directory and
1557 source file as a relative path beneath the directory search path.
1559 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1561 * source-cache.c (source_cache::get_line_charpos): Catch
1562 exceptions and return false, this matches the behaviour documented
1565 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1567 * ada-tasks.c (info_task): Remove quoting of the task's name.
1569 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1571 * symfile.c (auto_solib_add): Replace comment with a reference
1574 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1576 * NEWS: Mention that gdb can now be compiled with Python 3
1579 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1581 * maint.c (maint_print_section_data::maint_print_section_data):
1582 Force use of 'float log10 (float)' by casting the argument to
1585 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1587 * maint.c: Add 'cmath' include.
1588 (struct maint_print_section_data): New structure.
1589 (print_section_index): New function.
1590 (print_bfd_section_info): Add header comment, small whitespace
1591 cleanup, and update to call new print_section_index function.
1592 (print_objfile_section_info): Likewise.
1593 (maint_obj_section_from_bfd_section): New function.
1594 (print_bfd_section_info_maybe_relocated): New function.
1595 (maintenance_info_sections): Add header comment, always use
1596 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1598 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1600 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1601 inner scope, add check that the objfile has psymtabs before
1602 checking psymtabs_addrmap.
1603 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1605 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1607 * NEWS: Announce that Ada task names are now shown at more places,
1608 and between quotes (except in info task output).
1609 * gdb/ada-tasks.c (task_to_str): New function.
1610 (display_current_task_id): Call task_to_str.
1611 (task_command_1): Likewise.
1612 (print_ada_task_info): In non-mi mode, Properly align headers and data
1613 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1615 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1617 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1618 prstatus.pr_lwp.pr_info instead of making it up.
1620 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1622 * auto-load.c (auto_load_expand_dir_vars): Update.
1623 * defs.h (gdb_datadir): Change to std::string.
1624 (python_libdir): Likewise.
1625 (relocate_gdb_directory): Change return type to std::string.
1626 * guile/guile.c (gdbscm_data_directory): Update.
1627 (initialize_scheme_side): Update.
1628 * jit.c (jit_reader_dir): Change to std::string.
1629 (jit_reader_load_command): Update.
1630 * main.c (gdb_datadir): Change to std::string.
1631 (python_libdir): Likewise.
1632 (set_gdb_data_directory): Update.
1633 (relocate_path): Change to return std::string.
1634 (relocate_gdb_directory): Change to return std::string.
1635 (relocate_gdbinit_path_maybe_in_datadir): Update.
1636 (captured_main_1): Update.
1637 * python/python.c (do_start_initialization): Update.
1638 * top.c (show_gdb_datadir): Update.
1639 * xml-syscall.c (xml_init_syscalls_info): Update.
1640 (init_syscalls_info): Update.
1642 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1644 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1645 out of get_init_files.
1646 (get_init_files): Update.
1648 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1650 * main.c (get_init_files): Change to use std::string.
1651 (captured_main_1): Update.
1652 (print_gdb_help): Update.
1654 2019-09-11 Ali Tamur <tamur@google.com>
1656 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1659 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1661 * dbxread.c (read_dbx_symtab): Update.
1662 * dwarf2read.c (load_partial_dies): Update.
1663 * mdebugread.c (parse_partial_symbols): Update.
1664 (handle_psymbol_enumerators): Update.
1665 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1666 * psymtab.c (add_psymbol_to_bcache): Likewise.
1667 (add_psymbol_to_list): Likewise.
1668 * symtab.c (symbol_set_names): Likewise.
1669 * symtab.h (symbol_set_names): Likewise.
1670 * xcoffread.c (scan_xcoff_symtab): Update.
1672 2019-09-11 Tom Tromey <tom@tromey.com>
1674 * symfile-mem.c (symbol_file_add_from_memory): Use
1676 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1677 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1679 2019-09-10 Tom Tromey <tromey@adacore.com>
1681 * dwarf-index-write.c (write_psymbols): Extend error message.
1682 (debug_names::insert): Add Ada code.
1683 (debug_names::write_psymbols): Remove Ada check.
1684 (debug_names) <m_string_obstack>: New member.
1685 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1686 (gdb_index_symbol_name_matcher::matches): Remove.
1687 (mapped_index_base::find_name_components_bounds): Add "lang"
1689 (mapped_index_base::build_name_components): Also split names
1690 according to Ada syntax.
1691 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1692 type of "match_callback".
1693 (check_match, check_find_bounds_finds)
1694 (dw2_expand_symtabs_matching): Update.
1695 (dw2_debug_names_iterator): Add new constructor.
1696 (dw2_debug_names_map_matching_symbols): New function.
1697 (dw2_debug_names_expand_symtabs_matching): Update.
1698 (dwarf2_debug_names_functions): Use
1699 dw2_debug_names_map_matching_symbols.
1701 2019-09-10 Tom Tromey <tromey@adacore.com>
1703 * dwarf2read.c (dw2_get_file_names_reader): Add the
1704 CU's file name to the results.
1706 2019-09-10 Tom Tromey <tromey@adacore.com>
1708 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1709 map_matching_symbols. Update.
1710 * dwarf2read.c (dw2_map_matching_symbols): Update.
1711 * psymtab.c (match_partial_symbol): Change type; update.
1712 (psym_map_matching_symbols): Likewise.
1713 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1715 * symfile.h (struct quick_symbol_functions)
1716 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1719 2019-09-10 Tom Tromey <tromey@adacore.com>
1721 * psymtab.c (map_block): Remove.
1722 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1723 * symtab.c (iterate_over_symbols_terminated): New function.
1724 * symtab.c (iterate_over_symbols_terminated): Declare.
1726 2019-09-10 Tom Tromey <tromey@adacore.com>
1728 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1729 * language.h (struct language_defn) <la_iterate_over_symbols>:
1731 * symtab.c (iterate_over_symbols): Return bool.
1732 * symtab.h (iterate_over_symbols): Return bool.
1734 2019-09-10 Tom Tromey <tromey@adacore.com>
1736 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1737 (add_nonlocal_symbols): Update.
1738 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1739 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1740 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1741 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1742 Change type of "callback". Remove "data".
1745 2019-09-09 Ali Tamur <tamur@google.com>
1747 * dwarf2read.c (comp_unit_head): Update comment.
1748 (dwarf2_dwo_name): New function declaration.
1749 (dwarf_unit_type_name): New function declaration.
1750 (read_comp_unit_head): Add support for new compilation units,
1751 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1752 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1753 (currently named as "signature") in their header. Also clarify error
1755 (lookup_dwo_id): New function. Returns the dwo id of the given
1757 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1758 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1760 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1761 (dwarf2_dwo_name): Get the dwo name if present.
1762 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1765 2019-09-09 Tom Tromey <tom@tromey.com>
1767 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1769 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1771 * python/python.c (do_start_initialization): Make progname_copy static,
1772 to avoid a leak report.
1774 2019-09-08 Tom Tromey <tom@tromey.com>
1776 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1778 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1780 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1781 Change type to gdb::optional<block_enum>.
1782 (dw2_symtab_iter_init): Change block_index parameter type
1783 to gdb::optional<block_enum>.
1784 (dw2_lookup_symbol): Change block_index parameter
1785 type to block_enum.c
1786 (dw2_debug_names_lookup_symbol): Likewise.
1787 * psymtab.c (psym_lookup_symbol): Likewise.
1788 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1789 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1792 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1794 * defs.h (relocate_gdb_directory): Change int to bool in
1795 signature and rename flag to relocatable.
1796 * main.c (relocate_path): Likewise.
1797 (relocate_gdb_directory): Likewise.
1799 2019-09-06 Alan Modra <amodra@gmail.com>
1801 * coffread.c (coff_symfile_read): Constify filename variable.
1802 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1803 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1804 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1805 * solib.c (reload_shared_libraries_1): Likewise.
1806 * symfile.c (reread_symbols): Likewise.
1807 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1808 * solib-darwin.c (darwin_bfd_open): Likewise.
1809 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1811 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1813 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1814 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1816 2019-09-03 Tom Tromey <tromey@adacore.com>
1818 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1820 (has_negatives): Unbias a range type bound.
1821 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1822 * gdbtypes.c (operator==): Handle new field.
1823 (create_range_type): Add "bias" parameter.
1824 (create_static_range_type, resolve_dynamic_range): Update.
1825 * gdbtypes.h (struct range_bounds) <bias>: New member.
1826 (create_range_type): Add bias parameter.
1827 * printcmd.c (print_scalar_formatted): Unbias range types.
1828 * value.c (unpack_long): Unbias range types.
1829 (pack_long): Bias range types.
1831 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1833 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1836 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1838 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1839 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1840 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1841 (compile_probe_arg): Likewise.
1842 * probe.h (get_argument_count): Likewise.
1843 * solib-svr4.c (solib_event_probe_action): Likewise.
1844 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1846 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1848 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1850 (svr4_create_solib_event_breakpoints): ...from here.
1852 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1854 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1855 suffix from warning message.
1857 2019-08-30 Tom Tromey <tom@tromey.com>
1859 * tui/tui-winsource.h (struct tui_source_window_base)
1860 <refresh_all>: Don't declare.
1861 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1863 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1864 tui_show_locator_content.
1865 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1867 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1868 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1871 2019-08-30 Tom Tromey <tom@tromey.com>
1873 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1875 2019-08-30 Tom Tromey <tom@tromey.com>
1877 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1878 Remove unnecessary forward declarations.
1880 2019-08-30 Tom Tromey <tom@tromey.com>
1882 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1884 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1885 tui_show_locator_content.
1887 2019-08-30 Tom Tromey <tom@tromey.com>
1889 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1890 (tui_locator_window::rerender): Rewrite using body of previous
1891 tui_show_locator_content.
1893 2019-08-30 Tom Tromey <tom@tromey.com>
1895 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1896 set_locator_fullname>: New methods.
1897 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1898 Rename from tui_set_locator_fullname.
1899 (tui_locator_window::set_locator_info): Rename from
1900 tui_set_locator_info. Return bool.
1901 (tui_update_locator_fullname, tui_show_frame_info): Update.
1903 2019-08-30 Tom Tromey <tom@tromey.com>
1905 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1907 2019-08-30 Tom Tromey <tom@tromey.com>
1909 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1912 2019-08-30 Tom Tromey <tom@tromey.com>
1914 * tui/tui-wingeneral.c (box_win): Assume win_info and
1915 win_info->handle cannot be NULL.
1917 2019-08-30 Tom Tromey <tom@tromey.com>
1919 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1920 refresh_window>: Declare.
1921 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1923 (tui_data_item_window::rerender): Rename from
1924 tui_display_register.
1925 (tui_data_item_window::refresh_window): New method.
1926 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1929 2019-08-30 Tom Tromey <tom@tromey.com>
1931 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1932 regs_column_count, current_group>: Move later. Now private.
1933 <get_current_group>: New method.
1934 * tui/tui-regs.c (tui_reg_command): Update.
1935 * tui/tui-layout.c (tui_set_layout): Update.
1937 2019-08-30 Tom Tromey <tom@tromey.com>
1939 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1940 (tui_data_window::rerender): Don't call
1941 check_and_display_highlight_if_needed.
1942 (tui_data_window::refresh_all): Remove call to
1945 2019-08-30 Tom Tromey <tom@tromey.com>
1947 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1948 (tui_data_window::display_registers_from)
1949 (tui_data_window::display_reg_element_at_line)
1950 (tui_data_window::display_registers_from_line): Remove checks of
1953 2019-08-30 Tom Tromey <tom@tromey.com>
1955 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1957 * tui/tui-regs.c (tui_data_window::show_registers): Call
1959 (tui_data_window::rerender): Rename from display_all_data.
1960 (tui_data_window::rerender): Remove old implementation.
1962 2019-08-30 Tom Tromey <tom@tromey.com>
1964 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1966 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1968 2019-08-29 Bernhard Wodok <barto@gmx.net>
1969 Sergio Durigan Junior <sergiodj@redhat.com>
1972 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1974 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1976 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1977 when searching for types.
1979 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1981 * f-lang.c (f_language_defn): Use f_print_typedef.
1982 * f-lang.h (f_print_typedef): Declare.
1983 * f-typeprint.c (f_print_typedef): Define.
1985 2019-08-27 Christian Biesinger <cbiesinger@google.com>
1987 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
1989 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
1991 * cli/cli-utils.c (info_print_options_defs): Delete.
1992 (make_info_print_options_def_group): Delete.
1993 (extract_info_print_options): Delete.
1994 (info_print_command_completer): Delete.
1995 (info_print_args_help): Add extra parameter, and optionally
1996 include text about -n flag.
1997 * cli/cli-utils.h (struct info_print_options): Delete.
1998 (extract_info_print_options): Delete declaration.
1999 (info_print_command_completer): Delete declaration.
2000 (info_print_args_help): Add extra parameter, extend header
2002 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2004 * stack.c (struct info_print_options): New type.
2005 (info_print_options_defs): New file scoped variable.
2006 (make_info_print_options_def_group): New static function.
2007 (info_print_command_completer): New static function.
2008 (info_locals_command): Update to use new local functions.
2009 (info_args_command): Likewise.
2010 (_initialize_stack): Add extra parameter to calls to
2011 info_print_args_help.
2012 * symtab.c (search_symbols): Add extra parameter, use this to
2013 possibly excluse non-debug symbols.
2014 (symtab_symbol_info): Add extra parameter, which is passed on to
2016 (struct info_print_options): New type.
2017 (info_print_options_defs): New file scoped variable.
2018 (make_info_print_options_def_group): New static function.
2019 (info_print_command_completer): New static function.
2020 (info_variables_command): Update to use local functions, and pass
2021 extra parameter through to symtab_symbol_info.
2022 (info_functions_command): Likewise.
2023 (info_types_command): Pass additional argument through to
2025 (rbreak_command): Pass extra argument to search_symbols.
2026 (_initialize_symtab): Add extra arguments for calls to
2027 info_print_args_help, and update help text for 'info variables',
2028 'whereis', and 'info functions' commands.
2029 * symtab.h (search_symbols): Add extra argument to declaration.
2030 * NEWS: Mention new flags.
2032 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2034 * symtab.c (lookup_static_symbol): Call the new function (and move
2035 it down to be next to lookup_global_symbol).
2036 (struct global_sym_lookup_data): Add block_enum member and rename to...
2037 (struct global_or_static_sym_lookup_data): ...this.
2038 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2039 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2040 (lookup_symbol_global_or_static_iterator_cb): ...this.
2041 (lookup_global_or_static_symbol): New function.
2042 (lookup_global_symbol): Call new function.
2044 2019-08-26 Tom de Vries <tdevries@suse.de>
2047 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2048 when pc_probe.prob == NULL.
2050 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2052 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2053 variable symbol_linkage to symbol_linkage_.
2055 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2057 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2058 represent whether the symbol is static, dynamic, or we don't
2061 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2063 * gdb/rx-tdep.c (rx_register_names): New.
2064 (rx_register_name): Delete.
2065 (rx_psw_type): Delete.
2066 (rx_fpsw_type): Delete.
2067 (rx_register_type): Delete.
2068 (rx_gdbarch_init): Convert target-descriptions.
2069 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2070 * gdb/features/Makefile: Add rx.xml.
2071 * gdb/features/rx.xml: New.
2072 * gdb/features/rx.c: Generated.
2073 * gdb/NEWS: Mention target description support.
2075 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2077 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2080 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2082 * configure.ac: Don't check for 'dlfcn.h' (moved to
2083 gdbsupport/common.m4).
2084 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2086 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2087 * compile/compile-c-support.c: Include
2088 'gdbsupport/gdb-dlfcn.h'.
2089 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2090 * gdb-dlfcn.c: Move to...
2091 * gdbsupport/gdb-dlfcn.c: ... here.
2092 * gdb-dlfcn.h: Move to...
2093 * gdbsupport/gdb-dlfcn.h: ... here.
2095 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2097 * nios2-tdep.c (struct reg_value): Improve comments. Make
2098 the offset field signed.
2100 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2102 * python/lib/gdb/__init__.py (_execute_file): New function.
2103 * python/python.c (python_run_simple_file): Call gdb._execute_file
2106 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2108 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2109 all uses as this was never set to anything but a zero value.
2111 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2113 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2115 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2117 * tui/tui-data.h (tui_gen_win_info): Add an =default
2118 move constructor, required by some GCC versions.
2120 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2122 * go32-nat.c (go32_sysinfo): Add hygon_p.
2124 2019-08-20 Tom Tromey <tom@tromey.com>
2126 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2127 line_from_reg_element_no, first_reg_element_no_inline,
2128 display_all_data, delete_data_content_windows,
2129 erase_data_content>: Now private.
2131 2019-08-20 Tom Tromey <tom@tromey.com>
2133 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2134 (tui_unhighlight_win, tui_highlight_win)
2135 (tui_win_info::make_window): Update.
2136 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2138 2019-08-20 Tom Tromey <tom@tromey.com>
2140 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2141 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2142 (MAX_PID_WIDTH): Move to tui-stack.c.
2143 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2144 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2145 (MAX_PID_WIDTH): Move from tui-data.h.
2147 2019-08-20 Tom Tromey <tom@tromey.com>
2149 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2150 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2152 (tui_gen_win_info::make_window): Rename from tui_make_window.
2153 (tui_win_info::make_window): New method.
2154 (tui_gen_win_info::make_visible): Update.
2155 * tui/tui-source.c (tui_source_window::set_contents): Update.
2156 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2157 (tui_data_window::display_registers_from): Update.
2158 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2159 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2163 (struct tui_win_info) <make_window>: Declare.
2164 <can_box>: Now virtual.
2165 <title>: New member.
2166 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2167 * tui/tui-command.c (tui_cmd_window::resize): Update.
2169 2019-08-20 Tom Tromey <tom@tromey.com>
2171 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2172 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2173 (tui_data_window::check_register_values): Update.
2175 2019-08-20 Tom Tromey <tom@tromey.com>
2177 * tui/tui-regs.h (struct tui_data_window): Use
2178 DISABLE_COPY_AND_ASSIGN.
2179 <regs_content>: Change type, removing unique_ptr.
2180 <tui_data_window>: Add move constructor.
2181 * tui/tui-regs.c (tui_data_window::show_registers)
2182 (tui_data_window::show_register_group)
2183 (tui_data_window::display_registers_from)
2184 (tui_data_window::display_registers_from)
2185 (tui_data_window::first_data_item_displayed)
2186 (tui_data_window::delete_data_content_windows)
2187 (tui_data_window::rerender, tui_data_window::refresh_window)
2188 (tui_data_window::check_register_values): Update.
2190 2019-08-20 Tom Tromey <tom@tromey.com>
2192 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2193 show_register_group>: Declare.
2194 (tui_show_register_group): Don't declare.
2195 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2197 (tui_data_window::show_register_group): Rename from
2198 tui_show_register_group.
2199 (tui_data_window::check_register_values, tui_reg_command):
2201 * tui/tui-layout.c (tui_set_layout): Update.
2203 2019-08-20 Tom Tromey <tom@tromey.com>
2205 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2207 (tui_check_register_values): Don't declare.
2208 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2209 from tui_check_register_values.
2210 * tui/tui-hooks.c (tui_register_changed): Update.
2212 2019-08-20 Tom Tromey <tom@tromey.com>
2214 * tui/tui-regs.c (tui_reg_layout): Move later.
2215 (tui_show_registers): Don't enable TUI mode or change layout.
2217 2019-08-20 Tom Tromey <tom@tromey.com>
2219 * tui/tui-regs.h (struct tui_data_item_window)
2220 <~tui_data_item_window>: Remove.
2221 <content>: Now a unique_xmalloc_ptr.
2222 * tui/tui-regs.c (tui_register_format): Return a
2224 (tui_get_register): Update.
2225 (~tui_data_item_window): Remove.
2226 (tui_data_window::display_registers_from, tui_display_register):
2228 * tui/tui-io.h (tui_expand_tabs): Update.
2229 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2230 Remove "col" parameter.
2232 2019-08-20 Tom Tromey <tom@tromey.com>
2234 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2236 * tui/tui-regs.c (~tui_data_item_window): Update.
2238 2019-08-20 Tom Tromey <tom@tromey.com>
2240 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2243 2019-08-20 Tom Tromey <tom@tromey.com>
2245 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2247 2019-08-20 Tom Tromey <tom@tromey.com>
2249 * tui/tui-source.h (struct tui_source_window): Update.
2250 * tui/tui-regs.c (tui_show_registers): Update.
2251 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2252 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2253 (NO_REGS_STRING): Remove defines.
2255 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2257 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2258 unnecessary thread walk if remote doesn't support the packet.
2260 2019-08-19 Tom Tromey <tromey@adacore.com>
2262 * python/py-value.c (value_has_field): Fix indentation.
2264 2019-08-19 Tom Tromey <tromey@adacore.com>
2266 * printcmd.c (do_one_display, info_display_command): Update.
2267 * block.h (contained_in): Return bool. Add allow_nested
2269 * block.c (contained_in): Return bool. Add allow_nested
2272 2019-08-19 Tom Tromey <tom@tromey.com>
2274 * configure: Rebuild.
2275 * configure.ac: Disallow the combination of -static-libstdc++ and
2277 * source-cache.c (get_language_name): Handle rust.
2278 (source_cache::get_source_lines): Ignore highlighting exceptions.
2280 2019-08-16 Tom Tromey <tom@tromey.com>
2282 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2283 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2284 (struct tui_source_window_base) <make_visible, refresh_window,
2285 resize>: Remove methods.
2286 <execution_info>: Remove field.
2287 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2288 (tui_show_source_line, tui_source_window_base)
2289 (~tui_source_window_base): Update.
2290 (tui_source_window_base::resize)
2291 (tui_source_window_base::make_visible)
2292 (tui_source_window_base::refresh_window): Remove.
2293 (tui_source_window_base::update_exec_info): Update.
2294 * tui/tui-source.c (tui_source_window::set_contents): Update.
2295 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2297 2019-08-16 Tom Tromey <tom@tromey.com>
2299 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2300 deprecated_query_hook.
2302 2019-08-16 Tom Tromey <tom@tromey.com>
2304 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2305 (tui_update_source_windows_with_line): Update.
2306 * tui/tui-source.h (struct tui_source_window)
2307 <show_symtab_source>: Declare.
2308 (tui_show_symtab_source): Don't declare.
2309 * tui/tui-source.c (tui_show_symtab_source): Rename from
2310 tui_show_symtab_source.
2312 2019-08-16 Tom Tromey <tom@tromey.com>
2314 * tui/tui-winsource.h (struct tui_source_window_base)
2315 <set_contents>: Declare.
2316 * tui/tui-winsource.c
2317 (tui_source_window_base::update_source_window_as_is): Update.
2318 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2320 (tui_set_source_content): Don't declare.
2321 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2322 tui_set_source_content.
2323 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2325 (tui_set_disassem_content): Don't declare.
2326 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2327 tui_set_disassem_content.
2329 2019-08-16 Tom Tromey <tom@tromey.com>
2331 * tui/tui-winsource.h (struct tui_source_window_base)
2332 <update_breakpoint_info>: Declare.
2333 (tui_update_breakpoint_info): Don't declare.
2334 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2335 (tui_update_all_breakpoint_info): Update.
2336 (tui_source_window_base::update_breakpoint_info): Rename from
2337 tui_update_breakpoint_info.
2338 (tui_source_window_base::update_exec_info): Update.
2340 2019-08-16 Tom Tromey <tom@tromey.com>
2342 * tui/tui-winsource.h (struct tui_source_window_base)
2343 <update_source_window>: Declare.
2344 (tui_update_source_window): Don't declare.
2345 * tui/tui-winsource.c
2346 (tui_source_window_base::update_source_window): Rename from
2347 tui_update_source_window.
2348 (tui_source_window_base::rerender): Update.
2349 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2350 * tui/tui-disasm.c (tui_show_disassem)
2351 (tui_show_disassem_and_update_source)
2352 (tui_disasm_window::maybe_update): Update.
2354 2019-08-16 Tom Tromey <tom@tromey.com>
2356 * tui/tui-winsource.h (struct tui_source_window_base)
2357 <update_source_window_as_is>: Declare.
2358 (tui_update_source_window_as_is): Don't declare.
2359 * tui/tui-winsource.c (tui_update_source_window): Update
2360 (tui_source_window_base::update_source_window_as_is): Rename from
2361 tui_update_source_window_as_is.
2362 (tui_source_window_base::refill): Update.
2363 * tui/tui-source.c (tui_show_symtab_source): Update.
2364 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2367 2019-08-16 Tom Tromey <tom@tromey.com>
2369 * tui/tui-winsource.h (tui_update_source_window)
2370 (tui_update_source_window_as_is): Remove "noerror" parameter.
2371 * tui/tui-winsource.c (tui_update_source_window)
2372 (tui_update_source_window_as_is): Remove "noerror" parameter.
2373 (tui_update_source_windows_with_addr)
2374 (tui_update_source_windows_with_line)
2375 (tui_source_window_base::rerender)
2376 (tui_source_window_base::refill): Update.
2377 * tui/tui-source.h (tui_set_source_content)
2378 (tui_show_symtab_source): Remove "noerror" parameter.
2379 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2381 (tui_show_symtab_source): Likewise.
2382 (tui_source_window::maybe_update): Update.
2383 * tui/tui-disasm.c (tui_show_disassem)
2384 (tui_show_disassem_and_update_source)
2385 (tui_disasm_window::do_scroll_vertical)
2386 (tui_disasm_window::maybe_update): Update.
2388 2019-08-16 Tom Tromey <tom@tromey.com>
2390 * tui/tui.c (tui_is_window_visible): Update.
2391 * tui/tui-wingeneral.c (tui_make_window)
2392 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2393 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2394 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2395 (tui_set_win_height_command, parse_scrolling_args): Update.
2396 * tui/tui-source.c (tui_source_window::style_changed): Update.
2397 * tui/tui-regs.c (tui_show_registers)
2398 (tui_data_window::first_data_item_displayed)
2399 (tui_data_window::delete_data_content_windows)
2400 (tui_check_register_values, tui_reg_command): Update.
2401 * tui/tui-disasm.c (tui_show_disassem): Update.
2402 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2404 <is_visible>: Remove field.
2405 * tui/tui-data.c (tui_next_win, tui_prev_win)
2406 (tui_delete_invisible_windows): Update.
2408 2019-08-16 Tom Tromey <tom@tromey.com>
2410 * tui/tui-winsource.h (struct tui_source_window_base)
2411 <m_has_locator>: Remove.
2412 * tui/tui-layout.c (show_source_disasm_command, show_data)
2413 (show_source_or_disasm_and_command): Update.
2415 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2417 * NEWS (Other MI changes): New subsection.
2418 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2419 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2420 * arch-utils.c (default_get_pc_address_flags): New function.
2421 * arch-utils.h (default_get_pc_address_flags): New declaration.
2422 * gdbarch.sh: Add get_pc_address_flags.
2423 * gdbarch.c: Regenerate.
2424 * gdbarch.h: Likewise.
2425 * stack.c (print_pc): New function.
2426 (print_frame_info) (print_frame): Call print_pc.
2428 2019-08-16 Tom de Vries <tdevries@suse.de>
2430 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2431 print_objfile_section_info.
2433 2019-08-15 Tom Tromey <tom@tromey.com>
2435 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2436 calling update_cmdwin_start_line.
2437 * tui/tui-winsource.h (struct tui_source_window_base)
2438 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2439 <rerender>: Declare.
2440 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2442 (tui_source_window_base::set_new_height): Remove.
2443 (tui_source_window_base::rerender): Rename from
2444 do_make_visible_with_new_height.
2445 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2447 (tui_win_info::make_invisible_and_set_new_height)
2448 (tui_win_info::make_visible_with_new_height): Remove.
2449 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2451 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2452 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2453 do_make_visible_with_new_height>: Don't declare.
2454 <rerender>: Declare.
2455 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2457 (tui_data_window::do_make_visible_with_new_height): Remove.
2458 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2459 call tui_show_locator_content.
2460 (tui_gen_win_info::resize): Call rerender.
2461 (show_source_or_disasm_and_command): Don't call
2462 tui_show_locator_content.
2463 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2465 (struct tui_win_info) <rerender>: Declare.
2466 <set_new_height, make_invisible_and_set_new_height,
2467 make_visible_with_new_height>: Don't declare.
2468 * tui/tui-data.c (tui_win_list::rerender): New method.
2469 * tui/tui-command.h (struct tui_cmd_window)
2470 <do_make_visible_with_new_height>: Don't declare.
2472 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2474 2019-08-15 Tom Tromey <tromey@adacore.com>
2476 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2477 * ada-lang.c (ada_enum_name): Likewise.
2479 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2481 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2483 (GdbOutputErrorFile): Likewise.
2484 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2486 (execute_unwinders): Rename to have a leading underscore.
2487 (auto_load_packages): Likewise.
2488 (global scope): Adjust call to auto_load_packages accordingly.
2489 (GdbSetPythonDirectory): Likewise.
2490 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2491 instead of execute_unwinders.
2493 2019-08-15 Tom Tromey <tom@tromey.com>
2495 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2496 (show_data): Don't change window visibility.
2497 (tui_gen_win_info::resize): Remove special case for command
2498 window. Use wresize, when available.
2499 (show_source_or_disasm_and_command): Don't change window
2501 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2502 <make_visible>: New method.
2503 * tui/tui-command.c (tui_cmd_window::resize): New method.
2505 2019-08-15 Tom Tromey <tom@tromey.com>
2507 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2508 (struct tui_source_windows): New.
2509 * tui/tui-winsource.c (tui_display_main): Update.
2510 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2511 (new_height_ok, parse_scrolling_args): Update.
2512 * tui/tui-layout.c (show_layout, show_data): Update.
2513 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2514 (tui_add_to_source_windows): Don't declare.
2515 * tui/tui-data.c (source_windows, tui_source_windows)
2516 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2518 2019-08-15 Tom Tromey <tom@tromey.com>
2520 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2522 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2523 * tui/tui-layout.c (show_source_disasm_command, show_data):
2525 (tui_gen_win_info::resize): Rename.
2526 (show_source_or_disasm_and_command): Update.
2527 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2530 2019-08-15 Tom Tromey <tom@tromey.com>
2532 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2533 * tui/tui-interp.c (tui_interp::init): Don't call
2534 tui_initialize_static_data.
2535 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2537 2019-08-15 Tom Tromey <tom@tromey.com>
2539 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2540 examine tui_win_list.
2542 2019-08-15 Tom Tromey <tom@tromey.com>
2544 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2545 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2546 tui_clear_source_content.
2547 (tui_clear_source_content): Remove.
2548 (tui_source_window_base::do_erase_source_content): Hoist call to
2550 * tui/tui-stack.c (tui_show_frame_info): Don't call
2551 tui_clear_source_content.
2553 2019-08-15 Tom Tromey <tom@tromey.com>
2555 * tui/tui-winsource.h (struct tui_source_window_base)
2556 <do_erase_source_content>: New method.
2557 <erase_source_content>: New method.
2558 (tui_erase_source_content): Don't declare.
2559 * tui/tui-winsource.c (tui_clear_source_content): Update.
2560 (tui_source_window_base::do_erase_source_content): Rename from
2561 tui_erase_source_content.
2562 (tui_source_window_base::show_source_content): Update.
2563 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2564 * tui/tui-source.h (struct tui_source_window)
2565 <erase_source_content>: New method.
2566 * tui/tui-disasm.h (struct tui_disasm_window)
2567 <erase_source_content>: New method.
2569 2019-08-15 Tom Tromey <tom@tromey.com>
2571 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2572 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2574 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2575 * tui/tui-source.c (tui_set_source_content): Update.
2576 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2578 2019-08-15 Tom Tromey <tom@tromey.com>
2580 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2581 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2583 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2585 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2587 (tui_source_window::maybe_update): Update.
2589 2019-08-15 Tom Tromey <tom@tromey.com>
2591 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2592 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2594 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2596 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2598 (tui_disasm_window::maybe_update): Update.
2600 2019-08-15 Tom Tromey <tom@tromey.com>
2602 * tui/tui-winsource.h (struct tui_source_window_base)
2603 <maybe_update>: Declare.
2604 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2606 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2608 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2609 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2611 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2613 2019-08-15 Tom Tromey <tom@tromey.com>
2615 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2617 2019-08-15 Tom Tromey <tom@tromey.com>
2619 * tui/tui-wingeneral.c: Include tui-stack.h.
2620 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2621 (struct tui_locator_window): Move from tui-data.h.
2622 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2623 (tui_initialize_static_data): Move from tui-data.c.
2624 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2625 (struct tui_locator_window): Move to tui-stack.c.
2626 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2627 (tui_initialize_static_data): Move to tui-stack.c.
2629 2019-08-15 Tom Tromey <tom@tromey.com>
2631 * tui/tui-layout.c (show_source_disasm_command)
2632 (show_source_or_disasm_and_command): Use make_visible method, not
2634 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2637 2019-08-15 Tom Tromey <tom@tromey.com>
2639 * tui/tui-wingeneral.h (tui_make_window): Update.
2640 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2642 (tui_gen_win_info::make_visible): Update.
2643 * tui/tui-regs.c (tui_data_window::display_registers_from):
2645 * tui/tui-layout.c (show_source_disasm_command)
2646 (show_source_or_disasm_and_command): Update.
2647 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2648 (enum tui_box): Remove.
2649 (struct tui_win_info) <can_box>: New method.
2650 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2653 2019-08-15 Tom de Vries <tdevries@suse.de>
2655 * linux-nat-trad.c: Include gdbarch.h.
2657 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2659 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2662 2019-08-14 Tom Tromey <tromey@adacore.com>
2664 * darwin-nat.c: Include gdbarch.h.
2665 * darwin-nat-info.c: Include gdbarch.h.
2667 2019-08-13 Tom Tromey <tom@tromey.com>
2669 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2671 * tui/tui-data.c (tui_initialize_static_data): Update.
2673 2019-08-13 Tom Tromey <tom@tromey.com>
2675 * tui/tui-winsource.h (struct tui_exec_info_window)
2676 <~tui_exec_info_window, maybe_allocate_content, get_content,
2678 (struct tui_source_window_base) <set_exec_info_content,
2679 show_exec_info_content>: Don't declare.
2680 * tui/tui-winsource.c
2681 (tui_exec_info_window::maybe_allocate_content): Remove.
2682 (tui_source_window_base::update_exec_info): Rename from
2683 set_exec_info_content.
2684 (tui_source_window_base::show_exec_info_content)
2685 (tui_source_window_base::update_exec_info): Remove.
2687 2019-08-13 Tom Tromey <tom@tromey.com>
2689 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2691 * tui/tui-winsource.c (tui_update_source_window_as_is)
2692 (tui_update_source_windows_with_addr, tui_erase_source_content):
2694 (tui_clear_exec_info_content): Remove.
2696 2019-08-13 Tom Tromey <tom@tromey.com>
2698 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2700 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2701 call tui_erase_exec_info_content.
2702 (tui_clear_exec_info_content): Rename from
2703 tui_erase_exec_info_content.
2704 (tui_clear_exec_info_content): Delete.
2706 2019-08-13 Tom Tromey <tom@tromey.com>
2708 * tui/tui-winsource.h (struct tui_source_window_base)
2709 <show_exec_info_content>: Declare.
2710 (tui_show_exec_info_content): Don't declare.
2711 * tui/tui-winsource.c
2712 (tui_source_window_base::show_exec_info_content): Rename from
2713 tui_show_exec_info_content.
2714 (tui_source_window_base::update_exec_info): Update.
2716 2019-08-13 Tom Tromey <tom@tromey.com>
2718 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2719 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2720 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2721 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2722 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2723 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2726 2019-08-13 Tom Tromey <tom@tromey.com>
2728 * tui/tui-winsource.h (struct tui_source_window_base)
2729 <update_exec_info>: Declare.
2730 (tui_update_exec_info): Don't declare.
2731 * tui/tui-winsource.c (tui_update_source_window_as_is)
2732 (tui_source_window_base::refresh_all)
2733 (tui_update_all_breakpoint_info): Update.
2734 (tui_source_window_base::update_exec_info): Rename from
2735 tui_update_exec_info.
2736 * tui/tui-stack.c (tui_show_frame_info): Update.
2738 2019-08-13 Tom Tromey <tom@tromey.com>
2740 * tui/tui-winsource.h (struct tui_source_window_base)
2741 <set_exec_info_content>: Declare.
2742 (tui_set_exec_info_content): Don't declare.
2743 * tui/tui-winsource.c
2744 (tui_source_window_base::set_exec_info_content): Rename from
2745 tui_set_exec_info_content.
2746 (tui_update_exec_info): Update.
2748 2019-08-13 Tom Tromey <tom@tromey.com>
2750 * tui/tui-winsource.h (struct tui_source_window_base)
2751 <show_source_content>: Declare.
2752 (tui_show_source_content): Don't declare.
2753 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2754 (tui_source_window_base::show_source_content): Rename from
2755 tui_show_source_content.
2756 (tui_source_window_base::refresh_all): Update.
2757 * tui/tui-layout.c (show_source_disasm_command)
2758 (show_source_or_disasm_and_command): Update.
2760 2019-08-13 Tom Tromey <tom@tromey.com>
2762 * tui/tui-winsource.c (tui_erase_source_content)
2763 (tui_show_source_content, tui_source_window_base::refresh_all):
2765 * tui/tui-wingeneral.h
2766 (tui_check_and_display_highlight_if_needed): Don't declare.
2767 * tui/tui-wingeneral.c
2768 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2769 check_and_display_highlight_if_needed.
2770 * tui/tui-win.c (tui_rehighlight_all)
2771 (tui_win_info::make_visible_with_new_height): Update.
2772 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2773 (tui_data_window::erase_data_content)
2774 (tui_data_window::display_all_data): Update.
2775 * tui/tui-data.h (struct tui_win_info)
2776 <check_and_display_highlight_if_needed>: Declare.
2778 2019-08-13 Tom Tromey <tom@tromey.com>
2780 * tui/tui-win.c (tui_resize_all): Call
2781 tui_delete_invisible_windows.
2782 * tui/tui-layout.c (show_layout): Call
2783 tui_delete_invisible_windows.
2784 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2785 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2787 2019-08-13 Tom Tromey <tom@tromey.com>
2789 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2790 tui_add_win_to_layout.
2792 2019-08-13 Tom Tromey <tom@tromey.com>
2794 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2795 * tui/tui-layout.c (tui_default_win_height): Now static.
2797 2019-08-13 Tom Tromey <tom@tromey.com>
2799 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2801 (show_source_disasm_command, show_source_or_disasm_and_command):
2802 Don't check current layout.
2804 2019-08-13 Tom Tromey <tom@tromey.com>
2806 * tui/tui-wingeneral.c (make_all_visible): Remove.
2807 (tui_make_all_invisible): Simplify.
2808 * tui/tui-layout.c (tui_make_all_invisible): Move from
2809 tui-wingeneral.c; simplify.
2810 (show_layout): Hoist call to tui_make_all_invisible.
2811 (show_data): Don't call tui_make_all_invisible.
2813 2019-08-13 Tom Tromey <tom@tromey.com>
2815 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2816 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2818 2019-08-13 Tom Tromey <tom@tromey.com>
2820 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2822 (show_source_disasm_command, show_data)
2823 (show_source_or_disasm_and_command): Don't use
2824 tui_set_current_layout_to.
2825 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2826 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2828 (tui_set_current_layout_to): Remove.
2830 2019-08-13 Tom Tromey <tom@tromey.com>
2832 * tui/tui-layout.c (tui_set_layout): Update.
2833 * tui/tui-data.h (struct tui_layout_def): Remove.
2834 (tui_layout_def): Don't declare.
2835 * tui/tui-data.c (layout_def): Remove.
2836 (tui_layout_def): Remove.
2838 2019-08-13 Tom Tromey <tom@tromey.com>
2840 * tui/tui-winsource.h (struct tui_source_window_base)
2841 <clear_detail>: No longer "override".
2842 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2843 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2844 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2845 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2847 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2849 2019-08-13 Tom Tromey <tromey@adacore.com>
2851 * tracepoint.c: Don't include readline.h or history.h.
2853 2019-08-12 Tom Tromey <tom@tromey.com>
2855 * configure: Rebuild.
2856 * configure.ac: Check for readline 7.
2857 * NEWS: Mention readline 7 requirement.
2860 2019-08-12 Tom Tromey <tom@tromey.com>
2862 * mingw-hdep.c (gdb_select): Remove readline hack.
2864 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2866 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2867 when the function fails.
2869 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2871 * s390-tdep.c (s390_type_align): New function.
2872 (s390_gdbarch_init): Set it as type_align gdbarch method.
2874 2019-08-09 Tom de Vries <tdevries@suse.de>
2877 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2878 pc_low with relocation offset.
2880 2019-08-07 Tom Tromey <tromey@adacore.com>
2882 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2883 (print_frame_args): Update.
2884 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2886 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2887 * frame.h (struct frame_arg): Add initializers.
2888 <error>: Now a unique_xmalloc_ptr.
2890 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2892 * NEWS: Expand the Pointer Authentication entry.
2893 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2894 (aarch64_frame_unmask_lr): ... to this.
2895 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2896 Call aarch64_frame_unmask_lr.
2897 * frame.c (struct frame_info): Add "masked" variable.
2898 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2899 (fprint_frame): Check for masked pc.
2900 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2902 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2903 * stack.c (print_frame): Check for masked pc.
2905 2019-08-06 Tom Tromey <tom@tromey.com>
2907 * stabsread.c (patch_block_stabs, read_one_struct_field)
2908 (read_enum_type): Use obstack_strndup.
2909 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2910 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2911 * dwarf2read.c (guess_full_die_structure_name)
2912 (anonymous_struct_prefix): Use obstack_strndup.
2913 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2914 * c-exp.y (yylex): Use obstack_strndup.
2915 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2916 (write_var_or_type): Use obstack_strndup.
2918 2019-08-06 Tom Tromey <tom@tromey.com>
2920 * symfile.c (reread_symbols): Use obstack_strdup.
2921 * stabsread.c (read_type): Use obstack_strdup.
2922 * gdb_obstack.h (obstack_strdup): New overload.
2923 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2924 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2925 (dwarf2_canonicalize_name): Use obstack_strdup.
2926 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2927 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2930 2019-08-06 Tom Tromey <tom@tromey.com>
2932 * gdb_obstack.h (obstack_strdup): Define.
2933 * gdb_obstack.c (obstack_strdup): Don't define.
2935 2019-08-06 Tom Tromey <tom@tromey.com>
2937 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2939 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2941 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2942 * stabsread.c (common_block_start): Use obstack_strdup.
2943 * objfiles.c (set_objfile_main_name, objfile): Use
2945 * namespace.c (add_using_directive): Use obstack_strdup.
2946 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2947 * jit.c (finalize_symtab): Use obstack_strdup.
2948 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2949 (guess_partial_die_structure_name, partial_die_info::fixup)
2950 (dwarf2_name): Use obstack_strdup.
2951 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2953 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2954 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2956 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2958 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2960 * unittests/help-doc-selftests.c: New file.
2961 * Makefile.in: Add the new file.
2963 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2965 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2966 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2967 the full first line, except when FOR_VALUE_PREFIX. In this case,
2968 the trailing '.' is not output, and the first character is uppercased.
2969 (print_help_for_command): Update call to print_doc_line.
2970 (print_doc_of_command): Likewise.
2971 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2972 * cli/cli-option.c (append_indented_doc): Do not append newline.
2973 (build_help_option): Append newline after first appended_indented_doc
2974 only if a second call is done.
2975 (build_help): Append 2 new lines before each option, except the first
2977 * compile/compile.c (_initialize_compile): Add new lines after
2978 %OPTIONS%, when not at the end of the help.
2979 Change help doc or code
2980 producing the help doc to respect the invariants.
2981 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2982 Also removed the new line after 'Options:', as all other commands
2983 do not put an empty line between 'Options:' and the first option.
2984 * printcmd.c (_initialize_printcmd): Likewise.
2985 * stack.c (_initialize_stack): Likewise.
2986 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
2987 incorrectly telling COMMAND is optional.
2988 * ada-lang.c (_initialize_ada_language): Change help doc or code
2989 producing the help doc to respect the invariants.
2990 * ada-tasks.c (_initialize_ada_tasks): Likewise.
2991 * breakpoint.c (_initialize_breakpoint): Likewise.
2992 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
2993 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
2994 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
2995 * cli/cli-style.c (cli_style_option::add_setshow_commands,
2996 _initialize_cli_style): Likewise.
2997 * corelow.c (core_target_info): Likewise.
2998 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
2999 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3000 * filesystem.c (_initialize_filesystem): Likewise.
3001 * frame.c (_initialize_frame): Likewise.
3002 * gnu-nat.c (add_task_commands): Likewise.
3003 * infcall.c (_initialize_infcall): Likewise.
3004 * infcmd.c (_initialize_infcmd): Likewise.
3005 * interps.c (_initialize_interpreter): Likewise.
3006 * language.c (_initialize_language): Likewise.
3007 * linux-fork.c (_initialize_linux_fork): Likewise.
3008 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3009 * maint.c (_initialize_maint_cmds): Likewise.
3010 * memattr.c (_initialize_mem): Likewise.
3011 * printcmd.c (_initialize_printcmd): Likewise.
3012 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3014 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3015 * record-btrace.c (_initialize_record_btrace): Likewise.
3016 * record-full.c (_initialize_record_full): Likewise.
3017 * record.c (_initialize_record): Likewise.
3018 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3019 * regcache.c (_initialize_regcache): Likewise.
3020 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3021 _initialize_remote): Likewise.
3022 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3023 * serial.c (_initialize_serial): Likewise.
3024 * skip.c (_initialize_step_skip): Likewise.
3025 * source.c (_initialize_source): Likewise.
3026 * stack.c (_initialize_stack): Likewise.
3027 * symfile.c (_initialize_symfile): Likewise.
3028 * symtab.c (_initialize_symtab): Likewise.
3029 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3030 * top.c (init_main): Likewise.
3031 * tracefile-tfile.c (tfile_target_info): Likewise.
3032 * tracepoint.c (_initialize_tracepoint): Likewise.
3033 * tui/tui-win.c (_initialize_tui_win): Likewise.
3034 * utils.c (add_internal_problem_command): Likewise.
3035 * valprint.c (value_print_option_defs): Likewise.
3037 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3040 * configure.ac: Drop enable-libmcheck support.
3041 * configure, config.in: Rebuild.
3042 * libmcheck.m4: Remove.
3043 * acinclude.m4: Don't include it.
3044 * Makefile.in: Don't distribute it.
3045 * top.c (print_gdb_configuration): Don't mention it.
3047 2019-08-06 Tom Tromey <tom@tromey.com>
3049 * utils.c (set_output_style): Sometimes pass stream to
3051 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3052 * record-btrace.c (btrace_insn_history): Update.
3053 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3055 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3056 Update initializers.
3057 <m_uiout>: New field.
3059 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3060 Remove "uiout" parameter.
3061 (dump_insns): Update.
3062 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3063 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3065 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3067 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3068 (error_in_psymtab_expansion): Likewise.
3069 (lookup_symbol_via_quick_fns): Likewise.
3070 (basic_lookup_transparent_type_quick): Likewise.
3071 (basic_lookup_transparent_type_1): Likewise.
3073 2019-08-06 Tom Tromey <tromey@adacore.com>
3075 * source.c (last_source_error): Now bool.
3076 (print_source_lines_base): Make "noprint" bool. Only open
3077 source file when last_source_visited changes.
3079 2019-08-06 Tom Tromey <tromey@adacore.com>
3081 * annotate.c (annotate_source_line): Use g_source_cache.
3082 * source-cache.c (source_cache::get_plain_source_lines): Change
3083 parameters. Populate m_offset_cache.
3084 (source_cache::ensure): New method.
3085 (source_cache::get_line_charpos): New method.
3086 (extract_lines): Move lower. Change parameters.
3087 (source_cache::get_source_lines): Move lower.
3088 * source-cache.h (class source_cache): Update comment.
3089 <get_line_charpos>: New method.
3090 <get_source_lines>: Update comment.
3091 <clear>: Clear m_offset_cache.
3092 <get_plain_source_lines>: Change parameters.
3093 <ensure>: New method
3094 <m_offset_cache>: New member.
3095 * source.c (forget_cached_source_info_for_objfile): Update.
3096 (info_source_command): Use g_source_cache.
3097 (find_source_lines, open_source_file_with_line_charpos): Remove.
3098 (print_source_lines_base, search_command_helper): Use g_source_cache.
3099 * source.h (open_source_file_with_line_charpos): Don't declare.
3100 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3101 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3104 2019-08-06 Tom Tromey <tromey@adacore.com>
3106 * source-cache.c (source_cache::get_plain_source_lines):
3107 Remove "first_line" and "last_line" parameters.
3108 (source_cache::get_source_lines): Cache plain text.
3109 * source-cache.h (class source_cache)
3110 <get_plain_source_lines>: Update.
3112 2019-08-06 Tom Tromey <tromey@adacore.com>
3114 * source-cache.c (extract_lines): No longer a method.
3115 Changed type of parameter. Include final newline.
3116 (selftests::extract_lines_test): New function.
3117 (_initialize_source_cache): Likewise.
3118 * source-cache.h (class source_cache)
3119 <extract_lines>: Don't declare.
3121 2019-08-06 Tom Tromey <tromey@adacore.com>
3123 * breakpoint.c (init_breakpoint_sal): Update.
3124 (breakpoint): Update.
3125 * breakpoint.h (struct breakpoint) <filter>: Now a
3128 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3130 * NEWS: Mention dictionary access on blocks.
3131 * python/py-block.c (blpy_getitem): New function.
3132 (block_object_as_mapping): New struct.
3133 (block_object_type): Use new struct for tp_as_mapping field.
3135 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3137 * objfiles.h (objfile): Add a comment describing partial symbols.
3139 2019-08-05 Tom Tromey <tromey@adacore.com>
3141 * compile/compile.c (_initialize_compile): Use _(), not N_().
3142 * thread.c (_initialize_thread): Use _(), not N_().
3143 * stack.c (_initialize_stack): Use _(), not N_().
3144 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3146 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3148 * dwarf2read.c (struct dw2_symtab_iterator):
3149 <want_specific_block>: Remove.
3150 <block_index>: Change type to gdb::optional.
3151 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3152 change type of BLOCK_INDEX parameter to gdb::optional.
3153 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3154 (dw2_lookup_symbol): Don't pass argument for
3155 WANT_SPECIFIC_BLOCK.
3156 (dw2_expand_symtabs_for_function): Don't pass argument for
3157 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3158 (class dw2_debug_names_iterator)
3159 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3160 parameter, change BLOCK_INDEX type to gdb::optional.
3161 <m_want_specific_block>: Remove.
3162 <m_block_index>: Change type to gdb::optional.
3163 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3164 gdb::optional. Re-write in function of gdb::optional.
3165 (dw2_debug_names_lookup_symbol): Don't pass argument for
3166 WANT_SPECIFIC_BLOCK.
3167 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3168 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3171 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3173 * NEWS: Mention changes to "info sources" command.
3175 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3177 * symtab.c (filename_partial_match_opts): New struct type.
3178 (struct output_source_filename_data): New members
3179 regexp, c_regexp, partial_match.
3180 (output_source_filename): Use new members to decide to print file.
3181 (info_sources_option_defs): New variable.
3182 (make_info_sources_options_def_group, print_info_sources_header,
3183 info_sources_command_completer):
3185 (info_sources_command): Read new optional arguments.
3186 (_initialize_symtab): Update info sources help.
3188 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3190 * ada-lang.c (exception_support_info_v0): Renamed from...
3191 (default_exception_support_info): ... this. Create new
3193 (ada_has_this_exception_support): Look up catch_handlers_sym.
3194 (ada_exception_support_info_sniffer): Try v0 after default.
3196 2019-08-01 Tom Tromey <tromey@adacore.com>
3198 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3201 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3203 * s12z-tdep.c: Fix include path for s12z-opc.h.
3205 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3207 * NEWS: Require GNU make 3.82.
3209 2019-07-16 Tom Tromey <tom@tromey.com>
3211 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3214 2019-07-30 Tom Tromey <tromey@adacore.com>
3216 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3218 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3220 * printcmd.c (print_address_symbolic): Print negative offsets.
3221 (build_address_symbolic): Force signed arithmetic when computing
3224 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3226 PR/24474: Add a function to lookup static variables.
3227 * NEWS: Mention this new function.
3228 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3229 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3230 * python/python.c (python_GdbMethods): Add new function.
3232 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3234 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3235 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3236 (objfpy_lookup_static_symbol): New function.
3237 (objfile_object_methods): Add new functions.
3239 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3241 * NEWS: Mention 'set|show print frame-info'. Mention new
3242 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3243 backtrace argument. Mention that python frame filtering code
3244 is now consistent with what 'backtrace' command prints.
3246 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3248 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3250 (print_frame_info_auto, print_frame_info_source_line,
3251 print_frame_info_location, print_frame_info_source_and_location,
3252 print_frame_info_location_and_address, print_frame_info_short_location):
3254 (struct frame_print_options): New member print_frame_info.
3255 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3256 * stack.h (get_user_print_what_frame_info): New declaration.
3257 (frame_show_address): New declaration.
3258 * stack.c (print_frame_arguments_choices): New value 'presence'.
3259 (print_frame_info_auto, print_frame_info_source_line,
3260 print_frame_info_location, print_frame_info_source_and_location,
3261 print_frame_info_location_and_address, print_frame_info_short_location,
3262 print_frame_info_choices, print_frame_info_print_what): New definitions.
3263 (print_frame_args): Only print dots for args if print frame-arguments
3265 (frame_print_option_defs): New element for "frame-info".
3266 (get_user_print_what_frame_info): New function.
3267 (frame_show_address): Make non static. Move comment to stack.h.
3268 (print_frame_info_to_print_what): New function.
3269 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3270 to decide what to print.
3271 (backtrace_command_1): Handle the new print_frame_arguments_presence
3273 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3274 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3275 (py_print_frame): In non-mi mode, use LOCATION as default for
3276 print_what, similarly to frame information printed directly by
3277 backtrace command. Handle frame-info user option in non MI mode.
3279 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3281 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3282 Add case for debugging 32-bit target on 64-bit host. Revise
3285 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3287 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3288 instead of find_function_entry_range_from_pc.
3290 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3292 * stack.c (find_frame_funname): Remove code which preferred
3293 minsym over symtab sym in "certain pathological cases".
3295 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3296 parameter. Change type of "do_demangle" to bool.
3297 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3298 Pass suitable "prefer_sym_over_minsym" flag to
3299 build_address_symbolic(). Don't output "+" for negative offsets.
3300 * printcmd.c (print_address_symbolic): Update invocation of
3301 build_address_symbolic to include a "prefer_sym_over_minsym"
3303 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3304 Restrict cases in which use of minimal symbol is preferred to that
3305 of a found symbol. Update comments.
3307 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3308 for entry pc when entry pc is out of range for that FDE.
3310 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3313 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3316 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3318 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3319 this function's Python signature.
3322 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3324 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3325 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3326 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3327 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3328 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3331 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3333 * h8300-tdep.c (h8300_register_name_common): New.
3334 h8300_register_name): Use h8300_register_name_common.
3335 (h8300s_register_name): Likewise.
3336 (h8300sx_register_name): Likewise.
3337 (h8300h_register_nam): New.
3338 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3341 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3343 * arm-tdep.c (arm_skip_cmse_entry): New function.
3344 (arm_is_sgstubs_section): New function.
3345 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3347 2019-07-22 Tom Tromey <tom@tromey.com>
3349 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3352 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3354 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3357 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3359 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3360 so that GDB doesn't match any msymbols when searching in the
3362 (print_symbol_info): Print using typedef_print or type_print based
3363 on the type of the symbol. Add updated FIXME comment moved from...
3364 (_initialize_symtab): ... move and update FIXME comment to above.
3366 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3368 * NEWS: Mention adding -q option to "info types".
3369 * symtab.c (struct info_types_options): New struct.
3370 (info_types_options_defs): New variable.
3371 (make_info_types_options_def_group): New function.
3372 (info_types_command): Use gdb::option framework to parse options.
3373 (info_types_command_completer): New function.
3374 (_initialize_symtab): Extend the help text on "info types" and
3375 register command completer.
3377 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3379 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3380 (lookup_symbol_in_objfile): Change int to block_enum and add a
3381 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3383 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3385 * MAINTAINERS (Write After Approval): Add self.
3387 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3389 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3390 instruction to the dummy code region.
3392 2019-07-19 Tom Tromey <tromey@adacore.com>
3394 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3395 (ARGSUSED, PARAMS, __func__): Remove rules.
3397 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3399 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3400 * features/arm/arm-with-iwmmxt.c: Remove.
3401 * features/arm/arm-with-iwmmxt.xml: Remove.
3402 * features/arm/arm-with-m-fpa-layout.c: Remove.
3403 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3404 * features/arm/arm-with-m-vfp-d16.c: Remove.
3405 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3406 * features/arm/arm-with-m.c: Remove.
3407 * features/arm/arm-with-m.xml: Remove.
3408 * features/arm/arm-with-neon.c: Remove.
3409 * features/arm/arm-with-neon.xml: Remove.
3410 * features/arm/arm-with-vfpv2.c: Remove.
3411 * features/arm/arm-with-vfpv2.xml: Remove.
3412 * features/arm/arm-with-vfpv3.c: Remove.
3413 * features/arm/arm-with-vfpv3.xml: Remove.
3415 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3417 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3419 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3421 * arch/aarch32.c (aarch32_create_target_description): Create
3422 target descriptions using features.
3423 * arch/arm.c (arm_create_target_description)
3424 (arm_create_mprofile_target_description): Likewise.
3425 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3427 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3429 * Makefile.in: Add new files.
3430 * aarch32-tdep.c: New file.
3431 * aarch32-tdep.h: New file.
3432 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3433 Call aarch32_read_description.
3434 * arch/aarch32.c: New file.
3435 * arch/aarch32.h: New file.
3436 * arch/arm.c (arm_create_target_description)
3437 (arm_create_mprofile_target_description): New function.
3438 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3439 (arm_create_target_description)
3440 (arm_create_mprofile_target_description): New declaration.
3441 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3442 read_description functions.
3443 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3445 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3446 * arm-tdep.c (tdesc_arm_list): New variable.
3447 (arm_register_g_packet_guesses): Call create description functions.
3448 (arm_read_description) (arm_read_mprofile_description): New
3450 * arm-tdep.h (arm_read_description)
3451 (arm_read_mprofile_description): Add declaration.
3452 * configure.tgt: Add new files.
3454 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3456 * top.c (new_ui_command): Open specified terminal just once.
3458 2019-07-18 Tom Tromey <tromey@adacore.com>
3460 * symtab.c (main_name): Constify return type.
3461 * symfile.c (set_initial_language): Update.
3462 * symtab.h (main_name): Constify return type.
3464 2019-07-17 Tom Tromey <tom@tromey.com>
3466 * tui/tui-winsource.c (tui_update_source_window)
3467 (tui_update_source_window_as_is)
3468 (tui_update_source_windows_with_line): Remove return.
3469 * tui/tui-disasm.c (tui_show_disassem)
3470 (tui_show_disassem_and_update_source): Remove return.
3471 * tui/tui.c (tui_reset): Remove return.
3472 * tui/tui-wingeneral.c
3473 (tui_check_and_display_highlight_if_needed): Remove return.
3475 2019-07-17 Tom Tromey <tom@tromey.com>
3477 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3479 2019-07-17 Tom Tromey <tom@tromey.com>
3481 * tui/tui-winsource.h (struct tui_exec_info_window)
3482 (struct tui_source_window_base): Move from tui-data.h.
3483 * tui/tui-winsource.c: Move many method definitions from
3484 elsewhere. Remove "structuring" comments.
3485 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3486 (tui_source_window_base::refresh_window): Move to
3488 * tui/tui-win.c (tui_source_window_base::refresh_all)
3489 (tui_source_window_base::update_tab_width)
3490 (tui_source_window_base::set_new_height)
3491 (tui_source_window_base::do_make_visible_with_new_height): Move to
3493 * tui/tui-source.h: Update.
3494 * tui/tui-source.c (tui_source_window_base::reset): Move to
3496 * tui/tui-disasm.h: Update.
3497 * tui/tui-data.h (struct tui_exec_info_window): Move to
3499 (struct tui_source_window_base): Likewise.
3500 * tui/tui-data.c (tui_source_window_base::clear_detail)
3501 (tui_source_window_base, ~tui_source_window_base): Move to
3504 2019-07-17 Tom Tromey <tom@tromey.com>
3506 * tui/tui-win.c (tui_resize_all)
3507 (tui_source_window_base::update_tab_width)
3508 (tui_adjust_win_heights): Update.
3509 (tui_win_info::make_invisible_and_set_new_height): Rename from
3510 make_invisible_and_set_new_height.
3511 * tui/tui-data.h (struct tui_win_info)
3512 <make_invisible_and_set_new_height>: New method.
3514 2019-07-17 Tom Tromey <tom@tromey.com>
3516 * tui/tui.c: Update.
3517 * tui/tui-source.h (struct tui_source_window): Move from
3519 * tui/tui-layout.c: Update.
3520 * tui/tui-disasm.c: Update.
3521 * tui/tui-data.h (struct tui_source_window): Move to
3524 2019-07-17 Tom Tromey <tom@tromey.com>
3526 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3528 * tui/tui-data.h (struct tui_disasm_window): Move to
3531 2019-07-17 Tom Tromey <tom@tromey.com>
3533 * tui/tui-regs.h (struct tui_data_item_window): Move from
3535 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3536 * tui/tui-data.h (struct tui_data_item_window): Move to
3538 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3540 2019-07-17 Tom Tromey <tom@tromey.com>
3542 * tui/tui.c: Update.
3543 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3544 (tui_cmd_window::max_height): Move to tui-command.c.
3545 * tui/tui-layout.c: Update.
3546 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3547 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3549 * tui/tui-command.h (struct tui_cmd_window): Move from
3551 * tui/tui-command.c: Remove "structuring" comments.
3552 (tui_cmd_window::clear_detail)
3553 (tui_cmd_window::do_make_visible_with_new_height)
3554 (tui_cmd_window::max_height): Move from elsewhere.
3556 2019-07-17 Tom Tromey <tom@tromey.com>
3558 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3560 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3561 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3563 2019-07-17 Tom Tromey <tom@tromey.com>
3565 * tui/tui.c: Update.
3566 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3568 * tui/tui-windata.h: Remove file.
3569 * tui/tui-windata.c: Remove file.
3570 * tui/tui-win.c (tui_data_window::set_new_height)
3571 (tui_data_window::do_make_visible_with_new_height): Move to
3573 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3574 * tui/tui-regs.c: Remove "structuring" comments.
3575 (tui_data_window::first_data_item_displayed)
3576 (tui_data_window::delete_data_content_windows)
3577 (tui_data_window::erase_data_content)
3578 (tui_data_window::display_all_data)
3579 (tui_data_window::refresh_all)
3580 (tui_data_window::do_scroll_vertical)
3581 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3582 (tui_data_window::do_make_visible_with_new_height)
3583 (tui_data_window::refresh_window): Move from elsewhere.
3584 (_initialize_tui_regs): Move to end of file.
3585 * tui/tui-layout.c: Update.
3586 * tui/tui-hooks.c: Update.
3587 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3588 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3590 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3592 2019-07-17 Tom Tromey <tom@tromey.com>
3594 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3597 2019-07-17 Tom Tromey <tom@tromey.com>
3599 * tui/tui-win.c (tui_source_window_base::set_new_height)
3600 (tui_source_window_base::do_make_visible_with_new_height): Use
3601 m_has_locator field directly.
3602 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3604 (struct tui_source_window_base) <has_locator>: Likewise.
3606 2019-07-17 Tom Tromey <tom@tromey.com>
3608 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3610 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3612 * tui/tui-win.c (tui_source_window_base::set_new_height)
3613 (tui_source_window_base::set_new_height)
3614 (make_invisible_and_set_new_height)
3615 (tui_source_window_base::do_make_visible_with_new_height)
3616 (tui_source_window_base::do_make_visible_with_new_height):
3618 * tui/tui-layout.c (show_source_disasm_command, show_data)
3619 (show_source_or_disasm_and_command): Update.
3620 * tui/tui-layout.c (show_layout): Update.
3622 2019-07-17 Tom Tromey <tom@tromey.com>
3624 * tui/tui-layout.c (make_data_window): Remove.
3625 (show_data): Unify creation and re-initialization cases.
3627 2019-07-17 Tom Tromey <tom@tromey.com>
3629 * tui/tui-layout.c (make_source_window, make_disasm_window):
3631 (show_data): Unify creation and re-initialization cases.
3633 2019-07-17 Tom Tromey <tom@tromey.com>
3635 * tui/tui-layout.c (make_command_window): Remove.
3636 (show_source_disasm_command, show_source_or_disasm_and_command):
3637 Unify creation and re-initialization cases.
3639 2019-07-17 Tom Tromey <tom@tromey.com>
3641 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3642 creation and re-initialization cases.
3644 2019-07-17 Tom Tromey <tom@tromey.com>
3646 * tui/tui-regs.c (tui_get_register): Return void.
3648 2019-07-17 Tom Tromey <tom@tromey.com>
3650 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3653 2019-07-17 Tom Tromey <tom@tromey.com>
3655 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3658 2019-07-17 Tom Tromey <tom@tromey.com>
3660 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3661 * tui/tui-regs.c (tui_reg_layout): New function.
3662 (tui_show_registers, tui_reg_command): Use it.
3663 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3664 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3666 (tui_layout_command): Remove.
3668 2019-07-17 Tom Tromey <tom@tromey.com>
3670 * tui/tui-layout.h (tui/tui-layout): Return void.
3671 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3673 2019-07-17 Tom Tromey <tom@tromey.com>
3675 * tui/tui-layout.c (show_source_disasm_command, show_data):
3677 (reset_locator): Remove.
3678 (show_source_or_disasm_and_command): Update.
3680 2019-07-17 Tom Tromey <tom@tromey.com>
3682 * tui/tui-source.c (tui_source_window_base::reset): Remove
3684 * tui/tui-layout.c (make_command_window, make_source_window)
3685 (make_disasm_window, make_data_window)
3686 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3687 (reset_locator, show_source_or_disasm_and_command): Update.
3688 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3690 (struct tui_source_window_base) <reset>: Likewise.
3692 2019-07-17 Tom Tromey <tom@tromey.com>
3694 * tui/tui-layout.c (show_source_disasm_command): Use
3696 (reset_locator): New function.
3697 (init_and_make_win): Remove.
3698 (show_source_or_disasm_and_command): Use reset_locator.
3700 2019-07-17 Tom Tromey <tom@tromey.com>
3702 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3704 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3706 * tui/tui-source.c (tui_source_window_base::reset): New method.
3707 * tui/tui-layout.c (make_command_window): Don't call
3709 (make_source_window, make_disasm_window): Don't call
3710 make_source_or_disasm_window.
3711 (make_data_window): Don't call init_and_make_win. Change calling
3713 (show_source_disasm_command, show_data): Simplify.
3714 (make_source_or_disasm_window): Remove.
3715 (show_source_or_disasm_and_command): Simplify.
3716 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3717 (struct tui_source_window_base) <reset>: Likewise.
3718 <execution_info>: Remove initializer.
3719 * tui/tui-data.c (tui_source_window_base): Initialize
3722 2019-07-17 Tom Tromey <tom@tromey.com>
3724 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3727 2019-07-17 Tom Tromey <tom@tromey.com>
3729 * tui/tui.c (tui_rl_other_window): Update.
3730 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3731 superclass method first. Always iterate over regs_content.
3732 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3734 * tui/tui-win.c (tui_set_focus_command): Update.
3736 2019-07-17 Tom Tromey <tom@tromey.com>
3738 * tui/tui-win.c (tui_set_focus_command): Rename from
3739 tui_set_focus. Call tui_enable.
3740 (tui_set_focus_command): Remove.
3742 2019-07-17 Tom Tromey <tom@tromey.com>
3744 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3746 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3748 (tui_data_window::refresh_window): Call refresh_window on data
3749 items. Always call superclass refresh_window.
3750 (tui_win_info::refresh): Remove.
3751 (tui_source_window_base::refresh_window): Update.
3752 (tui_refresh_all): Update.
3753 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3755 (show_source_or_disasm_and_command): Likewise.
3756 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3757 (struct tui_source_window_base) <refresh>: Likewise.
3759 2019-07-17 Tom Tromey <tom@tromey.com>
3761 * tui/tui-winsource.c (tui_clear_source_content)
3762 (tui_show_source_content): Update.
3763 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3764 whether content is empty.
3765 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3768 2019-07-17 Tom Tromey <tom@tromey.com>
3770 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3772 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3773 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3775 2019-07-17 Tom Tromey <tom@tromey.com>
3777 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3778 (struct tui_data_item_window): Update.
3780 2019-07-17 Tom Tromey <tom@tromey.com>
3782 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3783 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3786 2019-07-17 Tom Tromey <tom@tromey.com>
3788 * tui/tui-winsource.h (tui_erase_source_content)
3789 (tui_clear_source_content): Remove "display_prompt" parameter.
3790 * tui/tui-winsource.c (tui_update_source_window_as_is)
3791 (tui_update_source_windows_with_addr): Update.
3792 (tui_clear_source_content): Remove "display_prompt" parameter.
3793 (tui_erase_source_content): Likewise. Simplify.
3794 (tui_show_source_content): Update.
3795 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3796 * tui/tui-stack.c (tui_show_frame_info): Update.
3797 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3800 2019-07-17 Tom Tromey <tom@tromey.com>
3802 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3803 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3805 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3808 2019-07-17 Tom Tromey <tom@tromey.com>
3810 * tui/tui-winsource.c (tui_clear_source_content)
3811 (tui_show_source_content, tui_show_exec_info_content)
3812 (tui_clear_exec_info_content): Update.
3813 * tui/tui-stack.c (tui_show_locator_content): Update.
3814 (tui_show_frame_info): Update.
3815 * tui/tui-source.h (tui_source_window): Don't declare.
3816 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3817 from tui_source_is_displayed.
3818 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3820 (struct tui_source_window_base) <content_in_use>: New field. Now
3822 (struct tui_source_window) <showing_source_p>: New method.
3823 (TUI_SRC_WIN): Change cast.
3824 * tui/tui-data.c (tui_initialize_static_data): Update.
3826 2019-07-17 Tom Tromey <tom@tromey.com>
3828 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3830 * tui/tui-source.c (tui_source_window::location_matches_p): New
3832 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3834 * tui/tui-data.h (struct tui_source_window_base)
3835 <location_matches_p>: New method.
3836 (struct tui_source_window, struct tui_disasm_window)
3837 <location_matches_p>: Likewise.
3839 2019-07-17 Tom Tromey <tom@tromey.com>
3841 * tui/tui-win.c (tui_set_win_height_command): Rename from
3843 (tui_set_win_height_command): Remove.
3845 2019-07-17 Tom Tromey <tom@tromey.com>
3847 * tui/tui-source.c (tui_source_window): New constructor. Add
3849 (~tui_source_window): New destructor.
3850 (tui_source_window::style_changed): New method.
3851 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3852 (tui_attach_detach_observers): Update.
3853 * tui/tui-data.h (struct tui_source_window): Make constructor not
3854 inline. Add destructor.
3855 (struct tui_source_window) <style_changed>: New method.
3856 <m_observable>: New member.
3858 2019-07-17 Tom Tromey <tom@tromey.com>
3860 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3861 * tui/tui-win.c (tui_resize_all): Fix typo.
3863 2019-07-17 Tom Tromey <tom@tromey.com>
3865 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3866 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3867 (tui_refresh_all): Remove "list" parameter. Use foreach.
3868 * tui/tui-win.c (window_name_completer): Use foreach.
3869 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3870 (update_tab_width): Likewise.
3871 * tui/tui-layout.c (show_layout): Update.
3872 * tui/tui-data.h (class tui_window_iterator): New.
3873 (struct all_tui_windows): New.
3874 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3876 2019-07-17 Tom Tromey <tom@tromey.com>
3878 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3879 parameter. Don't reference globals.
3880 (tui_reg_command): Update.
3882 2019-07-17 Tom Tromey <tom@tromey.com>
3884 * tui/tui-regs.c (tui_show_registers): Simplify.
3886 2019-07-17 Tom Tromey <tom@tromey.com>
3888 * tui/tui-regs.c (tui_show_registers): Update.
3889 (tui_show_register_group): Add win_info parameter.
3891 2019-07-17 Tom Tromey <tom@tromey.com>
3893 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3894 Rename from tui_display_reg_element_at_line.
3895 (tui_data_window::display_registers_from_line): Update.
3896 * tui/tui-data.h (struct tui_data_window)
3897 <display_reg_element_at_line>: New method.
3899 2019-07-17 Tom Tromey <tom@tromey.com>
3901 * tui/tui-regs.h (tui_display_registers_from)
3902 (tui_display_registers_from_line): Don't declare.
3903 * tui/tui-windata.c (tui_data_window::display_all_data)
3904 (tui_data_window::refresh_all)
3905 (tui_data_window::do_scroll_vertical): Update.
3906 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
3907 from tui_display_registers_from.
3908 (tui_display_reg_element_at_line): Update.
3909 (tui_data_window::display_registers_from_line): Rename from
3910 tui_display_registers_from_line.
3911 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3912 display_registers_from_line>: New methods.
3914 2019-07-17 Tom Tromey <tom@tromey.com>
3916 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3917 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3918 from tui_erase_data_content.
3919 (tui_data_window::display_all_data)
3920 (tui_data_window::refresh_all)
3921 (tui_data_window::do_scroll_vertical): Update.
3922 * tui/tui-regs.c (tui_show_registers): Update.
3923 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3926 2019-07-17 Tom Tromey <tom@tromey.com>
3928 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3931 (tui_data_window::delete_data_content_windows): Rename from
3932 tui_delete_data_content_windows.
3933 (tui_data_window::display_all_data)
3934 (tui_data_window::do_scroll_vertical): Update.
3935 * tui/tui-data.h (struct tui_data_window)
3936 <delete_data_content_windows>: New method.
3938 2019-07-17 Tom Tromey <tom@tromey.com>
3940 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3941 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3943 2019-07-17 Tom Tromey <tom@tromey.com>
3945 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3946 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3947 from tui_display_all_data.
3949 (tui_data_window::do_make_visible_with_new_height): Update.
3950 * tui/tui-regs.c (tui_show_registers): Update.
3951 * tui/tui-layout.c (tui_set_layout): Update.
3952 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3955 2019-07-17 Tom Tromey <tom@tromey.com>
3957 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3958 * tui/tui-windata.c (tui_display_data_from): Remove.
3959 (tui_data_window::refresh_all): Update.
3961 2019-07-17 Tom Tromey <tom@tromey.com>
3963 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3964 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3965 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3966 tui_display_registers_from_line.
3967 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3968 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3969 "force_display" parameter.
3971 2019-07-17 Tom Tromey <tom@tromey.com>
3973 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3975 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3976 Rename from tui_first_reg_element_no_inline.
3977 (tui_display_reg_element_at_line)
3978 (tui_display_registers_from_line): Update.
3979 * tui/tui-data.h (struct tui_data_window)
3980 <first_reg_element_no_inline>: New method.
3982 2019-07-17 Tom Tromey <tom@tromey.com>
3984 * tui/tui-windata.c (tui_display_data_from)
3985 (tui_data_window::do_scroll_vertical): Update.
3986 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
3987 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
3988 Rename from tui_line_from_reg_element_no.
3989 (tui_display_registers_from_line): Update.
3990 * tui/tui-data.h (struct tui_data_window)
3991 <line_from_reg_element_no>: New method.
3993 2019-07-17 Tom Tromey <tom@tromey.com>
3995 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
3996 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
3997 tui_last_regs_line_no.
3998 (tui_display_reg_element_at_line)
3999 (tui_display_registers_from_line): Update.
4000 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4003 2019-07-17 Tom Tromey <tom@tromey.com>
4006 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4007 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4008 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4009 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4010 (tui_update_breakpoint_info): Likewise.
4011 * tui/tui-hooks.c (tui_event_create_breakpoint)
4012 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4015 2019-07-17 Tom Tromey <tom@tromey.com>
4017 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4019 2019-07-17 Tom Tromey <tom@tromey.com>
4021 * tui/tui-winsource.c (tui_update_source_window_as_is)
4022 (tui_update_source_windows_with_addr): Update.
4023 * tui/tui-source.h (tui_set_source_content)
4024 (tui_show_symtab_source): Add "win_info" parameter.
4025 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4027 (tui_show_symtab_source): Likewise.
4029 2019-07-17 Tom Tromey <tom@tromey.com>
4031 * tui/tui-wingeneral.c
4032 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4034 2019-07-17 Tom Tromey <tom@tromey.com>
4036 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4037 (struct tui_cmd_window) <can_scroll>: New method.
4038 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4041 2019-07-17 Tom Tromey <tromey@adacore.com>
4043 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4044 do_field_signed>: Rename. Change type of "value".
4045 * ui-out.c (ui_out::field_signed): Rename from field_int.
4046 Change type of "value".
4047 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4049 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4050 do_field_int. Change type of "value".
4051 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4052 do_field_int. Change type of "value".
4053 * tracepoint.c (trace_status_mi, tfind_1)
4054 (print_one_static_tracepoint_marker): Update.
4055 * thread.c (print_thread_info_1, print_selected_thread_frame):
4057 * stack.c (print_frame, print_frame_info): Update.
4058 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4060 * source.c (print_source_lines_base): Update.
4061 * skip.c (info_skip_command): Update.
4062 * record-btrace.c (btrace_ui_out_decode_error)
4063 (btrace_call_history_src_line): Update.
4064 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4066 * progspace.c (print_program_space): Update.
4067 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4068 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4069 do_field_int. Change type of "value".
4070 * mi/mi-out.c (mi_ui_out::do_table_begin)
4071 (mi_ui_out::do_table_header): Update.
4072 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4074 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4075 (mi_cmd_data_list_changed_registers, output_register)
4076 (mi_cmd_data_read_memory, mi_load_progress)
4077 (mi_cmd_trace_frame_collected): Update.
4078 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4080 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4081 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4082 (mi_cmd_var_list_children, varobj_update_one): Update.
4083 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4084 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4085 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4086 * inferior.c (print_inferior): Update.
4087 * gdb_bfd.c (print_one_bfd): Update.
4088 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4090 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4091 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4092 do_field_int. Change type of "value".
4093 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4094 do_field_int. Change type of "value".
4095 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4096 (print_one_breakpoint_location, print_it_catch_fork)
4097 (print_one_catch_fork, print_it_catch_vfork)
4098 (print_one_catch_vfork, print_it_catch_solib)
4099 (print_it_catch_exec, print_it_ranged_breakpoint)
4100 (print_mention_watchpoint, print_mention_masked_watchpoint)
4101 (bkpt_print_it, update_static_tracepoint): Update.
4102 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4103 * break-catch-syscall.c (print_it_catch_syscall): Update.
4104 * ada-tasks.c (print_ada_task_info): Update.
4105 * ada-lang.c (print_it_exception, print_mention_exception):
4108 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4110 PR breakpoints/24541
4111 * gdbarch.c: Regenerate.
4112 * gdbarch.h: Regenerate.
4113 * gdbarch.sh: Adjust return type and parameter types for
4114 'stap_adjust_register'.
4115 (i386_stap_adjust_register): Adjust signature and return new
4117 * stap-probe.c (stap_parse_register_operand): Adjust use of
4118 'gdbarch_stap_adjust_register'.
4120 2019-07-17 Tom Tromey <tromey@adacore.com>
4122 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4124 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4126 (struct s390_process_info): Add initializers.
4127 (s390_add_process): Use new.
4128 (s390_linux_nat_target::low_forget_process): Use delete.
4129 (s390_linux_nat_target::low_new_fork)
4130 (s390_linux_nat_target::stopped_by_watchpoint)
4131 (s390_linux_nat_target::low_prepare_to_resume)
4132 (s390_linux_nat_target::insert_watchpoint)
4133 (s390_linux_nat_target::insert_hw_breakpoint)
4134 (s390_linux_nat_target::remove_watchpoint)
4135 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4137 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4139 * aarch64-fbsd-nat.c: Include regcache.h.
4140 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4142 (aarch64_fbsd_nat_target::fetch_registers)
4143 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4145 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4147 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4149 * fbsd-nat.c: Include gdbarch.h.
4151 2019-07-15 Tom Tromey <tromey@adacore.com>
4153 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4155 2019-07-15 Tom Tromey <tromey@adacore.com>
4157 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4158 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4159 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4160 * cli-out.c (cli_ui_out::do_field_int): New method.
4161 * ui-out.c (ui_out::field_unsigned): New method.
4162 * symfile.c (generic_load): Use field_unsigned.
4163 (print_transfer_performance): Likewise.
4164 * record-btrace.c (ui_out_field_uint): Remove.
4165 (btrace_call_history_insn_range, btrace_call_history): Use
4167 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4169 * ui-out.h (class ui_out) <field_unsigned>: New method.
4170 <do_field_unsigned>: Likewise.
4172 2019-07-15 Tom Tromey <tromey@adacore.com>
4174 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4175 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4176 * target.c (flash_erase_command): Use field_string.
4177 * infrun.c (print_signal_received_reason): Use field_string.
4178 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4179 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4181 * ada-tasks.c (print_ada_task_info): Use field_string.
4183 2019-07-15 Tom Tromey <tromey@adacore.com>
4185 * target.c (flash_erase_command): Use field_core_addr.
4186 * symfile.c (generic_load): Use field_core_addr.
4187 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4188 Use field_core_addr.
4189 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4192 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4194 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4195 value if its desired type is smaller than a CORE_ADDR and signed.
4197 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4199 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4200 of changes to field names, and use new is_reference field to
4201 decide if a property is a reference or not.
4202 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4204 (struct dwarf2_property_baton): Update header comment, rename
4205 'referenced_type' to 'property_type' and update comments.
4206 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4207 default property type, store in property baton, update to take
4208 accound of renamed field.
4209 (read_func_scope): Update call to attr_to_dynamic_prop.
4210 (read_array_type): Likewise.
4211 (dwarf2_per_cu_addr_sized_int_type): New function.
4212 (read_subrange_index_type): Move type finding code to
4213 dwarf2_per_cu_addr_sized_int_type.
4214 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4215 (dwarf2_per_cu_addr_type): New function.
4216 (set_die_type): Update calls to attr_to_dynamic_prop.
4218 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4220 * dwarf2read.c (read_subrange_index_type): New function.
4221 (read_subrange_type): Move code into new function and call it.
4222 * gdbtypes.c (create_range_type): Add some asserts.
4224 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4226 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4227 update return statements.
4228 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4229 declaration, and update comment to match.
4230 * gdbtypes.c (resolve_dynamic_array): Update call to
4231 dwarf2_evaluate_property to match new return type.
4233 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4235 * valarith.c (value_subscripted_rvalue): Change lowerbound
4236 parameter type from int to LONGEST.
4237 * value.h (value_subscripted_rvalue): Likewise in declaration.
4239 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4241 * cli/cli-utils.c (info_print_command_completer): New function.
4242 * cli/cli-utils.h: Add 'completer.h' include, and forward
4243 declaration for 'struct cmd_list_element'.
4244 (info_print_command_completer): Declare.
4245 * stack.c (_initialize_stack): Add completer for 'info locals' and
4247 * symtab.c (_initialize_symtab): Add completer for 'info
4248 variables' and 'info functions'.
4249 * NEWS: Mention completion for additional info commands.
4251 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4253 * cli/cli-utils.c (extract_info_print_args): Delete.
4254 (extract_arg_maybe_quoted): Delete.
4255 (info_print_options_defs): New variable.
4256 (make_info_print_options_def_group): New function.
4257 (extract_info_print_options): Define new function.
4258 * cli/cli-utils.h (extract_info_print_args): Delete.
4259 (struct info_print_options): New structure.
4260 (extract_info_print_options): Declare new function.
4261 * stack.c (info_locals_command): Update to use new
4262 extract_info_print_options, also add a header comment.
4263 (info_args_command): Likewise.
4264 * symtab.c (info_variables_command): Likewise.
4265 (info_functions_command): Likewise.
4267 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4269 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4270 to extract string arguments.
4271 * common/common-utils.c (extract_string_maybe_quoted): New function.
4272 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4274 2019-07-11 Tom Tromey <tromey@adacore.com>
4276 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4277 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4278 * top.h (gdbinit): Don't declare.
4279 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4281 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4282 * top.c (gdb_init): Don't call init_cli_cmds.
4284 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4286 2019-07-11 Tom Tromey <tromey@adacore.com>
4288 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4289 after it has been moved.
4291 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4293 * valops.c (value_must_coerce_to_target): Change return type to
4295 * value.h (value_must_coerce_to_target): Likewise.
4297 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4299 * breakpoint.c (is_hardware_watchpoint): Remove
4300 forward-declaration.
4301 (is_masked_watchpoint): Change return type to bool.
4302 (is_tracepoint): Likewise.
4303 (is_breakpoint): Likewise.
4304 (is_hardware_watchpoint): Likewise.
4305 (is_watchpoint): Likewise.
4306 (is_no_memory_software_watchpoint): Likewise.
4307 (is_catchpoint): Likewise.
4308 (breakpoint_1): Make FILTER parameter's return type bool.
4309 is_masked_watchpoint): Change return type to bool.
4310 (save_breakpoints): Make FILTER parameter's return type bool.
4311 * breakpoint.h (is_breakpoint): Change return type to bool.
4312 (is_watchpoint): Likewise.
4313 (is_catchpoint): Likewise.
4314 (is_tracepoint): Likewise.
4316 2019-07-10 Tom Tromey <tom@tromey.com>
4318 * defs.h: Don't include gdbarch.h.
4319 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4320 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4321 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4322 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4323 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4324 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4325 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4326 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4327 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4328 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4329 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4330 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4331 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4332 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4333 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4334 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4335 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4336 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4337 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4338 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4339 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4340 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4341 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4342 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4343 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4344 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4345 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4347 2019-07-10 Tom Tromey <tromey@adacore.com>
4349 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4350 * breakpoint.c (init_ada_exception_breakpoint): Register as
4352 (print_one_breakpoint_location, print_one_breakpoint): Use
4353 is_ada_exception_catchpoint.
4354 * ada-lang.c (class ada_catchpoint_location): Pass
4355 bp_loc_software_breakpoint to bp_location constructor.
4356 (is_ada_exception_catchpoint): New function.
4358 2019-07-10 Tom Tromey <tromey@adacore.com>
4360 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4362 (struct arm_exidx_entry): New method operator<.
4363 (struct arm_exidx_data) <section_maps>: Change type.
4364 (arm_exidx_data_free): Remove.
4365 (arm_exidx_data_key): Change type. Move lower.
4366 (arm_exidx_new_objfile): Update.
4367 (arm_compare_exidx_entries): Remove.
4368 (arm_find_exidx_entry, _initialize_arm_tdep)
4370 2019-07-10 Tom Tromey <tromey@adacore.com>
4372 * solib-spu.c (ocl_program_data_key): Change type.
4373 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4376 2019-07-10 Tom Tromey <tromey@adacore.com>
4378 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4379 (struct solib_aix_inferior_data) <library_list>: Change type.
4380 (solib_aix_inferior_data_handle): Change type.
4381 (get_solib_aix_inferior_data): Update.
4382 (solib_aix_free_library_list): Remove.
4383 (library_list_start_library): Update.
4384 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4386 (solib_aix_get_library_list)
4387 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4388 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4390 2019-07-10 Tom Tromey <tromey@adacore.com>
4392 * solib-dsbt.c (struct dsbt_info): Add initializers.
4393 (solib_dsbt_pspace_data): Change type.
4394 (dsbt_pspace_data_cleanup): Remove.
4395 (get_dsbt_info, _initialize_dsbt_solib): Update.
4397 2019-07-10 Tom Tromey <tromey@adacore.com>
4399 * spu-tdep.c (spu_overlay_data): Change type.
4400 (spu_get_overlay_table, spu_overlay_new_objfile)
4401 (_initialize_spu_tdep): Update.
4403 2019-07-10 Tom Tromey <tromey@adacore.com>
4405 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4407 (dbx_objfile_data_key): Change type and declare later.
4408 (DBX_SYMFILE_INFO): Rewrite.
4409 * dbxread.c (dbx_objfile_data_key): Change type.
4410 (dbx_symfile_init): Update.
4411 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4412 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4413 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4415 2019-07-10 Tom Tromey <tromey@adacore.com>
4417 * jit.c (jit_program_space_key): Change type. Move lower.
4418 (get_jit_program_space_data): Update.
4419 (jit_program_space_data_cleanup): Remove.
4420 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4422 (struct jit_program_space_data): Add initializers.
4424 2019-07-10 Tom Tromey <tromey@adacore.com>
4426 * solib-darwin.c (struct darwin_info): Add initializers.
4427 (solib_darwin_pspace_data): Change type.
4428 (darwin_pspace_data_cleanup): Remove.
4429 (get_darwin_info, _initialize_darwin_solib): Update.
4431 2019-07-10 Tom Tromey <tromey@adacore.com>
4433 * remote-sim.c (struct sim_inferior_data): Add initializers,
4434 constructor, and destructor.
4435 (sim_inferior_data_key): Change type. Move lower.
4436 (check_for_duplicate_sim_descriptor): Update.
4437 (get_sim_inferior_data): Use new. Update.
4438 (~sim_inferior_data_cleanup): Rename from
4439 sim_inferior_data_cleanup. Simplify.
4440 (gdbsim_close_inferior, simulator_command)
4441 (sim_command_completer, _initialize_remote_sim): Update.
4442 (next_pid, INITIAL_PID): Move earlier.
4444 2019-07-10 Tom Tromey <tromey@adacore.com>
4446 * python/python-internal.h (create_thread_object): Return
4448 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4449 * python/py-inferior.c (struct threadlist_entry): Add
4451 <thread_obj>: Now a gdbpy_ref.
4452 (thread_to_thread_object): Update.
4453 (add_thread_object): Use new.
4454 (delete_thread_object): Use delete.
4455 (infpy_threads): Update.
4456 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4459 2019-07-10 Tom Tromey <tromey@adacore.com>
4461 * valops.c (value_cast): Specialize error message for Ada.
4463 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4465 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4467 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4469 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4470 bpstat_should_step): Return bool, adjust comments.
4471 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4472 bpstat_should_step): Likewise.
4474 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4476 * features/Makefile: Use feature target descriptions for Arm.
4477 * features/arm/arm-core.c: Generate new file.
4478 * features/arm/arm-fpa.c: Likewise.
4479 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4480 * features/arm/arm-m-profile.c: Likewise.
4481 * features/arm/arm-vfpv2.c: Likewise.
4482 * features/arm/arm-vfpv3.c: Likewise.
4483 * features/arm/xscale-iwmmxt.c: Likewise.
4484 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4486 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4488 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4491 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4493 * features/aarch64-pauth.c: Regenerate.
4495 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4497 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4499 (bpstat_what): Use false instead of 0.
4501 2019-07-09 Pedro Alves <palves@redhat.com>
4503 * break-catch-throw.c (is_exception_catchpoint): New.
4504 * breakpoint.c (print_one_breakpoint_location): New parameter
4505 'raw_loc'. Handle it. Use
4506 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4507 looking at the breakpoint's type.
4508 (print_one_breakpoint): If handling "maint info breakpoints", also
4509 print locations of exception catchpoints.
4510 * breakpoint.h (is_exception_catchpoint): Declare.
4512 2019-07-09 Pedro Alves <palves@redhat.com>
4514 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4516 (allocate_location_exception_catchpoint): New.
4517 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4518 (initialize_throw_catchpoint_ops): Install
4519 allocate_location_exception_catchpoint as allocate_location
4521 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4522 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4524 (breakpoint_address_is_meaningful): Delete.
4525 (bl_address_is_meaningful): New.
4526 (breakpoint_locations_match): Adjust comment.
4527 (bp_location_from_bp_type): New, factored out of...
4528 (bp_location::bp_location(breakpoint *)): ... this.
4529 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4531 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4532 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4533 breakpoint_address_is_meaningful.
4534 (bp_locations_compare): Adjust comment.
4535 (update_global_location_list): Use bl_address_is_meaningful
4536 instead of breakpoint_address_is_meaningful.
4537 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4539 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4540 * python/py-breakpoint.c (bppy_get_location): No longer check
4541 whether location is null.
4543 2019-07-09 Pedro Alves <palves@redhat.com>
4546 * breakpoint.c (print_one_breakpoint_location): Remove
4547 single-location assert.
4549 2019-07-09 Tom Tromey <tom@tromey.com>
4551 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4552 * configure: Rebuild.
4553 * configure.ac: Change common to gdbsupport.
4554 * gdbsupport: Rename from common.
4555 * acinclude.m4: Change common to gdbsupport.
4556 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4557 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4559 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4560 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4561 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4562 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4563 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4564 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4565 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4566 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4567 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4568 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4569 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4570 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4571 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4572 coff-pe-read.c, command.h, compile/compile-c-support.c,
4573 compile/compile-c.h, compile/compile-cplus-symbols.c,
4574 compile/compile-cplus-types.c, compile/compile-cplus.h,
4575 compile/compile-loc2c.c, compile/compile.c, completer.c,
4576 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4577 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4578 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4579 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4580 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4581 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4582 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4583 features/aarch64-core.c, features/aarch64-fpu.c,
4584 features/aarch64-pauth.c, features/aarch64-sve.c,
4585 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4586 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4587 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4588 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4589 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4590 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4591 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4592 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4593 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4594 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4595 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4596 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4597 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4598 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4599 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4600 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4601 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4602 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4603 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4604 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4605 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4606 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4607 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4608 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4609 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4610 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4611 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4612 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4613 minsyms.c, mips-linux-tdep.c, namespace.h,
4614 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4615 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4616 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4617 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4618 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4619 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4620 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4621 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4622 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4623 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4624 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4625 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4626 procfs.c, producer.c, progspace.h, psymtab.h,
4627 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4628 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4629 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4630 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4631 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4632 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4633 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4634 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4635 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4636 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4637 target-memory.c, target.c, target.h, target/waitstatus.c,
4638 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4639 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4640 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4641 unittests/array-view-selftests.c,
4642 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4643 unittests/common-utils-selftests.c,
4644 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4645 unittests/format_pieces-selftests.c,
4646 unittests/function-view-selftests.c,
4647 unittests/lookup_name_info-selftests.c,
4648 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4649 unittests/mkdir-recursive-selftests.c,
4650 unittests/observable-selftests.c,
4651 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4652 unittests/parse-connection-spec-selftests.c,
4653 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4654 unittests/scoped_fd-selftests.c,
4655 unittests/scoped_mmap-selftests.c,
4656 unittests/scoped_restore-selftests.c,
4657 unittests/string_view-selftests.c, unittests/style-selftests.c,
4658 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4659 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4660 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4661 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4662 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4663 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4665 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4667 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4669 (decode_digits_ordinary): Set explicit_line field in sal.
4670 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4671 symtab_and_line that was set on an explicit line number in
4672 assembler code. Do always update the recorded symtab and line if
4673 we do skip the prologue.
4675 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4677 * breakpoint.c (set_breakpoint_location_function): Remove
4678 explicit_loc parameter.
4679 (momentary_breakpoint_from_master): Update call to
4680 set_breakpoint_location_function.
4681 (add_location_to_breakpoint): Likewise.
4683 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4685 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4686 required features based on default bfd type when no specific bfd
4689 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4691 * NEWS: Mention that GDB printf and eval commands can now print
4692 C-style and Ada-style convenience var strings without
4693 calling the inferior.
4694 * printcmd.c (printf_c_string): Locally print GDB internal var
4695 instead of transiting via the inferior.
4696 (printf_wide_c_string): Likewise.
4698 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4700 PR breakpoints/25011
4701 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4703 2019-07-04 Tom Tromey <tom@tromey.com>
4706 * tui/tui-winsource.c (tui_clear_source_content): Update.
4707 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4708 (tui_update_breakpoint_info): Update.
4709 (tui_set_exec_info_content): Update.
4710 * tui/tui-source.c (tui_set_source_content_nil): Update.
4711 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4713 * tui/tui-data.h (enum tui_bp_flag): New.
4714 (tui_bp_flags): New enum flags type.
4715 (struct tui_source_element) <break_mode>: Change type. Rename
4717 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4718 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4720 * tui/tui-winsource.h: Fix comment.
4722 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4724 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4725 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4726 (store_fpregs_to_thread)
4727 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4728 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4729 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4730 (IWMMXT_REGS_SIZE): Add define.
4731 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4732 (fetch_vfp_regs, store_vfp_regs)
4733 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4734 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4736 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4738 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4740 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4741 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4742 (ARM_INT_REGISTER_SIZE): ...to this.
4743 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4744 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4745 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4746 (arm_linux_collect_gregset, supply_nwfpe_register)
4747 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4749 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4750 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4751 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4752 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4753 (arm_return_in_memory, arm_store_return_value)
4754 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4755 (arm_record_ld_st_multiple): Likewise.
4756 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4757 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4759 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4761 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4762 AARCH64_DISPLACED_MODIFIED_INSNS.
4763 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4764 (aarch64_displaced_step_copy_insn): Likewise.
4765 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4766 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4767 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4768 ARM_DISPLACED_MODIFIED_INSNS.
4769 * arm-tdep.c (arm_gdbarch_init): Likewise.
4770 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4771 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4772 (struct arm_displaced_step_closure): Use
4773 ARM_DISPLACED_MODIFIED_INSNS.
4775 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4777 * features/Makefile: Remove unused xml files.
4778 * features/aarch64.xml: Remove.
4779 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4780 * features/i386/amd64-avx-avx512.xml: Remove.
4781 * features/i386/amd64-avx-linux.xml: Remove.
4782 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4783 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4784 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4785 * features/i386/amd64-avx-mpx.xml: Remove.
4786 * features/i386/amd64-avx.xml: Remove.
4787 * features/i386/amd64-linux.xml: Remove.
4788 * features/i386/amd64-mpx-linux.xml: Remove.
4789 * features/i386/amd64-mpx.xml: Remove.
4790 * features/i386/amd64.xml: Remove.
4791 * features/i386/i386-avx-avx512-linux.xml: Remove.
4792 * features/i386/i386-avx-avx512.xml: Remove.
4793 * features/i386/i386-avx-linux.xml: Remove.
4794 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4795 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4796 * features/i386/i386-avx-mpx-linux.xml: Remove.
4797 * features/i386/i386-avx-mpx.xml: Remove.
4798 * features/i386/i386-avx.xml: Remove.
4799 * features/i386/i386-linux.xml: Remove.
4800 * features/i386/i386-mmx-linux.xml: Remove.
4801 * features/i386/i386-mmx.xml: Remove.
4802 * features/i386/i386-mpx-linux.xml: Remove.
4803 * features/i386/i386-mpx.xml: Remove.
4804 * features/i386/i386.xml: Remove.
4805 * features/i386/x32-avx-avx512-linux.xml: Remove.
4806 * features/i386/x32-avx-linux.xml: Remove.
4807 * features/i386/x32-linux.xml: Remove.
4809 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4811 * regformats/aarch64.dat: Remove.
4812 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4813 * regformats/i386/amd64-avx-linux.dat: Remove.
4814 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4815 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4816 * regformats/i386/amd64-linux.dat: Remove.
4817 * regformats/i386/amd64-mpx-linux.dat: Remove.
4818 * regformats/i386/amd64.dat: Remove.
4819 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4820 * regformats/i386/i386-avx-linux.dat: Remove.
4821 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4822 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4823 * regformats/i386/i386-linux.dat: Remove.
4824 * regformats/i386/i386-mmx-linux.dat: Remove.
4825 * regformats/i386/i386-mpx-linux.dat: Remove.
4826 * regformats/i386/i386.dat: Remove.
4827 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4828 * regformats/i386/x32-avx-linux.dat: Remove.
4829 * regformats/i386/x32-linux.dat: Remove.
4831 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4833 * aarch64-tdep.c: Remove xml self tests.
4834 * amd64-linux-tdep.c: Likewise.
4835 * amd64-tdep.c: Likewise.
4836 * i386-linux-tdep.c: Likewise.
4837 * i386-tdep.c: Likewise.
4839 2019-07-03 Pedro Alves <palves@redhat.com>
4842 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4843 (pipe_cmd_option_defs): New.
4844 (make_pipe_cmd_options_def_group): New.
4845 (pipe_command): Use gdb::option::process_options.
4846 (pipe_command_completer): New function.
4847 (_initialize_cli_cmds): Install completer for "pipe" command.
4849 2019-07-03 Pedro Alves <palves@redhat.com>
4851 * cli/cli-option.c (union option_value) <string>: New field.
4852 (struct option_def_and_value): Add ctor, move ctor, dtor and
4853 use DISABLE_COPY_AND_ASSIGN.
4854 (option_def_and_value::clear_value): New.
4855 (parse_option, save_option_value_in_ctx, get_val_type_str)
4856 (add_setshow_cmds_for_options): Handle var_string.
4857 * cli-option.h (union option_def::var_address) <string>: New
4859 (struct string_option_def): New.
4860 * maint-test-options.c (struct test_options_opts): Add default
4861 ctor and use DISABLE_COPY_AND_ASSIGN.
4862 <string_opt>: New field.
4863 (test_options_opts::~test_options_opts): New.
4864 (test_options_opts::dump): Also dump "-string".
4865 (test_options_option_defs): Install "string.
4867 2019-07-03 Pedro Alves <palves@redhat.com>
4869 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4870 option_value with a null enumeration.
4871 (complete_options): Save the option values in the context.
4872 (save_option_value_in_ctx): New, factored out from ...
4873 (process_options): ... here.
4874 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4876 * maint-test-options.c (test_options_opts::dump): New, factored
4878 (maintenance_test_options_command_mode): ... here.
4879 (maintenance_test_options_command_completion_result): Delete.
4880 (maintenance_test_options_command_completion_text): Update
4882 (maintenance_show_test_options_completion_result): Change
4883 prototype. Just print
4884 maintenance_test_options_command_completion_text.
4885 (save_completion_result): New.
4886 (maintenance_test_options_completer_mode): Pass options context to
4887 complete_options, and then save a dump.
4888 (_initialize_maint_test_options): Use add_cmd to install "maint
4889 show test-options-completion-result".
4891 2019-07-03 Pedro Alves <palves@redhat.com>
4893 * NEWS (New commands): Mention "with" and "maint with".
4894 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4895 (with_command, with_command_completer): New.
4896 (pipe_command): Adjust to new repeat_previous
4898 (_initialize_cli_cmds): Install the "with" command and its "w"
4900 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4902 * cli/cli-setshow.c (parse_cli_var_uinteger)
4903 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4904 argument strings for all var_types.
4905 (get_setshow_command_value_string): New, factored out from ...
4906 (do_show_command): ... this.
4907 * cli/cli-setshow.h: Include <string>.
4908 (get_setshow_command_value_string): Declare.
4909 * command.h (repeat_previous): Now returns const char *. Adjust
4911 * maint.c: Include "cli/cli-cmds.h".
4912 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4913 (_initialize_maint_cmds): Register the "maintenance with" command.
4914 * top.c (repeat_previous): Move bits from pipe_command here:
4915 Return the saved command line, if any; error out if there's no
4916 command to relaunch.
4918 2019-07-03 Pedro Alves <palves@redhat.com>
4920 * NEWS (New commands): Mention "maint set/show test-settings"
4921 instead of "maint test-settings".
4922 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4923 (maintenance_test_settings_set_list): Rename to ...
4924 (maintenance_set_test_settings_list): ... this.
4925 (maintenance_test_settings_show_list): Rename to ...
4926 (maintenance_show_test_settings_list): ... this.
4927 (maintenance_test_settings_cmd): Delete.
4928 (maintenance_test_settings_set_cmd): ...
4929 (maintenance_set_test_settings_cmd): ... this.
4930 (maintenance_test_settings_show_cmd): ...
4931 (maintenance_show_test_settings_cmd): ... this.
4932 (maintenance_test_settings_show_value_cmd):
4933 (maintenance_show_test_settings_value_cmd): ... this.
4934 (_initialize_maint_test_settings): No longer install the "maint
4935 test-settings" prefix command. Rename "maint test-settings set"
4936 to "maint set test-settings", and "maint test-settings show" to
4937 "maint show test-settings". Adjust all subcommands.
4939 2019-07-03 Pedro Alves <palves@redhat.com>
4941 * maint-test-settings.c: Fix file's intro comment. Replace all
4942 references to "test-options" with references to "test-settings",
4945 2019-07-03 Pedro Alves <palves@redhat.com>
4947 * maint-test-settings.c (maintenance_test_settings_xxx)
4948 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4950 (maintenance_test_settings_enums): Use them.
4951 (maintenance_test_settings_enum): Default to
4952 maintenance_test_settings_xxx.
4953 (_initialize_maint_test_settings): Initialize
4954 MAINTENANCE_TEST_SETTINGS_FILENAME.
4956 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4958 * breakpoint.h (remove_breakpoints_inf): Change return type to
4959 void, move function documentation here.
4960 * breakpoint.c (remove_breakpoints_inf): Change return type to
4961 void, move function documentation to header.
4963 2019-07-02 Pedro Alves <palves@redhat.com>
4965 * NEWS (Completion improvements): Mention "info threads".
4966 * thread.c (struct info_threads_opts, info_threads_option_defs)
4967 (make_info_threads_options_def_group): New.
4968 (info_threads_command): Use gdb::option::process_options.
4969 (info_threads_command_completer): New.
4970 (_initialize_thread): Use gdb::option::build_help to build the
4971 help text for "info threads".
4973 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4975 * defs.h (generic_load): Move from here...
4976 * symfile.h (generic_load): ... to here. Rename name parameter
4978 * symfile.c (generic_load): Add comment.
4980 2019-07-01 Tom Tromey <tromey@adacore.com>
4983 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
4984 declaration of without_params. Fix formatting.
4986 2019-07-01 Tom Tromey <tromey@adacore.com>
4988 * ada-exp.y (find_primitive_type): Update.
4989 * ada-lang.h (ada_lookup_symbol): Update.
4990 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
4992 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
4994 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
4996 PR breakpoints/24541
4997 * gdbarch.c: Regenerate.
4998 * gdbarch.h: Regenerate.
4999 * gdbarch.sh: Add 'stap_adjust_register'.
5000 * i386-tdep.c: Include '<unordered_set>'.
5001 (i386_stap_adjust_register): New function.
5002 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5003 * stap-probe.c (stap_parse_register_operand): Call
5004 'gdbarch_stap_adjust_register'.
5006 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5009 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5010 * python/python.c (do_start_initialization): Use 'xmalloc'
5011 instead of 'PyMem_Malloc'.
5013 2019-06-28 Tom Tromey <tromey@adacore.com>
5015 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5018 2019-06-27 Tom Tromey <tromey@adacore.com>
5020 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5022 (arm_find_mapping_symbol, arm_record_special_symbol)
5023 (_initialize_arm_tdep): Update.
5024 (arm_objfile_data_free): Remove.
5026 2019-06-27 Tom Tromey <tromey@adacore.com>
5028 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5029 to cp_print_static_field.
5031 2019-06-26 Tom Tromey <tromey@adacore.com>
5033 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5034 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5037 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5039 * features/aarch64-core.c (create_feature_aarch64_core):
5041 * features/aarch64-core.xml: Add cpsr flags.
5043 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5045 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5046 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5048 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5050 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5052 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5054 (arm_record_special_symbol): Don't insert new symbol in sorted
5055 position, push it at the end.
5057 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5059 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5060 (arm_mapping_symbol_s): Remove.
5061 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5062 (arm_mapping_symbol_vec): New typedef.
5063 (struct arm_per_objfile): Add constructor.
5064 <section_maps>: Change type to
5065 std::unique_ptr<arm_mapping_symbol_vec[]>.
5066 (arm_compare_mapping_symbols): Remove.
5067 (arm_find_mapping_symbol): Adjust to section_maps type change.
5068 (arm_objfile_data_free): Call delete on arm_per_objfile.
5069 (arm_record_special_symbol): Adjust to section_maps type change.
5070 Allocate arm_per_objfile with new.
5072 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5074 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5075 with the command prefix.
5077 2019-06-25 Tom Tromey <tom@tromey.com>
5079 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5080 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5082 2019-06-25 Tom Tromey <tom@tromey.com>
5084 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5086 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5089 2019-06-25 Tom Tromey <tom@tromey.com>
5091 * tui/tui-winsource.c
5092 (tui_source_window_base::set_is_exec_point_at): Add check against
5095 2019-06-25 Tom Tromey <tom@tromey.com>
5097 * tui/tui-source.c (tui_set_source_content): Don't check before
5099 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5101 2019-06-25 Tom Tromey <tom@tromey.com>
5103 * tui/tui-winsource.h (tui_update_source_window_as_is)
5104 (tui_alloc_source_buffer, tui_line_is_displayed)
5105 (tui_addr_is_displayed): Change type of win_info.
5106 * tui/tui-winsource.c (tui_update_source_window_as_is)
5107 (tui_clear_source_content, tui_show_source_line)
5108 (tui_show_source_content, tui_source_window_base::refill)
5109 (tui_source_window_base::set_is_exec_point_at)
5110 (tui_source_window_base::set_is_exec_point_at)
5111 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5112 (tui_alloc_source_buffer, tui_line_is_displayed)
5113 (tui_addr_is_displayed): Change type of win_info. Update.
5114 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5115 (tui_source_window_base::do_make_visible_with_new_height):
5117 * tui/tui-source.c (tui_set_source_content)
5118 (tui_set_source_content_nil)
5119 (tui_source_window::do_scroll_vertical): Update.
5120 * tui/tui-layout.c (show_layout): Update.
5121 * tui/tui-disasm.c (tui_set_disassem_content)
5122 (tui_disasm_window::do_scroll_vertical): Update.
5123 * tui/tui-data.h (tui_win_content): Remove.
5124 (struct tui_gen_win_info) <content, content_size>: Remove.
5125 (struct tui_source_element): Add initializers and destructor.
5126 (union tui_which_element, struct tui_win_element): Remove.
5127 (struct tui_source_window_base) <content>: New field.
5128 (struct tui_data_window): Remove destructor.
5129 (tui_alloc_content, tui_free_win_content)
5130 (tui_free_all_source_wins_content): Don't declare.
5131 * tui/tui-data.c (tui_initialize_static_data): Update.
5132 (init_content_element, tui_alloc_content): Remove.
5133 (~tui_gen_win_info): Update.
5134 (~tui_data_window, tui_free_all_source_wins_content)
5135 (tui_free_win_content, free_content, free_content_elements):
5138 2019-06-25 Tom Tromey <tom@tromey.com>
5140 * tui/tui-winsource.h (tui_clear_source_content)
5141 (tui_erase_source_content, tui_show_source_content): Change type
5143 * tui/tui-winsource.c (tui_clear_source_content)
5144 (tui_erase_source_content, tui_show_source_content): Change type
5146 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5147 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5149 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5151 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5153 2019-06-25 Tom Tromey <tom@tromey.com>
5155 * tui/tui-winsource.c (tui_clear_source_content)
5156 (tui_source_window_base::set_is_exec_point_at): Update.
5157 * tui/tui-source.c (tui_set_source_content_nil): Update.
5158 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5160 * tui/tui-data.c (init_content_element): Update.
5162 2019-06-25 Tom Tromey <tom@tromey.com>
5164 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5165 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5166 * tui/tui-layout.c (init_and_make_win): Update.
5167 * tui/tui.h (enum tui_win_type): Update.
5168 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5169 tui_win_is_auxillary.
5170 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5171 tui_win_is_auxillary.
5173 2019-06-25 Tom Tromey <tom@tromey.com>
5175 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5176 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5177 (tui_delete_data_content_windows, tui_display_all_data)
5178 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5180 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5181 * tui/tui-regs.c (tui_last_regs_line_no)
5182 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5183 (tui_show_registers): Update.
5184 (tui_show_register_group): Return void. Update.
5185 (tui_display_registers_from, tui_display_reg_element_at_line)
5186 (tui_display_registers_from_line, tui_check_register_values):
5188 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5190 (struct tui_data_window) <regs_content>: Now a std::vector.
5191 <regs_content_count>: Remove.
5192 (tui_add_content_elements, tui_free_data_content): Don't declare.
5193 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5194 (init_content_element): Remove DATA_WIN case. Add assert.
5195 (tui_add_content_elements): Remove.
5196 (tui_data_window): Update.
5197 (tui_free_data_content): Remove.
5198 (free_content_elements): Remove DATA_WIN case.
5200 2019-06-25 Tom Tromey <tom@tromey.com>
5202 * tui/tui-data.c (tui_data_item_window): Update.
5203 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5204 * tui/tui-windata.c (tui_display_all_data)
5205 (tui_display_data_from_line): Update.
5206 (tui_check_data_values): Remove.
5207 * tui/tui-regs.c (tui_show_register_group)
5208 (tui_display_reg_element_at_line): Update.
5209 * tui/tui-hooks.c (tui_register_changed)
5210 (tui_refresh_frame_and_register_information): Call
5211 tui_check_register_values.
5212 * tui/tui-data.h (struct tui_data_window) <data_content,
5213 data_content_count, data_type>: Remove.
5214 (enum tui_data_type): Remove.
5216 * tui/tui-data.c (tui_data_window::clear_detail)
5217 (~tui_data_window): Update.
5219 2019-06-25 Tom Tromey <tom@tromey.com>
5221 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5223 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5224 Rename from tui_first_data_item_displayed. Update.
5225 (tui_data_window::refresh_all)
5226 (tui_data_window::do_scroll_vertical): Update.
5227 * tui/tui-data.h (struct tui_data_window)
5228 <first_data_item_displayed>: Declare new method.
5230 2019-06-25 Tom Tromey <tom@tromey.com>
5232 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5233 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5235 (tui_initialize_static_data): ...here.
5237 2019-06-25 Tom Tromey <tom@tromey.com>
5239 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5240 (tui_display_registers_from, tui_check_register_values): Update.
5241 (tui_display_register): Remove win_info parameter; update.
5242 (tui_get_register): Change type of parameters.
5243 * tui/tui-data.h (struct tui_data_element): Remove.
5244 (union tui_which_element) <data>: Remove.
5245 <data_window>: Change type.
5246 (struct tui_data_item_window): New.
5247 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5249 (~tui_data_item_window): New destructor.
5250 (free_content_elements): Remove DATA_ITEM_WIN case.
5252 2019-06-25 Tom Tromey <tom@tromey.com>
5254 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5257 2019-06-25 Tom Tromey <tom@tromey.com>
5259 * tui/tui-data.h (struct tui_command_element): Remove.
5260 (union tui_which_element) <command>: Remove.
5261 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5263 (free_content_elements): Remove CMD_WIN case.
5265 2019-06-25 Tom Tromey <tom@tromey.com>
5267 * tui/tui-layout.c (tui_set_layout): Update.
5268 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5269 * tui/tui-data.c (layout_def): Update.
5271 2019-06-25 Tom Tromey <tom@tromey.com>
5273 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5274 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5275 (tui_source_window_base::set_new_height): Update.
5276 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5278 (tui_set_locator_fullname, tui_set_locator_info)
5279 (tui_show_frame_info): Update.
5280 * tui/tui-source.c (tui_set_source_content)
5281 (tui_source_is_displayed): Update.
5282 * tui/tui-layout.c (show_source_disasm_command, show_data)
5283 (show_source_or_disasm_and_command): Update.
5284 * tui/tui-disasm.c (tui_set_disassem_content)
5285 (tui_get_begin_asm_address): Update.
5286 * tui/tui-data.h (struct tui_locator_element): Remove.
5287 (union tui_which_element) <locator>: Remove.
5288 (struct tui_locator_window): New.
5289 (tui_locator_win_info_ptr): Change return type.
5290 * tui/tui-data.c (_locator): Change type.
5291 (tui_locator_win_info_ptr): Change return type.
5292 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5293 (tui_alloc_content): Add assert.
5295 2019-06-25 Tom Tromey <tom@tromey.com>
5297 * tui/tui-winsource.c
5298 (tui_exec_info_window::maybe_allocate_content): New method.
5299 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5300 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5301 (make_source_or_disasm_window): Add cast.
5302 * tui/tui-data.h (union tui_which_element) <simple_string>:
5304 (struct tui_source_info): New.
5305 (struct tui_source_window_base) <execution_info>: Change type.
5306 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5307 case, and add assert.
5308 (tui_alloc_content): Add assert.
5310 2019-06-25 Tom Tromey <tom@tromey.com>
5312 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5313 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5314 * tui/tui-data.c (tui_alloc_win_info): Remove.
5316 2019-06-25 Tom Tromey <tom@tromey.com>
5318 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5319 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5322 2019-06-25 Tom Tromey <tom@tromey.com>
5324 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5325 make_visible_with_new_height method.
5326 (tui_win_info::make_visible_with_new_height): New method.
5327 (tui_source_window_base::do_make_visible_with_new_height)
5328 (tui_data_window::do_make_visible_with_new_height)
5329 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5330 (make_visible_with_new_height): Remove.
5331 (tui_resize_all, tui_adjust_win_heights): Use
5332 make_visible_with_new_height method.
5333 * tui/tui-data.h (struct tui_win_info)
5334 <do_make_visible_with_new_height, make_visible_with_new_height>:
5336 (struct tui_source_window_base, struct tui_data_window)
5337 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5340 2019-06-25 Tom Tromey <tom@tromey.com>
5342 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5344 (update_tab_width): Call update_tab_width method.
5345 * tui/tui-data.h (struct tui_win_info)
5346 (struct tui_source_window_base) <update_tab_width>: New methods.
5348 2019-06-25 Tom Tromey <tom@tromey.com>
5350 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5352 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5354 (tui_gen_win_info::make_visible): Update.
5355 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5357 * tui/tui-data.h (enum tui_box): New enum.
5358 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5360 2019-06-25 Tom Tromey <tom@tromey.com>
5362 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5363 init_and_make_win for EXEC_INFO_WIN.
5364 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5366 (struct tui_win_info) <~tui_win_info>: Inline.
5367 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5369 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5370 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5372 (tui_initialize_static_data): Update.
5373 (~tui_gen_win_info): Handle more cleanup here.
5374 (~tui_source_window_base): Delete "execution_info".
5375 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5377 2019-06-25 Tom Tromey <tom@tromey.com>
5379 * tui/tui-layout.c (make_command_window): Don't set
5381 (show_source_disasm_command): Call the reset method.
5382 (show_data): Don't set can_highlight. Call the reset method.
5383 (tui_gen_win_info::reset): Rename from init_gen_win_info
5384 (init_and_make_win): Simplify. Return tui_gen_win_info.
5385 (show_source_or_disasm_and_command): Call the reset method.
5386 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5387 (struct tui_cmd_window): Set can_highlight.
5389 2019-06-25 Tom Tromey <tom@tromey.com>
5391 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5393 (tui_make_visible, tui_make_invisible): Rewrite.
5394 (tui_win_info::make_visible): Remove.
5395 (tui_source_window_base::make_visible): Update.
5396 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5397 method. Moved from...
5398 (struct tui_win_info) <make_visible>: ...here.
5400 2019-06-25 Tom Tromey <tom@tromey.com>
5402 * tui/tui-winsource.c
5403 (tui_source_window_base::do_scroll_horizontal): Remove direction
5405 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5406 direction parameter.
5407 * tui/tui-win.c (tui_win_info::forward_scroll)
5408 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5409 (tui_win_info::right_scroll): Update.
5410 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5411 direction parameter.
5412 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5413 direction parameter.
5414 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5415 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5416 Remove direction parameter.
5417 (struct tui_source_window_base, struct tui_source_window)
5418 (struct tui_disasm_window, struct tui_data_window)
5419 (struct tui_cmd_window): Update.
5421 2019-06-25 Tom Tromey <tom@tromey.com>
5423 * tui/tui-winsource.h (tui_set_exec_info_content)
5424 (tui_show_exec_info_content, tui_erase_exec_info_content)
5425 (tui_clear_exec_info_content, tui_update_exec_info): Change
5426 argument to tui_source_window_base.
5427 * tui/tui-winsource.c (tui_set_exec_info_content)
5428 (tui_show_exec_info_content, tui_erase_exec_info_content)
5429 (tui_clear_exec_info_content, tui_update_exec_info): Change
5430 argument to tui_source_window_base.
5432 2019-06-25 Tom Tromey <tom@tromey.com>
5434 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5435 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5437 2019-06-25 Tom Tromey <tom@tromey.com>
5439 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5442 2019-06-25 Tom Tromey <tom@tromey.com>
5444 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5446 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5448 * tui/tui-source.c (tui_set_source_content): Update.
5449 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5451 2019-06-25 Tom Tromey <tom@tromey.com>
5453 * tui/tui-win.c (window_name_completer, tui_set_focus)
5454 (tui_all_windows_info): Use name method.
5455 * tui/tui-data.h (struct tui_gen_win_info)
5456 (struct tui_source_window, struct tui_disasm_window)
5457 (struct tui_data_window, struct tui_cmd_window) <name>: New
5459 (tui_win_name): Don't declare.
5460 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5461 (tui_win_name): Remove.
5463 2019-06-25 Tom Tromey <tom@tromey.com>
5465 * tui/tui-winsource.h (tui_update_source_window)
5466 (tui_update_source_window_as_is): Change parameter type.
5467 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5468 to be a tui_source_window_base.
5469 (tui_update_source_window_as_is): Likewise.
5470 * tui/tui-win.c (make_visible_with_new_height): Update.
5472 2019-06-25 Tom Tromey <tom@tromey.com>
5474 * tui/tui-winsource.c (tui_erase_source_content)
5475 (tui_show_source_content, tui_show_exec_info_content)
5476 (tui_erase_exec_info_content): Use refresh_window method.
5477 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5478 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5479 from tui_refresh_win.
5480 (tui_data_window::refresh_window): New method.
5481 (tui_win_info::refresh, tui_source_window_base::refresh)
5482 (tui_refresh_all): Use refresh_window method.
5483 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5485 * tui/tui-regs.c (tui_display_register): Call refresh_window
5487 * tui/tui-layout.c (show_source_disasm_command)
5488 (show_source_or_disasm_and_command): Call refresh_window method.
5489 * tui/tui-data.h (struct tui_gen_win_info)
5490 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5493 2019-06-25 Tom Tromey <tom@tromey.com>
5495 * tui/tui.c (tui_rl_other_window, tui_enable)
5496 (tui_is_window_visible, tui_get_command_dimension): Update.
5497 * tui/tui-winsource.c (tui_update_source_window_as_is)
5498 (tui_clear_source_content, tui_erase_source_content)
5499 (tui_show_source_line, tui_source_window_base::refill)
5500 (tui_source_window_base::do_scroll_horizontal)
5501 (tui_source_window_base::set_is_exec_point_at)
5502 (tui_update_breakpoint_info, tui_set_exec_info_content)
5503 (tui_alloc_source_buffer, tui_line_is_displayed)
5504 (tui_addr_is_displayed): Update.
5505 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5506 (tui_check_and_display_highlight_if_needed)
5507 (tui_win_info::make_visible, tui_win_info::refresh)
5508 (tui_refresh_all): Update.
5509 * tui/tui-windata.c (tui_first_data_item_displayed)
5510 (tui_delete_data_content_windows, tui_erase_data_content)
5511 (tui_display_all_data, tui_data_window::refresh_all)
5512 (tui_check_data_values): Update.
5513 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5514 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5515 (tui_win_info::backward_scroll, tui_refresh_all_win)
5516 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5517 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5518 (tui_source_window_base::set_new_height)
5519 (tui_data_window::set_new_height)
5520 (make_invisible_and_set_new_height)
5521 (make_visible_with_new_height, new_height_ok)
5522 (parse_scrolling_args): Update.
5523 * tui/tui-stack.c (tui_show_frame_info): Update.
5524 * tui/tui-source.c (tui_set_source_content)
5525 (tui_set_source_content_nil, tui_source_is_displayed)
5526 (tui_source_window::do_scroll_vertical): Update.
5527 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5528 (tui_display_registers_from, tui_display_reg_element_at_line)
5529 (tui_check_register_values, tui_reg_command): Update.
5530 * tui/tui-layout.c (tui_default_win_height)
5531 (show_source_disasm_command, show_data, init_and_make_win)
5532 (show_source_or_disasm_and_command): Update.
5533 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5534 (tui_redisplay_readline, tui_mld_flush)
5535 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5537 * tui/tui-disasm.c (tui_set_disassem_content)
5538 (tui_disasm_window::do_scroll_vertical): Update.
5539 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5541 (struct tui_win_info): Derive from tui_gen_win_info.
5542 <~tui_win_info>: Mark as override.
5543 <generic>: Remove member.
5544 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5545 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5546 (~tui_data_window, ~tui_win_info)
5547 (tui_free_all_source_wins_content): Update.
5548 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5550 2019-06-25 Tom Tromey <tom@tromey.com>
5552 * tui/tui-layout.c (init_and_make_win): Use new.
5553 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5554 destructor, initializers.
5555 (tui_alloc_generic_win_info): Don't declare.
5556 * tui/tui-data.c (_locator): Add argument to constructor.
5557 (source_win, disasm_win): New globals.
5558 (exec_info): Remove.
5559 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5561 (tui_alloc_generic_win_info): Remove.
5562 (init_content_element): Use new.
5563 (tui_win_info::tui_win_info): Update.
5564 (free_content_elements) <case DATA_WIN>: Use delete.
5566 2019-06-25 Tom Tromey <tom@tromey.com>
5568 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5569 * tui/tui-windata.c (tui_first_data_item_displayed)
5570 (tui_delete_data_content_windows): Update.
5571 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5572 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5573 (tui_display_registers_from, tui_check_register_values): Update.
5574 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5576 * tui/tui-data.c (init_content_element): Update. Allocate the new
5578 (tui_free_data_content): Update.
5579 (free_content_elements) <case DATA_WIN>: Free the window.
5581 2019-06-25 Tom Tromey <tom@tromey.com>
5583 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5585 * tui/tui-layout.c (make_command_window)
5586 (show_source_disasm_command, show_data, init_and_make_win)
5587 (show_source_or_disasm_and_command): Update.
5588 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5590 <can_highight, is_highlighted>: Now bool.
5591 (tui_set_win_highlight): Don't declare.
5592 * tui/tui-data.c (tui_set_win_highlight): Remove.
5594 2019-06-25 Tom Tromey <tom@tromey.com>
5596 * tui/tui-wingeneral.c (make_visible): Remove check of window
5599 2019-06-25 Tom Tromey <tom@tromey.com>
5601 * tui/tui-win.c (tui_win_info::max_height)
5602 (tui_cmd_window::max_height): New methods.
5603 (new_height_ok): Call max_height.
5604 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5605 <max_height>: New method.
5607 2019-06-25 Tom Tromey <tom@tromey.com>
5609 * tui/tui-win.c (tui_source_window_base::set_new_height)
5610 (tui_data_window::set_new_height): New methods.
5611 (make_invisible_and_set_new_height): Call set_new_height method.
5612 * tui/tui-data.h (struct tui_win_info)
5613 (struct tui_source_window_base, struct tui_data_window)
5614 <set_new_height>: New method.
5616 2019-06-25 Tom Tromey <tom@tromey.com>
5618 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5619 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5620 tui_refresh_data_win.
5621 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5623 (tui_refresh_all_win): Call the refresh_all method.
5624 (tui_set_focus): Likewise.
5625 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5626 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5629 2019-06-25 Tom Tromey <tom@tromey.com>
5631 * tui/tui-winsource.h (tui_refill_source_window)
5632 (tui_set_is_exec_point_at): Don't declare.
5633 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5634 (tui_source_window_base::refill): Rename from
5635 tui_refill_source_window.
5636 (tui_source_window_base::do_scroll_horizontal): Update.
5637 (tui_source_window_base::set_is_exec_point_at): Rename from
5638 tui_set_is_exec_point_at.
5639 (tui_update_all_breakpoint_info): Update.
5640 * tui/tui-stack.c (tui_show_frame_info): Update.
5641 * tui/tui-layout.c (show_data): Add cast.
5642 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5643 * tui/tui-data.h (struct tui_source_window_base) <refill,
5644 set_is_exec_point_at>: New methods.
5645 (tui_source_windows, tui_add_to_source_windows): Update types.
5646 (tui_add_to_source_windows): Remove redundant declaration.
5647 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5648 (tui_source_windows): Change return type.
5649 (tui_clear_source_windows_detail): Update.
5650 (tui_add_to_source_windows): Change type of parameter.
5651 (tui_free_all_source_wins_content): Update.
5653 2019-06-25 Tom Tromey <tom@tromey.com>
5655 * tui/tui-wingeneral.c (tui_win_info::refresh)
5656 (tui_source_window_base::refresh): New methods.
5657 (tui_refresh_all): Call the refresh method.
5658 * tui/tui-data.h (struct tui_win_info)
5659 (struct tui_source_window_base) <refresh>: New method.
5661 2019-06-25 Tom Tromey <tom@tromey.com>
5663 * tui/tui.h (tui_is_window_visible): Return bool.
5664 * tui/tui.c (tui_is_window_visible): Return bool.
5665 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5666 (tui_make_visible, tui_make_invisible)
5667 (tui_win_info::make_visible)
5668 (tui_source_window_base::make_visible, make_all_visible)
5669 (tui_make_all_visible, tui_make_all_invisible): Update.
5670 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5671 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5673 (struct tui_win_info, struct tui_source_window_base)
5674 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5675 * tui/tui-data.c (tui_init_generic_part): Update.
5677 2019-06-25 Tom Tromey <tom@tromey.com>
5679 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5680 (tui_source_window_base::make_visible): New methods.
5681 (make_all_visible): Make method call.
5682 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5683 (struct tui_source_window_base, struct tui_cmd_window): Override
5685 (tui_win_is_source_type): Don't declare.
5686 * tui/tui-data.c (tui_win_is_source_type): Remove.
5688 2019-06-25 Tom Tromey <tom@tromey.com>
5690 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5693 2019-06-25 Tom Tromey <tom@tromey.com>
5695 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5696 Inline constructor. Add initializers for members.
5697 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5698 constructors; now inline in class.
5700 2019-06-25 Tom Tromey <tom@tromey.com>
5702 * tui/tui-regs.c (tui_show_registers): Update.
5703 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5705 * tui/tui-data.c (tui_data_window::clear_detail)
5706 (tui_data_window): Update.
5708 2019-06-25 Tom Tromey <tom@tromey.com>
5710 * tui/tui-windata.c (tui_display_all_data)
5711 (tui_display_data_from_line, tui_display_data_from)
5712 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5714 * tui/tui-regs.c (tui_last_regs_line_no)
5715 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5716 (tui_show_registers, tui_show_register_group)
5717 (tui_display_registers_from, tui_display_reg_element_at_line)
5718 (tui_display_registers_from_line, tui_check_register_values)
5719 (tui_reg_next, tui_reg_prev): Update.
5720 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5721 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5723 (struct tui_win_info) <detail>: Remove. Add new fields from
5725 (TUI_DATA_WIN): Add cast.
5726 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5727 (~tui_data_window): Simplify.
5729 2019-06-25 Tom Tromey <tom@tromey.com>
5731 * tui/tui-layout.c (show_source_disasm_command)
5732 (show_source_or_disasm_and_command): Update.
5733 * tui/tui-io.c (update_cmdwin_start_line)
5734 (tui_redisplay_readline): Update.
5735 * tui/tui-data.h (struct tui_command_info): Remove.
5736 (struct tui_win_info) <detail>: Remove command_info member.
5737 (struct tui_data_window) <start_line>: New member, from
5739 (TUI_CMD_WIN): Add casts.
5741 2019-06-25 Tom Tromey <tom@tromey.com>
5743 * tui/tui-winsource.c (tui_update_source_window)
5744 (tui_refill_source_window)
5745 (tui_source_window_base::do_scroll_horizontal)
5746 (tui_update_breakpoint_info, tui_set_exec_info_content)
5747 (tui_show_exec_info_content, tui_erase_exec_info_content)
5748 (tui_clear_exec_info_content): Update.
5749 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5751 * tui/tui-win.c (make_invisible_and_set_new_height)
5752 (make_visible_with_new_height): Update.
5753 * tui/tui-source.c (tui_set_source_content)
5754 (tui_show_symtab_source): Update.
5755 * tui/tui-layout.c (extract_display_start_addr)
5756 (show_source_disasm_command, show_data)
5757 (make_source_or_disasm_window)
5758 (show_source_or_disasm_and_command): Update.
5759 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5760 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5762 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5763 to tui_source_window_base.
5764 (struct tui_win_info) <detail>: Remove source_info member.
5765 (struct tui_source_window_base) <has_locator>: Inline.
5766 Move contents from tui_source_info; rename has_locator member to
5768 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5769 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5771 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5773 (tui_free_all_source_wins_content): Cast to
5774 tui_source_window_base.
5776 2019-06-25 Tom Tromey <tom@tromey.com>
5778 * tui/tui-win.c (make_invisible_and_set_new_height)
5779 (make_visible_with_new_height): Call has_locator method.
5780 * tui/tui-layout.c (show_source_disasm_command, show_data)
5781 (show_source_or_disasm_and_command): Update for bool change.
5782 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5783 (tui_win_info) <has_locator>: New method.
5784 (struct tui_source_window_base) <has_locator>: New method.
5785 (tui_win_has_locator): Don't declare.
5786 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5787 from tui_win_has_locator.
5788 (tui_source_window_base): Use false, not FALSE.
5790 2019-06-25 Tom Tromey <tom@tromey.com>
5792 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5793 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5794 clear_detail method directly.
5795 (tui_clear_win_detail): Remove.
5797 2019-06-25 Tom Tromey <tom@tromey.com>
5799 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5800 "this", not TUI_DISASM_WIN.
5802 2019-06-25 Tom Tromey <tom@tromey.com>
5804 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5806 * tui/tui-winsource.c
5807 (tui_source_window_base::do_scroll_horizontal): Rename from
5808 tui_horizontal_source_scroll.
5809 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5810 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5811 from tui_vertical_data_scroll.
5812 * tui/tui-win.h (tui_scroll): Don't declare.
5813 * tui/tui-win.c (tui_win_info::forward_scroll)
5814 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5815 (tui_win_info::right_scroll): Rename and update.
5816 (tui_scroll_forward_command, tui_scroll_backward_command)
5817 (tui_scroll_left_command, tui_scroll_right_command): Update.
5818 (tui_scroll): Remove.
5819 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5820 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5821 from tui_vertical_source_scroll.
5822 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5823 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5824 from tui_vertical_disassem_scroll.
5825 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5826 do_scroll_horizontal>: New methods.
5827 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5829 (struct tui_source_window_base): Add do_scroll_horizontal.
5830 (struct tui_source_window, struct tui_disasm_window): Add
5832 (struct tui_data_window, struct tui_cmd_window): Add
5833 do_scroll_horizontal and do_scroll_vertical.
5834 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5836 2019-06-25 Tom Tromey <tom@tromey.com>
5838 * tui/tui-data.h (struct tui_source_window_base): New struct.
5839 (struct tui_source_window): Derive from tui_source_window_base.
5840 (struct tui_disasm_window): New struct.
5841 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5842 from tui_source_window::clear_detail.
5843 (tui_source_window_base): Rename from tui_source_window.
5844 (~tui_source_window_base): Rename from ~tui_source_window.
5845 (tui_alloc_win_info): Create a tui_disasm_window.
5847 2019-06-25 Tom Tromey <tom@tromey.com>
5849 * tui/tui-data.h (struct tui_source_window)
5850 (struct tui_data_window): Declare destructors.
5851 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5853 (tui_win_info): Simplify.
5855 2019-06-25 Tom Tromey <tom@tromey.com>
5857 * tui/tui-winsource.c (tui_display_main)
5858 (tui_update_source_windows_with_addr)
5859 (tui_update_all_breakpoint_info): Update.
5860 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5861 (new_height_ok, parse_scrolling_args): Update.
5862 * tui/tui-stack.c (tui_show_frame_info): Update.
5863 * tui/tui-data.h (struct tui_list): Remove.
5864 (tui_source_windows): Return a reference to a std::vector.
5865 * tui/tui-data.c (source_windows): Now a std::vector.
5866 (tui_source_windows): Change return type.
5867 (tui_clear_source_windows): Rewrite.
5868 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5869 (tui_free_all_source_wins_content): Rewrite.
5871 2019-06-25 Tom Tromey <tom@tromey.com>
5873 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5874 (struct tui_data_window, struct tui_cmd_window): Declare
5875 clear_detail method.
5876 * tui/tui-data.c (tui_source_window::clear_detail)
5877 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5879 (tui_clear_win_detail): Simplify.
5881 2019-06-25 Tom Tromey <tom@tromey.com>
5883 * tui/tui-layout.c (make_source_window, make_disasm_window)
5884 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5885 Return the new window.
5886 (show_source_disasm_command, show_data)
5887 (show_source_or_disasm_and_command): Update.
5889 2019-06-25 Tom Tromey <tom@tromey.com>
5891 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5892 parameter. Return the new window.
5893 (show_source_disasm_command): Update and remove NULL check.
5894 (show_source_or_disasm_and_command): Update.
5896 2019-06-25 Tom Tromey <tom@tromey.com>
5898 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5900 2019-06-25 Tom Tromey <tom@tromey.com>
5902 * tui/tui-data.h (struct tui_win_info): Make constructor
5903 protected. Make destructor virtual. Add initializers.
5904 (tui_source_window, tui_data_window, tui_cmd_window): New
5906 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5907 constructor. Add "type" parameter.
5908 (tui_source_window, tui_data_window, tui_cmd_window): New
5910 (tui_alloc_win_info): Instantiate the appropriate subclass.
5912 2019-06-25 Tom Tromey <tom@tromey.com>
5914 * tui/tui-win.c (tui_resize_all): Use delete.
5915 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5917 (tui_free_window): Don't declare.
5918 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5921 2019-06-25 Tom Tromey <tom@tromey.com>
5923 * tui/tui-data.h (struct tui_win_info): Add constructor.
5924 * tui/tui-data.c (tui_alloc_win_info): Use new.
5925 (tui_free_window): Use delete.
5927 2019-06-22 Tom Tromey <tom@tromey.com>
5929 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5931 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5933 2019-06-22 Tom Tromey <tom@tromey.com>
5935 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5937 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5939 2019-06-22 Tom de Vries <tdevries@suse.de>
5941 * dwarf2read.c (create_addrmap_from_aranges)
5942 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5945 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5947 * dwarf2read.h (dwarf2_section_info_def): Remove.
5948 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5949 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5950 std::vector<dwarf2_section_info>.
5951 (struct dwo_file) <~dwo_file>: Remove.
5952 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5954 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5955 (dwarf2_read_debug_names): Likewise.
5956 (create_debug_types_hash_table): Change parameter type to
5957 array_view, adjust code accordingly.
5958 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5959 (partial_die_info::fixup): Likewise.
5960 (determine_prefix): Likewise.
5961 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5963 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5965 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5967 <~dwo_file>: Remove call to gdb_bfd_unref.
5968 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5969 gdb_bfd_ref_ptr::get.
5971 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5973 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5975 * dwarf2read.c (struct dwo_file): Initialize fields.
5977 (free_dwo_file): Remove, move content to ~dwo_file.
5978 (struct dwo_file_deleter): Remove.
5979 (dwo_file_up>: Remove custom deleter.
5980 (free_dwo_files): Remove.
5981 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5983 (process_skeletonless_type_units): Call unique_ptr::get.
5984 (allocate_dwo_file_hash_table): Add deleter to created hash
5985 table. Change return type to htab_up.
5986 (lookup_dwo_file_slot): Don't memset dwo_file, call
5988 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
5989 (create_dwo_unit_in_dwp_v2): Likewise.
5990 (open_and_init_dwo_file): Likewise.
5991 (free_dwo_file_from_slot): Remove.
5993 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5995 * dwarf2read.h (struct dwarf2_section_info) <readin,
5996 is_virtual>: Change type to bool.
5997 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6000 2019-06-19 Tom Tromey <tom@tromey.com>
6002 * tui/tui-data.h (tui_init_content_element): Don't declare.
6004 2019-06-19 Tom Tromey <tom@tromey.com>
6006 * tui/tui-data.h (tui_init_win_info): Don't declare.
6008 2019-06-19 Tom de Vries <tdevries@suse.de>
6010 * dwarf2read.h (abstract_to_concrete): Change type to
6011 std::unordered_map<sect_offset, std::vector<sect_offset>,
6012 gdb::hash_enum<sect_offset>>.
6014 2019-06-19 Tom Tromey <tromey@adacore.com>
6016 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6017 EVAL_AVOID_SIDE_EFFECTS specially.
6019 2019-06-19 Tom Tromey <tromey@adacore.com>
6021 * source-cache.c (highlighter): New global.
6022 (source_cache::get_source_lines): Create a highlighter on demand.
6024 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6026 * defs.h (deprecated_interactive_hook): Delete declaration.
6027 * interps.c (clear_interpreter_hooks): Remove use of
6028 deprecated_interactive_hook.
6029 * top.c (deprecated_interactive_hook): Delete definition.
6030 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6032 2019-06-18 Tom de Vries <tdevries@suse.de>
6035 * dwarf2read.h (abstract_to_concrete): Change type from
6036 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6037 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6038 * dwarf2read.c (read_variable): Update.
6039 (dwarf2_fetch_die_loc_sect_off): Update.
6041 2019-06-17 Tom de Vries <tdevries@suse.de>
6044 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6045 accessing parent[parent_len - 1].
6047 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6050 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6051 call dtrace_process_dof with NULL dof.
6053 2019-06-16 Tom de Vries <tdevries@suse.de>
6056 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6058 2019-06-16 Tom Tromey <tom@tromey.com>
6060 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6061 (make_all_visible): Use address of member.
6063 2019-06-16 Tom Tromey <tom@tromey.com>
6065 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6066 (tui_free_window, free_content, free_content_elements): Remove
6068 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6070 * tui/tui-regs.c (tui_show_register_group)
6071 (tui_display_registers_from, tui_display_reg_element_at_line):
6072 Remove unnecessary cast.
6074 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6076 * linux-nat.c (normal_mask): Delete.
6077 (_initialize_linux_nat): Don't initialise normal_mask.
6079 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6082 * dwarf-index-write.h (write_psymtabs_to_index): Add
6083 dwz_basename parameter.
6084 * dwarf-index-write.c (write_gdbindex): Move file writing to
6085 write_gdbindex_1. Change return type void.
6086 (assert_file_size): Move up, remove filename parameter.
6087 (write_gdbindex_1): New function.
6088 (write_debug_names): Change return type to void, call
6090 (struct index_wip_file): New struct.
6091 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6092 file logic to index_wip_file. Write index for dwz file if
6094 (save_gdb_index_command): Pass basename of dwz file, if present.
6095 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6096 build-id of dwz file, if present.
6097 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6098 (dwarf2_get_dwz_file): Likewise.
6099 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6100 (dwarf2_get_dwz_file): Likewise.
6102 2019-06-16 Tom Tromey <tom@tromey.com>
6104 * coffread.c (process_coff_symbol): Use xstrdup.
6105 * value.c (create_internalvar): Use xstrdup.
6107 2019-06-16 Tom Tromey <tom@tromey.com>
6109 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6110 * breakpoint.c (stopin_command, stopat_command)
6111 (until_break_command, decode_location_default): Remove unnecessary
6113 * utils.c (subset_compare): Remove unnecessary cast.
6114 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6116 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6118 * infcmd.c (path_command): Remove unnecessary cast.
6119 * coffread.c (decode_type): Remove unnecessary cast.
6120 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6121 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6122 * tui/tui-stack.c (tui_show_locator_content)
6123 (tui_show_frame_info): Remove unnecessary cast.
6124 * tui/tui-win.c (tui_scroll_forward_command)
6125 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6126 (parse_scrolling_args): Remove unnecessary cast.
6127 * tui/tui-data.c (init_win_info, tui_del_window)
6128 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6129 (free_content_elements): Remove unnecessary cast.
6130 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6132 * tui/tui-source.c (tui_set_source_content)
6133 (tui_vertical_source_scroll): Remove unnecessary cast.
6134 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6136 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6137 * tui/tui-regs.c (tui_display_registers_from)
6138 (tui_display_register): Remove unnecessary cast.
6139 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6140 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6141 (make_visible): Remove unnecessary cast.
6142 * tui/tui-winsource.c (tui_erase_source_content)
6143 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6145 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6146 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6147 * stabsread.c (read_type, read_array_type, read_range_type):
6148 Remove unnecessary cast.
6149 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6150 (parse_symbol, parse_type, upgrade_type, parse_external)
6151 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6153 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6155 2019-06-16 Tom Tromey <tom@tromey.com>
6157 * tui/tui-data.c (tui_alloc_generic_win_info)
6158 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6161 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6162 Andrew Burgess <andrew.burgess@embecosm.com>
6164 * f-typeprint.c (f_print_type): Don't return early for not
6165 associated or not allocated types.
6166 (f_type_print_varspec_suffix): Add print_rank parameter and print
6167 ranks of array types in case they dangling.
6168 (f_type_print_base): Add print_rank parameter.
6170 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6172 * NEWS: Mention new MI commands.
6173 * break-catch-throw.c (enum exception_event_kind): Move to
6175 (print_mention_exception_catchpoint): Output text as a single
6177 (catch_exception_command_1): Rename to...
6178 (catch_exception_event): ...this, make non-static, update header
6179 command, and change some parameter types.
6180 (catch_catch_command): Update for changes to
6181 catch_exception_command_1.
6182 (catch_throw_command): Likewise.
6183 (catch_rethrow_command): Likewise.
6184 * breakpoint.c (enum exception_event_kind): Delete.
6185 * breakpoint.h (enum exception_event_kind): Moved here from
6186 break-catch-throw.c.
6187 (catch_exception_event): Declare.
6188 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6189 (mi_cmd_catch_throw): New function.
6190 (mi_cmd_catch_rethrow): New function.
6191 (mi_cmd_catch_catch): New function.
6192 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6193 'catch-catch' entries.
6194 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6195 (mi_cmd_catch_rethrow): Declare.
6196 (mi_cmd_catch_catch): Declare.
6198 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6200 * annotate.c (annotate_source_line): Change return type to void,
6201 update implementation to match.
6202 * annotate.h (annotate_source_line): Change return type to void,
6203 update header comment.
6204 * stack.c (print_frame_info): Don't change what frame information
6205 is printed based on whether annotations are on or not.
6207 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6209 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6210 (annotate_source): Make static.
6211 (annotate_source_line): Moved from source.c and renamed from
6212 identify_source_line. Update the return type.
6213 * annotate.h (annotate_source): Delete declaration.
6214 (annotate_source_line): Declaration moved from source.h, and
6215 renamed from identify_source_line. Return type updated.
6216 * source.c (identify_source_line): Moved to annotate.c and renamed
6217 to annotate_source_line.
6218 (info_line_command): Remove check of annotation_level.
6219 * source.h (identify_source_line): Move declaration to annotate.h
6220 and rename to annotate_source_line.
6221 * stack.c: Add 'annotate.h' include.
6222 (print_frame_info): Remove check of annotation_level before
6223 calling annotate_source_line.
6225 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6227 * source-cache.c (source_cache::get_plain_source_lines): Use
6228 open_source_file_with_line_charpos instead of just
6229 open_source_file, remove call to find_source_lines.
6230 (source_cache::get_source_lines): Likewise.
6231 * source.c (find_source_lines): Make static.
6232 (get_filename_and_charpos): Renamed into...
6233 (open_source_file_with_line_charpos): ..this along with changes to
6234 return a scoped_fd, and some other minor clean ups.
6235 (identify_source_line): Use open_source_file_with_line_charpos.
6236 (search_command_helper): Use open_source_file_with_line_charpos
6237 instead of just open_source_file, remove call to
6239 * source.h (open_source_file_with_line_charpos): Declare new
6241 (find_source_lines): Delete declaration.
6243 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6245 * source.c (get_filename_and_charpos): Remove fullname
6247 (identify_source_line): Update call to get_filename_and_charpos.
6249 2019-06-14 Tom Tromey <tromey@adacore.com>
6252 * ui-style.h (skip_ansi_escape): Update comment.
6253 * ui-file.h (class no_terminal_escape_file): New class.
6254 * ui-file.c (no_terminal_escape_file::write)
6255 (no_terminal_escape_file::puts): New methods.
6256 * cli/cli-logging.c (handle_redirections): Use
6257 no_terminal_escape_file.
6259 2019-06-14 Tom Tromey <tromey@adacore.com>
6261 * NEWS: Move convenience variable news above Python news.
6263 2019-06-14 Tom Tromey <tom@tromey.com>
6265 * gnulib: Move directory to top-level.
6266 * configure.ac: Don't configure gnulib.
6267 * configure: Rebuild.
6268 * common/common-defs.h: Use new path to gnulib.
6269 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6271 (INCGNU): Look in new gnulib location.
6272 (HFILES_NO_SRCDIR): Remove gnulib files.
6273 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6274 (generated_files): Remove GNULIB_H.
6275 ($(LIBGNU), all-lib): Remove targets.
6276 (distclean): Don't mention GNULIB_BUILDDIR.
6277 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6279 2019-06-14 Tom Tromey <tromey@adacore.com>
6281 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6282 Warn if symbol file does not provide any symbols.
6284 2019-06-14 Tom Tromey <tromey@adacore.com>
6286 * source.c (find_and_open_source): Respect basenames_may_differ.
6288 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6290 * annotate.c (annotate_breakpoints_invalid): Make use of
6291 scoped_restore_terminal_state.
6292 (annotate_frames_invalid): Likewise.
6294 2019-06-14 Tom Tromey <tromey@adacore.com>
6296 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6297 allow assignment to an internalvar.
6299 2019-06-14 Tom Tromey <tromey@adacore.com>
6301 * ada-lex.l: Allow "_" in attribute names.
6303 2019-06-14 Tom Tromey <tromey@adacore.com>
6306 * regcache.c (registers_changed): Don't call alloca.
6307 * top.c (execute_command): Don't call alloca.
6309 2019-06-13 Pedro Alves <palves@redhat.com>
6311 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6312 'expression'. When parsing an expression, error out if there's
6313 junk after "unlimited".
6314 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6315 (do_set_command): Adjust calls to is_unlimited_literal.
6317 2019-06-13 Pedro Alves <palves@redhat.com>
6319 * compile/compile.c (make_compile_options_def_group): Add braces
6320 around array_view initializer.
6321 * thread.c (make_thread_apply_all_options_def_group)
6322 (make_thread_apply_all_options_def_group): Likewise.
6324 2019-06-13 Pedro Alves <palves@redhat.com>
6326 * NEWS (New commands): Mention "maint test-options
6327 require-delimiter", "maint test-options unknown-is-error", "maint
6328 test-options unknown-is-operand" and "maint show
6329 test-options-completion-result".
6330 (New command options, command completion): New section.
6331 (Completion improvements): New section.
6332 Mention that you can abbreviate "unlimited".
6334 2019-06-13 Pedro Alves <palves@redhat.com>
6336 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6337 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6338 * unittests/cli-utils-selftests.c (test_parse_flags)
6339 (test_parse_flags_qcs): Delete.
6340 (test_cli_utils): Don't call deleted functions.
6342 2019-06-13 Pedro Alves <palves@redhat.com>
6344 * thread.c: Include "cli/cli-option.h".
6345 (tp_array_compar_ascending): Global.
6346 (tp_array_compar): Delete function.
6347 (tp_array_compar_ascending, tp_array_compar_descending): New
6349 (ascending_option_def, qcs_flag_option_def)
6350 (thr_qcs_flags_option_defs)
6351 (make_thread_apply_all_options_def_group)
6352 (make_thread_apply_options_def_group): New.
6353 (thread_apply_all_command): Use gdb::option::process_options.
6354 (thread_apply_command_completer)
6355 (thread_apply_all_command_completer): New.
6356 (thread_apply_command): Use gdb::option::process_options.
6357 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6358 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6359 to generate help text of "thread apply". Adjust "taas"'s help.
6360 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6361 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6363 2019-06-13 Pedro Alves <palves@redhat.com>
6365 * thread.c (thread_apply_command): Check for invalid TID with
6366 isdigit instead of !isalpha.
6368 2019-06-13 Pedro Alves <palves@redhat.com>
6370 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6371 (validate_flags_qcs): New.
6372 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6373 (validate_flags_qcs): Declare.
6374 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6375 (make_frame_apply_options_def_group): New.
6376 (frame_apply_command_count): Process options with
6377 gdb::option::process_options.
6378 (frame_apply_completer): New.
6379 (frame_apply_level_completer, frame_apply_all_completer)
6380 (frame_apply_completer): New.
6381 (_initialize_stack): Update help of "frame apply", "frame apply
6382 level", "frame apply all" and "faas" to mention supported options
6383 and install command completers.
6384 * stack.h (frame_apply_all_completer): Declare.
6385 * thread.c: Include "stack.h".
6386 (tfaas_command): Add "--".
6387 (_initialize_thread): Update help "tfaas" to mention supported
6388 options and install command completer.
6390 2019-06-13 Pedro Alves <palves@redhat.com>
6392 * completer.c (complete_nested_command_line): New.
6393 (gdb_completion_word_break_characters_throw): Add assertion.
6394 * completer.h (complete_nested_command_line): Declare.
6396 2019-06-13 Pedro Alves <palves@redhat.com>
6398 * stack.c (parse_backtrace_qualifiers): New.
6399 (backtrace_command): Use it.
6400 (backtrace_command_completer): Complete on qualifiers.
6402 2019-06-13 Pedro Alves <palves@redhat.com>
6404 * frame.c: Include "cli/cli-option.h.
6405 (user_set_backtrace_options): New.
6406 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6408 (get_prev_frame): Adjust.
6409 (boolean_option_def, uinteger_option_def)
6410 (set_backtrace_option_defs): New.
6411 (_initialize_frame): Adjust and use
6412 gdb::option::add_setshow_cmds_for_options to install "set
6413 backtrace past-main" and "set backtrace past-entry".
6414 * frame.h: Include "cli/cli-option.h".
6415 (struct frame_print_options): Forward declare.
6416 (print_frame_arguments_all, print_frame_arguments_scalars)
6417 (print_frame_arguments_none): Declare.
6418 (print_entry_values): Delete declaration.
6419 (struct frame_print_options, user_frame_print_options): New.
6420 (struct set_backtrace_options): New.
6421 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6422 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6423 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6424 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6425 (list_args_or_locals): Add frame_print_options parameter.
6426 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6427 * python/py-framefilter.c (enumerate_args): Pass down
6428 USER_FRAME_PRINT_OPTIONS.
6429 * stack.c: Include "cli/cli-option.h".
6430 (print_frame_arguments_all, print_frame_arguments_scalars)
6431 (print_frame_arguments_none): Declare.
6432 (print_raw_frame_arguments, print_entry_values): Delete.
6433 (user_frame_print_options): New.
6434 (boolean_option_def, enum_option_def, frame_print_option_defs):
6436 (struct backtrace_cmd_options): New.
6437 (bt_flag_option_def): New.
6438 (backtrace_command_option_defs): New.
6439 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6440 (print_frame_arg, read_frame_arg, print_frame_args)
6441 (print_frame_info, print_frame): Add frame_print_options parameter
6443 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6444 (backtrace_command_1): Add frame_print_options and
6445 backtrace_cmd_options parameters and use them.
6446 (make_backtrace_options_def_group): New.
6447 (backtrace_command): Process command options with
6448 gdb::option::process_options.
6449 (backtrace_command_completer): New.
6450 (_initialize_stack): Extend "backtrace"'s help to mention
6451 supported options. Install completer for "backtrace".
6452 Install some settings commands with add_setshow_cmds_for_options.
6454 2019-06-13 Pedro Alves <palves@redhat.com>
6456 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6457 and that "set/show print raw frame-arguments" are now deprecated.
6459 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6461 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6462 * stack.c (_initialize_stack): Install "set/show print
6463 raw-frame-arguments", and deprecate "set/show print raw
6465 * valprint.c (_initialize_valprint): Deprecate "set/show print
6468 2019-06-13 Pedro Alves <palves@redhat.com>
6470 * compile/compile.c (struct compile_options): New.
6471 (compile_flag_option_def, compile_command_option_defs)
6472 (make_compile_options_def_group): New.
6473 (compile_file_command): Handle options with
6474 gdb::option::process_options.
6475 (compile_file_command_completer): New function.
6476 (compile_code_command): Handle options with
6477 gdb::option::process_options.
6478 (compile_code_command_completer): New function.
6479 (_initialize_compiler): Install completers for "compile code" and
6480 "compile file". Mention available options in "compile code" and
6481 "compile code"'s help.
6482 * completer.c (advance_to_completion_word): New, factored out from
6484 (advance_to_expression_complete_word_point): ... this.
6485 (advance_to_filename_complete_word_point): New.
6486 * completer.h (advance_to_filename_complete_word_point): New
6489 2019-06-13 Pedro Alves <palves@redhat.com>
6491 * compile/compile.c: Include "cli/cli-option.h".
6492 (compile_print_value): Scope data pointer is now a
6493 value_print_options pointer; adjust.
6494 (compile_print_command): Process options. Scope data pointer is
6495 now a value_print_options pointer; adjust.
6496 (_initialize_compile): Update "compile print"'s help to include
6497 supported options. Install a completer for "compile print".
6498 * cp-valprint.c (show_vtblprint, show_objectprint)
6499 (show_static_field_print): Delete.
6500 (_initialize_cp_valprint): Don't install "set print
6501 static-members", "set print vtbl", "set print object" here.
6502 * printcmd.c: Include "cli/cli-option.h" and
6503 "common/gdb_optional.h".
6504 (print_command_parse_format): Rework to fill in a
6505 value_print_options instead of a format_data.
6506 (print_value): Change parameter type from format_data pointer to
6507 value_print_options reference. Adjust.
6508 (print_command_1): Process options. Adjust to pass down a
6509 value_print_options.
6510 (print_command_completer): New.
6511 (_initialize_printcmd): Install print_command_completer as
6512 handle_brkchars completer for the "print" command. Update
6513 "print"'s help to include supported options.
6514 * valprint.c: Include "cli/cli-option.h".
6515 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6516 here from cp-valprint.c.
6517 (boolean_option_def, uinteger_option_def)
6518 (value_print_option_defs, make_value_print_options_def_group):
6519 New. Use gdb::option::add_setshow_cmds_for_options to install
6520 "set print elements", "set print null-stop", "set print repeats",
6521 "set print pretty", "set print union", "set print array", "set
6522 print address", "set print symbol", "set print array-indexes".
6523 * valprint.h: Include <string> and "cli/cli-option.h".
6524 (make_value_print_options_def_group): Declare.
6525 (print_value): Change parameter type from format_data pointer to
6526 value_print_options reference.
6527 (print_command_completer): Declare.
6529 2019-06-13 Pedro Alves <palves@redhat.com>
6531 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6532 (COMMON_SFILES): Add maint-test-settings.c.
6533 * cli/cli-decode.c (boolean_enums): New global, factored out from
6535 (add_setshow_boolean_cmd): ... here.
6536 * cli/cli-decode.h (boolean_enums): Declare.
6537 * cli/cli-option.c: New file.
6538 * cli/cli-option.h: New file.
6539 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6540 factored out from ...
6541 (parse_cli_boolean_value(const char *)): ... this.
6542 (is_unlimited_literal): Change parameter type to pointer to
6543 pointer. Adjust and advance ARG pointer.
6544 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6545 (parse_cli_var_enum): New, factored out from ...
6546 (do_set_command): ... this. Adjust.
6547 * cli/cli-setshow.h (parse_cli_boolean_value)
6548 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6549 (parse_cli_var_enum): Declare.
6550 * cli/cli-utils.c: Include "cli/cli-option.h".
6551 (get_ulongest): New.
6552 * cli/cli-utils.h (get_ulongest): Declare.
6553 (check_for_argument): New overloads.
6554 * maint-test-options.c: New file.
6556 2019-06-13 Pedro Alves <palves@redhat.com>
6558 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6559 parse a range if "-" is at the end of the string.
6561 2019-06-13 Pedro Alves <palves@redhat.com>
6563 * cli/cli-setshow.c (parse_auto_binary_operation)
6564 (parse_cli_boolean_value): Don't allow "o".
6566 2019-06-13 Pedro Alves <palves@redhat.com>
6568 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6569 * NEWS: Mention maint test-settings KIND.
6570 * maint-test-settings.c: New file.
6572 2019-06-13 Pedro Alves <palves@redhat.com>
6574 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6576 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6579 2019-06-13 Pedro Alves <palves@redhat.com>
6581 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6584 2019-06-13 Pedro Alves <palves@redhat.com>
6586 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6588 2019-06-13 Pedro Alves <palves@redhat.com>
6590 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6591 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6593 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6594 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6596 (check_for_argument): Skip spaces after argument.
6598 2019-06-13 Pedro Alves <palves@redhat.com>
6600 * thread.c (thread_apply_command): Adjust TID parsing.
6601 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6602 detected before end of string.
6603 (tid_is_in_list): Error out if LIST is invalid.
6605 2019-06-13 Pedro Alves <palves@redhat.com>
6607 * completer.c (complete_line_internal_1): Rewind completion word
6609 (completion_tracker::advance_custom_word_point_by): Change
6610 parameter type to int.
6611 * completer.h (completion_tracker::advance_custom_word_point_by):
6614 2019-06-13 Pedro Alves <palves@redhat.com>
6616 * completer.c (advance_to_completion_word): Handle delimiters.
6618 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6620 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6622 2019-06-11 Tom Tromey <tom@tromey.com>
6624 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6625 (xmalloc_failed): Move to alloc.c.
6626 * alloc.c: New file.
6627 * Makefile.in (COMMON_SFILES): Add alloc.c.
6629 2019-06-11 Tom Tromey <tom@tromey.com>
6631 * nat/linux-waitpid.c: Don't include server.h.
6632 (linux_debug): Remove.
6633 (my_waitpid): Update.
6635 2019-06-11 Tom Tromey <tromey@adacore.com>
6637 * infcall.c (_initialize_infcall): Remove trailing newline from
6639 * user-regs.c (_initialize_user_regs): Remove trailing newline
6641 * typeprint.c (_initialize_typeprint): Remove trailing newline
6643 * reverse.c (_initialize_reverse): Remove trailing newlines from
6645 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6647 * language.c (add_set_language_command): Remove trailing newline
6649 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6651 * disasm.c (_initialize_disasm): Remove trailing newline from
6653 * top.c (init_main): Remove trailing newline from help.
6654 * interps.c (_initialize_interpreter): Remove trailing newline
6656 * btrace.c (_initialize_btrace): Remove trailing newlines from
6658 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6660 * python/python.c (_initialize_python): Remove trailing newline
6662 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6664 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6665 from help. Reformat some text.
6666 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6668 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6671 2019-06-11 Tom Tromey <tromey@adacore.com>
6673 * darwin-nat.c (darwin_decode_exception_message)
6674 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6676 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6678 * valops.c (value_slice): Check for not allocated or not
6681 2019-06-10 Tom de Vries <tdevries@suse.de>
6684 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6685 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6688 2019-06-10 Tom de Vries <tdevries@suse.de>
6691 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6692 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6694 2019-06-10 Tom de Vries <tdevries@suse.de>
6697 * symtab.c (struct demangled_name_entry): Add language field.
6698 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6699 static minimal symbol". Set and use language field.
6701 2019-06-10 Tom Tromey <tromey@adacore.com>
6703 * ada-lang.c (_initialize_ada_language): Update help text.
6705 2019-06-10 Tom Tromey <tromey@adacore.com>
6707 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6709 * guile/guile.c (handle_boot_error): Don't end warning with a
6711 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6712 warning with a newline.
6713 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6715 (s12z_frame_cache): Likewise.
6716 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6718 * solib-svr4.c (disable_probes_interface): Don't end warning with
6720 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6722 * python/python.c (do_finish_initialization): Don't end warning
6725 2019-06-10 Tom Tromey <tom@tromey.com>
6727 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6728 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6731 2019-06-10 Tom Tromey <tromey@adacore.com>
6733 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6735 (elf_new_init): Don't call stabsread_new_init.
6736 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6737 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6738 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6740 2019-06-10 Tom de Vries <tdevries@suse.de>
6744 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6746 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6748 * source.c (find_and_open_source): Also rewrite relative file
6751 2019-04-26 Amos Bird <amosbird@gmail.com>
6753 * annotate.c (annotate_thread_exited): Add "thread-exited"
6756 2019-06-06 Tom Tromey <tromey@adacore.com>
6758 * maint.h (class scoped_command_stats): Use
6759 DISABLE_COPY_AND_ASSIGN.
6760 <print_time>: New method.
6761 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6763 (scoped_command_stats::print_time): New method.
6765 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6767 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6768 instructions of lengths 6 or 8 bytes.
6770 2019-06-04 Pedro Alves <palves@redhat.com>
6772 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6774 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6775 * breakpoint.c (condition_completer): Likewise.
6776 * cli/cli-dump.c (scan_expression): Likewise.
6777 * common/filestuff.c (mkdir_recursive): Likewise.
6778 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6779 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6780 (gdb_abspath): Likewise.
6781 * compile/compile-cplus-types.c
6782 (compile_cplus_instance::decl_name): Likewise.
6783 * completer.c (complete_explicit_location):
6784 (signal_completer, reg_or_group_completer_1): Likewise.
6785 * cp-support.c (cp_remove_params_if_any): Likewise.
6786 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6787 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6788 * infcmd.c (strip_bg_char): Likewise.
6789 * linespec.c (copy_token_string): Likewise.
6790 * mi/mi-main.c (output_cores): Likewise.
6791 * psymtab.c (psymtab_search_name):
6792 * symfile.c (test_set_ext_lang_command): Likewise.
6793 * target.c (target_fileio_read_stralloc): Likewise.
6794 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6795 * value.c (complete_internalvar): Likewise.
6797 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6799 Add objfile property to gdb.Type.
6800 * NEWS: Mention Python API addition.
6801 * python/py-type.c (typy_get_objfile): New method.
6803 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6805 * NEWS: Mention the new set|show style [title|highlight].
6806 Mention changes to "show style", "help" and "apropos".
6808 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6810 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6811 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6812 instead of print_help_for_command.
6813 (print_doc_of_command): New function.
6814 (help_list): Add 'apropos -v word' suggestion.
6815 (print_help_for_command): Style the command name using title style.
6816 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6817 (_initialize_cli_cmds): Describe -v in apropos_command help.
6819 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6821 * cli/cli-style.h (cli_style_option): Add name in constructor,
6822 add m_name class member, add constructor with intensity,
6823 add name class function.
6824 (cli_style_option::add_setshow_commands): Remove name argument.
6825 (highlight_style, title_style): New styles.
6826 * cli/cli-style.c (do_show): New function that shows a style
6827 characteristic styling the style name with itself.
6828 (set_style_name): New function.
6829 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6830 Update all callers according to the changes in cli/cli-style.h.
6831 * utils.h (fputs_highlighted): New function.
6832 * utils.c (fputs_highlighted): Likewise.
6834 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6836 * NEWS: Mention new pipe command and new convenience variables.
6838 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6840 * cli/cli-cmds.c (pipe_command): New function.
6841 (_initialize_cli_cmds): Call add_com for pipe_command.
6842 Define | as an alias for pipe.
6843 (exit_status_set_internal_vars): New function.
6844 (shell_escape): Call exit_status_set_internal_vars.
6845 cli/cli-decode.c (find_command_name_length): Recognize | as
6846 a single character command.
6848 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6850 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6851 top.c (execute_command_to_ui_file): New function, mostly a copy
6852 of execute_command_to_string.
6853 (execute_command_to_string): Implement by calling
6854 execute_command_to_ui_file.
6856 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6858 * top.h (saved_command_line): Remove declaration.
6859 * top.c (previous_saved_command_line, previous_repeat_arguments):
6861 (saved_command_line): Make static, define together with other
6863 (dont_repeat): Clear repeat_arguments.
6864 (repeat_previous, get_saved_command_line, save_command_line):
6866 (gdb_init): Initialize saved_command_line
6867 and previous_saved_command_line.
6868 * main.c (captured_main_1): Remove saved_command_line initialization.
6869 * event-top.c (handle_line_of_input): Update to use
6870 the new 'repeat' related functions instead of direct access to
6872 * command.h (repeat_previous, get_saved_command_line,
6873 save_command_line): New declarations.
6874 (dont_repeat): Add comment.
6876 2019-05-30 Tom Tromey <tromey@adacore.com>
6878 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6880 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6882 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6885 * completer.c (complete): Initialize variable word.
6887 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6889 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6890 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6891 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6892 'body' is NULL to the outter 'if', protecting the '!is_define'
6895 2019-05-29 Tom Tromey <tromey@adacore.com>
6897 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6898 (dwarf_unknown): New function.
6899 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6900 (dwarf_type_encoding_name): Use dwarf_unknown.
6902 2019-05-29 Tom Tromey <tromey@adacore.com>
6905 * cp-valprint.c (cp_print_value_fields): Call
6906 cp_print_static_field inside "try".
6908 2019-05-29 Tom Tromey <tromey@adacore.com>
6910 * inflow.c (struct terminal_info): Add default operator=.
6911 * configure: Rebuild.
6912 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6913 -Wdeprecated-copy-dtor, -Wredundant-move.
6915 2019-05-29 Tom Tromey <tromey@adacore.com>
6918 * infcmd.c (print_return_value_1): Handle finish_print
6920 (show_print_finish): New function.
6921 (_initialize_infcmd): Add "set/show print finish" commands.
6922 * valprint.c (user_print_options): Initialize new member.
6923 * valprint.h (struct value_print_options) <finish_print>: New
6926 2019-05-28 Tom Tromey <tromey@adacore.com>
6928 * ada-lang.c (ada_remove_Xbn_suffix)
6929 (find_old_style_renaming_symbol)
6930 (parse_old_style_renaming): Remove.
6931 (ada_find_renaming_symbol): Don't call
6932 find_old_style_renaming_symbol.
6933 (ada_is_renaming_symbol): Rename from
6934 ada_find_renaming_symbol. Remove "block" parameter. Return
6936 (ada_read_var_value): Update and simplify.
6937 * ada-exp.y (write_var_or_type): Remove old code.
6939 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6942 * event-top.c: Remove include comment.
6943 * inflow.c (class scoped_ignore_sigttou): Move from here...
6944 * inflow.h (class scoped_ignore_sigttou): ...to here.
6945 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6946 * top.c: Remove include comment.
6948 2019-05-27 Tom Tromey <tom@tromey.com>
6952 2019-05-22 Tom Tromey <tromey@adacore.com>
6954 * target.c (target_follow_exec): Constify parameter.
6955 * target-delegates.c: Rebuild.
6956 * remote.c (remote_target::follow_exec): Constify parameter.
6957 * infrun.c (follow_exec): Constify parameter.
6958 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6959 (target_follow_exec): Likewise.
6961 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6963 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6964 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6966 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6968 * NEWS: Add debugredirect and testsuite sections.
6970 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6972 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6973 target descriptions using exclusively floating point register name
6976 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6979 * f-lang.c (build_fortran_types): Handle the case where
6980 gdbarch_floatformat_for_type returns a nullptr.
6982 2019-05-21 Tom de Vries <tdevries@suse.de>
6985 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
6987 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6990 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
6992 * i386-tdep.c (i386_floatformat_for_type): Use
6993 floatformats_ia64_quad for the 16-byte floating point component
6994 within a fortran 32-byte complex number.
6996 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
6998 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
6999 delete default constructor.
7000 (find_partial_die): Update to return const struct.
7001 (partial_die_parent_scope): Move variable declaration into scope
7002 of its use and change its type to auto.
7003 (guess_partial_die_structure_name): Likewise.
7004 (partial_die_info::fixup): Likewise.
7006 2019-05-17 Tom Tromey <tromey@adacore.com>
7008 * source.c (find_and_open_source): Remove cast.
7010 2019-05-17 Tom Tromey <tromey@adacore.com>
7012 * annotate.c (annotate_source): Make "filename" const.
7013 * annotate.h (annotate_source): Use const.
7015 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7017 * disasm.c (set_disassembler_options): Send errors to stderr.
7019 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7021 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7022 (cli_interp_base::set_logging): Check debug_redirect.
7023 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7024 * cli/cli-logging.c (debug_redirect): Add static variable.
7025 (pop_output_files): Add default param.
7026 (handle_redirections): Print debug setting.
7027 (show_logging_command): Likewise.
7028 (_initialize_cli_logging): Add debugredirect command.
7029 * interps.c (current_interp_set_logging): Add debug_redirect
7031 * interps.h (set_logging): Add debug_redirect parameter.
7032 (current_interp_set_logging): Likewise.
7033 * mi/mi-common.h: Likewise.
7034 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7036 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7037 Tom Tromey <tromey@adacore.com>
7039 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7041 * cli/cli-interp.h (make_logging_output): Remove declaration.
7042 * cli/cli-logging.c (make_logging_output): Remove function.
7043 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7045 * ui-file.c (tee_file::tee_file): Remove bools.
7046 (tee_file::~tee_file): Remove deletes.
7047 * ui-file.h (tee_file): Remove bools.
7049 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7051 * mi/mi-cmds.h (mi_cmd_complete): New function.
7052 * mi/mi-main.c (mi_cmd_complete): Likewise.
7053 * mi/mi-cmds.c: Define new MI command -complete.
7054 * NEWS: Mention new -complete command.
7056 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7058 * completer.h (complete): New function.
7059 * completer.c (complete): Likewise.
7060 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7061 function defined in completer.h.
7063 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7065 * MAINTAINERS (Write After Approval): Add myself.
7067 2019-05-17 Tom de Vries <tdevries@suse.de>
7070 * dwarf2read.c (struct cu_partial_die_info): New struct.
7071 (find_partial_die): Return cu_partial_die_info.
7072 (partial_die_parent_scope, guess_partial_die_structure_name)
7073 (partial_die_info::fixup): Handle new return type of find_partial_die.
7075 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7077 PR breakpoints/24541
7078 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7079 "std::string", simplifying the algorithm.
7081 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7083 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7084 (stap_static_probe_ops::get_probes): Likewise.
7086 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7088 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7089 '-')" and "else if".
7090 (stap_parse_single_operand): Join checks for
7091 "gdbarch_stap_parse_special_token_p" and
7092 "gdbarch_stap_parse_special_token" in the same "if" statement.
7093 Invert check when verifying for operation on register
7096 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7098 * stap-probe.c (stap_get_opcode): Update comment.
7099 (stap_get_expected_argument_type): Likewise.
7100 (handle_stap_probe): Likewise.
7102 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7104 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7105 return type to 'bool'. Adjust comment. Use 'bool' when
7107 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7108 * stap-probe.c (stap_parse_argument_1): Likewise.
7109 (stap_is_operator): Likewise.
7110 (stap_is_generic_prefix): Likewise.
7111 (stap_is_register_prefix): Likewise.
7112 (stap_is_register_indirection_prefix): Likewise.
7113 (stap_is_integer_prefix): Likewise.
7114 (stap_generic_check_suffix): Likewise.
7115 (stap_check_integer_suffix): Likewise.
7116 (stap_check_register_suffix): Likewise.
7117 (stap_check_register_indirection_suffix): Likewise.
7118 (stap_parse_register_operand): Likewise.
7119 (stap_parse_single_operand): Likewise.
7120 (stap_parse_argument_1): Likewise.
7121 (stap_probe::get_argument_count): Likewise.
7122 (stap_is_operator): Likewise.
7124 2019-05-16 Tom Tromey <tromey@adacore.com>
7126 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7129 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7131 * linux-thread-db.c (try_thread_db_load_1): Change return type
7133 (try_thread_db_load): Likewise.
7134 (try_thread_db_load_from_pdir_1): Likewise.
7135 (try_thread_db_load_from_pdir): Likewise.
7136 (try_thread_db_load_from_sdir): Likewise.
7137 (try_thread_db_load_from_dir): Likewise.
7138 (thread_db_load_search): Likewise.
7139 (has_libpthread): Likewise.
7140 (thread_db_load): Likewise.
7142 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7144 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7145 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7146 NULL, and complain/return if that's the case.
7148 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7150 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7151 (advance, posn, abstract_read_memory): New functions.
7152 [struct mem_read_abstraction]: New struct.
7153 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7155 2019-05-14 Tom Tromey <tromey@adacore.com>
7157 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7158 value is not lval_memory.
7160 2019-05-14 Tom Tromey <tromey@adacore.com>
7162 * solib.c (info_sharedlibrary_command): Style the file name.
7164 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7166 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7167 (aarch64_vnv_type): Likewise.
7168 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7169 * common/tdesc.c: Likewise.
7170 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7171 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7172 * features/aarch64-fpu.xml: Add ieee half view.
7173 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7174 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7175 * gdbtypes.h (struct builtin_type): Likewise.
7176 (struct objfile_type): Likewise.
7178 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7180 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7182 * location.h (string_to_event_location): Likewise.
7184 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7188 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7190 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7191 New variable declaration.
7192 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7194 (print_one_breakpoint): Use ui_out::test_flags and new global
7195 variable to compute use_fixed_output.
7196 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7198 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7199 (mi_multi_location_breakpoint_output_fixed): Remove.
7200 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7202 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7203 fix_multi_location_breakpoint_output flag if version >= 3.
7204 * ui-out.h (enum ui_out_flag)
7205 <fix_multi_location_breakpoint_output>: New enumerator.
7207 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7209 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7211 2019-05-10 Tom Tromey <tromey@adacore.com>
7213 * ada-lang.c (catch_ada_completer): New function.
7214 (_initialize_ada_language): Use it.
7216 2019-05-10 Tom Tromey <tromey@adacore.com>
7218 * thread.c (print_thread_info): Make "requested_threads" const.
7219 * gdbthread.h (print_thread_info): Make "requested_threads"
7221 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7222 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7224 2019-05-08 Tom Tromey <tom@tromey.com>
7226 * gdbtypes.c (objfile_type_data): Change type.
7227 (objfile_type, _initialize_gdbtypes): Update.
7229 2019-05-08 Tom Tromey <tom@tromey.com>
7231 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7232 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7233 (_initialize_dwarf2_frame): Update.
7235 2019-05-08 Tom Tromey <tom@tromey.com>
7237 * objc-lang.c (objc_objfile_data): Change type.
7238 (find_methods): Update.
7239 (_initialize_objc_lang): Remove.
7241 2019-05-08 Tom Tromey <tom@tromey.com>
7243 * stabsread.c (rs6000_builtin_type_data): Change type.
7244 (rs6000_builtin_type, _initialize_stabsread): Update.
7246 2019-05-08 Tom Tromey <tom@tromey.com>
7248 * mips-tdep.c (mips_pdr_data): Remove.
7249 (_initialize_mips_tdep): Update.
7251 2019-05-08 Tom Tromey <tom@tromey.com>
7253 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7254 (hppa_init_objfile_priv_data, read_unwind_info)
7255 (find_unwind_entry, _initialize_hppa_tdep): Update.
7257 2019-05-08 Tom Tromey <tom@tromey.com>
7259 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7260 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7262 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7264 2019-05-08 Tom Tromey <tom@tromey.com>
7266 * mdebugread.c (basic_type_data): Change type.
7267 (basic_type, _initialize_mdebugread): Update.
7269 2019-05-08 Tom Tromey <tom@tromey.com>
7271 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7273 2019-05-08 Tom Tromey <tom@tromey.com>
7275 * nto-tdep.c (nto_inferior_data_reg): Change type.
7276 (nto_inferior_data): Update.
7277 (nto_inferior_data_cleanup, nto_new_inferior_data)
7278 (_initialize_nto_tdep): Remove.
7279 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7281 2019-05-08 Tom Tromey <tom@tromey.com>
7283 * ada-lang.c (struct ada_inferior_data): Add initializers.
7284 (ada_inferior_data): Change type.
7285 (ada_inferior_data_cleanup): Remove.
7286 (get_ada_inferior_data, ada_inferior_exit)
7287 (struct ada_pspace_data): Add initializers, destructor.
7288 (ada_pspace_data_handle): Change type.
7289 (get_ada_pspace_data): Update.
7290 (ada_pspace_data_cleanup): Remove.
7292 2019-05-08 Tom Tromey <tom@tromey.com>
7294 * coffread.c (struct coff_symfile_info): Add initializers.
7295 (coff_objfile_data_key): Move lower. Change type.
7296 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7298 (coff_free_info): Remove.
7300 2019-05-08 Tom Tromey <tom@tromey.com>
7302 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7303 (fbsd_pspace_data_handle): Move lower. Change type.
7304 (get_fbsd_pspace_data): Update.
7305 (fbsd_pspace_data_cleanup): Remove.
7306 (_initialize_fbsd_tdep): Update.
7308 2019-05-08 Tom Tromey <tom@tromey.com>
7310 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7311 (get_ada_tasks_pspace_data): Update.
7312 (ada_tasks_pspace_data_cleanup): Remove.
7313 (_initialize_tasks): Update.
7314 (ada_tasks_inferior_data_handle): Change type.
7315 (get_ada_tasks_inferior_data): Update.
7316 (ada_tasks_inferior_data_cleanup): Remove.
7317 (struct ada_tasks_pspace_data): Add initializers.
7319 2019-05-08 Tom Tromey <tom@tromey.com>
7321 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7322 * symfile-debug.c (debug_sym_get_probes): Change type.
7323 * stap-probe.c (handle_stap_probe):
7324 (stap_static_probe_ops::get_probes): Change type.
7325 * probe.h (class static_probe_ops) <get_probes>: Change type.
7326 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7327 (parse_probes_in_pspace): Update.
7328 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7330 (any_static_probe_ops::get_probes): Change type.
7331 * elfread.c (elfread_data): New typedef.
7332 (probe_key): Change type.
7333 (elf_get_probes): Likewise. Update.
7334 (probe_key_free): Remove.
7335 (_initialize_elfread): Update.
7336 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7338 (dtrace_process_dof_probe, dtrace_process_dof)
7339 (dtrace_static_probe_ops::get_probe): Change type.
7341 2019-05-08 Tom Tromey <tom@tromey.com>
7343 * xcoffread.c (struct xcoff_symfile_info): Rename from
7344 coff_symfile_info. Add initializers.
7345 (xcoff_objfile_data_key): Move lower. Change type.
7346 (XCOFF_DATA): Rewrite.
7347 (xcoff_free_info): Remove.
7348 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7349 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7350 (xcoff_initial_scan): Update.
7352 2019-05-08 Tom Tromey <tom@tromey.com>
7354 * solib-svr4.c (struct svr4_info): Add initializers and
7356 <probes_table>: Now an htab_up.
7357 (solib_svr4_pspace_data): Change type.
7358 (free_probes_table): Simplify.
7359 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7360 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7361 (probes_table_remove_objfile_probes, register_solib_event_probe)
7362 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7363 (_initialize_svr4_solib): Update.
7365 2019-05-08 Tom Tromey <tom@tromey.com>
7367 * remote.c (remote_pspace_data): Change type.
7368 (remote_pspace_data_cleanup): Remove.
7369 (get_remote_exec_file, set_pspace_remote_exec_file)
7370 (_initialize_remote): Update.
7372 2019-05-08 Tom Tromey <tom@tromey.com>
7374 * breakpoint.c (breakpoint_objfile_key): Change type.
7375 (get_breakpoint_objfile_data): Update.
7376 (free_breakpoint_objfile_data): Remove.
7377 (_initialize_breakpoint): Update.
7379 2019-05-08 Tom Tromey <tom@tromey.com>
7381 * linux-tdep.c (struct linux_info): Add initializers.
7382 (linux_inferior_data): Move. Change type.
7383 (invalidate_linux_cache_inf): Update.
7384 (linux_inferior_data_cleanup): Remove.
7385 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7387 2019-05-08 Tom Tromey <tom@tromey.com>
7389 * auxv.c (auxv_inferior_data): Move. Change type.
7390 (auxv_inferior_data_cleanup): Remove.
7391 (invalidate_auxv_cache_inf): Rewrite.
7392 (get_auxv_inferior_data, _initialize_auxv): Update.
7394 2019-05-08 Tom Tromey <tom@tromey.com>
7396 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7397 (symfile_debug_objfile_data_key): Change type.
7398 (symfile_debug_installed, debug_qf_has_symbols)
7399 (debug_qf_find_last_source_symtab)
7400 (debug_qf_forget_cached_source_info)
7401 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7402 (debug_qf_print_stats, debug_qf_dump)
7403 (debug_qf_expand_symtabs_for_function)
7404 (debug_qf_expand_all_symtabs)
7405 (debug_qf_expand_symtabs_with_fullname)
7406 (debug_qf_map_matching_symbols)
7407 (debug_qf_expand_symtabs_matching)
7408 (debug_qf_find_pc_sect_compunit_symtab)
7409 (debug_qf_map_symbol_filenames)
7410 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7411 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7412 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7413 (debug_sym_read_linetable, debug_sym_relocate): Update.
7414 (symfile_debug_free_objfile): Remove.
7415 (install_symfile_debug_logging, _initialize_symfile_debug):
7418 2019-05-08 Tom Tromey <tom@tromey.com>
7420 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7421 allocate_on_obstack.
7422 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7423 (get_dwarf2_per_objfile): Update.
7424 (set_dwarf2_per_objfile): Remove.
7425 (dwarf2_has_info, dwarf2_get_section_info): Update.
7426 (dwarf2_free_objfile): Remove.
7427 (_initialize_dwarf2_read): Update.
7429 2019-05-08 Tom Tromey <tom@tromey.com>
7431 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7433 <unsupported_script_warning_printed,
7434 script_not_found_warning_printed>: Now bool.
7435 (auto_load_pspace_data): Change type.
7436 (~auto_load_pspace_info): Rename from
7437 auto_load_pspace_data_cleanup.
7438 (get_auto_load_pspace_data, init_loaded_scripts_info)
7439 (clear_section_scripts, maybe_print_unsupported_script_warning)
7440 (maybe_print_script_not_found_warning, _initialize_auto_load):
7443 2019-05-08 Tom Tromey <tom@tromey.com>
7445 * objfiles.c (objfile_pspace_info): Add destructor and
7447 (objfiles_pspace_data): Change type.
7448 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7449 (get_objfile_pspace_data): Update.
7450 (objfiles_bfd_data): Change type.
7451 (get_objfile_bfd_data): Update.
7452 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7454 2019-05-08 Tom Tromey <tom@tromey.com>
7456 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7458 (get_catch_syscall_inferior_data): Update.
7459 (catch_syscall_inferior_data_cleanup): Remove.
7460 (_initialize_break_catch_syscall): Update.
7462 2019-05-08 Tom Tromey <tom@tromey.com>
7464 * inflow.c (struct terminal_info): Add destructor and
7466 (inflow_inferior_data): Change type.
7467 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7468 (get_inflow_inferior_data, inflow_inferior_exit)
7469 (swap_terminal_info, _initialize_inflow): Update.
7471 2019-05-08 Tom Tromey <tom@tromey.com>
7473 * target-dcache.c (target_dcache_cleanup): Remove.
7474 (target_dcache_aspace_key): Change type.
7475 (target_dcache_init_p, target_dcache_invalidate)
7476 (target_dcache_get, target_dcache_get_or_init)
7477 (_initialize_target_dcache): Update.
7478 * dcache.h (struct dcache_deleter): New.
7480 2019-05-08 Tom Tromey <tom@tromey.com>
7482 * symtab.c (struct symbol_cache): Add destructor and
7484 (symbol_cache_key): Move. Change type.
7485 (make_symbol_cache, free_symbol_cache): Remove.
7486 (get_symbol_cache): Update.
7487 (symbol_cache_cleanup): Remove.
7488 (ALL_PSPACES, symbol_cache_flush)
7489 (maintenance_print_symbol_cache)
7490 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7493 2019-05-08 Tom Tromey <tom@tromey.com>
7495 * symtab.c (struct main_info): Add destructor and initializers.
7496 (main_progspace_key): Move. Change type.
7497 (get_main_info): Update.
7498 (main_info_cleanup): Remove.
7499 (_initialize_symtab): Update.
7501 2019-05-08 Tom Tromey <tom@tromey.com>
7503 * registry.h (DECLARE_REGISTRY): Define the _key class.
7505 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7507 * NEWS: Merge two 'New commands' sections.
7509 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7511 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7512 parameter and use Ada language definition instead.
7513 (ada_val_print_ptr): Remove unused language parameter.
7514 (ada_val_print_num): Remove language parameter and use Ada language
7516 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7518 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7519 parameter and use Ada language definition instead.
7520 (ada_val_print_1): Update all ada_val_print_xxx calls.
7521 Remove language parameter.
7522 (ada_val_print): Update ada_val_print_1 call.
7524 2019-05-08 Tom Tromey <tromey@adacore.com>
7526 * remote.c (remote_hw_watchpoint_limit)
7527 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7530 2019-05-08 Tom Tromey <tromey@adacore.com>
7532 * maint.c (_initialize_maint_cmds): Move initialization code to
7534 (watchdog, show_watchdog): Move to remote.c.
7535 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7537 (_initialize_remote): Move initialization code from maint.c.
7538 * defs.h (watchdog): Don't declare.
7540 2019-05-08 Tom Tromey <tromey@adacore.com>
7542 * tui/tui-interp.c: Include main.h.
7543 * interps.c: Include main.h.
7544 * main.h (interpreter_p): Declare.
7545 * defs.h (interpreter_p): Don't declare.
7547 2019-05-08 Tom Tromey <tromey@adacore.com>
7549 * dwarf2loc.c: Include dwarf2read.h.
7550 * defs.h (read_unsigned_leb128): Don't declare.
7551 * dwarf2read.h (read_unsigned_leb128): Declare.
7553 2019-05-08 Tom Tromey <tromey@adacore.com>
7555 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7558 2019-05-08 Tom Tromey <tromey@adacore.com>
7560 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7561 when no wrap column is set.
7563 2019-05-08 Tom Tromey <tromey@adacore.com>
7565 * c-lang.c (c_get_string): Handle non-C-style arrays.
7567 2019-05-08 Tom Tromey <tromey@adacore.com>
7569 * typeprint.c (print_offset_data::update): Print the bit offset,
7570 not the number of bits remaining.
7572 2019-05-08 Tom Tromey <tromey@adacore.com>
7574 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7575 padding at end of comment.
7577 2019-05-08 Tom Tromey <tromey@adacore.com>
7579 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7582 2019-05-06 Tom Tromey <tom@tromey.com>
7584 * common/scoped_mmap.c: Include common-defs.h.
7585 * common/scoped_mmap.h: Don't include config.h.
7587 2019-05-04 Tom Tromey <tom@tromey.com>
7589 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7590 (struct aarch64_call_info): Add initializers.
7591 <si>: Now a std::vector.
7592 (pass_on_stack, aarch64_push_dummy_call): Update.
7594 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7595 Tom Tromey <tom@tromey.com>
7597 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7598 (ppc_threads): Now a std::vector. Now static.
7599 (hwdebug_find_thread_points_by_tid)
7600 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7603 2019-05-04 Tom Tromey <tom@tromey.com>
7605 * arc-tdep.c (arc_tdesc_init): Return bool.
7607 2019-05-04 Tom Tromey <tom@tromey.com>
7609 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7610 Use gdb_assert_not_reached.
7612 2019-05-04 Tom Tromey <tom@tromey.com>
7614 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7617 2019-05-04 Tom Tromey <tom@tromey.com>
7619 * arc-tdep.c (arc_tdesc_init): Use bool.
7621 2019-05-04 Tom Tromey <tom@tromey.com>
7623 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7625 2019-05-04 Tom Tromey <tom@tromey.com>
7627 * cli/cli-cmds.c (valid_command_p): Return bool.
7629 2019-05-04 Tom Tromey <tom@tromey.com>
7631 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7632 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7634 2019-05-04 Raul Tambre <raul@tambre.ee>
7636 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7637 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7638 operator for comparison.
7640 2019-05-04 Tom Tromey <tom@tromey.com>
7642 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7643 (lookup_partial_symbol, print_partial_symbols)
7644 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7645 (psymbol_compare): Update.
7646 (add_psymbol_to_bcache): Clear the entire psymbol.
7647 (maintenance_check_psymtabs): Update.
7648 * psympriv.h (struct partial_symbol): Don't derive from
7649 general_symbol_info.
7650 <obj_section, unrelocated_address, address,
7651 set_unrelocated_address>: Update.
7652 <ginfo>: New member.
7653 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7654 (debug_names::write_psymbols): Update.
7656 2019-05-04 Tom de Vries <tdevries@suse.de>
7658 * contrib/cc-with-tweaks.sh: Support -n arg.
7660 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7662 * corelow.c (core_target::detach): Ensure frame cache and
7663 register caches are cleared.
7664 inferior.c (exit_inferior_1): Likewise.
7666 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7667 Tom Tromey <tom@tromey.com>
7669 * dictionary.c (collate_pending_symbols_by_language): Remove
7670 "struct" from foreach.
7671 * symtab.c (lookup_global_symbol_from_objfile)
7672 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7674 * ser-tcp.c (net_open): Remove "struct" from foreach.
7675 * objfiles.c (objfile_relocate, objfile_rebase)
7676 (objfile_has_symbols): Remove "struct" from foreach.
7677 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7679 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7681 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7682 "struct" from foreach.
7683 * ada-lang.c (create_excep_cond_exprs)
7684 (ada_exception_catchpoint_cond_string): Remove "struct" from
7687 2019-05-03 Tom Tromey <tromey@adacore.com>
7689 * ada-exp.y (convert_char_literal): Check suffix of each
7692 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7695 * ada-exp.y (yywrap): Don't define.
7696 * ada-lex.l (%option): Add noyywrap
7699 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7701 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7702 _WIN32_WINNT to the XP level, unless already defined to a higher
7705 * unittests/parse-connection-spec-selftests.c:
7707 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7710 * symfile.c (find_separate_debug_file): Remove colon from the
7711 drive spec of DOS/Windows file names of the target, so that the
7712 file name produced from DEBUGDIR and the target's directory will
7713 be valid on DOS/Windows systems.
7715 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7717 * rust-lang.c (val_print_struct): Handle printing structures
7720 2019-05-02 Tom Tromey <tromey@adacore.com>
7722 * valarith.c (_initialize_valarith): Remove.
7724 2019-05-01 Tom Tromey <tromey@adacore.com>
7726 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7729 2019-05-01 Tom Tromey <tromey@adacore.com>
7731 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7732 for big-endian copies.
7734 2019-04-30 Ali Tamur <tamur@google.com>
7735 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7736 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7737 (read_3_bytes): New function.
7739 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7741 * windows-nat.c (main_thread_id): Delete.
7742 (handle_output_debug_string): Replace main_thread_id by
7743 current_event.dwThreadId.
7744 (fake_create_process): Likewise.
7745 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7746 Do not set main_thread_id.
7747 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7748 current_event.dwThreadId.
7749 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7751 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7753 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7754 Use current_event.dwThreadId instead of main_thread_id.
7756 2019-04-30 Tom Tromey <tromey@adacore.com>
7758 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7759 (create_excep_cond_exprs): Iterate over program spaces.
7760 (ada_exception_catchpoint_cond_string): Examine all minimal
7761 symbols for exception types.
7763 2019-04-30 Tom Tromey <tromey@adacore.com>
7766 * dwarf2read.c (process_structure_scope): Handle case where type
7767 has template parameters but no symbol was created.
7769 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7770 Chris January <chris.january@arm.com>
7772 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7774 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7776 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7778 * f-typeprint.c (f_print_type): Update rules for printing
7780 (f_type_print_varspec_suffix): Likewise.
7782 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7783 Chris January <chris.january@arm.com>
7785 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7788 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7790 * f-lang.c (build_fortran_types): Change name of void type to
7792 * f-typeprint.c (f_type_print_base): Print the name of the void
7793 type, rather than a fixed string.
7794 * f-valprint.c (f_decorations): Use lower case void string.
7796 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7797 Chris January <chris.january@arm.com>
7799 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7802 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7803 Chris January <chris.january@arm.com>
7804 David Lecomber <david.lecomber@arm.com>
7806 * f-exp.y (BINOP_INTRINSIC): New token.
7807 (exp): New parser rule handling BINOP_INTRINSIC.
7808 (f77_keywords): Add new builtin procedures.
7809 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7810 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7811 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7812 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7813 (print_unop_subexp_f): New function.
7814 (print_binop_subexp_f): New function.
7815 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7816 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7817 (dump_subexp_body_f): Likewise.
7818 (operator_check_f): Likewise.
7819 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7820 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7822 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7824 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7826 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7827 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7828 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7829 (operator_length_f): New fuction.
7830 (print_subexp_f): New function.
7831 (op_name_f): New function.
7832 (dump_subexp_body_f): New function.
7833 (operator_check_f): New function.
7834 (exp_descriptor_f): Replace standard expression handling functions
7836 * gdb/fortran-operator.def: New file.
7837 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7838 * gdb/std-operator.def: Remove UNOP_KIND.
7840 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7842 * std-operator.def: Remove unbalanced, stray double quote
7845 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7846 Chris January <chris.january@arm.com>
7847 Daniel Everett <daniel.everett@arm.com>
7848 Nick Forrington <nick.forrington@arm.com>
7849 Richard Bunt <richard.bunt@arm.com>
7851 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7852 of depth when printing anonymous structs or unions.
7853 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7854 Don't print either the top-level value, or the children if the
7855 max-depth is exceeded.
7856 (ppscm_print_children): When printing the key of a map, allow one
7857 extra level of depth.
7858 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7859 print either the top-level value, or the children if the max-depth
7861 (print_children): When printing the key of a map, allow one extra
7863 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7864 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7865 (user_print_options): Initialise max_depth field.
7866 (val_print_scalar_or_string_type_p): New function.
7867 (val_print): Check to see if the max depth has been reached.
7868 (val_print_check_max_depth): Define new function.
7869 (show_print_max_depth): New function.
7870 (_initialize_valprint): Add 'print max-depth' option.
7871 * valprint.h (struct value_print_options) <max_depth>: New field.
7872 (val_print_check_max_depth): Declare new function.
7873 * NEWS: Document new feature.
7875 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7877 * ada-lang.c (ada_language_defn): Initialise new field.
7878 * c-lang.c (c_is_string_type_p): New function.
7879 (c_language_defn): Initialise new field.
7880 (cplus_language_defn): Initialise new field.
7881 (asm_language_defn): Initialise new field.
7882 (minimal_language_defn): Initialise new field.
7883 * c-lang.h (c_is_string_type_p): Declare new function.
7884 * d-lang.c (d_language_defn): Initialise new field.
7885 * f-lang.c (f_is_string_type_p): New function.
7886 (f_language_defn): Initialise new field.
7887 * go-lang.c (go_is_string_type_p): New function.
7888 (go_language_defn): Initialise new field.
7889 * language.c (default_is_string_type_p): New function.
7890 (unknown_language_defn): Initialise new field.
7891 (auto_language_defn): Initialise new field.
7892 * language.h (struct language_defn) <la_is_string_type_p>: New
7894 (default_is_string_type_p): Declare new function.
7895 * m2-lang.c (m2_language_defn): Initialise new field.
7896 * objc-lang.c (objc_language_defn): Initialise new field.
7897 * opencl-lang.c (opencl_language_defn): Initialise new field.
7898 * p-lang.c (pascal_is_string_type_p): New function.
7899 (pascal_language_defn): Initialise new field.
7900 * rust-lang.c (rust_is_string_type_p): New function.
7901 (rust_language_defn): Initialise new field.
7903 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7905 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7907 * ada-lang.c (ada_language_defn): Initialise new field.
7908 * c-lang.c (c_language_defn): Likewise.
7909 (cplus_language_defn): Likewise.
7910 (asm_language_defn): Likewise.
7911 (minimal_language_defn): Likewise.
7912 * d-lang.c (d_language_defn): Likewise.
7913 * f-lang.c (f_language_defn): Likewise.
7914 * go-lang.c (go_language_defn): Likewise.
7915 * language.c (unknown_language_defn): Likewise.
7916 (auto_language_defn): Likewise.
7917 * m2-lang.c (m2_language_defn): Likewise.
7918 * objc-lang.c (objc_language_defn): Likewise.
7919 * opencl-lang.c (opencl_language_defn): Likewise.
7920 * p-lang.c (pascal_language_defn): Likewise.
7921 * rust-lang.c (rust_language_defn): Likewise.
7923 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7925 * ada-lang.c (ada_is_character_type): Change return type to bool.
7926 (ada_is_string_type): Likewise.
7927 * ada-lang.h (ada_is_character_type): Update declaration
7928 (ada_is_string_type): Likewise.
7930 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7932 Support style in 'frame|thread apply'
7934 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7935 * record.c (record_start, record_stop): Update callers of
7936 execute_command_to_string with false.
7937 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7938 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7940 (class string_file): New constructor with term_out parameter.
7941 Override methods term_out and can_emit_style_escape. New member
7943 (class stdio_file): Override can_emit_style_escape.
7944 (class tee_file): Override term_out and can_emit_style_escape.
7945 * utils.h (can_emit_style_escape): Remove.
7946 * utils.c (can_emit_style_escape): Likewise.
7947 Update all callers of can_emit_style_escape (SOMESTREAM) to
7948 SOMESTREAM->can_emit_style_escape.
7949 * source-cache.c (source_cache::get_source_lines): Likewise.
7950 * stack.c (frame_apply_command_count): Call execute_command_to_string
7951 passing the term_out characteristic of the current gdb_stdout.
7952 * thread.c (thr_try_catch_cmd): Likewise.
7953 * top.c (execute_command_to_string): pass term_out parameter
7954 to construct the string_file for the command output.
7955 * ui-file.c (term_cli_styling): New function (most code moved
7956 from utils.c can_emit_style_escape).
7957 (string_file::string_file, string_file::can_emit_style_escape,
7958 stdio_file::can_emit_style_escape, tee_file::term_out,
7959 tee_file::can_emit_style_escape): New functions.
7961 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7963 * NEWS: Mention the new set|show may-call-functions.
7964 * infcall.c (may_call_functions_p): New variable.
7965 (show_may_call_functions_p): New function.
7966 (call_function_by_hand_dummy): Throws an error if not
7968 (_initialize_infcall): Call add_setshow_boolean_cmd for
7971 2019-04-25 Keith Seitz <keiths@redhat.com>
7974 * cp-support.c (inspect_type): Don't attempt substitutions
7975 of symbol with the same name.
7977 2019-04-25 Tom Tromey <tromey@adacore.com>
7980 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7983 2019-04-25 Tom Tromey <tromey@adacore.com>
7985 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
7987 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
7988 (gdb_xml_parser::parse): Use std::move.
7989 * python/python-internal.h (gdbpy_convert_exception): Take a const
7991 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
7993 * python/py-utils.c (gdbpy_convert_exception): Take a const
7995 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
7997 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
7999 * mi/mi-main.c (mi_print_exception): Take a const reference.
8000 * main.c (handle_command_errors): Take a const reference.
8001 * linespec.c (parse_linespec): Use std::move.
8002 * infcall.c (run_inferior_call): Use std::move.
8003 (call_function_by_hand_dummy): Use std::move.
8004 * exec.c (try_open_exec_file): Use std::move.
8005 * exceptions.h (exception_print, exception_fprintf)
8006 (exception_print_same): Update.
8007 * exceptions.c (print_exception, exception_print)
8008 (exception_fprintf, exception_print_same): Change parameters to
8010 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8011 * common/new-op.c: Use std::move.
8012 * common/common-exceptions.h (struct gdb_exception): Add move
8014 (struct gdb_exception_error, struct gdb_exception_quit, struct
8015 gdb_quit_bad_alloc): Change constructor to move constructor.
8016 (throw_exception): Change parameter to rvalue reference.
8017 * common/common-exceptions.c (throw_exception): Take rvalue
8019 * cli/cli-interp.c (safe_execute_command): Use std::move.
8020 * breakpoint.c (insert_bp_location, location_to_sals): Use
8023 2019-04-25 Tom Tromey <tromey@adacore.com>
8025 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8026 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8027 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8028 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8029 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8030 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8031 guile/scm-value.c: Use unpack.
8032 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8033 gdbscm_gdb_exception.
8034 (gdbscm_throw_gdb_exception): Likewise.
8035 (struct gdbscm_gdb_exception): New.
8036 (unpack): New function.
8037 (gdbscm_wrap): Use unpack.
8039 2019-04-25 Tom Tromey <tromey@adacore.com>
8041 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8042 (gdb_rl_callback_handler): Use std::move.
8043 * common/common-exceptions.h (struct gdb_exception): Add move
8044 assignment operator.
8045 (throw_exception_sjlj): Change "exception" to const reference.
8046 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8047 (throw_exception_sjlj): Change "exception" to const reference.
8049 2019-04-25 Tom Tromey <tromey@adacore.com>
8051 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8052 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8053 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8055 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8057 * mi/mi-interp.c (mi_interp::exec): Update.
8058 * linespec.c (parse_linespec): Update.
8059 * infcall.c (run_inferior_call): Update.
8060 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8061 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8062 (gdbscm_lookup_global_symbol): Update.
8063 * guile/scm-param.c (gdbscm_parameter_value): Update.
8064 * guile/scm-frame.c (gdbscm_frame_read_register)
8065 (gdbscm_frame_read_var): Update.
8066 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8067 * exec.c (try_open_exec_file): Update.
8068 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8069 (gdb_rl_callback_handler): Update.
8070 * common/common-exceptions.h (exception_none): Don't declare.
8071 * common/common-exceptions.c (exception_none): Don't define.
8072 (struct catcher) <exception>: Update.
8073 * cli/cli-interp.c (safe_execute_command): Update.
8074 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8076 2019-04-25 Ali Tamur <tamur@google.com>
8078 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8079 (read_attribute_value): Likewise.
8080 (dwarf2_read_addr_index): Update comment.
8081 (read_str_index): Add DW_FORM_strx.
8082 (dwarf2_string_attr): Likewise.
8083 (dwarf2_const_value_attr): Likewise.
8084 (dump_die_shallow): Likewise.
8085 (dwarf2_fetch_constant_bytes): Likewise.
8086 (skip_form_bytes): Likewise.
8087 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8089 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8093 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8094 OFFSET. Verify if current mapping contains an ELF header.
8095 (linux_find_memory_regions_full): Adjust call to
8098 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8099 Kang Li <kanglictf@gmail.com>
8103 * dwarf2-frame.c (read_initial_length): Be consistent about using
8104 unsigned representation of length.
8105 (decode_frame_entry_1): Likewise. Check for wraparound of
8106 end pointer as well as buffer overflow.
8108 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8110 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8113 2019-04-24 Tom Tromey <tromey@adacore.com>
8115 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8117 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8119 * s12z-tdep.c (s12z_unwind_pc): Delete.
8120 (s12z_unwind_sp): Delete.
8121 (s12z_gdbarch_init): Don't register deleted functions with
8124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8126 * rl78-tdep.c (rl78_unwind_sp): Delete.
8127 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8129 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8131 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8132 (xstormy16_unwind_pc): Delete.
8133 (xstormy16_dummy_id): Delete.
8134 (xstormy16_gdbarch_init): Don't register deleted functions with
8137 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8139 * vax-tdep.c (vax_unwind_pc): Delete.
8140 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8142 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8144 * v850-tdep.c (v850_unwind_sp): Delete.
8145 (v850_unwind_pc): Delete.
8146 (v850_dummy_id): Delete.
8147 (v850_gdbarch_init): Don't register deleted functions with
8150 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8152 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8153 (tilegx_unwind_pc): Delete.
8154 (tilegx_unwind_dummy_id): Delete.
8155 (tilegx_gdbarch_init): Don't register deleted functions with
8158 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8160 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8161 (tic6x_dummy_id): Delete.
8162 (tic6x_gdbarch_init): Don't register deleted functions with
8165 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8167 * sparc-tdep.c (sparc_unwind_pc): Delete.
8168 (sparc32_gdbarch_init): Don't register deleted function with
8171 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8173 * sh-tdep.c (sh_unwind_sp): Delete.
8174 (sh_unwind_pc): Delete.
8175 (sh_dummy_id): Delete.
8176 (sh_gdbarch_init): Don't register deleted functions with
8179 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8181 * score-tdep.c (score_unwind_sp): Delete.
8182 (score_unwind_pc): Delete.
8183 (score_dummy_id): Delete.
8184 (score_gdbarch_init): Don't register deleted functions with
8187 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8189 * rx-tdep.c (rx_unwind_pc): Delete.
8190 (rx_unwind_sp): Delete.
8191 (rx_dummy_id): Delete.
8192 (rx_gdbarch_init): Don't register deleted functions with
8193 gdbarch. Update comment.
8195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8197 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8198 (rs6000_dummy_id): Delete.
8199 (rs6000_gdbarch_init): Don't register deleted functions with
8202 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8204 * or1k-tdep.c (or1k_dummy_id): Delete.
8205 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8207 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8209 * nios2-tdep.c (nios2_dummy_id): Delete.
8210 (nios2_unwind_sp): Delete.
8211 (nios2_gdbarch_init): Don't register deleted functions with
8214 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8216 * nds32-tdep.c (nds32_dummy_id): Delete.
8217 (nds32_unwind_pc): Delete.
8218 (nds32_unwind_sp): Delete.
8219 (nds32_gdbarch_init): Don't register deleted functions with
8222 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8224 * msp430-tdep.c (msp430_unwind_pc): Delete.
8225 (msp430_unwind_sp): Delete.
8226 (msp430_dummy_id): Delete.
8227 (msp430_gdbarch_init): Don't register deleted functions with
8230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8232 * moxie-tdep.c (moxie_unwind_sp): Delete.
8233 (moxie_unwind_pc): Delete.
8234 (moxie_dummy_id): Delete.
8235 (moxie_gdbarch_init): Don't register deleted functions with
8238 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8240 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8241 (mn10300_unwind_pc): Delete.
8242 (mn10300_unwind_sp): Delete.
8243 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8245 (mn10300_frame_unwind_init): Don't register deleted functions with
8248 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8250 * mep-tdep.c (mep_unwind_pc): Delete.
8251 (mep_unwind_sp): Delete.
8252 (mep_dummy_id): Delete.
8253 (mep_gdbarch_init): Don't register deleted functions with
8256 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8258 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8259 (m68hc11_unwind_sp): Delete.
8260 (m68hc11_gdbarch_init): Don't register deleted functions with
8263 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8265 * m32r-tdep.c (m32r_unwind_sp): Delete.
8266 (m32r_unwind_pc): Delete.
8267 (m32r_dummy_id): Delete.
8268 (m32r_gdbarch_init): Don't register deleted functions with
8271 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8273 * m32c-tdep.c (m32c_unwind_pc): Delete.
8274 (m32c_unwind_sp): Delete.
8275 (m32c_dummy_id): Delete.
8276 (m32c_gdbarch_init): Don't register deleted functions with
8279 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8281 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8282 (lm32_unwind_pc): Delete.
8283 (lm32_dummy_id): Delete.
8284 (lm32_gdbarch_init): Don't register deleted functions with
8287 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8289 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8290 (iq2000_unwind_pc): Delete.
8291 (iq2000_dummy_id): Delete.
8292 (iq2000_gdbarch_init): Don't register deleted functions with
8295 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8297 * nds32-tdep.c (nds32_type_align): Delete.
8298 (nds32_push_dummy_call): Use type_align instead.
8300 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8302 * arm-tdep.c (arm_type_align): Only handle vector override case.
8303 (arm_push_dummy_call): Use type_align.
8304 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8306 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8308 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8310 (pass_on_stack): Use type_align.
8311 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8314 2019-04-23 Tom Tromey <tromey@adacore.com>
8316 * dwarf2read.c (line_header::file_name_at): Remove unused
8319 2019-04-23 Tom de Vries <tdevries@suse.de>
8322 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8326 2019-03-27 Ali Tamur <tamur@google.com>
8328 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8329 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8330 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8331 (dwarf_expr_context::get_addr_index): Likewise
8332 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8333 (symbol_needs_eval_context::get_addr_index): Likewise
8334 (disassemble_dwarf_expression): Add DW_OP_addrx
8335 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8336 (read_cutu_die_from_dwo): Update comment
8337 (skip_one_die): Add DW_FORM_addrx
8338 (read_attribute_value): Likewise
8339 (var_decode_location): Add DW_OP_addrx
8340 (dwarf2_const_value_attr): Add DW_FORM_addrx
8341 (dump_die_shallow): Likewise
8342 (dwarf2_fetch_constant_bytes): Likewise
8343 (decode_locdesc): Add DW_OP_addrx
8344 (skip_form_bytes): Add DW_FORM_addrx
8346 2019-04-22 Ali Tamur <tamur@google.com>
8348 * MAINTAINERS (Write After Approval): Add self.
8350 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8352 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8353 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8354 (open_symbol_file_object): Likewise.
8355 (svr4_default_sos): Add info parameter.
8356 (svr4_read_so_list): Likewise.
8357 (svr4_current_sos_direct): Adjust functions calls to pass down
8359 (svr4_current_sos_1): Add info parameter.
8360 (svr4_current_sos): Call get_svr4_info, pass info down to
8362 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8364 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8366 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8368 (probes_table_remove_objfile_probes): Likewise.
8369 (register_solib_event_probe): Add info parameter.
8370 (solist_update_incremental): Pass info parameter down to
8372 (disable_probes_interface): Add info parameter.
8373 (svr4_handle_solib_event): Pass current_program_space to
8374 get_svr4_info. Adjust disable_probes_interface cleanup.
8375 (svr4_create_probe_breakpoints): Add info parameter, pass it
8376 down to register_solib_event_probe.
8377 (svr4_create_solib_event_breakpoints): Add info parameter,
8378 pass it down to svr4_create_probe_breakpoints.
8379 (enable_break): Pass info down to
8380 svr4_create_solib_event_breakpoints.
8381 (svr4_solib_create_inferior_hook): Pass current_program_space to
8383 (svr4_clear_solib): Likewise.
8385 2019-04-22 Pedro Alves <palves@redhat.com>
8387 * solib-svr4.c (svr4_free_objfile_observer): New.
8388 (probe_and_action::objfile): New field.
8389 (probes_table_htab_remove_objfile_probes)
8390 (probes_table_remove_objfile_probes): New functions.
8391 (register_solib_event_probe): Add 'objfile' parameter. Store it
8392 in the new probe_and_action. Don't store the probe in 'lookup'.
8393 (svr4_create_probe_breakpoints): Pass objfile to
8394 register_solib_event_probe.
8395 (_initialize_svr4_solib): Register a free_objfile observer.
8397 2019-04-19 Tom Tromey <tom@tromey.com>
8399 * common/queue.h: Remove.
8401 2019-04-19 Tom Tromey <tom@tromey.com>
8403 * event-loop.c: Don't include "common/queue.h".
8405 2019-04-19 Tom Tromey <tom@tromey.com>
8407 * remote.c (remote_target): Use delete.
8408 * remote-notif.h: Include <list>, not "common/queue.h".
8409 (notif_client_p): Remove typedef.
8410 (remote_notif_state): Add constructor, destructor, initializer.
8411 <notif_queue>: Now a std::list.
8412 (remote_notif_state_xfree): Don't declare.
8413 * remote-notif.c (remote_notif_process, handle_notification)
8414 (remote_notif_state_allocate): Update.
8415 (~remote_notif_state): Rename from remote_notif_state_xfree.
8417 2019-04-19 Tom Tromey <tom@tromey.com>
8419 * symfile.c (reread_symbols): Update.
8420 * objfiles.c (objfile_register_static_link)
8421 (objfile_lookup_static_link): Update
8422 (~objfile) Don't delete static_links.
8423 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8425 2019-04-19 Tom Tromey <tom@tromey.com>
8427 * type-stack.h (struct type_stack) <insert>: Constify string.
8428 * type-stack.c (type_stack::insert): Constify string.
8429 * gdbtypes.h (lookup_template_type): Update.
8430 (address_space_name_to_int): Update.
8431 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8433 (lookup_template_type): Make name const.
8434 * c-exp.y: Update rules.
8435 (lex_one_token, classify_name, classify_inner_name)
8436 (c_print_token): Update.
8437 * p-exp.y: Update rules.
8439 * f-exp.y: Update rules.
8441 * d-exp.y: Update rules.
8442 (lex_one_token, classify_name, classify_inner_name): Update.
8443 * parse.c (write_dollar_variable, copy_name): Return std::string.
8444 * parser-defs.h (copy_name): Change return type.
8445 * m2-exp.y: Update rules.
8447 * go-exp.y (lex_one_token): Update.
8449 (classify_unsafe_function, classify_packaged_name)
8450 (classify_name, yylex): Update.
8452 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8454 * configure.ac: add --enable-source-highlight switch.
8455 * configure: Regenerate.
8456 * top.c (print_gdb_version): plumb --enable-source-highlight
8457 status to "show configuration".
8459 2019-04-19 Tom Tromey <tromey@adacore.com>
8461 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8463 (empty_record, ada_template_to_fixed_record_type_1)
8464 (template_to_static_fixed_type)
8465 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8466 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8467 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8470 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8473 * source.c (print_source_lines_base): Advance "iter" when a
8474 control character is seen.
8476 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8478 * inferior.h (struct infcall_suspend_state_deleter):
8479 Catch exception in destructor to avoid crash.
8481 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8483 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8484 close to the add_com "shell".
8486 2019-04-18 Tom Tromey <tromey@adacore.com>
8488 * process-stratum-target.h (class process_stratum_target)
8489 <stratum>: Add "final".
8491 2019-04-17 Tom Tromey <tromey@adacore.com>
8493 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8494 against nullptr before use.
8496 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8498 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8500 2019-04-17 Jim Wilson <jimw@sifive.com>
8501 Andrew Burgess <andrew.burgess@embecosm.com>
8503 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8504 code read might fail, assume 4-byte breakpoint in that case.
8506 2019-04-15 Leszek Swirski <leszeks@google.com>
8508 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8509 rather than a hand-rolled POD check when checking for forced MEMORY
8512 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8514 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8515 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8517 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8518 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8519 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8522 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8524 * aarch64-linux-nat.c
8525 (aarch64_linux_nat_target::thread_architecture): Add override.
8526 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8529 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8531 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8533 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8535 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8536 target types of size 96-bits, add some additional comments, and
8537 check that the builtin type we found was the correct size.
8539 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8541 * utils.c (prompt_for_continue): Don't restore the styling at the
8542 end, as applied_style has the wrong value. This fixes styling in
8543 long lists of file names that are interrupted by the "Continue?"
8546 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8548 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8549 * c-lang.c (c_language_defn): Likewise.
8550 (cplus_language_defn): Likewise.
8551 (asm_language_defn): Likewise.
8552 (minimal_language_defn): Likewise.
8553 * d-lang.c (d_language_defn): Likewise.
8554 * f-lang.c (f_language_defn): Likewise.
8555 * go-lang.c (go_language_defn): Likewise.
8556 * language.c (unknown_language_defn): Likewise.
8557 (auto_language_defn): Likewise.
8558 * language.h (struct language_defn): Remove la_magic field.
8559 (LANG_MAGIC): Delete.
8560 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8561 * objc-lang.c (objc_language_defn): Likewise.
8562 * opencl-lang.c (opencl_language_defn): Likewise.
8563 * p-lang.c (pascal_language_defn): Likewise.
8564 * rust-lang.c (rust_language_defn): Likewise.
8566 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8568 * riscv-tdep.c (riscv_type_align): New function.
8569 (riscv_type_alignment): Delete.
8570 (riscv_arg_location): Use 'type_align'.
8571 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8573 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8575 * gdbtypes.c (type_align): A struct with no non-static fields also
8578 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8580 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8582 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8584 (riscv_struct_info::analyse): New implementation using new
8585 analyse_inner member function.
8586 (riscv_struct_info::field_offset): New member function.
8587 (riscv_struct_info::m_offsets): New member variable.
8588 (riscv_struct_info::analyse_inner): New private member function,
8589 takes the old implementation of riscv_struct_info::analyse but
8590 extended to track field offsets.
8591 (riscv_call_arg_struct): Update the struct folding special cases
8592 to handle cases where empty C++ structs, which are non-zero
8594 (riscv_arg_location): Initialise the length of each location, a
8595 non-zero length now indicates the location is in use.
8596 (riscv_push_dummy_call): Allow for the first location having a
8597 non-zero offset when setting up arguments.
8598 (riscv_return_value): Likewise, but for return values.
8600 2019-04-11 Tom Tromey <tromey@adacore.com>
8602 * utils.c (internal_vproblem): Make "msg" const.
8604 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8606 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8607 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8608 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8609 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8611 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8613 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8615 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8616 of amd64_collect_native_gregset.
8617 (amd64_linux_nat_target::store_registers): Likewise.
8619 2019-04-10 Tom Tromey <tom@tromey.com>
8621 * symtab.c (lookup_global_symbol_from_objfile)
8622 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8623 * objfiles.h (class separate_debug_iterator): New.
8624 (class separate_debug_range): New.
8625 (struct objfile) <separate_debug_objfiles>: New method.
8626 (objfile_separate_debug_iterate): Don't declare.
8627 * objfiles.c (separate_debug_iterator::operator++): Rename from
8628 objfile_separate_debug_iterate.
8629 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8631 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8634 2019-04-10 Tom Tromey <tom@tromey.com>
8636 * symfile.c (reread_symbols): Remove old comment.
8637 * objfiles.c (free_all_objfiles): Fix a typo.
8639 2019-04-10 Tom Tromey <tom@tromey.com>
8641 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8642 * minsyms.c (lookup_minimal_symbol): Use foreach.
8643 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8644 (lookup_minimal_symbol_solib_trampoline): Likewise.
8645 * symfile.c (reread_symbols): Use foreach.
8647 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8648 Tom Tromey <tromey@adacore.com>
8651 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8652 (rust_lex_int_test): Change "value" to be LONGEST.
8653 (rust_lex_tests): Add test for long integer literal.
8655 2019-04-09 Tom Tromey <tromey@adacore.com>
8657 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8659 (extended_remote_target::attach): Update.
8660 (remote_target::remote_notice_new_inferior): Update.
8661 (remote_target::add_current_inferior_and_thread): Update.
8662 * inferior.c (exit_inferior_1): Use "false".
8663 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8665 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8667 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8668 the "start" command.
8670 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8672 * python/py-inferior.c (infpy_thread_from_thread_handle):
8673 Adjust comments to reflect renaming of thread_from_thread_handle
8674 to thread_from_handle. Adjust keywords. Fix type error message.
8675 (inferior_object_methods): Add thread_from_handle. Retain
8676 thread_from_thread_handle, but mark it as deprecated.
8678 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8680 * gdbthread.h (find_thread_by_handle): Revise declaration.
8681 * thread.c (find_thread_by_handle): Likewise. Adjust
8683 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8684 support for buffer objects as handles.
8686 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8688 * python/py-infthread.c (thpy_thread_handle): New function.
8689 (thread_object_methods): Register thpy_thread_handle.
8691 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8693 * gdbthread.h (thread_to_thread_handle): Declare.
8694 * thread.c (gdbtypes.h): Include.
8695 (thread_to_thread_handle): New function.
8697 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8698 (target_thread_info_to_thread_handle): Declare.
8699 * target.c (target_thread_info_to_thread_handle): New function.
8700 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8701 * target-delegates.c: Regenerate.
8703 * linux-thread-db.c (class thread_db_target): Add method
8704 thread_info_to_thread_handle.
8705 (thread_db_target::thread_info_to_thread_handle): Define.
8706 * remote.c (class remote_target): Add new method
8707 thread_info_to_thread_handle.
8708 (remote_target::thread_info_to_thread_handle): Define.
8710 2019-04-08 Pedro Alves <palves@redhat.com>
8712 * common/common-exceptions.c (throw_exception): Don't create
8713 named object to throw; throw directly.
8714 (throw_it): Likewise. Don't initialize gdb_exception::message
8715 here, with new; pass FMT and AP to the ctor instead.
8716 * common/common-exceptions.h: Include <string>.
8717 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8718 const char *, va_list)): New ctor. Use std::make_shared.
8719 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8721 (gdb_exception_error::gdb_exception_error(enum errors, const char
8723 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8725 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8727 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8728 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8731 2019-04-08 Tom Tromey <tom@tromey.com>
8733 * valops.c (value_rtti_indirect_type): Replace throw_exception
8735 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8737 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8739 * target.c (target_translate_tls_address): Replace throw_exception
8741 * stack.c (frame_apply_command_count): Replace throw_exception
8743 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8745 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8747 * rs6000-tdep.c (rs6000_frame_cache)
8748 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8749 * remote.c: Replace throw_exception with throw.
8750 * record-full.c (record_full_message, record_full_wait_1)
8751 (record_full_restore): Replace throw_exception with throw.
8753 (get_thread_current_frame_id, record_btrace_start_replaying)
8754 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8755 (cmd_record_btrace_start): Replace throw_exception with throw.
8756 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8758 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8759 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8761 (find_linespec_symbols): Replace throw_exception with throw.
8762 * infrun.c (displaced_step_prepare, resume): Replace
8763 throw_exception with throw.
8764 * infcmd.c (post_create_inferior): Replace throw_exception with
8766 * inf-loop.c (inferior_event_handler): Replace throw_exception
8768 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8769 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8770 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8771 (get_prev_frame_always, get_frame_pc_if_available)
8772 (get_frame_address_in_block_if_available, get_frame_language):
8773 Replace throw_exception with throw.
8774 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8775 throw_exception with throw.
8776 * eval.c (fetch_subexp_value, evaluate_var_value)
8777 (evaluate_funcall, evaluate_subexp_standard): Replace
8778 throw_exception with throw.
8779 * dwarf2loc.c (call_site_find_chain)
8780 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8781 Replace throw_exception with throw.
8782 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8784 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8786 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8787 * completer.c (complete_line_internal): Replace throw_exception
8789 * compile/compile-object-run.c (compile_object_run): Replace
8790 throw_exception with throw.
8791 * cli/cli-script.c (process_next_line): Replace throw_exception
8793 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8794 (btrace_enable, btrace_maint_update_pt_packets): Replace
8795 throw_exception with throw.
8796 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8797 throw_exception with throw.
8798 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8799 throw_exception with throw.
8800 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8801 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8802 * aarch64-tdep.c (aarch64_make_prologue_cache)
8803 (aarch64_make_stub_cache): Replace throw_exception with throw.
8805 2019-04-08 Tom Tromey <tom@tromey.com>
8807 * common/common-exceptions.c (throw_exception): Rename from
8808 throw_exception_cxx. Remove old copy. Make argument const.
8809 (throw_it): Create and throw exception objects directly.
8810 * common/common-exceptions.h (throw_exception): Make argument
8812 (struct gdb_exception_error): Add constructor.
8813 (struct gdb_exception_quit): Add constructor.
8815 2019-04-08 Tom Tromey <tom@tromey.com>
8817 * common/common-exceptions.h (exception_rethrow): Don't declare.
8818 (TRY_SJLJ): Update comment.
8819 (TRY, CATCH, END_CATCH): Remove.
8820 * common/common-exceptions.c (exception_rethrow): Remove.
8822 2019-04-08 Tom Tromey <tom@tromey.com>
8824 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8826 (gdb_exception_error): Rename from
8827 gdb_exception_RETURN_MASK_ERROR.
8828 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8829 (gdb_quit_bad_alloc): Update.
8830 * aarch64-tdep.c: Update.
8831 * ada-lang.c: Update.
8832 * ada-typeprint.c: Update.
8833 * ada-valprint.c: Update.
8834 * amd64-tdep.c: Update.
8835 * arch-utils.c: Update.
8836 * break-catch-throw.c: Update.
8837 * breakpoint.c: Update.
8839 * c-varobj.c: Update.
8840 * cli/cli-cmds.c: Update.
8841 * cli/cli-interp.c: Update.
8842 * cli/cli-script.c: Update.
8843 * common/common-exceptions.c: Update.
8844 * common/new-op.c: Update.
8845 * common/selftest.c: Update.
8846 * compile/compile-c-symbols.c: Update.
8847 * compile/compile-cplus-symbols.c: Update.
8848 * compile/compile-object-load.c: Update.
8849 * compile/compile-object-run.c: Update.
8850 * completer.c: Update.
8851 * corelow.c: Update.
8853 * cp-support.c: Update.
8854 * cp-valprint.c: Update.
8855 * darwin-nat.c: Update.
8856 * disasm-selftests.c: Update.
8857 * dtrace-probe.c: Update.
8858 * dwarf-index-cache.c: Update.
8859 * dwarf-index-write.c: Update.
8860 * dwarf2-frame-tailcall.c: Update.
8861 * dwarf2-frame.c: Update.
8862 * dwarf2loc.c: Update.
8863 * dwarf2read.c: Update.
8865 * event-loop.c: Update.
8866 * event-top.c: Update.
8868 * f-valprint.c: Update.
8869 * fbsd-tdep.c: Update.
8870 * frame-unwind.c: Update.
8872 * gdbtypes.c: Update.
8873 * gnu-v3-abi.c: Update.
8874 * guile/guile-internal.h: Update.
8875 * guile/scm-block.c: Update.
8876 * guile/scm-breakpoint.c: Update.
8877 * guile/scm-cmd.c: Update.
8878 * guile/scm-disasm.c: Update.
8879 * guile/scm-frame.c: Update.
8880 * guile/scm-lazy-string.c: Update.
8881 * guile/scm-math.c: Update.
8882 * guile/scm-param.c: Update.
8883 * guile/scm-ports.c: Update.
8884 * guile/scm-pretty-print.c: Update.
8885 * guile/scm-symbol.c: Update.
8886 * guile/scm-symtab.c: Update.
8887 * guile/scm-type.c: Update.
8888 * guile/scm-value.c: Update.
8889 * i386-linux-tdep.c: Update.
8890 * i386-tdep.c: Update.
8891 * inf-loop.c: Update.
8892 * infcall.c: Update.
8896 * language.c: Update.
8897 * linespec.c: Update.
8898 * linux-fork.c: Update.
8899 * linux-nat.c: Update.
8900 * linux-tdep.c: Update.
8901 * linux-thread-db.c: Update.
8903 * mi/mi-cmd-break.c: Update.
8904 * mi/mi-cmd-stack.c: Update.
8905 * mi/mi-interp.c: Update.
8906 * mi/mi-main.c: Update.
8907 * objc-lang.c: Update.
8908 * p-valprint.c: Update.
8910 * ppc-linux-tdep.c: Update.
8911 * printcmd.c: Update.
8912 * python/py-arch.c: Update.
8913 * python/py-breakpoint.c: Update.
8914 * python/py-cmd.c: Update.
8915 * python/py-finishbreakpoint.c: Update.
8916 * python/py-frame.c: Update.
8917 * python/py-framefilter.c: Update.
8918 * python/py-gdb-readline.c: Update.
8919 * python/py-inferior.c: Update.
8920 * python/py-infthread.c: Update.
8921 * python/py-lazy-string.c: Update.
8922 * python/py-linetable.c: Update.
8923 * python/py-objfile.c: Update.
8924 * python/py-param.c: Update.
8925 * python/py-prettyprint.c: Update.
8926 * python/py-progspace.c: Update.
8927 * python/py-record-btrace.c: Update.
8928 * python/py-record.c: Update.
8929 * python/py-symbol.c: Update.
8930 * python/py-type.c: Update.
8931 * python/py-unwind.c: Update.
8932 * python/py-utils.c: Update.
8933 * python/py-value.c: Update.
8934 * python/python.c: Update.
8935 * record-btrace.c: Update.
8936 * record-full.c: Update.
8937 * remote-fileio.c: Update.
8939 * riscv-tdep.c: Update.
8940 * rs6000-aix-tdep.c: Update.
8941 * rs6000-tdep.c: Update.
8942 * rust-exp.y: Update.
8943 * rust-lang.c: Update.
8944 * s390-tdep.c: Update.
8945 * selftest-arch.c: Update.
8946 * solib-dsbt.c: Update.
8947 * solib-frv.c: Update.
8948 * solib-spu.c: Update.
8949 * solib-svr4.c: Update.
8951 * sparc64-linux-tdep.c: Update.
8953 * symfile-mem.c: Update.
8954 * symmisc.c: Update.
8958 * tracefile-tfile.c: Update.
8959 * tui/tui.c: Update.
8960 * typeprint.c: Update.
8961 * unittests/cli-utils-selftests.c: Update.
8962 * unittests/parse-connection-spec-selftests.c: Update.
8964 * valprint.c: Update.
8967 * windows-nat.c: Update.
8968 * x86-linux-nat.c: Update.
8969 * xml-support.c: Update.
8971 2019-04-08 Tom Tromey <tom@tromey.com>
8973 * xml-support.c: Use C++ exception handling.
8974 * x86-linux-nat.c: Use C++ exception handling.
8975 * windows-nat.c: Use C++ exception handling.
8976 * varobj.c: Use C++ exception handling.
8977 * value.c: Use C++ exception handling.
8978 * valprint.c: Use C++ exception handling.
8979 * valops.c: Use C++ exception handling.
8980 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8982 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8983 * typeprint.c: Use C++ exception handling.
8984 * tui/tui.c: Use C++ exception handling.
8985 * tracefile-tfile.c: Use C++ exception handling.
8986 * top.c: Use C++ exception handling.
8987 * thread.c: Use C++ exception handling.
8988 * target.c: Use C++ exception handling.
8989 * symmisc.c: Use C++ exception handling.
8990 * symfile-mem.c: Use C++ exception handling.
8991 * stack.c: Use C++ exception handling.
8992 * sparc64-linux-tdep.c: Use C++ exception handling.
8993 * solib.c: Use C++ exception handling.
8994 * solib-svr4.c: Use C++ exception handling.
8995 * solib-spu.c: Use C++ exception handling.
8996 * solib-frv.c: Use C++ exception handling.
8997 * solib-dsbt.c: Use C++ exception handling.
8998 * selftest-arch.c: Use C++ exception handling.
8999 * s390-tdep.c: Use C++ exception handling.
9000 * rust-lang.c: Use C++ exception handling.
9001 * rust-exp.y: Use C++ exception handling.
9002 * rs6000-tdep.c: Use C++ exception handling.
9003 * rs6000-aix-tdep.c: Use C++ exception handling.
9004 * riscv-tdep.c: Use C++ exception handling.
9005 * remote.c: Use C++ exception handling.
9006 * remote-fileio.c: Use C++ exception handling.
9007 * record-full.c: Use C++ exception handling.
9008 * record-btrace.c: Use C++ exception handling.
9009 * python/python.c: Use C++ exception handling.
9010 * python/py-value.c: Use C++ exception handling.
9011 * python/py-utils.c: Use C++ exception handling.
9012 * python/py-unwind.c: Use C++ exception handling.
9013 * python/py-type.c: Use C++ exception handling.
9014 * python/py-symbol.c: Use C++ exception handling.
9015 * python/py-record.c: Use C++ exception handling.
9016 * python/py-record-btrace.c: Use C++ exception handling.
9017 * python/py-progspace.c: Use C++ exception handling.
9018 * python/py-prettyprint.c: Use C++ exception handling.
9019 * python/py-param.c: Use C++ exception handling.
9020 * python/py-objfile.c: Use C++ exception handling.
9021 * python/py-linetable.c: Use C++ exception handling.
9022 * python/py-lazy-string.c: Use C++ exception handling.
9023 * python/py-infthread.c: Use C++ exception handling.
9024 * python/py-inferior.c: Use C++ exception handling.
9025 * python/py-gdb-readline.c: Use C++ exception handling.
9026 * python/py-framefilter.c: Use C++ exception handling.
9027 * python/py-frame.c: Use C++ exception handling.
9028 * python/py-finishbreakpoint.c: Use C++ exception handling.
9029 * python/py-cmd.c: Use C++ exception handling.
9030 * python/py-breakpoint.c: Use C++ exception handling.
9031 * python/py-arch.c: Use C++ exception handling.
9032 * printcmd.c: Use C++ exception handling.
9033 * ppc-linux-tdep.c: Use C++ exception handling.
9034 * parse.c: Use C++ exception handling.
9035 * p-valprint.c: Use C++ exception handling.
9036 * objc-lang.c: Use C++ exception handling.
9037 * mi/mi-main.c: Use C++ exception handling.
9038 * mi/mi-interp.c: Use C++ exception handling.
9039 * mi/mi-cmd-stack.c: Use C++ exception handling.
9040 * mi/mi-cmd-break.c: Use C++ exception handling.
9041 * main.c: Use C++ exception handling.
9042 * linux-thread-db.c: Use C++ exception handling.
9043 * linux-tdep.c: Use C++ exception handling.
9044 * linux-nat.c: Use C++ exception handling.
9045 * linux-fork.c: Use C++ exception handling.
9046 * linespec.c: Use C++ exception handling.
9047 * language.c: Use C++ exception handling.
9048 * jit.c: Use C++ exception handling.
9049 * infrun.c: Use C++ exception handling.
9050 * infcmd.c: Use C++ exception handling.
9051 * infcall.c: Use C++ exception handling.
9052 * inf-loop.c: Use C++ exception handling.
9053 * i386-tdep.c: Use C++ exception handling.
9054 * i386-linux-tdep.c: Use C++ exception handling.
9055 * guile/scm-value.c: Use C++ exception handling.
9056 * guile/scm-type.c: Use C++ exception handling.
9057 * guile/scm-symtab.c: Use C++ exception handling.
9058 * guile/scm-symbol.c: Use C++ exception handling.
9059 * guile/scm-pretty-print.c: Use C++ exception handling.
9060 * guile/scm-ports.c: Use C++ exception handling.
9061 * guile/scm-param.c: Use C++ exception handling.
9062 * guile/scm-math.c: Use C++ exception handling.
9063 * guile/scm-lazy-string.c: Use C++ exception handling.
9064 * guile/scm-frame.c: Use C++ exception handling.
9065 * guile/scm-disasm.c: Use C++ exception handling.
9066 * guile/scm-cmd.c: Use C++ exception handling.
9067 * guile/scm-breakpoint.c: Use C++ exception handling.
9068 * guile/scm-block.c: Use C++ exception handling.
9069 * guile/guile-internal.h: Use C++ exception handling.
9070 * gnu-v3-abi.c: Use C++ exception handling.
9071 * gdbtypes.c: Use C++ exception handling.
9072 * frame.c: Use C++ exception handling.
9073 * frame-unwind.c: Use C++ exception handling.
9074 * fbsd-tdep.c: Use C++ exception handling.
9075 * f-valprint.c: Use C++ exception handling.
9076 * exec.c: Use C++ exception handling.
9077 * event-top.c: Use C++ exception handling.
9078 * event-loop.c: Use C++ exception handling.
9079 * eval.c: Use C++ exception handling.
9080 * dwarf2read.c: Use C++ exception handling.
9081 * dwarf2loc.c: Use C++ exception handling.
9082 * dwarf2-frame.c: Use C++ exception handling.
9083 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9084 * dwarf-index-write.c: Use C++ exception handling.
9085 * dwarf-index-cache.c: Use C++ exception handling.
9086 * dtrace-probe.c: Use C++ exception handling.
9087 * disasm-selftests.c: Use C++ exception handling.
9088 * darwin-nat.c: Use C++ exception handling.
9089 * cp-valprint.c: Use C++ exception handling.
9090 * cp-support.c: Use C++ exception handling.
9091 * cp-abi.c: Use C++ exception handling.
9092 * corelow.c: Use C++ exception handling.
9093 * completer.c: Use C++ exception handling.
9094 * compile/compile-object-run.c: Use C++ exception handling.
9095 * compile/compile-object-load.c: Use C++ exception handling.
9096 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9097 * compile/compile-c-symbols.c: Use C++ exception handling.
9098 * common/selftest.c: Use C++ exception handling.
9099 * common/new-op.c: Use C++ exception handling.
9100 * cli/cli-script.c: Use C++ exception handling.
9101 * cli/cli-interp.c: Use C++ exception handling.
9102 * cli/cli-cmds.c: Use C++ exception handling.
9103 * c-varobj.c: Use C++ exception handling.
9104 * btrace.c: Use C++ exception handling.
9105 * breakpoint.c: Use C++ exception handling.
9106 * break-catch-throw.c: Use C++ exception handling.
9107 * arch-utils.c: Use C++ exception handling.
9108 * amd64-tdep.c: Use C++ exception handling.
9109 * ada-valprint.c: Use C++ exception handling.
9110 * ada-typeprint.c: Use C++ exception handling.
9111 * ada-lang.c: Use C++ exception handling.
9112 * aarch64-tdep.c: Use C++ exception handling.
9114 2019-04-08 Tom Tromey <tom@tromey.com>
9116 * xml-support.c (gdb_xml_parser::parse): Update.
9117 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9118 * value.c (show_convenience): Update.
9119 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9120 (test_parse_flags_qcs): Update.
9121 * thread.c (thr_try_catch_cmd): Update.
9122 * target.c (target_translate_tls_address): Update.
9123 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9124 (info_frame_command_core, frame_apply_command_count): Update.
9125 * rust-exp.y (rust_lex_exception_test): Update.
9126 * riscv-tdep.c (riscv_print_one_register_info): Update.
9127 * remote.c (remote_target::enable_btrace): Update.
9128 * record-btrace.c (record_btrace_enable_warn): Update.
9129 * python/py-utils.c (gdbpy_convert_exception): Update.
9130 * printcmd.c (do_one_display, print_variable_and_value): Update.
9131 * mi/mi-main.c (mi_print_exception): Update.
9132 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9133 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9134 * linux-nat.c (linux_nat_target::attach): Update.
9135 * linux-fork.c (class scoped_switch_fork_info): Update.
9136 * infrun.c (displaced_step_prepare): Update.
9137 * infcall.c (call_function_by_hand_dummy): Update.
9138 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9139 * gnu-v3-abi.c (print_one_vtable): Update.
9140 * frame.c (get_prev_frame_always): Update.
9141 * f-valprint.c (info_common_command_for_block): Update.
9142 * exec.c (try_open_exec_file): Update.
9143 * exceptions.c (print_exception, exception_print)
9144 (exception_fprintf, exception_print_same): Update.
9145 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9146 * dwarf-index-cache.c (index_cache::store)
9147 (index_cache::lookup_gdb_index): Update.
9148 * darwin-nat.c (maybe_cache_shell): Update.
9149 * cp-valprint.c (cp_print_value_fields): Update.
9150 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9151 (gcc_cplus_symbol_address): Update.
9152 * compile/compile-c-symbols.c (gcc_convert_symbol)
9153 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9154 * common/selftest.c: Update.
9155 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9157 (exception_try_scope_entry, exception_try_scope_exit): Don't
9159 (struct exception_try_scope): Remove.
9160 (TRY): Don't use exception_try_scope.
9161 (struct gdb_exception): Add constructor, operator=.
9163 (struct gdb_exception_RETURN_MASK_ALL)
9164 (struct gdb_exception_RETURN_MASK_ERROR)
9165 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9166 (struct gdb_quit_bad_alloc): Update.
9167 * common/common-exceptions.c (exception_none): Change
9169 (struct catcher) <state, exception>: Initialize inline.
9170 <prev>: Remove member.
9171 (current_catcher): Remove.
9172 (catchers): New global.
9173 (exceptions_state_mc_init): Simplify.
9174 (catcher_pop): Remove.
9175 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9176 (try_scope_depth, exception_try_scope_entry)
9177 (exception_try_scope_exit): Remove.
9178 (throw_exception_sjlj): Update.
9179 (exception_messages, exception_messages_size): Remove.
9180 (throw_it): Simplify.
9181 (gdb_exception_sliced_copy): Remove.
9182 (throw_exception_cxx): Update.
9183 * cli/cli-script.c (script_from_file): Update.
9184 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9186 * ada-valprint.c (ada_val_print): Update.
9187 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9188 (create_excep_cond_exprs): Update.
9190 2019-04-08 Tom Tromey <tom@tromey.com>
9192 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9193 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9194 (TRY, CATCH, END_CATCH): Remove some definitions.
9195 * common/common-exceptions.c: Don't use GDB_XCPT.
9196 (catcher_list_size): Remove.
9197 (throw_exception, throw_it): Simplify.
9199 2019-04-05 Tom Tromey <tom@tromey.com>
9201 Revert the header-sorting patch.
9202 * ft32-tdep.c: Revert.
9203 * frv-tdep.c: Revert.
9204 * frv-linux-tdep.c: Revert.
9206 * frame-unwind.c: Revert.
9207 * frame-base.c: Revert.
9208 * fork-child.c: Revert.
9209 * findvar.c: Revert.
9210 * findcmd.c: Revert.
9211 * filesystem.c: Revert.
9212 * filename-seen-cache.h: Revert.
9213 * filename-seen-cache.c: Revert.
9214 * fbsd-tdep.c: Revert.
9215 * fbsd-nat.h: Revert.
9216 * fbsd-nat.c: Revert.
9217 * f-valprint.c: Revert.
9218 * f-typeprint.c: Revert.
9220 * extension.h: Revert.
9221 * extension.c: Revert.
9222 * extension-priv.h: Revert.
9223 * expprint.c: Revert.
9226 * exceptions.c: Revert.
9227 * event-top.c: Revert.
9228 * event-loop.c: Revert.
9230 * elfread.c: Revert.
9231 * dwarf2read.h: Revert.
9232 * dwarf2read.c: Revert.
9233 * dwarf2loc.c: Revert.
9234 * dwarf2expr.h: Revert.
9235 * dwarf2expr.c: Revert.
9236 * dwarf2-frame.c: Revert.
9237 * dwarf2-frame-tailcall.c: Revert.
9238 * dwarf-index-write.h: Revert.
9239 * dwarf-index-write.c: Revert.
9240 * dwarf-index-common.c: Revert.
9241 * dwarf-index-cache.h: Revert.
9242 * dwarf-index-cache.c: Revert.
9243 * dummy-frame.c: Revert.
9244 * dtrace-probe.c: Revert.
9247 * disasm-selftests.c: Revert.
9248 * dictionary.c: Revert.
9249 * dicos-tdep.c: Revert.
9250 * demangle.c: Revert.
9253 * darwin-nat.h: Revert.
9254 * darwin-nat.c: Revert.
9255 * darwin-nat-info.c: Revert.
9256 * d-valprint.c: Revert.
9257 * d-namespace.c: Revert.
9260 * csky-tdep.c: Revert.
9261 * csky-linux-tdep.c: Revert.
9262 * cris-tdep.c: Revert.
9263 * cris-linux-tdep.c: Revert.
9264 * cp-valprint.c: Revert.
9265 * cp-support.c: Revert.
9266 * cp-namespace.c: Revert.
9268 * corelow.c: Revert.
9269 * corefile.c: Revert.
9270 * continuations.c: Revert.
9271 * completer.h: Revert.
9272 * completer.c: Revert.
9273 * complaints.c: Revert.
9274 * coffread.c: Revert.
9275 * coff-pe-read.c: Revert.
9276 * cli-out.h: Revert.
9277 * cli-out.c: Revert.
9278 * charset.c: Revert.
9279 * c-varobj.c: Revert.
9280 * c-valprint.c: Revert.
9281 * c-typeprint.c: Revert.
9283 * buildsym.c: Revert.
9284 * buildsym-legacy.c: Revert.
9285 * build-id.h: Revert.
9286 * build-id.c: Revert.
9288 * bsd-uthread.c: Revert.
9289 * breakpoint.h: Revert.
9290 * breakpoint.c: Revert.
9291 * break-catch-throw.c: Revert.
9292 * break-catch-syscall.c: Revert.
9293 * break-catch-sig.c: Revert.
9294 * blockframe.c: Revert.
9296 * bfin-tdep.c: Revert.
9297 * bfin-linux-tdep.c: Revert.
9298 * bfd-target.c: Revert.
9300 * ax-general.c: Revert.
9303 * avr-tdep.c: Revert.
9305 * auto-load.c: Revert.
9306 * arm-wince-tdep.c: Revert.
9307 * arm-tdep.c: Revert.
9308 * arm-symbian-tdep.c: Revert.
9309 * arm-pikeos-tdep.c: Revert.
9310 * arm-obsd-tdep.c: Revert.
9311 * arm-nbsd-tdep.c: Revert.
9312 * arm-nbsd-nat.c: Revert.
9313 * arm-linux-tdep.c: Revert.
9314 * arm-linux-nat.c: Revert.
9315 * arm-fbsd-tdep.c: Revert.
9316 * arm-fbsd-nat.c: Revert.
9317 * arm-bsd-tdep.c: Revert.
9318 * arch-utils.c: Revert.
9319 * arc-tdep.c: Revert.
9320 * arc-newlib-tdep.c: Revert.
9321 * annotate.h: Revert.
9322 * annotate.c: Revert.
9323 * amd64-windows-tdep.c: Revert.
9324 * amd64-windows-nat.c: Revert.
9325 * amd64-tdep.c: Revert.
9326 * amd64-sol2-tdep.c: Revert.
9327 * amd64-obsd-tdep.c: Revert.
9328 * amd64-obsd-nat.c: Revert.
9329 * amd64-nbsd-tdep.c: Revert.
9330 * amd64-nbsd-nat.c: Revert.
9331 * amd64-nat.c: Revert.
9332 * amd64-linux-tdep.c: Revert.
9333 * amd64-linux-nat.c: Revert.
9334 * amd64-fbsd-tdep.c: Revert.
9335 * amd64-fbsd-nat.c: Revert.
9336 * amd64-dicos-tdep.c: Revert.
9337 * amd64-darwin-tdep.c: Revert.
9338 * amd64-bsd-nat.c: Revert.
9339 * alpha-tdep.c: Revert.
9340 * alpha-obsd-tdep.c: Revert.
9341 * alpha-nbsd-tdep.c: Revert.
9342 * alpha-mdebug-tdep.c: Revert.
9343 * alpha-linux-tdep.c: Revert.
9344 * alpha-linux-nat.c: Revert.
9345 * alpha-bsd-tdep.c: Revert.
9346 * alpha-bsd-nat.c: Revert.
9347 * aix-thread.c: Revert.
9349 * addrmap.c: Revert.
9350 * ada-varobj.c: Revert.
9351 * ada-valprint.c: Revert.
9352 * ada-typeprint.c: Revert.
9353 * ada-tasks.c: Revert.
9354 * ada-lang.c: Revert.
9355 * aarch64-tdep.c: Revert.
9356 * aarch64-ravenscar-thread.c: Revert.
9357 * aarch64-newlib-tdep.c: Revert.
9358 * aarch64-linux-tdep.c: Revert.
9359 * aarch64-linux-nat.c: Revert.
9360 * aarch64-fbsd-tdep.c: Revert.
9361 * aarch64-fbsd-nat.c: Revert.
9362 * aarch32-linux-nat.c: Revert.
9364 2019-04-05 Tom Tromey <tom@tromey.com>
9366 * ft32-tdep.c: Sort headers.
9367 * frv-tdep.c: Sort headers.
9368 * frv-linux-tdep.c: Sort headers.
9369 * frame.c: Sort headers.
9370 * frame-unwind.c: Sort headers.
9371 * frame-base.c: Sort headers.
9372 * fork-child.c: Sort headers.
9373 * findvar.c: Sort headers.
9374 * findcmd.c: Sort headers.
9375 * filesystem.c: Sort headers.
9376 * filename-seen-cache.h: Sort headers.
9377 * filename-seen-cache.c: Sort headers.
9378 * fbsd-tdep.c: Sort headers.
9379 * fbsd-nat.h: Sort headers.
9380 * fbsd-nat.c: Sort headers.
9381 * f-valprint.c: Sort headers.
9382 * f-typeprint.c: Sort headers.
9383 * f-lang.c: Sort headers.
9384 * extension.h: Sort headers.
9385 * extension.c: Sort headers.
9386 * extension-priv.h: Sort headers.
9387 * expprint.c: Sort headers.
9388 * exec.h: Sort headers.
9389 * exec.c: Sort headers.
9390 * exceptions.c: Sort headers.
9391 * event-top.c: Sort headers.
9392 * event-loop.c: Sort headers.
9393 * eval.c: Sort headers.
9394 * elfread.c: Sort headers.
9395 * dwarf2read.h: Sort headers.
9396 * dwarf2read.c: Sort headers.
9397 * dwarf2loc.c: Sort headers.
9398 * dwarf2expr.h: Sort headers.
9399 * dwarf2expr.c: Sort headers.
9400 * dwarf2-frame.c: Sort headers.
9401 * dwarf2-frame-tailcall.c: Sort headers.
9402 * dwarf-index-write.h: Sort headers.
9403 * dwarf-index-write.c: Sort headers.
9404 * dwarf-index-common.c: Sort headers.
9405 * dwarf-index-cache.h: Sort headers.
9406 * dwarf-index-cache.c: Sort headers.
9407 * dummy-frame.c: Sort headers.
9408 * dtrace-probe.c: Sort headers.
9409 * disasm.h: Sort headers.
9410 * disasm.c: Sort headers.
9411 * disasm-selftests.c: Sort headers.
9412 * dictionary.c: Sort headers.
9413 * dicos-tdep.c: Sort headers.
9414 * demangle.c: Sort headers.
9415 * dcache.h: Sort headers.
9416 * dcache.c: Sort headers.
9417 * darwin-nat.h: Sort headers.
9418 * darwin-nat.c: Sort headers.
9419 * darwin-nat-info.c: Sort headers.
9420 * d-valprint.c: Sort headers.
9421 * d-namespace.c: Sort headers.
9422 * d-lang.c: Sort headers.
9423 * ctf.c: Sort headers.
9424 * csky-tdep.c: Sort headers.
9425 * csky-linux-tdep.c: Sort headers.
9426 * cris-tdep.c: Sort headers.
9427 * cris-linux-tdep.c: Sort headers.
9428 * cp-valprint.c: Sort headers.
9429 * cp-support.c: Sort headers.
9430 * cp-namespace.c: Sort headers.
9431 * cp-abi.c: Sort headers.
9432 * corelow.c: Sort headers.
9433 * corefile.c: Sort headers.
9434 * continuations.c: Sort headers.
9435 * completer.h: Sort headers.
9436 * completer.c: Sort headers.
9437 * complaints.c: Sort headers.
9438 * coffread.c: Sort headers.
9439 * coff-pe-read.c: Sort headers.
9440 * cli-out.h: Sort headers.
9441 * cli-out.c: Sort headers.
9442 * charset.c: Sort headers.
9443 * c-varobj.c: Sort headers.
9444 * c-valprint.c: Sort headers.
9445 * c-typeprint.c: Sort headers.
9446 * c-lang.c: Sort headers.
9447 * buildsym.c: Sort headers.
9448 * buildsym-legacy.c: Sort headers.
9449 * build-id.h: Sort headers.
9450 * build-id.c: Sort headers.
9451 * btrace.c: Sort headers.
9452 * bsd-uthread.c: Sort headers.
9453 * breakpoint.h: Sort headers.
9454 * breakpoint.c: Sort headers.
9455 * break-catch-throw.c: Sort headers.
9456 * break-catch-syscall.c: Sort headers.
9457 * break-catch-sig.c: Sort headers.
9458 * blockframe.c: Sort headers.
9459 * block.c: Sort headers.
9460 * bfin-tdep.c: Sort headers.
9461 * bfin-linux-tdep.c: Sort headers.
9462 * bfd-target.c: Sort headers.
9463 * bcache.c: Sort headers.
9464 * ax-general.c: Sort headers.
9465 * ax-gdb.h: Sort headers.
9466 * ax-gdb.c: Sort headers.
9467 * avr-tdep.c: Sort headers.
9468 * auxv.c: Sort headers.
9469 * auto-load.c: Sort headers.
9470 * arm-wince-tdep.c: Sort headers.
9471 * arm-tdep.c: Sort headers.
9472 * arm-symbian-tdep.c: Sort headers.
9473 * arm-pikeos-tdep.c: Sort headers.
9474 * arm-obsd-tdep.c: Sort headers.
9475 * arm-nbsd-tdep.c: Sort headers.
9476 * arm-nbsd-nat.c: Sort headers.
9477 * arm-linux-tdep.c: Sort headers.
9478 * arm-linux-nat.c: Sort headers.
9479 * arm-fbsd-tdep.c: Sort headers.
9480 * arm-fbsd-nat.c: Sort headers.
9481 * arm-bsd-tdep.c: Sort headers.
9482 * arch-utils.c: Sort headers.
9483 * arc-tdep.c: Sort headers.
9484 * arc-newlib-tdep.c: Sort headers.
9485 * annotate.h: Sort headers.
9486 * annotate.c: Sort headers.
9487 * amd64-windows-tdep.c: Sort headers.
9488 * amd64-windows-nat.c: Sort headers.
9489 * amd64-tdep.c: Sort headers.
9490 * amd64-sol2-tdep.c: Sort headers.
9491 * amd64-obsd-tdep.c: Sort headers.
9492 * amd64-obsd-nat.c: Sort headers.
9493 * amd64-nbsd-tdep.c: Sort headers.
9494 * amd64-nbsd-nat.c: Sort headers.
9495 * amd64-nat.c: Sort headers.
9496 * amd64-linux-tdep.c: Sort headers.
9497 * amd64-linux-nat.c: Sort headers.
9498 * amd64-fbsd-tdep.c: Sort headers.
9499 * amd64-fbsd-nat.c: Sort headers.
9500 * amd64-dicos-tdep.c: Sort headers.
9501 * amd64-darwin-tdep.c: Sort headers.
9502 * amd64-bsd-nat.c: Sort headers.
9503 * alpha-tdep.c: Sort headers.
9504 * alpha-obsd-tdep.c: Sort headers.
9505 * alpha-nbsd-tdep.c: Sort headers.
9506 * alpha-mdebug-tdep.c: Sort headers.
9507 * alpha-linux-tdep.c: Sort headers.
9508 * alpha-linux-nat.c: Sort headers.
9509 * alpha-bsd-tdep.c: Sort headers.
9510 * alpha-bsd-nat.c: Sort headers.
9511 * aix-thread.c: Sort headers.
9512 * agent.c: Sort headers.
9513 * addrmap.c: Sort headers.
9514 * ada-varobj.c: Sort headers.
9515 * ada-valprint.c: Sort headers.
9516 * ada-typeprint.c: Sort headers.
9517 * ada-tasks.c: Sort headers.
9518 * ada-lang.c: Sort headers.
9519 * aarch64-tdep.c: Sort headers.
9520 * aarch64-ravenscar-thread.c: Sort headers.
9521 * aarch64-newlib-tdep.c: Sort headers.
9522 * aarch64-linux-tdep.c: Sort headers.
9523 * aarch64-linux-nat.c: Sort headers.
9524 * aarch64-fbsd-tdep.c: Sort headers.
9525 * aarch64-fbsd-nat.c: Sort headers.
9526 * aarch32-linux-nat.c: Sort headers.
9528 2019-04-04 Tom Tromey <tom@tromey.com>
9530 * varobj.c (varobj_create): Update.
9531 * rust-exp.y (struct rust_parser) <update_innermost_block,
9532 lookup_symbol>: New methods.
9533 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9535 (rust_parser::rust_lookup_type)
9536 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9537 * printcmd.c (display_command, do_one_display): Update.
9538 * parser-defs.h (struct parser_state) <parser_state>: Add
9539 "tracker" parameter.
9540 (block_tracker): New member.
9541 (class innermost_block_tracker) <innermost_block_tracker>: Add
9543 <reset>: Remove method.
9544 (innermost_block): Don't declare.
9545 (null_post_parser): Update.
9546 * parse.c (innermost_block): Remove global.
9547 (write_dollar_variable): Update.
9548 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9549 Remove "tracker_types" parameter.
9550 (parse_expression): Add "tracker" parameter.
9551 (parse_expression_for_completion): Update.
9552 (null_post_parser): Add "tracker" parameter.
9553 * p-exp.y: Update rules.
9554 * m2-exp.y: Update rules.
9555 * language.h (struct language_defn) <la_post_parser>: Add
9556 "tracker" parameter.
9557 * go-exp.y: Update rules.
9558 * f-exp.y: Update rules.
9559 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9561 * d-exp.y: Update rules.
9562 * c-exp.y: Update rules.
9563 * breakpoint.c (set_breakpoint_condition): Create an
9564 innermost_block_tracker.
9565 (watch_command_1): Likewise.
9566 * ada-lang.c (resolve): Add "tracker" parameter.
9567 (resolve_subexp): Likewise.
9568 * ada-exp.y (write_var_from_sym): Update.
9570 2019-04-04 Tom Tromey <tom@tromey.com>
9572 * type-stack.h: New file.
9573 * type-stack.c: New file.
9574 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9576 (insert_into_type_stack, insert_type, push_type, push_type_int)
9577 (insert_type_address_space, pop_type, pop_type_int)
9578 (pop_typelist, pop_type_stack, append_type_stack)
9579 (push_type_stack, get_type_stack, push_typelist)
9580 (follow_type_instance_flags, follow_types): Don't declare.
9581 * parse.c (type_stack): Remove global.
9582 (parse_exp_in_context): Update.
9583 (insert_into_type_stack, insert_type, push_type, push_type_int)
9584 (insert_type_address_space, pop_type, pop_type_int)
9585 (pop_typelist, pop_type_stack, append_type_stack)
9586 (push_type_stack, get_type_stack, push_typelist)
9587 (follow_type_instance_flags, follow_types): Remove (moved to
9589 * f-exp.y (type_stack): New global.
9591 (push_kind_type, f_parse): Update.
9592 * d-exp.y (type_stack): New global.
9595 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9597 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9598 (HFILES_NO_SRCDIR): Add type-stack.h.
9600 2019-04-04 Tom Tromey <tom@tromey.com>
9602 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9603 (rust_parser::convert_ast_to_expression, rust_parse)
9604 (rust_lex_test_completion, rust_lex_tests): Update.
9605 * parser-defs.h (struct expr_completion_state): New.
9606 (struct parser_state) <parser_state>: Add completion parameter.
9607 <mark_struct_expression, mark_completion_tag>: New methods.
9608 <parse_completion, m_completion_state>: New members.
9609 (prefixify_expression, null_post_parser): Update.
9610 (mark_struct_expression, mark_completion_tag): Don't declare.
9611 * parse.c (parse_completion, expout_last_struct)
9612 (expout_tag_completion_type, expout_completion_name): Remove
9614 (parser_state::mark_struct_expression)
9615 (parser_state::mark_completion_tag): Now methods.
9616 (prefixify_expression): Add last_struct parameter.
9617 (prefixify_subexp): Likewise.
9618 (parse_exp_1): Update.
9619 (parse_exp_in_context): Add cstate parameter. Update.
9620 (parse_expression_for_completion): Create an
9621 expr_completion_state.
9622 (null_post_parser): Add "completion" parameter.
9623 * p-exp.y: Update rules.
9625 * language.h (struct language_defn) <la_post_parser>: Add
9626 "completing" parameter.
9627 * go-exp.y: Update rules.
9628 (lex_one_token): Update.
9629 * expression.h (parse_completion): Don't declare.
9630 * d-exp.y: Update rules.
9631 (lex_one_token): Update rules.
9632 * c-exp.y: Update rules.
9633 (lex_one_token): Update.
9634 * ada-lang.c (resolve): Add "parse_completion" parameter.
9635 (resolve_subexp): Likewise.
9636 (ada_resolve_function): Likewise.
9638 2019-04-04 Tom Tromey <tom@tromey.com>
9640 * parser-defs.h (struct parser_state) <start_arglist,
9641 end_arglist>: New methods.
9642 <arglist_len, m_funcall_chain>: New members.
9643 (arglist_len, start_arglist, end_arglist): Don't declare.
9644 * parse.c (arglist_len, funcall_chain): Remove global.
9645 (start_arglist, end_arglist): Remove functions.
9646 (parse_exp_in_context): Update.
9647 * p-exp.y: Update rules.
9648 * m2-exp.y: Update rules.
9649 * go-exp.y: Update rules.
9650 * f-exp.y: Update rules.
9651 * d-exp.y: Update rules.
9652 * c-exp.y: Update rules.
9654 2019-04-04 Tom Tromey <tom@tromey.com>
9656 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9657 lex_operator, push_back>: New methods.
9659 (rust_parser::lex_hex, lex_escape): Rename and update.
9660 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9661 (rust_parser::lex_operator): Rename and update.
9662 (rust_parser::lex_number, rustyylex, rustyyerror)
9663 (rust_lex_test_init, rust_lex_test_sequence)
9664 (rust_lex_test_push_back, rust_lex_tests): Update.
9665 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9667 <lexptr, prev_lexptr>: New members.
9668 (lexptr, prev_lexptr): Don't declare.
9669 * parse.c (lexptr, prev_lexptr): Remove globals.
9670 (parse_exp_in_context): Update.
9671 * p-exp.y (yylex, yyerror): Update.
9672 * m2-exp.y (parse_number, yylex, yyerror): Update.
9673 * go-exp.y (lex_one_token, yyerror): Update.
9674 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9675 * d-exp.y (lex_one_token, yyerror): Update.
9676 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9677 (lex_one_token, yyerror): Update.
9678 * ada-lex.l (YY_INPUT): Update.
9679 (rewind_to_char): Update.
9680 * ada-exp.y (yyerror): Update.
9682 2019-04-04 Tom Tromey <tom@tromey.com>
9684 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9685 * parser-defs.h (struct parser_state) <parser_state>: Add new
9687 <comma_terminates>: New member.
9688 (comma_terminates): Don't declare global.
9689 * parse.c (comma_terminates): Remove global.
9690 (parse_exp_in_context): Update.
9691 * p-exp.y (yylex): Update.
9692 * m2-exp.y (yylex): Update.
9693 * go-exp.y (lex_one_token): Update.
9694 * f-exp.y (yylex): Update.
9695 * d-exp.y (lex_one_token): Update.
9696 * c-exp.y (lex_one_token): Update.
9697 * ada-lex.l: Update.
9699 2019-04-04 Tom Tromey <tom@tromey.com>
9701 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9702 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9703 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9704 * parser-defs.h (paren_depth): Don't declare.
9705 * parse.c (paren_depth): Remove global.
9706 (parse_exp_in_context): Update.
9707 * p-exp.y (paren_depth): New global.
9708 (pascal_parse): Initialize it.
9709 * m2-exp.y (paren_depth): New global.
9710 (m2_parse): Initialize it.
9711 * go-exp.y (paren_depth): New global.
9712 (go_parse): Initialize it.
9713 * f-exp.y (paren_depth): New global.
9714 (f_parse): Initialize it.
9715 * d-exp.y (paren_depth): New global.
9716 (d_parse): Initialize it.
9717 * c-exp.y (paren_depth): New global.
9718 (c_parse): Initialize it.
9719 * ada-lex.l (paren_depth): New global.
9720 (lexer_init): Initialize it.
9722 2019-04-04 Tom Tromey <tom@tromey.com>
9724 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9725 (rust_parser::convert_ast_to_type)
9726 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9727 * parser-defs.h (struct parser_state) <parser_state>: Add
9728 parameters. Initialize new members.
9729 <expression_context_block, expression_context_pc>: New members.
9730 * parse.c (expression_context_block, expression_context_pc):
9732 (parse_exp_in_context): Update.
9733 * p-exp.y: Update all rules.
9735 * m2-exp.y: Update all rules.
9737 * go-exp.y (yylex): Update.
9738 * f-exp.y (yylex): Update.
9739 * d-exp.y: Update all rules.
9741 * c-exp.y: Update all rules.
9742 (lex_one_token, classify_name, yylex, c_parse): Update.
9743 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9745 2019-04-04 Tom Tromey <tom@tromey.com>
9747 * gdbarch.h, gdbarch.c: Rebuild.
9748 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9750 (struct stap_parse_info): Replace "parser_state" with
9752 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9753 (parser_state): New class.
9754 * parse.c (expr_builder): Rename.
9755 (expr_builder::release): Rename.
9756 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9757 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9758 (write_exp_elt_longcst, write_exp_elt_floatcst)
9759 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9760 (write_exp_string_vector, write_exp_bitstring)
9761 (write_exp_msymbol, mark_struct_expression)
9762 (write_dollar_variable)
9763 (insert_type_address_space, increase_expout_size): Replace
9764 "parser_state" with "expr_builder".
9765 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9766 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9767 "parser_state" with "expr_builder".
9769 2019-04-04 Tom Tromey <tom@tromey.com>
9771 * rust-exp.y: Replace "parse_language" with method call.
9773 (yylex): Replace "parse_language" with method call.
9775 (yylex): Replace "parse_language" with method call.
9776 * go-exp.y (classify_name): Replace "parse_language" with method
9778 * f-exp.y (yylex): Replace "parse_language" with method call.
9779 * d-exp.y (lex_one_token): Replace "parse_language" with method
9782 (lex_one_token, classify_name, yylex): Replace "parse_language"
9784 * ada-exp.y (find_primitive_type, type_char)
9785 (type_system_address): Replace "parse_language" with method call.
9787 2019-04-04 Tom Tromey <tom@tromey.com>
9789 * rust-exp.y: Replace "parse_gdbarch" with method call.
9790 * parse.c (write_dollar_variable, insert_type_address_space):
9791 Replace "parse_gdbarch" with method call.
9792 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9794 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9796 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9797 "parse_gdbarch" with method call.
9798 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9800 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9801 "parse_gdbarch" with method call.
9802 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9803 "parse_gdbarch" with method call.
9804 * c-exp.y (parse_type, parse_number, classify_name): Replace
9805 "parse_gdbarch" with method call.
9806 * ada-lex.l: Replace "parse_gdbarch" with method call.
9807 * ada-exp.y (parse_type, find_primitive_type, type_char)
9808 (type_system_address): Replace "parse_gdbarch" with method call.
9810 2019-04-04 Tom Tromey <tom@tromey.com>
9812 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9813 * stap-probe.c (stap_parse_argument): Update.
9814 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9815 initial_size parameter.
9816 * rust-exp.y (rust_lex_tests): Update.
9817 * parse.c (parser_state): Update.
9818 (parse_exp_in_context): Update.
9819 * parser-defs.h (struct parser_state) <parser_state>: Remove
9820 "initial_size" parameter.
9822 2019-04-04 Tom Tromey <tom@tromey.com>
9824 * parser-defs.h (increase_expout_size): Don't declare.
9825 * parse.c (increase_expout_size): Now static.
9827 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9829 * gnu-nat.c (gnu_nat_target::wait): Fix
9830 target_waitstatus_to_string call.
9832 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9834 * eval.c (evaluate_subexp_standard): Handle internal functions
9835 during Fortran function call handling.
9837 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9839 * NEWS: Mention new internal functions.
9840 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9841 (read_base_type): Use dwarf2_init_complex_target_type.
9842 * value.c (creal_internal_fn): New function.
9843 (cimag_internal_fn): New function.
9844 (_initialize_values): Register new internal functions.
9846 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9848 * infrun.c (stop_all_threads): If debug_infrun, always
9849 trace the wait status after wait_one, using
9850 target_waitstatus_to_string and target_pid_to_str.
9851 (handle_inferior_event): Replace various trace of
9852 wait status kind by a single trace.
9853 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9854 wait status kind image by target_waitstatus_to_string.
9855 * target/waitstatus.c (target_waitstatus_to_string): Fix
9858 2019-04-01 Tom Tromey <tromey@adacore.com>
9861 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9863 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9864 Pedro Alves <palves@redhat.com>
9866 * top.c (quit_force): Call 'finalize_values'.
9867 * value.c (finalize_values): New function.
9868 * value.h (finalize_values): Declare.
9870 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9872 * NEWS: Announce $_gdb_major and $_gdb_minor.
9874 * top.c (init_gdb_version_vars): New function.
9875 (gdb_init): Call init_gdb_version_vars.
9877 2019-03-29 Tom Tromey <tromey@adacore.com>
9879 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9880 help text. Remove dead code.
9882 2019-03-29 Keith Seitz <keiths@redhat.com>
9884 From Siddhesh Poyarekar:
9885 * f-lang.h (f77_get_upperbound): Return LONGEST.
9886 (f77_get_lowerbound): Likewise.
9887 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9888 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9890 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9891 plongest to format print it.
9892 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9893 (f77_get_upperbound): Likewise.
9894 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9895 LOWER_BOUND to LONGEST.
9896 (f77_create_arrayprint_offset_tbl): Likewise.
9898 2019-03-29 Keith Seitz <keiths@redhat.com>
9900 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9901 %s/pulongest for TYPE_LENGTH instead of %d in format
9903 * ada-typerint.c (ada_print_type): Likewise.
9904 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9905 * compile/compile-c-support.c (generate_register_struct): Likewise.
9906 * gdbtypes.c (recursive_dump_type): Likewise.
9907 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9908 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9909 instead of %d in format strings.
9910 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9911 to std::min to ULONGEST.
9912 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9913 instead of %d in format strings.
9914 * tracepoint.c (info_scope_command): Likewise.
9915 * typeprint.c (print_offset_data::update)
9916 (print_offset_data::finish): Likewise.
9917 * xtensa-tdep.c (xtensa_store_return_value)
9918 (xtensa_push_dummy_call): Likewise.
9920 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9922 * windows-nat.c (display_selector): Fixed format specifications
9925 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9927 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9929 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9931 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9932 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9933 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9934 (nios2_linux_init_abi): Install it.
9936 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9938 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9940 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9942 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9944 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9945 Tom Tromey <tromey@adacore.com>
9947 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9949 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9951 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9952 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9953 method to compute the bounds of range types. Also print "[evaluated]"
9954 if the bounds' values come from a dynamic evaluation.
9956 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9958 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9959 whitespace when pretty printing is on.
9961 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9963 * ppc-linux-nat.c: Add include.
9965 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9967 * NEWS: Mention AArch64 Pointer Authentication.
9969 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9971 * arm-linux-nat.c: Add include.
9973 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9975 * source-cache.c (source_cache::get_source_lines): Re-read
9976 fullname after calling open_source_file.
9978 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9980 * NEWS: Mention TLS support for FreeBSD.
9982 2019-03-25 Tom Tromey <tromey@adacore.com>
9984 * minsyms.c (BUNCH_SIZE): Update comment.
9985 (~minimal_symbol_reader): Remove old comment.
9986 (compact_minimal_symbols): Update comment.
9987 (minimal_symbol_reader::install): Remove old comment. Update
9990 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9992 * s390-linux-nat.c: Add include.
9994 2019-03-25 Alan Hayward <alan.hayward@arm.com>
9996 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
9997 Call linux_get_hwcap.
9998 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10000 (aarch64_linux_get_hwcap): Remove function.
10001 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10003 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10005 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10006 * linux-tdep.c (linux_get_hwcap): Add function.
10007 (linux_get_hwcap2): Likewise.
10008 * linux-tdep.h (linux_get_hwcap): Add declaration.
10009 (linux_get_hwcap2): Likewise.
10010 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10011 (ppc_linux_get_hwcap2): Likewise.
10012 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10014 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10015 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10016 (ppc_linux_nat_target::read_description): Likewise.
10017 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10018 * s390-linux-nat.c: Likewise.
10019 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10021 2019-03-24 Tom Tromey <tom@tromey.com>
10023 * ada-lang.c (standard_lookup): Simplify initialization.
10024 (ada_lookup_symbol_nonlocal): Simplify return.
10025 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10026 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10027 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10028 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10030 * solib.c (solib_global_lookup): Simplify.
10031 * symtab.c (null_block_symbol): Remove.
10032 (symbol_cache_lookup): Simplify returns.
10033 (lookup_language_this): Simplify returns.
10034 (lookup_symbol_aux): Simplify return.
10035 (lookup_local_symbol): Simplify returns.
10036 (lookup_global_symbol_from_objfile): Simplify return.
10037 (lookup_symbol_in_objfile_symtabs)
10038 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10039 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10040 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10041 * cp-namespace.c (cp_lookup_bare_symbol)
10042 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10043 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10044 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10045 (cp_lookup_symbol_via_imports): Simplify initialization.
10046 (find_symbol_in_baseclass): Likewise.
10047 * symtab.h (null_block_symbol): Remove.
10048 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10049 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10050 (d_lookup_symbol_module): Likewise.
10051 (find_symbol_in_baseclass): Simplify initialization.
10053 2019-03-24 Tom Tromey <tom@tromey.com>
10055 * expression.h: Don't include symtab.h.
10056 (struct block): Forward declare.
10058 2019-03-24 Tom Tromey <tom@tromey.com>
10060 * c-exp.y (typebase): Remove casts.
10061 * gdbtypes.c (lookup_unsigned_typename, )
10062 (lookup_signed_typename): Remove cast.
10063 * eval.c (parse_to_comma_and_eval): Remove cast.
10064 * parse.c (write_dollar_variable): Remove cast.
10065 * block.h (struct block) <superblock>: Now const.
10066 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10067 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10068 (map_block): Make "block" const.
10069 * symfile.h (struct quick_symbol_functions)
10070 <map_matching_symbols>: Constify block argument to "callback".
10071 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10073 (find_pc_sect_compunit_symtab): Make "b" const.
10074 (find_symbol_at_address): Likewise.
10075 (search_symbols): Likewise.
10076 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10077 (dw2_debug_names_lookup_symbol): Likewise.
10078 (dw2_map_matching_symbols): Update.
10079 * p-valprint.c (pascal_val_print): Remove "block".
10080 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10081 (aux_add_nonlocal_symbols): Make "block" const.
10082 (resolve_subexp): Remove cast.
10083 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10085 (iterate_over_file_blocks): Likewise.
10086 * f-exp.y (%union) <bval>: Remove.
10087 * coffread.c (patch_opaque_types): Make "b" const.
10088 * spu-tdep.c (spu_catch_start): Make "block" const.
10089 * c-valprint.c (print_unpacked_pointer): Remove "block".
10090 * symmisc.c (dump_symtab_1): Make "b" const.
10091 (block_depth): Make "block" const.
10092 * d-exp.y (%union) <bval>: Remove.
10093 * cp-support.h (cp_lookup_rtti_type): Update.
10094 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10095 * psymtab.c (psym_lookup_symbol): Make "block" const.
10096 (maintenance_check_psymtabs): Make "b" const.
10097 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10098 (enumerate_locals, enumerate_args): Update.
10099 * python/py-symtab.c (stpy_global_block): Make "block" const.
10100 (stpy_static_block): Likewise.
10101 * inline-frame.c (block_starting_point_at): Make "new_block"
10103 * block.c (find_block_in_blockvector): Make return type const.
10104 (blockvector_for_pc_sect): Make "b" const.
10105 (find_block_in_blockvector): Make "b" const.
10107 2019-03-23 Tom Tromey <tom@tromey.com>
10109 * varobj.c (varobj_create): Update.
10110 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10111 * printcmd.c (display_command, do_one_display): Don't reset
10113 * parser-defs.h (enum innermost_block_tracker_type): Move to
10115 (innermost_block): Update comment.
10116 * parse.c (parse_exp_1): Add tracker_types parameter.
10117 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10118 tracker_types parameter. Reset innermost_block.
10119 (parse_exp_in_context): Remove.
10120 (parse_expression_for_completion): Update.
10121 * objfiles.c (~objfile): Don't reset expression_context_block or
10123 * expression.h (enum innermost_block_tracker_type): Move from
10125 (parse_exp_1): Add tracker_types parameter.
10126 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10127 reset innermost_block.
10129 2019-03-23 Tom Tromey <tom@tromey.com>
10131 * objfiles.h: Include bcache.h.
10133 2019-03-23 Tom Tromey <tom@tromey.com>
10135 * linespec.c (get_current_search_block): Use
10136 scoped_restore_current_language.
10137 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10139 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10140 Jiong Wang <jiong.wang@arm.com>
10142 * aarch64-linux-tdep.c
10143 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10145 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10147 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10148 Jiong Wang <jiong.wang@arm.com>
10150 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10152 (aarch64_analyze_prologue_test): Add PACIASP test.
10153 (aarch64_prologue_prev_register): Unmask PC value.
10155 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10156 Jiong Wang <jiong.wang@arm.com>
10158 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10159 (aarch64_dwarf2_prev_register): Unmask PC value.
10160 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10161 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10162 DW_CFA_AARCH64_negate_ra_state.
10163 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10165 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10166 Jiong Wang <jiong.wang@arm.com>
10168 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10170 (aarch64_pseudo_register_name): Likewise.
10171 (aarch64_pseudo_register_type): Likewise.
10172 (aarch64_pseudo_register_reggroup_p): Likewise.
10173 (aarch64_gdbarch_init): Add pauth registers.
10174 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10175 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10176 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10177 (struct gdbarch_tdep): Add regnum for ra_state.
10179 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10180 Jiong Wang <jiong.wang@arm.com>
10182 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10184 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10185 Jiong Wang <jiong.wang@arm.com>
10187 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10189 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10190 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10191 (aarch64_gdbarch_init): Add puth registers.
10192 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10193 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10194 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10196 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10197 Jiong Wang <jiong.wang@arm.com>
10199 * aarch64-linux-nat.c
10200 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10201 * aarch64-linux-tdep.c
10202 (aarch64_linux_core_read_description): Likewise.
10203 (aarch64_linux_get_hwcap): New function.
10204 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10205 (aarch64_linux_get_hwcap): New declaration.
10207 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10208 Jiong Wang <jiong.wang@arm.com>
10210 * aarch64-linux-nat.c
10211 (aarch64_linux_nat_target::read_description): Add pauth param.
10212 * aarch64-linux-tdep.c
10213 (aarch64_linux_core_read_description): Likewise.
10214 * aarch64-tdep.c (struct target_desc): Add in pauth.
10215 (aarch64_read_description): Add pauth param.
10216 (aarch64_gdbarch_init): Likewise.
10217 * aarch64-tdep.h (aarch64_read_description): Likewise.
10218 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10219 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10220 * features/Makefile: Add new files.
10221 * features/aarch64-pauth.c: New file.
10222 * features/aarch64-pauth.xml: New file.
10224 2019-03-20 Tom Tromey <tromey@adacore.com>
10226 * infrun.c (handle_inferior_event): Rename from
10227 handle_inferior_event_1. Create a scoped_value_mark.
10228 (handle_inferior_event): Remove.
10230 2019-03-19 Tom Tromey <tromey@adacore.com>
10232 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10233 * infrun.h (print_stop_event): Add "displays" parameter.
10234 * infrun.c (print_stop_event): Add "displays" parameter.
10236 2019-03-19 Pedro Alves <palves@redhat.com>
10238 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10239 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10240 to -1. Fix TABs vs spaces.
10241 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10242 * tui/tui-out.h (tui_ui_out) Add intro comments.
10243 <m_line, m_start_of_line>: In-class initialize, and add describing
10246 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10248 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10250 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10252 2019-03-18 Pedro Alves <palves@redhat.com>
10253 Eli Zaretskii <eliz@gnu.org>
10255 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10256 m_line and m_start_of_line.
10258 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10260 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10261 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10262 it returns a newline. This fixes a regression in TU mode, whereby
10263 the next line is output on the same screen line as the user input.
10265 2019-03-18 Tom Tromey <tromey@adacore.com>
10267 * minsyms.c (minimal_symbol_reader::install): Remove call to
10270 2019-03-18 Pedro Alves <palves@redhat.com>
10272 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10274 (apply_style): New, factored out from ...
10275 (apply_ansi_escape): ... this. Handle reverse video mode.
10276 (tui_set_reverse_mode): New function.
10277 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10278 * tui/tui-winsource.c (tui_show_source_line): Use
10279 tui_set_reverse_mode instead of setting A_STANDOUT.
10280 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10281 New setter methods.
10283 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10285 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10288 2019-03-18 Tom Tromey <tromey@adacore.com>
10290 * ada-lang.c (empty_array): Add "high" parameter.
10291 (ada_evaluate_subexp): Update.
10293 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10295 * unittests/string_view-selftests.c: Define
10296 _initialize_string_view_selftests unconditionally.
10298 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10301 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10303 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10306 * windows-nat.c (display_selector): Fix format specifiers.
10308 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10310 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10311 tui_refill_source_window instead of tui_refresh_win, to update the
10312 current execution line. This fixes redisplay of the current line
10313 when stepping through the code with "next" or "step".
10315 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10317 * source-cache.c (source_cache::get_source_lines): Call
10318 find_source_lines to initialize s->nlines. This fixes vertical
10319 scrolling of TUI source window when the DOWN arrow is pressed.
10321 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10323 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10324 linux-thread-db.c (_initialize_thread_db): Likewise.
10326 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10328 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10329 wclrtoeol in tui_show_source_line". This reverts changes made in
10330 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10332 2019-03-15 Tom Tromey <tom@tromey.com>
10334 * symtab.h (struct minimal_symbol): Derive from
10335 general_symbol_info.
10336 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10337 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10338 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10339 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10340 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10341 (MSYMBOL_SEARCH_NAME): Update.
10342 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10343 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10344 * minsyms.c (minimal_symbol_reader::record_full): Update.
10346 2019-03-15 Tom Tromey <tom@tromey.com>
10348 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10350 2019-03-15 Tom Tromey <tom@tromey.com>
10352 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10353 unique_xmalloc_ptr.
10354 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10356 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10357 (build_minimal_symbol_hash_tables)
10358 (minimal_symbol_reader::install): Update.
10360 2019-03-15 Tom Tromey <tom@tromey.com>
10362 * symtab.c (create_demangled_names_hash): Update.
10363 (symbol_set_names): Update.
10364 * objfiles.h (struct objfile_per_bfd_storage)
10365 <demangled_names_hash>: Now an htab_up.
10366 * objfiles.c (objfile_per_bfd_storage): Simplify.
10368 2019-03-15 Tom Tromey <tom@tromey.com>
10370 * objfiles.h (struct objfile_per_bfd_storage): Declare
10372 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10374 (get_objfile_bfd_data): Use new. Don't initialize
10376 (free_objfile_per_bfd_storage): Remove.
10377 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10379 2019-03-15 Tom Tromey <tom@tromey.com>
10381 * symfile.c (reread_symbols): Update.
10382 * objfiles.c (objfile::objfile): Update.
10383 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10384 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10386 (minimal_symbol_reader::install): Update.
10387 (terminate_minimal_symbol_table): Remove.
10388 * jit.c (jit_object_close_impl): Update.
10390 2019-03-15 Tom Tromey <tom@tromey.com>
10392 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10395 2019-03-15 Tom Tromey <tom@tromey.com>
10397 * objfiles.h (struct objfile_per_bfd_storage)
10398 <demangled_hash_languages>: Now a bitset.
10399 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10400 (lookup_minimal_symbol): Update.
10402 2019-03-15 Tom Tromey <tom@tromey.com>
10404 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10405 Don't return the symbol.
10406 * coffread.c (record_minimal_symbol): Use record_full.
10408 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10410 The MS-Windows port of ncurses fails to switch to a color pair if
10411 one or both of the colors are the implicit default colors. This
10412 change records the default colors when TUI is initialized, and
10413 then specifies them explicitly when a color pair uses the default
10414 colors. This allows color styling in TUI mode on MS-Windows.
10416 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10418 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10419 colors in ncurses_norm_attr.
10420 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10421 "none", replace it with the default color recorded in
10424 2019-03-14 Tom Tromey <tromey@adacore.com>
10426 * source-cache.h (class source_cache) <get_source_lines>: Return
10428 * source-cache.c (source_cache::extract_lines): Handle case where
10429 first_pos==npos. Return std::string.
10430 (source_cache::get_source_lines): Update.
10432 2019-03-14 Tom Tromey <tromey@adacore.com>
10434 * NEWS: Add item for "style sources" commands.
10435 * source-cache.c (source_cache::get_source_lines): Check
10437 * cli/cli-style.c (source_styling): New global.
10438 (_initialize_cli_style): Add "style sources" commands.
10439 (show_style_sources): New function.
10440 * cli/cli-style.h (source_styling): Declare.
10442 2019-03-14 Pedro Alves <palves@redhat.com>
10443 Tom Tromey <tromey@adacore.com>
10445 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10446 * tui/tui-winsource.c (tui_refill_source_window): New function,
10448 (tui_horizontal_source_scroll): ... here. Move some logic.
10449 * cli/cli-style.c (set_style_enabled): Notify new observable.
10450 * tui/tui-hooks.c (tui_redisplay_source): New function.
10451 (tui_attach_detach_observers): Attach or detach
10452 tui_redisplay_source.
10453 * observable.h (source_styling_changed): New observable.
10454 * observable.c: Define source_styling_changed observable.
10456 2019-03-13 Tom Tromey <tromey@adacore.com>
10458 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10459 (i386_gnu_nat_target::store_registers): Update.
10460 * target-debug.h (target_debug_print_std_string): New macro.
10461 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10462 * windows-tdep.c (display_one_tib): Update.
10463 * tui/tui-stack.c (tui_make_status_line): Update.
10464 * top.c (print_inferior_quit_action): Update.
10465 * thread.c (thr_try_catch_cmd): Update.
10466 (add_thread_with_info): Update.
10467 (thread_target_id_str): Update.
10468 (thr_try_catch_cmd): Update.
10469 (thread_command): Update.
10470 (thread_find_command): Update.
10471 * record-btrace.c (record_btrace_target::info_record)
10472 (record_btrace_resume_thread, record_btrace_target::resume)
10473 (record_btrace_cancel_resume, record_btrace_step_thread)
10474 (record_btrace_target::wait, record_btrace_target::wait)
10475 (record_btrace_target::wait, record_btrace_target::stop): Update.
10476 * progspace.c (print_program_space): Update.
10477 * process-stratum-target.c
10478 (process_stratum_target::thread_address_space): Update.
10479 * linux-fork.c (linux_fork_mourn_inferior)
10480 (detach_checkpoint_command, info_checkpoints_command)
10481 (linux_fork_context): Update.
10482 (linux_fork_detach): Update.
10483 (class scoped_switch_fork_info): Update.
10484 (delete_checkpoint_command): Update.
10485 * infrun.c (follow_fork_inferior): Update.
10486 (follow_fork_inferior): Update.
10487 (proceed_after_vfork_done): Update.
10488 (handle_vfork_child_exec_or_exit): Update.
10489 (follow_exec): Update.
10490 (displaced_step_prepare_throw): Update.
10491 (displaced_step_restore): Update.
10492 (start_step_over): Update.
10493 (resume_1): Update.
10494 (clear_proceed_status_thread): Update.
10496 (print_target_wait_results): Update.
10497 (do_target_wait): Update.
10498 (context_switch): Update.
10499 (stop_all_threads): Update.
10500 (restart_threads): Update.
10501 (finish_step_over): Update.
10502 (handle_signal_stop): Update.
10503 (switch_back_to_stepped_thread): Update.
10504 (keep_going_pass_signal): Update.
10505 (print_exited_reason): Update.
10506 (normal_stop): Update.
10507 * inferior.c (inferior_pid_to_str): Change return type.
10508 (print_selected_inferior): Update.
10509 (add_inferior): Update.
10510 (detach_inferior): Update.
10511 * dummy-frame.c (fprint_dummy_frames): Update.
10512 * dcache.c (dcache_info_1): Update.
10513 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10514 (btrace_fetch, btrace_clear): Update.
10515 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10516 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10518 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10519 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10520 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10521 * gdbarch.c, gdbarch.h: Rebuild.
10522 * gdbarch.sh (core_pid_to_str): Change return type.
10523 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10525 (windows_nat_target::pid_to_str): Change return type.
10526 (windows_delete_thread): Update.
10527 (windows_nat_target::attach): Update.
10528 (windows_nat_target::files_info): Update.
10529 * target-delegates.c: Rebuild.
10530 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10532 (sol_thread_target::pid_to_str): Change return type.
10533 * remote.c (class remote_target) <pid_to_str>: Change return
10535 (remote_target::pid_to_str): Change return type.
10536 (extended_remote_target::attach, remote_target::remote_stop_ns)
10537 (remote_target::remote_notif_remove_queued_reply)
10538 (remote_target::push_stop_reply, remote_target::disable_btrace):
10540 (extended_remote_target::attach): Update.
10541 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10543 (gdbsim_target::pid_to_str): Change return type.
10544 * ravenscar-thread.c (struct ravenscar_thread_target)
10545 <pid_to_str>: Change return type.
10546 (ravenscar_thread_target::pid_to_str): Change return type.
10547 * procfs.c (class procfs_target) <pid_to_str>: Change return
10549 (procfs_target::pid_to_str): Change return type.
10550 (procfs_target::attach): Update.
10551 (procfs_target::detach): Update.
10552 (procfs_target::fetch_registers): Update.
10553 (procfs_target::store_registers): Update.
10554 (procfs_target::wait): Update.
10555 (procfs_target::files_info): Update.
10556 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10557 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10559 (nto_procfs_target::pid_to_str): Change return type.
10560 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10561 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10563 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10564 (exit_lwp): Update.
10565 (attach_proc_task_lwp_callback, get_detach_signal)
10566 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10567 (linux_nat_target::resume, wait_lwp, stop_callback)
10568 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10569 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10570 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10571 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10572 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10574 (inf_ptrace_target::attach): Update.
10575 (inf_ptrace_target::files_info): Update.
10576 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10578 (go32_nat_target::pid_to_str): Change return type.
10579 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10580 (gnu_nat_target::wait): Update.
10581 (gnu_nat_target::wait): Update.
10582 (gnu_nat_target::resume): Update.
10583 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10584 (fbsd_nat_target::wait): Update.
10585 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10587 (darwin_nat_target::attach): Update.
10588 * corelow.c (class core_target) <pid_to_str>: Change return type.
10589 (core_target::pid_to_str): Change return type.
10590 * target.c (normal_pid_to_str): Change return type.
10591 (default_pid_to_str): Likewise.
10592 (target_pid_to_str): Change return type.
10593 (target_translate_tls_address): Update.
10594 (target_announce_detach): Update.
10595 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10597 (bsd_uthread_target::pid_to_str): Change return type.
10598 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10600 (bsd_kvm_target::pid_to_str): Change return type.
10601 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10603 (aix_thread_target::pid_to_str): Change return type.
10604 * target.h (struct target_ops) <pid_to_str>: Change return type.
10605 (target_pid_to_str, normal_pid_to_str): Likewise.
10606 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10608 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10610 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10612 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10614 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10616 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10619 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10621 * NEWS: Mention that the new default MI version is 3. Mention
10622 changes to the output of commands and events that deal with
10623 multi-location breakpoints.
10624 * breakpoint.c: Include "mi/mi-out.h".
10625 (print_one_breakpoint): Change output syntax if using MI version
10627 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10629 (mi_multi_location_breakpoint_output_fixed): New.
10630 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10631 (mi_cmd_fix_multi_location_breakpoint_output): New.
10632 (mi_multi_location_breakpoint_output_fixed): New.
10633 * mi/mi-cmds.c (mi_cmds): Register command
10634 -fix-multi-location-breakpoint-output.
10635 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10638 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10640 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10641 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10642 instantiate mi_ui_out based on interpreter name.
10643 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10644 * mi/mi-main.c (mi_load_progress): Likewise.
10646 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10648 * NEWS: Combine separate "New targets" sections for 8.3.
10650 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10652 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10653 (ppcfbsd_init_abi): Install gdbarch
10654 "fetch_tls_load_module_address" and "get_thread_local_address"
10657 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10659 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10660 (riscv_fbsd_init_abi): Install gdbarch
10661 "fetch_tls_load_module_address" and "get_thread_local_address"
10664 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10666 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10667 (i386fbsd_init_abi): Install gdbarch
10668 "fetch_tls_load_module_address" and "get_thread_local_address"
10671 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10673 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10674 (amd64fbsd_init_abi): Install gdbarch
10675 "fetch_tls_load_module_address" and "get_thread_local_address"
10678 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10680 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10681 (struct fbsd_pspace_data): New type.
10682 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10683 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10684 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10685 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10686 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10688 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10690 * gdbtypes.c (lookup_struct_elt): New function.
10691 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10692 * gdbtypes.h (struct struct_elt): New type.
10693 (lookup_struct_elt): New prototype.
10695 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10697 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10698 remove disabled code block.
10700 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10702 * gdbarch.sh (get_thread_local_address): New method.
10703 * gdbarch.h, gdbarch.c: Regenerate.
10704 * target.c (target_translate_tls_address): Use
10705 gdbarch_get_thread_local_address if present instead of
10706 target::get_thread_local_address.
10708 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10710 * target.h (target::get_thread_local_address): Update comment.
10712 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10714 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10715 objfile->separate_debug_objfile_backlink if not NULL.
10717 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10719 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10720 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10721 (amd64bsd_store_inferior_registers): Likewise.
10722 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10723 Enable segment base registers.
10724 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10725 PT_GETFSBASE and PT_GETGSBASE.
10726 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10728 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10729 segment base registers.
10730 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10732 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10734 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10735 Update calls to i386_target_description to add 'segments'
10737 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10738 add segment base registers.
10739 * arch/i386.c (i386_create_target_description): Add 'segments'
10740 parameter to enable segment base registers.
10741 * arch/i386.h (i386_create_target_description): Likewise.
10742 * features/i386/32bit-segments.xml: New file.
10743 * features/i386/32bit-segments.c: Generate.
10744 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10745 call to i386_target_description to add 'segments' parameter.
10746 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10747 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10748 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10749 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10750 if feature is present.
10751 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10752 Add 'segments' parameter to call to i386_target_description.
10753 (i386_target_description): Add 'segments' parameter to enable
10754 segment base registers.
10755 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10756 to call to i386_target_description.
10757 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10758 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10759 Define I386_NUM_REGS.
10760 (i386_target_description): Add 'segments' parameter to enable
10761 segment base registers.
10763 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10766 * source-cache.c: #undef open and close, to avoid unresolved
10767 externals during linking.
10769 2019-03-12 Tom Tromey <tromey@adacore.com>
10771 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10772 const. Add initializers.
10773 (_initialize_remote): Don't initialize ptid globals.
10775 2019-03-12 Pedro Alves <palves@redhat.com>
10777 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10779 2019-03-12 Pedro Alves <palves@redhat.com>
10781 * cp-name-parser.y (main): Remove unused 'len' variable.
10783 2019-03-12 Tom Tromey <tromey@adacore.com>
10785 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10786 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10788 2019-03-12 Tom Tromey <tromey@adacore.com>
10790 * linux-nat.c (iterate_over_lwps): Update.
10791 (stop_callback): Remove parameter.
10792 (stop_wait_callback, detach_callback, resume_set_callback)
10793 (select_singlestep_lwp_callback, set_ignore_sigint)
10794 (status_callback, resumed_callback, resume_clear_callback)
10795 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10797 (linux_nat_target::detach, linux_nat_target::resume)
10798 (linux_stop_and_wait_all_lwps, select_event_lwp)
10799 (linux_nat_filter_event, linux_nat_wait_1)
10800 (linux_nat_target::kill, linux_nat_target::stop)
10801 (linux_nat_target::stop): Update.
10802 (linux_nat_resume_callback): Change type.
10803 (resume_stopped_resumed_lwps, count_events_callback)
10804 (select_event_lwp_callback): Likewise.
10805 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10806 * arm-linux-nat.c (struct update_registers_data): Remove.
10807 (update_registers_callback): Change type.
10808 (arm_linux_insert_hw_breakpoint1): Update.
10809 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10811 (x86_linux_dr_set_addr): Update.
10812 (x86_linux_dr_set_control): Update.
10813 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10814 (iterate_over_lwps): Use gdb::function_view.
10815 * nat/aarch64-linux-hw-point.c (struct
10816 aarch64_dr_update_callback_param): Remove.
10817 (debug_reg_change_callback): Change type.
10818 (aarch64_notify_debug_reg_change): Update.
10819 * s390-linux-nat.c (s390_refresh_per_info): Update.
10821 2019-03-11 Tom Tromey <tromey@adacore.com>
10823 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10824 redundant assignment to "this_cu".
10826 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10828 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10830 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10832 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10834 (rank_one_type): ... this.
10836 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10838 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10840 (rank_one_type): ... this.
10842 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10844 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10846 (rank_one_type): ... this.
10848 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10850 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10852 (rank_one_type): ... this.
10854 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10856 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10858 (rank_one_type): ... this.
10860 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10862 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10864 (rank_one_type): ... this.
10866 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10868 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10870 (rank_one_type): ... this.
10872 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10874 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10876 (rank_one_type): ... this.
10878 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10880 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10882 (rank_one_type): ... this.
10884 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10886 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10888 (rank_one_type): ... this.
10890 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10892 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10894 (rank_one_type): ... this.
10896 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10898 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10900 (rank_one_type): ... this.
10902 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10904 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10905 inferior-events' shows the example events.
10907 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10909 Support styling on native MS-Windows console
10912 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10913 on MS-Windows if $TERM is not defined.
10915 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10917 * posix-hdep.c (gdb_console_fputs):
10918 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10920 * ui-file.h (gdb_console_fputs): Add prototype.
10922 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10923 back to fputs only if the former returns zero.
10925 2019-03-07 Tom Tromey <tom@tromey.com>
10927 * symmisc.c (print_symbol_bcache_statistics): Update.
10928 (print_objfile_statistics): Update.
10929 * symfile.c (allocate_symtab): Update.
10930 * stabsread.c: Don't include bcache.h.
10931 * psymtab.h (struct psymbol_bcache): Don't declare.
10932 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10933 (psymbol_bcache_init, psymbol_bcache_free)
10934 (psymbol_bcache_get_bcache): Don't declare.
10935 * psymtab.c (struct psymbol_bcache): Remove.
10936 (psymtab_storage::psymtab_storage): Update.
10937 (psymtab_storage::~psymtab_storage): Update.
10938 (psymbol_bcache_init, psymbol_bcache_free)
10939 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10940 (add_psymbol_to_bcache): Update.
10941 (allocate_psymtab): Update.
10942 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10943 macro_cache>: No longer pointers.
10944 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10945 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10946 * macrotab.c (macro_bcache): Update.
10947 * macroexp.c: Don't include bcache.h.
10948 * gdbtypes.c (check_types_worklist): Update.
10949 (types_deeply_equal): Remove TRY/CATCH. Update.
10950 * elfread.c (elf_symtab_read): Update.
10951 * dwarf2read.c: Don't include bcache.h.
10952 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10953 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10954 (print_bcache_statistics, bcache_memory_used): Don't declare.
10955 (struct bcache): Move from bcache.c. Add constructor, destructor,
10956 methods. Rename all data members.
10957 * bcache.c (struct bcache): Move to bcache.h.
10958 (bcache::expand_hash_table): Rename from expand_hash_table.
10960 (bcache::insert): Rename from bcache_full.
10961 (bcache::compare): Rename from bcache_compare.
10962 (bcache_xmalloc): Remove.
10963 (bcache::~bcache): Rename from bcache_xfree.
10964 (bcache::print_statistics): Rename from print_bcache_statistics.
10965 (bcache::memory_used): Rename from bcache_memory_used.
10967 2019-03-07 Pedro Alves <palves@redhat.com>
10969 * infrun.c (normal_stop): Also check for
10970 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10972 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10974 * f-lang.c (value_from_host_double): Moved to...
10975 * value.c (value_from_host_double): ...here.
10976 * value.h (value_from_host_double): Declare.
10977 * guile/scm-math.c (vlscm_convert_typed_number): Use
10978 value_from_host_double.
10979 (vlscm_convert_number): Likewise.
10980 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10981 * python/py-value.c (convert_value_from_python): Likewise.
10983 2019-03-06 Tom Tromey <tom@tromey.com>
10985 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
10987 2019-03-06 Tom Tromey <tom@tromey.com>
10989 * utils.h (free_current_contents): Don't declare.
10990 * utils.c (free_current_contents): Remove.
10992 2019-03-06 Tom Tromey <tom@tromey.com>
10994 * top.c (quit_force): Update.
10995 * main.c (captured_command_loop): Update.
10996 * common/new-op.c (operator new): Update.
10997 * common/common-exceptions.c (struct catcher)
10998 <save_cleanup_chain>: Remove member.
10999 (exceptions_state_mc_init): Update.
11000 (exception_try_scope_entry): Return nullptr.
11001 (exception_try_scope_exit, exception_rethrow)
11002 (throw_exception_sjlj, throw_exception_cxx): Update.
11003 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11004 (all_cleanups, do_cleanups, discard_cleanups)
11005 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11006 (restore_cleanups, restore_final_cleanups): Don't declare.
11007 (do_final_cleanups): Remove parameter.
11008 * common/cleanups.c (cleanup_chain, make_cleanup)
11009 (make_cleanup_dtor, all_cleanups, do_cleanups)
11010 (discard_my_cleanups, discard_cleanups)
11011 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11012 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11013 (null_cleanup): Remove.
11014 (do_final_cleanups): Remove parameter.
11016 2019-03-06 Tom Tromey <tom@tromey.com>
11018 * remote.c (remote_target::remote_parse_stop_reply): Use
11019 unique_xmalloc_ptr.
11021 2019-03-06 Tom Tromey <tom@tromey.com>
11023 * stabsread.c (struct stabs_field_info): Rename from field_info.
11024 <list, fnlist>: Add initializers.
11025 <obstack>: New member.
11026 (read_member_functions, read_struct_fields, read_baseclasses):
11027 Allocate on obstack. Don't use cleanups.
11028 (read_one_struct_field, read_member_functions, read_struct_fields)
11029 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11030 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11031 (read_struct_type): Update.
11033 2019-03-06 Tom Tromey <tom@tromey.com>
11035 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11036 * common/filestuff.h (make_cleanup_close): Don't declare.
11037 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11040 2019-03-06 Tom Tromey <tom@tromey.com>
11042 * solib-aix.c: Use make_scope_exit.
11044 2019-03-06 Tom Tromey <tom@tromey.com>
11046 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11047 Use make_scope_exit.
11049 2019-03-06 Tom Tromey <tom@tromey.com>
11051 * solib-svr4.c (disable_probes_interface): Remove parameter.
11052 (svr4_handle_solib_event): Use make_scope_exit.
11054 2019-03-06 Tom Tromey <tom@tromey.com>
11056 * remote.c (struct stop_reply_deleter): Remove.
11057 (stop_reply_up): Update.
11058 (struct stop_reply): Derive from notif_event. Don't typedef.
11059 <regcache>: Now a std::vector.
11060 (stop_reply_xfree): Remove.
11061 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11062 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11063 (remote_target::discard_pending_stop_replies): Use delete.
11064 (remote_target::remote_parse_stop_reply): Update.
11065 (remote_target::process_stop_reply): Update.
11066 * remote-notif.h (struct notif_event): Add virtual destructor.
11067 Remove "dtr" member.
11068 (struct notif_client) <alloc_event>: Return a unique_ptr.
11069 (notif_event_xfree): Don't declare.
11070 (notif_event_up): New typedef.
11071 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11072 (notif_event_xfree, do_notif_event_xfree): Remove.
11073 (remote_notif_state_xfree): Update.
11075 2019-03-06 Tom Tromey <tom@tromey.com>
11077 * infrun.c (displaced_step_clear_cleanup): Now a
11078 forward_scope_exit type.
11079 (displaced_step_prepare_throw): Update.
11080 (displaced_step_fixup): Update.
11082 2019-03-06 Tom Tromey <tom@tromey.com>
11084 * inferior.h (class inferior): Update comment.
11085 * gdbthread.h (class thread_info): Update comment.
11087 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11088 Tom Tromey <tom@tromey.com>
11090 * stabsread.h (struct stab_section_list): Remove.
11091 (coffstab_build_psymtabs): Update.
11092 * dbxread.c (symbuf_sections): Now a std::vector.
11093 (sect_idx): New global.
11094 (fill_symbuf): Update.
11095 (coffstab_build_psymtabs): Change type of stabsects parameter.
11097 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11099 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11100 (coff_locate_sections): Update.
11101 (coff_symfile_read): Remove cleanups. Update.
11102 (init_stringtab): Add storage parameter.
11103 (free_stringtab, free_stringtab_cleanup): Remove.
11104 (init_lineno): Add storage parameter.
11105 (free_linetab, free_linetab_cleanup): Remove.
11107 2019-03-06 Pedro Alves <palves@redhat.com>
11109 * linux-fork.c (fork_info::clobber_regs): Delete.
11110 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11111 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11113 (scoped_switch_fork_info::scoped_switch_fork_info)
11114 (checkpoint_command, linux_fork_context): Adjust
11115 fork_save_infrun_state calls.
11117 2019-03-06 Pedro Alves <palves@redhat.com>
11119 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11120 (inf_has_multiple_threads): Return 'bool' and rewrite using
11121 inferior_info::threads().
11123 2019-03-06 Pedro Alves <palves@redhat.com>
11125 * linux-fork.c: Include <list>.
11126 (fork_list): Now a std::list instance.
11127 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11128 (forks_exist_p, find_last_fork): Adjust.
11129 (new_fork): Delete.
11131 (add_fork): Adjust.
11132 (free_fork): Delete, folded into fork_info::~fork_info().
11133 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11135 (init_fork_list): Delete.
11136 (linux_fork_killall, linux_fork_mourn_inferior)
11137 (linux_fork_detach, info_checkpoints_command): Adjust.
11138 (_initialize_linux_fork): No longer call init_fork_list.
11140 2019-03-06 Pedro Alves <palves@redhat.com>
11142 * linux-fork.c (new_fork): New, split out of ...
11143 (add_fork): ... this. Return void. Move "first fork" special
11144 case from here, to ...
11145 (checkpoint_command): ... here.
11146 * linux-linux.h (add_fork): Return void.
11148 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11150 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11152 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11153 Chris January <chris.january@arm.com>
11154 David Lecomber <david.lecomber@arm.com>
11156 * f-exp.y: New token, UNOP_INTRINSIC.
11157 (exp): New pattern using UNOP_INTRINSIC token.
11158 (f77_keywords): Add 'abs' keyword.
11159 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11160 (value_from_host_double): New function.
11161 (evaluate_subexp_f): Support UNOP_ABS.
11163 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11165 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11168 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11170 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11171 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11172 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11174 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11176 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11178 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11179 Chris January <chris.january@arm.com>
11181 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11182 * f-exp.y: Define 'KIND' token.
11183 (exp): New pattern for KIND expressions.
11184 (ptype): Handle types with a kind extension.
11185 (direct_abs_decl): Extend to spot kind extensions.
11186 (f77_keywords): Add 'kind' to the list.
11187 (push_kind_type): New function.
11188 (convert_to_kind_type): New function.
11189 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11190 * parse.c (operator_length_standard): Likewise.
11191 * parser-defs.h (enum type_pieces): Add tp_kind.
11192 * std-operator.def: Add UNOP_KIND.
11194 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11196 * f-exp.y (f_parse): Set yydebug.
11198 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11200 * f-lang.c (evaluate_subexp_f): New function.
11201 (exp_descriptor_f): New global.
11202 (f_language_defn): Use exp_descriptor_f instead of
11203 exp_descriptor_standard.
11205 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11207 * f-exp.y (struct token): Add comments.
11208 (dot_ops): Remove uppercase versions and the end marker.
11209 (f77_keywords): Likewise.
11210 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11211 entries in the dot_ops array are case insensitive, and use
11212 strncasecmp to compare strings. Also some whitespace cleanup in
11213 this area. Similar for the f77_keywords array, except entries in
11214 this list might be case sensitive.
11216 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11218 * f-exp.y (struct f77_boolean_val): Add comments.
11219 (boolean_values): Remove uppercase versions, and end marker.
11220 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11221 and use strncasecmp to achieve case insensitivity. Additionally,
11222 perform whitespace cleanup around this code.
11224 2019-03-06 Tom Tromey <tromey@adacore.com>
11226 * remote-sim.c (gdbsim_target_open): Use result of
11229 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11230 Dirk Schubert <dirk.schubert@arm.com>
11231 Chris January <chris.january@arm.com>
11233 * eval.c (evaluate_subexp_standard): Call Fortran argument
11235 * f-lang.c (struct value): A value which can be passed into a
11236 Fortran function call.
11237 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11239 (struct type): Value ready for a Fortran function call.
11240 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11242 * f-lang.h (fortran_argument_convert): Declaration.
11243 (fortran_preserve_arg_pointer): Declaration.
11244 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11246 2019-03-05 Tom Tromey <tromey@adacore.com>
11248 * python/py-prettyprint.c (print_string_repr): Remove #if.
11249 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11251 2019-03-05 Tom Tromey <tromey@adacore.com>
11253 * target.c (the_dummy_target): Move later. Change type to
11255 (initialize_targets): Don't initialize the_dummy_target.
11257 2019-03-05 Tom Tromey <tromey@adacore.com>
11259 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11260 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11262 2019-03-05 Tom Tromey <tromey@adacore.com>
11264 * windows-nat.c (windows_nat_target::attach)
11265 (windows_nat_target::detach): Don't call gdb_flush.
11266 * valprint.c (generic_val_print, val_print, val_print_string):
11267 Don't call gdb_flush.
11268 * utils.c (defaulted_query): Don't call gdb_flush.
11269 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11270 * target.c (target_announce_detach): Don't call gdb_flush.
11271 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11272 * remote.c (extended_remote_target::attach): Don't call
11274 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11275 * printcmd.c (do_examine): Don't call gdb_flush.
11276 (info_display_command): Don't call gdb_flush.
11277 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11278 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11279 * memattr.c (info_mem_command): Don't call gdb_flush.
11280 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11281 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11282 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11283 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11284 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11285 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11286 (gnu_nat_target::detach): Don't call gdb_flush.
11287 * f-valprint.c (f_val_print): Don't call gdb_flush.
11288 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11289 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11290 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11292 * c-valprint.c (c_val_print): Don't call gdb_flush.
11293 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11295 2019-03-05 Tom Tromey <tromey@adacore.com>
11297 * varobj.c (update_dynamic_varobj_children): Update.
11298 (install_default_visualizer): Use reset, not release.
11299 * value.c (set_internalvar): Update.
11300 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11301 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11302 ATTRIBUTE_UNUSED_RESULT.
11304 2019-03-05 Tom Tromey <tromey@adacore.com>
11306 * remote.c (class scoped_remote_fd) <release>: Add
11307 ATTRIBUTE_UNUSED_RESULT.
11309 2019-03-05 Tom Tromey <tromey@adacore.com>
11311 * macroexp.c (struct macro_buffer) <release>: Add
11312 ATTRIBUTE_UNUSED_RESULT.
11314 2019-03-05 Tom Tromey <tromey@adacore.com>
11316 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11317 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11318 ATTRIBUTE_UNUSED_RESULT.
11320 2019-03-05 Tom Tromey <tromey@adacore.com>
11322 * common/scoped_fd.h (class scoped_fd) <release>: Add
11323 ATTRIBUTE_UNUSED_RESULT.
11325 2019-03-05 Tom Tromey <tromey@adacore.com>
11327 * parser-defs.h (struct parser_state) <release>: Add
11328 ATTRIBUTE_UNUSED_RESULT.
11330 2019-03-05 Tom Tromey <tromey@adacore.com>
11332 * utils.h (class gdb_argv) <release>: Add
11333 ATTRIBUTE_UNUSED_RESULT.
11334 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11336 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11338 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11339 for-loop range, to avoid compiler warnings.
11341 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11342 avoid compiler warnings about unused variables.
11344 * NEWS: Mention end of support for native debugging on MS-Windows
11348 * common/netstuff.c:
11349 * gdbserver/gdbreplay.c
11350 * gdbserver/remote-utils.c:
11352 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11353 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11354 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11355 'getaddrinfo' and 'freeaddrinfo' were not available before
11356 Windows XP, and mingw.org's MinGW headers by default define
11357 _WIN32_WINNT to 0x500.
11359 2019-03-01 Gary Benson <gbenson@redhat.com>
11361 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11363 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11364 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11367 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11368 set_sigint_trap, clear_sigint_trap.
11370 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11372 * target.c (target_detach): Clear the regcache and the
11375 2019-02-27 Pedro Alves <palves@redhat.com>
11377 * utils.c (set_screen_size): When we cap the height/width sizes,
11378 tweak the corresponding command variable to show "unlimited":
11380 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11381 Pedro Alves <palves@redhat.com>
11383 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11384 before calling rl_set_screen_size.
11386 2019-02-27 Tom Tromey <tromey@adacore.com>
11388 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11390 * python/py-value.c: Remove Python 2.4 workaround.
11391 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11393 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11394 Python 2.4 workaround.
11395 * python/python-internal.h: Remove Python 2.4 comment.
11396 (Py_ssize_t): Don't define.
11397 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11398 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11399 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11400 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11401 * python/python.c (do_start_initialization): Remove Python 2.4
11403 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11404 (print_children): Remove Python 2.4 workaround.
11405 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11407 (CHARBUFFERPROC_NAME): Remove.
11408 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11409 Python 2.4 workaround.
11411 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11413 * NEWS: Note minimum Python version.
11415 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11417 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11418 code from these functions. Remove corresponding ifdefs. Use
11419 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11420 Remove gotos and target of gotos.
11421 (infpy_search_memory): Likewise.
11423 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11425 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11426 (hppa_gdbarch_init): Don't register deleted functions with
11429 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11431 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11432 (h8300_unwind_sp): Delete.
11433 (h8300_dummy_id): Delete.
11434 (h8300_gdbarch_init): Don't register deleted functions with
11437 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11439 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11440 (ft32_unwind_pc): Delete.
11441 (ft32_unwind_sp): Delete.
11442 (ft32_gdbarch_init): Don't register deleted functions with
11445 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11447 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11448 (frv_unwind_pc): Delete.
11449 (frv_unwind_sp): Delete.
11450 (frv_gdbarch_init): Don't register deleted functions with
11453 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11455 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11456 (riscv_unwind_pc): Delete.
11457 (riscv_unwind_sp): Delete.
11458 (riscv_gdbarch_init): Don't register deleted functions with
11461 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11463 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11464 (csky_unwind_pc): Delete.
11465 (csky_unwind_sp): Delete.
11466 (csky_gdbarch_init): Don't register deleted functions with
11469 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11471 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11472 (cris_unwind_pc): Delete.
11473 (cris_unwind_sp): Delete.
11474 (cris_gdbarch_init): Don't register deleted functions with
11477 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11479 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11480 (bfin_unwind_pc): Delete.
11481 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11483 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11485 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11486 (arm_unwind_pc): Delete.
11487 (arm_unwind_sp): Delete.
11488 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11490 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11492 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11493 (arc_unwind_pc): Delete.
11494 (arc_unwind_sp): Delete.
11495 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11497 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11499 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11500 (alpha_unwind_pc): Delete.
11501 (alpha_gdbarch_init): Don't register deleted functions with
11504 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11506 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11507 (aarch64_unwind_pc): Delete.
11508 (aarch64_unwind_sp): Delete.
11509 (aarch64_gdbarch_init): Don't register deleted functions with
11512 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11514 * gdbtypes.c (type_align): Don't consider static members when
11515 computing structure alignment.
11517 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11519 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11520 return 0 for other types.
11521 * arch-utils.c (default_type_align): Always return 0.
11522 * gdbarch.h: Regenerate.
11523 * gdbarch.sh (type_align): Extend comment.
11524 * gdbtypes.c (type_align): Add additional comments, always call
11525 gdbarch_type_align before applying the default rules.
11526 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11527 generic code will then apply a suitable default.
11528 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11529 types, return 0 for other types.
11531 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11533 * NEWS: Create a new section for the next release branch.
11534 Rename the section of the current branch, now that it has
11537 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11539 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11540 * version.in: Bump version to 8.3.50.DATE-git.
11542 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11544 * aix-thread.c (ptid_cmp): Remove unused variable.
11545 (get_signaled_thread): Likewise.
11546 (store_regs_user_thread): Likewise.
11547 (store_regs_kernel_thread): Likewise.
11548 (fetch_regs_kernel_thread): Remove shadowed variable.
11550 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11552 * features/riscv/32bit-cpu.xml: Add register numbers.
11553 * features/riscv/32bit-fpu.c: Regenerate.
11554 * features/riscv/32bit-fpu.xml: Add register numbers.
11555 * features/riscv/64bit-cpu.xml: Add register numbers.
11556 * features/riscv/64bit-fpu.c: Regenerate.
11557 * features/riscv/64bit-fpu.xml: Add register numbers.
11559 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11561 * NEWS: Mention two argument form of gdb.Value constructor.
11562 * python/py-value.c (convert_buffer_and_type_to_value): New
11564 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11565 Add support for handling an optional second argument. Call
11566 convert_buffer_and_type_to_value as appropriate.
11567 * python/python-internal.h (Py_buffer_deleter): New struct.
11568 (Py_buffer_up): New typedef.
11570 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11572 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11573 instead of releasing ownership.
11575 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11577 * dwarf2read.c (open_and_init_dwp_file): Call
11578 elf_numsections instead of bfd_count_sections to initialize
11579 dwp_file->num_sections.
11581 2019-02-25 Tom Tromey <tromey@adacore.com>
11583 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11585 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11587 * gcore.in: Add '--readnever' option when invoking GDB.
11589 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11591 * MAINTAINERS: Update my email address.
11593 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11595 * build-id.c (build_id_to_debug_bfd_1): New function.
11596 (build_id_to_debug_bfd): Look for separate debug file in
11599 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11601 * gdbarch.sh: Update the copyright year range that is placed into
11604 2019-02-22 Keith Seitz <keiths@redhat.com>
11607 * linespec.c (create_sals_line_offset): Search for the default
11608 symtab's filename instead of its fullname.
11610 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11612 * NEWS: Update style defaults.
11614 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11616 * main.c (captured_main_1): Disable styling in batch mode.
11618 2019-02-20 Tom Tromey <tom@tromey.com>
11620 * symtab.c (symtab_symbol_info): Fix typos.
11622 2019-02-20 Tom Tromey <tromey@adacore.com>
11624 * findcmd.c (_initialize_mem_search): Use upper case for
11625 metasyntactic variables.
11627 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11629 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11630 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11632 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11634 * top.h (source_file_name): Change to std::string.
11635 * top.c (source_file_name): Likewise.
11636 (command_line_input): Adjust.
11637 * cli/cli-script.c (script_from_file): Adjust.
11639 2019-02-19 Tom Tromey <tromey@adacore.com>
11641 * ravenscar-thread.c
11642 (ravenscar_thread_target::update_thread_list): Don't call
11643 ada_build_task_list.
11644 * ada-lang.h (ada_build_task_list): Don't declare.
11645 * ada-tasks.c (struct ada_tasks_inferior_data)
11646 <task_list_valid_p>: Now bool.
11647 (read_known_tasks, ada_task_list_changed)
11648 (ada_tasks_invalidate_inferior_data): Update.
11649 (read_known_tasks_array): Return bool.
11650 (read_known_tasks_list): Likewise.
11651 (read_known_tasks): Return void.
11652 (ada_build_task_list): Now static.
11654 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11656 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11657 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11659 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11661 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11662 variant for ada_tasks_pspace_data_handle and
11663 ada_tasks_inferior_data_handle.
11664 (ada_tasks_pspace_data_cleanup): New function.
11665 (ada_tasks_inferior_data_cleanup): New function.
11667 2019-02-17 Tom Tromey <tom@tromey.com>
11669 * macrotab.h (macro_source_fullname): Return a std::string.
11670 * macrotab.c (macro_include, check_for_redefinition)
11671 (macro_undef, macro_lookup_definition, foreach_macro)
11672 (foreach_macro_in_scope): Update.
11673 (macro_source_fullname): Return a std::string.
11674 * macrocmd.c (show_pp_source_pos): Update.
11676 2019-02-17 Tom Tromey <tom@tromey.com>
11678 * macrocmd.c (show_pp_source_pos): Style the file names.
11680 2019-02-17 Tom Tromey <tom@tromey.com>
11683 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11685 2019-02-17 Tom Tromey <tom@tromey.com>
11687 * ada-lang.c (user_select_syms): Use filtered printing.
11688 * utils.c (wrap_style): New global.
11689 (desired_style): Remove.
11690 (emit_style_escape): Add stream parameter.
11691 (set_output_style, reset_terminal_style, prompt_for_continue):
11693 (flush_wrap_buffer): Only flush gdb_stdout.
11694 (wrap_here): Set wrap_style.
11695 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11696 treat escape sequences as a character. Change when wrap buffer is
11698 (fputs_styled): Do not set the output style when the default is
11700 * ui-style.h (struct ui_file_style) <is_default>: New method.
11701 * source.c (print_source_lines_base): Emit escape sequences in one
11704 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11706 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11707 integers and enumeration types.
11709 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11711 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11712 instead of lookup_symbol_in_language
11713 (do_exact_match): New function.
11714 (ada_get_symbol_name_matcher): Return do_exact_match when
11715 doing a verbatim match.
11717 2019-02-15 Tom Tromey <tromey@adacore.com>
11719 * ravenscar-thread.c (ravenscar_thread_target::resume)
11720 (ravenscar_thread_target::wait): Special case wildcard requests.
11722 2019-02-15 Tom Tromey <tromey@adacore.com>
11724 * ravenscar-thread.c (base_ptid): Remove.
11725 (struct ravenscar_thread_target) <close>: New method.
11726 <m_base_ptid>: New member.
11727 <update_inferior_ptid, active_task, task_is_currently_active,
11728 runtime_initialized>: Declare methods.
11729 <ravenscar_thread_target>: Add constructor.
11730 (ravenscar_thread_target::task_is_currently_active)
11731 (ravenscar_thread_target::update_inferior_ptid)
11732 (ravenscar_runtime_initialized): Rename. Now methods.
11733 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11734 (ravenscar_thread_target::update_thread_list): Update.
11735 (ravenscar_thread_target::active_task): Now method.
11736 (ravenscar_thread_target::store_registers)
11737 (ravenscar_thread_target::prepare_to_store)
11738 (ravenscar_thread_target::prepare_to_store)
11739 (ravenscar_thread_target::mourn_inferior): Update.
11740 (ravenscar_inferior_created): Use "new" to create target.
11741 (ravenscar_thread_target::get_ada_task_ptid): Update.
11742 (_initialize_ravenscar): Don't initialize base_ptid.
11743 (ravenscar_ops): Remove global.
11745 2019-02-15 Tom Tromey <tromey@adacore.com>
11747 * target.h (push_target): Declare new overload.
11748 * target.c (push_target): New overload, taking an rvalue reference.
11749 * remote.c (remote_target::open_1): Use push_target overload.
11750 * corelow.c (core_target_open): Use push_target overload.
11752 2019-02-15 Tom Tromey <tromey@adacore.com>
11754 * ravenscar-thread.c (is_ravenscar_task)
11755 (ravenscar_task_is_currently_active): Return bool.
11756 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11757 (_initialize_ravenscar): Remove "(void)".
11758 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11761 2019-02-15 Tom Tromey <tromey@adacore.com>
11763 * ravenscar-thread.c (ravenscar_runtime_initializer)
11764 (has_ravenscar_runtime, get_running_thread_id)
11765 (ravenscar_thread_target::resume): Fix indentation.
11767 2019-02-15 Tom Tromey <tromey@adacore.com>
11769 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11770 from ravenscar_arch_ops.
11771 (sparc_ravenscar_ops::fetch_registers)
11772 (sparc_ravenscar_ops::store_registers): Now methods.
11773 (sparc_ravenscar_prepare_to_store): Remove.
11774 (sparc_ravenscar_ops): Redefine.
11775 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11776 methods and destructor. Remove members.
11777 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11778 (ravenscar_thread_target::store_registers)
11779 (ravenscar_thread_target::prepare_to_store): Update.
11780 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11782 (struct ppc_ravenscar_powerpc_ops): Derive from
11783 ravenscar_arch_ops.
11784 (ppc_ravenscar_powerpc_ops::fetch_registers)
11785 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11786 (ppc_ravenscar_powerpc_ops): Redefine.
11787 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11788 (ppc_ravenscar_e500_ops::fetch_registers)
11789 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11790 (ppc_ravenscar_e500_ops): Redefine.
11791 * aarch64-ravenscar-thread.c
11792 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11793 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11794 (aarch64_ravenscar_fetch_registers)
11795 (aarch64_ravenscar_store_registers): Now methods.
11796 (aarch64_ravenscar_ops): Redefine.
11798 2019-02-15 Tom Tromey <tromey@adacore.com>
11800 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11801 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11802 (ravenscar_thread_target::stopped_by_watchpoint)
11803 (ravenscar_thread_target::stopped_data_address)
11804 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11806 2019-02-15 Tom Tromey <tromey@adacore.com>
11808 * ravenscar-thread.c: Fix some typos.
11810 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11811 Tom Tromey <tromey@adacore.com>
11813 * ada-lang.c (ada_exception_sal): Change addr_string to a
11815 (create_ada_exception_catchpoint): Update.
11817 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11818 Tom Tromey <tromey@adacore.com>
11820 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11821 (bp_location_ops): Remove.
11822 (base_breakpoint_allocate_location): Update.
11823 (free_bp_location): Update.
11824 * ada-lang.c (class ada_catchpoint_location)
11825 <ada_catchpoint_location>: Remove ops parameter.
11826 (ada_catchpoint_location_dtor): Remove.
11827 (ada_catchpoint_location_ops): Remove.
11828 (allocate_location_exception): Update.
11829 * breakpoint.h (struct bp_location_ops): Remove.
11830 (class bp_location) <bp_location>: Remove bp_location_ops
11832 <~bp_location>: Add destructor.
11835 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11836 Pedro Alves <palves@redhat.com>
11838 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11841 2019-02-14 David Michael <fedora.dm0@gmail.com>
11842 Samuel Thibault <samuel.thibault@gnu.org>
11843 Thomas Schwinge <thomas@codesourcery.com>
11845 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11846 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11848 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11850 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11851 (check_empty): Use "const char *".
11853 * gnu-nat.c (gnu_nat_target::detach): Instead of
11854 'detach_inferior (pid)' call
11855 'detach_inferior (find_inferior_pid (pid))'.
11857 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11858 'nat/fork-inferior.o'.
11859 * gnu-nat.c: #include "nat/fork-inferior.h".
11861 * gnu-nat.c (gnu_nat_target::detach): Instead of
11862 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11863 * gnu-nat.h: #include "inf-child.h".
11864 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11865 'i386_gnu_nat_target::fetch_registers'.
11866 (gnu_store_registers): Rename/move to
11867 'i386_gnu_nat_target::store_registers'.
11869 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11870 * gnu-nat.h (mach_thread_info): New function.
11871 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11873 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11875 2019-02-14 Frederic Konrad <konrad@adacore.com>
11877 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11879 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11881 * windows-nat.c (windows_add_thread): Add new parameter
11882 "main_thread_p" with default value set to false. Update
11883 function documentation as well as all callers.
11884 (windows_delete_thread): Likewise.
11885 (fake_create_process): Update call to windows_add_thread.
11886 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11887 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11888 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11889 call to windows_delete_thread.
11891 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11893 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11895 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11897 * symfile.c (find_separate_debug_file): Use canonical path of
11898 sysroot with child_path instead of gdb_sysroot if it is valid.
11900 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11902 * symfile.c (find_separate_debug_file): Use child_path to
11903 determine if an object file is under a sysroot.
11905 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11908 unittests/child-path-selftests.c.
11909 * common/pathstuff.c (child_path): New function.
11910 * common/pathstuff.h (child_path): New prototype.
11911 * unittests/child-path-selftests.c: New file.
11913 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11915 * symfile.c (find_separate_debug_file): Look for separate debug
11916 files in debug directories under the sysroot.
11918 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11920 * symtab.h (struct minimal_symbol data_p): New const method.
11921 (struct minimal_symbol text_p): Likewise.
11922 * symtab.c (output_source_filename): Use file name style
11923 to print file name.
11924 (print_symbol_info): Likewise.
11925 (print_msymbol_info): Use address style to print addresses.
11926 Use function name style to print executable text symbols.
11927 (expand_symtab_containing_pc): Use data_p.
11928 (find_pc_sect_compunit_symtab): Likewise.
11930 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11932 * breakpoint.c (describe_other_breakpoints): Use address style
11933 to print addresses.
11934 (say_where): Likewise.
11936 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11938 * ada-typeprint.c (print_func_type): Print function name
11939 style to print function name.
11940 * c-typeprint.c (c_print_type_1): Likewise.
11942 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11944 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11947 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11949 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11952 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11954 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11955 TYPE_CODE_REF types.
11957 2019-02-08 Jim Wilson <jimw@sifive.com>
11959 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11960 (riscv_linux_fregset): New.
11961 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11963 2019-02-07 Tom Tromey <tom@tromey.com>
11965 * thread.c (thread_cancel_execution_command): Update.
11966 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11968 (struct thread_fsm_ops): Remove.
11969 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11970 (thread_fsm_should_stop, thread_fsm_return_value)
11971 (thread_fsm_set_finished, thread_fsm_finished_p)
11972 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11974 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11975 * infrun.c (clear_proceed_status_thread)
11976 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11977 (print_stop_event): Update.
11978 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11980 (step_command_fsm_ops): Remove.
11981 (new_step_command_fsm): Remove.
11983 (step_command_fsm::should_stop): Rename from
11984 step_command_fsm_should_stop.
11985 (step_command_fsm::clean_up): Rename from
11986 step_command_fsm_clean_up.
11987 (step_command_fsm::do_async_reply_reason): Rename from
11988 step_command_fsm_async_reply_reason.
11989 (struct until_next_fsm): Inherit from thread_fsm. Add
11991 (until_next_fsm_ops): Remove.
11992 (new_until_next_fsm): Remove.
11993 (until_next_fsm::should_stop): Rename from
11994 until_next_fsm_should_stop.
11995 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
11996 (until_next_fsm::do_async_reply_reason): Rename from
11997 until_next_fsm_async_reply_reason.
11998 (struct finish_command_fsm): Inherit from thread_fsm. Add
11999 constructor. Change type of breakpoint.
12000 (finish_command_fsm_ops): Remove.
12001 (new_finish_command_fsm): Remove.
12002 (finish_command_fsm::should_stop): Rename from
12003 finish_command_fsm_should_stop.
12004 (finish_command_fsm::clean_up): Rename from
12005 finish_command_fsm_clean_up.
12006 (finish_command_fsm::return_value): Rename from
12007 finish_command_fsm_return_value.
12008 (finish_command_fsm::do_async_reply_reason): Rename from
12009 finish_command_fsm_async_reply_reason.
12010 (finish_command): Update.
12011 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12013 (call_thread_fsm_ops): Remove.
12014 (call_thread_fsm::call_thread_fsm): Rename from
12015 new_call_thread_fsm.
12016 (call_thread_fsm::should_stop): Rename from
12017 call_thread_fsm_should_stop.
12018 (call_thread_fsm::should_notify_stop): Rename from
12019 call_thread_fsm_should_notify_stop.
12020 (run_inferior_call, call_function_by_hand_dummy): Update.
12021 * cli/cli-interp.c (should_print_stop_to_console): Update.
12022 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12023 Add constructor. Change type of location_breakpoint,
12025 (until_break_fsm_ops): Remove.
12026 (new_until_break_fsm): Remove.
12027 (until_break_fsm::should_stop): Rename from
12028 until_break_fsm_should_stop.
12029 (until_break_fsm::clean_up): Rename from
12030 until_break_fsm_clean_up.
12031 (until_break_fsm::do_async_reply_reason): Rename from
12032 until_break_fsm_async_reply_reason.
12033 (until_break_command): Update.
12034 * thread-fsm.c: Remove.
12035 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12037 2019-02-07 Tom Tromey <tom@tromey.com>
12039 * yy-remap.h: Add include guard.
12040 * xtensa-tdep.h: Add include guard.
12041 * xcoffread.h: Rename include guard.
12042 * varobj-iter.h: Add include guard.
12043 * tui/tui.h: Rename include guard.
12044 * tui/tui-winsource.h: Rename include guard.
12045 * tui/tui-wingeneral.h: Rename include guard.
12046 * tui/tui-windata.h: Rename include guard.
12047 * tui/tui-win.h: Rename include guard.
12048 * tui/tui-stack.h: Rename include guard.
12049 * tui/tui-source.h: Rename include guard.
12050 * tui/tui-regs.h: Rename include guard.
12051 * tui/tui-out.h: Rename include guard.
12052 * tui/tui-layout.h: Rename include guard.
12053 * tui/tui-io.h: Rename include guard.
12054 * tui/tui-hooks.h: Rename include guard.
12055 * tui/tui-file.h: Rename include guard.
12056 * tui/tui-disasm.h: Rename include guard.
12057 * tui/tui-data.h: Rename include guard.
12058 * tui/tui-command.h: Rename include guard.
12059 * tic6x-tdep.h: Add include guard.
12060 * target/waitstatus.h: Rename include guard.
12061 * target/wait.h: Rename include guard.
12062 * target/target.h: Rename include guard.
12063 * target/resume.h: Rename include guard.
12064 * target-float.h: Rename include guard.
12065 * stabsread.h: Add include guard.
12066 * rs6000-tdep.h: Add include guard.
12067 * riscv-fbsd-tdep.h: Add include guard.
12068 * regformats/regdef.h: Rename include guard.
12069 * record.h: Rename include guard.
12070 * python/python.h: Rename include guard.
12071 * python/python-internal.h: Rename include guard.
12072 * python/py-stopevent.h: Rename include guard.
12073 * python/py-ref.h: Rename include guard.
12074 * python/py-record.h: Rename include guard.
12075 * python/py-record-full.h: Rename include guard.
12076 * python/py-record-btrace.h: Rename include guard.
12077 * python/py-instruction.h: Rename include guard.
12078 * python/py-events.h: Rename include guard.
12079 * python/py-event.h: Rename include guard.
12080 * procfs.h: Add include guard.
12081 * proc-utils.h: Add include guard.
12082 * p-lang.h: Add include guard.
12083 * or1k-tdep.h: Rename include guard.
12084 * observable.h: Rename include guard.
12085 * nto-tdep.h: Rename include guard.
12086 * nat/x86-linux.h: Rename include guard.
12087 * nat/x86-linux-dregs.h: Rename include guard.
12088 * nat/x86-gcc-cpuid.h: Add include guard.
12089 * nat/x86-dregs.h: Rename include guard.
12090 * nat/x86-cpuid.h: Rename include guard.
12091 * nat/ppc-linux.h: Rename include guard.
12092 * nat/mips-linux-watch.h: Rename include guard.
12093 * nat/linux-waitpid.h: Rename include guard.
12094 * nat/linux-ptrace.h: Rename include guard.
12095 * nat/linux-procfs.h: Rename include guard.
12096 * nat/linux-osdata.h: Rename include guard.
12097 * nat/linux-nat.h: Rename include guard.
12098 * nat/linux-namespaces.h: Rename include guard.
12099 * nat/linux-btrace.h: Rename include guard.
12100 * nat/glibc_thread_db.h: Rename include guard.
12101 * nat/gdb_thread_db.h: Rename include guard.
12102 * nat/gdb_ptrace.h: Rename include guard.
12103 * nat/fork-inferior.h: Rename include guard.
12104 * nat/amd64-linux-siginfo.h: Rename include guard.
12105 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12106 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12107 * nat/aarch64-linux.h: Rename include guard.
12108 * nat/aarch64-linux-hw-point.h: Rename include guard.
12109 * mn10300-tdep.h: Add include guard.
12110 * mips-linux-tdep.h: Add include guard.
12111 * mi/mi-parse.h: Rename include guard.
12112 * mi/mi-out.h: Rename include guard.
12113 * mi/mi-main.h: Rename include guard.
12114 * mi/mi-interp.h: Rename include guard.
12115 * mi/mi-getopt.h: Rename include guard.
12116 * mi/mi-console.h: Rename include guard.
12117 * mi/mi-common.h: Rename include guard.
12118 * mi/mi-cmds.h: Rename include guard.
12119 * mi/mi-cmd-break.h: Rename include guard.
12120 * m2-lang.h: Add include guard.
12121 * location.h: Rename include guard.
12122 * linux-record.h: Rename include guard.
12123 * linux-nat.h: Add include guard.
12124 * linux-fork.h: Add include guard.
12125 * i386-darwin-tdep.h: Rename include guard.
12126 * hppa-linux-offsets.h: Add include guard.
12127 * guile/guile.h: Rename include guard.
12128 * guile/guile-internal.h: Rename include guard.
12129 * gnu-nat.h: Rename include guard.
12130 * gdb-stabs.h: Rename include guard.
12131 * frv-tdep.h: Add include guard.
12132 * f-lang.h: Add include guard.
12133 * event-loop.h: Add include guard.
12134 * darwin-nat.h: Rename include guard.
12135 * cp-abi.h: Rename include guard.
12136 * config/sparc/nm-sol2.h: Rename include guard.
12137 * config/nm-nto.h: Rename include guard.
12138 * config/nm-linux.h: Add include guard.
12139 * config/i386/nm-i386gnu.h: Rename include guard.
12140 * config/djgpp/nl_types.h: Rename include guard.
12141 * config/djgpp/langinfo.h: Rename include guard.
12142 * compile/gcc-cp-plugin.h: Add include guard.
12143 * compile/gcc-c-plugin.h: Add include guard.
12144 * compile/compile.h: Rename include guard.
12145 * compile/compile-object-run.h: Rename include guard.
12146 * compile/compile-object-load.h: Rename include guard.
12147 * compile/compile-internal.h: Rename include guard.
12148 * compile/compile-cplus.h: Rename include guard.
12149 * compile/compile-c.h: Rename include guard.
12150 * common/xml-utils.h: Rename include guard.
12151 * common/x86-xstate.h: Rename include guard.
12152 * common/version.h: Rename include guard.
12153 * common/vec.h: Rename include guard.
12154 * common/tdesc.h: Rename include guard.
12155 * common/selftest.h: Rename include guard.
12156 * common/scoped_restore.h: Rename include guard.
12157 * common/scoped_mmap.h: Rename include guard.
12158 * common/scoped_fd.h: Rename include guard.
12159 * common/safe-iterator.h: Rename include guard.
12160 * common/run-time-clock.h: Rename include guard.
12161 * common/refcounted-object.h: Rename include guard.
12162 * common/queue.h: Rename include guard.
12163 * common/ptid.h: Rename include guard.
12164 * common/print-utils.h: Rename include guard.
12165 * common/preprocessor.h: Rename include guard.
12166 * common/pathstuff.h: Rename include guard.
12167 * common/observable.h: Rename include guard.
12168 * common/netstuff.h: Rename include guard.
12169 * common/job-control.h: Rename include guard.
12170 * common/host-defs.h: Rename include guard.
12171 * common/gdb_wait.h: Rename include guard.
12172 * common/gdb_vecs.h: Rename include guard.
12173 * common/gdb_unlinker.h: Rename include guard.
12174 * common/gdb_unique_ptr.h: Rename include guard.
12175 * common/gdb_tilde_expand.h: Rename include guard.
12176 * common/gdb_sys_time.h: Rename include guard.
12177 * common/gdb_string_view.h: Rename include guard.
12178 * common/gdb_splay_tree.h: Rename include guard.
12179 * common/gdb_setjmp.h: Rename include guard.
12180 * common/gdb_ref_ptr.h: Rename include guard.
12181 * common/gdb_optional.h: Rename include guard.
12182 * common/gdb_locale.h: Rename include guard.
12183 * common/gdb_assert.h: Rename include guard.
12184 * common/filtered-iterator.h: Rename include guard.
12185 * common/filestuff.h: Rename include guard.
12186 * common/fileio.h: Rename include guard.
12187 * common/environ.h: Rename include guard.
12188 * common/common-utils.h: Rename include guard.
12189 * common/common-types.h: Rename include guard.
12190 * common/common-regcache.h: Rename include guard.
12191 * common/common-inferior.h: Rename include guard.
12192 * common/common-gdbthread.h: Rename include guard.
12193 * common/common-exceptions.h: Rename include guard.
12194 * common/common-defs.h: Rename include guard.
12195 * common/common-debug.h: Rename include guard.
12196 * common/cleanups.h: Rename include guard.
12197 * common/buffer.h: Rename include guard.
12198 * common/btrace-common.h: Rename include guard.
12199 * common/break-common.h: Rename include guard.
12200 * cli/cli-utils.h: Rename include guard.
12201 * cli/cli-style.h: Rename include guard.
12202 * cli/cli-setshow.h: Rename include guard.
12203 * cli/cli-script.h: Rename include guard.
12204 * cli/cli-interp.h: Rename include guard.
12205 * cli/cli-decode.h: Rename include guard.
12206 * cli/cli-cmds.h: Rename include guard.
12207 * charset-list.h: Add include guard.
12208 * buildsym-legacy.h: Rename include guard.
12209 * bfin-tdep.h: Add include guard.
12210 * ax.h: Rename include guard.
12211 * arm-linux-tdep.h: Add include guard.
12212 * arm-fbsd-tdep.h: Add include guard.
12213 * arch/xtensa.h: Rename include guard.
12214 * arch/tic6x.h: Add include guard.
12215 * arch/i386.h: Add include guard.
12216 * arch/arm.h: Rename include guard.
12217 * arch/arm-linux.h: Rename include guard.
12218 * arch/arm-get-next-pcs.h: Rename include guard.
12219 * arch/amd64.h: Add include guard.
12220 * arch/aarch64-insn.h: Rename include guard.
12221 * arch-utils.h: Rename include guard.
12222 * annotate.h: Add include guard.
12223 * amd64-darwin-tdep.h: Rename include guard.
12224 * aarch64-linux-tdep.h: Add include guard.
12225 * aarch64-fbsd-tdep.h: Add include guard.
12226 * aarch32-linux-nat.h: Add include guard.
12228 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12230 * macrotab.c (macro_define_internal): New function that
12231 factorizes macro_define_object_internal and macro_define_function
12233 (macro_define_object_internal): Use macro_define_internal.
12234 (macro_define_function): Likewise.
12236 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12238 * macrocmd.c (extract_identifier): Return
12239 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12242 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12244 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12246 2019-02-05 Tom Tromey <tom@tromey.com>
12248 * target.c (target_stack::unpush): Move assertion earlier.
12250 2019-01-30 Tom Tromey <tom@tromey.com>
12253 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12254 (gdbpy_parse_and_eval): Likewise.
12255 * python/python-internal.h (gdbpy_allow_threads): New class.
12257 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12259 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12260 (aarch64_fbsd_fpregmap): Move earlier.
12261 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12262 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12263 instead of individual calls to trad_frame_set_reg_addr.
12264 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12266 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12267 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12268 instead of individual calls to trad_frame_set_reg_addr.
12270 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12272 * CONTRIBUTE: Replace contribution list with wiki link.
12274 2019-01-25 Tom Tromey <tom@tromey.com>
12276 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12278 2019-01-25 Tom Tromey <tom@tromey.com>
12280 * xtensa-linux-nat.c: Fix common/ includes.
12281 * xml-support.h: Fix common/ includes.
12282 * xml-support.c: Fix common/ includes.
12283 * x86-linux-nat.c: Fix common/ includes.
12284 * windows-nat.c: Fix common/ includes.
12285 * varobj.h: Fix common/ includes.
12286 * varobj.c: Fix common/ includes.
12287 * value.c: Fix common/ includes.
12288 * valops.c: Fix common/ includes.
12289 * utils.c: Fix common/ includes.
12290 * unittests/xml-utils-selftests.c: Fix common/ includes.
12291 * unittests/utils-selftests.c: Fix common/ includes.
12292 * unittests/unpack-selftests.c: Fix common/ includes.
12293 * unittests/tracepoint-selftests.c: Fix common/ includes.
12294 * unittests/style-selftests.c: Fix common/ includes.
12295 * unittests/string_view-selftests.c: Fix common/ includes.
12296 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12297 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12298 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12299 * unittests/rsp-low-selftests.c: Fix common/ includes.
12300 * unittests/parse-connection-spec-selftests.c: Fix common/
12302 * unittests/optional-selftests.c: Fix common/ includes.
12303 * unittests/offset-type-selftests.c: Fix common/ includes.
12304 * unittests/observable-selftests.c: Fix common/ includes.
12305 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12306 * unittests/memrange-selftests.c: Fix common/ includes.
12307 * unittests/memory-map-selftests.c: Fix common/ includes.
12308 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12309 * unittests/function-view-selftests.c: Fix common/ includes.
12310 * unittests/environ-selftests.c: Fix common/ includes.
12311 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12312 * unittests/common-utils-selftests.c: Fix common/ includes.
12313 * unittests/cli-utils-selftests.c: Fix common/ includes.
12314 * unittests/array-view-selftests.c: Fix common/ includes.
12315 * ui-file.c: Fix common/ includes.
12316 * tui/tui-io.c: Fix common/ includes.
12317 * tracepoint.h: Fix common/ includes.
12318 * tracepoint.c: Fix common/ includes.
12319 * tracefile-tfile.c: Fix common/ includes.
12320 * top.h: Fix common/ includes.
12321 * top.c: Fix common/ includes.
12322 * thread.c: Fix common/ includes.
12323 * target/waitstatus.h: Fix common/ includes.
12324 * target/waitstatus.c: Fix common/ includes.
12325 * target.h: Fix common/ includes.
12326 * target.c: Fix common/ includes.
12327 * target-memory.c: Fix common/ includes.
12328 * target-descriptions.c: Fix common/ includes.
12329 * symtab.h: Fix common/ includes.
12330 * symfile.c: Fix common/ includes.
12331 * stap-probe.c: Fix common/ includes.
12332 * spu-linux-nat.c: Fix common/ includes.
12333 * sparc-nat.c: Fix common/ includes.
12334 * source.c: Fix common/ includes.
12335 * solib.c: Fix common/ includes.
12336 * solib-target.c: Fix common/ includes.
12337 * ser-unix.c: Fix common/ includes.
12338 * ser-tcp.c: Fix common/ includes.
12339 * ser-pipe.c: Fix common/ includes.
12340 * ser-base.c: Fix common/ includes.
12341 * selftest-arch.c: Fix common/ includes.
12342 * s12z-tdep.c: Fix common/ includes.
12343 * rust-exp.y: Fix common/ includes.
12344 * rs6000-aix-tdep.c: Fix common/ includes.
12345 * riscv-tdep.c: Fix common/ includes.
12346 * remote.c: Fix common/ includes.
12347 * remote-notif.h: Fix common/ includes.
12348 * remote-fileio.h: Fix common/ includes.
12349 * remote-fileio.c: Fix common/ includes.
12350 * regcache.h: Fix common/ includes.
12351 * regcache.c: Fix common/ includes.
12352 * record-btrace.c: Fix common/ includes.
12353 * python/python.c: Fix common/ includes.
12354 * python/py-type.c: Fix common/ includes.
12355 * python/py-inferior.c: Fix common/ includes.
12356 * progspace.h: Fix common/ includes.
12357 * producer.c: Fix common/ includes.
12358 * procfs.c: Fix common/ includes.
12359 * proc-api.c: Fix common/ includes.
12360 * printcmd.c: Fix common/ includes.
12361 * ppc-linux-nat.c: Fix common/ includes.
12362 * parser-defs.h: Fix common/ includes.
12363 * osdata.c: Fix common/ includes.
12364 * obsd-nat.c: Fix common/ includes.
12365 * nat/x86-linux.c: Fix common/ includes.
12366 * nat/x86-linux-dregs.c: Fix common/ includes.
12367 * nat/x86-dregs.h: Fix common/ includes.
12368 * nat/x86-dregs.c: Fix common/ includes.
12369 * nat/ppc-linux.c: Fix common/ includes.
12370 * nat/mips-linux-watch.h: Fix common/ includes.
12371 * nat/mips-linux-watch.c: Fix common/ includes.
12372 * nat/linux-waitpid.c: Fix common/ includes.
12373 * nat/linux-ptrace.h: Fix common/ includes.
12374 * nat/linux-ptrace.c: Fix common/ includes.
12375 * nat/linux-procfs.c: Fix common/ includes.
12376 * nat/linux-personality.c: Fix common/ includes.
12377 * nat/linux-osdata.c: Fix common/ includes.
12378 * nat/linux-namespaces.c: Fix common/ includes.
12379 * nat/linux-btrace.h: Fix common/ includes.
12380 * nat/linux-btrace.c: Fix common/ includes.
12381 * nat/fork-inferior.c: Fix common/ includes.
12382 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12383 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12384 * nat/aarch64-linux.c: Fix common/ includes.
12385 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12386 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12387 * namespace.h: Fix common/ includes.
12388 * mips-linux-tdep.c: Fix common/ includes.
12389 * minsyms.c: Fix common/ includes.
12390 * mi/mi-parse.h: Fix common/ includes.
12391 * mi/mi-main.c: Fix common/ includes.
12392 * mi/mi-cmd-env.c: Fix common/ includes.
12393 * memrange.h: Fix common/ includes.
12394 * memattr.c: Fix common/ includes.
12395 * maint.h: Fix common/ includes.
12396 * maint.c: Fix common/ includes.
12397 * main.c: Fix common/ includes.
12398 * machoread.c: Fix common/ includes.
12399 * location.c: Fix common/ includes.
12400 * linux-thread-db.c: Fix common/ includes.
12401 * linux-nat.c: Fix common/ includes.
12402 * linux-fork.c: Fix common/ includes.
12403 * inline-frame.c: Fix common/ includes.
12404 * infrun.c: Fix common/ includes.
12405 * inflow.c: Fix common/ includes.
12406 * inferior.h: Fix common/ includes.
12407 * inferior.c: Fix common/ includes.
12408 * infcmd.c: Fix common/ includes.
12409 * inf-ptrace.c: Fix common/ includes.
12410 * inf-child.c: Fix common/ includes.
12411 * ia64-linux-nat.c: Fix common/ includes.
12412 * i387-tdep.c: Fix common/ includes.
12413 * i386-tdep.c: Fix common/ includes.
12414 * i386-linux-tdep.c: Fix common/ includes.
12415 * i386-linux-nat.c: Fix common/ includes.
12416 * i386-go32-tdep.c: Fix common/ includes.
12417 * i386-fbsd-tdep.c: Fix common/ includes.
12418 * i386-fbsd-nat.c: Fix common/ includes.
12419 * guile/scm-type.c: Fix common/ includes.
12420 * guile/guile.c: Fix common/ includes.
12421 * go32-nat.c: Fix common/ includes.
12422 * gnu-nat.c: Fix common/ includes.
12423 * gdbthread.h: Fix common/ includes.
12424 * gdbarch-selftests.c: Fix common/ includes.
12425 * gdb_usleep.c: Fix common/ includes.
12426 * gdb_select.h: Fix common/ includes.
12427 * gdb_bfd.c: Fix common/ includes.
12428 * gcore.c: Fix common/ includes.
12429 * fork-child.c: Fix common/ includes.
12430 * findvar.c: Fix common/ includes.
12431 * fbsd-nat.c: Fix common/ includes.
12432 * event-top.c: Fix common/ includes.
12433 * event-loop.c: Fix common/ includes.
12434 * dwarf2read.c: Fix common/ includes.
12435 * dwarf2loc.c: Fix common/ includes.
12436 * dwarf2-frame.c: Fix common/ includes.
12437 * dwarf-index-cache.c: Fix common/ includes.
12438 * dtrace-probe.c: Fix common/ includes.
12439 * disasm-selftests.c: Fix common/ includes.
12440 * defs.h: Fix common/ includes.
12441 * csky-tdep.c: Fix common/ includes.
12442 * cp-valprint.c: Fix common/ includes.
12443 * cp-support.h: Fix common/ includes.
12444 * cp-support.c: Fix common/ includes.
12445 * corelow.c: Fix common/ includes.
12446 * completer.h: Fix common/ includes.
12447 * completer.c: Fix common/ includes.
12448 * compile/compile.c: Fix common/ includes.
12449 * compile/compile-loc2c.c: Fix common/ includes.
12450 * compile/compile-cplus-types.c: Fix common/ includes.
12451 * compile/compile-cplus-symbols.c: Fix common/ includes.
12452 * command.h: Fix common/ includes.
12453 * cli/cli-dump.c: Fix common/ includes.
12454 * cli/cli-cmds.c: Fix common/ includes.
12455 * charset.c: Fix common/ includes.
12456 * build-id.c: Fix common/ includes.
12457 * btrace.h: Fix common/ includes.
12458 * btrace.c: Fix common/ includes.
12459 * breakpoint.h: Fix common/ includes.
12460 * breakpoint.c: Fix common/ includes.
12462 (enum agent_op): Fix common/ includes.
12463 * ax-general.c (struct aop_map): Fix common/ includes.
12464 * ax-gdb.c: Fix common/ includes.
12465 * auxv.c: Fix common/ includes.
12466 * auto-load.c: Fix common/ includes.
12467 * arm-tdep.c: Fix common/ includes.
12468 * arch/riscv.c: Fix common/ includes.
12469 * arch/ppc-linux-common.c: Fix common/ includes.
12470 * arch/i386.c: Fix common/ includes.
12471 * arch/arm.c: Fix common/ includes.
12472 * arch/arm-linux.c: Fix common/ includes.
12473 * arch/arm-get-next-pcs.c: Fix common/ includes.
12474 * arch/amd64.c: Fix common/ includes.
12475 * arch/aarch64.c: Fix common/ includes.
12476 * arch/aarch64-insn.c: Fix common/ includes.
12477 * arch-utils.c: Fix common/ includes.
12478 * amd64-windows-tdep.c: Fix common/ includes.
12479 * amd64-tdep.c: Fix common/ includes.
12480 * amd64-sol2-tdep.c: Fix common/ includes.
12481 * amd64-obsd-tdep.c: Fix common/ includes.
12482 * amd64-nbsd-tdep.c: Fix common/ includes.
12483 * amd64-linux-tdep.c: Fix common/ includes.
12484 * amd64-linux-nat.c: Fix common/ includes.
12485 * amd64-fbsd-tdep.c: Fix common/ includes.
12486 * amd64-fbsd-nat.c: Fix common/ includes.
12487 * amd64-dicos-tdep.c: Fix common/ includes.
12488 * amd64-darwin-tdep.c: Fix common/ includes.
12489 * agent.c: Fix common/ includes.
12490 * ada-lang.h: Fix common/ includes.
12491 * ada-lang.c: Fix common/ includes.
12492 * aarch64-tdep.c: Fix common/ includes.
12494 2019-01-25 Tom Tromey <tom@tromey.com>
12496 * common/create-version.sh: Use common/version.h.
12498 2019-01-24 Pedro Alves <palves@redhat.com>
12500 * infrun.c (signal_stop, signal_print, signal_program)
12501 (signal_catch, signal_pass): Now arrays instead of pointers.
12502 (update_signals_program_target, do_target_resume)
12503 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12504 * linux-nat.c (linux_nat_target::pass_signals)
12505 (linux_nat_target::create_inferior, linux_nat_target::attach):
12507 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12508 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12509 * procfs.c (procfs_target::pass_signals): Adjust.
12510 * record-full.c (record_full_target::resume): Adjust.
12511 * remote.c (remote_target::pass_signals)
12512 (remote_target::program_signals): Adjust.
12513 * target-debug.h (target_debug_print_signals): Now takes a
12514 gdb::array_view as parameter. Adjust.
12515 * target.h (target_ops) <pass_signals, program_signals>: Replace
12516 pointer and length parameters with gdb::array_view.
12517 (target_pass_signals, target_program_signals): Likewise.
12518 * target-delegates.c: Regenerate.
12520 2019-01-24 Pedro Alves <palves@redhat.com>
12522 * common/forward-scope-exit.h
12523 (forward_scope_exit::forward_scope_exit): Pass arguments to
12524 m_bind_function directly, instead of creating a std::bind and
12527 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12529 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12530 for static members.
12531 (pass_in_v_vfp_candidate): Likewise.
12533 2019-01-23 Tom Tromey <tom@tromey.com>
12534 Pedro Alves <palves@redhat.com>
12536 * regcache.c (class regcache_invalidator): Remove.
12537 (regcache::raw_write): Use make_scope_exit.
12539 2019-01-23 Tom Tromey <tom@tromey.com>
12541 * ui-out.h (class ui_out_emit_type): Update comment.
12543 2019-01-23 Tom Tromey <tom@tromey.com>
12545 * infrun.c (fetch_inferior_event): Update comment.
12547 2019-01-23 Tom Tromey <tom@tromey.com>
12548 Pedro Alves <palves@redhat.com>
12550 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12552 (fetch_inferior_event): Use SCOPE_EXIT.
12555 2019-01-23 Tom Tromey <tom@tromey.com>
12556 Pedro Alves <palves@redhat.com>
12558 * infrun.c (disable_thread_events): Delete.
12559 (stop_all_threads): Use SCOPE_EXIT.
12561 2019-01-23 Tom Tromey <tom@tromey.com>
12562 Pedro Alves <palves@redhat.com>
12564 * symfile.c: Include forward-scope-exit.h.
12565 (clear_symtab_users_cleanup): Replace forward declaration with
12566 a FORWARD_SCOPE_EXIT.
12567 (syms_from_objfile_1): Use the forward_scope_exit and
12568 gdb::optional instead of cleanup_function.
12569 (reread_symbols): Use the forward_scope_exit instead of
12571 (clear_symtab_users_cleanup): Remove function.
12573 2019-01-23 Tom Tromey <tom@tromey.com>
12574 Pedro Alves <palves@redhat.com>
12576 * linux-nat.c: Include scope-exit.h.
12577 (cleanup_target_stop): Remove.
12578 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12581 2019-01-23 Tom Tromey <tom@tromey.com>
12582 Pedro Alves <palves@redhat.com>
12584 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12585 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12587 2019-01-23 Tom Tromey <tom@tromey.com>
12588 Andrew Burgess <andrew.burgess@embecosm.com>
12589 Pedro Alves <palves@redhat.com>
12591 * infrun.c (fetch_inferior_event): Use scope_exit.
12592 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12593 * top.c (execute_command): Use scope_exit.
12594 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12595 * utils.c (do_bpstat_clear_actions_cleanup)
12596 (make_bpstat_clear_actions_cleanup): Remove.
12598 2019-01-23 Tom Tromey <tom@tromey.com>
12599 Pedro Alves <palves@redhat.com>
12601 * infrun.c: Include "common/scope-exit.h"
12602 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12603 (wait_for_inferior): Use SCOPE_EXIT.
12604 (fetch_inferior_event): Use scope_exit.
12606 2019-01-23 Tom Tromey <tom@tromey.com>
12607 Pedro Alves <palves@redhat.com>
12609 * breakpoint.c (create_breakpoint): Remove cleanup.
12611 2019-01-23 Tom Tromey <tom@tromey.com>
12612 Andrew Burgess <andrew.burgess@embecosm.com>
12613 Pedro Alves <palves@redhat.com>
12615 2019-01-23 Pedro Alves <palves@redhat.com>
12617 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12619 2019-01-23 Pedro Alves <palves@redhat.com>
12620 Andrew Burgess <andrew.burgess@embecosm.com>
12622 * gdbthread.h: Include "common/forward-scope-exit.h".
12623 (scoped_finish_thread_state): Redefine custom class in terms of
12624 forward_scope_exit.
12626 2019-01-23 Pedro Alves <palves@redhat.com>
12627 Andrew Burgess <andrew.burgess@embecosm.com>
12629 * common/forward-scope-exit.h: New file.
12631 2019-01-23 Pedro Alves <palves@redhat.com>
12632 Andrew Burgess <andrew.burgess@embecosm.com>
12633 Tom Tromey <tom@tromey.com>
12635 * common/scope-exit.h: New file.
12637 2019-01-23 Pedro Alves <palves@redhat.com>
12639 * common/preprocessor.h (ESC): Rename to ...
12640 (ESC_PARENS): ... this.
12641 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12642 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12644 2019-01-23 Tom Tromey <tom@tromey.com>
12646 * language.h (class scoped_switch_to_sym_language_if_auto):
12647 Initialize m_lang in both cases.
12649 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12651 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12654 2019-01-22 Tom Tromey <tom@tromey.com>
12656 * corelow.c: Do not include sys/file.h.
12658 2019-01-22 Tom Tromey <tom@tromey.com>
12660 * tui/tui-wingeneral.h: Include gdb_curses.h.
12662 2019-01-22 Tom Tromey <tom@tromey.com>
12664 * source-cache.h (class source_cache) <get_source_lines,
12665 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12667 2019-01-22 Tom Tromey <tom@tromey.com>
12669 * remote-fileio.h (struct remote_target): Declare.
12671 2019-01-22 Tom Tromey <tom@tromey.com>
12673 * python/py-arch.c: Do not include py-ref.h.
12674 * python/py-bpevent.c: Do not include py-ref.h.
12675 * python/py-cmd.c: Do not include py-ref.h.
12676 * python/py-continueevent.c: Do not include py-ref.h.
12677 * python/py-event.h: Do not include py-ref.h.
12678 * python/py-evtregistry.c: Do not include py-ref.h.
12679 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12680 * python/py-frame.c: Do not include py-ref.h.
12681 * python/py-framefilter.c: Do not include py-ref.h.
12682 * python/py-function.c: Do not include py-ref.h.
12683 * python/py-infevents.c: Do not include py-ref.h.
12684 * python/py-linetable.c: Do not include py-ref.h.
12685 * python/py-objfile.c: Do not include py-ref.h.
12686 * python/py-param.c: Do not include py-ref.h.
12687 * python/py-prettyprint.c: Do not include py-ref.h.
12688 * python/py-progspace.c: Do not include py-ref.h.
12689 * python/py-symbol.c: Do not include py-ref.h.
12690 * python/py-symtab.c: Do not include py-ref.h.
12691 * python/py-type.c: Do not include py-ref.h.
12692 * python/py-unwind.c: Do not include py-ref.h.
12693 * python/py-utils.c: Do not include py-ref.h.
12694 * python/py-value.c: Do not include py-ref.h.
12695 * python/py-varobj.c: Do not include py-ref.h.
12696 * python/py-xmethods.c: Do not include py-ref.h.
12697 * python/python.c: Do not include py-ref.h.
12698 * varobj.c: Do not include py-ref.h.
12700 2019-01-22 Tom Tromey <tom@tromey.com>
12702 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12703 keyword for bcache.
12705 2019-01-22 Tom Tromey <tom@tromey.com>
12707 * compile/compile-cplus-types.c: Remove a comment by #include.
12709 2019-01-22 Tom Tromey <tom@tromey.com>
12711 * compile/gcc-c-plugin.h: Include compile-internal.h.
12713 2019-01-22 Tom Tromey <tom@tromey.com>
12715 * stabsread.c (EXTERN): Do not define.
12716 (symnum, next_symbol_text_func, processing_gcc_compilation)
12717 (within_function, global_sym_chain, global_stabs)
12718 (previous_stab_code, this_object_header_files)
12719 (n_this_object_header_files)
12720 (n_allocated_this_object_header_files): Define.
12721 * stabsread.h (EXTERN): Never define. Use "extern".
12723 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12725 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12728 2019-01-21 Tom Tromey <tom@tromey.com>
12730 * ui-out.c: Fix includes.
12731 * tui/tui-source.c: Fix includes.
12732 * target.c: Fix includes.
12733 * remote.c: Fix includes.
12734 * regcache.c: Fix includes.
12735 * python/py-block.c: Fix includes.
12736 * printcmd.c: Fix includes.
12737 * or1k-tdep.c: Fix includes.
12738 * mi/mi-main.c: Fix includes.
12739 * m32r-tdep.c: Fix includes.
12740 * csky-tdep.c: Fix includes.
12741 * compile/compile-cplus-types.c: Fix includes.
12742 * cli/cli-interp.c: Fix includes.
12744 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12746 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12749 2019-01-16 Tom Tromey <tom@tromey.com>
12751 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12753 (struct objfile) <msymbols_range>: Move from top level.
12754 <msymbols>: New method.
12755 (class objfile_msymbols): Remove.
12756 * symtab.c (default_collect_symbol_completion_matches_break_on):
12758 * symmisc.c (dump_msymbols): Update.
12759 * stabsread.c (scan_file_globals): Update.
12760 * objc-lang.c (info_selectors_command, info_classes_command)
12761 (find_methods): Update.
12762 * minsyms.c (find_solib_trampoline_target): Update.
12763 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12764 * coffread.c (coff_symfile_read): Update.
12765 * ada-lang.c (ada_lookup_simple_minsym)
12766 (ada_collect_symbol_completion_matches): Update.
12768 2019-01-16 Tom Tromey <tom@tromey.com>
12770 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12771 type. Remove no-argument constructor.
12772 <iterator::operator++>: Simplify.
12774 <end>: Use minimal_symbol_count.
12776 2019-01-16 Tom Tromey <tom@tromey.com>
12778 * objfiles.h (struct objfile) <psymtabs>: New method.
12779 (class objfile_psymtabs): Remove.
12780 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12782 <range>: New method.
12783 (require_partial_symbols): Change return type.
12784 * psymtab.c (require_partial_symbols)
12785 (psym_expand_symtabs_matching): Update.
12786 * mdebugread.c (parse_partial_symbols): Update.
12787 * dbxread.c (dbx_end_psymtab): Update.
12789 2019-01-15 Tom Tromey <tom@tromey.com>
12791 * symtab.c (lookup_objfile_from_block)
12792 (lookup_symbol_in_objfile_symtabs)
12793 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12794 (find_line_symtab, info_sources_command)
12795 (default_collect_symbol_completion_matches_break_on)
12796 (make_source_files_completion_list): Update.
12797 * symmisc.c (print_objfile_statistics, dump_objfile)
12798 (maintenance_print_symbols, maintenance_info_symtabs)
12799 (maintenance_check_symtabs, maintenance_info_line_tables):
12801 * source.c (select_source_symtab)
12802 (forget_cached_source_info_for_objfile): Update.
12803 * objfiles.h (class objfile_compunits): Remove.
12804 (struct objfile) <compunits_range>: New typedef.
12805 (compunits): New method.
12806 * objfiles.c (objfile_relocate1): Update.
12807 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12808 * maint.c (count_symtabs_and_blocks): Update.
12809 * linespec.c (iterate_over_all_matching_symtabs): Update.
12810 * cp-support.c (add_symbol_overload_list_qualified): Update.
12811 * coffread.c (coff_symtab_read): Update.
12812 * ada-lang.c (add_nonlocal_symbols)
12813 (ada_collect_symbol_completion_matches)
12814 (ada_add_global_exceptions): Update.
12816 2019-01-15 Tom Tromey <tom@tromey.com>
12818 * progspace.h (program_space) <objfiles_safe_range>: New
12820 <objfiles_safe>: New method.
12821 * objfiles.h (class all_objfiles_safe): Remove.
12822 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12823 * jit.c (jit_inferior_exit_hook): Update.
12825 2019-01-17 Tom Tromey <tom@tromey.com>
12827 * progspace.h (program_space) <objfiles_range>: New typedef.
12828 <objfiles>: New method.
12829 <objfiles_head>: Rename from objfiles.
12830 (object_files): Update.
12831 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12832 * guile/scm-pretty-print.c
12833 (ppscm_find_pretty_printer_from_objfiles): Update.
12834 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12835 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12837 * python/py-progspace.c (pspy_get_objfiles): Update.
12838 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12840 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12841 (objfpy_lookup_objfile_by_build_id): Update.
12842 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12843 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12845 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12846 (expand_symtab_containing_pc, lookup_objfile_from_block)
12847 (lookup_static_symbol, basic_lookup_transparent_type)
12848 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12849 (find_line_symtab, info_sources_command)
12850 (default_collect_symbol_completion_matches_break_on)
12851 (make_source_files_completion_list, find_main_name): Update.
12852 * symmisc.c (print_symbol_bcache_statistics)
12853 (print_objfile_statistics, maintenance_print_symbols)
12854 (maintenance_print_msymbols, maintenance_print_objfiles)
12855 (maintenance_info_symtabs, maintenance_check_symtabs)
12856 (maintenance_expand_symtabs, maintenance_info_line_tables):
12858 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12859 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12860 (map_overlay_command, unmap_overlay_command)
12861 (simple_overlay_update, expand_symtabs_matching)
12862 (map_symbol_filenames): Update.
12863 * symfile-debug.c (set_debug_symfile): Update.
12864 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12866 * source.c (select_source_symtab, forget_cached_source_info):
12868 * solib.c (solib_read_symbols): Update.
12869 * solib-spu.c (append_ocl_sos): Update.
12870 * psymtab.c (maintenance_print_psymbols)
12871 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12872 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12873 * printcmd.c (info_symbol_command): Update.
12874 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12876 * objfiles.h (class all_objfiles): Remove.
12877 * objfiles.c (have_partial_symbols, have_full_symbols)
12878 (have_minimal_symbols, qsort_cmp, update_section_map)
12879 (shared_objfile_contains_address_p)
12880 (default_iterate_over_objfiles_in_search_order): Update.
12881 * objc-lang.c (info_selectors_command, info_classes_command)
12882 (find_methods): Update.
12883 * minsyms.c (find_solib_trampoline_target): Update.
12884 * maint.c (maintenance_info_sections)
12885 (maintenance_translate_address, count_symtabs_and_blocks):
12887 * main.c (captured_main_1): Update.
12888 * linux-thread-db.c (try_thread_db_load_from_pdir)
12889 (has_libpthread): Update.
12890 * linespec.c (iterate_over_all_matching_symtabs)
12891 (search_minsyms_for_name): Update.
12892 * jit.c (jit_find_objf_with_entry_addr): Update.
12893 * hppa-tdep.c (find_unwind_entry)
12894 (hppa_lookup_stub_minimal_symbol): Update.
12895 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12897 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12898 (elf_gnu_ifunc_resolve_by_got): Update.
12899 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12900 * dwarf-index-write.c (save_gdb_index_command): Update.
12901 * cp-support.c (add_symbol_overload_list_qualified): Update.
12902 * breakpoint.c (create_overlay_event_breakpoint)
12903 (create_longjmp_master_breakpoint)
12904 (create_std_terminate_master_breakpoint)
12905 (create_exception_master_breakpoint): Update.
12906 * blockframe.c (find_pc_partial_function): Update.
12907 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12908 (ada_collect_symbol_completion_matches)
12909 (ada_add_global_exceptions): Update.
12911 2019-01-17 Tom Tromey <tom@tromey.com>
12913 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12915 (solib_target_parse_libraries): Change return type.
12916 (library_list_start_segment, library_list_start_section)
12917 (library_list_end_library, library_list_start_library); Update.
12918 (solib_target_free_library_list): Remove.
12919 (solib_target_parse_libraries): Remove cleanup. Change return
12921 (solib_target_current_sos): Update.
12923 2019-01-17 Tom Tromey <tromey@bapiya>
12925 * valprint.c: Replace "the the" with "the".
12926 * symtab.c: Replace "the the" with "the".
12927 * solib.c: Replace "the the" with "the".
12928 * solib-dsbt.c: Replace "the the" with "the".
12929 * linespec.c: Replace "the the" with "the".
12930 * dwarf2loc.h: Replace "the the" with "the".
12931 * amd64-windows-tdep.c: Replace "the the" with "the".
12932 * aarch64-tdep.c: Replace "the the" with "the".
12934 2019-01-16 Keith Seitz <keiths@redhat.com>
12937 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12938 <builder>: Rename to ..
12939 <m_builder>: ... this and make private.
12940 (dwarf2_cu::get_builder): New method. Change all users of
12941 `builder' to use this method.
12942 (dwarf2_start_symtab): Move to ...
12943 (dwarf2_cu::start_symtab): ... here. Update all callers
12944 (setup_type_unit_groups): Move to ...
12945 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12947 (dwarf2_cu::reset_builder): New method.
12948 (process_full_compunit, process_full_type_unit): Use
12949 dwarf2_cu::reset_builder.
12950 (follow_die_offset): Record the ancestor CU if it is different
12951 from the followed DIE's CU.
12952 (follow_die_sig_1): Likewise.
12954 2019-01-15 Tom Tromey <tom@tromey.com>
12956 * remote.c (class remote_state) <buf>: Now a char_vector.
12957 <buf_size>: Remove.
12958 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12960 (remote_target::getpkt_or_notif_sane_1)
12961 (remote_target::getpkt_sane)
12962 (remote_target::getpkt_or_notif_sane): Likewise.
12963 (class remote_target) <putpkt>: New overload.
12964 (remote_target::read_frame): Change type of "buf_p". Remove
12965 sizeof_p parameter.
12966 (packet_ok): New overload.
12967 (packet_check_result): New overload.
12970 2019-01-14 Tom Tromey <tom@tromey.com>
12972 * remote-notif.c (handle_notification, remote_notif_ack)
12973 (remote_notif_parse): Make "buf" const.
12974 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12976 (remote_notif_parse, remote_notif_ack, handle_notification):
12978 * remote.c (remote_notif_stop_parse): Make "buf" const.
12979 (remote_target::remote_parse_stop_reply): Make "buf" const.
12980 (remote_notif_stop_ack): Make "buf" const.
12982 2019-01-14 Tom Tromey <tom@tromey.com>
12984 * remote.c (remote_console_output): Make parameter const.
12986 2019-01-14 Tom Tromey <tom@tromey.com>
12988 * target-debug.h (target_debug_print_signals): Constify.
12989 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
12990 * procfs.c (procfs_target::pass_signals): Update.
12991 * linux-nat.c (linux_nat_target::pass_signals): Update.
12992 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
12993 * target-delegates.c: Rebuild.
12994 * remote.c (remote_target::program_signals): Update.
12995 (remote_target::pass_signals): Update.
12996 * target.c (target_pass_signals): Constify argument.
12997 (target_program_signals): Likewise.
12998 * target.h (struct target_ops) <pass_signals, program_signals>:
13000 (target_pass_signals, target_program_signals): Constify argument.
13002 2019-01-14 Tom Tromey <tom@tromey.com>
13005 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13007 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13009 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13011 * rs6000-tdep.c: Include reggroups.h.
13012 (IS_V_ALIAS_PSEUDOREG): Define.
13013 (rs6000_register_name): Return names for the "vX" aliases.
13014 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13015 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13016 aliases. Call default_register_reggroup_p for all other
13018 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13020 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13021 Handle "vX" aliases.
13022 (v_alias_pseudo_register_collect): New function.
13023 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13024 (rs6000_gdbarch_init): Initialize "vX" aliases as
13025 pseudo-registers. Restore registration of
13026 rs6000_pseudo_register_reggroup_p with
13027 set_tdesc_pseudo_register_reggroup_p.
13029 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13031 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13032 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13033 set_gdbarch_num_pseudo_regs.
13035 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13037 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13038 Remove arg prefixname, add do_set and do_show.
13039 Add member functions set_list and show_list.
13040 * cli/cli-style.c (class cli_style_option): Update accordingly.
13041 (style_set_list): Move to file scope.
13042 (style_show_list): Likewise.
13043 (set_style): Call help_list.
13044 (show_style): Call cmd_show_list.
13045 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13046 Update to use the new macro.
13048 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13050 * ada-lang.c (_initialize_ada_language): Expand the help text
13051 for the "catch exception" command.
13053 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13055 * symtab.c (matching_obj_sections): Initialize obj,
13056 declare it closer to its usage.
13058 2019-01-10 Tom Tromey <tom@tromey.com>
13060 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13061 (basic_inf_threads_range): Remove.
13062 (inf_threads_range, inf_non_exited_threads_range)
13063 (safe_inf_threads_range): Use next_adapter.
13065 2019-01-10 Keith Seitz <keiths@redhat.com>
13069 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13070 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13072 2019-01-10 Keith Seitz <keiths@redhat.com>
13076 * dictionary.c (pending_to_vector): Remove.
13077 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13078 Remove _1 suffix, replacing functions of the same name. Update
13080 (dict_create_hashed, dict_create_hashed_expandable)
13081 (dict_create_linear, dict_create_linear_expandable, dict_free)
13082 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13083 Make functions static.
13085 2019-01-10 Keith Seitz <keiths@redhat.com>
13089 * dictionary.h (struct dictionary): Replace declaration with
13091 (dict_create_hashed, dict_create_hashed_expandable)
13092 (dict_create_linear, dict_create_linear_expandable)
13093 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13094 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13095 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13096 taking multidictionary argument.
13097 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13098 * block.h (struct block) <dict>: Change to multidictionary
13099 and rename `multidict'.
13100 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13101 symmisc.c: Update all dictionary references to multidictionary.
13103 2019-01-10 Keith Seitz <keiths@redhat.com>
13107 * dictionary.c: Include unordered_map.
13108 (pending_to_vector): New function.
13109 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13110 Rewrite the non-"_1" functions to take vector instead
13112 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13113 "new" _1 versions of the same name.
13114 (multidictionary): Define.
13115 (std::hash<enum language): New definition.
13116 (collate_pending_symbols_by_language, mdict_create_hashed)
13117 (mdict_create_hashed_expandable, mdict_create_linear)
13118 (mdict_create_linear_expandable, mdict_free)
13119 (find_language_dictionary, create_new_language_dictionary)
13120 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13121 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13122 (mdict_size, mdict_empty): New functions.
13123 * dictionary.h (mdict_iterator): Define.
13125 2019-01-10 Pedro Alves <palves@redhat.com>
13127 * breakpoint.c (read_uploaded_action)
13128 (create_tracepoint_from_upload): Adjust to use
13129 gdb::unique_xmalloc_ptr.
13130 * ctf.c (ctf_write_uploaded_tp):
13131 (SET_ARRAY_FIELD): Use emplace_back.
13132 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13133 * tracefile-tfile.c (tfile_write_uploaded_tp):
13134 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13135 gdb::unique_xmalloc_ptr.
13136 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13137 at_string, cond_string, cmd_strings>: Replace char pointers
13138 with gdb::unique_xmalloc_ptr.
13140 2019-01-10 Pedro Alves <palves@redhat.com>
13142 * solib-target.c (library_list_start_library): Don't xstrdup name.
13144 2019-01-10 Pedro Alves <palves@redhat.com>
13146 * mdebugread.c (parse_partial_symbols): Use
13147 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13149 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13151 * linux-fork.c (scoped_switch_fork_info)
13152 <~scoped_switch_fork_info>: Fix incorrect variable name.
13154 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13156 * linux-fork.c (scoped_switch_fork_info)
13157 <scoped_switch_fork_info>: Make explicit.
13158 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13160 2019-01-10 Tom Tromey <tom@tromey.com>
13162 * objfiles.h (objfile::reset_psymtabs): Update.
13163 * objfiles.c (objfile::objfile): Update.
13164 * psymtab.h (psymtab_storage::obstack): Update.
13165 (psymtab_storage::m_obstack): Use gdb::optional.
13166 (class psymtab_storage): Update comment. Remove objfile
13168 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13170 2019-01-10 Tom Tromey <tom@tromey.com>
13172 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13173 <free_psymtabs>: Now private.
13174 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13175 (allocate_psymtab): Use new method.
13177 2019-01-10 Tom Tromey <tom@tromey.com>
13179 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13180 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13181 * mdebugread.c (parse_partial_symbols): Use
13182 allocate_dependencies.
13183 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13184 allocate_dependencies.
13185 (process_psymtab_comp_unit_reader)
13186 (build_type_psymtab_dependencies): Likewise.
13187 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13189 2019-01-10 Tom Tromey <tom@tromey.com>
13191 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13192 PSYMBOL_SET_LANGUAGE.
13193 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13195 2019-01-10 Tom Tromey <tom@tromey.com>
13197 * psymtab.h (psymtab_storage::obstack): New method.
13198 <m_obstack>: Rename from obstack; now private.
13199 * psymtab.c (psymtab_storage): Update.
13200 * dwarf2read.c (create_addrmap_from_index)
13201 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13204 2019-01-10 Tom Tromey <tom@tromey.com>
13206 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13207 * objfiles.h (objfile::reset_psymtabs): New method.
13209 2019-01-10 Tom Tromey <tom@tromey.com>
13211 * symmisc.c (print_symbol_bcache_statistics): Update.
13212 (print_objfile_statistics): Update.
13213 * symfile.c (reread_symbols): Update.
13214 * psymtab.h (class psymtab_storage): New.
13215 * psymtab.c (psymtab_storage): New constructor.
13216 (~psymtab_storage): New destructor.
13217 (require_partial_symbols): Update.
13218 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13219 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13220 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13221 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13222 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13223 (start_psymtab_common, end_psymtab_common)
13224 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13225 (allocate_psymtab): Update.
13226 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13228 (dump_psymtab_addrmap, maintenance_print_psymbols)
13229 (maintenance_check_psymtabs): Update.
13230 (class objfile_psymtabs): Move to objfiles.h.
13231 * psympriv.h (discard_psymtab): Now inline.
13232 (psymtab_discarder::psymtab_discarder): Update.
13233 (psymtab_discarder::~psymtab_discarder): Update.
13234 (ALL_OBJFILE_PSYMTABS): Rewrite.
13235 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13236 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13238 <partial_symtabs>: New field.
13239 (class objfile_psymtabs): Move from psymtab.h. Update.
13240 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13242 (objfile::~objfile): Don't destroy psymbol_cache.
13243 * mdebugread.c (parse_partial_symbols): Update.
13244 * dwarf2read.c (create_addrmap_from_index)
13245 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13246 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13247 (add_partial_subprogram, dwarf2_ranges_read): Update.
13248 * dwarf-index-write.c (write_address_map)
13249 (write_one_signatured_type, recursively_write_psymbols)
13250 (class debug_names, class debug_names, write_psymtabs_to_index):
13253 2019-01-10 Tom Tromey <tom@tromey.com>
13255 * symtab.h (SYMBOL_SET_NAMES): Update.
13256 (symbol_set_names): Update.
13257 (MSYMBOL_SET_NAMES): Update.
13258 * symtab.c (symbol_set_names): Change argument to be an
13259 objfile_per_bfd_storage.
13260 * psymtab.c (add_psymbol_to_bcache): Update.
13261 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13263 2019-01-10 Tom Tromey <tom@tromey.com>
13265 * symtab.c (create_demangled_names_hash): Change argument to be an
13266 objfile_per_bfd_storage.
13267 (symbol_set_names): Update.
13269 2019-01-10 Tom Tromey <tom@tromey.com>
13271 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13273 * psymtab.c (init_psymbol_list): Do nothing if already called.
13274 * psympriv.h (init_psymbol_list): Add comment.
13275 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13277 * dbxread.c (dbx_symfile_read): Unconditionally call
13280 2019-01-10 Tom Tromey <tom@tromey.com>
13282 * xcoffread.c (scan_xcoff_symtab): Update.
13283 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13285 * mdebugread.c (parse_partial_symbols)
13286 (handle_psymbol_enumerators): Update.
13287 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13288 * dbxread.c (read_dbx_symtab): Update.
13289 * psympriv.h (psymbol_placement): New enum.
13290 (add_psymbol_to_list): Update.
13292 2019-01-10 Tom Tromey <tom@tromey.com>
13294 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13295 static_psymbols parameters.
13296 (scan_xcoff_symtab): Update.
13297 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13298 static_psymbols parameters.
13299 * psympriv.h (start_psymtab_common): Update.
13300 * mdebugread.c (parse_partial_symbols): Update.
13301 * dwarf2read.c (create_partial_symtab): Update.
13302 * dbxread.c (read_dbx_symtab): Update.
13303 (start_psymtab): Remove global_psymbols and static_psymbols
13306 2019-01-10 Tom Tromey <tom@tromey.com>
13308 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13309 * psymtab.c (allocate_psymtab): Add comment.
13310 * psympriv.h (allocate_psymtab): Add comment.
13311 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13313 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13315 2019-01-10 Tom Tromey <tom@tromey.com>
13317 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13319 * mipsread.c: Include mdebugread.h.
13320 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13322 * elfread.c: Include mdebugread.h.
13324 2019-01-09 Tom Tromey <tom@tromey.com>
13326 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13327 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13328 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13329 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13330 (psym_lookup_symbol, psym_find_last_source_symtab)
13331 (psym_forget_cached_source_info, psym_print_stats)
13332 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13333 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13334 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13335 (psym_find_compunit_symtab_by_address)
13336 (maintenance_print_psymbols, maintenance_info_psymtabs)
13337 (maintenance_check_psymtabs): Use ranged for.
13338 * psymtab.h (class objfile_psymtabs): New.
13339 (require_partial_symbols): Return objfile_psymtabs.
13340 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13342 2019-01-09 Tom Tromey <tom@tromey.com>
13344 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13345 (find_pc_mapped_section, list_overlays_command)
13346 (map_overlay_command, unmap_overlay_command)
13347 (simple_overlay_update): Use all_objfiles.
13348 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13349 * printcmd.c (info_symbol_command): Use all_objfiles.
13350 * objfiles.h (ALL_OBJSECTIONS): Remove.
13351 * maint.c (maintenance_translate_address): Use all_objfiles.
13352 * gcore.c (gcore_create_callback): Use all_objfiles.
13353 (objfile_find_memory_regions): Likewise.
13355 2019-01-09 Tom Tromey <tom@tromey.com>
13357 * symtab.c (find_line_symtab, info_sources_command)
13358 (make_source_files_completion_list): Use objfile_compunits.
13359 * source.c (select_source_symtab): Use objfile_compunits.
13360 * objfiles.h (struct objfile): Update comment.
13361 (ALL_OBJFILES): Remove.
13362 (ALL_FILETABS): Remove.
13363 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13366 2019-01-09 Tom Tromey <tom@tromey.com>
13368 * symmisc.c (print_objfile_statistics, dump_objfile)
13369 (maintenance_print_symbols): Use compunit_filetabs.
13370 * source.c (forget_cached_source_info_for_objfile): Use
13372 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13373 (ALL_FILETABS): Use compunit_filetabs.
13374 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13375 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13377 2019-01-09 Tom Tromey <tom@tromey.com>
13379 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13380 (compunit_filetabs): New.
13381 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13383 (info_sources_command, make_source_files_completion_list): Remove
13385 * symmisc.c (print_objfile_statistics, dump_objfile)
13386 (maintenance_print_symbols): Remove declaration.
13387 (maintenance_info_symtabs): Use compunit_filetabs.
13388 (maintenance_info_line_tables): Likewise.
13389 * source.c (select_source_symtab): Change local variable name.
13390 (forget_cached_source_info_for_objfile): Remove declaration.
13391 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13392 * objfiles.c (objfile_relocate1): Remove declaration.
13393 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13395 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13396 * coffread.c (coff_symtab_read): Remove declaration.
13397 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13400 2019-01-09 Tom Tromey <tom@tromey.com>
13402 * symtab.c (lookup_objfile_from_block)
13403 (find_pc_sect_compunit_symtab, search_symbols)
13404 (default_collect_symbol_completion_matches_break_on): Use
13406 * objfiles.h (ALL_COMPUNITS): Remove.
13407 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13408 * cp-support.c (add_symbol_overload_list_qualified): Use
13410 * ada-lang.c (ada_collect_symbol_completion_matches)
13411 (ada_add_global_exceptions): Use objfile_compunits.
13413 2019-01-09 Tom Tromey <tom@tromey.com>
13415 * source.c (select_source_symtab)
13416 (forget_cached_source_info_for_objfile): Remove declaration.
13417 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13419 * maint.c (count_symtabs_and_blocks): Remove declaration.
13420 * cp-support.c (add_symbol_overload_list_qualified): Remove
13422 * coffread.c (coff_symtab_read): Remove declaration.
13423 * symtab.c (lookup_symbol_in_objfile_symtabs)
13424 (basic_lookup_transparent_type_1): Use objfile_compunits.
13425 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13426 (info_sources_command, search_symbols)
13427 (default_collect_symbol_completion_matches_break_on)
13428 (make_source_files_completion_list): Remove declaration.
13429 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13430 (ada_collect_symbol_completion_matches)
13431 (ada_add_global_exceptions): Remove declaration.
13432 * linespec.c (iterate_over_all_matching_symtabs): Use
13434 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13435 (class objfile_compunits): New.
13436 (ALL_COMPUNITS): Use objfile_compunits.
13437 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13438 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13440 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13442 2019-01-09 Tom Tromey <tom@tromey.com>
13444 * symtab.c (search_symbols)
13445 (default_collect_symbol_completion_matches_break_on): Use
13447 * ada-lang.c (ada_lookup_simple_minsym)
13448 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13449 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13450 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13452 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13453 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13454 * objc-lang.c (find_methods): Use objfile_msymbols.
13455 (info_selectors_command, info_classes_command): Likewise.
13456 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13457 * objfiles.h (class objfile_msymbols): New.
13458 (ALL_OBJFILE_MSYMBOLS): Remove.
13459 (ALL_MSYMBOLS): Remove.
13461 2019-01-09 Tom Tromey <tom@tromey.com>
13463 * common/next-iterator.h (next_adapter): Add Iterator template
13465 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13466 (class all_objfiles_safe): New.
13467 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13468 * objfiles.c (put_objfile_before): Update comment.
13469 (add_separate_debug_objfile): Likewise.
13470 (free_all_objfiles): Use all_objfiles_safe.
13471 (objfile_purge_solibs): Likewise.
13473 2019-01-09 Tom Tromey <tom@tromey.com>
13475 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13476 (expand_symtab_containing_pc, lookup_static_symbol)
13477 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13478 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13480 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13481 * breakpoint.c (create_overlay_event_breakpoint)
13482 (create_longjmp_master_breakpoint)
13483 (create_std_terminate_master_breakpoint)
13484 (create_exception_master_breakpoint): Use all_objfiles.
13485 * linux-thread-db.c (try_thread_db_load_from_pdir)
13486 (has_libpthread): Use all_objfiles.
13487 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13488 * linespec.c (iterate_over_all_matching_symtabs)
13489 (search_minsyms_for_name): Use all_objfiles.
13490 * maint.c (maintenance_info_sections): Use all_objfiles.
13491 * main.c (captured_main_1): Use all_objfiles.
13492 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13493 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13494 * guile/scm-pretty-print.c
13495 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13496 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13497 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13498 (maintenance_print_msymbols): Use all_objfiles.
13499 * source.c (select_source_symtab): Use all_objfiles.
13500 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13501 * symfile.c (remove_symbol_file_command)
13502 (expand_symtabs_matching, map_symbol_filenames): Use
13504 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13506 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13507 * objc-lang.c (find_methods): Use all_objfiles.
13508 * objfiles.c (have_partial_symbols, have_full_symbols)
13509 (have_minimal_symbols, qsort_cmp)
13510 (default_iterate_over_objfiles_in_search_order): Use
13512 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13513 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13514 (maintenance_check_psymtabs): Use all_objfiles.
13515 (ALL_PSYMTABS): Remove.
13516 * compile/compile-object-run.c (do_module_cleanup): Use
13518 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13519 * cp-support.c (add_symbol_overload_list_qualified): Use
13521 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13523 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13524 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13526 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13527 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13528 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13530 * solib.c (solib_read_symbols): Use all_objfiles
13532 2019-01-09 Tom Tromey <tom@tromey.com>
13534 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13535 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13537 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13538 * symmisc.c (print_symbol_bcache_statistics)
13539 (print_objfile_statistics, maintenance_print_objfiles)
13540 (maintenance_info_symtabs, maintenance_check_symtabs)
13541 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13543 * source.c (forget_cached_source_info): Use all_objfiles.
13544 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13545 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13546 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13547 * objfiles.c (update_section_map): Use all_objfiles.
13548 (shared_objfile_contains_address_p): Likewise.
13549 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13550 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13552 2019-01-09 Tom Tromey <tom@tromey.com>
13554 * common/next-iterator.h: New file.
13555 * objfiles.h (class all_objfiles): New.
13556 (struct objfile_iterator): New.
13558 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13560 * NEWS: Move the description of the changed "frame", "select-frame",
13561 and "info frame" commands to the Changed commands section.
13563 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13565 * gdbtypes.c (check_stub_method_group): Remove handling of old
13567 * linespec.c (find_methods): Likewise.
13568 * stabsread.c (read_member_functions): Likewise.
13569 * valops.c (search_struct_method): Likewise.
13570 (value_struct_elt_for_reference): Likewise.
13571 * NEWS: Mention this change.
13573 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13575 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13576 print_source_lines.
13577 * source.c (print_source_lines_base): Update line number check.
13578 (print_source_lines): New function.
13579 (source_lines_range::source_lines_range): New function.
13580 * source.h (class source_lines_range): New class.
13581 (print_source_lines): New declaration.
13583 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13585 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13587 2019-01-08 Tom Tromey <tom@tromey.com>
13588 Simon Marchi <simon.marchi@ericsson.com>
13591 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13592 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13593 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13594 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13595 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13596 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13598 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13600 * source.c (select_source_symtab): Move header comment to
13601 declaration in source.h.
13602 (forget_cached_source_info_for_objfile): Likewise.
13603 (forget_cached_source_info): Likewise.
13604 (identify_source_line): Likewise.
13605 * source.h (identify_source_line): Move declaration from symtab.h
13606 and add comment from source.c
13607 (print_source_lines): Likewise.
13608 (forget_cached_source_info_for_objfile): Likewise.
13609 (forget_cached_source_info): Likewise.
13610 (select_source_symtab): Likewise.
13611 (enum print_source_lines_flag): Move definition from symtab.h.
13612 * symtab.h (identify_source_line): Move declaration to source.h.
13613 (print_source_lines): Likewise.
13614 (forget_cached_source_info_for_objfile): Likewise.
13615 (forget_cached_source_info): Likewise.
13616 (select_source_symtab): Likewise.
13617 (enum print_source_lines_flag): Move definition to source.h.
13618 * tui/tui-hooks.c: Add 'source.h' include.
13620 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13622 * source.c (print_source_lines_base): Handle requests to print
13623 reverse line number sequences, and guard against empty lines
13626 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13628 * source.c (print_source_lines_base): Fix skip of '\r' if next
13631 2019-01-06 Tom Tromey <tom@tromey.com>
13633 * c-exp.y (struct c_parse_state) <macro_original_text,
13634 expansion_obstack>: New member.
13635 (macro_original_text, expansion_obstack): Remove globals.
13636 (scan_macro_expansion, scanning_macro_expansion)
13637 (finished_macro_expansion): Update.
13638 (scan_macro_cleanup): Remove.
13639 (yylex, c_parse): Update.
13641 2019-01-06 Tom Tromey <tom@tromey.com>
13643 * c-exp.y (struct c_parse_state) <strings>: New member.
13644 (operator_stoken): Update.
13646 2019-01-06 Tom Tromey <tom@tromey.com>
13648 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13649 (union type_stack_elt) <typelist_val>: Now a pointer to
13651 (type_stack_cleanup): Don't declare.
13652 (push_typelist): Update.
13653 * parse.c (pop_typelist): Return a std::vector.
13654 (push_typelist): Take a std::vector.
13655 (follow_types): Update. Do not free args.
13656 (type_stack_cleanup): Remove.
13657 * c-exp.y (struct c_parse_state): New.
13658 (cpstate): New global.
13659 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13660 (nonempty_typelist): Update.
13661 (func_mod): Create a new vector.
13662 (c_parse): Create a c_parse_state.
13663 (check_parameter_typelist): Do not delete params.
13664 (function_method): Update. Do not delete type_list.
13666 2019-01-06 Tom Tromey <tom@tromey.com>
13669 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13671 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13672 (print_return_value): Likewise.
13674 2019-01-05 Tom Tromey <tom@tromey.com>
13676 * contrib/cleanup_check.py: Remove.
13677 * contrib/gcc-with-excheck: Remove.
13678 * contrib/exsummary.py: Remove.
13679 * contrib/excheck.py: Remove.
13681 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13683 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13684 NULL. Initialize tpprev to NULL instead of assigning it
13685 to NULL on the next statement.
13686 * windows-nat.c (windows_delete_thread): Remove check for
13687 main_thread_id before printing thread exit notifications.
13688 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13689 Remove thread ID check against main_thread_id.
13690 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13691 windows_delete_thread.
13692 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13694 2019-01-04 Tom Tromey <tom@tromey.com>
13696 * compile/compile.c (_initialize_compile): Use upper case for
13697 metasyntactic variables.
13698 * symmisc.c (_initialize_symmisc): Use upper case for
13699 metasyntactic variables.
13700 * psymtab.c (_initialize_psymtab): Use upper case for
13701 metasyntactic variables.
13702 * demangle.c (demangle_command): Use upper case for metasyntactic
13704 (_initialize_demangler): Likewise.
13705 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13708 2019-01-03 Tom Tromey <tom@tromey.com>
13710 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13712 2019-01-03 Tom Tromey <tom@tromey.com>
13714 * python/py-symtab.c (salpy_str): Update.
13715 (struct salpy_sal_object) <symtab>: Now a PyObject.
13716 (salpy_dealloc): Update.
13717 (del_objfile_sal): Use gdbpy_ref.
13719 2019-01-03 Tom Tromey <tom@tromey.com>
13721 * python/py-type.c (convert_field): Use new_reference. Return
13723 (make_fielditem): Return gdbpy_ref.
13724 (typy_fields): Update.
13725 (typy_getitem): Update.
13726 (field_name): Return gdbpy_ref. Use new_reference.
13727 (typy_iterator_iternext): Update.
13729 2019-01-03 Tom Tromey <tom@tromey.com>
13731 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13733 2019-01-03 Tom Tromey <tom@tromey.com>
13735 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13736 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13737 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13738 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13739 (pspy_set_type_printers): Likewise.
13740 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13741 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13742 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13743 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13744 (objfpy_set_type_printers): Likewise.
13746 2019-01-03 Tom Tromey <tom@tromey.com>
13748 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13749 (gdbpy_print_stack): Use gdbpy_err_fetch.
13750 * python/python-internal.h (class gdbpy_err_fetch): New class.
13751 (class gdbpy_enter) <m_error_type, m_error_value,
13752 m_error_traceback>: Remove.
13753 <m_error>: New member.
13754 (gdbpy_exception_to_string): Don't declare.
13755 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13756 * python/py-value.c (convert_value_from_python): Use
13758 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13759 gdbpy_exception_to_string.
13760 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13761 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13764 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13766 * linux-nat.c (delete_lwp_cleanup): Delete.
13767 (struct lwp_deleter): New struct.
13768 (lwp_info_up): New typedef.
13769 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13772 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13774 * linux-fork.c (class scoped_switch_fork_info): New class.
13775 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13777 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13779 * valops.c (find_overload_match): Remove use of null_cleanup, and
13780 calls to do_cleanups.
13782 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13784 * compile/compile-cplus-types.c
13785 (compile_cplus_instance::decl_name): Handle changes to
13787 * cp-support.c (cp_func_name): Update header comment, update
13789 * cp-support.h (cp_func_name): Update return type in declaration.
13790 * valops.c (find_overload_match): Move temp_func local to top
13791 level of function and change its type. Use temp_func to hold and
13792 delete temporary string obtained from cp_func_name.
13794 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13796 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13797 gdb::char_vector, remove cleanup, and update uses of `msg`.
13799 2019-01-03 Jim Wilson <jimw@sifive.com>
13801 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13803 2019-01-02 Tom Tromey <tom@tromey.com>
13805 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13806 (tdesc_parse_xml): Remove cleanups.
13807 * target-descriptions.h (make_cleanup_free_target_description):
13809 (target_desc_deleter): New struct.
13810 (target_desc_up): New typedef.
13811 * target-descriptions.c (target_desc_deleter::operator()): Rename
13812 from free_target_description.
13813 (make_cleanup_free_target_description): Remove.
13815 2019-01-02 Tom Tromey <tom@tromey.com>
13817 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13818 constructor, destructor.
13819 (linespec_parser): Remove typedef.
13820 (~linespec_parser): Rename from linespec_parser_delete.
13821 (linespec_lex_to_end, linespec_complete_label)
13822 (linespec_complete): Update.
13823 (decode_line_full): Remove cleanups.
13824 (decode_line_1): Update.
13826 2019-01-02 Tom Tromey <tom@tromey.com>
13828 * python/python-internal.h (inferior_to_inferior_object): Change
13830 * python/py-exitedevent.c (create_exited_event_object): Update.
13831 * python/py-inferior.c (inferior_to_inferior_object): Return
13833 (python_new_inferior, python_inferior_deleted)
13834 (thread_to_thread_object, delete_thread_object)
13835 (build_inferior_list, gdbpy_selected_inferior): Update.
13836 * python/py-infthread.c (create_thread_object): Update. Also fail
13837 if inferior_to_inferior_object fails.
13839 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13841 * inferior.h (class inferior) <displaced_step_state>: New field.
13842 * infrun.h (struct displaced_step_state): Move here from
13843 infrun.c. Initialize fields, add constructor.
13844 <inf>: Remove field.
13845 <reset>: New method.
13846 * infrun.c (struct displaced_step_inferior_state): Move to
13848 (displaced_step_inferior_states): Remove.
13849 (get_displaced_stepping_state): Adust.
13850 (displaced_step_in_progress_any_inferior): Adjust.
13851 (displaced_step_in_progress_thread): Adjust.
13852 (displaced_step_in_progress): Adjust.
13853 (add_displaced_stepping_state): Remove.
13854 (get_displaced_step_closure_by_addr): Adjust.
13855 (remove_displaced_stepping_state): Remove.
13856 (infrun_inferior_exit): Call displaced_step_state.reset.
13857 (use_displaced_stepping): Don't check for NULL.
13858 (displaced_step_prepare_throw): Call
13859 get_displaced_stepping_state.
13860 (displaced_step_fixup): Don't check for NULL.
13861 (prepare_for_detach): Don't check for NULL.
13863 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13865 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13866 in case of call that did not complete.
13868 2019-01-02 Andrey Utkin <autkin@undo.io>
13870 * symfile.c (find_separate_debug_file): Fix search of debug files for
13873 2019-01-02 Tom Tromey <tom@tromey.com>
13875 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13877 * python/py-frame.c (frapy_older): Remove cast.
13878 (frapy_newer): Likewise.
13879 * python/py-breakpoint.c (local_setattro): Remove cast.
13880 * python/py-arch.c (archpy_name): Remove local variable.
13881 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13883 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13885 * unittests/basic_string_view/element_access/char/empty.cc:
13886 Fix year range in copyright header.
13888 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13890 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13892 <operator==>: Update with for removed field.
13894 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13895 <isa_features>: ...this.
13896 <abi_features>: New field.
13897 (riscv_isa_flen): Update comment.
13898 (riscv_abi_xlen): New declaration.
13899 (riscv_abi_flen): New declaration.
13900 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13902 (riscv_abi_xlen): New function.
13903 (riscv_isa_flen): Update to get answer from isa_features.
13904 (riscv_abi_flen): New function.
13905 (riscv_has_fp_abi): Update to get answer from abi_features.
13906 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13908 (riscv_call_info) <xlen, flen>: Update comment.
13909 (riscv_call_arg_struct): Remove invalid assertions
13910 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13912 (riscv_gdbarch_init): Gather isa features and abi features
13913 separately, ensure both match on the gdbarch when reusing an old
13914 gdbarch. Relax an error check to allow 32-bit abi float to run on
13915 a target with 64-bit float hardware.
13917 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13919 * source.c (search_command_helper): Stop reverse search
13920 when line 1 has been searched.
13922 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13924 * record-full.c (record_full_base_target::close): Rewrite
13925 record_full_core_buf_list free logic.
13927 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13929 * break-catch-syscall.c (print_one_catch_syscall): xfree
13932 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13934 * top.c (print_gdb_version): Update Copyright year in version
13937 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13939 Update copyright year range in all GDB files.
13941 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13943 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13945 For older changes see ChangeLog-2018.
13951 version-control: never