1 2019-10-16 Tom Tromey <tom@tromey.com>
3 * objfiles.h (struct objfile) <original_name>: Now const.
5 2019-10-16 Christian Biesinger <cbiesinger@google.com>
7 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
8 pass on to sigsetjmp's second argument.
9 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
11 2019-10-16 Keith Seitz <keiths@redhat.com>
14 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
15 sections whose size is greater than the file size.
17 2019-10-16 Jim Wilson <jimw@sifive.com>
19 * riscv-tdep.c (riscv_gcc_target_options): New.
20 (riscv_gnu_triplet_regexp): New.
21 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
22 set_gdbarch_gnu_triplet_regexp.
24 2019-10-16 Christian Biesinger <cbiesinger@google.com>
26 * Makefile.in: Add xml-builtin.h.
27 * features/feature_to_c.sh: Add an include for xml-builtin.h
28 to ensure that the compiler checks that the types match.
29 * xml-builtin.h: New file.
30 * xml-support.c (fetch_xml_builtin): Add missing const.
31 * xml-support.h: Remove declaration of xml_builtins.
33 2019-10-16 Tom de Vries <tdevries@suse.de>
36 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
37 (amd64_classify_aggregate): ... here.
38 (amd64_classify_aggregate_field): Handled fiels of nested structs
41 2019-10-16 Tom de Vries <tdevries@suse.de>
44 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
45 that handles 'theclass'.
47 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
49 * linespec.c (decode_digits_ordinary): Update comment.
50 * make-target-delegates: No longer need to handle VEC case.
51 * memrange.c (normalize_mem_ranges): Update comment.
52 * namespace.c (add_using_directive): Update comment.
53 * objc-lang.c (uniquify_strings): Update comment.
54 * ppc-linux-nat.c (struct thread_points): Update comment.
55 * probe.h (find_probes_in_objfile): Update comment.
56 * target.h (enum flash_preserve_mode): Update comment.
57 * varobj.c (varobj_restrict_range): Update comment.
58 * varobj.h (varobj_list_children): Update comment.
60 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
62 * Makefile.in: Remove references to vec.h and vec.c.
63 * aarch64-tdep.c: No longer include vec.h.
64 * ada-lang.c: Likewise.
65 * ada-lang.h: Likewise.
66 * arm-tdep.c: Likewise.
68 * breakpoint.h: Likewise.
69 * charset.c: Likewise.
70 * cp-support.h: Likewise.
71 * dtrace-probe.c: Likewise.
72 * dwarf2read.c: Likewise.
73 * extension.h: Likewise.
74 * gdb_bfd.c: Likewise.
75 * gdbsupport/gdb_vecs.h: Likewise.
76 * gdbsupport/vec.c: Remove.
77 * gdbsupport/vec.h: Remove.
78 * gdbthread.h: Likewise.
79 * guile/scm-type.c: Likewise.
80 * inline-frame.c: Likewise.
81 * machoread.c: Likewise.
82 * memattr.c: Likewise.
83 * memrange.h: Likewise.
84 * namespace.h: Likewise.
85 * nat/linux-btrace.h: Likewise.
87 * parser-defs.h: Likewise.
88 * progspace.h: Likewise.
89 * python/py-type.c: Likewise.
90 * record-btrace.c: Likewise.
91 * rust-exp.y: Likewise.
92 * solib-target.c: Likewise.
93 * stap-probe.c: Likewise.
94 * target-descriptions.c: Likewise.
95 * target-memory.c: Likewise.
99 * xml-support.h: Likewise.
101 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
103 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
104 Update for new std::vector based implementation.
105 (process_psymtab_comp_unit_reader): Likewise.
106 (scan_partial_symbols): Likewise.
107 (recursively_compute_inclusions): Likewise.
108 (compute_compunit_symtab_includes): Likewise.
109 (process_imported_unit_die): Likewise.
110 (queue_and_load_dwo_tu): Likewise.
111 (follow_die_sig_1): Likewise.
112 * gdb/dwarf2read.h: Remove DEF_VEC_P.
113 (typedef dwarf2_per_cu_ptr): Remove.
114 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
116 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
117 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
118 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
119 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
122 2019-10-15 Tom Tromey <tromey@adacore.com>
124 * windows-nat.c (windows_nat_target::resume): Use %x when logging
127 2019-10-15 Tom Tromey <tromey@adacore.com>
129 * windows-nat.c (windows_nat_target::fetch_registers)
130 (windows_nat_target::store_registers): Rename "pid" to "tid".
132 2019-10-15 Tom Tromey <tromey@adacore.com>
134 * gdbarch.h, gdbarch.c: Rebuild.
135 * gdbarch.sh (gcc_target_options): Change return type to
137 * compile/compile.c (get_args): Update.
138 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
139 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
141 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
143 * arch-utils.c (default_gcc_target_options): Return std::string.
144 * arch-utils.h (default_gcc_target_options): Return std::string.
145 * s390-tdep.c (s390_gcc_target_options): Return std::string.
147 2019-10-15 Christian Biesinger <cbiesinger@google.com>
149 * breakpoint.c (breakpoint_chain): Make static.
150 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
151 of accessing breakpoint_chain.
153 2019-10-15 Christian Biesinger <cbiesinger@google.com>
155 * breakpoint.c (iterate_over_breakpoints): Change function pointer
156 to a gdb::function_view and return value to bool.
157 * breakpoint.h (iterate_over_breakpoints): Likewise.
158 * dummy-frame.c (pop_dummy_frame_bpt): Update.
159 (pop_dummy_frame): Update.
160 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
161 (gdbscm_breakpoints): Update.
162 * python/py-breakpoint.c (build_bp_list): Update.
163 (gdbpy_breakpoints): Update.
164 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
166 (bpfinishpy_handle_stop): Update.
167 (bpfinishpy_handle_exit): Update.
168 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
169 (svr4_update_solib_event_breakpoints): Update.
171 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
173 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
174 when unwrapping single-field structs.
176 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
178 * dwarf2read.c: Remove includes.
180 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
182 * ui-out.c (ui_out::call_do_message): Silence
183 -Wformat-nonliteral warning.
185 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
187 * breakpoint.c: Remove some includes: continuations.h, skip.h,
188 mi/mi-main.h, readline/readline.h, readline/history.h. Add
189 include: readline/tilde.h.
191 2019-10-12 Christian Biesinger <cbiesinger@google.com>
193 * remote.c (remote_target::get_trace_status): Remove declaration of
196 2019-10-12 Christian Biesinger <cbiesinger@google.com>
198 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
199 (show_user): Remove declaration of cmdlist.
200 * cli/cli-cmds.h (max_user_call_depth): Declare.
201 * cli/cli-script.c (execute_user_command): Remove declaration
202 of max_user_call_depth.
204 2019-10-11 Jim Wilson <jimw@sifive.com>
206 * gdbsupport/print-utils.h (pulongest): Fix comment.
207 (plongest): Likewise.
208 (phex): Add missing comment, mention leading zeros.
209 (phex_nz): Add mention of no leading zeros to comment.
211 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
212 plongest instead of unsigned long long cast.
214 2019-10-10 Christian Biesinger <cbiesinger@google.com>
216 * main.c (captured_main_1): Include gdbtk.h and remove declarations
217 for external_editor_command and gdbtk_test.
219 2019-10-10 Christian Biesinger <cbiesinger@google.com>
221 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
222 * varobj.c (varobjdebug): Move comment to...
223 * varobj.h (varobjdebug): ...here, and declare.
225 2019-10-09 Tom Tromey <tom@tromey.com>
227 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
230 2019-10-09 Tom Tromey <tom@tromey.com>
232 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
233 * tui/tui-stack.c (tui_locator_window::rerender): Update.
234 * tui/tui-command.c (tui_cmd_window::resize)
235 (tui_refresh_cmd_win): Update.
236 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
237 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
238 * tui/tui-data.c (~tui_gen_win_info): Remove.
239 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
240 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
241 (tui_redisplay_readline, tui_mld_flush)
242 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
243 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
244 (tui_data_window::erase_data_content)
245 (tui_data_item_window::rerender)
246 (tui_data_item_window::refresh_window): Update.
247 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
248 (box_win, tui_gen_win_info::make_window)
249 (tui_gen_win_info::make_visible): Update.
250 (tui_delete_win): Remove.
251 * tui/tui-winsource.c
252 (tui_source_window_base::do_erase_source_content): Update.
253 (tui_show_source_line, tui_source_window_base::update_tab_width)
254 (tui_source_window_base::update_exec_info): Update.
255 * tui/tui-data.h (struct curses_deleter): New.
256 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
257 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
259 2019-10-09 Tom Tromey <tom@tromey.com>
261 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
263 2019-10-09 Tom Tromey <tom@tromey.com>
265 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
266 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
268 2019-10-09 Tom Tromey <tom@tromey.com>
270 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
271 window height directly.
272 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
274 * tui/tui-layout.c (tui_default_win_height): Remove.
275 (tui_default_win_viewport_height): Remove.
277 2019-10-09 Tom Tromey <tom@tromey.com>
279 * tui/tui.h: Remove comments.
281 2019-10-09 Tom de Vries <tdevries@suse.de>
283 * python/lib/gdb/printer/bound_registers.py: Use
284 '^builtin_type_bound128' as regexp argument for
285 add_builtin_pretty_printer.
287 2019-10-09 Christian Biesinger <cbiesinger@google.com>
289 * guile/guile.c (guile_extension_script_ops): Remove forward
290 declaration and mark as static.
291 (guile_script_ops): Likewise.
292 (extension_language_guile): Move further down in the file so
293 it can reference the definitions for guile_{extension_,}script_ops.
295 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
297 * s390-tdep.c (390_process_record): Handle new arch13 instructions
298 except SORTL, DFLTCC, and KDSA.
300 2019-10-08 Tom Tromey <tromey@adacore.com>
302 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
303 (struct safe_symbol_file_add_args): Remove.
305 2019-10-08 Tom Tromey <tromey@adacore.com>
307 * windows-nat.c: Don't include buildsym-legacy.h.
309 2019-10-08 Tom Tromey <tromey@adacore.com>
311 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
313 2019-10-08 Christian Biesinger <cbiesinger@google.com>
315 * gdbtypes.c (overload_debug): Move comment to header.
316 * gdbtypes.h (overload_debug): Declare.
317 * valops.c: Remove declaration of overload_debug, instead
320 2019-10-08 Christian Biesinger <cbiesinger@google.com>
322 * language.c (show_language_command): Pass lang_frame_mismatch_warn
324 (lang_frame_mismatch_warn): Make const, mark with N_(), and
326 * language.h (lang_frame_mismatch_warn): ... here. Also add
328 * top.c (lang_frame_mismatch_warn): Remove declaration.
329 (check_frame_language_change): Pass lang_frame_mismatch_warn
332 2019-10-07 Christian Biesinger <cbiesinger@google.com>
334 * c-lang.h (vtbl_ptr_name): Declare.
335 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
337 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
339 2019-10-07 Christian Biesinger <cbiesinger@google.com>
341 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
344 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
346 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
347 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
348 * ctfread.c: New file.
349 * ctfread.h: New file.
350 * elfread.c: Include ctfread.h.
351 (struct elfinfo text_p): New member ctfsect.
352 (elf_locate_sections): Mark CTF section.
353 (elf_symfile_read): Call elfctf_build_psymtabs.
354 * Makefile.in (LIBCTF): Add.
357 (DIST): Add ctfread.c.
359 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
361 * ctfread.c (struct nextfield): Renamed to ...
362 (struct ctf_nextfield): ... this.
363 (struct field_info): Renamed to ...
364 (strut ctf_field_info): ... this.
365 (attach_fields_to_type): Update for renamed structures.
366 (ctf_add_member_cb): Likewise.
367 (ctf_add_enum_member_cb): Likewise.
368 (process_struct_members): Likewise.
369 (process_enum_type): Likewise.
371 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
373 * tracectf.h: Rename, was ctf.h.
374 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
375 * tracefile.c: Likewise.
376 * tracepoint.c: Remove unused include ctf.h.
377 * mi/mi-main.c: Likewise.
378 * Makefile.in Replace ctf.c with tracectf.c.
380 2019-10-06 Joel Brobecker <brobecker@adacore.com>
382 * version.in: Change version number to "9.0.50.DATE-git".
384 2019-10-03 Tom Tromey <tom@tromey.com>
387 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
389 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
391 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
393 * NEWS: Add entry about nested function support.
395 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
396 Andrew Burgess <andrew.burgess@embecosm.com>
398 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
399 for nested static variables when searchin VAR_DOMAIN.
400 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
401 global scope, update comment.
402 (add_partial_subprogram): Call add_partial_subprogram recursively
403 for nested subroutines when processinng Fortran.
404 (load_partial_dies): Process the child entities of a subprogram
405 when processing Fortran.
406 (partial_die_parent_scope): Handle building scope
407 for Fortran nested functions.
408 (process_die): Record that nested functions have a scope.
409 (new_symbol): Always record Fortran subprograms on the global
411 (determine_prefix): How to build the prefix for Fortran
414 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
416 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
417 have just sent the thread a SIGSTOP and are waiting for it to
420 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
422 * btrace.c (btrace_add_pc): Remove whitespace before the template
423 parameter in 'std::vector <...>'.
424 (parse_xml_btrace_block): Likewise.
425 (btrace_maint_decode_pt): Likewise.
426 (btrace_maint_update_packets): Likewise.
427 (btrace_maint_print_packets): Likewise.
428 * btrace.h (struct btrace_maint_info): Likewise.
429 * dwarf2read.c (struct type_unit_group): Likewise.
430 (build_type_psymtabs_reader): Likewise.
431 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
432 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
433 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
435 2019-10-03 Tom de Vries <tdevries@suse.de>
437 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
438 the first line of the help text for set/show style metadata.
440 2019-10-02 Tom Tromey <tromey@adacore.com>
442 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
443 * gdbsupport/common-inferior.c: New file.
444 * infcmd.c (startup_with_shell): Don't define.
445 * nat/fork-inferior.h (startup_with_shell): Don't declare.
446 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
447 * inferior.h (startup_with_shell): Don't declare.
449 2019-10-02 Christian Biesinger <cbiesinger@google.com>
451 * gdbsupport/gdb_assert.h: Include errors.h.
452 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
454 2019-10-02 Tom Tromey <tromey@adacore.com>
456 * NEWS: Add $_ada_exception entry.
457 * ada-lang.c (struct ada_catchpoint): Add constructor.
458 <m_kind>: New member.
459 (allocate_location_exception, re_set_exception): Remove
461 (should_stop_exception): Compute $_ada_exception.
462 (check_status_exception, print_it_exception)
463 (print_one_exception, print_mention_exception): Remove
465 (allocate_location_catch_exception, re_set_catch_exception)
466 (check_status_exception, print_it_catch_exception)
467 (print_one_catch_exception, print_mention_catch_exception)
468 (print_recreate_catch_exception)
469 (allocate_location_catch_exception_unhandled)
470 (re_set_catch_exception_unhandled)
471 (check_status_exception, print_it_catch_exception_unhandled)
472 (print_one_catch_exception_unhandled)
473 (print_mention_catch_exception_unhandled)
474 (print_recreate_catch_exception_unhandled)
475 (allocate_location_catch_assert, re_set_catch_assert)
476 (check_status_assert, print_it_catch_assert)
477 (print_one_catch_assert, print_mention_catch_assert)
478 (print_recreate_catch_assert)
479 (allocate_location_catch_handlers, re_set_catch_handlers)
480 (check_status_handlers, print_it_catch_handlers)
481 (print_one_catch_handlers, print_mention_catch_handlers)
482 (print_recreate_catch_handlers): Remove.
483 (create_ada_exception_catchpoint): Update.
484 (initialize_ada_catchpoint_ops): Update.
486 2019-10-02 Tom Tromey <tromey@adacore.com>
488 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
489 (create_excep_cond_exprs): Simplify exception string computation.
490 (ada_exception_catchpoint_cond_string): Likewise.
492 2019-10-02 Tom Tromey <tromey@adacore.com>
494 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
495 * ada-lang.c (lesseq_defined_than): Handle
497 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
499 (dwarf2_has_info): Likewise.
500 (new_symbol): Set maybe_copied on symbol when
502 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
504 <can_copy>: New member.
505 * elfread.c (record_minimal_symbol): Set maybe_copied
506 on symbol when appropriate.
507 (elf_symfile_read): Update call to dwarf2_has_info.
508 * minsyms.c (lookup_minimal_symbol_linkage): New
510 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
511 * symtab.c (get_symbol_address, get_msymbol_address):
513 * symtab.h (get_symbol_address, get_msymbol_address):
515 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
517 (struct symbol, struct minimal_symbol) <maybe_copied>:
520 2019-10-02 Tom Tromey <tromey@adacore.com>
522 * source.c (struct current_source_location): New.
523 (current_source_key): New global.
524 (current_source_symtab, current_source_line)
525 (current_source_pspace): Remove.
526 (get_source_location): New function.
527 (get_current_source_symtab_and_line)
528 (set_default_source_symtab_and_line)
529 (set_current_source_symtab_and_line)
530 (clear_current_source_symtab_and_line, select_source_symtab)
531 (info_source_command, print_source_lines_base)
532 (info_line_command, search_command_helper, _initialize_source):
535 2019-10-02 Tom Tromey <tromey@adacore.com>
537 * source.c (select_source_symtab): Don't call
538 decode_line_with_current_source.
540 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
542 * symtab.c (lookup_global_symbol): Search global block.
544 2019-10-02 Tom Tromey <tromey@adacore.com>
546 * coffread.c (process_coff_symbol): Update.
547 * dwarf2read.c (var_decode_location, new_symbol): Update.
548 * mdebugread.c (parse_symbol): Update.
549 * objfiles.c (relocate_one_symbol): Update.
550 * stabsread.c (define_symbol, fix_common_block)
551 (scan_file_globals): Update.
552 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
553 (SET_SYMBOL_VALUE_ADDRESS): New macro.
554 * xcoffread.c (process_xcoff_symbol): Update.
556 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
558 * MAINTAINERS: Update my email address.
560 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
562 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
564 (build_type_psymtabs_reader): Update for std::vector.
565 (build_type_psymtab_dependencies): Likewise.
566 * dwarf2read.h: Remove use of DEF_VEC_P.
567 (typedef sig_type_ptr): Delete.
569 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
571 * btrace.c (btrace_maint_clear): Update to handle change from VEC
573 (btrace_maint_decode_pt): Likewise, and move allocation of the
574 vector outside of the loop.
575 (btrace_maint_update_packets): Update to handle change from VEC to
577 (btrace_maint_print_packets): Likewise.
578 (maint_info_btrace_cmd): Likewise.
579 * btrace.h: Remove use of DEF_VEC_O.
580 (typedef btrace_pt_packet_s): Delete.
581 (struct btrace_maint_info) <packets>: Change fromm VEC to
583 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
585 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
587 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
588 make accesses into the vector constant references.
589 (btrace_add_pc): Update for std::vector.
590 (btrace_stitch_bts): Likewise.
591 (parse_xml_btrace_block): Likewise.
592 (btrace_maint_update_packets): Likewise.
593 (btrace_maint_print_packets): Likewise.
594 (maint_info_btrace_cmd): Likewise.
595 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
597 (btrace_data::empty): Likewise.
598 (btrace_data_append): Likewise.
599 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
600 (typedef btrace_block_s): Delete.
601 (struct btrace_block): Add constructor.
602 (struct btrace_data_bts) <blocks>: Change to std::vector.
603 * nat/linux-btrace.c (perf_event_read_bts): Update for
605 (linux_read_bts): Likewise.
607 2019-10-01 Tom Tromey <tom@tromey.com>
609 * cli/cli-logging.c (show_logging_filename): Use styled_string.
611 2019-10-01 Tom Tromey <tom@tromey.com>
613 * stack.c (print_frame, info_frame_command_core): Use
615 * linux-thread-db.c (try_thread_db_load_1)
616 (try_thread_db_load_from_pdir_1): Use styled_string.
617 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
618 (auto_load_section_scripts, info_auto_load_local_gdbinit)
619 (maybe_print_unsupported_script_warning)
620 (maybe_print_script_not_found_warning): Use styled_string.
621 * ada-lang.c (user_select_syms): Use styled_string.
623 2019-10-01 Tom Tromey <tom@tromey.com>
625 * p-lang.c (pascal_printstr): Use metadata style.
626 * value.c (show_convenience): Use metadata style.
627 * valprint.c (valprint_check_validity, val_print_optimized_out)
628 (val_print_not_saved, val_print_unavailable)
629 (val_print_invalid_address, generic_val_print, val_print)
630 (value_check_printable, val_print_array_elements): Use metadata
632 * ui-out.h (class ui_out) <field_fmt>: New overload.
633 <do_field_fmt>: Add style parameter.
634 * ui-out.c (ui_out::field_fmt): New overload.
635 * typeprint.c (type_print_unknown_return_type)
636 (val_print_not_allocated, val_print_not_associated): Use metadata
638 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
640 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
641 * tracepoint.c (tvariables_info_1): Use metadata style.
642 * stack.c (print_frame_arg, print_frame_info, print_frame)
643 (info_frame_command_core): Use metadata style.
644 * skip.c (info_skip_command): Use metadata style.
645 * rust-lang.c (rust_print_enum): Use metadata style.
646 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
648 * python/py-framefilter.c (py_print_single_arg): Use metadata
650 * printcmd.c (do_one_display, print_variable_and_value): Use
652 * p-valprint.c (pascal_val_print)
653 (pascal_object_print_value_fields): Use metadata style.
654 * p-typeprint.c (pascal_type_print_base): Use metadata style.
655 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
657 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
658 * m2-valprint.c (m2_print_long_set): Use metadata style.
659 * m2-typeprint.c (m2_print_type): Use metadata style.
660 * infcmd.c (print_return_value_1): Use metadata style.
661 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
662 * f-valprint.c (info_common_command_for_block): Use metadata
664 * f-typeprint.c (f_type_print_base): Use metadata style.
665 * expprint.c (print_subexp_standard): Use metadata style.
666 * cp-valprint.c (cp_print_value_fields): Use metadata style.
667 * cli/cli-style.h (class cli_style_option): Add constructor.
668 (metadata_style): Declare.
669 * cli/cli-style.c (metadata_style): New global.
670 (_initialize_cli_style): Register metadata style.
671 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
673 * cli-out.c (cli_ui_out::do_field_fmt): Update.
674 * c-typeprint.c (c_type_print_base_struct_union)
675 (c_type_print_base_1): Use metadata style.
676 * breakpoint.c (watchpoint_value_print)
677 (print_one_breakpoint_location): Use metadata style.
678 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
680 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
682 * ada-valprint.c (val_print_packed_array_elements, printstr)
683 (print_field_values, ada_val_print_ref, ada_val_print): Use
685 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
687 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
689 * ada-lang.c (user_select_syms): Use metadata style.
691 2019-10-01 Tom Tromey <tom@tromey.com>
693 * cli/cli-cmds.c (pwd_command): Style output.
695 2019-10-01 Pedro Alves <palves@redhat.com>
696 Tom Tromey <tom@tromey.com>
698 * symtab.c (print_symbol_info): Use %ps.
699 (print_msymbol_info): Use %ps.
700 * symfile.c (symbol_file_add_with_addrs): Use %ps.
701 * printcmd.c (print_variable_and_value): Use %ps.
702 * macrocmd.c (show_pp_source_pos): Use %ps.
703 * infrun.c (print_exited_reason): Use ui_out::message.
704 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
705 (describe_other_breakpoints): Use ui_out::message and new
707 (say_where): Use new formats.
708 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
711 2019-10-01 Pedro Alves <palves@redhat.com>
712 Tom Tromey <tom@tromey.com>
714 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
715 (test_gdb_formats): New function.
716 (run_tests): Call it.
717 (test_format_specifier): Update.
718 * utils.h (fputs_filtered): Update comment.
719 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
720 (fputs_styled_unfiltered): Declare.
721 * utils.c (fputs_styled_unfiltered): New function.
722 (vfprintf_maybe_filtered): Add gdbfmt parameter.
723 (vfprintf_filtered): Update.
724 (vfprintf_unfiltered, vprintf_filtered): Update.
725 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
726 * ui-out.h (enum ui_out_flag) <unfiltered_output,
727 disallow_ui_out_field>: New constants.
728 (enum class field_kind): New.
729 (struct base_field_s, struct signed_field_s): New.
730 (signed_field): New function.
731 (struct string_field_s): New.
732 (string_field): New function.
733 (struct styled_string_s): New.
734 (styled_string): New function.
735 (class ui_out) <message>: Add comment.
736 <vmessage, call_do_message>: New methods.
737 <do_message>: Add style parameter.
738 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
740 (ui_out::message): Rewrite.
741 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
743 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
744 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
745 gdb_extensions parameter.
746 (class format_piece): Add parameter to constructor.
747 (n_int_args): New field.
748 * gdbsupport/format.c (format_pieces::format_pieces): Add
749 gdb_extensions parameter. Handle '*'.
750 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
751 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
752 vfprintf_styled_no_gdbfmt.
753 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
754 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
756 * ui-style.h (struct ui_file_style) <ptr>: New method.
758 2019-10-01 Tom Tromey <tom@tromey.com>
760 * unittests/format_pieces-selftests.c: Update. Add final format.
761 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
762 empty literal pieces.
764 2019-10-01 Tom Tromey <tom@tromey.com>
766 * ui-out.h (enum class ui_out_style_kind): Remove.
767 (class ui_out) <field_string, field_stsream, do_field_string>:
768 Change type of "style".
769 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
770 (ui_out::field_string): Update.
771 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
773 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
774 * tracepoint.c (print_one_static_tracepoint_marker): Update.
775 * stack.c (print_frame_arg, print_frame_info, print_frame):
777 * source.c (print_source_lines_base): Update.
778 * solib.c (info_sharedlibrary_command): Update.
779 * skip.c (info_skip_command): Update.
780 * record-btrace.c (btrace_call_history_src_line)
781 (btrace_call_history): Update.
782 * python/py-framefilter.c (py_print_frame): Update.
783 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
785 * mi/mi-out.c (mi_ui_out::do_table_header)
786 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
787 (mi_ui_out::do_field_string): Update.
788 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
790 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
792 * cli-out.c (cli_ui_out::do_table_header)
793 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
794 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
795 (cli_ui_out::do_field_fmt): Update.
796 * breakpoint.c (print_breakpoint_location): Update.
797 (update_static_tracepoint): Update.
799 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
801 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
802 conversion of gdb_datadir.
803 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
804 remove not needed c_str ().
806 2019-09-30 Ali Tamur <tamur@google.com>
808 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
809 (dwarf2_string_attr): Likewise.
811 2019-09-30 Ali Tamur <tamur@google.com>
813 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
814 (process_full_type_unit): Likewise.
815 (dump_die_shallow): Likewise.
816 (cu_debug_loc_section): Likewise.
818 2019-09-28 Christian Biesinger <cbiesinger@google.com>
820 * minsyms.c (compare_minimal_symbols): Rename to...
821 (minimal_symbol_is_less_than): ...this, and adjust to STL
822 conventions (return bool, take arguments as references)
823 (minimal_symbol_reader::install): Call std::sort instead
826 2019-09-29 Christian Biesinger <cbiesinger@google.com>
828 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
830 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
831 msymbol_hash, msymbol_demangled_hash>: Improve comments.
833 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
835 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
836 * psympriv.h (add_psymbol_to_list): Move comment here and update
839 2019-09-29 Tom de Vries <tdevries@suse.de>
841 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
842 Use $tmpdir/$(basename "$output_file").dwz instead of
843 "${output_file}.dwz".
845 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
848 * hppa-linux-nat.c: Include gdbarch.h.
850 2019-09-26 Christian Biesinger <cbiesinger@google.com>
852 * blockframe.c (find_pc_partial_function): Change return type to bool.
853 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
854 * minsyms.c (in_gnu_ifunc_stub): Likewise.
855 (stub_gnu_ifunc_resolve_name): Likewise.
856 * symtab.c (compare_filenames_for_search): Likewise.
857 (compare_glob_filenames_for_search): Likewise.
858 (matching_obj_sections): Likewise.
859 (symbol_matches_domain): Likewise.
860 (find_line_symtab): Change out param EXACT_MATCH to bool *.
861 (find_line_pc): Change return type to bool.
862 (find_line_pc_range): Likewise.
863 (producer_is_realview): Likewise.
864 * symtab.h (symbol_matches_domain): Likewise.
865 (find_pc_partial_function): Likewise.
866 (find_pc_line_pc_range): Likewise.
867 (in_gnu_ifunc_stub): Likewise.
868 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
869 (find_line_pc): Likewise.
870 (find_line_pc_range): Likewise.
871 (matching_obj_sections): Likewise.
872 (find_line_symtab): Change out parameter to bool.
873 (producer_is_realview): Change return type to bool.
874 (compare_filenames_for_search): Likewise.
875 (compare_glob_filenames_for_search): Likewise.
877 2019-09-26 Tom Tromey <tom@tromey.com>
879 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
880 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
881 * gdb_usleep.h: Remove.
882 * gdb_usleep.c: Remove.
883 * utils.c: Don't include gdb_usleep.h.
885 2019-09-26 Tom Tromey <tromey@adacore.com>
887 * python/py-type.c (type_to_type_object): Call check_typedef
890 2019-09-26 Tom Tromey <tom@tromey.com>
892 * utils.h (initialize_utils): Don't declare.
893 * top.c (gdb_init): Don't call initialize_utils.
894 * utils.c (initialize_utils): Remove. Move contents...
895 (_initialize_utils): ... here.
897 2019-09-25 Tom Tromey <tom@tromey.com>
899 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
900 * utils.h (make_hex_string): Don't declare.
901 * utils.c (make_hex_string): Remove.
903 2019-09-24 Tom de Vries <tdevries@suse.de>
906 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
907 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
909 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
911 * NEWS: Mention new simulator port for PRU.
913 2019-09-23 Christian Biesinger <cbiesinger@google.com>
915 * ada-exp.y (write_object_remaining): Update.
916 * ada-lang.c (ada_decode): Return a std::string instead of a char*
917 and eliminate the static buffer.
918 (ada_decode_symbol): Update.
919 (ada_la_decode): Update.
920 (ada_sniff_from_mangled_name): Update.
921 (is_valid_name_for_wild_match): Update.
922 (ada_lookup_name_info::matches): Update and simplify.
923 (name_matches_regex): Update.
924 (ada_add_global_exceptions): Update.
925 * ada-lang.h (ada_decode): Update signature.
926 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
927 * dwarf-index-write.c (debug_names::insert): Update.
929 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
931 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
934 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
936 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
937 Change "nonzero" to "true" in documentation.
939 2019-09-20 Christian Biesinger <cbiesinger@google.com>
941 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
942 (_initialize_darwin_solib): Don't set
943 darwin_so_ops.lookup_lib_global_symbol.
944 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
945 set_gdbarch_iterate_over_objfiles_in_search_order.
946 (elf_lookup_lib_symbol): Rename to...
947 (svr4_iterate_over_objfiles_in_search_order): this, and update
948 to iterate semantics.
949 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
950 * solib.c (solib_global_lookup): Remove.
951 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
952 (solib_global_lookup): Remove.
953 * symtab.c (lookup_global_or_static_symbol): Remove call to
956 2019-09-20 Joel Brobecker <brobecker@adacore.com>
958 * NEWS: Move entries about default MI version now being
959 version 3, and about the GDB/MI fix for multi-location
960 breakpoints to the "since GDB 8.3" section.
962 2019-09-20 Joel Brobecker <brobecker@adacore.com>
966 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
968 * NEWS: Mention that Cell/B.E. debugging support was removed.
969 * MAINTAINERS: Remove spu target.
971 * config/djgpp/fnchange.lst: Remove entries for removed files.
973 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
974 spu-multiarch.o, and spu-tdep.o.
975 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
976 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
977 spu-multiarch.c, and spu-tdep.c.
978 * spu-linux-nat.c: Remove file.
979 * spu-multiarch.c: Remove file.
980 * spu-tdep.c: Remove file.
981 * spu-tdep.h: Remove file.
982 * solib-spu.c: Remove file.
983 * solib-spu.h: Remove file.
985 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
986 * configure.nat (spu-linux): Remove.
987 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
988 solib-multiarch.o from gdb_target_obs.
991 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
993 (ppc_linux_no_features): Update.
994 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
996 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
997 (tdesc_powerpc_cell64l): Likewise.
998 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
999 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1001 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1002 Do not include "features/rs6000/powerpc-cell32l.c" or
1003 "features/rs6000/powerpc-cell64l.c".
1004 (ppc_linux_spu_section): Remove.
1005 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1006 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1007 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1008 (ppc_linux_spe_context_lookup): Remove.
1009 (ppc_linux_spe_context_inferior_created): Remove.
1010 (ppc_linux_spe_context_solib_loaded): Remove.
1011 (ppc_linux_spe_context_solib_unloaded): Remove.
1012 (ppc_linux_spe_context): Remove.
1013 (struct ppu2spu_cache): Remove.
1014 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1015 (struct ppu2spu_data): Remove.
1016 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1017 ppu2spu_unwind): Remove.
1018 (ppc_linux_init_abi): Remove Cell/B.E. support.
1019 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1021 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1022 (rs6000/powerpc-cell64l-expedite): Likewise
1023 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1024 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1025 rs6000/powerpc-cell64l.xml.
1026 * features/rs6000/powerpc-cell32l.xml: Remove.
1027 * features/rs6000/powerpc-cell64l.xml: Likewise.
1028 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1029 * features/rs6000/powerpc-cell64l.c: Likewise.
1030 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1031 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1032 * regformats/reg-spu.dat: Remove.
1034 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1035 * corelow.c (struct spuid_list): Remove.
1036 (add_to_spuid_list): Remove.
1037 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1038 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1039 (remote_protocol_features): Remove associated entries.
1040 (_initialize_remote): No longer initialize them.
1041 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1042 * linux-nat.c (SPUFS_MAGIC): Remove.
1043 (linux_proc_xfer_spu): Remove.
1044 (spu_enumerate_spu_ids): Remove.
1045 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1046 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1047 (linux_make_corefile_notes): No longer call it.
1049 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1050 (cooked_write_test): Likewise.
1052 2019-09-20 Tom Tromey <tom@tromey.com>
1054 * NEWS: Mention case-sensitivity of TUI commands.
1055 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1056 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1057 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1059 2019-09-20 Tom Tromey <tom@tromey.com>
1061 * tui/tui-source.c (tui_source_window::set_contents): Use
1062 make_unique_xstrdup.
1063 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1064 make_unique_xstrdup.
1066 2019-09-20 Tom Tromey <tom@tromey.com>
1068 * tui/tui-data.c: Remove separator comments.
1069 * tui/tui-layout.c: Remove separator comments.
1070 * tui/tui-win.c: Remove separator comments.
1071 * tui/tui-wingeneral.c: Remove separator comments.
1073 2019-09-20 Tom Tromey <tom@tromey.com>
1075 * tui/tui.h (strcat_to_buf): Don't declare.
1076 * tui/tui.c (strcat_to_buf): Remove.
1078 2019-09-20 Tom Tromey <tom@tromey.com>
1080 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1082 * tui/tui-source.c (tui_source_window::set_contents)
1083 (tui_source_window::location_matches_p)
1084 (tui_source_window::maybe_update): Update.
1086 2019-09-20 Tom Tromey <tom@tromey.com>
1088 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1090 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1092 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1093 (tui_data_window::line_from_reg_element_no)
1094 (tui_data_window::first_reg_element_no_inline)
1095 (tui_data_window::show_registers)
1096 (tui_data_window::show_register_group)
1097 (tui_data_window::display_registers_from)
1098 (tui_data_window::display_registers_from_line)
1099 (tui_data_window::first_data_item_displayed)
1100 (tui_data_window::delete_data_content_windows)
1101 (tui_data_window::erase_data_content)
1102 (tui_data_window::do_scroll_vertical)
1103 (tui_data_window::refresh_window)
1104 (tui_data_window::check_register_values): Update.
1106 2019-09-20 Tom Tromey <tom@tromey.com>
1108 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1109 (struct tui_locator_window) <full_name, proc_name>: Now
1111 * tui/tui-stack.c (tui_locator_window::make_status_line)
1112 (tui_locator_window::set_locator_fullname)
1113 (tui_locator_window::set_locator_info): Update.
1114 * tui/tui-source.c (tui_source_window::set_contents)
1115 (tui_source_window::showing_source_p): Update.
1117 2019-09-20 Tom Tromey <tom@tromey.com>
1119 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1120 Don't call tui_locator_win_info_ptr.
1122 2019-09-20 Tom Tromey <tom@tromey.com>
1124 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1126 2019-09-20 Tom Tromey <tom@tromey.com>
1128 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1130 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1131 * tui/tui-layout.c (show_source_disasm_command, show_data)
1132 (show_source_or_disasm_and_command): Use 1 as height for locator.
1134 2019-09-20 Tom Tromey <tom@tromey.com>
1136 * tui/tui.c (tui_enable): Update.
1137 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1139 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1141 * tui/tui-data.c (win_resized): Now bool.
1142 (tui_win_resized): Return bool.
1143 (tui_set_win_resized_to): Accept a bool.
1145 2019-09-20 Tom Tromey <tom@tromey.com>
1147 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1148 Change type of "refresh_values_only".
1149 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1150 type of "refresh_values_only".
1152 2019-09-20 Tom Tromey <tom@tromey.com>
1154 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1156 (tui_disassemble): Add "pos" parameter.
1157 (tui_disasm_window::set_contents): Simplify.
1159 2019-09-20 Tom Tromey <tom@tromey.com>
1161 * tui/tui-winsource.h (struct tui_source_window_base)
1162 <show_source_content>: Now private.
1163 * tui/tui-winsource.c
1164 (tui_source_window_base::show_source_content): Don't handle empty
1167 2019-09-20 Tom Tromey <tom@tromey.com>
1169 * tui/tui-layout.c (show_source_disasm_command)
1170 (show_source_or_disasm_and_command): Don't call
1171 show_source_content.
1173 2019-09-20 Tom Tromey <tom@tromey.com>
1175 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1177 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1178 from tui_make_status_line.
1179 (tui_locator_window::rerender): Update.
1181 2019-09-20 Tom Tromey <tom@tromey.com>
1183 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1184 (tui_locator_window::rerender): Update.
1186 2019-09-20 Tom Tromey <tom@tromey.com>
1188 * tui/tui-winsource.h (struct tui_source_window_base)
1189 <~tui_source_window_base>: Don't declare.
1191 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1192 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1194 * tui/tui-source.c (tui_source_window::set_contents): Update.
1195 (tui_source_window::location_matches_p)
1196 (tui_source_window::maybe_update): Update.
1198 2019-09-20 Tom Tromey <tom@tromey.com>
1200 * tui/tui-winsource.h (~tui_source_element): Remove.
1201 (tui_source_element): Update.
1202 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1203 * tui/tui-winsource.c (tui_show_source_line): Update.
1204 * tui/tui-source.c (tui_source_window::set_contents): Update.
1205 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1207 2019-09-20 Tom Tromey <tom@tromey.com>
1209 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1211 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1212 tui_clear_source_windows_detail.
1213 * tui/tui-winsource.h (struct tui_source_window_base)
1214 <clear_detail>: Don't declare.
1215 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1217 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1219 2019-09-20 Tom Tromey <tromey@adacore.com>
1222 * block.c (contained_in): Fix final return value.
1224 2019-09-20 Alan Modra <amodra@gmail.com>
1226 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1227 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1228 (read_indirect_string_from_dwz): Use bfd accessor.
1229 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1230 * machoread.c (macho_symfile_read_all_oso): Likewise.
1231 * solib.c (solib_bfd_open): Likewise.
1233 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1235 * eval.c: Move declaration of overload_resolution to...
1238 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1240 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1241 * arm-linux-tdep.c: Likewise.
1242 * arm-nbsd-nat.c: Likewise.
1243 * arm-tdep.h: Declare arm_apcs_32.
1244 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1246 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1248 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1249 * dwarf2read.h: Declare dwarf_always_disassemble.
1251 2019-09-19 Tom de Vries <tdevries@suse.de>
1254 * source-cache.c (source_cache::ensure): Catch exception thrown during
1255 construction of the highlighter.
1257 2019-09-18 Alan Modra <amodra@gmail.com>
1259 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1260 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1261 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1262 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1263 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1264 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1265 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1266 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1267 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1268 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1269 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1270 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1271 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1272 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1273 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1274 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1275 * mi/mi-interp.c: Update throughout for bfd section macro and
1277 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1278 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1280 2019-09-18 Tom Tromey <tom@tromey.com>
1283 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1285 (tui_enable): Do not call rl_initialize.
1287 2019-09-18 Christian Groessler <chris@groessler.org>
1289 * alpha-linux-nat.c: Include gdbarch.h.
1291 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1293 * ui-file.c: Include cli/cli-style.h.
1294 (term_cli_styling): Remove cli_styling declaration.
1296 2019-09-18 Alan Modra <amodra@gmail.com>
1298 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1299 to bfd_asymbol_section.
1301 2019-09-18 Alan Modra <amodra@gmail.com>
1303 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1304 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1305 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1307 2019-09-18 Alan Modra <amodra@gmail.com>
1309 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1310 * spu-linux-nat.c (spu_bfd_open): Likewise.
1312 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1314 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1315 to bool to match definition in dwarf2read.c.
1317 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1319 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1320 (print_signatures): Likewise.
1321 (trust_pad_over_xvs): Likewise.
1322 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1323 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1324 * arm-linux-nat.c (arm_apcs_32): Likewise.
1325 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1326 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1327 * arm-tdep.c (arm_debug): Likewise.
1328 (arm_apcs_32): Likewise.
1329 * auto-load.c (debug_auto_load): Likewise.
1330 (auto_load_gdb_scripts): Likewise.
1331 (global_auto_load): Likewise.
1332 (auto_load_local_gdbinit): Likewise.
1333 (auto_load_local_gdbinit_loaded): Likewise.
1334 * auto-load.h (global_auto_load): Likewise.
1335 (auto_load_local_gdbinit): Likewise.
1336 (auto_load_local_gdbinit_loaded): Likewise.
1337 * breakpoint.c (disconnected_dprintf): Likewise.
1338 (breakpoint_proceeded): Likewise.
1339 (automatic_hardware_breakpoints): Likewise.
1340 (always_inserted_mode): Likewise.
1341 (target_exact_watchpoints): Likewise.
1342 (_initialize_breakpoint): Update.
1343 * breakpoint.h (target_exact_watchpoints): Change to bool.
1344 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1345 * cli/cli-cmds.c (trace_commands): Likewise.
1346 * cli/cli-cmds.h (trace_commands): Likewise.
1347 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1349 * cli/cli-logging.c (logging_overwrite): Change to bool.
1350 (logging_redirect): Likewise.
1351 (debug_redirect): Likewise.
1352 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1353 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1355 <boolean_option_def>: Update.
1356 (struct flag_option_def): Change default type of Context to bool
1358 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1359 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1360 (get_setshow_command_value_string): Likewise.
1361 * cli/cli-style.c (cli_styling): Change to bool.
1362 (source_styling): Likewise.
1363 * cli/cli-style.h (source_styling): Likewise.
1364 (cli_styling): Likewise.
1365 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1367 * command.h (var_types): Update comment.
1368 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1369 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1371 (debug_compile_cplus_scopes): Likewise.
1372 * compile/compile-internal.h (compile_debug): Likewise.
1373 * compile/compile.c (compile_debug): Likewise.
1374 (struct compile_options) <raw>: Likewise.
1375 * cp-support.c (catch_demangler_crashes): Likewise.
1376 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1377 (usr_cmd_cris_dwarf2_cfi): Likewise.
1378 * csky-tdep.c (csky_debug): Likewise.
1379 * darwin-nat.c (enable_mach_exceptions): Likewise.
1380 * dcache.c (dcache_enabled_p): Likewise.
1381 * defs.h (info_verbose): Likewise.
1382 * demangle.c (demangle): Likewise.
1383 (asm_demangle): Likewise.
1384 * dwarf-index-cache.c (debug_index_cache): Likewise.
1385 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1386 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1387 * dwarf2read.c (check_physname): Likewise.
1388 (use_deprecated_index_sections): Likewise.
1389 (dwarf_always_disassemble): Likewise.
1390 * eval.c (overload_resolution): Likewise.
1391 * event-top.c (set_editing_cmd_var): Likewise.
1392 (exec_done_display_p): Likewise.
1393 * event-top.h (set_editing_cmd_var): Likewise.
1394 (exec_done_display_p): Likewise.
1395 * exec.c (write_files): Likewise.
1396 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1397 (debug_fbsd_nat): Likewise.
1398 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1400 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1401 <backtrace_past_entry> Likewise.
1402 * gdb-demangle.h (demangle): Likewise.
1403 (asm_demangle): Likewise.
1404 * gdb_bfd.c (bfd_sharing): Likewise.
1405 * gdbcore.h (write_files): Likewise.
1406 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1407 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1408 * gdbthread.h (print_thread_events): Likewise.
1409 * gdbtypes.c (opaque_type_resolution): Likewise.
1410 (strict_type_checking): Likewise.
1411 * gnu-nat.c (gnu_debug_flag): Likewise.
1412 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1413 * guile/scm-param.c (pascm_variable): Add boolval.
1414 (add_setshow_generic): Update.
1415 (pascm_param_value): Update.
1416 (pascm_set_param_value_x): Update.
1417 * hppa-tdep.c (hppa_debug): Change to bool..
1418 * infcall.c (may_call_functions_p): Likewise.
1419 (coerce_float_to_double_p): Likewise.
1420 (unwind_on_signal_p): Likewise.
1421 (unwind_on_terminating_exception_p): Likewise.
1422 * infcmd.c (startup_with_shell): Likewise.
1423 * inferior.c (print_inferior_events): Likewise.
1424 * inferior.h (startup_with_shell): Likewise.
1425 (print_inferior_events): Likewise.
1426 * infrun.c (step_stop_if_no_debug): Likewise.
1427 (detach_fork): Likewise.
1428 (debug_displaced): Likewise.
1429 (disable_randomization): Likewise.
1430 (non_stop): Likewise.
1431 (non_stop_1): Likewise.
1432 (observer_mode): Likewise.
1433 (observer_mode_1): Likewise.
1434 (set_observer_mode): Update.
1435 (sched_multi): Change to bool.
1436 * infrun.h (debug_displaced): Likewise.
1437 (sched_multi): Likewise.
1438 (step_stop_if_no_debug): Likewise.
1439 (non_stop): Likewise.
1440 (disable_randomization): Likewise.
1441 * linux-tdep.c (use_coredump_filter): Likewise.
1442 (dump_excluded_mappings): Likewise.
1443 * linux-thread-db.c (auto_load_thread_db): Likewise.
1444 (check_thread_db_on_load): Likewise.
1445 * main.c (captured_main_1): Update.
1446 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1447 xx2_opt, boolean_opt>: Change to bool.
1448 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1449 * maint.c (maintenance_profile_p): Likewise.
1450 (per_command_time): Likewise.
1451 (per_command_space): Likewise.
1452 (per_command_symtab): Likewise.
1453 * memattr.c (inaccessible_by_default): Likewise.
1454 * mi/mi-main.c (mi_async): Likewise.
1455 (mi_async_1): Likewise.
1456 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1457 * nat/fork-inferior.h (startup_with_shell): Likewise.
1458 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1459 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1460 * nios2-tdep.c (nios2_debug): Likewise.
1461 * or1k-tdep.c (or1k_debug): Likewise.
1462 * parse.c (parser_debug): Likewise.
1463 * parser-defs.h (parser_debug): Likewise.
1464 * printcmd.c (print_symbol_filename): Likewise.
1465 * proc-api.c (procfs_trace): Likewise.
1466 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1467 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1468 (set_parameter_value): Update.
1469 (add_setshow_generic): Update.
1470 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1472 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1474 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1475 * record-btrace.c (record_btrace_target::store_registers): Update.
1476 * record-full.c (record_full_memory_query): Change to bool.
1477 (record_full_stop_at_limit): Likewise.
1478 * record-full.h (record_full_memory_query): Likewise.
1479 * remote-notif.c (notif_debug): Likewise.
1480 * remote-notif.h (notif_debug): Likewise.
1481 * remote.c (use_range_stepping): Likewise.
1482 (interrupt_on_connect): Likewise.
1483 (remote_break): Likewise.
1484 * ser-tcp.c (tcp_auto_retry): Likewise.
1485 * ser-unix.c (serial_hwflow): Likewise.
1486 * skip.c (debug_skip): Likewise.
1487 * solib-aix.c (solib_aix_debug): Likewise.
1488 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1489 (spu_auto_flush_cache_p): Likewise.
1490 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1492 (struct info_print_options) <quiet>: Likewise.
1493 * symfile-debug.c (debug_symfile): Likewise.
1494 * symfile.c (auto_solib_add): Likewise.
1495 (separate_debug_file_debug): Likewise.
1496 * symfile.h (auto_solib_add): Likewise.
1497 (separate_debug_file_debug): Likewise.
1498 * symtab.c (basenames_may_differ): Likewise.
1499 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1500 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1501 (struct info_types_options) <quiet>: Likewise.
1502 * symtab.h (demangle): Likewise.
1503 (basenames_may_differ): Likewise.
1504 * target-dcache.c (stack_cache_enabled_1): Likewise.
1505 (code_cache_enabled_1): Likewise.
1506 * target.c (trust_readonly): Likewise.
1507 (may_write_registers): Likewise.
1508 (may_write_memory): Likewise.
1509 (may_insert_breakpoints): Likewise.
1510 (may_insert_tracepoints): Likewise.
1511 (may_insert_fast_tracepoints): Likewise.
1512 (may_stop): Likewise.
1513 (auto_connect_native_target): Likewise.
1514 (target_stop_and_wait): Update.
1515 (target_async_permitted): Change to bool.
1516 (target_async_permitted_1): Likewise.
1517 (may_write_registers_1): Likewise.
1518 (may_write_memory_1): Likewise.
1519 (may_insert_breakpoints_1): Likewise.
1520 (may_insert_tracepoints_1): Likewise.
1521 (may_insert_fast_tracepoints_1): Likewise.
1522 (may_stop_1): Likewise.
1523 * target.h (target_async_permitted): Likewise.
1524 (may_write_registers): Likewise.
1525 (may_write_memory): Likewise.
1526 (may_insert_breakpoints): Likewise.
1527 (may_insert_tracepoints): Likewise.
1528 (may_insert_fast_tracepoints): Likewise.
1529 (may_stop): Likewise.
1530 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
1531 (make_thread_apply_all_options_def_group): Change argument from int*
1533 (thread_apply_all_command): Update.
1534 (print_thread_events): Change to bool.
1535 * top.c (confirm): Likewise.
1536 (command_editing_p): Likewise.
1537 (history_expansion_p): Likewise.
1538 (write_history_p): Likewise.
1539 (info_verbose): Likewise.
1540 * top.h (confirm): Likewise.
1541 (history_expansion_p): Likewise.
1542 * tracepoint.c (disconnected_tracing): Likewise.
1543 (circular_trace_buffer): Likewise.
1544 * typeprint.c (print_methods): Likewise.
1545 (print_typedefs): Likewise.
1546 * utils.c (debug_timestamp): Likewise.
1547 (sevenbit_strings): Likewise.
1548 (pagination_enabled): Likewise.
1549 * utils.h (sevenbit_strings): Likewise.
1550 (pagination_enabled): Likewise.
1551 * valops.c (overload_resolution): Likewise.
1552 * valprint.h (struct value_print_options) <prettyformat_arrays,
1553 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
1554 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
1555 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
1557 * windows-nat.c (new_console): Likewise.
1558 (cygwin_exceptions): Likewise.
1559 (new_group): Likewise.
1560 (debug_exec): Likewise.
1561 (debug_events): Likewise.
1562 (debug_memory): Likewise.
1563 (debug_exceptions): Likewise.
1564 (useshell): Likewise.
1565 * windows-tdep.c (maint_display_all_tib): Likewise.
1566 * xml-support.c (debug_xml): Likewise.
1568 2019-09-17 Mike Gulick <mgulick@mathworks.com>
1570 * source.c (prepare_path_for_appending): New function.
1571 (openp): Make use of new function.
1572 (find_and_open_source): Search for the compilation directory and
1573 source file as a relative path beneath the directory search path.
1575 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
1577 * source-cache.c (source_cache::get_line_charpos): Catch
1578 exceptions and return false, this matches the behaviour documented
1581 2019-09-17 Joel Brobecker <brobecker@adacore.com>
1583 * ada-tasks.c (info_task): Remove quoting of the task's name.
1585 2019-09-16 Christian Biesinger <cbiesinger@google.com>
1587 * symfile.c (auto_solib_add): Replace comment with a reference
1590 2019-09-14 Christian Biesinger <cbiesinger@google.com>
1592 * NEWS: Mention that gdb can now be compiled with Python 3
1595 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1597 * maint.c (maint_print_section_data::maint_print_section_data):
1598 Force use of 'float log10 (float)' by casting the argument to
1601 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1603 * maint.c: Add 'cmath' include.
1604 (struct maint_print_section_data): New structure.
1605 (print_section_index): New function.
1606 (print_bfd_section_info): Add header comment, small whitespace
1607 cleanup, and update to call new print_section_index function.
1608 (print_objfile_section_info): Likewise.
1609 (maint_obj_section_from_bfd_section): New function.
1610 (print_bfd_section_info_maybe_relocated): New function.
1611 (maintenance_info_sections): Add header comment, always use
1612 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
1614 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
1616 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
1617 inner scope, add check that the objfile has psymtabs before
1618 checking psymtabs_addrmap.
1619 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
1621 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1623 * NEWS: Announce that Ada task names are now shown at more places,
1624 and between quotes (except in info task output).
1625 * gdb/ada-tasks.c (task_to_str): New function.
1626 (display_current_task_id): Call task_to_str.
1627 (task_command_1): Likewise.
1628 (print_ada_task_info): In non-mi mode, Properly align headers and data
1629 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
1631 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1633 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
1634 prstatus.pr_lwp.pr_info instead of making it up.
1636 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1638 * auto-load.c (auto_load_expand_dir_vars): Update.
1639 * defs.h (gdb_datadir): Change to std::string.
1640 (python_libdir): Likewise.
1641 (relocate_gdb_directory): Change return type to std::string.
1642 * guile/guile.c (gdbscm_data_directory): Update.
1643 (initialize_scheme_side): Update.
1644 * jit.c (jit_reader_dir): Change to std::string.
1645 (jit_reader_load_command): Update.
1646 * main.c (gdb_datadir): Change to std::string.
1647 (python_libdir): Likewise.
1648 (set_gdb_data_directory): Update.
1649 (relocate_path): Change to return std::string.
1650 (relocate_gdb_directory): Change to return std::string.
1651 (relocate_gdbinit_path_maybe_in_datadir): Update.
1652 (captured_main_1): Update.
1653 * python/python.c (do_start_initialization): Update.
1654 * top.c (show_gdb_datadir): Update.
1655 * xml-syscall.c (xml_init_syscalls_info): Update.
1656 (init_syscalls_info): Update.
1658 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1660 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
1661 out of get_init_files.
1662 (get_init_files): Update.
1664 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1666 * main.c (get_init_files): Change to use std::string.
1667 (captured_main_1): Update.
1668 (print_gdb_help): Update.
1670 2019-09-11 Ali Tamur <tamur@google.com>
1672 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
1675 2019-09-11 Christian Biesinger <cbiesinger@google.com>
1677 * dbxread.c (read_dbx_symtab): Update.
1678 * dwarf2read.c (load_partial_dies): Update.
1679 * mdebugread.c (parse_partial_symbols): Update.
1680 (handle_psymbol_enumerators): Update.
1681 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
1682 * psymtab.c (add_psymbol_to_bcache): Likewise.
1683 (add_psymbol_to_list): Likewise.
1684 * symtab.c (symbol_set_names): Likewise.
1685 * symtab.h (symbol_set_names): Likewise.
1686 * xcoffread.c (scan_xcoff_symtab): Update.
1688 2019-09-11 Tom Tromey <tom@tromey.com>
1690 * symfile-mem.c (symbol_file_add_from_memory): Use
1692 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
1693 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
1695 2019-09-10 Tom Tromey <tromey@adacore.com>
1697 * dwarf-index-write.c (write_psymbols): Extend error message.
1698 (debug_names::insert): Add Ada code.
1699 (debug_names::write_psymbols): Remove Ada check.
1700 (debug_names) <m_string_obstack>: New member.
1701 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
1702 (gdb_index_symbol_name_matcher::matches): Remove.
1703 (mapped_index_base::find_name_components_bounds): Add "lang"
1705 (mapped_index_base::build_name_components): Also split names
1706 according to Ada syntax.
1707 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
1708 type of "match_callback".
1709 (check_match, check_find_bounds_finds)
1710 (dw2_expand_symtabs_matching): Update.
1711 (dw2_debug_names_iterator): Add new constructor.
1712 (dw2_debug_names_map_matching_symbols): New function.
1713 (dw2_debug_names_expand_symtabs_matching): Update.
1714 (dwarf2_debug_names_functions): Use
1715 dw2_debug_names_map_matching_symbols.
1717 2019-09-10 Tom Tromey <tromey@adacore.com>
1719 * dwarf2read.c (dw2_get_file_names_reader): Add the
1720 CU's file name to the results.
1722 2019-09-10 Tom Tromey <tromey@adacore.com>
1724 * ada-lang.c (add_nonlocal_symbols): Combine calls to
1725 map_matching_symbols. Update.
1726 * dwarf2read.c (dw2_map_matching_symbols): Update.
1727 * psymtab.c (match_partial_symbol): Change type; update.
1728 (psym_map_matching_symbols): Likewise.
1729 * symfile-debug.c (debug_qf_map_matching_symbols): Change
1731 * symfile.h (struct quick_symbol_functions)
1732 <map_matching_symbols>: Change "name" to be a lookup_name_info.
1735 2019-09-10 Tom Tromey <tromey@adacore.com>
1737 * psymtab.c (map_block): Remove.
1738 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
1739 * symtab.c (iterate_over_symbols_terminated): New function.
1740 * symtab.c (iterate_over_symbols_terminated): Declare.
1742 2019-09-10 Tom Tromey <tromey@adacore.com>
1744 * ada-lang.c (ada_iterate_over_symbols): Return bool.
1745 * language.h (struct language_defn) <la_iterate_over_symbols>:
1747 * symtab.c (iterate_over_symbols): Return bool.
1748 * symtab.h (iterate_over_symbols): Return bool.
1750 2019-09-10 Tom Tromey <tromey@adacore.com>
1752 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
1753 (add_nonlocal_symbols): Update.
1754 * dwarf2read.c (dw2_map_matching_symbols): Change type.
1755 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
1756 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
1757 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
1758 Change type of "callback". Remove "data".
1761 2019-09-09 Ali Tamur <tamur@google.com>
1763 * dwarf2read.c (comp_unit_head): Update comment.
1764 (dwarf2_dwo_name): New function declaration.
1765 (dwarf_unit_type_name): New function declaration.
1766 (read_comp_unit_head): Add support for new compilation units,
1767 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
1768 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
1769 (currently named as "signature") in their header. Also clarify error
1771 (lookup_dwo_id): New function. Returns the dwo id of the given
1773 (lookup_dwo_unit): Use the new lookup_dwo_id function.
1774 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
1776 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
1777 (dwarf2_dwo_name): Get the dwo name if present.
1778 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
1781 2019-09-09 Tom Tromey <tom@tromey.com>
1783 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
1785 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1787 * python/python.c (do_start_initialization): Make progname_copy static,
1788 to avoid a leak report.
1790 2019-09-08 Tom Tromey <tom@tromey.com>
1792 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
1794 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
1796 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
1797 Change type to gdb::optional<block_enum>.
1798 (dw2_symtab_iter_init): Change block_index parameter type
1799 to gdb::optional<block_enum>.
1800 (dw2_lookup_symbol): Change block_index parameter
1801 type to block_enum.c
1802 (dw2_debug_names_lookup_symbol): Likewise.
1803 * psymtab.c (psym_lookup_symbol): Likewise.
1804 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
1805 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1808 2019-09-06 Christian Biesinger <cbiesinger@google.com>
1810 * defs.h (relocate_gdb_directory): Change int to bool in
1811 signature and rename flag to relocatable.
1812 * main.c (relocate_path): Likewise.
1813 (relocate_gdb_directory): Likewise.
1815 2019-09-06 Alan Modra <amodra@gmail.com>
1817 * coffread.c (coff_symfile_read): Constify filename variable.
1818 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
1819 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
1820 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
1821 * solib.c (reload_shared_libraries_1): Likewise.
1822 * symfile.c (reread_symbols): Likewise.
1823 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
1824 * solib-darwin.c (darwin_bfd_open): Likewise.
1825 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1827 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1829 * psymtab.c (print_partial_symbols): Handle missing domain_enum
1830 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
1832 2019-09-03 Tom Tromey <tromey@adacore.com>
1834 * ada-valprint.c (ada_val_print_num): Don't recurse for range
1836 (has_negatives): Unbias a range type bound.
1837 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
1838 * gdbtypes.c (operator==): Handle new field.
1839 (create_range_type): Add "bias" parameter.
1840 (create_static_range_type, resolve_dynamic_range): Update.
1841 * gdbtypes.h (struct range_bounds) <bias>: New member.
1842 (create_range_type): Add bias parameter.
1843 * printcmd.c (print_scalar_formatted): Unbias range types.
1844 * value.c (unpack_long): Unbias range types.
1845 (pack_long): Bias range types.
1847 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1849 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
1852 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1854 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
1855 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
1856 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
1857 (compile_probe_arg): Likewise.
1858 * probe.h (get_argument_count): Likewise.
1859 * solib-svr4.c (solib_event_probe_action): Likewise.
1860 * stap-probe.c (stap_probe::get_argument_count): Likewise.
1862 2019-09-02 Alan Hayward <alan.hayward@arm.com>
1864 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
1866 (svr4_create_solib_event_breakpoints): ...from here.
1868 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
1870 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
1871 suffix from warning message.
1873 2019-08-30 Tom Tromey <tom@tromey.com>
1875 * tui/tui-winsource.h (struct tui_source_window_base)
1876 <refresh_all>: Don't declare.
1877 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
1879 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
1880 tui_show_locator_content.
1881 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
1883 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
1884 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
1887 2019-08-30 Tom Tromey <tom@tromey.com>
1889 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
1891 2019-08-30 Tom Tromey <tom@tromey.com>
1893 * tui/tui-stack.c (_initialize_tui_stack): Move later.
1894 Remove unnecessary forward declarations.
1896 2019-08-30 Tom Tromey <tom@tromey.com>
1898 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
1900 (tui_update_locator_fullname, tui_show_frame_info): Don't call
1901 tui_show_locator_content.
1903 2019-08-30 Tom Tromey <tom@tromey.com>
1905 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
1906 (tui_locator_window::rerender): Rewrite using body of previous
1907 tui_show_locator_content.
1909 2019-08-30 Tom Tromey <tom@tromey.com>
1911 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
1912 set_locator_fullname>: New methods.
1913 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1914 Rename from tui_set_locator_fullname.
1915 (tui_locator_window::set_locator_info): Rename from
1916 tui_set_locator_info. Return bool.
1917 (tui_update_locator_fullname, tui_show_frame_info): Update.
1919 2019-08-30 Tom Tromey <tom@tromey.com>
1921 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
1923 2019-08-30 Tom Tromey <tom@tromey.com>
1925 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
1928 2019-08-30 Tom Tromey <tom@tromey.com>
1930 * tui/tui-wingeneral.c (box_win): Assume win_info and
1931 win_info->handle cannot be NULL.
1933 2019-08-30 Tom Tromey <tom@tromey.com>
1935 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
1936 refresh_window>: Declare.
1937 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
1939 (tui_data_item_window::rerender): Rename from
1940 tui_display_register.
1941 (tui_data_item_window::refresh_window): New method.
1942 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
1945 2019-08-30 Tom Tromey <tom@tromey.com>
1947 * tui/tui-regs.h (struct tui_data_window) <regs_content,
1948 regs_column_count, current_group>: Move later. Now private.
1949 <get_current_group>: New method.
1950 * tui/tui-regs.c (tui_reg_command): Update.
1951 * tui/tui-layout.c (tui_set_layout): Update.
1953 2019-08-30 Tom Tromey <tom@tromey.com>
1955 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
1956 (tui_data_window::rerender): Don't call
1957 check_and_display_highlight_if_needed.
1958 (tui_data_window::refresh_all): Remove call to
1961 2019-08-30 Tom Tromey <tom@tromey.com>
1963 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1964 (tui_data_window::display_registers_from)
1965 (tui_data_window::display_reg_element_at_line)
1966 (tui_data_window::display_registers_from_line): Remove checks of
1969 2019-08-30 Tom Tromey <tom@tromey.com>
1971 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
1973 * tui/tui-regs.c (tui_data_window::show_registers): Call
1975 (tui_data_window::rerender): Rename from display_all_data.
1976 (tui_data_window::rerender): Remove old implementation.
1978 2019-08-30 Tom Tromey <tom@tromey.com>
1980 * tui/tui-regs.c (tui_data_window::display_all_data): Change
1982 * tui/tui-data.h (NO_DATA_STRING): Remove define.
1984 2019-08-29 Bernhard Wodok <barto@gmx.net>
1985 Sergio Durigan Junior <sergiodj@redhat.com>
1988 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
1990 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1992 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
1993 when searching for types.
1995 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
1997 * f-lang.c (f_language_defn): Use f_print_typedef.
1998 * f-lang.h (f_print_typedef): Declare.
1999 * f-typeprint.c (f_print_typedef): Define.
2001 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2003 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2005 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2007 * cli/cli-utils.c (info_print_options_defs): Delete.
2008 (make_info_print_options_def_group): Delete.
2009 (extract_info_print_options): Delete.
2010 (info_print_command_completer): Delete.
2011 (info_print_args_help): Add extra parameter, and optionally
2012 include text about -n flag.
2013 * cli/cli-utils.h (struct info_print_options): Delete.
2014 (extract_info_print_options): Delete declaration.
2015 (info_print_command_completer): Delete declaration.
2016 (info_print_args_help): Add extra parameter, extend header
2018 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2020 * stack.c (struct info_print_options): New type.
2021 (info_print_options_defs): New file scoped variable.
2022 (make_info_print_options_def_group): New static function.
2023 (info_print_command_completer): New static function.
2024 (info_locals_command): Update to use new local functions.
2025 (info_args_command): Likewise.
2026 (_initialize_stack): Add extra parameter to calls to
2027 info_print_args_help.
2028 * symtab.c (search_symbols): Add extra parameter, use this to
2029 possibly excluse non-debug symbols.
2030 (symtab_symbol_info): Add extra parameter, which is passed on to
2032 (struct info_print_options): New type.
2033 (info_print_options_defs): New file scoped variable.
2034 (make_info_print_options_def_group): New static function.
2035 (info_print_command_completer): New static function.
2036 (info_variables_command): Update to use local functions, and pass
2037 extra parameter through to symtab_symbol_info.
2038 (info_functions_command): Likewise.
2039 (info_types_command): Pass additional argument through to
2041 (rbreak_command): Pass extra argument to search_symbols.
2042 (_initialize_symtab): Add extra arguments for calls to
2043 info_print_args_help, and update help text for 'info variables',
2044 'whereis', and 'info functions' commands.
2045 * symtab.h (search_symbols): Add extra argument to declaration.
2046 * NEWS: Mention new flags.
2048 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2050 * symtab.c (lookup_static_symbol): Call the new function (and move
2051 it down to be next to lookup_global_symbol).
2052 (struct global_sym_lookup_data): Add block_enum member and rename to...
2053 (struct global_or_static_sym_lookup_data): ...this.
2054 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2055 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2056 (lookup_symbol_global_or_static_iterator_cb): ...this.
2057 (lookup_global_or_static_symbol): New function.
2058 (lookup_global_symbol): Call new function.
2060 2019-08-26 Tom de Vries <tdevries@suse.de>
2063 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2064 when pc_probe.prob == NULL.
2066 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2068 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2069 variable symbol_linkage to symbol_linkage_.
2071 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2073 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2074 represent whether the symbol is static, dynamic, or we don't
2077 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2079 * gdb/rx-tdep.c (rx_register_names): New.
2080 (rx_register_name): Delete.
2081 (rx_psw_type): Delete.
2082 (rx_fpsw_type): Delete.
2083 (rx_register_type): Delete.
2084 (rx_gdbarch_init): Convert target-descriptions.
2085 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2086 * gdb/features/Makefile: Add rx.xml.
2087 * gdb/features/rx.xml: New.
2088 * gdb/features/rx.c: Generated.
2089 * gdb/NEWS: Mention target description support.
2091 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2093 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2096 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2098 * configure.ac: Don't check for 'dlfcn.h' (moved to
2099 gdbsupport/common.m4).
2100 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2102 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2103 * compile/compile-c-support.c: Include
2104 'gdbsupport/gdb-dlfcn.h'.
2105 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2106 * gdb-dlfcn.c: Move to...
2107 * gdbsupport/gdb-dlfcn.c: ... here.
2108 * gdb-dlfcn.h: Move to...
2109 * gdbsupport/gdb-dlfcn.h: ... here.
2111 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2113 * nios2-tdep.c (struct reg_value): Improve comments. Make
2114 the offset field signed.
2116 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2118 * python/lib/gdb/__init__.py (_execute_file): New function.
2119 * python/python.c (python_run_simple_file): Call gdb._execute_file
2122 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2124 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2125 all uses as this was never set to anything but a zero value.
2127 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2129 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2131 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2133 * tui/tui-data.h (tui_gen_win_info): Add an =default
2134 move constructor, required by some GCC versions.
2136 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2138 * go32-nat.c (go32_sysinfo): Add hygon_p.
2140 2019-08-20 Tom Tromey <tom@tromey.com>
2142 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2143 line_from_reg_element_no, first_reg_element_no_inline,
2144 display_all_data, delete_data_content_windows,
2145 erase_data_content>: Now private.
2147 2019-08-20 Tom Tromey <tom@tromey.com>
2149 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2150 (tui_unhighlight_win, tui_highlight_win)
2151 (tui_win_info::make_window): Update.
2152 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2154 2019-08-20 Tom Tromey <tom@tromey.com>
2156 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2157 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2158 (MAX_PID_WIDTH): Move to tui-stack.c.
2159 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2160 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2161 (MAX_PID_WIDTH): Move from tui-data.h.
2163 2019-08-20 Tom Tromey <tom@tromey.com>
2165 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2166 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2168 (tui_gen_win_info::make_window): Rename from tui_make_window.
2169 (tui_win_info::make_window): New method.
2170 (tui_gen_win_info::make_visible): Update.
2171 * tui/tui-source.c (tui_source_window::set_contents): Update.
2172 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2173 (tui_data_window::display_registers_from): Update.
2174 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2175 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2179 (struct tui_win_info) <make_window>: Declare.
2180 <can_box>: Now virtual.
2181 <title>: New member.
2182 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2183 * tui/tui-command.c (tui_cmd_window::resize): Update.
2185 2019-08-20 Tom Tromey <tom@tromey.com>
2187 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2188 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2189 (tui_data_window::check_register_values): Update.
2191 2019-08-20 Tom Tromey <tom@tromey.com>
2193 * tui/tui-regs.h (struct tui_data_window): Use
2194 DISABLE_COPY_AND_ASSIGN.
2195 <regs_content>: Change type, removing unique_ptr.
2196 <tui_data_window>: Add move constructor.
2197 * tui/tui-regs.c (tui_data_window::show_registers)
2198 (tui_data_window::show_register_group)
2199 (tui_data_window::display_registers_from)
2200 (tui_data_window::display_registers_from)
2201 (tui_data_window::first_data_item_displayed)
2202 (tui_data_window::delete_data_content_windows)
2203 (tui_data_window::rerender, tui_data_window::refresh_window)
2204 (tui_data_window::check_register_values): Update.
2206 2019-08-20 Tom Tromey <tom@tromey.com>
2208 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2209 show_register_group>: Declare.
2210 (tui_show_register_group): Don't declare.
2211 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2213 (tui_data_window::show_register_group): Rename from
2214 tui_show_register_group.
2215 (tui_data_window::check_register_values, tui_reg_command):
2217 * tui/tui-layout.c (tui_set_layout): Update.
2219 2019-08-20 Tom Tromey <tom@tromey.com>
2221 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2223 (tui_check_register_values): Don't declare.
2224 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2225 from tui_check_register_values.
2226 * tui/tui-hooks.c (tui_register_changed): Update.
2228 2019-08-20 Tom Tromey <tom@tromey.com>
2230 * tui/tui-regs.c (tui_reg_layout): Move later.
2231 (tui_show_registers): Don't enable TUI mode or change layout.
2233 2019-08-20 Tom Tromey <tom@tromey.com>
2235 * tui/tui-regs.h (struct tui_data_item_window)
2236 <~tui_data_item_window>: Remove.
2237 <content>: Now a unique_xmalloc_ptr.
2238 * tui/tui-regs.c (tui_register_format): Return a
2240 (tui_get_register): Update.
2241 (~tui_data_item_window): Remove.
2242 (tui_data_window::display_registers_from, tui_display_register):
2244 * tui/tui-io.h (tui_expand_tabs): Update.
2245 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2246 Remove "col" parameter.
2248 2019-08-20 Tom Tromey <tom@tromey.com>
2250 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2252 * tui/tui-regs.c (~tui_data_item_window): Update.
2254 2019-08-20 Tom Tromey <tom@tromey.com>
2256 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2259 2019-08-20 Tom Tromey <tom@tromey.com>
2261 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2263 2019-08-20 Tom Tromey <tom@tromey.com>
2265 * tui/tui-source.h (struct tui_source_window): Update.
2266 * tui/tui-regs.c (tui_show_registers): Update.
2267 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2268 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2269 (NO_REGS_STRING): Remove defines.
2271 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2273 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2274 unnecessary thread walk if remote doesn't support the packet.
2276 2019-08-19 Tom Tromey <tromey@adacore.com>
2278 * python/py-value.c (value_has_field): Fix indentation.
2280 2019-08-19 Tom Tromey <tromey@adacore.com>
2282 * printcmd.c (do_one_display, info_display_command): Update.
2283 * block.h (contained_in): Return bool. Add allow_nested
2285 * block.c (contained_in): Return bool. Add allow_nested
2288 2019-08-19 Tom Tromey <tom@tromey.com>
2290 * configure: Rebuild.
2291 * configure.ac: Disallow the combination of -static-libstdc++ and
2293 * source-cache.c (get_language_name): Handle rust.
2294 (source_cache::get_source_lines): Ignore highlighting exceptions.
2296 2019-08-16 Tom Tromey <tom@tromey.com>
2298 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2299 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2300 (struct tui_source_window_base) <make_visible, refresh_window,
2301 resize>: Remove methods.
2302 <execution_info>: Remove field.
2303 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2304 (tui_show_source_line, tui_source_window_base)
2305 (~tui_source_window_base): Update.
2306 (tui_source_window_base::resize)
2307 (tui_source_window_base::make_visible)
2308 (tui_source_window_base::refresh_window): Remove.
2309 (tui_source_window_base::update_exec_info): Update.
2310 * tui/tui-source.c (tui_source_window::set_contents): Update.
2311 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2313 2019-08-16 Tom Tromey <tom@tromey.com>
2315 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2316 deprecated_query_hook.
2318 2019-08-16 Tom Tromey <tom@tromey.com>
2320 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2321 (tui_update_source_windows_with_line): Update.
2322 * tui/tui-source.h (struct tui_source_window)
2323 <show_symtab_source>: Declare.
2324 (tui_show_symtab_source): Don't declare.
2325 * tui/tui-source.c (tui_show_symtab_source): Rename from
2326 tui_show_symtab_source.
2328 2019-08-16 Tom Tromey <tom@tromey.com>
2330 * tui/tui-winsource.h (struct tui_source_window_base)
2331 <set_contents>: Declare.
2332 * tui/tui-winsource.c
2333 (tui_source_window_base::update_source_window_as_is): Update.
2334 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2336 (tui_set_source_content): Don't declare.
2337 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2338 tui_set_source_content.
2339 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2341 (tui_set_disassem_content): Don't declare.
2342 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2343 tui_set_disassem_content.
2345 2019-08-16 Tom Tromey <tom@tromey.com>
2347 * tui/tui-winsource.h (struct tui_source_window_base)
2348 <update_breakpoint_info>: Declare.
2349 (tui_update_breakpoint_info): Don't declare.
2350 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2351 (tui_update_all_breakpoint_info): Update.
2352 (tui_source_window_base::update_breakpoint_info): Rename from
2353 tui_update_breakpoint_info.
2354 (tui_source_window_base::update_exec_info): Update.
2356 2019-08-16 Tom Tromey <tom@tromey.com>
2358 * tui/tui-winsource.h (struct tui_source_window_base)
2359 <update_source_window>: Declare.
2360 (tui_update_source_window): Don't declare.
2361 * tui/tui-winsource.c
2362 (tui_source_window_base::update_source_window): Rename from
2363 tui_update_source_window.
2364 (tui_source_window_base::rerender): Update.
2365 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2366 * tui/tui-disasm.c (tui_show_disassem)
2367 (tui_show_disassem_and_update_source)
2368 (tui_disasm_window::maybe_update): Update.
2370 2019-08-16 Tom Tromey <tom@tromey.com>
2372 * tui/tui-winsource.h (struct tui_source_window_base)
2373 <update_source_window_as_is>: Declare.
2374 (tui_update_source_window_as_is): Don't declare.
2375 * tui/tui-winsource.c (tui_update_source_window): Update
2376 (tui_source_window_base::update_source_window_as_is): Rename from
2377 tui_update_source_window_as_is.
2378 (tui_source_window_base::refill): Update.
2379 * tui/tui-source.c (tui_show_symtab_source): Update.
2380 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2383 2019-08-16 Tom Tromey <tom@tromey.com>
2385 * tui/tui-winsource.h (tui_update_source_window)
2386 (tui_update_source_window_as_is): Remove "noerror" parameter.
2387 * tui/tui-winsource.c (tui_update_source_window)
2388 (tui_update_source_window_as_is): Remove "noerror" parameter.
2389 (tui_update_source_windows_with_addr)
2390 (tui_update_source_windows_with_line)
2391 (tui_source_window_base::rerender)
2392 (tui_source_window_base::refill): Update.
2393 * tui/tui-source.h (tui_set_source_content)
2394 (tui_show_symtab_source): Remove "noerror" parameter.
2395 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2397 (tui_show_symtab_source): Likewise.
2398 (tui_source_window::maybe_update): Update.
2399 * tui/tui-disasm.c (tui_show_disassem)
2400 (tui_show_disassem_and_update_source)
2401 (tui_disasm_window::do_scroll_vertical)
2402 (tui_disasm_window::maybe_update): Update.
2404 2019-08-16 Tom Tromey <tom@tromey.com>
2406 * tui/tui.c (tui_is_window_visible): Update.
2407 * tui/tui-wingeneral.c (tui_make_window)
2408 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2409 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2410 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2411 (tui_set_win_height_command, parse_scrolling_args): Update.
2412 * tui/tui-source.c (tui_source_window::style_changed): Update.
2413 * tui/tui-regs.c (tui_show_registers)
2414 (tui_data_window::first_data_item_displayed)
2415 (tui_data_window::delete_data_content_windows)
2416 (tui_check_register_values, tui_reg_command): Update.
2417 * tui/tui-disasm.c (tui_show_disassem): Update.
2418 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2420 <is_visible>: Remove field.
2421 * tui/tui-data.c (tui_next_win, tui_prev_win)
2422 (tui_delete_invisible_windows): Update.
2424 2019-08-16 Tom Tromey <tom@tromey.com>
2426 * tui/tui-winsource.h (struct tui_source_window_base)
2427 <m_has_locator>: Remove.
2428 * tui/tui-layout.c (show_source_disasm_command, show_data)
2429 (show_source_or_disasm_and_command): Update.
2431 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2433 * NEWS (Other MI changes): New subsection.
2434 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2435 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2436 * arch-utils.c (default_get_pc_address_flags): New function.
2437 * arch-utils.h (default_get_pc_address_flags): New declaration.
2438 * gdbarch.sh: Add get_pc_address_flags.
2439 * gdbarch.c: Regenerate.
2440 * gdbarch.h: Likewise.
2441 * stack.c (print_pc): New function.
2442 (print_frame_info) (print_frame): Call print_pc.
2444 2019-08-16 Tom de Vries <tdevries@suse.de>
2446 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2447 print_objfile_section_info.
2449 2019-08-15 Tom Tromey <tom@tromey.com>
2451 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2452 calling update_cmdwin_start_line.
2453 * tui/tui-winsource.h (struct tui_source_window_base)
2454 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2455 <rerender>: Declare.
2456 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2458 (tui_source_window_base::set_new_height): Remove.
2459 (tui_source_window_base::rerender): Rename from
2460 do_make_visible_with_new_height.
2461 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2463 (tui_win_info::make_invisible_and_set_new_height)
2464 (tui_win_info::make_visible_with_new_height): Remove.
2465 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2467 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2468 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2469 do_make_visible_with_new_height>: Don't declare.
2470 <rerender>: Declare.
2471 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2473 (tui_data_window::do_make_visible_with_new_height): Remove.
2474 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2475 call tui_show_locator_content.
2476 (tui_gen_win_info::resize): Call rerender.
2477 (show_source_or_disasm_and_command): Don't call
2478 tui_show_locator_content.
2479 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2481 (struct tui_win_info) <rerender>: Declare.
2482 <set_new_height, make_invisible_and_set_new_height,
2483 make_visible_with_new_height>: Don't declare.
2484 * tui/tui-data.c (tui_win_list::rerender): New method.
2485 * tui/tui-command.h (struct tui_cmd_window)
2486 <do_make_visible_with_new_height>: Don't declare.
2488 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2490 2019-08-15 Tom Tromey <tromey@adacore.com>
2492 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2493 * ada-lang.c (ada_enum_name): Likewise.
2495 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2497 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2499 (GdbOutputErrorFile): Likewise.
2500 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2502 (execute_unwinders): Rename to have a leading underscore.
2503 (auto_load_packages): Likewise.
2504 (global scope): Adjust call to auto_load_packages accordingly.
2505 (GdbSetPythonDirectory): Likewise.
2506 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2507 instead of execute_unwinders.
2509 2019-08-15 Tom Tromey <tom@tromey.com>
2511 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2512 (show_data): Don't change window visibility.
2513 (tui_gen_win_info::resize): Remove special case for command
2514 window. Use wresize, when available.
2515 (show_source_or_disasm_and_command): Don't change window
2517 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2518 <make_visible>: New method.
2519 * tui/tui-command.c (tui_cmd_window::resize): New method.
2521 2019-08-15 Tom Tromey <tom@tromey.com>
2523 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
2524 (struct tui_source_windows): New.
2525 * tui/tui-winsource.c (tui_display_main): Update.
2526 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
2527 (new_height_ok, parse_scrolling_args): Update.
2528 * tui/tui-layout.c (show_layout, show_data): Update.
2529 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
2530 (tui_add_to_source_windows): Don't declare.
2531 * tui/tui-data.c (source_windows, tui_source_windows)
2532 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
2534 2019-08-15 Tom Tromey <tom@tromey.com>
2536 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
2538 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
2539 * tui/tui-layout.c (show_source_disasm_command, show_data):
2541 (tui_gen_win_info::resize): Rename.
2542 (show_source_or_disasm_and_command): Update.
2543 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
2546 2019-08-15 Tom Tromey <tom@tromey.com>
2548 * tui/tui-stack.c (tui_initialize_static_data): Remove.
2549 * tui/tui-interp.c (tui_interp::init): Don't call
2550 tui_initialize_static_data.
2551 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
2553 2019-08-15 Tom Tromey <tom@tromey.com>
2555 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
2556 examine tui_win_list.
2558 2019-08-15 Tom Tromey <tom@tromey.com>
2560 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
2561 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
2562 tui_clear_source_content.
2563 (tui_clear_source_content): Remove.
2564 (tui_source_window_base::do_erase_source_content): Hoist call to
2566 * tui/tui-stack.c (tui_show_frame_info): Don't call
2567 tui_clear_source_content.
2569 2019-08-15 Tom Tromey <tom@tromey.com>
2571 * tui/tui-winsource.h (struct tui_source_window_base)
2572 <do_erase_source_content>: New method.
2573 <erase_source_content>: New method.
2574 (tui_erase_source_content): Don't declare.
2575 * tui/tui-winsource.c (tui_clear_source_content): Update.
2576 (tui_source_window_base::do_erase_source_content): Rename from
2577 tui_erase_source_content.
2578 (tui_source_window_base::show_source_content): Update.
2579 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
2580 * tui/tui-source.h (struct tui_source_window)
2581 <erase_source_content>: New method.
2582 * tui/tui-disasm.h (struct tui_disasm_window)
2583 <erase_source_content>: New method.
2585 2019-08-15 Tom Tromey <tom@tromey.com>
2587 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
2588 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
2590 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
2591 * tui/tui-source.c (tui_set_source_content): Update.
2592 * tui/tui-disasm.c (tui_set_disassem_content): Update.
2594 2019-08-15 Tom Tromey <tom@tromey.com>
2596 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
2597 * tui/tui-winsource.c (tui_line_is_displayed): Move to
2599 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
2601 * tui/tui-source.c (tui_source_window::line_is_displayed): New
2603 (tui_source_window::maybe_update): Update.
2605 2019-08-15 Tom Tromey <tom@tromey.com>
2607 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
2608 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
2610 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
2612 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
2614 (tui_disasm_window::maybe_update): Update.
2616 2019-08-15 Tom Tromey <tom@tromey.com>
2618 * tui/tui-winsource.h (struct tui_source_window_base)
2619 <maybe_update>: Declare.
2620 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
2622 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
2624 * tui/tui-source.c (tui_source_window::maybe_update): New method.
2625 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
2627 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
2629 2019-08-15 Tom Tromey <tom@tromey.com>
2631 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
2633 2019-08-15 Tom Tromey <tom@tromey.com>
2635 * tui/tui-wingeneral.c: Include tui-stack.h.
2636 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
2637 (struct tui_locator_window): Move from tui-data.h.
2638 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
2639 (tui_initialize_static_data): Move from tui-data.c.
2640 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
2641 (struct tui_locator_window): Move to tui-stack.c.
2642 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
2643 (tui_initialize_static_data): Move to tui-stack.c.
2645 2019-08-15 Tom Tromey <tom@tromey.com>
2647 * tui/tui-layout.c (show_source_disasm_command)
2648 (show_source_or_disasm_and_command): Use make_visible method, not
2650 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
2653 2019-08-15 Tom Tromey <tom@tromey.com>
2655 * tui/tui-wingeneral.h (tui_make_window): Update.
2656 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
2658 (tui_gen_win_info::make_visible): Update.
2659 * tui/tui-regs.c (tui_data_window::display_registers_from):
2661 * tui/tui-layout.c (show_source_disasm_command)
2662 (show_source_or_disasm_and_command): Update.
2663 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
2664 (enum tui_box): Remove.
2665 (struct tui_win_info) <can_box>: New method.
2666 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
2669 2019-08-15 Tom de Vries <tdevries@suse.de>
2671 * linux-nat-trad.c: Include gdbarch.h.
2673 2019-08-14 Alan Hayward <alan.hayward@arm.com>
2675 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
2678 2019-08-14 Tom Tromey <tromey@adacore.com>
2680 * darwin-nat.c: Include gdbarch.h.
2681 * darwin-nat-info.c: Include gdbarch.h.
2683 2019-08-13 Tom Tromey <tom@tromey.com>
2685 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
2687 * tui/tui-data.c (tui_initialize_static_data): Update.
2689 2019-08-13 Tom Tromey <tom@tromey.com>
2691 * tui/tui-winsource.h (struct tui_exec_info_window)
2692 <~tui_exec_info_window, maybe_allocate_content, get_content,
2694 (struct tui_source_window_base) <set_exec_info_content,
2695 show_exec_info_content>: Don't declare.
2696 * tui/tui-winsource.c
2697 (tui_exec_info_window::maybe_allocate_content): Remove.
2698 (tui_source_window_base::update_exec_info): Rename from
2699 set_exec_info_content.
2700 (tui_source_window_base::show_exec_info_content)
2701 (tui_source_window_base::update_exec_info): Remove.
2703 2019-08-13 Tom Tromey <tom@tromey.com>
2705 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
2707 * tui/tui-winsource.c (tui_update_source_window_as_is)
2708 (tui_update_source_windows_with_addr, tui_erase_source_content):
2710 (tui_clear_exec_info_content): Remove.
2712 2019-08-13 Tom Tromey <tom@tromey.com>
2714 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
2716 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
2717 call tui_erase_exec_info_content.
2718 (tui_clear_exec_info_content): Rename from
2719 tui_erase_exec_info_content.
2720 (tui_clear_exec_info_content): Delete.
2722 2019-08-13 Tom Tromey <tom@tromey.com>
2724 * tui/tui-winsource.h (struct tui_source_window_base)
2725 <show_exec_info_content>: Declare.
2726 (tui_show_exec_info_content): Don't declare.
2727 * tui/tui-winsource.c
2728 (tui_source_window_base::show_exec_info_content): Rename from
2729 tui_show_exec_info_content.
2730 (tui_source_window_base::update_exec_info): Update.
2732 2019-08-13 Tom Tromey <tom@tromey.com>
2734 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
2735 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
2736 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
2737 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
2738 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
2739 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
2742 2019-08-13 Tom Tromey <tom@tromey.com>
2744 * tui/tui-winsource.h (struct tui_source_window_base)
2745 <update_exec_info>: Declare.
2746 (tui_update_exec_info): Don't declare.
2747 * tui/tui-winsource.c (tui_update_source_window_as_is)
2748 (tui_source_window_base::refresh_all)
2749 (tui_update_all_breakpoint_info): Update.
2750 (tui_source_window_base::update_exec_info): Rename from
2751 tui_update_exec_info.
2752 * tui/tui-stack.c (tui_show_frame_info): Update.
2754 2019-08-13 Tom Tromey <tom@tromey.com>
2756 * tui/tui-winsource.h (struct tui_source_window_base)
2757 <set_exec_info_content>: Declare.
2758 (tui_set_exec_info_content): Don't declare.
2759 * tui/tui-winsource.c
2760 (tui_source_window_base::set_exec_info_content): Rename from
2761 tui_set_exec_info_content.
2762 (tui_update_exec_info): Update.
2764 2019-08-13 Tom Tromey <tom@tromey.com>
2766 * tui/tui-winsource.h (struct tui_source_window_base)
2767 <show_source_content>: Declare.
2768 (tui_show_source_content): Don't declare.
2769 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
2770 (tui_source_window_base::show_source_content): Rename from
2771 tui_show_source_content.
2772 (tui_source_window_base::refresh_all): Update.
2773 * tui/tui-layout.c (show_source_disasm_command)
2774 (show_source_or_disasm_and_command): Update.
2776 2019-08-13 Tom Tromey <tom@tromey.com>
2778 * tui/tui-winsource.c (tui_erase_source_content)
2779 (tui_show_source_content, tui_source_window_base::refresh_all):
2781 * tui/tui-wingeneral.h
2782 (tui_check_and_display_highlight_if_needed): Don't declare.
2783 * tui/tui-wingeneral.c
2784 (tui_win_info::check_and_display_highlight_if_needed): Rename from
2785 check_and_display_highlight_if_needed.
2786 * tui/tui-win.c (tui_rehighlight_all)
2787 (tui_win_info::make_visible_with_new_height): Update.
2788 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2789 (tui_data_window::erase_data_content)
2790 (tui_data_window::display_all_data): Update.
2791 * tui/tui-data.h (struct tui_win_info)
2792 <check_and_display_highlight_if_needed>: Declare.
2794 2019-08-13 Tom Tromey <tom@tromey.com>
2796 * tui/tui-win.c (tui_resize_all): Call
2797 tui_delete_invisible_windows.
2798 * tui/tui-layout.c (show_layout): Call
2799 tui_delete_invisible_windows.
2800 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
2801 * tui/tui-data.c (tui_delete_invisible_windows): New function.
2803 2019-08-13 Tom Tromey <tom@tromey.com>
2805 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
2806 tui_add_win_to_layout.
2808 2019-08-13 Tom Tromey <tom@tromey.com>
2810 * tui/tui-layout.h (tui_default_win_height): Don't declare.
2811 * tui/tui-layout.c (tui_default_win_height): Now static.
2813 2019-08-13 Tom Tromey <tom@tromey.com>
2815 * tui/tui-layout.c (show_layout): Unify all layout cases into a
2817 (show_source_disasm_command, show_source_or_disasm_and_command):
2818 Don't check current layout.
2820 2019-08-13 Tom Tromey <tom@tromey.com>
2822 * tui/tui-wingeneral.c (make_all_visible): Remove.
2823 (tui_make_all_invisible): Simplify.
2824 * tui/tui-layout.c (tui_make_all_invisible): Move from
2825 tui-wingeneral.c; simplify.
2826 (show_layout): Hoist call to tui_make_all_invisible.
2827 (show_data): Don't call tui_make_all_invisible.
2829 2019-08-13 Tom Tromey <tom@tromey.com>
2831 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
2832 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
2834 2019-08-13 Tom Tromey <tom@tromey.com>
2836 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
2838 (show_source_disasm_command, show_data)
2839 (show_source_or_disasm_and_command): Don't use
2840 tui_set_current_layout_to.
2841 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
2842 * tui/tui-data.c (current_layout, tui_current_layout): Move to
2844 (tui_set_current_layout_to): Remove.
2846 2019-08-13 Tom Tromey <tom@tromey.com>
2848 * tui/tui-layout.c (tui_set_layout): Update.
2849 * tui/tui-data.h (struct tui_layout_def): Remove.
2850 (tui_layout_def): Don't declare.
2851 * tui/tui-data.c (layout_def): Remove.
2852 (tui_layout_def): Remove.
2854 2019-08-13 Tom Tromey <tom@tromey.com>
2856 * tui/tui-winsource.h (struct tui_source_window_base)
2857 <clear_detail>: No longer "override".
2858 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
2859 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
2860 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
2861 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
2863 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
2865 2019-08-13 Tom Tromey <tromey@adacore.com>
2867 * tracepoint.c: Don't include readline.h or history.h.
2869 2019-08-12 Tom Tromey <tom@tromey.com>
2871 * configure: Rebuild.
2872 * configure.ac: Check for readline 7.
2873 * NEWS: Mention readline 7 requirement.
2876 2019-08-12 Tom Tromey <tom@tromey.com>
2878 * mingw-hdep.c (gdb_select): Remove readline hack.
2880 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2882 * blockframe.c (find_pc_partial_function): Set *block to nullptr
2883 when the function fails.
2885 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
2887 * s390-tdep.c (s390_type_align): New function.
2888 (s390_gdbarch_init): Set it as type_align gdbarch method.
2890 2019-08-09 Tom de Vries <tdevries@suse.de>
2893 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
2894 pc_low with relocation offset.
2896 2019-08-07 Tom Tromey <tromey@adacore.com>
2898 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
2899 (print_frame_args): Update.
2900 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
2902 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
2903 * frame.h (struct frame_arg): Add initializers.
2904 <error>: Now a unique_xmalloc_ptr.
2906 2019-08-07 Alan Hayward <alan.hayward@arm.com>
2908 * NEWS: Expand the Pointer Authentication entry.
2909 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
2910 (aarch64_frame_unmask_lr): ... to this.
2911 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
2912 Call aarch64_frame_unmask_lr.
2913 * frame.c (struct frame_info): Add "masked" variable.
2914 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
2915 (fprint_frame): Check for masked pc.
2916 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
2918 * python/py-framefilter.c (py_print_frame): Check for masked pc.
2919 * stack.c (print_frame): Check for masked pc.
2921 2019-08-06 Tom Tromey <tom@tromey.com>
2923 * stabsread.c (patch_block_stabs, read_one_struct_field)
2924 (read_enum_type): Use obstack_strndup.
2925 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
2926 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
2927 * dwarf2read.c (guess_full_die_structure_name)
2928 (anonymous_struct_prefix): Use obstack_strndup.
2929 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
2930 * c-exp.y (yylex): Use obstack_strndup.
2931 * ada-exp.y (write_object_renaming, write_ambiguous_var)
2932 (write_var_or_type): Use obstack_strndup.
2934 2019-08-06 Tom Tromey <tom@tromey.com>
2936 * symfile.c (reread_symbols): Use obstack_strdup.
2937 * stabsread.c (read_type): Use obstack_strdup.
2938 * gdb_obstack.h (obstack_strdup): New overload.
2939 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
2940 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
2941 (dwarf2_canonicalize_name): Use obstack_strdup.
2942 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
2943 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
2946 2019-08-06 Tom Tromey <tom@tromey.com>
2948 * gdb_obstack.h (obstack_strdup): Define.
2949 * gdb_obstack.c (obstack_strdup): Don't define.
2951 2019-08-06 Tom Tromey <tom@tromey.com>
2953 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
2955 * typeprint.c (typedef_hash_table::find_global_typedef): Use
2957 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
2958 * stabsread.c (common_block_start): Use obstack_strdup.
2959 * objfiles.c (set_objfile_main_name, objfile): Use
2961 * namespace.c (add_using_directive): Use obstack_strdup.
2962 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
2963 * jit.c (finalize_symtab): Use obstack_strdup.
2964 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
2965 (guess_partial_die_structure_name, partial_die_info::fixup)
2966 (dwarf2_name): Use obstack_strdup.
2967 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
2969 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
2970 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
2972 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
2974 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2976 * unittests/help-doc-selftests.c: New file.
2977 * Makefile.in: Add the new file.
2979 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2981 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
2982 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
2983 the full first line, except when FOR_VALUE_PREFIX. In this case,
2984 the trailing '.' is not output, and the first character is uppercased.
2985 (print_help_for_command): Update call to print_doc_line.
2986 (print_doc_of_command): Likewise.
2987 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
2988 * cli/cli-option.c (append_indented_doc): Do not append newline.
2989 (build_help_option): Append newline after first appended_indented_doc
2990 only if a second call is done.
2991 (build_help): Append 2 new lines before each option, except the first
2993 * compile/compile.c (_initialize_compile): Add new lines after
2994 %OPTIONS%, when not at the end of the help.
2995 Change help doc or code
2996 producing the help doc to respect the invariants.
2997 * maint-test-options.c (_initialize_maint_test_options): Likewise.
2998 Also removed the new line after 'Options:', as all other commands
2999 do not put an empty line between 'Options:' and the first option.
3000 * printcmd.c (_initialize_printcmd): Likewise.
3001 * stack.c (_initialize_stack): Likewise.
3002 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3003 incorrectly telling COMMAND is optional.
3004 * ada-lang.c (_initialize_ada_language): Change help doc or code
3005 producing the help doc to respect the invariants.
3006 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3007 * breakpoint.c (_initialize_breakpoint): Likewise.
3008 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3009 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3010 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3011 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3012 _initialize_cli_style): Likewise.
3013 * corelow.c (core_target_info): Likewise.
3014 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3015 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3016 * filesystem.c (_initialize_filesystem): Likewise.
3017 * frame.c (_initialize_frame): Likewise.
3018 * gnu-nat.c (add_task_commands): Likewise.
3019 * infcall.c (_initialize_infcall): Likewise.
3020 * infcmd.c (_initialize_infcmd): Likewise.
3021 * interps.c (_initialize_interpreter): Likewise.
3022 * language.c (_initialize_language): Likewise.
3023 * linux-fork.c (_initialize_linux_fork): Likewise.
3024 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3025 * maint.c (_initialize_maint_cmds): Likewise.
3026 * memattr.c (_initialize_mem): Likewise.
3027 * printcmd.c (_initialize_printcmd): Likewise.
3028 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3030 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3031 * record-btrace.c (_initialize_record_btrace): Likewise.
3032 * record-full.c (_initialize_record_full): Likewise.
3033 * record.c (_initialize_record): Likewise.
3034 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3035 * regcache.c (_initialize_regcache): Likewise.
3036 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3037 _initialize_remote): Likewise.
3038 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3039 * serial.c (_initialize_serial): Likewise.
3040 * skip.c (_initialize_step_skip): Likewise.
3041 * source.c (_initialize_source): Likewise.
3042 * stack.c (_initialize_stack): Likewise.
3043 * symfile.c (_initialize_symfile): Likewise.
3044 * symtab.c (_initialize_symtab): Likewise.
3045 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3046 * top.c (init_main): Likewise.
3047 * tracefile-tfile.c (tfile_target_info): Likewise.
3048 * tracepoint.c (_initialize_tracepoint): Likewise.
3049 * tui/tui-win.c (_initialize_tui_win): Likewise.
3050 * utils.c (add_internal_problem_command): Likewise.
3051 * valprint.c (value_print_option_defs): Likewise.
3053 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3056 * configure.ac: Drop enable-libmcheck support.
3057 * configure, config.in: Rebuild.
3058 * libmcheck.m4: Remove.
3059 * acinclude.m4: Don't include it.
3060 * Makefile.in: Don't distribute it.
3061 * top.c (print_gdb_configuration): Don't mention it.
3063 2019-08-06 Tom Tromey <tom@tromey.com>
3065 * utils.c (set_output_style): Sometimes pass stream to
3067 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3068 * record-btrace.c (btrace_insn_history): Update.
3069 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3071 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3072 Update initializers.
3073 <m_uiout>: New field.
3075 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3076 Remove "uiout" parameter.
3077 (dump_insns): Update.
3078 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3079 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3081 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3083 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3084 (error_in_psymtab_expansion): Likewise.
3085 (lookup_symbol_via_quick_fns): Likewise.
3086 (basic_lookup_transparent_type_quick): Likewise.
3087 (basic_lookup_transparent_type_1): Likewise.
3089 2019-08-06 Tom Tromey <tromey@adacore.com>
3091 * source.c (last_source_error): Now bool.
3092 (print_source_lines_base): Make "noprint" bool. Only open
3093 source file when last_source_visited changes.
3095 2019-08-06 Tom Tromey <tromey@adacore.com>
3097 * annotate.c (annotate_source_line): Use g_source_cache.
3098 * source-cache.c (source_cache::get_plain_source_lines): Change
3099 parameters. Populate m_offset_cache.
3100 (source_cache::ensure): New method.
3101 (source_cache::get_line_charpos): New method.
3102 (extract_lines): Move lower. Change parameters.
3103 (source_cache::get_source_lines): Move lower.
3104 * source-cache.h (class source_cache): Update comment.
3105 <get_line_charpos>: New method.
3106 <get_source_lines>: Update comment.
3107 <clear>: Clear m_offset_cache.
3108 <get_plain_source_lines>: Change parameters.
3109 <ensure>: New method
3110 <m_offset_cache>: New member.
3111 * source.c (forget_cached_source_info_for_objfile): Update.
3112 (info_source_command): Use g_source_cache.
3113 (find_source_lines, open_source_file_with_line_charpos): Remove.
3114 (print_source_lines_base, search_command_helper): Use g_source_cache.
3115 * source.h (open_source_file_with_line_charpos): Don't declare.
3116 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3117 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3120 2019-08-06 Tom Tromey <tromey@adacore.com>
3122 * source-cache.c (source_cache::get_plain_source_lines):
3123 Remove "first_line" and "last_line" parameters.
3124 (source_cache::get_source_lines): Cache plain text.
3125 * source-cache.h (class source_cache)
3126 <get_plain_source_lines>: Update.
3128 2019-08-06 Tom Tromey <tromey@adacore.com>
3130 * source-cache.c (extract_lines): No longer a method.
3131 Changed type of parameter. Include final newline.
3132 (selftests::extract_lines_test): New function.
3133 (_initialize_source_cache): Likewise.
3134 * source-cache.h (class source_cache)
3135 <extract_lines>: Don't declare.
3137 2019-08-06 Tom Tromey <tromey@adacore.com>
3139 * breakpoint.c (init_breakpoint_sal): Update.
3140 (breakpoint): Update.
3141 * breakpoint.h (struct breakpoint) <filter>: Now a
3144 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3146 * NEWS: Mention dictionary access on blocks.
3147 * python/py-block.c (blpy_getitem): New function.
3148 (block_object_as_mapping): New struct.
3149 (block_object_type): Use new struct for tp_as_mapping field.
3151 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3153 * objfiles.h (objfile): Add a comment describing partial symbols.
3155 2019-08-05 Tom Tromey <tromey@adacore.com>
3157 * compile/compile.c (_initialize_compile): Use _(), not N_().
3158 * thread.c (_initialize_thread): Use _(), not N_().
3159 * stack.c (_initialize_stack): Use _(), not N_().
3160 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3162 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3164 * dwarf2read.c (struct dw2_symtab_iterator):
3165 <want_specific_block>: Remove.
3166 <block_index>: Change type to gdb::optional.
3167 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3168 change type of BLOCK_INDEX parameter to gdb::optional.
3169 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3170 (dw2_lookup_symbol): Don't pass argument for
3171 WANT_SPECIFIC_BLOCK.
3172 (dw2_expand_symtabs_for_function): Don't pass argument for
3173 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3174 (class dw2_debug_names_iterator)
3175 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3176 parameter, change BLOCK_INDEX type to gdb::optional.
3177 <m_want_specific_block>: Remove.
3178 <m_block_index>: Change type to gdb::optional.
3179 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3180 gdb::optional. Re-write in function of gdb::optional.
3181 (dw2_debug_names_lookup_symbol): Don't pass argument for
3182 WANT_SPECIFIC_BLOCK.
3183 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3184 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3187 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3189 * NEWS: Mention changes to "info sources" command.
3191 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3193 * symtab.c (filename_partial_match_opts): New struct type.
3194 (struct output_source_filename_data): New members
3195 regexp, c_regexp, partial_match.
3196 (output_source_filename): Use new members to decide to print file.
3197 (info_sources_option_defs): New variable.
3198 (make_info_sources_options_def_group, print_info_sources_header,
3199 info_sources_command_completer):
3201 (info_sources_command): Read new optional arguments.
3202 (_initialize_symtab): Update info sources help.
3204 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3206 * ada-lang.c (exception_support_info_v0): Renamed from...
3207 (default_exception_support_info): ... this. Create new
3209 (ada_has_this_exception_support): Look up catch_handlers_sym.
3210 (ada_exception_support_info_sniffer): Try v0 after default.
3212 2019-08-01 Tom Tromey <tromey@adacore.com>
3214 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3217 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3219 * s12z-tdep.c: Fix include path for s12z-opc.h.
3221 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3223 * NEWS: Require GNU make 3.82.
3225 2019-07-16 Tom Tromey <tom@tromey.com>
3227 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3230 2019-07-30 Tom Tromey <tromey@adacore.com>
3232 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3234 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3236 * printcmd.c (print_address_symbolic): Print negative offsets.
3237 (build_address_symbolic): Force signed arithmetic when computing
3240 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3242 PR/24474: Add a function to lookup static variables.
3243 * NEWS: Mention this new function.
3244 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3245 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3246 * python/python.c (python_GdbMethods): Add new function.
3248 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3250 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3251 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3252 (objfpy_lookup_static_symbol): New function.
3253 (objfile_object_methods): Add new functions.
3255 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3257 * NEWS: Mention 'set|show print frame-info'. Mention new
3258 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3259 backtrace argument. Mention that python frame filtering code
3260 is now consistent with what 'backtrace' command prints.
3262 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3264 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3266 (print_frame_info_auto, print_frame_info_source_line,
3267 print_frame_info_location, print_frame_info_source_and_location,
3268 print_frame_info_location_and_address, print_frame_info_short_location):
3270 (struct frame_print_options): New member print_frame_info.
3271 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3272 * stack.h (get_user_print_what_frame_info): New declaration.
3273 (frame_show_address): New declaration.
3274 * stack.c (print_frame_arguments_choices): New value 'presence'.
3275 (print_frame_info_auto, print_frame_info_source_line,
3276 print_frame_info_location, print_frame_info_source_and_location,
3277 print_frame_info_location_and_address, print_frame_info_short_location,
3278 print_frame_info_choices, print_frame_info_print_what): New definitions.
3279 (print_frame_args): Only print dots for args if print frame-arguments
3281 (frame_print_option_defs): New element for "frame-info".
3282 (get_user_print_what_frame_info): New function.
3283 (frame_show_address): Make non static. Move comment to stack.h.
3284 (print_frame_info_to_print_what): New function.
3285 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3286 to decide what to print.
3287 (backtrace_command_1): Handle the new print_frame_arguments_presence
3289 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3290 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3291 (py_print_frame): In non-mi mode, use LOCATION as default for
3292 print_what, similarly to frame information printed directly by
3293 backtrace command. Handle frame-info user option in non MI mode.
3295 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3297 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3298 Add case for debugging 32-bit target on 64-bit host. Revise
3301 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3303 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3304 instead of find_function_entry_range_from_pc.
3306 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3308 * stack.c (find_frame_funname): Remove code which preferred
3309 minsym over symtab sym in "certain pathological cases".
3311 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3312 parameter. Change type of "do_demangle" to bool.
3313 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3314 Pass suitable "prefer_sym_over_minsym" flag to
3315 build_address_symbolic(). Don't output "+" for negative offsets.
3316 * printcmd.c (print_address_symbolic): Update invocation of
3317 build_address_symbolic to include a "prefer_sym_over_minsym"
3319 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3320 Restrict cases in which use of minimal symbol is preferred to that
3321 of a found symbol. Update comments.
3323 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3324 for entry pc when entry pc is out of range for that FDE.
3326 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3329 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3332 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3334 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3335 this function's Python signature.
3338 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3340 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3341 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3342 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3343 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3344 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3347 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3349 * h8300-tdep.c (h8300_register_name_common): New.
3350 h8300_register_name): Use h8300_register_name_common.
3351 (h8300s_register_name): Likewise.
3352 (h8300sx_register_name): Likewise.
3353 (h8300h_register_nam): New.
3354 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3357 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3359 * arm-tdep.c (arm_skip_cmse_entry): New function.
3360 (arm_is_sgstubs_section): New function.
3361 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3363 2019-07-22 Tom Tromey <tom@tromey.com>
3365 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3368 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3370 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3373 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3375 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3376 so that GDB doesn't match any msymbols when searching in the
3378 (print_symbol_info): Print using typedef_print or type_print based
3379 on the type of the symbol. Add updated FIXME comment moved from...
3380 (_initialize_symtab): ... move and update FIXME comment to above.
3382 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3384 * NEWS: Mention adding -q option to "info types".
3385 * symtab.c (struct info_types_options): New struct.
3386 (info_types_options_defs): New variable.
3387 (make_info_types_options_def_group): New function.
3388 (info_types_command): Use gdb::option framework to parse options.
3389 (info_types_command_completer): New function.
3390 (_initialize_symtab): Extend the help text on "info types" and
3391 register command completer.
3393 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3395 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3396 (lookup_symbol_in_objfile): Change int to block_enum and add a
3397 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3399 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3401 * MAINTAINERS (Write After Approval): Add self.
3403 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3405 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3406 instruction to the dummy code region.
3408 2019-07-19 Tom Tromey <tromey@adacore.com>
3410 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3411 (ARGSUSED, PARAMS, __func__): Remove rules.
3413 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3415 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3416 * features/arm/arm-with-iwmmxt.c: Remove.
3417 * features/arm/arm-with-iwmmxt.xml: Remove.
3418 * features/arm/arm-with-m-fpa-layout.c: Remove.
3419 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3420 * features/arm/arm-with-m-vfp-d16.c: Remove.
3421 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3422 * features/arm/arm-with-m.c: Remove.
3423 * features/arm/arm-with-m.xml: Remove.
3424 * features/arm/arm-with-neon.c: Remove.
3425 * features/arm/arm-with-neon.xml: Remove.
3426 * features/arm/arm-with-vfpv2.c: Remove.
3427 * features/arm/arm-with-vfpv2.xml: Remove.
3428 * features/arm/arm-with-vfpv3.c: Remove.
3429 * features/arm/arm-with-vfpv3.xml: Remove.
3431 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3433 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3435 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3437 * arch/aarch32.c (aarch32_create_target_description): Create
3438 target descriptions using features.
3439 * arch/arm.c (arm_create_target_description)
3440 (arm_create_mprofile_target_description): Likewise.
3441 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3443 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3445 * Makefile.in: Add new files.
3446 * aarch32-tdep.c: New file.
3447 * aarch32-tdep.h: New file.
3448 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3449 Call aarch32_read_description.
3450 * arch/aarch32.c: New file.
3451 * arch/aarch32.h: New file.
3452 * arch/arm.c (arm_create_target_description)
3453 (arm_create_mprofile_target_description): New function.
3454 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3455 (arm_create_target_description)
3456 (arm_create_mprofile_target_description): New declaration.
3457 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3458 read_description functions.
3459 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3461 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3462 * arm-tdep.c (tdesc_arm_list): New variable.
3463 (arm_register_g_packet_guesses): Call create description functions.
3464 (arm_read_description) (arm_read_mprofile_description): New
3466 * arm-tdep.h (arm_read_description)
3467 (arm_read_mprofile_description): Add declaration.
3468 * configure.tgt: Add new files.
3470 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3472 * top.c (new_ui_command): Open specified terminal just once.
3474 2019-07-18 Tom Tromey <tromey@adacore.com>
3476 * symtab.c (main_name): Constify return type.
3477 * symfile.c (set_initial_language): Update.
3478 * symtab.h (main_name): Constify return type.
3480 2019-07-17 Tom Tromey <tom@tromey.com>
3482 * tui/tui-winsource.c (tui_update_source_window)
3483 (tui_update_source_window_as_is)
3484 (tui_update_source_windows_with_line): Remove return.
3485 * tui/tui-disasm.c (tui_show_disassem)
3486 (tui_show_disassem_and_update_source): Remove return.
3487 * tui/tui.c (tui_reset): Remove return.
3488 * tui/tui-wingeneral.c
3489 (tui_check_and_display_highlight_if_needed): Remove return.
3491 2019-07-17 Tom Tromey <tom@tromey.com>
3493 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3495 2019-07-17 Tom Tromey <tom@tromey.com>
3497 * tui/tui-winsource.h (struct tui_exec_info_window)
3498 (struct tui_source_window_base): Move from tui-data.h.
3499 * tui/tui-winsource.c: Move many method definitions from
3500 elsewhere. Remove "structuring" comments.
3501 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3502 (tui_source_window_base::refresh_window): Move to
3504 * tui/tui-win.c (tui_source_window_base::refresh_all)
3505 (tui_source_window_base::update_tab_width)
3506 (tui_source_window_base::set_new_height)
3507 (tui_source_window_base::do_make_visible_with_new_height): Move to
3509 * tui/tui-source.h: Update.
3510 * tui/tui-source.c (tui_source_window_base::reset): Move to
3512 * tui/tui-disasm.h: Update.
3513 * tui/tui-data.h (struct tui_exec_info_window): Move to
3515 (struct tui_source_window_base): Likewise.
3516 * tui/tui-data.c (tui_source_window_base::clear_detail)
3517 (tui_source_window_base, ~tui_source_window_base): Move to
3520 2019-07-17 Tom Tromey <tom@tromey.com>
3522 * tui/tui-win.c (tui_resize_all)
3523 (tui_source_window_base::update_tab_width)
3524 (tui_adjust_win_heights): Update.
3525 (tui_win_info::make_invisible_and_set_new_height): Rename from
3526 make_invisible_and_set_new_height.
3527 * tui/tui-data.h (struct tui_win_info)
3528 <make_invisible_and_set_new_height>: New method.
3530 2019-07-17 Tom Tromey <tom@tromey.com>
3532 * tui/tui.c: Update.
3533 * tui/tui-source.h (struct tui_source_window): Move from
3535 * tui/tui-layout.c: Update.
3536 * tui/tui-disasm.c: Update.
3537 * tui/tui-data.h (struct tui_source_window): Move to
3540 2019-07-17 Tom Tromey <tom@tromey.com>
3542 * tui/tui-disasm.h (struct tui_disasm_window): Move from
3544 * tui/tui-data.h (struct tui_disasm_window): Move to
3547 2019-07-17 Tom Tromey <tom@tromey.com>
3549 * tui/tui-regs.h (struct tui_data_item_window): Move from
3551 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
3552 * tui/tui-data.h (struct tui_data_item_window): Move to
3554 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
3556 2019-07-17 Tom Tromey <tom@tromey.com>
3558 * tui/tui.c: Update.
3559 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
3560 (tui_cmd_window::max_height): Move to tui-command.c.
3561 * tui/tui-layout.c: Update.
3562 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
3563 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
3565 * tui/tui-command.h (struct tui_cmd_window): Move from
3567 * tui/tui-command.c: Remove "structuring" comments.
3568 (tui_cmd_window::clear_detail)
3569 (tui_cmd_window::do_make_visible_with_new_height)
3570 (tui_cmd_window::max_height): Move from elsewhere.
3572 2019-07-17 Tom Tromey <tom@tromey.com>
3574 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
3576 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
3577 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
3579 2019-07-17 Tom Tromey <tom@tromey.com>
3581 * tui/tui.c: Update.
3582 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
3584 * tui/tui-windata.h: Remove file.
3585 * tui/tui-windata.c: Remove file.
3586 * tui/tui-win.c (tui_data_window::set_new_height)
3587 (tui_data_window::do_make_visible_with_new_height): Move to
3589 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
3590 * tui/tui-regs.c: Remove "structuring" comments.
3591 (tui_data_window::first_data_item_displayed)
3592 (tui_data_window::delete_data_content_windows)
3593 (tui_data_window::erase_data_content)
3594 (tui_data_window::display_all_data)
3595 (tui_data_window::refresh_all)
3596 (tui_data_window::do_scroll_vertical)
3597 (tui_data_window::clear_detail, tui_data_window::set_new_height)
3598 (tui_data_window::do_make_visible_with_new_height)
3599 (tui_data_window::refresh_window): Move from elsewhere.
3600 (_initialize_tui_regs): Move to end of file.
3601 * tui/tui-layout.c: Update.
3602 * tui/tui-hooks.c: Update.
3603 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
3604 * tui/tui-data.c (tui_data_window::clear_detail): Move to
3606 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
3608 2019-07-17 Tom Tromey <tom@tromey.com>
3610 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
3613 2019-07-17 Tom Tromey <tom@tromey.com>
3615 * tui/tui-win.c (tui_source_window_base::set_new_height)
3616 (tui_source_window_base::do_make_visible_with_new_height): Use
3617 m_has_locator field directly.
3618 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
3620 (struct tui_source_window_base) <has_locator>: Likewise.
3622 2019-07-17 Tom Tromey <tom@tromey.com>
3624 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
3626 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
3628 * tui/tui-win.c (tui_source_window_base::set_new_height)
3629 (tui_source_window_base::set_new_height)
3630 (make_invisible_and_set_new_height)
3631 (tui_source_window_base::do_make_visible_with_new_height)
3632 (tui_source_window_base::do_make_visible_with_new_height):
3634 * tui/tui-layout.c (show_source_disasm_command, show_data)
3635 (show_source_or_disasm_and_command): Update.
3636 * tui/tui-layout.c (show_layout): Update.
3638 2019-07-17 Tom Tromey <tom@tromey.com>
3640 * tui/tui-layout.c (make_data_window): Remove.
3641 (show_data): Unify creation and re-initialization cases.
3643 2019-07-17 Tom Tromey <tom@tromey.com>
3645 * tui/tui-layout.c (make_source_window, make_disasm_window):
3647 (show_data): Unify creation and re-initialization cases.
3649 2019-07-17 Tom Tromey <tom@tromey.com>
3651 * tui/tui-layout.c (make_command_window): Remove.
3652 (show_source_disasm_command, show_source_or_disasm_and_command):
3653 Unify creation and re-initialization cases.
3655 2019-07-17 Tom Tromey <tom@tromey.com>
3657 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
3658 creation and re-initialization cases.
3660 2019-07-17 Tom Tromey <tom@tromey.com>
3662 * tui/tui-regs.c (tui_get_register): Return void.
3664 2019-07-17 Tom Tromey <tom@tromey.com>
3666 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
3669 2019-07-17 Tom Tromey <tom@tromey.com>
3671 * tui/tui-layout.c (show_source_disasm_command): Simplify window
3674 2019-07-17 Tom Tromey <tom@tromey.com>
3676 * tui/tui.h (tui_set_layout_by_name): Don't declare.
3677 * tui/tui-regs.c (tui_reg_layout): New function.
3678 (tui_show_registers, tui_reg_command): Use it.
3679 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
3680 (tui_layout_command): Rename from tui_set_layout_by_name. Change
3682 (tui_layout_command): Remove.
3684 2019-07-17 Tom Tromey <tom@tromey.com>
3686 * tui/tui-layout.h (tui/tui-layout): Return void.
3687 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
3689 2019-07-17 Tom Tromey <tom@tromey.com>
3691 * tui/tui-layout.c (show_source_disasm_command, show_data):
3693 (reset_locator): Remove.
3694 (show_source_or_disasm_and_command): Update.
3696 2019-07-17 Tom Tromey <tom@tromey.com>
3698 * tui/tui-source.c (tui_source_window_base::reset): Remove
3700 * tui/tui-layout.c (make_command_window, make_source_window)
3701 (make_disasm_window, make_data_window)
3702 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
3703 (reset_locator, show_source_or_disasm_and_command): Update.
3704 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
3706 (struct tui_source_window_base) <reset>: Likewise.
3708 2019-07-17 Tom Tromey <tom@tromey.com>
3710 * tui/tui-layout.c (show_source_disasm_command): Use
3712 (reset_locator): New function.
3713 (init_and_make_win): Remove.
3714 (show_source_or_disasm_and_command): Use reset_locator.
3716 2019-07-17 Tom Tromey <tom@tromey.com>
3718 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
3720 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
3722 * tui/tui-source.c (tui_source_window_base::reset): New method.
3723 * tui/tui-layout.c (make_command_window): Don't call
3725 (make_source_window, make_disasm_window): Don't call
3726 make_source_or_disasm_window.
3727 (make_data_window): Don't call init_and_make_win. Change calling
3729 (show_source_disasm_command, show_data): Simplify.
3730 (make_source_or_disasm_window): Remove.
3731 (show_source_or_disasm_and_command): Simplify.
3732 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
3733 (struct tui_source_window_base) <reset>: Likewise.
3734 <execution_info>: Remove initializer.
3735 * tui/tui-data.c (tui_source_window_base): Initialize
3738 2019-07-17 Tom Tromey <tom@tromey.com>
3740 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
3743 2019-07-17 Tom Tromey <tom@tromey.com>
3745 * tui/tui.c (tui_rl_other_window): Update.
3746 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
3747 superclass method first. Always iterate over regs_content.
3748 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
3750 * tui/tui-win.c (tui_set_focus_command): Update.
3752 2019-07-17 Tom Tromey <tom@tromey.com>
3754 * tui/tui-win.c (tui_set_focus_command): Rename from
3755 tui_set_focus. Call tui_enable.
3756 (tui_set_focus_command): Remove.
3758 2019-07-17 Tom Tromey <tom@tromey.com>
3760 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
3762 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
3764 (tui_data_window::refresh_window): Call refresh_window on data
3765 items. Always call superclass refresh_window.
3766 (tui_win_info::refresh): Remove.
3767 (tui_source_window_base::refresh_window): Update.
3768 (tui_refresh_all): Update.
3769 * tui/tui-layout.c (show_source_disasm_command): Remove call to
3771 (show_source_or_disasm_and_command): Likewise.
3772 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
3773 (struct tui_source_window_base) <refresh>: Likewise.
3775 2019-07-17 Tom Tromey <tom@tromey.com>
3777 * tui/tui-winsource.c (tui_clear_source_content)
3778 (tui_show_source_content): Update.
3779 * tui/tui-source.c (tui_source_window::showing_source_p): Check
3780 whether content is empty.
3781 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
3784 2019-07-17 Tom Tromey <tom@tromey.com>
3786 * tui/tui-winsource.c (tui_erase_source_content): Clear the
3788 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
3789 * tui/tui-source.c (tui_set_source_content_nil): Remove.
3791 2019-07-17 Tom Tromey <tom@tromey.com>
3793 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
3794 (struct tui_data_item_window): Update.
3796 2019-07-17 Tom Tromey <tom@tromey.com>
3798 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
3799 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
3802 2019-07-17 Tom Tromey <tom@tromey.com>
3804 * tui/tui-winsource.h (tui_erase_source_content)
3805 (tui_clear_source_content): Remove "display_prompt" parameter.
3806 * tui/tui-winsource.c (tui_update_source_window_as_is)
3807 (tui_update_source_windows_with_addr): Update.
3808 (tui_clear_source_content): Remove "display_prompt" parameter.
3809 (tui_erase_source_content): Likewise. Simplify.
3810 (tui_show_source_content): Update.
3811 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3812 * tui/tui-stack.c (tui_show_frame_info): Update.
3813 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
3816 2019-07-17 Tom Tromey <tom@tromey.com>
3818 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3819 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
3821 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
3824 2019-07-17 Tom Tromey <tom@tromey.com>
3826 * tui/tui-winsource.c (tui_clear_source_content)
3827 (tui_show_source_content, tui_show_exec_info_content)
3828 (tui_clear_exec_info_content): Update.
3829 * tui/tui-stack.c (tui_show_locator_content): Update.
3830 (tui_show_frame_info): Update.
3831 * tui/tui-source.h (tui_source_window): Don't declare.
3832 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
3833 from tui_source_is_displayed.
3834 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
3836 (struct tui_source_window_base) <content_in_use>: New field. Now
3838 (struct tui_source_window) <showing_source_p>: New method.
3839 (TUI_SRC_WIN): Change cast.
3840 * tui/tui-data.c (tui_initialize_static_data): Update.
3842 2019-07-17 Tom Tromey <tom@tromey.com>
3844 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
3846 * tui/tui-source.c (tui_source_window::location_matches_p): New
3848 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
3850 * tui/tui-data.h (struct tui_source_window_base)
3851 <location_matches_p>: New method.
3852 (struct tui_source_window, struct tui_disasm_window)
3853 <location_matches_p>: Likewise.
3855 2019-07-17 Tom Tromey <tom@tromey.com>
3857 * tui/tui-win.c (tui_set_win_height_command): Rename from
3859 (tui_set_win_height_command): Remove.
3861 2019-07-17 Tom Tromey <tom@tromey.com>
3863 * tui/tui-source.c (tui_source_window): New constructor. Add
3865 (~tui_source_window): New destructor.
3866 (tui_source_window::style_changed): New method.
3867 * tui/tui-hooks.c (tui_redisplay_source): Remove.
3868 (tui_attach_detach_observers): Update.
3869 * tui/tui-data.h (struct tui_source_window): Make constructor not
3870 inline. Add destructor.
3871 (struct tui_source_window) <style_changed>: New method.
3872 <m_observable>: New member.
3874 2019-07-17 Tom Tromey <tom@tromey.com>
3876 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
3877 * tui/tui-win.c (tui_resize_all): Fix typo.
3879 2019-07-17 Tom Tromey <tom@tromey.com>
3881 * tui/tui-wingeneral.h (tui_refresh_all): Update.
3882 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
3883 (tui_refresh_all): Remove "list" parameter. Use foreach.
3884 * tui/tui-win.c (window_name_completer): Use foreach.
3885 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
3886 (update_tab_width): Likewise.
3887 * tui/tui-layout.c (show_layout): Update.
3888 * tui/tui-data.h (class tui_window_iterator): New.
3889 (struct all_tui_windows): New.
3890 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
3892 2019-07-17 Tom Tromey <tom@tromey.com>
3894 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
3895 parameter. Don't reference globals.
3896 (tui_reg_command): Update.
3898 2019-07-17 Tom Tromey <tom@tromey.com>
3900 * tui/tui-regs.c (tui_show_registers): Simplify.
3902 2019-07-17 Tom Tromey <tom@tromey.com>
3904 * tui/tui-regs.c (tui_show_registers): Update.
3905 (tui_show_register_group): Add win_info parameter.
3907 2019-07-17 Tom Tromey <tom@tromey.com>
3909 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
3910 Rename from tui_display_reg_element_at_line.
3911 (tui_data_window::display_registers_from_line): Update.
3912 * tui/tui-data.h (struct tui_data_window)
3913 <display_reg_element_at_line>: New method.
3915 2019-07-17 Tom Tromey <tom@tromey.com>
3917 * tui/tui-regs.h (tui_display_registers_from)
3918 (tui_display_registers_from_line): Don't declare.
3919 * tui/tui-windata.c (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_data_window::display_registers_from): Rename
3923 from tui_display_registers_from.
3924 (tui_display_reg_element_at_line): Update.
3925 (tui_data_window::display_registers_from_line): Rename from
3926 tui_display_registers_from_line.
3927 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
3928 display_registers_from_line>: New methods.
3930 2019-07-17 Tom Tromey <tom@tromey.com>
3932 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
3933 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
3934 from tui_erase_data_content.
3935 (tui_data_window::display_all_data)
3936 (tui_data_window::refresh_all)
3937 (tui_data_window::do_scroll_vertical): Update.
3938 * tui/tui-regs.c (tui_show_registers): Update.
3939 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
3942 2019-07-17 Tom Tromey <tom@tromey.com>
3944 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
3947 (tui_data_window::delete_data_content_windows): Rename from
3948 tui_delete_data_content_windows.
3949 (tui_data_window::display_all_data)
3950 (tui_data_window::do_scroll_vertical): Update.
3951 * tui/tui-data.h (struct tui_data_window)
3952 <delete_data_content_windows>: New method.
3954 2019-07-17 Tom Tromey <tom@tromey.com>
3956 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
3957 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
3959 2019-07-17 Tom Tromey <tom@tromey.com>
3961 * tui/tui-windata.h (tui_display_all_data): Don't declare.
3962 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
3963 from tui_display_all_data.
3965 (tui_data_window::do_make_visible_with_new_height): Update.
3966 * tui/tui-regs.c (tui_show_registers): Update.
3967 * tui/tui-layout.c (tui_set_layout): Update.
3968 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
3971 2019-07-17 Tom Tromey <tom@tromey.com>
3973 * tui/tui-windata.h (tui_display_data_from): Don't declare.
3974 * tui/tui-windata.c (tui_display_data_from): Remove.
3975 (tui_data_window::refresh_all): Update.
3977 2019-07-17 Tom Tromey <tom@tromey.com>
3979 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
3980 * tui/tui-windata.c (tui_display_data_from_line): Remove.
3981 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
3982 tui_display_registers_from_line.
3983 * tui/tui-regs.h (tui_display_registers_from_line): Update.
3984 * tui/tui-regs.c (tui_display_registers_from_line): Remove
3985 "force_display" parameter.
3987 2019-07-17 Tom Tromey <tom@tromey.com>
3989 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
3991 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
3992 Rename from tui_first_reg_element_no_inline.
3993 (tui_display_reg_element_at_line)
3994 (tui_display_registers_from_line): Update.
3995 * tui/tui-data.h (struct tui_data_window)
3996 <first_reg_element_no_inline>: New method.
3998 2019-07-17 Tom Tromey <tom@tromey.com>
4000 * tui/tui-windata.c (tui_display_data_from)
4001 (tui_data_window::do_scroll_vertical): Update.
4002 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4003 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4004 Rename from tui_line_from_reg_element_no.
4005 (tui_display_registers_from_line): Update.
4006 * tui/tui-data.h (struct tui_data_window)
4007 <line_from_reg_element_no>: New method.
4009 2019-07-17 Tom Tromey <tom@tromey.com>
4011 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4012 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4013 tui_last_regs_line_no.
4014 (tui_display_reg_element_at_line)
4015 (tui_display_registers_from_line): Update.
4016 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4019 2019-07-17 Tom Tromey <tom@tromey.com>
4022 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4023 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4024 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4025 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4026 (tui_update_breakpoint_info): Likewise.
4027 * tui/tui-hooks.c (tui_event_create_breakpoint)
4028 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4031 2019-07-17 Tom Tromey <tom@tromey.com>
4033 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4035 2019-07-17 Tom Tromey <tom@tromey.com>
4037 * tui/tui-winsource.c (tui_update_source_window_as_is)
4038 (tui_update_source_windows_with_addr): Update.
4039 * tui/tui-source.h (tui_set_source_content)
4040 (tui_show_symtab_source): Add "win_info" parameter.
4041 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4043 (tui_show_symtab_source): Likewise.
4045 2019-07-17 Tom Tromey <tom@tromey.com>
4047 * tui/tui-wingeneral.c
4048 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4050 2019-07-17 Tom Tromey <tom@tromey.com>
4052 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4053 (struct tui_cmd_window) <can_scroll>: New method.
4054 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4057 2019-07-17 Tom Tromey <tromey@adacore.com>
4059 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4060 do_field_signed>: Rename. Change type of "value".
4061 * ui-out.c (ui_out::field_signed): Rename from field_int.
4062 Change type of "value".
4063 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4065 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4066 do_field_int. Change type of "value".
4067 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4068 do_field_int. Change type of "value".
4069 * tracepoint.c (trace_status_mi, tfind_1)
4070 (print_one_static_tracepoint_marker): Update.
4071 * thread.c (print_thread_info_1, print_selected_thread_frame):
4073 * stack.c (print_frame, print_frame_info): Update.
4074 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4076 * source.c (print_source_lines_base): Update.
4077 * skip.c (info_skip_command): Update.
4078 * record-btrace.c (btrace_ui_out_decode_error)
4079 (btrace_call_history_src_line): Update.
4080 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4082 * progspace.c (print_program_space): Update.
4083 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4084 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4085 do_field_int. Change type of "value".
4086 * mi/mi-out.c (mi_ui_out::do_table_begin)
4087 (mi_ui_out::do_table_header): Update.
4088 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4090 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4091 (mi_cmd_data_list_changed_registers, output_register)
4092 (mi_cmd_data_read_memory, mi_load_progress)
4093 (mi_cmd_trace_frame_collected): Update.
4094 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4096 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4097 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4098 (mi_cmd_var_list_children, varobj_update_one): Update.
4099 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4100 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4101 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4102 * inferior.c (print_inferior): Update.
4103 * gdb_bfd.c (print_one_bfd): Update.
4104 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4106 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4107 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4108 do_field_int. Change type of "value".
4109 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4110 do_field_int. Change type of "value".
4111 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4112 (print_one_breakpoint_location, print_it_catch_fork)
4113 (print_one_catch_fork, print_it_catch_vfork)
4114 (print_one_catch_vfork, print_it_catch_solib)
4115 (print_it_catch_exec, print_it_ranged_breakpoint)
4116 (print_mention_watchpoint, print_mention_masked_watchpoint)
4117 (bkpt_print_it, update_static_tracepoint): Update.
4118 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4119 * break-catch-syscall.c (print_it_catch_syscall): Update.
4120 * ada-tasks.c (print_ada_task_info): Update.
4121 * ada-lang.c (print_it_exception, print_mention_exception):
4124 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4126 PR breakpoints/24541
4127 * gdbarch.c: Regenerate.
4128 * gdbarch.h: Regenerate.
4129 * gdbarch.sh: Adjust return type and parameter types for
4130 'stap_adjust_register'.
4131 (i386_stap_adjust_register): Adjust signature and return new
4133 * stap-probe.c (stap_parse_register_operand): Adjust use of
4134 'gdbarch_stap_adjust_register'.
4136 2019-07-17 Tom Tromey <tromey@adacore.com>
4138 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4140 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4142 (struct s390_process_info): Add initializers.
4143 (s390_add_process): Use new.
4144 (s390_linux_nat_target::low_forget_process): Use delete.
4145 (s390_linux_nat_target::low_new_fork)
4146 (s390_linux_nat_target::stopped_by_watchpoint)
4147 (s390_linux_nat_target::low_prepare_to_resume)
4148 (s390_linux_nat_target::insert_watchpoint)
4149 (s390_linux_nat_target::insert_hw_breakpoint)
4150 (s390_linux_nat_target::remove_watchpoint)
4151 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4153 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4155 * aarch64-fbsd-nat.c: Include regcache.h.
4156 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4158 (aarch64_fbsd_nat_target::fetch_registers)
4159 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4161 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4163 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4165 * fbsd-nat.c: Include gdbarch.h.
4167 2019-07-15 Tom Tromey <tromey@adacore.com>
4169 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4171 2019-07-15 Tom Tromey <tromey@adacore.com>
4173 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4174 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4175 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4176 * cli-out.c (cli_ui_out::do_field_int): New method.
4177 * ui-out.c (ui_out::field_unsigned): New method.
4178 * symfile.c (generic_load): Use field_unsigned.
4179 (print_transfer_performance): Likewise.
4180 * record-btrace.c (ui_out_field_uint): Remove.
4181 (btrace_call_history_insn_range, btrace_call_history): Use
4183 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4185 * ui-out.h (class ui_out) <field_unsigned>: New method.
4186 <do_field_unsigned>: Likewise.
4188 2019-07-15 Tom Tromey <tromey@adacore.com>
4190 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4191 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4192 * target.c (flash_erase_command): Use field_string.
4193 * infrun.c (print_signal_received_reason): Use field_string.
4194 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4195 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4197 * ada-tasks.c (print_ada_task_info): Use field_string.
4199 2019-07-15 Tom Tromey <tromey@adacore.com>
4201 * target.c (flash_erase_command): Use field_core_addr.
4202 * symfile.c (generic_load): Use field_core_addr.
4203 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4204 Use field_core_addr.
4205 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4208 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4210 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4211 value if its desired type is smaller than a CORE_ADDR and signed.
4213 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4215 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4216 of changes to field names, and use new is_reference field to
4217 decide if a property is a reference or not.
4218 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4220 (struct dwarf2_property_baton): Update header comment, rename
4221 'referenced_type' to 'property_type' and update comments.
4222 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4223 default property type, store in property baton, update to take
4224 accound of renamed field.
4225 (read_func_scope): Update call to attr_to_dynamic_prop.
4226 (read_array_type): Likewise.
4227 (dwarf2_per_cu_addr_sized_int_type): New function.
4228 (read_subrange_index_type): Move type finding code to
4229 dwarf2_per_cu_addr_sized_int_type.
4230 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4231 (dwarf2_per_cu_addr_type): New function.
4232 (set_die_type): Update calls to attr_to_dynamic_prop.
4234 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4236 * dwarf2read.c (read_subrange_index_type): New function.
4237 (read_subrange_type): Move code into new function and call it.
4238 * gdbtypes.c (create_range_type): Add some asserts.
4240 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4242 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4243 update return statements.
4244 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4245 declaration, and update comment to match.
4246 * gdbtypes.c (resolve_dynamic_array): Update call to
4247 dwarf2_evaluate_property to match new return type.
4249 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4251 * valarith.c (value_subscripted_rvalue): Change lowerbound
4252 parameter type from int to LONGEST.
4253 * value.h (value_subscripted_rvalue): Likewise in declaration.
4255 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4257 * cli/cli-utils.c (info_print_command_completer): New function.
4258 * cli/cli-utils.h: Add 'completer.h' include, and forward
4259 declaration for 'struct cmd_list_element'.
4260 (info_print_command_completer): Declare.
4261 * stack.c (_initialize_stack): Add completer for 'info locals' and
4263 * symtab.c (_initialize_symtab): Add completer for 'info
4264 variables' and 'info functions'.
4265 * NEWS: Mention completion for additional info commands.
4267 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4269 * cli/cli-utils.c (extract_info_print_args): Delete.
4270 (extract_arg_maybe_quoted): Delete.
4271 (info_print_options_defs): New variable.
4272 (make_info_print_options_def_group): New function.
4273 (extract_info_print_options): Define new function.
4274 * cli/cli-utils.h (extract_info_print_args): Delete.
4275 (struct info_print_options): New structure.
4276 (extract_info_print_options): Declare new function.
4277 * stack.c (info_locals_command): Update to use new
4278 extract_info_print_options, also add a header comment.
4279 (info_args_command): Likewise.
4280 * symtab.c (info_variables_command): Likewise.
4281 (info_functions_command): Likewise.
4283 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4285 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4286 to extract string arguments.
4287 * common/common-utils.c (extract_string_maybe_quoted): New function.
4288 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4290 2019-07-11 Tom Tromey <tromey@adacore.com>
4292 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4293 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4294 * top.h (gdbinit): Don't declare.
4295 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4297 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4298 * top.c (gdb_init): Don't call init_cli_cmds.
4300 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4302 2019-07-11 Tom Tromey <tromey@adacore.com>
4304 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4305 after it has been moved.
4307 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4309 * valops.c (value_must_coerce_to_target): Change return type to
4311 * value.h (value_must_coerce_to_target): Likewise.
4313 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4315 * breakpoint.c (is_hardware_watchpoint): Remove
4316 forward-declaration.
4317 (is_masked_watchpoint): Change return type to bool.
4318 (is_tracepoint): Likewise.
4319 (is_breakpoint): Likewise.
4320 (is_hardware_watchpoint): Likewise.
4321 (is_watchpoint): Likewise.
4322 (is_no_memory_software_watchpoint): Likewise.
4323 (is_catchpoint): Likewise.
4324 (breakpoint_1): Make FILTER parameter's return type bool.
4325 is_masked_watchpoint): Change return type to bool.
4326 (save_breakpoints): Make FILTER parameter's return type bool.
4327 * breakpoint.h (is_breakpoint): Change return type to bool.
4328 (is_watchpoint): Likewise.
4329 (is_catchpoint): Likewise.
4330 (is_tracepoint): Likewise.
4332 2019-07-10 Tom Tromey <tom@tromey.com>
4334 * defs.h: Don't include gdbarch.h.
4335 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4336 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4337 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4338 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4339 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4340 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4341 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4342 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4343 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4344 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4345 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4346 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4347 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4348 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4349 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4350 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4351 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4352 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4353 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4354 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4355 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4356 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4357 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4358 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4359 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4360 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4361 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4363 2019-07-10 Tom Tromey <tromey@adacore.com>
4365 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4366 * breakpoint.c (init_ada_exception_breakpoint): Register as
4368 (print_one_breakpoint_location, print_one_breakpoint): Use
4369 is_ada_exception_catchpoint.
4370 * ada-lang.c (class ada_catchpoint_location): Pass
4371 bp_loc_software_breakpoint to bp_location constructor.
4372 (is_ada_exception_catchpoint): New function.
4374 2019-07-10 Tom Tromey <tromey@adacore.com>
4376 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4378 (struct arm_exidx_entry): New method operator<.
4379 (struct arm_exidx_data) <section_maps>: Change type.
4380 (arm_exidx_data_free): Remove.
4381 (arm_exidx_data_key): Change type. Move lower.
4382 (arm_exidx_new_objfile): Update.
4383 (arm_compare_exidx_entries): Remove.
4384 (arm_find_exidx_entry, _initialize_arm_tdep)
4386 2019-07-10 Tom Tromey <tromey@adacore.com>
4388 * solib-spu.c (ocl_program_data_key): Change type.
4389 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4392 2019-07-10 Tom Tromey <tromey@adacore.com>
4394 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4395 (struct solib_aix_inferior_data) <library_list>: Change type.
4396 (solib_aix_inferior_data_handle): Change type.
4397 (get_solib_aix_inferior_data): Update.
4398 (solib_aix_free_library_list): Remove.
4399 (library_list_start_library): Update.
4400 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4402 (solib_aix_get_library_list)
4403 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4404 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4406 2019-07-10 Tom Tromey <tromey@adacore.com>
4408 * solib-dsbt.c (struct dsbt_info): Add initializers.
4409 (solib_dsbt_pspace_data): Change type.
4410 (dsbt_pspace_data_cleanup): Remove.
4411 (get_dsbt_info, _initialize_dsbt_solib): Update.
4413 2019-07-10 Tom Tromey <tromey@adacore.com>
4415 * spu-tdep.c (spu_overlay_data): Change type.
4416 (spu_get_overlay_table, spu_overlay_new_objfile)
4417 (_initialize_spu_tdep): Update.
4419 2019-07-10 Tom Tromey <tromey@adacore.com>
4421 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4423 (dbx_objfile_data_key): Change type and declare later.
4424 (DBX_SYMFILE_INFO): Rewrite.
4425 * dbxread.c (dbx_objfile_data_key): Change type.
4426 (dbx_symfile_init): Update.
4427 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4428 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4429 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4431 2019-07-10 Tom Tromey <tromey@adacore.com>
4433 * jit.c (jit_program_space_key): Change type. Move lower.
4434 (get_jit_program_space_data): Update.
4435 (jit_program_space_data_cleanup): Remove.
4436 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4438 (struct jit_program_space_data): Add initializers.
4440 2019-07-10 Tom Tromey <tromey@adacore.com>
4442 * solib-darwin.c (struct darwin_info): Add initializers.
4443 (solib_darwin_pspace_data): Change type.
4444 (darwin_pspace_data_cleanup): Remove.
4445 (get_darwin_info, _initialize_darwin_solib): Update.
4447 2019-07-10 Tom Tromey <tromey@adacore.com>
4449 * remote-sim.c (struct sim_inferior_data): Add initializers,
4450 constructor, and destructor.
4451 (sim_inferior_data_key): Change type. Move lower.
4452 (check_for_duplicate_sim_descriptor): Update.
4453 (get_sim_inferior_data): Use new. Update.
4454 (~sim_inferior_data_cleanup): Rename from
4455 sim_inferior_data_cleanup. Simplify.
4456 (gdbsim_close_inferior, simulator_command)
4457 (sim_command_completer, _initialize_remote_sim): Update.
4458 (next_pid, INITIAL_PID): Move earlier.
4460 2019-07-10 Tom Tromey <tromey@adacore.com>
4462 * python/python-internal.h (create_thread_object): Return
4464 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4465 * python/py-inferior.c (struct threadlist_entry): Add
4467 <thread_obj>: Now a gdbpy_ref.
4468 (thread_to_thread_object): Update.
4469 (add_thread_object): Use new.
4470 (delete_thread_object): Use delete.
4471 (infpy_threads): Update.
4472 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4475 2019-07-10 Tom Tromey <tromey@adacore.com>
4477 * valops.c (value_cast): Specialize error message for Ada.
4479 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4481 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4483 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4485 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4486 bpstat_should_step): Return bool, adjust comments.
4487 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4488 bpstat_should_step): Likewise.
4490 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4492 * features/Makefile: Use feature target descriptions for Arm.
4493 * features/arm/arm-core.c: Generate new file.
4494 * features/arm/arm-fpa.c: Likewise.
4495 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4496 * features/arm/arm-m-profile.c: Likewise.
4497 * features/arm/arm-vfpv2.c: Likewise.
4498 * features/arm/arm-vfpv3.c: Likewise.
4499 * features/arm/xscale-iwmmxt.c: Likewise.
4500 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4502 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4504 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4507 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4509 * features/aarch64-pauth.c: Regenerate.
4511 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4513 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4515 (bpstat_what): Use false instead of 0.
4517 2019-07-09 Pedro Alves <palves@redhat.com>
4519 * break-catch-throw.c (is_exception_catchpoint): New.
4520 * breakpoint.c (print_one_breakpoint_location): New parameter
4521 'raw_loc'. Handle it. Use
4522 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
4523 looking at the breakpoint's type.
4524 (print_one_breakpoint): If handling "maint info breakpoints", also
4525 print locations of exception catchpoints.
4526 * breakpoint.h (is_exception_catchpoint): Declare.
4528 2019-07-09 Pedro Alves <palves@redhat.com>
4530 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
4532 (allocate_location_exception_catchpoint): New.
4533 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
4534 (initialize_throw_catchpoint_ops): Install
4535 allocate_location_exception_catchpoint as allocate_location
4537 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
4538 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
4540 (breakpoint_address_is_meaningful): Delete.
4541 (bl_address_is_meaningful): New.
4542 (breakpoint_locations_match): Adjust comment.
4543 (bp_location_from_bp_type): New, factored out of...
4544 (bp_location::bp_location(breakpoint *)): ... this.
4545 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
4547 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
4548 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
4549 breakpoint_address_is_meaningful.
4550 (bp_locations_compare): Adjust comment.
4551 (update_global_location_list): Use bl_address_is_meaningful
4552 instead of breakpoint_address_is_meaningful.
4553 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
4555 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
4556 * python/py-breakpoint.c (bppy_get_location): No longer check
4557 whether location is null.
4559 2019-07-09 Pedro Alves <palves@redhat.com>
4562 * breakpoint.c (print_one_breakpoint_location): Remove
4563 single-location assert.
4565 2019-07-09 Tom Tromey <tom@tromey.com>
4567 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
4568 * configure: Rebuild.
4569 * configure.ac: Change common to gdbsupport.
4570 * gdbsupport: Rename from common.
4571 * acinclude.m4: Change common to gdbsupport.
4572 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
4573 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
4575 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
4576 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
4577 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
4578 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
4579 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
4580 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
4581 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
4582 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
4583 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
4584 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
4585 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
4586 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
4587 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
4588 coff-pe-read.c, command.h, compile/compile-c-support.c,
4589 compile/compile-c.h, compile/compile-cplus-symbols.c,
4590 compile/compile-cplus-types.c, compile/compile-cplus.h,
4591 compile/compile-loc2c.c, compile/compile.c, completer.c,
4592 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
4593 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
4594 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
4595 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
4596 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
4597 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
4598 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
4599 features/aarch64-core.c, features/aarch64-fpu.c,
4600 features/aarch64-pauth.c, features/aarch64-sve.c,
4601 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
4602 features/i386/32bit-core.c, features/i386/32bit-linux.c,
4603 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
4604 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
4605 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
4606 features/i386/64bit-core.c, features/i386/64bit-linux.c,
4607 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
4608 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
4609 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
4610 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
4611 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
4612 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
4613 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
4614 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
4615 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
4616 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
4617 go32-nat.c, guile/guile.c, guile/scm-ports.c,
4618 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
4619 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
4620 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
4621 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
4622 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
4623 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
4624 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
4625 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
4626 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
4627 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
4628 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
4629 minsyms.c, mips-linux-tdep.c, namespace.h,
4630 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
4631 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
4632 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
4633 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
4634 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
4635 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
4636 nat/linux-waitpid.c, nat/mips-linux-watch.c,
4637 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
4638 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
4639 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
4640 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
4641 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
4642 procfs.c, producer.c, progspace.h, psymtab.h,
4643 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
4644 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
4645 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
4646 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
4647 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
4648 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
4649 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
4650 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
4651 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
4652 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
4653 target-memory.c, target.c, target.h, target/waitstatus.c,
4654 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
4655 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
4656 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
4657 unittests/array-view-selftests.c,
4658 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
4659 unittests/common-utils-selftests.c,
4660 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
4661 unittests/format_pieces-selftests.c,
4662 unittests/function-view-selftests.c,
4663 unittests/lookup_name_info-selftests.c,
4664 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
4665 unittests/mkdir-recursive-selftests.c,
4666 unittests/observable-selftests.c,
4667 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
4668 unittests/parse-connection-spec-selftests.c,
4669 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
4670 unittests/scoped_fd-selftests.c,
4671 unittests/scoped_mmap-selftests.c,
4672 unittests/scoped_restore-selftests.c,
4673 unittests/string_view-selftests.c, unittests/style-selftests.c,
4674 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
4675 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
4676 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
4677 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
4678 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
4679 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
4681 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4683 * linespec.c (decode_digits_list_mode): Set explicit_line to a
4685 (decode_digits_ordinary): Set explicit_line field in sal.
4686 * symtab.c (skip_prologue_sal): Don't skip prologue for a
4687 symtab_and_line that was set on an explicit line number in
4688 assembler code. Do always update the recorded symtab and line if
4689 we do skip the prologue.
4691 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4693 * breakpoint.c (set_breakpoint_location_function): Remove
4694 explicit_loc parameter.
4695 (momentary_breakpoint_from_master): Update call to
4696 set_breakpoint_location_function.
4697 (add_location_to_breakpoint): Likewise.
4699 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4701 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
4702 required features based on default bfd type when no specific bfd
4705 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4707 * NEWS: Mention that GDB printf and eval commands can now print
4708 C-style and Ada-style convenience var strings without
4709 calling the inferior.
4710 * printcmd.c (printf_c_string): Locally print GDB internal var
4711 instead of transiting via the inferior.
4712 (printf_wide_c_string): Likewise.
4714 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4716 PR breakpoints/25011
4717 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
4719 2019-07-04 Tom Tromey <tom@tromey.com>
4722 * tui/tui-winsource.c (tui_clear_source_content): Update.
4723 (tui_source_window_base::set_is_exec_point_at): Fix comment.
4724 (tui_update_breakpoint_info): Update.
4725 (tui_set_exec_info_content): Update.
4726 * tui/tui-source.c (tui_set_source_content_nil): Update.
4727 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
4729 * tui/tui-data.h (enum tui_bp_flag): New.
4730 (tui_bp_flags): New enum flags type.
4731 (struct tui_source_element) <break_mode>: Change type. Rename
4733 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
4734 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
4736 * tui/tui-winsource.h: Fix comment.
4738 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4740 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
4741 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
4742 (store_fpregs_to_thread)
4743 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4744 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
4745 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
4746 (IWMMXT_REGS_SIZE): Add define.
4747 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
4748 (fetch_vfp_regs, store_vfp_regs)
4749 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
4750 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
4752 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4754 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
4756 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
4757 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
4758 (ARM_INT_REGISTER_SIZE): ...to this.
4759 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
4760 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
4761 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
4762 (arm_linux_collect_gregset, supply_nwfpe_register)
4763 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
4765 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
4766 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
4767 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
4768 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
4769 (arm_return_in_memory, arm_store_return_value)
4770 (arm_get_longjmp_target, arm_register_g_packet_guesses)
4771 (arm_record_ld_st_multiple): Likewise.
4772 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
4773 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
4775 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4777 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
4778 AARCH64_DISPLACED_MODIFIED_INSNS.
4779 * aarch64-tdep.c (struct aarch64_displaced_step_data)
4780 (aarch64_displaced_step_copy_insn): Likewise.
4781 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4782 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
4783 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
4784 ARM_DISPLACED_MODIFIED_INSNS.
4785 * arm-tdep.c (arm_gdbarch_init): Likewise.
4786 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
4787 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
4788 (struct arm_displaced_step_closure): Use
4789 ARM_DISPLACED_MODIFIED_INSNS.
4791 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4793 * features/Makefile: Remove unused xml files.
4794 * features/aarch64.xml: Remove.
4795 * features/i386/amd64-avx-avx512-linux.xml: Remove.
4796 * features/i386/amd64-avx-avx512.xml: Remove.
4797 * features/i386/amd64-avx-linux.xml: Remove.
4798 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
4799 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
4800 * features/i386/amd64-avx-mpx-linux.xml: Remove.
4801 * features/i386/amd64-avx-mpx.xml: Remove.
4802 * features/i386/amd64-avx.xml: Remove.
4803 * features/i386/amd64-linux.xml: Remove.
4804 * features/i386/amd64-mpx-linux.xml: Remove.
4805 * features/i386/amd64-mpx.xml: Remove.
4806 * features/i386/amd64.xml: Remove.
4807 * features/i386/i386-avx-avx512-linux.xml: Remove.
4808 * features/i386/i386-avx-avx512.xml: Remove.
4809 * features/i386/i386-avx-linux.xml: Remove.
4810 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
4811 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
4812 * features/i386/i386-avx-mpx-linux.xml: Remove.
4813 * features/i386/i386-avx-mpx.xml: Remove.
4814 * features/i386/i386-avx.xml: Remove.
4815 * features/i386/i386-linux.xml: Remove.
4816 * features/i386/i386-mmx-linux.xml: Remove.
4817 * features/i386/i386-mmx.xml: Remove.
4818 * features/i386/i386-mpx-linux.xml: Remove.
4819 * features/i386/i386-mpx.xml: Remove.
4820 * features/i386/i386.xml: Remove.
4821 * features/i386/x32-avx-avx512-linux.xml: Remove.
4822 * features/i386/x32-avx-linux.xml: Remove.
4823 * features/i386/x32-linux.xml: Remove.
4825 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4827 * regformats/aarch64.dat: Remove.
4828 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
4829 * regformats/i386/amd64-avx-linux.dat: Remove.
4830 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
4831 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
4832 * regformats/i386/amd64-linux.dat: Remove.
4833 * regformats/i386/amd64-mpx-linux.dat: Remove.
4834 * regformats/i386/amd64.dat: Remove.
4835 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
4836 * regformats/i386/i386-avx-linux.dat: Remove.
4837 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
4838 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
4839 * regformats/i386/i386-linux.dat: Remove.
4840 * regformats/i386/i386-mmx-linux.dat: Remove.
4841 * regformats/i386/i386-mpx-linux.dat: Remove.
4842 * regformats/i386/i386.dat: Remove.
4843 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
4844 * regformats/i386/x32-avx-linux.dat: Remove.
4845 * regformats/i386/x32-linux.dat: Remove.
4847 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4849 * aarch64-tdep.c: Remove xml self tests.
4850 * amd64-linux-tdep.c: Likewise.
4851 * amd64-tdep.c: Likewise.
4852 * i386-linux-tdep.c: Likewise.
4853 * i386-tdep.c: Likewise.
4855 2019-07-03 Pedro Alves <palves@redhat.com>
4858 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
4859 (pipe_cmd_option_defs): New.
4860 (make_pipe_cmd_options_def_group): New.
4861 (pipe_command): Use gdb::option::process_options.
4862 (pipe_command_completer): New function.
4863 (_initialize_cli_cmds): Install completer for "pipe" command.
4865 2019-07-03 Pedro Alves <palves@redhat.com>
4867 * cli/cli-option.c (union option_value) <string>: New field.
4868 (struct option_def_and_value): Add ctor, move ctor, dtor and
4869 use DISABLE_COPY_AND_ASSIGN.
4870 (option_def_and_value::clear_value): New.
4871 (parse_option, save_option_value_in_ctx, get_val_type_str)
4872 (add_setshow_cmds_for_options): Handle var_string.
4873 * cli-option.h (union option_def::var_address) <string>: New
4875 (struct string_option_def): New.
4876 * maint-test-options.c (struct test_options_opts): Add default
4877 ctor and use DISABLE_COPY_AND_ASSIGN.
4878 <string_opt>: New field.
4879 (test_options_opts::~test_options_opts): New.
4880 (test_options_opts::dump): Also dump "-string".
4881 (test_options_option_defs): Install "string.
4883 2019-07-03 Pedro Alves <palves@redhat.com>
4885 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
4886 option_value with a null enumeration.
4887 (complete_options): Save the option values in the context.
4888 (save_option_value_in_ctx): New, factored out from ...
4889 (process_options): ... here.
4890 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
4892 * maint-test-options.c (test_options_opts::dump): New, factored
4894 (maintenance_test_options_command_mode): ... here.
4895 (maintenance_test_options_command_completion_result): Delete.
4896 (maintenance_test_options_command_completion_text): Update
4898 (maintenance_show_test_options_completion_result): Change
4899 prototype. Just print
4900 maintenance_test_options_command_completion_text.
4901 (save_completion_result): New.
4902 (maintenance_test_options_completer_mode): Pass options context to
4903 complete_options, and then save a dump.
4904 (_initialize_maint_test_options): Use add_cmd to install "maint
4905 show test-options-completion-result".
4907 2019-07-03 Pedro Alves <palves@redhat.com>
4909 * NEWS (New commands): Mention "with" and "maint with".
4910 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
4911 (with_command, with_command_completer): New.
4912 (pipe_command): Adjust to new repeat_previous
4914 (_initialize_cli_cmds): Install the "with" command and its "w"
4916 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
4918 * cli/cli-setshow.c (parse_cli_var_uinteger)
4919 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
4920 argument strings for all var_types.
4921 (get_setshow_command_value_string): New, factored out from ...
4922 (do_show_command): ... this.
4923 * cli/cli-setshow.h: Include <string>.
4924 (get_setshow_command_value_string): Declare.
4925 * command.h (repeat_previous): Now returns const char *. Adjust
4927 * maint.c: Include "cli/cli-cmds.h".
4928 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
4929 (_initialize_maint_cmds): Register the "maintenance with" command.
4930 * top.c (repeat_previous): Move bits from pipe_command here:
4931 Return the saved command line, if any; error out if there's no
4932 command to relaunch.
4934 2019-07-03 Pedro Alves <palves@redhat.com>
4936 * NEWS (New commands): Mention "maint set/show test-settings"
4937 instead of "maint test-settings".
4938 * maint-test-settings.c (maintenance_test_settings_list): Delete.
4939 (maintenance_test_settings_set_list): Rename to ...
4940 (maintenance_set_test_settings_list): ... this.
4941 (maintenance_test_settings_show_list): Rename to ...
4942 (maintenance_show_test_settings_list): ... this.
4943 (maintenance_test_settings_cmd): Delete.
4944 (maintenance_test_settings_set_cmd): ...
4945 (maintenance_set_test_settings_cmd): ... this.
4946 (maintenance_test_settings_show_cmd): ...
4947 (maintenance_show_test_settings_cmd): ... this.
4948 (maintenance_test_settings_show_value_cmd):
4949 (maintenance_show_test_settings_value_cmd): ... this.
4950 (_initialize_maint_test_settings): No longer install the "maint
4951 test-settings" prefix command. Rename "maint test-settings set"
4952 to "maint set test-settings", and "maint test-settings show" to
4953 "maint show test-settings". Adjust all subcommands.
4955 2019-07-03 Pedro Alves <palves@redhat.com>
4957 * maint-test-settings.c: Fix file's intro comment. Replace all
4958 references to "test-options" with references to "test-settings",
4961 2019-07-03 Pedro Alves <palves@redhat.com>
4963 * maint-test-settings.c (maintenance_test_settings_xxx)
4964 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
4966 (maintenance_test_settings_enums): Use them.
4967 (maintenance_test_settings_enum): Default to
4968 maintenance_test_settings_xxx.
4969 (_initialize_maint_test_settings): Initialize
4970 MAINTENANCE_TEST_SETTINGS_FILENAME.
4972 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4974 * breakpoint.h (remove_breakpoints_inf): Change return type to
4975 void, move function documentation here.
4976 * breakpoint.c (remove_breakpoints_inf): Change return type to
4977 void, move function documentation to header.
4979 2019-07-02 Pedro Alves <palves@redhat.com>
4981 * NEWS (Completion improvements): Mention "info threads".
4982 * thread.c (struct info_threads_opts, info_threads_option_defs)
4983 (make_info_threads_options_def_group): New.
4984 (info_threads_command): Use gdb::option::process_options.
4985 (info_threads_command_completer): New.
4986 (_initialize_thread): Use gdb::option::build_help to build the
4987 help text for "info threads".
4989 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4991 * defs.h (generic_load): Move from here...
4992 * symfile.h (generic_load): ... to here. Rename name parameter
4994 * symfile.c (generic_load): Add comment.
4996 2019-07-01 Tom Tromey <tromey@adacore.com>
4999 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5000 declaration of without_params. Fix formatting.
5002 2019-07-01 Tom Tromey <tromey@adacore.com>
5004 * ada-exp.y (find_primitive_type): Update.
5005 * ada-lang.h (ada_lookup_symbol): Update.
5006 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5008 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5010 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5012 PR breakpoints/24541
5013 * gdbarch.c: Regenerate.
5014 * gdbarch.h: Regenerate.
5015 * gdbarch.sh: Add 'stap_adjust_register'.
5016 * i386-tdep.c: Include '<unordered_set>'.
5017 (i386_stap_adjust_register): New function.
5018 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5019 * stap-probe.c (stap_parse_register_operand): Call
5020 'gdbarch_stap_adjust_register'.
5022 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5025 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5026 * python/python.c (do_start_initialization): Use 'xmalloc'
5027 instead of 'PyMem_Malloc'.
5029 2019-06-28 Tom Tromey <tromey@adacore.com>
5031 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5034 2019-06-27 Tom Tromey <tromey@adacore.com>
5036 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5038 (arm_find_mapping_symbol, arm_record_special_symbol)
5039 (_initialize_arm_tdep): Update.
5040 (arm_objfile_data_free): Remove.
5042 2019-06-27 Tom Tromey <tromey@adacore.com>
5044 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5045 to cp_print_static_field.
5047 2019-06-26 Tom Tromey <tromey@adacore.com>
5049 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5050 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5053 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5055 * features/aarch64-core.c (create_feature_aarch64_core):
5057 * features/aarch64-core.xml: Add cpsr flags.
5059 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5061 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5062 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5064 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5066 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5068 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5070 (arm_record_special_symbol): Don't insert new symbol in sorted
5071 position, push it at the end.
5073 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5075 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5076 (arm_mapping_symbol_s): Remove.
5077 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5078 (arm_mapping_symbol_vec): New typedef.
5079 (struct arm_per_objfile): Add constructor.
5080 <section_maps>: Change type to
5081 std::unique_ptr<arm_mapping_symbol_vec[]>.
5082 (arm_compare_mapping_symbols): Remove.
5083 (arm_find_mapping_symbol): Adjust to section_maps type change.
5084 (arm_objfile_data_free): Call delete on arm_per_objfile.
5085 (arm_record_special_symbol): Adjust to section_maps type change.
5086 Allocate arm_per_objfile with new.
5088 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5090 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5091 with the command prefix.
5093 2019-06-25 Tom Tromey <tom@tromey.com>
5095 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5096 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5098 2019-06-25 Tom Tromey <tom@tromey.com>
5100 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5102 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5105 2019-06-25 Tom Tromey <tom@tromey.com>
5107 * tui/tui-winsource.c
5108 (tui_source_window_base::set_is_exec_point_at): Add check against
5111 2019-06-25 Tom Tromey <tom@tromey.com>
5113 * tui/tui-source.c (tui_set_source_content): Don't check before
5115 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5117 2019-06-25 Tom Tromey <tom@tromey.com>
5119 * tui/tui-winsource.h (tui_update_source_window_as_is)
5120 (tui_alloc_source_buffer, tui_line_is_displayed)
5121 (tui_addr_is_displayed): Change type of win_info.
5122 * tui/tui-winsource.c (tui_update_source_window_as_is)
5123 (tui_clear_source_content, tui_show_source_line)
5124 (tui_show_source_content, tui_source_window_base::refill)
5125 (tui_source_window_base::set_is_exec_point_at)
5126 (tui_source_window_base::set_is_exec_point_at)
5127 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5128 (tui_alloc_source_buffer, tui_line_is_displayed)
5129 (tui_addr_is_displayed): Change type of win_info. Update.
5130 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5131 (tui_source_window_base::do_make_visible_with_new_height):
5133 * tui/tui-source.c (tui_set_source_content)
5134 (tui_set_source_content_nil)
5135 (tui_source_window::do_scroll_vertical): Update.
5136 * tui/tui-layout.c (show_layout): Update.
5137 * tui/tui-disasm.c (tui_set_disassem_content)
5138 (tui_disasm_window::do_scroll_vertical): Update.
5139 * tui/tui-data.h (tui_win_content): Remove.
5140 (struct tui_gen_win_info) <content, content_size>: Remove.
5141 (struct tui_source_element): Add initializers and destructor.
5142 (union tui_which_element, struct tui_win_element): Remove.
5143 (struct tui_source_window_base) <content>: New field.
5144 (struct tui_data_window): Remove destructor.
5145 (tui_alloc_content, tui_free_win_content)
5146 (tui_free_all_source_wins_content): Don't declare.
5147 * tui/tui-data.c (tui_initialize_static_data): Update.
5148 (init_content_element, tui_alloc_content): Remove.
5149 (~tui_gen_win_info): Update.
5150 (~tui_data_window, tui_free_all_source_wins_content)
5151 (tui_free_win_content, free_content, free_content_elements):
5154 2019-06-25 Tom Tromey <tom@tromey.com>
5156 * tui/tui-winsource.h (tui_clear_source_content)
5157 (tui_erase_source_content, tui_show_source_content): Change type
5159 * tui/tui-winsource.c (tui_clear_source_content)
5160 (tui_erase_source_content, tui_show_source_content): Change type
5162 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5163 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5165 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5167 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5169 2019-06-25 Tom Tromey <tom@tromey.com>
5171 * tui/tui-winsource.c (tui_clear_source_content)
5172 (tui_source_window_base::set_is_exec_point_at): Update.
5173 * tui/tui-source.c (tui_set_source_content_nil): Update.
5174 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5176 * tui/tui-data.c (init_content_element): Update.
5178 2019-06-25 Tom Tromey <tom@tromey.com>
5180 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5181 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5182 * tui/tui-layout.c (init_and_make_win): Update.
5183 * tui/tui.h (enum tui_win_type): Update.
5184 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5185 tui_win_is_auxillary.
5186 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5187 tui_win_is_auxillary.
5189 2019-06-25 Tom Tromey <tom@tromey.com>
5191 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5192 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5193 (tui_delete_data_content_windows, tui_display_all_data)
5194 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5196 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5197 * tui/tui-regs.c (tui_last_regs_line_no)
5198 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5199 (tui_show_registers): Update.
5200 (tui_show_register_group): Return void. Update.
5201 (tui_display_registers_from, tui_display_reg_element_at_line)
5202 (tui_display_registers_from_line, tui_check_register_values):
5204 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5206 (struct tui_data_window) <regs_content>: Now a std::vector.
5207 <regs_content_count>: Remove.
5208 (tui_add_content_elements, tui_free_data_content): Don't declare.
5209 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5210 (init_content_element): Remove DATA_WIN case. Add assert.
5211 (tui_add_content_elements): Remove.
5212 (tui_data_window): Update.
5213 (tui_free_data_content): Remove.
5214 (free_content_elements): Remove DATA_WIN case.
5216 2019-06-25 Tom Tromey <tom@tromey.com>
5218 * tui/tui-data.c (tui_data_item_window): Update.
5219 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5220 * tui/tui-windata.c (tui_display_all_data)
5221 (tui_display_data_from_line): Update.
5222 (tui_check_data_values): Remove.
5223 * tui/tui-regs.c (tui_show_register_group)
5224 (tui_display_reg_element_at_line): Update.
5225 * tui/tui-hooks.c (tui_register_changed)
5226 (tui_refresh_frame_and_register_information): Call
5227 tui_check_register_values.
5228 * tui/tui-data.h (struct tui_data_window) <data_content,
5229 data_content_count, data_type>: Remove.
5230 (enum tui_data_type): Remove.
5232 * tui/tui-data.c (tui_data_window::clear_detail)
5233 (~tui_data_window): Update.
5235 2019-06-25 Tom Tromey <tom@tromey.com>
5237 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5239 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5240 Rename from tui_first_data_item_displayed. Update.
5241 (tui_data_window::refresh_all)
5242 (tui_data_window::do_scroll_vertical): Update.
5243 * tui/tui-data.h (struct tui_data_window)
5244 <first_data_item_displayed>: Declare new method.
5246 2019-06-25 Tom Tromey <tom@tromey.com>
5248 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5249 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5251 (tui_initialize_static_data): ...here.
5253 2019-06-25 Tom Tromey <tom@tromey.com>
5255 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5256 (tui_display_registers_from, tui_check_register_values): Update.
5257 (tui_display_register): Remove win_info parameter; update.
5258 (tui_get_register): Change type of parameters.
5259 * tui/tui-data.h (struct tui_data_element): Remove.
5260 (union tui_which_element) <data>: Remove.
5261 <data_window>: Change type.
5262 (struct tui_data_item_window): New.
5263 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5265 (~tui_data_item_window): New destructor.
5266 (free_content_elements): Remove DATA_ITEM_WIN case.
5268 2019-06-25 Tom Tromey <tom@tromey.com>
5270 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5273 2019-06-25 Tom Tromey <tom@tromey.com>
5275 * tui/tui-data.h (struct tui_command_element): Remove.
5276 (union tui_which_element) <command>: Remove.
5277 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5279 (free_content_elements): Remove CMD_WIN case.
5281 2019-06-25 Tom Tromey <tom@tromey.com>
5283 * tui/tui-layout.c (tui_set_layout): Update.
5284 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5285 * tui/tui-data.c (layout_def): Update.
5287 2019-06-25 Tom Tromey <tom@tromey.com>
5289 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5290 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5291 (tui_source_window_base::set_new_height): Update.
5292 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5294 (tui_set_locator_fullname, tui_set_locator_info)
5295 (tui_show_frame_info): Update.
5296 * tui/tui-source.c (tui_set_source_content)
5297 (tui_source_is_displayed): Update.
5298 * tui/tui-layout.c (show_source_disasm_command, show_data)
5299 (show_source_or_disasm_and_command): Update.
5300 * tui/tui-disasm.c (tui_set_disassem_content)
5301 (tui_get_begin_asm_address): Update.
5302 * tui/tui-data.h (struct tui_locator_element): Remove.
5303 (union tui_which_element) <locator>: Remove.
5304 (struct tui_locator_window): New.
5305 (tui_locator_win_info_ptr): Change return type.
5306 * tui/tui-data.c (_locator): Change type.
5307 (tui_locator_win_info_ptr): Change return type.
5308 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5309 (tui_alloc_content): Add assert.
5311 2019-06-25 Tom Tromey <tom@tromey.com>
5313 * tui/tui-winsource.c
5314 (tui_exec_info_window::maybe_allocate_content): New method.
5315 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5316 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5317 (make_source_or_disasm_window): Add cast.
5318 * tui/tui-data.h (union tui_which_element) <simple_string>:
5320 (struct tui_source_info): New.
5321 (struct tui_source_window_base) <execution_info>: Change type.
5322 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5323 case, and add assert.
5324 (tui_alloc_content): Add assert.
5326 2019-06-25 Tom Tromey <tom@tromey.com>
5328 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5329 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5330 * tui/tui-data.c (tui_alloc_win_info): Remove.
5332 2019-06-25 Tom Tromey <tom@tromey.com>
5334 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5335 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5338 2019-06-25 Tom Tromey <tom@tromey.com>
5340 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5341 make_visible_with_new_height method.
5342 (tui_win_info::make_visible_with_new_height): New method.
5343 (tui_source_window_base::do_make_visible_with_new_height)
5344 (tui_data_window::do_make_visible_with_new_height)
5345 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5346 (make_visible_with_new_height): Remove.
5347 (tui_resize_all, tui_adjust_win_heights): Use
5348 make_visible_with_new_height method.
5349 * tui/tui-data.h (struct tui_win_info)
5350 <do_make_visible_with_new_height, make_visible_with_new_height>:
5352 (struct tui_source_window_base, struct tui_data_window)
5353 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5356 2019-06-25 Tom Tromey <tom@tromey.com>
5358 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5360 (update_tab_width): Call update_tab_width method.
5361 * tui/tui-data.h (struct tui_win_info)
5362 (struct tui_source_window_base) <update_tab_width>: New methods.
5364 2019-06-25 Tom Tromey <tom@tromey.com>
5366 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5368 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5370 (tui_gen_win_info::make_visible): Update.
5371 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5373 * tui/tui-data.h (enum tui_box): New enum.
5374 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5376 2019-06-25 Tom Tromey <tom@tromey.com>
5378 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5379 init_and_make_win for EXEC_INFO_WIN.
5380 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5382 (struct tui_win_info) <~tui_win_info>: Inline.
5383 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5385 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5386 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5388 (tui_initialize_static_data): Update.
5389 (~tui_gen_win_info): Handle more cleanup here.
5390 (~tui_source_window_base): Delete "execution_info".
5391 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5393 2019-06-25 Tom Tromey <tom@tromey.com>
5395 * tui/tui-layout.c (make_command_window): Don't set
5397 (show_source_disasm_command): Call the reset method.
5398 (show_data): Don't set can_highlight. Call the reset method.
5399 (tui_gen_win_info::reset): Rename from init_gen_win_info
5400 (init_and_make_win): Simplify. Return tui_gen_win_info.
5401 (show_source_or_disasm_and_command): Call the reset method.
5402 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5403 (struct tui_cmd_window): Set can_highlight.
5405 2019-06-25 Tom Tromey <tom@tromey.com>
5407 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5409 (tui_make_visible, tui_make_invisible): Rewrite.
5410 (tui_win_info::make_visible): Remove.
5411 (tui_source_window_base::make_visible): Update.
5412 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5413 method. Moved from...
5414 (struct tui_win_info) <make_visible>: ...here.
5416 2019-06-25 Tom Tromey <tom@tromey.com>
5418 * tui/tui-winsource.c
5419 (tui_source_window_base::do_scroll_horizontal): Remove direction
5421 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5422 direction parameter.
5423 * tui/tui-win.c (tui_win_info::forward_scroll)
5424 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5425 (tui_win_info::right_scroll): Update.
5426 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5427 direction parameter.
5428 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5429 direction parameter.
5430 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5431 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5432 Remove direction parameter.
5433 (struct tui_source_window_base, struct tui_source_window)
5434 (struct tui_disasm_window, struct tui_data_window)
5435 (struct tui_cmd_window): Update.
5437 2019-06-25 Tom Tromey <tom@tromey.com>
5439 * tui/tui-winsource.h (tui_set_exec_info_content)
5440 (tui_show_exec_info_content, tui_erase_exec_info_content)
5441 (tui_clear_exec_info_content, tui_update_exec_info): Change
5442 argument to tui_source_window_base.
5443 * tui/tui-winsource.c (tui_set_exec_info_content)
5444 (tui_show_exec_info_content, tui_erase_exec_info_content)
5445 (tui_clear_exec_info_content, tui_update_exec_info): Change
5446 argument to tui_source_window_base.
5448 2019-06-25 Tom Tromey <tom@tromey.com>
5450 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5451 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5453 2019-06-25 Tom Tromey <tom@tromey.com>
5455 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5458 2019-06-25 Tom Tromey <tom@tromey.com>
5460 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5462 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5464 * tui/tui-source.c (tui_set_source_content): Update.
5465 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5467 2019-06-25 Tom Tromey <tom@tromey.com>
5469 * tui/tui-win.c (window_name_completer, tui_set_focus)
5470 (tui_all_windows_info): Use name method.
5471 * tui/tui-data.h (struct tui_gen_win_info)
5472 (struct tui_source_window, struct tui_disasm_window)
5473 (struct tui_data_window, struct tui_cmd_window) <name>: New
5475 (tui_win_name): Don't declare.
5476 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5477 (tui_win_name): Remove.
5479 2019-06-25 Tom Tromey <tom@tromey.com>
5481 * tui/tui-winsource.h (tui_update_source_window)
5482 (tui_update_source_window_as_is): Change parameter type.
5483 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5484 to be a tui_source_window_base.
5485 (tui_update_source_window_as_is): Likewise.
5486 * tui/tui-win.c (make_visible_with_new_height): Update.
5488 2019-06-25 Tom Tromey <tom@tromey.com>
5490 * tui/tui-winsource.c (tui_erase_source_content)
5491 (tui_show_source_content, tui_show_exec_info_content)
5492 (tui_erase_exec_info_content): Use refresh_window method.
5493 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5494 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5495 from tui_refresh_win.
5496 (tui_data_window::refresh_window): New method.
5497 (tui_win_info::refresh, tui_source_window_base::refresh)
5498 (tui_refresh_all): Use refresh_window method.
5499 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5501 * tui/tui-regs.c (tui_display_register): Call refresh_window
5503 * tui/tui-layout.c (show_source_disasm_command)
5504 (show_source_or_disasm_and_command): Call refresh_window method.
5505 * tui/tui-data.h (struct tui_gen_win_info)
5506 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5509 2019-06-25 Tom Tromey <tom@tromey.com>
5511 * tui/tui.c (tui_rl_other_window, tui_enable)
5512 (tui_is_window_visible, tui_get_command_dimension): Update.
5513 * tui/tui-winsource.c (tui_update_source_window_as_is)
5514 (tui_clear_source_content, tui_erase_source_content)
5515 (tui_show_source_line, tui_source_window_base::refill)
5516 (tui_source_window_base::do_scroll_horizontal)
5517 (tui_source_window_base::set_is_exec_point_at)
5518 (tui_update_breakpoint_info, tui_set_exec_info_content)
5519 (tui_alloc_source_buffer, tui_line_is_displayed)
5520 (tui_addr_is_displayed): Update.
5521 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
5522 (tui_check_and_display_highlight_if_needed)
5523 (tui_win_info::make_visible, tui_win_info::refresh)
5524 (tui_refresh_all): Update.
5525 * tui/tui-windata.c (tui_first_data_item_displayed)
5526 (tui_delete_data_content_windows, tui_erase_data_content)
5527 (tui_display_all_data, tui_data_window::refresh_all)
5528 (tui_check_data_values): Update.
5529 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
5530 (tui_set_win_focus_to, tui_win_info::forward_scroll)
5531 (tui_win_info::backward_scroll, tui_refresh_all_win)
5532 (tui_resize_all, tui_set_focus, tui_all_windows_info)
5533 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
5534 (tui_source_window_base::set_new_height)
5535 (tui_data_window::set_new_height)
5536 (make_invisible_and_set_new_height)
5537 (make_visible_with_new_height, new_height_ok)
5538 (parse_scrolling_args): Update.
5539 * tui/tui-stack.c (tui_show_frame_info): Update.
5540 * tui/tui-source.c (tui_set_source_content)
5541 (tui_set_source_content_nil, tui_source_is_displayed)
5542 (tui_source_window::do_scroll_vertical): Update.
5543 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5544 (tui_display_registers_from, tui_display_reg_element_at_line)
5545 (tui_check_register_values, tui_reg_command): Update.
5546 * tui/tui-layout.c (tui_default_win_height)
5547 (show_source_disasm_command, show_data, init_and_make_win)
5548 (show_source_or_disasm_and_command): Update.
5549 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
5550 (tui_redisplay_readline, tui_mld_flush)
5551 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
5553 * tui/tui-disasm.c (tui_set_disassem_content)
5554 (tui_disasm_window::do_scroll_vertical): Update.
5555 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
5557 (struct tui_win_info): Derive from tui_gen_win_info.
5558 <~tui_win_info>: Mark as override.
5559 <generic>: Remove member.
5560 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
5561 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
5562 (~tui_data_window, ~tui_win_info)
5563 (tui_free_all_source_wins_content): Update.
5564 * tui/tui-command.c (tui_refresh_cmd_win): Update.
5566 2019-06-25 Tom Tromey <tom@tromey.com>
5568 * tui/tui-layout.c (init_and_make_win): Use new.
5569 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
5570 destructor, initializers.
5571 (tui_alloc_generic_win_info): Don't declare.
5572 * tui/tui-data.c (_locator): Add argument to constructor.
5573 (source_win, disasm_win): New globals.
5574 (exec_info): Remove.
5575 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5577 (tui_alloc_generic_win_info): Remove.
5578 (init_content_element): Use new.
5579 (tui_win_info::tui_win_info): Update.
5580 (free_content_elements) <case DATA_WIN>: Use delete.
5582 2019-06-25 Tom Tromey <tom@tromey.com>
5584 * tui/tui-wingeneral.c (tui_refresh_win): Update.
5585 * tui/tui-windata.c (tui_first_data_item_displayed)
5586 (tui_delete_data_content_windows): Update.
5587 * tui/tui-win.c (tui_data_window::set_new_height): Update.
5588 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5589 (tui_display_registers_from, tui_check_register_values): Update.
5590 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
5592 * tui/tui-data.c (init_content_element): Update. Allocate the new
5594 (tui_free_data_content): Update.
5595 (free_content_elements) <case DATA_WIN>: Free the window.
5597 2019-06-25 Tom Tromey <tom@tromey.com>
5599 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
5601 * tui/tui-layout.c (make_command_window)
5602 (show_source_disasm_command, show_data, init_and_make_win)
5603 (show_source_or_disasm_and_command): Update.
5604 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
5606 <can_highight, is_highlighted>: Now bool.
5607 (tui_set_win_highlight): Don't declare.
5608 * tui/tui-data.c (tui_set_win_highlight): Remove.
5610 2019-06-25 Tom Tromey <tom@tromey.com>
5612 * tui/tui-wingeneral.c (make_visible): Remove check of window
5615 2019-06-25 Tom Tromey <tom@tromey.com>
5617 * tui/tui-win.c (tui_win_info::max_height)
5618 (tui_cmd_window::max_height): New methods.
5619 (new_height_ok): Call max_height.
5620 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
5621 <max_height>: New method.
5623 2019-06-25 Tom Tromey <tom@tromey.com>
5625 * tui/tui-win.c (tui_source_window_base::set_new_height)
5626 (tui_data_window::set_new_height): New methods.
5627 (make_invisible_and_set_new_height): Call set_new_height method.
5628 * tui/tui-data.h (struct tui_win_info)
5629 (struct tui_source_window_base, struct tui_data_window)
5630 <set_new_height>: New method.
5632 2019-06-25 Tom Tromey <tom@tromey.com>
5634 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
5635 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
5636 tui_refresh_data_win.
5637 * tui/tui-win.c (tui_source_window_base::refresh_all): New
5639 (tui_refresh_all_win): Call the refresh_all method.
5640 (tui_set_focus): Likewise.
5641 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
5642 (struct tui_source_window_base, struct tui_data_window) <refresh>:
5645 2019-06-25 Tom Tromey <tom@tromey.com>
5647 * tui/tui-winsource.h (tui_refill_source_window)
5648 (tui_set_is_exec_point_at): Don't declare.
5649 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5650 (tui_source_window_base::refill): Rename from
5651 tui_refill_source_window.
5652 (tui_source_window_base::do_scroll_horizontal): Update.
5653 (tui_source_window_base::set_is_exec_point_at): Rename from
5654 tui_set_is_exec_point_at.
5655 (tui_update_all_breakpoint_info): Update.
5656 * tui/tui-stack.c (tui_show_frame_info): Update.
5657 * tui/tui-layout.c (show_data): Add cast.
5658 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
5659 * tui/tui-data.h (struct tui_source_window_base) <refill,
5660 set_is_exec_point_at>: New methods.
5661 (tui_source_windows, tui_add_to_source_windows): Update types.
5662 (tui_add_to_source_windows): Remove redundant declaration.
5663 * tui/tui-data.c (source_windows): Store tui_source_window_base.
5664 (tui_source_windows): Change return type.
5665 (tui_clear_source_windows_detail): Update.
5666 (tui_add_to_source_windows): Change type of parameter.
5667 (tui_free_all_source_wins_content): Update.
5669 2019-06-25 Tom Tromey <tom@tromey.com>
5671 * tui/tui-wingeneral.c (tui_win_info::refresh)
5672 (tui_source_window_base::refresh): New methods.
5673 (tui_refresh_all): Call the refresh method.
5674 * tui/tui-data.h (struct tui_win_info)
5675 (struct tui_source_window_base) <refresh>: New method.
5677 2019-06-25 Tom Tromey <tom@tromey.com>
5679 * tui/tui.h (tui_is_window_visible): Return bool.
5680 * tui/tui.c (tui_is_window_visible): Return bool.
5681 * tui/tui-wingeneral.c (tui_make_window, make_visible)
5682 (tui_make_visible, tui_make_invisible)
5683 (tui_win_info::make_visible)
5684 (tui_source_window_base::make_visible, make_all_visible)
5685 (tui_make_all_visible, tui_make_all_invisible): Update.
5686 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
5687 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
5689 (struct tui_win_info, struct tui_source_window_base)
5690 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
5691 * tui/tui-data.c (tui_init_generic_part): Update.
5693 2019-06-25 Tom Tromey <tom@tromey.com>
5695 * tui/tui-wingeneral.c (tui_win_info::make_visible)
5696 (tui_source_window_base::make_visible): New methods.
5697 (make_all_visible): Make method call.
5698 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
5699 (struct tui_source_window_base, struct tui_cmd_window): Override
5701 (tui_win_is_source_type): Don't declare.
5702 * tui/tui-data.c (tui_win_is_source_type): Remove.
5704 2019-06-25 Tom Tromey <tom@tromey.com>
5706 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
5709 2019-06-25 Tom Tromey <tom@tromey.com>
5711 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
5712 Inline constructor. Add initializers for members.
5713 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
5714 constructors; now inline in class.
5716 2019-06-25 Tom Tromey <tom@tromey.com>
5718 * tui/tui-regs.c (tui_show_registers): Update.
5719 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
5721 * tui/tui-data.c (tui_data_window::clear_detail)
5722 (tui_data_window): Update.
5724 2019-06-25 Tom Tromey <tom@tromey.com>
5726 * tui/tui-windata.c (tui_display_all_data)
5727 (tui_display_data_from_line, tui_display_data_from)
5728 (tui_check_data_values, tui_data_window::do_scroll_vertical):
5730 * tui/tui-regs.c (tui_last_regs_line_no)
5731 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5732 (tui_show_registers, tui_show_register_group)
5733 (tui_display_registers_from, tui_display_reg_element_at_line)
5734 (tui_display_registers_from_line, tui_check_register_values)
5735 (tui_reg_next, tui_reg_prev): Update.
5736 * tui/tui-layout.c (tui_set_layout, show_data): Update.
5737 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
5739 (struct tui_win_info) <detail>: Remove. Add new fields from
5741 (TUI_DATA_WIN): Add cast.
5742 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
5743 (~tui_data_window): Simplify.
5745 2019-06-25 Tom Tromey <tom@tromey.com>
5747 * tui/tui-layout.c (show_source_disasm_command)
5748 (show_source_or_disasm_and_command): Update.
5749 * tui/tui-io.c (update_cmdwin_start_line)
5750 (tui_redisplay_readline): Update.
5751 * tui/tui-data.h (struct tui_command_info): Remove.
5752 (struct tui_win_info) <detail>: Remove command_info member.
5753 (struct tui_data_window) <start_line>: New member, from
5755 (TUI_CMD_WIN): Add casts.
5757 2019-06-25 Tom Tromey <tom@tromey.com>
5759 * tui/tui-winsource.c (tui_update_source_window)
5760 (tui_refill_source_window)
5761 (tui_source_window_base::do_scroll_horizontal)
5762 (tui_update_breakpoint_info, tui_set_exec_info_content)
5763 (tui_show_exec_info_content, tui_erase_exec_info_content)
5764 (tui_clear_exec_info_content): Update.
5765 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
5767 * tui/tui-win.c (make_invisible_and_set_new_height)
5768 (make_visible_with_new_height): Update.
5769 * tui/tui-source.c (tui_set_source_content)
5770 (tui_show_symtab_source): Update.
5771 * tui/tui-layout.c (extract_display_start_addr)
5772 (show_source_disasm_command, show_data)
5773 (make_source_or_disasm_window)
5774 (show_source_or_disasm_and_command): Update.
5775 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
5776 (tui_disasm_window::do_scroll_vertical): Remove shadowing
5778 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
5779 to tui_source_window_base.
5780 (struct tui_win_info) <detail>: Remove source_info member.
5781 (struct tui_source_window_base) <has_locator>: Inline.
5782 Move contents from tui_source_info; rename has_locator member to
5784 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
5785 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
5787 (tui_source_window_base::clear_detail, ~tui_source_window_base):
5789 (tui_free_all_source_wins_content): Cast to
5790 tui_source_window_base.
5792 2019-06-25 Tom Tromey <tom@tromey.com>
5794 * tui/tui-win.c (make_invisible_and_set_new_height)
5795 (make_visible_with_new_height): Call has_locator method.
5796 * tui/tui-layout.c (show_source_disasm_command, show_data)
5797 (show_source_or_disasm_and_command): Update for bool change.
5798 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
5799 (tui_win_info) <has_locator>: New method.
5800 (struct tui_source_window_base) <has_locator>: New method.
5801 (tui_win_has_locator): Don't declare.
5802 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
5803 from tui_win_has_locator.
5804 (tui_source_window_base): Use false, not FALSE.
5806 2019-06-25 Tom Tromey <tom@tromey.com>
5808 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
5809 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
5810 clear_detail method directly.
5811 (tui_clear_win_detail): Remove.
5813 2019-06-25 Tom Tromey <tom@tromey.com>
5815 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
5816 "this", not TUI_DISASM_WIN.
5818 2019-06-25 Tom Tromey <tom@tromey.com>
5820 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
5822 * tui/tui-winsource.c
5823 (tui_source_window_base::do_scroll_horizontal): Rename from
5824 tui_horizontal_source_scroll.
5825 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
5826 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
5827 from tui_vertical_data_scroll.
5828 * tui/tui-win.h (tui_scroll): Don't declare.
5829 * tui/tui-win.c (tui_win_info::forward_scroll)
5830 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5831 (tui_win_info::right_scroll): Rename and update.
5832 (tui_scroll_forward_command, tui_scroll_backward_command)
5833 (tui_scroll_left_command, tui_scroll_right_command): Update.
5834 (tui_scroll): Remove.
5835 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
5836 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
5837 from tui_vertical_source_scroll.
5838 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
5839 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
5840 from tui_vertical_disassem_scroll.
5841 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
5842 do_scroll_horizontal>: New methods.
5843 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
5845 (struct tui_source_window_base): Add do_scroll_horizontal.
5846 (struct tui_source_window, struct tui_disasm_window): Add
5848 (struct tui_data_window, struct tui_cmd_window): Add
5849 do_scroll_horizontal and do_scroll_vertical.
5850 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
5852 2019-06-25 Tom Tromey <tom@tromey.com>
5854 * tui/tui-data.h (struct tui_source_window_base): New struct.
5855 (struct tui_source_window): Derive from tui_source_window_base.
5856 (struct tui_disasm_window): New struct.
5857 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
5858 from tui_source_window::clear_detail.
5859 (tui_source_window_base): Rename from tui_source_window.
5860 (~tui_source_window_base): Rename from ~tui_source_window.
5861 (tui_alloc_win_info): Create a tui_disasm_window.
5863 2019-06-25 Tom Tromey <tom@tromey.com>
5865 * tui/tui-data.h (struct tui_source_window)
5866 (struct tui_data_window): Declare destructors.
5867 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
5869 (tui_win_info): Simplify.
5871 2019-06-25 Tom Tromey <tom@tromey.com>
5873 * tui/tui-winsource.c (tui_display_main)
5874 (tui_update_source_windows_with_addr)
5875 (tui_update_all_breakpoint_info): Update.
5876 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5877 (new_height_ok, parse_scrolling_args): Update.
5878 * tui/tui-stack.c (tui_show_frame_info): Update.
5879 * tui/tui-data.h (struct tui_list): Remove.
5880 (tui_source_windows): Return a reference to a std::vector.
5881 * tui/tui-data.c (source_windows): Now a std::vector.
5882 (tui_source_windows): Change return type.
5883 (tui_clear_source_windows): Rewrite.
5884 (tui_clear_source_windows_detail, tui_add_to_source_windows)
5885 (tui_free_all_source_wins_content): Rewrite.
5887 2019-06-25 Tom Tromey <tom@tromey.com>
5889 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
5890 (struct tui_data_window, struct tui_cmd_window): Declare
5891 clear_detail method.
5892 * tui/tui-data.c (tui_source_window::clear_detail)
5893 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
5895 (tui_clear_win_detail): Simplify.
5897 2019-06-25 Tom Tromey <tom@tromey.com>
5899 * tui/tui-layout.c (make_source_window, make_disasm_window)
5900 (make_source_or_disasm_window): Remove win_info_ptr parameter.
5901 Return the new window.
5902 (show_source_disasm_command, show_data)
5903 (show_source_or_disasm_and_command): Update.
5905 2019-06-25 Tom Tromey <tom@tromey.com>
5907 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
5908 parameter. Return the new window.
5909 (show_source_disasm_command): Update and remove NULL check.
5910 (show_source_or_disasm_and_command): Update.
5912 2019-06-25 Tom Tromey <tom@tromey.com>
5914 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
5916 2019-06-25 Tom Tromey <tom@tromey.com>
5918 * tui/tui-data.h (struct tui_win_info): Make constructor
5919 protected. Make destructor virtual. Add initializers.
5920 (tui_source_window, tui_data_window, tui_cmd_window): New
5922 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
5923 constructor. Add "type" parameter.
5924 (tui_source_window, tui_data_window, tui_cmd_window): New
5926 (tui_alloc_win_info): Instantiate the appropriate subclass.
5928 2019-06-25 Tom Tromey <tom@tromey.com>
5930 * tui/tui-win.c (tui_resize_all): Use delete.
5931 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
5933 (tui_free_window): Don't declare.
5934 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
5937 2019-06-25 Tom Tromey <tom@tromey.com>
5939 * tui/tui-data.h (struct tui_win_info): Add constructor.
5940 * tui/tui-data.c (tui_alloc_win_info): Use new.
5941 (tui_free_window): Use delete.
5943 2019-06-22 Tom Tromey <tom@tromey.com>
5945 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
5947 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
5949 2019-06-22 Tom Tromey <tom@tromey.com>
5951 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
5953 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
5955 2019-06-22 Tom de Vries <tdevries@suse.de>
5957 * dwarf2read.c (create_addrmap_from_aranges)
5958 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
5961 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
5963 * dwarf2read.h (dwarf2_section_info_def): Remove.
5964 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
5965 * dwarf2read.c (struct dwo_sections) <types>: Change type to
5966 std::vector<dwarf2_section_info>.
5967 (struct dwo_file) <~dwo_file>: Remove.
5968 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
5970 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
5971 (dwarf2_read_debug_names): Likewise.
5972 (create_debug_types_hash_table): Change parameter type to
5973 array_view, adjust code accordingly.
5974 (dwarf2_locate_dwo_sections): Adjust to std::vector.
5975 (partial_die_info::fixup): Likewise.
5976 (determine_prefix): Likewise.
5977 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
5979 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5981 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
5983 <~dwo_file>: Remove call to gdb_bfd_unref.
5984 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
5985 gdb_bfd_ref_ptr::get.
5987 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
5989 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
5991 * dwarf2read.c (struct dwo_file): Initialize fields.
5993 (free_dwo_file): Remove, move content to ~dwo_file.
5994 (struct dwo_file_deleter): Remove.
5995 (dwo_file_up>: Remove custom deleter.
5996 (free_dwo_files): Remove.
5997 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
5999 (process_skeletonless_type_units): Call unique_ptr::get.
6000 (allocate_dwo_file_hash_table): Add deleter to created hash
6001 table. Change return type to htab_up.
6002 (lookup_dwo_file_slot): Don't memset dwo_file, call
6004 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6005 (create_dwo_unit_in_dwp_v2): Likewise.
6006 (open_and_init_dwo_file): Likewise.
6007 (free_dwo_file_from_slot): Remove.
6009 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6011 * dwarf2read.h (struct dwarf2_section_info) <readin,
6012 is_virtual>: Change type to bool.
6013 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6016 2019-06-19 Tom Tromey <tom@tromey.com>
6018 * tui/tui-data.h (tui_init_content_element): Don't declare.
6020 2019-06-19 Tom Tromey <tom@tromey.com>
6022 * tui/tui-data.h (tui_init_win_info): Don't declare.
6024 2019-06-19 Tom de Vries <tdevries@suse.de>
6026 * dwarf2read.h (abstract_to_concrete): Change type to
6027 std::unordered_map<sect_offset, std::vector<sect_offset>,
6028 gdb::hash_enum<sect_offset>>.
6030 2019-06-19 Tom Tromey <tromey@adacore.com>
6032 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6033 EVAL_AVOID_SIDE_EFFECTS specially.
6035 2019-06-19 Tom Tromey <tromey@adacore.com>
6037 * source-cache.c (highlighter): New global.
6038 (source_cache::get_source_lines): Create a highlighter on demand.
6040 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6042 * defs.h (deprecated_interactive_hook): Delete declaration.
6043 * interps.c (clear_interpreter_hooks): Remove use of
6044 deprecated_interactive_hook.
6045 * top.c (deprecated_interactive_hook): Delete definition.
6046 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6048 2019-06-18 Tom de Vries <tdevries@suse.de>
6051 * dwarf2read.h (abstract_to_concrete): Change type from
6052 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6053 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6054 * dwarf2read.c (read_variable): Update.
6055 (dwarf2_fetch_die_loc_sect_off): Update.
6057 2019-06-17 Tom de Vries <tdevries@suse.de>
6060 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6061 accessing parent[parent_len - 1].
6063 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6066 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6067 call dtrace_process_dof with NULL dof.
6069 2019-06-16 Tom de Vries <tdevries@suse.de>
6072 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6074 2019-06-16 Tom Tromey <tom@tromey.com>
6076 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6077 (make_all_visible): Use address of member.
6079 2019-06-16 Tom Tromey <tom@tromey.com>
6081 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6082 (tui_free_window, free_content, free_content_elements): Remove
6084 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6086 * tui/tui-regs.c (tui_show_register_group)
6087 (tui_display_registers_from, tui_display_reg_element_at_line):
6088 Remove unnecessary cast.
6090 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6092 * linux-nat.c (normal_mask): Delete.
6093 (_initialize_linux_nat): Don't initialise normal_mask.
6095 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6098 * dwarf-index-write.h (write_psymtabs_to_index): Add
6099 dwz_basename parameter.
6100 * dwarf-index-write.c (write_gdbindex): Move file writing to
6101 write_gdbindex_1. Change return type void.
6102 (assert_file_size): Move up, remove filename parameter.
6103 (write_gdbindex_1): New function.
6104 (write_debug_names): Change return type to void, call
6106 (struct index_wip_file): New struct.
6107 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6108 file logic to index_wip_file. Write index for dwz file if
6110 (save_gdb_index_command): Pass basename of dwz file, if present.
6111 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6112 build-id of dwz file, if present.
6113 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6114 (dwarf2_get_dwz_file): Likewise.
6115 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6116 (dwarf2_get_dwz_file): Likewise.
6118 2019-06-16 Tom Tromey <tom@tromey.com>
6120 * coffread.c (process_coff_symbol): Use xstrdup.
6121 * value.c (create_internalvar): Use xstrdup.
6123 2019-06-16 Tom Tromey <tom@tromey.com>
6125 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6126 * breakpoint.c (stopin_command, stopat_command)
6127 (until_break_command, decode_location_default): Remove unnecessary
6129 * utils.c (subset_compare): Remove unnecessary cast.
6130 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6132 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6134 * infcmd.c (path_command): Remove unnecessary cast.
6135 * coffread.c (decode_type): Remove unnecessary cast.
6136 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6137 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6138 * tui/tui-stack.c (tui_show_locator_content)
6139 (tui_show_frame_info): Remove unnecessary cast.
6140 * tui/tui-win.c (tui_scroll_forward_command)
6141 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6142 (parse_scrolling_args): Remove unnecessary cast.
6143 * tui/tui-data.c (init_win_info, tui_del_window)
6144 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6145 (free_content_elements): Remove unnecessary cast.
6146 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6148 * tui/tui-source.c (tui_set_source_content)
6149 (tui_vertical_source_scroll): Remove unnecessary cast.
6150 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6152 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6153 * tui/tui-regs.c (tui_display_registers_from)
6154 (tui_display_register): Remove unnecessary cast.
6155 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6156 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6157 (make_visible): Remove unnecessary cast.
6158 * tui/tui-winsource.c (tui_erase_source_content)
6159 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6161 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6162 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6163 * stabsread.c (read_type, read_array_type, read_range_type):
6164 Remove unnecessary cast.
6165 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6166 (parse_symbol, parse_type, upgrade_type, parse_external)
6167 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6169 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6171 2019-06-16 Tom Tromey <tom@tromey.com>
6173 * tui/tui-data.c (tui_alloc_generic_win_info)
6174 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6177 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6178 Andrew Burgess <andrew.burgess@embecosm.com>
6180 * f-typeprint.c (f_print_type): Don't return early for not
6181 associated or not allocated types.
6182 (f_type_print_varspec_suffix): Add print_rank parameter and print
6183 ranks of array types in case they dangling.
6184 (f_type_print_base): Add print_rank parameter.
6186 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6188 * NEWS: Mention new MI commands.
6189 * break-catch-throw.c (enum exception_event_kind): Move to
6191 (print_mention_exception_catchpoint): Output text as a single
6193 (catch_exception_command_1): Rename to...
6194 (catch_exception_event): ...this, make non-static, update header
6195 command, and change some parameter types.
6196 (catch_catch_command): Update for changes to
6197 catch_exception_command_1.
6198 (catch_throw_command): Likewise.
6199 (catch_rethrow_command): Likewise.
6200 * breakpoint.c (enum exception_event_kind): Delete.
6201 * breakpoint.h (enum exception_event_kind): Moved here from
6202 break-catch-throw.c.
6203 (catch_exception_event): Declare.
6204 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6205 (mi_cmd_catch_throw): New function.
6206 (mi_cmd_catch_rethrow): New function.
6207 (mi_cmd_catch_catch): New function.
6208 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6209 'catch-catch' entries.
6210 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6211 (mi_cmd_catch_rethrow): Declare.
6212 (mi_cmd_catch_catch): Declare.
6214 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6216 * annotate.c (annotate_source_line): Change return type to void,
6217 update implementation to match.
6218 * annotate.h (annotate_source_line): Change return type to void,
6219 update header comment.
6220 * stack.c (print_frame_info): Don't change what frame information
6221 is printed based on whether annotations are on or not.
6223 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6225 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6226 (annotate_source): Make static.
6227 (annotate_source_line): Moved from source.c and renamed from
6228 identify_source_line. Update the return type.
6229 * annotate.h (annotate_source): Delete declaration.
6230 (annotate_source_line): Declaration moved from source.h, and
6231 renamed from identify_source_line. Return type updated.
6232 * source.c (identify_source_line): Moved to annotate.c and renamed
6233 to annotate_source_line.
6234 (info_line_command): Remove check of annotation_level.
6235 * source.h (identify_source_line): Move declaration to annotate.h
6236 and rename to annotate_source_line.
6237 * stack.c: Add 'annotate.h' include.
6238 (print_frame_info): Remove check of annotation_level before
6239 calling annotate_source_line.
6241 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6243 * source-cache.c (source_cache::get_plain_source_lines): Use
6244 open_source_file_with_line_charpos instead of just
6245 open_source_file, remove call to find_source_lines.
6246 (source_cache::get_source_lines): Likewise.
6247 * source.c (find_source_lines): Make static.
6248 (get_filename_and_charpos): Renamed into...
6249 (open_source_file_with_line_charpos): ..this along with changes to
6250 return a scoped_fd, and some other minor clean ups.
6251 (identify_source_line): Use open_source_file_with_line_charpos.
6252 (search_command_helper): Use open_source_file_with_line_charpos
6253 instead of just open_source_file, remove call to
6255 * source.h (open_source_file_with_line_charpos): Declare new
6257 (find_source_lines): Delete declaration.
6259 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6261 * source.c (get_filename_and_charpos): Remove fullname
6263 (identify_source_line): Update call to get_filename_and_charpos.
6265 2019-06-14 Tom Tromey <tromey@adacore.com>
6268 * ui-style.h (skip_ansi_escape): Update comment.
6269 * ui-file.h (class no_terminal_escape_file): New class.
6270 * ui-file.c (no_terminal_escape_file::write)
6271 (no_terminal_escape_file::puts): New methods.
6272 * cli/cli-logging.c (handle_redirections): Use
6273 no_terminal_escape_file.
6275 2019-06-14 Tom Tromey <tromey@adacore.com>
6277 * NEWS: Move convenience variable news above Python news.
6279 2019-06-14 Tom Tromey <tom@tromey.com>
6281 * gnulib: Move directory to top-level.
6282 * configure.ac: Don't configure gnulib.
6283 * configure: Rebuild.
6284 * common/common-defs.h: Use new path to gnulib.
6285 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6287 (INCGNU): Look in new gnulib location.
6288 (HFILES_NO_SRCDIR): Remove gnulib files.
6289 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6290 (generated_files): Remove GNULIB_H.
6291 ($(LIBGNU), all-lib): Remove targets.
6292 (distclean): Don't mention GNULIB_BUILDDIR.
6293 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6295 2019-06-14 Tom Tromey <tromey@adacore.com>
6297 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6298 Warn if symbol file does not provide any symbols.
6300 2019-06-14 Tom Tromey <tromey@adacore.com>
6302 * source.c (find_and_open_source): Respect basenames_may_differ.
6304 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6306 * annotate.c (annotate_breakpoints_invalid): Make use of
6307 scoped_restore_terminal_state.
6308 (annotate_frames_invalid): Likewise.
6310 2019-06-14 Tom Tromey <tromey@adacore.com>
6312 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6313 allow assignment to an internalvar.
6315 2019-06-14 Tom Tromey <tromey@adacore.com>
6317 * ada-lex.l: Allow "_" in attribute names.
6319 2019-06-14 Tom Tromey <tromey@adacore.com>
6322 * regcache.c (registers_changed): Don't call alloca.
6323 * top.c (execute_command): Don't call alloca.
6325 2019-06-13 Pedro Alves <palves@redhat.com>
6327 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6328 'expression'. When parsing an expression, error out if there's
6329 junk after "unlimited".
6330 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6331 (do_set_command): Adjust calls to is_unlimited_literal.
6333 2019-06-13 Pedro Alves <palves@redhat.com>
6335 * compile/compile.c (make_compile_options_def_group): Add braces
6336 around array_view initializer.
6337 * thread.c (make_thread_apply_all_options_def_group)
6338 (make_thread_apply_all_options_def_group): Likewise.
6340 2019-06-13 Pedro Alves <palves@redhat.com>
6342 * NEWS (New commands): Mention "maint test-options
6343 require-delimiter", "maint test-options unknown-is-error", "maint
6344 test-options unknown-is-operand" and "maint show
6345 test-options-completion-result".
6346 (New command options, command completion): New section.
6347 (Completion improvements): New section.
6348 Mention that you can abbreviate "unlimited".
6350 2019-06-13 Pedro Alves <palves@redhat.com>
6352 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6353 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6354 * unittests/cli-utils-selftests.c (test_parse_flags)
6355 (test_parse_flags_qcs): Delete.
6356 (test_cli_utils): Don't call deleted functions.
6358 2019-06-13 Pedro Alves <palves@redhat.com>
6360 * thread.c: Include "cli/cli-option.h".
6361 (tp_array_compar_ascending): Global.
6362 (tp_array_compar): Delete function.
6363 (tp_array_compar_ascending, tp_array_compar_descending): New
6365 (ascending_option_def, qcs_flag_option_def)
6366 (thr_qcs_flags_option_defs)
6367 (make_thread_apply_all_options_def_group)
6368 (make_thread_apply_options_def_group): New.
6369 (thread_apply_all_command): Use gdb::option::process_options.
6370 (thread_apply_command_completer)
6371 (thread_apply_all_command_completer): New.
6372 (thread_apply_command): Use gdb::option::process_options.
6373 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6374 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6375 to generate help text of "thread apply". Adjust "taas"'s help.
6376 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6377 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6379 2019-06-13 Pedro Alves <palves@redhat.com>
6381 * thread.c (thread_apply_command): Check for invalid TID with
6382 isdigit instead of !isalpha.
6384 2019-06-13 Pedro Alves <palves@redhat.com>
6386 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6387 (validate_flags_qcs): New.
6388 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6389 (validate_flags_qcs): Declare.
6390 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6391 (make_frame_apply_options_def_group): New.
6392 (frame_apply_command_count): Process options with
6393 gdb::option::process_options.
6394 (frame_apply_completer): New.
6395 (frame_apply_level_completer, frame_apply_all_completer)
6396 (frame_apply_completer): New.
6397 (_initialize_stack): Update help of "frame apply", "frame apply
6398 level", "frame apply all" and "faas" to mention supported options
6399 and install command completers.
6400 * stack.h (frame_apply_all_completer): Declare.
6401 * thread.c: Include "stack.h".
6402 (tfaas_command): Add "--".
6403 (_initialize_thread): Update help "tfaas" to mention supported
6404 options and install command completer.
6406 2019-06-13 Pedro Alves <palves@redhat.com>
6408 * completer.c (complete_nested_command_line): New.
6409 (gdb_completion_word_break_characters_throw): Add assertion.
6410 * completer.h (complete_nested_command_line): Declare.
6412 2019-06-13 Pedro Alves <palves@redhat.com>
6414 * stack.c (parse_backtrace_qualifiers): New.
6415 (backtrace_command): Use it.
6416 (backtrace_command_completer): Complete on qualifiers.
6418 2019-06-13 Pedro Alves <palves@redhat.com>
6420 * frame.c: Include "cli/cli-option.h.
6421 (user_set_backtrace_options): New.
6422 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6424 (get_prev_frame): Adjust.
6425 (boolean_option_def, uinteger_option_def)
6426 (set_backtrace_option_defs): New.
6427 (_initialize_frame): Adjust and use
6428 gdb::option::add_setshow_cmds_for_options to install "set
6429 backtrace past-main" and "set backtrace past-entry".
6430 * frame.h: Include "cli/cli-option.h".
6431 (struct frame_print_options): Forward declare.
6432 (print_frame_arguments_all, print_frame_arguments_scalars)
6433 (print_frame_arguments_none): Declare.
6434 (print_entry_values): Delete declaration.
6435 (struct frame_print_options, user_frame_print_options): New.
6436 (struct set_backtrace_options): New.
6437 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6438 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6439 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6440 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6441 (list_args_or_locals): Add frame_print_options parameter.
6442 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6443 * python/py-framefilter.c (enumerate_args): Pass down
6444 USER_FRAME_PRINT_OPTIONS.
6445 * stack.c: Include "cli/cli-option.h".
6446 (print_frame_arguments_all, print_frame_arguments_scalars)
6447 (print_frame_arguments_none): Declare.
6448 (print_raw_frame_arguments, print_entry_values): Delete.
6449 (user_frame_print_options): New.
6450 (boolean_option_def, enum_option_def, frame_print_option_defs):
6452 (struct backtrace_cmd_options): New.
6453 (bt_flag_option_def): New.
6454 (backtrace_command_option_defs): New.
6455 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6456 (print_frame_arg, read_frame_arg, print_frame_args)
6457 (print_frame_info, print_frame): Add frame_print_options parameter
6459 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6460 (backtrace_command_1): Add frame_print_options and
6461 backtrace_cmd_options parameters and use them.
6462 (make_backtrace_options_def_group): New.
6463 (backtrace_command): Process command options with
6464 gdb::option::process_options.
6465 (backtrace_command_completer): New.
6466 (_initialize_stack): Extend "backtrace"'s help to mention
6467 supported options. Install completer for "backtrace".
6468 Install some settings commands with add_setshow_cmds_for_options.
6470 2019-06-13 Pedro Alves <palves@redhat.com>
6472 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6473 and that "set/show print raw frame-arguments" are now deprecated.
6475 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6477 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6478 * stack.c (_initialize_stack): Install "set/show print
6479 raw-frame-arguments", and deprecate "set/show print raw
6481 * valprint.c (_initialize_valprint): Deprecate "set/show print
6484 2019-06-13 Pedro Alves <palves@redhat.com>
6486 * compile/compile.c (struct compile_options): New.
6487 (compile_flag_option_def, compile_command_option_defs)
6488 (make_compile_options_def_group): New.
6489 (compile_file_command): Handle options with
6490 gdb::option::process_options.
6491 (compile_file_command_completer): New function.
6492 (compile_code_command): Handle options with
6493 gdb::option::process_options.
6494 (compile_code_command_completer): New function.
6495 (_initialize_compiler): Install completers for "compile code" and
6496 "compile file". Mention available options in "compile code" and
6497 "compile code"'s help.
6498 * completer.c (advance_to_completion_word): New, factored out from
6500 (advance_to_expression_complete_word_point): ... this.
6501 (advance_to_filename_complete_word_point): New.
6502 * completer.h (advance_to_filename_complete_word_point): New
6505 2019-06-13 Pedro Alves <palves@redhat.com>
6507 * compile/compile.c: Include "cli/cli-option.h".
6508 (compile_print_value): Scope data pointer is now a
6509 value_print_options pointer; adjust.
6510 (compile_print_command): Process options. Scope data pointer is
6511 now a value_print_options pointer; adjust.
6512 (_initialize_compile): Update "compile print"'s help to include
6513 supported options. Install a completer for "compile print".
6514 * cp-valprint.c (show_vtblprint, show_objectprint)
6515 (show_static_field_print): Delete.
6516 (_initialize_cp_valprint): Don't install "set print
6517 static-members", "set print vtbl", "set print object" here.
6518 * printcmd.c: Include "cli/cli-option.h" and
6519 "common/gdb_optional.h".
6520 (print_command_parse_format): Rework to fill in a
6521 value_print_options instead of a format_data.
6522 (print_value): Change parameter type from format_data pointer to
6523 value_print_options reference. Adjust.
6524 (print_command_1): Process options. Adjust to pass down a
6525 value_print_options.
6526 (print_command_completer): New.
6527 (_initialize_printcmd): Install print_command_completer as
6528 handle_brkchars completer for the "print" command. Update
6529 "print"'s help to include supported options.
6530 * valprint.c: Include "cli/cli-option.h".
6531 (show_vtblprint, show_objectprint, show_static_field_print): Moved
6532 here from cp-valprint.c.
6533 (boolean_option_def, uinteger_option_def)
6534 (value_print_option_defs, make_value_print_options_def_group):
6535 New. Use gdb::option::add_setshow_cmds_for_options to install
6536 "set print elements", "set print null-stop", "set print repeats",
6537 "set print pretty", "set print union", "set print array", "set
6538 print address", "set print symbol", "set print array-indexes".
6539 * valprint.h: Include <string> and "cli/cli-option.h".
6540 (make_value_print_options_def_group): Declare.
6541 (print_value): Change parameter type from format_data pointer to
6542 value_print_options reference.
6543 (print_command_completer): Declare.
6545 2019-06-13 Pedro Alves <palves@redhat.com>
6547 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
6548 (COMMON_SFILES): Add maint-test-settings.c.
6549 * cli/cli-decode.c (boolean_enums): New global, factored out from
6551 (add_setshow_boolean_cmd): ... here.
6552 * cli/cli-decode.h (boolean_enums): Declare.
6553 * cli/cli-option.c: New file.
6554 * cli/cli-option.h: New file.
6555 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
6556 factored out from ...
6557 (parse_cli_boolean_value(const char *)): ... this.
6558 (is_unlimited_literal): Change parameter type to pointer to
6559 pointer. Adjust and advance ARG pointer.
6560 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6561 (parse_cli_var_enum): New, factored out from ...
6562 (do_set_command): ... this. Adjust.
6563 * cli/cli-setshow.h (parse_cli_boolean_value)
6564 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6565 (parse_cli_var_enum): Declare.
6566 * cli/cli-utils.c: Include "cli/cli-option.h".
6567 (get_ulongest): New.
6568 * cli/cli-utils.h (get_ulongest): Declare.
6569 (check_for_argument): New overloads.
6570 * maint-test-options.c: New file.
6572 2019-06-13 Pedro Alves <palves@redhat.com>
6574 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
6575 parse a range if "-" is at the end of the string.
6577 2019-06-13 Pedro Alves <palves@redhat.com>
6579 * cli/cli-setshow.c (parse_auto_binary_operation)
6580 (parse_cli_boolean_value): Don't allow "o".
6582 2019-06-13 Pedro Alves <palves@redhat.com>
6584 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
6585 * NEWS: Mention maint test-settings KIND.
6586 * maint-test-settings.c: New file.
6588 2019-06-13 Pedro Alves <palves@redhat.com>
6590 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
6592 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
6595 2019-06-13 Pedro Alves <palves@redhat.com>
6597 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
6600 2019-06-13 Pedro Alves <palves@redhat.com>
6602 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
6604 2019-06-13 Pedro Alves <palves@redhat.com>
6606 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
6607 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
6609 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
6610 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
6612 (check_for_argument): Skip spaces after argument.
6614 2019-06-13 Pedro Alves <palves@redhat.com>
6616 * thread.c (thread_apply_command): Adjust TID parsing.
6617 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
6618 detected before end of string.
6619 (tid_is_in_list): Error out if LIST is invalid.
6621 2019-06-13 Pedro Alves <palves@redhat.com>
6623 * completer.c (complete_line_internal_1): Rewind completion word
6625 (completion_tracker::advance_custom_word_point_by): Change
6626 parameter type to int.
6627 * completer.h (completion_tracker::advance_custom_word_point_by):
6630 2019-06-13 Pedro Alves <palves@redhat.com>
6632 * completer.c (advance_to_completion_word): Handle delimiters.
6634 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
6636 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
6638 2019-06-11 Tom Tromey <tom@tromey.com>
6640 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
6641 (xmalloc_failed): Move to alloc.c.
6642 * alloc.c: New file.
6643 * Makefile.in (COMMON_SFILES): Add alloc.c.
6645 2019-06-11 Tom Tromey <tom@tromey.com>
6647 * nat/linux-waitpid.c: Don't include server.h.
6648 (linux_debug): Remove.
6649 (my_waitpid): Update.
6651 2019-06-11 Tom Tromey <tromey@adacore.com>
6653 * infcall.c (_initialize_infcall): Remove trailing newline from
6655 * user-regs.c (_initialize_user_regs): Remove trailing newline
6657 * typeprint.c (_initialize_typeprint): Remove trailing newline
6659 * reverse.c (_initialize_reverse): Remove trailing newlines from
6661 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
6663 * language.c (add_set_language_command): Remove trailing newline
6665 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
6667 * disasm.c (_initialize_disasm): Remove trailing newline from
6669 * top.c (init_main): Remove trailing newline from help.
6670 * interps.c (_initialize_interpreter): Remove trailing newline
6672 * btrace.c (_initialize_btrace): Remove trailing newlines from
6674 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
6676 * python/python.c (_initialize_python): Remove trailing newline
6678 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
6680 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
6681 from help. Reformat some text.
6682 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
6684 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
6687 2019-06-11 Tom Tromey <tromey@adacore.com>
6689 * darwin-nat.c (darwin_decode_exception_message)
6690 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
6692 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
6694 * valops.c (value_slice): Check for not allocated or not
6697 2019-06-10 Tom de Vries <tdevries@suse.de>
6700 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
6701 sure an empty slot (defined by a 32-bit zero pair) is recognized as
6704 2019-06-10 Tom de Vries <tdevries@suse.de>
6707 * linespec.c (linespec_lexer_lex_string): Remove incorrect
6708 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
6710 2019-06-10 Tom de Vries <tdevries@suse.de>
6713 * symtab.c (struct demangled_name_entry): Add language field.
6714 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
6715 static minimal symbol". Set and use language field.
6717 2019-06-10 Tom Tromey <tromey@adacore.com>
6719 * ada-lang.c (_initialize_ada_language): Update help text.
6721 2019-06-10 Tom Tromey <tromey@adacore.com>
6723 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
6725 * guile/guile.c (handle_boot_error): Don't end warning with a
6727 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
6728 warning with a newline.
6729 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
6731 (s12z_frame_cache): Likewise.
6732 * dwarf-index-cache.c (index_cache::store): Don't end warning with
6734 * solib-svr4.c (disable_probes_interface): Don't end warning with
6736 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
6738 * python/python.c (do_finish_initialization): Don't end warning
6741 2019-06-10 Tom Tromey <tom@tromey.com>
6743 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6744 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
6747 2019-06-10 Tom Tromey <tromey@adacore.com>
6749 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
6751 (elf_new_init): Don't call stabsread_new_init.
6752 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
6753 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
6754 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
6756 2019-06-10 Tom de Vries <tdevries@suse.de>
6760 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
6762 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
6764 * source.c (find_and_open_source): Also rewrite relative file
6767 2019-04-26 Amos Bird <amosbird@gmail.com>
6769 * annotate.c (annotate_thread_exited): Add "thread-exited"
6772 2019-06-06 Tom Tromey <tromey@adacore.com>
6774 * maint.h (class scoped_command_stats): Use
6775 DISABLE_COPY_AND_ASSIGN.
6776 <print_time>: New method.
6777 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
6779 (scoped_command_stats::print_time): New method.
6781 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6783 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
6784 instructions of lengths 6 or 8 bytes.
6786 2019-06-04 Pedro Alves <palves@redhat.com>
6788 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
6790 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
6791 * breakpoint.c (condition_completer): Likewise.
6792 * cli/cli-dump.c (scan_expression): Likewise.
6793 * common/filestuff.c (mkdir_recursive): Likewise.
6794 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
6795 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
6796 (gdb_abspath): Likewise.
6797 * compile/compile-cplus-types.c
6798 (compile_cplus_instance::decl_name): Likewise.
6799 * completer.c (complete_explicit_location):
6800 (signal_completer, reg_or_group_completer_1): Likewise.
6801 * cp-support.c (cp_remove_params_if_any): Likewise.
6802 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
6803 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
6804 * infcmd.c (strip_bg_char): Likewise.
6805 * linespec.c (copy_token_string): Likewise.
6806 * mi/mi-main.c (output_cores): Likewise.
6807 * psymtab.c (psymtab_search_name):
6808 * symfile.c (test_set_ext_lang_command): Likewise.
6809 * target.c (target_fileio_read_stralloc): Likewise.
6810 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
6811 * value.c (complete_internalvar): Likewise.
6813 2019-06-04 Christian Biesinger <cbiesinger@google.com>
6815 Add objfile property to gdb.Type.
6816 * NEWS: Mention Python API addition.
6817 * python/py-type.c (typy_get_objfile): New method.
6819 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6821 * NEWS: Mention the new set|show style [title|highlight].
6822 Mention changes to "show style", "help" and "apropos".
6824 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6826 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
6827 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
6828 instead of print_help_for_command.
6829 (print_doc_of_command): New function.
6830 (help_list): Add 'apropos -v word' suggestion.
6831 (print_help_for_command): Style the command name using title style.
6832 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
6833 (_initialize_cli_cmds): Describe -v in apropos_command help.
6835 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6837 * cli/cli-style.h (cli_style_option): Add name in constructor,
6838 add m_name class member, add constructor with intensity,
6839 add name class function.
6840 (cli_style_option::add_setshow_commands): Remove name argument.
6841 (highlight_style, title_style): New styles.
6842 * cli/cli-style.c (do_show): New function that shows a style
6843 characteristic styling the style name with itself.
6844 (set_style_name): New function.
6845 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
6846 Update all callers according to the changes in cli/cli-style.h.
6847 * utils.h (fputs_highlighted): New function.
6848 * utils.c (fputs_highlighted): Likewise.
6850 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6852 * NEWS: Mention new pipe command and new convenience variables.
6854 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6856 * cli/cli-cmds.c (pipe_command): New function.
6857 (_initialize_cli_cmds): Call add_com for pipe_command.
6858 Define | as an alias for pipe.
6859 (exit_status_set_internal_vars): New function.
6860 (shell_escape): Call exit_status_set_internal_vars.
6861 cli/cli-decode.c (find_command_name_length): Recognize | as
6862 a single character command.
6864 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6866 * gdbcmd.h (execute_command_to_ui_file): New declaration.
6867 top.c (execute_command_to_ui_file): New function, mostly a copy
6868 of execute_command_to_string.
6869 (execute_command_to_string): Implement by calling
6870 execute_command_to_ui_file.
6872 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6874 * top.h (saved_command_line): Remove declaration.
6875 * top.c (previous_saved_command_line, previous_repeat_arguments):
6877 (saved_command_line): Make static, define together with other
6879 (dont_repeat): Clear repeat_arguments.
6880 (repeat_previous, get_saved_command_line, save_command_line):
6882 (gdb_init): Initialize saved_command_line
6883 and previous_saved_command_line.
6884 * main.c (captured_main_1): Remove saved_command_line initialization.
6885 * event-top.c (handle_line_of_input): Update to use
6886 the new 'repeat' related functions instead of direct access to
6888 * command.h (repeat_previous, get_saved_command_line,
6889 save_command_line): New declarations.
6890 (dont_repeat): Add comment.
6892 2019-05-30 Tom Tromey <tromey@adacore.com>
6894 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
6896 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
6898 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
6901 * completer.c (complete): Initialize variable word.
6903 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
6905 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
6906 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
6907 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
6908 'body' is NULL to the outter 'if', protecting the '!is_define'
6911 2019-05-29 Tom Tromey <tromey@adacore.com>
6913 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
6914 (dwarf_unknown): New function.
6915 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
6916 (dwarf_type_encoding_name): Use dwarf_unknown.
6918 2019-05-29 Tom Tromey <tromey@adacore.com>
6921 * cp-valprint.c (cp_print_value_fields): Call
6922 cp_print_static_field inside "try".
6924 2019-05-29 Tom Tromey <tromey@adacore.com>
6926 * inflow.c (struct terminal_info): Add default operator=.
6927 * configure: Rebuild.
6928 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
6929 -Wdeprecated-copy-dtor, -Wredundant-move.
6931 2019-05-29 Tom Tromey <tromey@adacore.com>
6934 * infcmd.c (print_return_value_1): Handle finish_print
6936 (show_print_finish): New function.
6937 (_initialize_infcmd): Add "set/show print finish" commands.
6938 * valprint.c (user_print_options): Initialize new member.
6939 * valprint.h (struct value_print_options) <finish_print>: New
6942 2019-05-28 Tom Tromey <tromey@adacore.com>
6944 * ada-lang.c (ada_remove_Xbn_suffix)
6945 (find_old_style_renaming_symbol)
6946 (parse_old_style_renaming): Remove.
6947 (ada_find_renaming_symbol): Don't call
6948 find_old_style_renaming_symbol.
6949 (ada_is_renaming_symbol): Rename from
6950 ada_find_renaming_symbol. Remove "block" parameter. Return
6952 (ada_read_var_value): Update and simplify.
6953 * ada-exp.y (write_var_or_type): Remove old code.
6955 2019-05-28 Alan Hayward <alan.hayward@arm.com>
6958 * event-top.c: Remove include comment.
6959 * inflow.c (class scoped_ignore_sigttou): Move from here...
6960 * inflow.h (class scoped_ignore_sigttou): ...to here.
6961 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
6962 * top.c: Remove include comment.
6964 2019-05-27 Tom Tromey <tom@tromey.com>
6968 2019-05-22 Tom Tromey <tromey@adacore.com>
6970 * target.c (target_follow_exec): Constify parameter.
6971 * target-delegates.c: Rebuild.
6972 * remote.c (remote_target::follow_exec): Constify parameter.
6973 * infrun.c (follow_exec): Constify parameter.
6974 * target.h (struct target_ops) <follow_exec>: Constify parameter.
6975 (target_follow_exec): Likewise.
6977 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6979 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
6980 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
6982 2019-05-22 Alan Hayward <alan.hayward@arm.com>
6984 * NEWS: Add debugredirect and testsuite sections.
6986 2019-05-22 Simon Cook <simon.cook@embecosm.com>
6988 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
6989 target descriptions using exclusively floating point register name
6992 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6995 * f-lang.c (build_fortran_types): Handle the case where
6996 gdbarch_floatformat_for_type returns a nullptr.
6998 2019-05-21 Tom de Vries <tdevries@suse.de>
7001 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7003 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7006 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7008 * i386-tdep.c (i386_floatformat_for_type): Use
7009 floatformats_ia64_quad for the 16-byte floating point component
7010 within a fortran 32-byte complex number.
7012 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7014 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7015 delete default constructor.
7016 (find_partial_die): Update to return const struct.
7017 (partial_die_parent_scope): Move variable declaration into scope
7018 of its use and change its type to auto.
7019 (guess_partial_die_structure_name): Likewise.
7020 (partial_die_info::fixup): Likewise.
7022 2019-05-17 Tom Tromey <tromey@adacore.com>
7024 * source.c (find_and_open_source): Remove cast.
7026 2019-05-17 Tom Tromey <tromey@adacore.com>
7028 * annotate.c (annotate_source): Make "filename" const.
7029 * annotate.h (annotate_source): Use const.
7031 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7033 * disasm.c (set_disassembler_options): Send errors to stderr.
7035 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7037 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7038 (cli_interp_base::set_logging): Check debug_redirect.
7039 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7040 * cli/cli-logging.c (debug_redirect): Add static variable.
7041 (pop_output_files): Add default param.
7042 (handle_redirections): Print debug setting.
7043 (show_logging_command): Likewise.
7044 (_initialize_cli_logging): Add debugredirect command.
7045 * interps.c (current_interp_set_logging): Add debug_redirect
7047 * interps.h (set_logging): Add debug_redirect parameter.
7048 (current_interp_set_logging): Likewise.
7049 * mi/mi-common.h: Likewise.
7050 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7052 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7053 Tom Tromey <tromey@adacore.com>
7055 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7057 * cli/cli-interp.h (make_logging_output): Remove declaration.
7058 * cli/cli-logging.c (make_logging_output): Remove function.
7059 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7061 * ui-file.c (tee_file::tee_file): Remove bools.
7062 (tee_file::~tee_file): Remove deletes.
7063 * ui-file.h (tee_file): Remove bools.
7065 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7067 * mi/mi-cmds.h (mi_cmd_complete): New function.
7068 * mi/mi-main.c (mi_cmd_complete): Likewise.
7069 * mi/mi-cmds.c: Define new MI command -complete.
7070 * NEWS: Mention new -complete command.
7072 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7074 * completer.h (complete): New function.
7075 * completer.c (complete): Likewise.
7076 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7077 function defined in completer.h.
7079 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7081 * MAINTAINERS (Write After Approval): Add myself.
7083 2019-05-17 Tom de Vries <tdevries@suse.de>
7086 * dwarf2read.c (struct cu_partial_die_info): New struct.
7087 (find_partial_die): Return cu_partial_die_info.
7088 (partial_die_parent_scope, guess_partial_die_structure_name)
7089 (partial_die_info::fixup): Handle new return type of find_partial_die.
7091 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7093 PR breakpoints/24541
7094 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7095 "std::string", simplifying the algorithm.
7097 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7099 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7100 (stap_static_probe_ops::get_probes): Likewise.
7102 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7104 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7105 '-')" and "else if".
7106 (stap_parse_single_operand): Join checks for
7107 "gdbarch_stap_parse_special_token_p" and
7108 "gdbarch_stap_parse_special_token" in the same "if" statement.
7109 Invert check when verifying for operation on register
7112 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7114 * stap-probe.c (stap_get_opcode): Update comment.
7115 (stap_get_expected_argument_type): Likewise.
7116 (handle_stap_probe): Likewise.
7118 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7120 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7121 return type to 'bool'. Adjust comment. Use 'bool' when
7123 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7124 * stap-probe.c (stap_parse_argument_1): Likewise.
7125 (stap_is_operator): Likewise.
7126 (stap_is_generic_prefix): Likewise.
7127 (stap_is_register_prefix): Likewise.
7128 (stap_is_register_indirection_prefix): Likewise.
7129 (stap_is_integer_prefix): Likewise.
7130 (stap_generic_check_suffix): Likewise.
7131 (stap_check_integer_suffix): Likewise.
7132 (stap_check_register_suffix): Likewise.
7133 (stap_check_register_indirection_suffix): Likewise.
7134 (stap_parse_register_operand): Likewise.
7135 (stap_parse_single_operand): Likewise.
7136 (stap_parse_argument_1): Likewise.
7137 (stap_probe::get_argument_count): Likewise.
7138 (stap_is_operator): Likewise.
7140 2019-05-16 Tom Tromey <tromey@adacore.com>
7142 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7145 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7147 * linux-thread-db.c (try_thread_db_load_1): Change return type
7149 (try_thread_db_load): Likewise.
7150 (try_thread_db_load_from_pdir_1): Likewise.
7151 (try_thread_db_load_from_pdir): Likewise.
7152 (try_thread_db_load_from_sdir): Likewise.
7153 (try_thread_db_load_from_dir): Likewise.
7154 (thread_db_load_search): Likewise.
7155 (has_libpthread): Likewise.
7156 (thread_db_load): Likewise.
7158 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7160 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7161 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7162 NULL, and complain/return if that's the case.
7164 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7166 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7167 (advance, posn, abstract_read_memory): New functions.
7168 [struct mem_read_abstraction]: New struct.
7169 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7171 2019-05-14 Tom Tromey <tromey@adacore.com>
7173 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7174 value is not lval_memory.
7176 2019-05-14 Tom Tromey <tromey@adacore.com>
7178 * solib.c (info_sharedlibrary_command): Style the file name.
7180 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7182 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7183 (aarch64_vnv_type): Likewise.
7184 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7185 * common/tdesc.c: Likewise.
7186 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7187 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7188 * features/aarch64-fpu.xml: Add ieee half view.
7189 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7190 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7191 * gdbtypes.h (struct builtin_type): Likewise.
7192 (struct objfile_type): Likewise.
7194 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7196 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7198 * location.h (string_to_event_location): Likewise.
7200 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7204 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7206 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7207 New variable declaration.
7208 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7210 (print_one_breakpoint): Use ui_out::test_flags and new global
7211 variable to compute use_fixed_output.
7212 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7214 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7215 (mi_multi_location_breakpoint_output_fixed): Remove.
7216 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7218 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7219 fix_multi_location_breakpoint_output flag if version >= 3.
7220 * ui-out.h (enum ui_out_flag)
7221 <fix_multi_location_breakpoint_output>: New enumerator.
7223 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7225 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7227 2019-05-10 Tom Tromey <tromey@adacore.com>
7229 * ada-lang.c (catch_ada_completer): New function.
7230 (_initialize_ada_language): Use it.
7232 2019-05-10 Tom Tromey <tromey@adacore.com>
7234 * thread.c (print_thread_info): Make "requested_threads" const.
7235 * gdbthread.h (print_thread_info): Make "requested_threads"
7237 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7238 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7240 2019-05-08 Tom Tromey <tom@tromey.com>
7242 * gdbtypes.c (objfile_type_data): Change type.
7243 (objfile_type, _initialize_gdbtypes): Update.
7245 2019-05-08 Tom Tromey <tom@tromey.com>
7247 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7248 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7249 (_initialize_dwarf2_frame): Update.
7251 2019-05-08 Tom Tromey <tom@tromey.com>
7253 * objc-lang.c (objc_objfile_data): Change type.
7254 (find_methods): Update.
7255 (_initialize_objc_lang): Remove.
7257 2019-05-08 Tom Tromey <tom@tromey.com>
7259 * stabsread.c (rs6000_builtin_type_data): Change type.
7260 (rs6000_builtin_type, _initialize_stabsread): Update.
7262 2019-05-08 Tom Tromey <tom@tromey.com>
7264 * mips-tdep.c (mips_pdr_data): Remove.
7265 (_initialize_mips_tdep): Update.
7267 2019-05-08 Tom Tromey <tom@tromey.com>
7269 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7270 (hppa_init_objfile_priv_data, read_unwind_info)
7271 (find_unwind_entry, _initialize_hppa_tdep): Update.
7273 2019-05-08 Tom Tromey <tom@tromey.com>
7275 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7276 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7278 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7280 2019-05-08 Tom Tromey <tom@tromey.com>
7282 * mdebugread.c (basic_type_data): Change type.
7283 (basic_type, _initialize_mdebugread): Update.
7285 2019-05-08 Tom Tromey <tom@tromey.com>
7287 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7289 2019-05-08 Tom Tromey <tom@tromey.com>
7291 * nto-tdep.c (nto_inferior_data_reg): Change type.
7292 (nto_inferior_data): Update.
7293 (nto_inferior_data_cleanup, nto_new_inferior_data)
7294 (_initialize_nto_tdep): Remove.
7295 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7297 2019-05-08 Tom Tromey <tom@tromey.com>
7299 * ada-lang.c (struct ada_inferior_data): Add initializers.
7300 (ada_inferior_data): Change type.
7301 (ada_inferior_data_cleanup): Remove.
7302 (get_ada_inferior_data, ada_inferior_exit)
7303 (struct ada_pspace_data): Add initializers, destructor.
7304 (ada_pspace_data_handle): Change type.
7305 (get_ada_pspace_data): Update.
7306 (ada_pspace_data_cleanup): Remove.
7308 2019-05-08 Tom Tromey <tom@tromey.com>
7310 * coffread.c (struct coff_symfile_info): Add initializers.
7311 (coff_objfile_data_key): Move lower. Change type.
7312 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7314 (coff_free_info): Remove.
7316 2019-05-08 Tom Tromey <tom@tromey.com>
7318 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7319 (fbsd_pspace_data_handle): Move lower. Change type.
7320 (get_fbsd_pspace_data): Update.
7321 (fbsd_pspace_data_cleanup): Remove.
7322 (_initialize_fbsd_tdep): Update.
7324 2019-05-08 Tom Tromey <tom@tromey.com>
7326 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7327 (get_ada_tasks_pspace_data): Update.
7328 (ada_tasks_pspace_data_cleanup): Remove.
7329 (_initialize_tasks): Update.
7330 (ada_tasks_inferior_data_handle): Change type.
7331 (get_ada_tasks_inferior_data): Update.
7332 (ada_tasks_inferior_data_cleanup): Remove.
7333 (struct ada_tasks_pspace_data): Add initializers.
7335 2019-05-08 Tom Tromey <tom@tromey.com>
7337 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7338 * symfile-debug.c (debug_sym_get_probes): Change type.
7339 * stap-probe.c (handle_stap_probe):
7340 (stap_static_probe_ops::get_probes): Change type.
7341 * probe.h (class static_probe_ops) <get_probes>: Change type.
7342 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7343 (parse_probes_in_pspace): Update.
7344 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7346 (any_static_probe_ops::get_probes): Change type.
7347 * elfread.c (elfread_data): New typedef.
7348 (probe_key): Change type.
7349 (elf_get_probes): Likewise. Update.
7350 (probe_key_free): Remove.
7351 (_initialize_elfread): Update.
7352 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7354 (dtrace_process_dof_probe, dtrace_process_dof)
7355 (dtrace_static_probe_ops::get_probe): Change type.
7357 2019-05-08 Tom Tromey <tom@tromey.com>
7359 * xcoffread.c (struct xcoff_symfile_info): Rename from
7360 coff_symfile_info. Add initializers.
7361 (xcoff_objfile_data_key): Move lower. Change type.
7362 (XCOFF_DATA): Rewrite.
7363 (xcoff_free_info): Remove.
7364 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7365 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7366 (xcoff_initial_scan): Update.
7368 2019-05-08 Tom Tromey <tom@tromey.com>
7370 * solib-svr4.c (struct svr4_info): Add initializers and
7372 <probes_table>: Now an htab_up.
7373 (solib_svr4_pspace_data): Change type.
7374 (free_probes_table): Simplify.
7375 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7376 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7377 (probes_table_remove_objfile_probes, register_solib_event_probe)
7378 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7379 (_initialize_svr4_solib): Update.
7381 2019-05-08 Tom Tromey <tom@tromey.com>
7383 * remote.c (remote_pspace_data): Change type.
7384 (remote_pspace_data_cleanup): Remove.
7385 (get_remote_exec_file, set_pspace_remote_exec_file)
7386 (_initialize_remote): Update.
7388 2019-05-08 Tom Tromey <tom@tromey.com>
7390 * breakpoint.c (breakpoint_objfile_key): Change type.
7391 (get_breakpoint_objfile_data): Update.
7392 (free_breakpoint_objfile_data): Remove.
7393 (_initialize_breakpoint): Update.
7395 2019-05-08 Tom Tromey <tom@tromey.com>
7397 * linux-tdep.c (struct linux_info): Add initializers.
7398 (linux_inferior_data): Move. Change type.
7399 (invalidate_linux_cache_inf): Update.
7400 (linux_inferior_data_cleanup): Remove.
7401 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7403 2019-05-08 Tom Tromey <tom@tromey.com>
7405 * auxv.c (auxv_inferior_data): Move. Change type.
7406 (auxv_inferior_data_cleanup): Remove.
7407 (invalidate_auxv_cache_inf): Rewrite.
7408 (get_auxv_inferior_data, _initialize_auxv): Update.
7410 2019-05-08 Tom Tromey <tom@tromey.com>
7412 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7413 (symfile_debug_objfile_data_key): Change type.
7414 (symfile_debug_installed, debug_qf_has_symbols)
7415 (debug_qf_find_last_source_symtab)
7416 (debug_qf_forget_cached_source_info)
7417 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7418 (debug_qf_print_stats, debug_qf_dump)
7419 (debug_qf_expand_symtabs_for_function)
7420 (debug_qf_expand_all_symtabs)
7421 (debug_qf_expand_symtabs_with_fullname)
7422 (debug_qf_map_matching_symbols)
7423 (debug_qf_expand_symtabs_matching)
7424 (debug_qf_find_pc_sect_compunit_symtab)
7425 (debug_qf_map_symbol_filenames)
7426 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7427 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7428 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7429 (debug_sym_read_linetable, debug_sym_relocate): Update.
7430 (symfile_debug_free_objfile): Remove.
7431 (install_symfile_debug_logging, _initialize_symfile_debug):
7434 2019-05-08 Tom Tromey <tom@tromey.com>
7436 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7437 allocate_on_obstack.
7438 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7439 (get_dwarf2_per_objfile): Update.
7440 (set_dwarf2_per_objfile): Remove.
7441 (dwarf2_has_info, dwarf2_get_section_info): Update.
7442 (dwarf2_free_objfile): Remove.
7443 (_initialize_dwarf2_read): Update.
7445 2019-05-08 Tom Tromey <tom@tromey.com>
7447 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7449 <unsupported_script_warning_printed,
7450 script_not_found_warning_printed>: Now bool.
7451 (auto_load_pspace_data): Change type.
7452 (~auto_load_pspace_info): Rename from
7453 auto_load_pspace_data_cleanup.
7454 (get_auto_load_pspace_data, init_loaded_scripts_info)
7455 (clear_section_scripts, maybe_print_unsupported_script_warning)
7456 (maybe_print_script_not_found_warning, _initialize_auto_load):
7459 2019-05-08 Tom Tromey <tom@tromey.com>
7461 * objfiles.c (objfile_pspace_info): Add destructor and
7463 (objfiles_pspace_data): Change type.
7464 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7465 (get_objfile_pspace_data): Update.
7466 (objfiles_bfd_data): Change type.
7467 (get_objfile_bfd_data): Update.
7468 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7470 2019-05-08 Tom Tromey <tom@tromey.com>
7472 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7474 (get_catch_syscall_inferior_data): Update.
7475 (catch_syscall_inferior_data_cleanup): Remove.
7476 (_initialize_break_catch_syscall): Update.
7478 2019-05-08 Tom Tromey <tom@tromey.com>
7480 * inflow.c (struct terminal_info): Add destructor and
7482 (inflow_inferior_data): Change type.
7483 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7484 (get_inflow_inferior_data, inflow_inferior_exit)
7485 (swap_terminal_info, _initialize_inflow): Update.
7487 2019-05-08 Tom Tromey <tom@tromey.com>
7489 * target-dcache.c (target_dcache_cleanup): Remove.
7490 (target_dcache_aspace_key): Change type.
7491 (target_dcache_init_p, target_dcache_invalidate)
7492 (target_dcache_get, target_dcache_get_or_init)
7493 (_initialize_target_dcache): Update.
7494 * dcache.h (struct dcache_deleter): New.
7496 2019-05-08 Tom Tromey <tom@tromey.com>
7498 * symtab.c (struct symbol_cache): Add destructor and
7500 (symbol_cache_key): Move. Change type.
7501 (make_symbol_cache, free_symbol_cache): Remove.
7502 (get_symbol_cache): Update.
7503 (symbol_cache_cleanup): Remove.
7504 (ALL_PSPACES, symbol_cache_flush)
7505 (maintenance_print_symbol_cache)
7506 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7509 2019-05-08 Tom Tromey <tom@tromey.com>
7511 * symtab.c (struct main_info): Add destructor and initializers.
7512 (main_progspace_key): Move. Change type.
7513 (get_main_info): Update.
7514 (main_info_cleanup): Remove.
7515 (_initialize_symtab): Update.
7517 2019-05-08 Tom Tromey <tom@tromey.com>
7519 * registry.h (DECLARE_REGISTRY): Define the _key class.
7521 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7523 * NEWS: Merge two 'New commands' sections.
7525 2019-05-08 Joel Brobecker <brobecker@adacore.com>
7527 * ada-valprint.c (ada_val_print_gnat_array): Remove language
7528 parameter and use Ada language definition instead.
7529 (ada_val_print_ptr): Remove unused language parameter.
7530 (ada_val_print_num): Remove language parameter and use Ada language
7532 (ada_val_print_enum, ada_val_print_flt): Remove unused language
7534 (ada_val_print_struct_union, ada_val_print_ref): Remove language
7535 parameter and use Ada language definition instead.
7536 (ada_val_print_1): Update all ada_val_print_xxx calls.
7537 Remove language parameter.
7538 (ada_val_print): Update ada_val_print_1 call.
7540 2019-05-08 Tom Tromey <tromey@adacore.com>
7542 * remote.c (remote_hw_watchpoint_limit)
7543 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
7546 2019-05-08 Tom Tromey <tromey@adacore.com>
7548 * maint.c (_initialize_maint_cmds): Move initialization code to
7550 (watchdog, show_watchdog): Move to remote.c.
7551 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
7553 (_initialize_remote): Move initialization code from maint.c.
7554 * defs.h (watchdog): Don't declare.
7556 2019-05-08 Tom Tromey <tromey@adacore.com>
7558 * tui/tui-interp.c: Include main.h.
7559 * interps.c: Include main.h.
7560 * main.h (interpreter_p): Declare.
7561 * defs.h (interpreter_p): Don't declare.
7563 2019-05-08 Tom Tromey <tromey@adacore.com>
7565 * dwarf2loc.c: Include dwarf2read.h.
7566 * defs.h (read_unsigned_leb128): Don't declare.
7567 * dwarf2read.h (read_unsigned_leb128): Declare.
7569 2019-05-08 Tom Tromey <tromey@adacore.com>
7571 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
7574 2019-05-08 Tom Tromey <tromey@adacore.com>
7576 * utils.c (fputs_maybe_filtered): Reset style after paging, even
7577 when no wrap column is set.
7579 2019-05-08 Tom Tromey <tromey@adacore.com>
7581 * c-lang.c (c_get_string): Handle non-C-style arrays.
7583 2019-05-08 Tom Tromey <tromey@adacore.com>
7585 * typeprint.c (print_offset_data::update): Print the bit offset,
7586 not the number of bits remaining.
7588 2019-05-08 Tom Tromey <tromey@adacore.com>
7590 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
7591 padding at end of comment.
7593 2019-05-08 Tom Tromey <tromey@adacore.com>
7595 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
7598 2019-05-06 Tom Tromey <tom@tromey.com>
7600 * common/scoped_mmap.c: Include common-defs.h.
7601 * common/scoped_mmap.h: Don't include config.h.
7603 2019-05-04 Tom Tromey <tom@tromey.com>
7605 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
7606 (struct aarch64_call_info): Add initializers.
7607 <si>: Now a std::vector.
7608 (pass_on_stack, aarch64_push_dummy_call): Update.
7610 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
7611 Tom Tromey <tom@tromey.com>
7613 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
7614 (ppc_threads): Now a std::vector. Now static.
7615 (hwdebug_find_thread_points_by_tid)
7616 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
7619 2019-05-04 Tom Tromey <tom@tromey.com>
7621 * arc-tdep.c (arc_tdesc_init): Return bool.
7623 2019-05-04 Tom Tromey <tom@tromey.com>
7625 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
7626 Use gdb_assert_not_reached.
7628 2019-05-04 Tom Tromey <tom@tromey.com>
7630 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
7633 2019-05-04 Tom Tromey <tom@tromey.com>
7635 * arc-tdep.c (arc_tdesc_init): Use bool.
7637 2019-05-04 Tom Tromey <tom@tromey.com>
7639 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
7641 2019-05-04 Tom Tromey <tom@tromey.com>
7643 * cli/cli-cmds.c (valid_command_p): Return bool.
7645 2019-05-04 Tom Tromey <tom@tromey.com>
7647 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
7648 * command.h (valid_user_defined_cmd_name_p): Channge return type.
7650 2019-05-04 Raul Tambre <raul@tambre.ee>
7652 * python/lib/gdb/prompt.py (_ExtendedPrompt)
7653 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
7654 operator for comparison.
7656 2019-05-04 Tom Tromey <tom@tromey.com>
7658 * psymtab.c (psymbol_name_matches, match_partial_symbol)
7659 (lookup_partial_symbol, print_partial_symbols)
7660 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
7661 (psymbol_compare): Update.
7662 (add_psymbol_to_bcache): Clear the entire psymbol.
7663 (maintenance_check_psymtabs): Update.
7664 * psympriv.h (struct partial_symbol): Don't derive from
7665 general_symbol_info.
7666 <obj_section, unrelocated_address, address,
7667 set_unrelocated_address>: Update.
7668 <ginfo>: New member.
7669 * dwarf-index-write.c (write_psymbols, debug_names::insert)
7670 (debug_names::write_psymbols): Update.
7672 2019-05-04 Tom de Vries <tdevries@suse.de>
7674 * contrib/cc-with-tweaks.sh: Support -n arg.
7676 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7678 * corelow.c (core_target::detach): Ensure frame cache and
7679 register caches are cleared.
7680 inferior.c (exit_inferior_1): Likewise.
7682 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
7683 Tom Tromey <tom@tromey.com>
7685 * dictionary.c (collate_pending_symbols_by_language): Remove
7686 "struct" from foreach.
7687 * symtab.c (lookup_global_symbol_from_objfile)
7688 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
7690 * ser-tcp.c (net_open): Remove "struct" from foreach.
7691 * objfiles.c (objfile_relocate, objfile_rebase)
7692 (objfile_has_symbols): Remove "struct" from foreach.
7693 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
7695 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
7697 * darwin-nat.c (thread_info_from_private_thread_info): Remove
7698 "struct" from foreach.
7699 * ada-lang.c (create_excep_cond_exprs)
7700 (ada_exception_catchpoint_cond_string): Remove "struct" from
7703 2019-05-03 Tom Tromey <tromey@adacore.com>
7705 * ada-exp.y (convert_char_literal): Check suffix of each
7708 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
7711 * ada-exp.y (yywrap): Don't define.
7712 * ada-lex.l (%option): Add noyywrap
7715 2019-05-03 Eli Zaretskii <eliz@gnu.org>
7717 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
7718 _WIN32_WINNT to the XP level, unless already defined to a higher
7721 * unittests/parse-connection-spec-selftests.c:
7723 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
7726 * symfile.c (find_separate_debug_file): Remove colon from the
7727 drive spec of DOS/Windows file names of the target, so that the
7728 file name produced from DEBUGDIR and the target's directory will
7729 be valid on DOS/Windows systems.
7731 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
7733 * rust-lang.c (val_print_struct): Handle printing structures
7736 2019-05-02 Tom Tromey <tromey@adacore.com>
7738 * valarith.c (_initialize_valarith): Remove.
7740 2019-05-01 Tom Tromey <tromey@adacore.com>
7742 * ada-lang.c (ada_value_primitive_field): Treat more fields as
7745 2019-05-01 Tom Tromey <tromey@adacore.com>
7747 * ada-lang.c (ada_value_assign): Correctly compute starting offset
7748 for big-endian copies.
7750 2019-04-30 Ali Tamur <tamur@google.com>
7751 * gdb/dwarf2read.c (read_3_bytes): New declaration.
7752 (read_attribute_value): Added DW_FORM_strx1-4 cases.
7753 (read_3_bytes): New function.
7755 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7757 * windows-nat.c (main_thread_id): Delete.
7758 (handle_output_debug_string): Replace main_thread_id by
7759 current_event.dwThreadId.
7760 (fake_create_process): Likewise.
7761 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
7762 Do not set main_thread_id.
7763 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
7764 current_event.dwThreadId.
7765 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
7767 2019-04-30 Joel Brobecker <brobecker@adacore.com>
7769 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
7770 Use current_event.dwThreadId instead of main_thread_id.
7772 2019-04-30 Tom Tromey <tromey@adacore.com>
7774 * ada-lang.c (ada_lookup_simple_minsyms): New function.
7775 (create_excep_cond_exprs): Iterate over program spaces.
7776 (ada_exception_catchpoint_cond_string): Examine all minimal
7777 symbols for exception types.
7779 2019-04-30 Tom Tromey <tromey@adacore.com>
7782 * dwarf2read.c (process_structure_scope): Handle case where type
7783 has template parameters but no symbol was created.
7785 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7786 Chris January <chris.january@arm.com>
7788 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
7790 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
7792 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7794 * f-typeprint.c (f_print_type): Update rules for printing
7796 (f_type_print_varspec_suffix): Likewise.
7798 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7799 Chris January <chris.january@arm.com>
7801 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
7804 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7806 * f-lang.c (build_fortran_types): Change name of void type to
7808 * f-typeprint.c (f_type_print_base): Print the name of the void
7809 type, rather than a fixed string.
7810 * f-valprint.c (f_decorations): Use lower case void string.
7812 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7813 Chris January <chris.january@arm.com>
7815 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
7818 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7819 Chris January <chris.january@arm.com>
7820 David Lecomber <david.lecomber@arm.com>
7822 * f-exp.y (BINOP_INTRINSIC): New token.
7823 (exp): New parser rule handling BINOP_INTRINSIC.
7824 (f77_keywords): Add new builtin procedures.
7825 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
7826 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7827 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
7828 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7829 (print_unop_subexp_f): New function.
7830 (print_binop_subexp_f): New function.
7831 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7832 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
7833 (dump_subexp_body_f): Likewise.
7834 (operator_check_f): Likewise.
7835 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
7836 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
7838 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7840 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
7842 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
7843 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
7844 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
7845 (operator_length_f): New fuction.
7846 (print_subexp_f): New function.
7847 (op_name_f): New function.
7848 (dump_subexp_body_f): New function.
7849 (operator_check_f): New function.
7850 (exp_descriptor_f): Replace standard expression handling functions
7852 * gdb/fortran-operator.def: New file.
7853 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
7854 * gdb/std-operator.def: Remove UNOP_KIND.
7856 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
7858 * std-operator.def: Remove unbalanced, stray double quote
7861 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7862 Chris January <chris.january@arm.com>
7863 Daniel Everett <daniel.everett@arm.com>
7864 Nick Forrington <nick.forrington@arm.com>
7865 Richard Bunt <richard.bunt@arm.com>
7867 * cp-valprint.c (cp_print_value_fields): Allow an additional level
7868 of depth when printing anonymous structs or unions.
7869 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
7870 Don't print either the top-level value, or the children if the
7871 max-depth is exceeded.
7872 (ppscm_print_children): When printing the key of a map, allow one
7873 extra level of depth.
7874 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
7875 print either the top-level value, or the children if the max-depth
7877 (print_children): When printing the key of a map, allow one extra
7879 * python/py-value.c (valpy_format_string): Add max_depth keyword.
7880 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
7881 (user_print_options): Initialise max_depth field.
7882 (val_print_scalar_or_string_type_p): New function.
7883 (val_print): Check to see if the max depth has been reached.
7884 (val_print_check_max_depth): Define new function.
7885 (show_print_max_depth): New function.
7886 (_initialize_valprint): Add 'print max-depth' option.
7887 * valprint.h (struct value_print_options) <max_depth>: New field.
7888 (val_print_check_max_depth): Declare new function.
7889 * NEWS: Document new feature.
7891 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7893 * ada-lang.c (ada_language_defn): Initialise new field.
7894 * c-lang.c (c_is_string_type_p): New function.
7895 (c_language_defn): Initialise new field.
7896 (cplus_language_defn): Initialise new field.
7897 (asm_language_defn): Initialise new field.
7898 (minimal_language_defn): Initialise new field.
7899 * c-lang.h (c_is_string_type_p): Declare new function.
7900 * d-lang.c (d_language_defn): Initialise new field.
7901 * f-lang.c (f_is_string_type_p): New function.
7902 (f_language_defn): Initialise new field.
7903 * go-lang.c (go_is_string_type_p): New function.
7904 (go_language_defn): Initialise new field.
7905 * language.c (default_is_string_type_p): New function.
7906 (unknown_language_defn): Initialise new field.
7907 (auto_language_defn): Initialise new field.
7908 * language.h (struct language_defn) <la_is_string_type_p>: New
7910 (default_is_string_type_p): Declare new function.
7911 * m2-lang.c (m2_language_defn): Initialise new field.
7912 * objc-lang.c (objc_language_defn): Initialise new field.
7913 * opencl-lang.c (opencl_language_defn): Initialise new field.
7914 * p-lang.c (pascal_is_string_type_p): New function.
7915 (pascal_language_defn): Initialise new field.
7916 * rust-lang.c (rust_is_string_type_p): New function.
7917 (rust_language_defn): Initialise new field.
7919 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7921 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
7923 * ada-lang.c (ada_language_defn): Initialise new field.
7924 * c-lang.c (c_language_defn): Likewise.
7925 (cplus_language_defn): Likewise.
7926 (asm_language_defn): Likewise.
7927 (minimal_language_defn): Likewise.
7928 * d-lang.c (d_language_defn): Likewise.
7929 * f-lang.c (f_language_defn): Likewise.
7930 * go-lang.c (go_language_defn): Likewise.
7931 * language.c (unknown_language_defn): Likewise.
7932 (auto_language_defn): Likewise.
7933 * m2-lang.c (m2_language_defn): Likewise.
7934 * objc-lang.c (objc_language_defn): Likewise.
7935 * opencl-lang.c (opencl_language_defn): Likewise.
7936 * p-lang.c (pascal_language_defn): Likewise.
7937 * rust-lang.c (rust_language_defn): Likewise.
7939 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
7941 * ada-lang.c (ada_is_character_type): Change return type to bool.
7942 (ada_is_string_type): Likewise.
7943 * ada-lang.h (ada_is_character_type): Update declaration
7944 (ada_is_string_type): Likewise.
7946 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7948 Support style in 'frame|thread apply'
7950 * gdbcmd.h (execute_command_to_string): New term_out parameter.
7951 * record.c (record_start, record_stop): Update callers of
7952 execute_command_to_string with false.
7953 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
7954 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
7956 (class string_file): New constructor with term_out parameter.
7957 Override methods term_out and can_emit_style_escape. New member
7959 (class stdio_file): Override can_emit_style_escape.
7960 (class tee_file): Override term_out and can_emit_style_escape.
7961 * utils.h (can_emit_style_escape): Remove.
7962 * utils.c (can_emit_style_escape): Likewise.
7963 Update all callers of can_emit_style_escape (SOMESTREAM) to
7964 SOMESTREAM->can_emit_style_escape.
7965 * source-cache.c (source_cache::get_source_lines): Likewise.
7966 * stack.c (frame_apply_command_count): Call execute_command_to_string
7967 passing the term_out characteristic of the current gdb_stdout.
7968 * thread.c (thr_try_catch_cmd): Likewise.
7969 * top.c (execute_command_to_string): pass term_out parameter
7970 to construct the string_file for the command output.
7971 * ui-file.c (term_cli_styling): New function (most code moved
7972 from utils.c can_emit_style_escape).
7973 (string_file::string_file, string_file::can_emit_style_escape,
7974 stdio_file::can_emit_style_escape, tee_file::term_out,
7975 tee_file::can_emit_style_escape): New functions.
7977 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7979 * NEWS: Mention the new set|show may-call-functions.
7980 * infcall.c (may_call_functions_p): New variable.
7981 (show_may_call_functions_p): New function.
7982 (call_function_by_hand_dummy): Throws an error if not
7984 (_initialize_infcall): Call add_setshow_boolean_cmd for
7987 2019-04-25 Keith Seitz <keiths@redhat.com>
7990 * cp-support.c (inspect_type): Don't attempt substitutions
7991 of symbol with the same name.
7993 2019-04-25 Tom Tromey <tromey@adacore.com>
7996 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
7999 2019-04-25 Tom Tromey <tromey@adacore.com>
8001 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8003 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8004 (gdb_xml_parser::parse): Use std::move.
8005 * python/python-internal.h (gdbpy_convert_exception): Take a const
8007 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8009 * python/py-utils.c (gdbpy_convert_exception): Take a const
8011 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8013 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8015 * mi/mi-main.c (mi_print_exception): Take a const reference.
8016 * main.c (handle_command_errors): Take a const reference.
8017 * linespec.c (parse_linespec): Use std::move.
8018 * infcall.c (run_inferior_call): Use std::move.
8019 (call_function_by_hand_dummy): Use std::move.
8020 * exec.c (try_open_exec_file): Use std::move.
8021 * exceptions.h (exception_print, exception_fprintf)
8022 (exception_print_same): Update.
8023 * exceptions.c (print_exception, exception_print)
8024 (exception_fprintf, exception_print_same): Change parameters to
8026 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8027 * common/new-op.c: Use std::move.
8028 * common/common-exceptions.h (struct gdb_exception): Add move
8030 (struct gdb_exception_error, struct gdb_exception_quit, struct
8031 gdb_quit_bad_alloc): Change constructor to move constructor.
8032 (throw_exception): Change parameter to rvalue reference.
8033 * common/common-exceptions.c (throw_exception): Take rvalue
8035 * cli/cli-interp.c (safe_execute_command): Use std::move.
8036 * breakpoint.c (insert_bp_location, location_to_sals): Use
8039 2019-04-25 Tom Tromey <tromey@adacore.com>
8041 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8042 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8043 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8044 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8045 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8046 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8047 guile/scm-value.c: Use unpack.
8048 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8049 gdbscm_gdb_exception.
8050 (gdbscm_throw_gdb_exception): Likewise.
8051 (struct gdbscm_gdb_exception): New.
8052 (unpack): New function.
8053 (gdbscm_wrap): Use unpack.
8055 2019-04-25 Tom Tromey <tromey@adacore.com>
8057 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8058 (gdb_rl_callback_handler): Use std::move.
8059 * common/common-exceptions.h (struct gdb_exception): Add move
8060 assignment operator.
8061 (throw_exception_sjlj): Change "exception" to const reference.
8062 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8063 (throw_exception_sjlj): Change "exception" to const reference.
8065 2019-04-25 Tom Tromey <tromey@adacore.com>
8067 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8068 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8069 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8071 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8073 * mi/mi-interp.c (mi_interp::exec): Update.
8074 * linespec.c (parse_linespec): Update.
8075 * infcall.c (run_inferior_call): Update.
8076 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8077 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8078 (gdbscm_lookup_global_symbol): Update.
8079 * guile/scm-param.c (gdbscm_parameter_value): Update.
8080 * guile/scm-frame.c (gdbscm_frame_read_register)
8081 (gdbscm_frame_read_var): Update.
8082 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8083 * exec.c (try_open_exec_file): Update.
8084 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8085 (gdb_rl_callback_handler): Update.
8086 * common/common-exceptions.h (exception_none): Don't declare.
8087 * common/common-exceptions.c (exception_none): Don't define.
8088 (struct catcher) <exception>: Update.
8089 * cli/cli-interp.c (safe_execute_command): Update.
8090 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8092 2019-04-25 Ali Tamur <tamur@google.com>
8094 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8095 (read_attribute_value): Likewise.
8096 (dwarf2_read_addr_index): Update comment.
8097 (read_str_index): Add DW_FORM_strx.
8098 (dwarf2_string_attr): Likewise.
8099 (dwarf2_const_value_attr): Likewise.
8100 (dump_die_shallow): Likewise.
8101 (dwarf2_fetch_constant_bytes): Likewise.
8102 (skip_form_bytes): Likewise.
8103 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8105 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8109 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8110 OFFSET. Verify if current mapping contains an ELF header.
8111 (linux_find_memory_regions_full): Adjust call to
8114 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8115 Kang Li <kanglictf@gmail.com>
8119 * dwarf2-frame.c (read_initial_length): Be consistent about using
8120 unsigned representation of length.
8121 (decode_frame_entry_1): Likewise. Check for wraparound of
8122 end pointer as well as buffer overflow.
8124 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8126 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8129 2019-04-24 Tom Tromey <tromey@adacore.com>
8131 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8133 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8135 * s12z-tdep.c (s12z_unwind_pc): Delete.
8136 (s12z_unwind_sp): Delete.
8137 (s12z_gdbarch_init): Don't register deleted functions with
8140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8142 * rl78-tdep.c (rl78_unwind_sp): Delete.
8143 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8145 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8147 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8148 (xstormy16_unwind_pc): Delete.
8149 (xstormy16_dummy_id): Delete.
8150 (xstormy16_gdbarch_init): Don't register deleted functions with
8153 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8155 * vax-tdep.c (vax_unwind_pc): Delete.
8156 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8158 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8160 * v850-tdep.c (v850_unwind_sp): Delete.
8161 (v850_unwind_pc): Delete.
8162 (v850_dummy_id): Delete.
8163 (v850_gdbarch_init): Don't register deleted functions with
8166 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8168 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8169 (tilegx_unwind_pc): Delete.
8170 (tilegx_unwind_dummy_id): Delete.
8171 (tilegx_gdbarch_init): Don't register deleted functions with
8174 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8176 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8177 (tic6x_dummy_id): Delete.
8178 (tic6x_gdbarch_init): Don't register deleted functions with
8181 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8183 * sparc-tdep.c (sparc_unwind_pc): Delete.
8184 (sparc32_gdbarch_init): Don't register deleted function with
8187 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8189 * sh-tdep.c (sh_unwind_sp): Delete.
8190 (sh_unwind_pc): Delete.
8191 (sh_dummy_id): Delete.
8192 (sh_gdbarch_init): Don't register deleted functions with
8195 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8197 * score-tdep.c (score_unwind_sp): Delete.
8198 (score_unwind_pc): Delete.
8199 (score_dummy_id): Delete.
8200 (score_gdbarch_init): Don't register deleted functions with
8203 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8205 * rx-tdep.c (rx_unwind_pc): Delete.
8206 (rx_unwind_sp): Delete.
8207 (rx_dummy_id): Delete.
8208 (rx_gdbarch_init): Don't register deleted functions with
8209 gdbarch. Update comment.
8211 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8213 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8214 (rs6000_dummy_id): Delete.
8215 (rs6000_gdbarch_init): Don't register deleted functions with
8218 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8220 * or1k-tdep.c (or1k_dummy_id): Delete.
8221 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8223 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8225 * nios2-tdep.c (nios2_dummy_id): Delete.
8226 (nios2_unwind_sp): Delete.
8227 (nios2_gdbarch_init): Don't register deleted functions with
8230 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8232 * nds32-tdep.c (nds32_dummy_id): Delete.
8233 (nds32_unwind_pc): Delete.
8234 (nds32_unwind_sp): Delete.
8235 (nds32_gdbarch_init): Don't register deleted functions with
8238 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8240 * msp430-tdep.c (msp430_unwind_pc): Delete.
8241 (msp430_unwind_sp): Delete.
8242 (msp430_dummy_id): Delete.
8243 (msp430_gdbarch_init): Don't register deleted functions with
8246 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8248 * moxie-tdep.c (moxie_unwind_sp): Delete.
8249 (moxie_unwind_pc): Delete.
8250 (moxie_dummy_id): Delete.
8251 (moxie_gdbarch_init): Don't register deleted functions with
8254 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8256 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8257 (mn10300_unwind_pc): Delete.
8258 (mn10300_unwind_sp): Delete.
8259 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8261 (mn10300_frame_unwind_init): Don't register deleted functions with
8264 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8266 * mep-tdep.c (mep_unwind_pc): Delete.
8267 (mep_unwind_sp): Delete.
8268 (mep_dummy_id): Delete.
8269 (mep_gdbarch_init): Don't register deleted functions with
8272 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8274 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8275 (m68hc11_unwind_sp): Delete.
8276 (m68hc11_gdbarch_init): Don't register deleted functions with
8279 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8281 * m32r-tdep.c (m32r_unwind_sp): Delete.
8282 (m32r_unwind_pc): Delete.
8283 (m32r_dummy_id): Delete.
8284 (m32r_gdbarch_init): Don't register deleted functions with
8287 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8289 * m32c-tdep.c (m32c_unwind_pc): Delete.
8290 (m32c_unwind_sp): Delete.
8291 (m32c_dummy_id): Delete.
8292 (m32c_gdbarch_init): Don't register deleted functions with
8295 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8297 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8298 (lm32_unwind_pc): Delete.
8299 (lm32_dummy_id): Delete.
8300 (lm32_gdbarch_init): Don't register deleted functions with
8303 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8305 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8306 (iq2000_unwind_pc): Delete.
8307 (iq2000_dummy_id): Delete.
8308 (iq2000_gdbarch_init): Don't register deleted functions with
8311 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8313 * nds32-tdep.c (nds32_type_align): Delete.
8314 (nds32_push_dummy_call): Use type_align instead.
8316 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8318 * arm-tdep.c (arm_type_align): Only handle vector override case.
8319 (arm_push_dummy_call): Use type_align.
8320 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8322 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8324 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8326 (pass_on_stack): Use type_align.
8327 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8330 2019-04-23 Tom Tromey <tromey@adacore.com>
8332 * dwarf2read.c (line_header::file_name_at): Remove unused
8335 2019-04-23 Tom de Vries <tdevries@suse.de>
8338 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8342 2019-03-27 Ali Tamur <tamur@google.com>
8344 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8345 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8346 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8347 (dwarf_expr_context::get_addr_index): Likewise
8348 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8349 (symbol_needs_eval_context::get_addr_index): Likewise
8350 (disassemble_dwarf_expression): Add DW_OP_addrx
8351 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8352 (read_cutu_die_from_dwo): Update comment
8353 (skip_one_die): Add DW_FORM_addrx
8354 (read_attribute_value): Likewise
8355 (var_decode_location): Add DW_OP_addrx
8356 (dwarf2_const_value_attr): Add DW_FORM_addrx
8357 (dump_die_shallow): Likewise
8358 (dwarf2_fetch_constant_bytes): Likewise
8359 (decode_locdesc): Add DW_OP_addrx
8360 (skip_form_bytes): Add DW_FORM_addrx
8362 2019-04-22 Ali Tamur <tamur@google.com>
8364 * MAINTAINERS (Write After Approval): Add self.
8366 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8368 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8369 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8370 (open_symbol_file_object): Likewise.
8371 (svr4_default_sos): Add info parameter.
8372 (svr4_read_so_list): Likewise.
8373 (svr4_current_sos_direct): Adjust functions calls to pass down
8375 (svr4_current_sos_1): Add info parameter.
8376 (svr4_current_sos): Call get_svr4_info, pass info down to
8378 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8380 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8382 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8384 (probes_table_remove_objfile_probes): Likewise.
8385 (register_solib_event_probe): Add info parameter.
8386 (solist_update_incremental): Pass info parameter down to
8388 (disable_probes_interface): Add info parameter.
8389 (svr4_handle_solib_event): Pass current_program_space to
8390 get_svr4_info. Adjust disable_probes_interface cleanup.
8391 (svr4_create_probe_breakpoints): Add info parameter, pass it
8392 down to register_solib_event_probe.
8393 (svr4_create_solib_event_breakpoints): Add info parameter,
8394 pass it down to svr4_create_probe_breakpoints.
8395 (enable_break): Pass info down to
8396 svr4_create_solib_event_breakpoints.
8397 (svr4_solib_create_inferior_hook): Pass current_program_space to
8399 (svr4_clear_solib): Likewise.
8401 2019-04-22 Pedro Alves <palves@redhat.com>
8403 * solib-svr4.c (svr4_free_objfile_observer): New.
8404 (probe_and_action::objfile): New field.
8405 (probes_table_htab_remove_objfile_probes)
8406 (probes_table_remove_objfile_probes): New functions.
8407 (register_solib_event_probe): Add 'objfile' parameter. Store it
8408 in the new probe_and_action. Don't store the probe in 'lookup'.
8409 (svr4_create_probe_breakpoints): Pass objfile to
8410 register_solib_event_probe.
8411 (_initialize_svr4_solib): Register a free_objfile observer.
8413 2019-04-19 Tom Tromey <tom@tromey.com>
8415 * common/queue.h: Remove.
8417 2019-04-19 Tom Tromey <tom@tromey.com>
8419 * event-loop.c: Don't include "common/queue.h".
8421 2019-04-19 Tom Tromey <tom@tromey.com>
8423 * remote.c (remote_target): Use delete.
8424 * remote-notif.h: Include <list>, not "common/queue.h".
8425 (notif_client_p): Remove typedef.
8426 (remote_notif_state): Add constructor, destructor, initializer.
8427 <notif_queue>: Now a std::list.
8428 (remote_notif_state_xfree): Don't declare.
8429 * remote-notif.c (remote_notif_process, handle_notification)
8430 (remote_notif_state_allocate): Update.
8431 (~remote_notif_state): Rename from remote_notif_state_xfree.
8433 2019-04-19 Tom Tromey <tom@tromey.com>
8435 * symfile.c (reread_symbols): Update.
8436 * objfiles.c (objfile_register_static_link)
8437 (objfile_lookup_static_link): Update
8438 (~objfile) Don't delete static_links.
8439 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8441 2019-04-19 Tom Tromey <tom@tromey.com>
8443 * type-stack.h (struct type_stack) <insert>: Constify string.
8444 * type-stack.c (type_stack::insert): Constify string.
8445 * gdbtypes.h (lookup_template_type): Update.
8446 (address_space_name_to_int): Update.
8447 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8449 (lookup_template_type): Make name const.
8450 * c-exp.y: Update rules.
8451 (lex_one_token, classify_name, classify_inner_name)
8452 (c_print_token): Update.
8453 * p-exp.y: Update rules.
8455 * f-exp.y: Update rules.
8457 * d-exp.y: Update rules.
8458 (lex_one_token, classify_name, classify_inner_name): Update.
8459 * parse.c (write_dollar_variable, copy_name): Return std::string.
8460 * parser-defs.h (copy_name): Change return type.
8461 * m2-exp.y: Update rules.
8463 * go-exp.y (lex_one_token): Update.
8465 (classify_unsafe_function, classify_packaged_name)
8466 (classify_name, yylex): Update.
8468 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8470 * configure.ac: add --enable-source-highlight switch.
8471 * configure: Regenerate.
8472 * top.c (print_gdb_version): plumb --enable-source-highlight
8473 status to "show configuration".
8475 2019-04-19 Tom Tromey <tromey@adacore.com>
8477 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8479 (empty_record, ada_template_to_fixed_record_type_1)
8480 (template_to_static_fixed_type)
8481 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8482 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8483 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8486 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8489 * source.c (print_source_lines_base): Advance "iter" when a
8490 control character is seen.
8492 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8494 * inferior.h (struct infcall_suspend_state_deleter):
8495 Catch exception in destructor to avoid crash.
8497 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8499 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8500 close to the add_com "shell".
8502 2019-04-18 Tom Tromey <tromey@adacore.com>
8504 * process-stratum-target.h (class process_stratum_target)
8505 <stratum>: Add "final".
8507 2019-04-17 Tom Tromey <tromey@adacore.com>
8509 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8510 against nullptr before use.
8512 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8514 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8516 2019-04-17 Jim Wilson <jimw@sifive.com>
8517 Andrew Burgess <andrew.burgess@embecosm.com>
8519 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
8520 code read might fail, assume 4-byte breakpoint in that case.
8522 2019-04-15 Leszek Swirski <leszeks@google.com>
8524 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
8525 rather than a hand-rolled POD check when checking for forced MEMORY
8528 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8530 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
8531 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
8533 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
8534 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
8535 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
8538 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8540 * aarch64-linux-nat.c
8541 (aarch64_linux_nat_target::thread_architecture): Add override.
8542 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
8545 2019-04-15 Alan Hayward <alan.hayward@arm.com>
8547 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
8549 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
8551 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
8552 target types of size 96-bits, add some additional comments, and
8553 check that the builtin type we found was the correct size.
8555 2019-04-12 Eli Zaretskii <eliz@gnu.org>
8557 * utils.c (prompt_for_continue): Don't restore the styling at the
8558 end, as applied_style has the wrong value. This fixes styling in
8559 long lists of file names that are interrupted by the "Continue?"
8562 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
8564 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
8565 * c-lang.c (c_language_defn): Likewise.
8566 (cplus_language_defn): Likewise.
8567 (asm_language_defn): Likewise.
8568 (minimal_language_defn): Likewise.
8569 * d-lang.c (d_language_defn): Likewise.
8570 * f-lang.c (f_language_defn): Likewise.
8571 * go-lang.c (go_language_defn): Likewise.
8572 * language.c (unknown_language_defn): Likewise.
8573 (auto_language_defn): Likewise.
8574 * language.h (struct language_defn): Remove la_magic field.
8575 (LANG_MAGIC): Delete.
8576 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
8577 * objc-lang.c (objc_language_defn): Likewise.
8578 * opencl-lang.c (opencl_language_defn): Likewise.
8579 * p-lang.c (pascal_language_defn): Likewise.
8580 * rust-lang.c (rust_language_defn): Likewise.
8582 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8584 * riscv-tdep.c (riscv_type_align): New function.
8585 (riscv_type_alignment): Delete.
8586 (riscv_arg_location): Use 'type_align'.
8587 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
8589 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8591 * gdbtypes.c (type_align): A struct with no non-static fields also
8594 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
8596 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
8598 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
8600 (riscv_struct_info::analyse): New implementation using new
8601 analyse_inner member function.
8602 (riscv_struct_info::field_offset): New member function.
8603 (riscv_struct_info::m_offsets): New member variable.
8604 (riscv_struct_info::analyse_inner): New private member function,
8605 takes the old implementation of riscv_struct_info::analyse but
8606 extended to track field offsets.
8607 (riscv_call_arg_struct): Update the struct folding special cases
8608 to handle cases where empty C++ structs, which are non-zero
8610 (riscv_arg_location): Initialise the length of each location, a
8611 non-zero length now indicates the location is in use.
8612 (riscv_push_dummy_call): Allow for the first location having a
8613 non-zero offset when setting up arguments.
8614 (riscv_return_value): Likewise, but for return values.
8616 2019-04-11 Tom Tromey <tromey@adacore.com>
8618 * utils.c (internal_vproblem): Make "msg" const.
8620 2019-04-11 Alan Hayward <alan.hayward@arm.com>
8622 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
8623 * trad-frame.c (trad_frame_reset_saved_regs): New function.
8624 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
8625 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
8627 2019-04-10 Kevin Buettner <kevinb@redhat.com>
8629 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
8631 (fill_gregset): Call amd64_linux_collect_native_gregset instead
8632 of amd64_collect_native_gregset.
8633 (amd64_linux_nat_target::store_registers): Likewise.
8635 2019-04-10 Tom Tromey <tom@tromey.com>
8637 * symtab.c (lookup_global_symbol_from_objfile)
8638 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
8639 * objfiles.h (class separate_debug_iterator): New.
8640 (class separate_debug_range): New.
8641 (struct objfile) <separate_debug_objfiles>: New method.
8642 (objfile_separate_debug_iterate): Don't declare.
8643 * objfiles.c (separate_debug_iterator::operator++): Rename from
8644 objfile_separate_debug_iterate.
8645 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
8647 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
8650 2019-04-10 Tom Tromey <tom@tromey.com>
8652 * symfile.c (reread_symbols): Remove old comment.
8653 * objfiles.c (free_all_objfiles): Fix a typo.
8655 2019-04-10 Tom Tromey <tom@tromey.com>
8657 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
8658 * minsyms.c (lookup_minimal_symbol): Use foreach.
8659 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8660 (lookup_minimal_symbol_solib_trampoline): Likewise.
8661 * symfile.c (reread_symbols): Use foreach.
8663 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
8664 Tom Tromey <tromey@adacore.com>
8667 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
8668 (rust_lex_int_test): Change "value" to be LONGEST.
8669 (rust_lex_tests): Add test for long integer literal.
8671 2019-04-09 Tom Tromey <tromey@adacore.com>
8673 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
8675 (extended_remote_target::attach): Update.
8676 (remote_target::remote_notice_new_inferior): Update.
8677 (remote_target::add_current_inferior_and_thread): Update.
8678 * inferior.c (exit_inferior_1): Use "false".
8679 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
8681 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
8683 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
8684 the "start" command.
8686 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8688 * python/py-inferior.c (infpy_thread_from_thread_handle):
8689 Adjust comments to reflect renaming of thread_from_thread_handle
8690 to thread_from_handle. Adjust keywords. Fix type error message.
8691 (inferior_object_methods): Add thread_from_handle. Retain
8692 thread_from_thread_handle, but mark it as deprecated.
8694 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8696 * gdbthread.h (find_thread_by_handle): Revise declaration.
8697 * thread.c (find_thread_by_handle): Likewise. Adjust
8699 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
8700 support for buffer objects as handles.
8702 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8704 * python/py-infthread.c (thpy_thread_handle): New function.
8705 (thread_object_methods): Register thpy_thread_handle.
8707 2019-04-08 Kevin Buettner <kevinb@redhat.com>
8709 * gdbthread.h (thread_to_thread_handle): Declare.
8710 * thread.c (gdbtypes.h): Include.
8711 (thread_to_thread_handle): New function.
8713 * target.h (struct target_ops): Add thread_info_to_thread_handle.
8714 (target_thread_info_to_thread_handle): Declare.
8715 * target.c (target_thread_info_to_thread_handle): New function.
8716 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
8717 * target-delegates.c: Regenerate.
8719 * linux-thread-db.c (class thread_db_target): Add method
8720 thread_info_to_thread_handle.
8721 (thread_db_target::thread_info_to_thread_handle): Define.
8722 * remote.c (class remote_target): Add new method
8723 thread_info_to_thread_handle.
8724 (remote_target::thread_info_to_thread_handle): Define.
8726 2019-04-08 Pedro Alves <palves@redhat.com>
8728 * common/common-exceptions.c (throw_exception): Don't create
8729 named object to throw; throw directly.
8730 (throw_it): Likewise. Don't initialize gdb_exception::message
8731 here, with new; pass FMT and AP to the ctor instead.
8732 * common/common-exceptions.h: Include <string>.
8733 (gdb_exception::gdb_exception(enum return_reason, enum errors,
8734 const char *, va_list)): New ctor. Use std::make_shared.
8735 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
8737 (gdb_exception_error::gdb_exception_error(enum errors, const char
8739 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
8741 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
8743 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
8744 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
8747 2019-04-08 Tom Tromey <tom@tromey.com>
8749 * valops.c (value_rtti_indirect_type): Replace throw_exception
8751 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
8753 * thread.c (thr_try_catch_cmd): Replace throw_exception with
8755 * target.c (target_translate_tls_address): Replace throw_exception
8757 * stack.c (frame_apply_command_count): Replace throw_exception
8759 * solib-spu.c (append_ocl_sos): Replace throw_exception with
8761 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
8763 * rs6000-tdep.c (rs6000_frame_cache)
8764 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
8765 * remote.c: Replace throw_exception with throw.
8766 * record-full.c (record_full_message, record_full_wait_1)
8767 (record_full_restore): Replace throw_exception with throw.
8769 (get_thread_current_frame_id, record_btrace_start_replaying)
8770 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
8771 (cmd_record_btrace_start): Replace throw_exception with throw.
8772 * parse.c (parse_exp_in_context_1): Replace throw_exception with
8774 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
8775 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
8777 (find_linespec_symbols): Replace throw_exception with throw.
8778 * infrun.c (displaced_step_prepare, resume): Replace
8779 throw_exception with throw.
8780 * infcmd.c (post_create_inferior): Replace throw_exception with
8782 * inf-loop.c (inferior_event_handler): Replace throw_exception
8784 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8785 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
8786 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
8787 (get_prev_frame_always, get_frame_pc_if_available)
8788 (get_frame_address_in_block_if_available, get_frame_language):
8789 Replace throw_exception with throw.
8790 * frame-unwind.c (frame_unwind_try_unwinder): Replace
8791 throw_exception with throw.
8792 * eval.c (fetch_subexp_value, evaluate_var_value)
8793 (evaluate_funcall, evaluate_subexp_standard): Replace
8794 throw_exception with throw.
8795 * dwarf2loc.c (call_site_find_chain)
8796 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
8797 Replace throw_exception with throw.
8798 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
8800 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
8802 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
8803 * completer.c (complete_line_internal): Replace throw_exception
8805 * compile/compile-object-run.c (compile_object_run): Replace
8806 throw_exception with throw.
8807 * cli/cli-script.c (process_next_line): Replace throw_exception
8809 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
8810 (btrace_enable, btrace_maint_update_pt_packets): Replace
8811 throw_exception with throw.
8812 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
8813 throw_exception with throw.
8814 * break-catch-throw.c (re_set_exception_catchpoint): Replace
8815 throw_exception with throw.
8816 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8817 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
8818 * aarch64-tdep.c (aarch64_make_prologue_cache)
8819 (aarch64_make_stub_cache): Replace throw_exception with throw.
8821 2019-04-08 Tom Tromey <tom@tromey.com>
8823 * common/common-exceptions.c (throw_exception): Rename from
8824 throw_exception_cxx. Remove old copy. Make argument const.
8825 (throw_it): Create and throw exception objects directly.
8826 * common/common-exceptions.h (throw_exception): Make argument
8828 (struct gdb_exception_error): Add constructor.
8829 (struct gdb_exception_quit): Add constructor.
8831 2019-04-08 Tom Tromey <tom@tromey.com>
8833 * common/common-exceptions.h (exception_rethrow): Don't declare.
8834 (TRY_SJLJ): Update comment.
8835 (TRY, CATCH, END_CATCH): Remove.
8836 * common/common-exceptions.c (exception_rethrow): Remove.
8838 2019-04-08 Tom Tromey <tom@tromey.com>
8840 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
8842 (gdb_exception_error): Rename from
8843 gdb_exception_RETURN_MASK_ERROR.
8844 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
8845 (gdb_quit_bad_alloc): Update.
8846 * aarch64-tdep.c: Update.
8847 * ada-lang.c: Update.
8848 * ada-typeprint.c: Update.
8849 * ada-valprint.c: Update.
8850 * amd64-tdep.c: Update.
8851 * arch-utils.c: Update.
8852 * break-catch-throw.c: Update.
8853 * breakpoint.c: Update.
8855 * c-varobj.c: Update.
8856 * cli/cli-cmds.c: Update.
8857 * cli/cli-interp.c: Update.
8858 * cli/cli-script.c: Update.
8859 * common/common-exceptions.c: Update.
8860 * common/new-op.c: Update.
8861 * common/selftest.c: Update.
8862 * compile/compile-c-symbols.c: Update.
8863 * compile/compile-cplus-symbols.c: Update.
8864 * compile/compile-object-load.c: Update.
8865 * compile/compile-object-run.c: Update.
8866 * completer.c: Update.
8867 * corelow.c: Update.
8869 * cp-support.c: Update.
8870 * cp-valprint.c: Update.
8871 * darwin-nat.c: Update.
8872 * disasm-selftests.c: Update.
8873 * dtrace-probe.c: Update.
8874 * dwarf-index-cache.c: Update.
8875 * dwarf-index-write.c: Update.
8876 * dwarf2-frame-tailcall.c: Update.
8877 * dwarf2-frame.c: Update.
8878 * dwarf2loc.c: Update.
8879 * dwarf2read.c: Update.
8881 * event-loop.c: Update.
8882 * event-top.c: Update.
8884 * f-valprint.c: Update.
8885 * fbsd-tdep.c: Update.
8886 * frame-unwind.c: Update.
8888 * gdbtypes.c: Update.
8889 * gnu-v3-abi.c: Update.
8890 * guile/guile-internal.h: Update.
8891 * guile/scm-block.c: Update.
8892 * guile/scm-breakpoint.c: Update.
8893 * guile/scm-cmd.c: Update.
8894 * guile/scm-disasm.c: Update.
8895 * guile/scm-frame.c: Update.
8896 * guile/scm-lazy-string.c: Update.
8897 * guile/scm-math.c: Update.
8898 * guile/scm-param.c: Update.
8899 * guile/scm-ports.c: Update.
8900 * guile/scm-pretty-print.c: Update.
8901 * guile/scm-symbol.c: Update.
8902 * guile/scm-symtab.c: Update.
8903 * guile/scm-type.c: Update.
8904 * guile/scm-value.c: Update.
8905 * i386-linux-tdep.c: Update.
8906 * i386-tdep.c: Update.
8907 * inf-loop.c: Update.
8908 * infcall.c: Update.
8912 * language.c: Update.
8913 * linespec.c: Update.
8914 * linux-fork.c: Update.
8915 * linux-nat.c: Update.
8916 * linux-tdep.c: Update.
8917 * linux-thread-db.c: Update.
8919 * mi/mi-cmd-break.c: Update.
8920 * mi/mi-cmd-stack.c: Update.
8921 * mi/mi-interp.c: Update.
8922 * mi/mi-main.c: Update.
8923 * objc-lang.c: Update.
8924 * p-valprint.c: Update.
8926 * ppc-linux-tdep.c: Update.
8927 * printcmd.c: Update.
8928 * python/py-arch.c: Update.
8929 * python/py-breakpoint.c: Update.
8930 * python/py-cmd.c: Update.
8931 * python/py-finishbreakpoint.c: Update.
8932 * python/py-frame.c: Update.
8933 * python/py-framefilter.c: Update.
8934 * python/py-gdb-readline.c: Update.
8935 * python/py-inferior.c: Update.
8936 * python/py-infthread.c: Update.
8937 * python/py-lazy-string.c: Update.
8938 * python/py-linetable.c: Update.
8939 * python/py-objfile.c: Update.
8940 * python/py-param.c: Update.
8941 * python/py-prettyprint.c: Update.
8942 * python/py-progspace.c: Update.
8943 * python/py-record-btrace.c: Update.
8944 * python/py-record.c: Update.
8945 * python/py-symbol.c: Update.
8946 * python/py-type.c: Update.
8947 * python/py-unwind.c: Update.
8948 * python/py-utils.c: Update.
8949 * python/py-value.c: Update.
8950 * python/python.c: Update.
8951 * record-btrace.c: Update.
8952 * record-full.c: Update.
8953 * remote-fileio.c: Update.
8955 * riscv-tdep.c: Update.
8956 * rs6000-aix-tdep.c: Update.
8957 * rs6000-tdep.c: Update.
8958 * rust-exp.y: Update.
8959 * rust-lang.c: Update.
8960 * s390-tdep.c: Update.
8961 * selftest-arch.c: Update.
8962 * solib-dsbt.c: Update.
8963 * solib-frv.c: Update.
8964 * solib-spu.c: Update.
8965 * solib-svr4.c: Update.
8967 * sparc64-linux-tdep.c: Update.
8969 * symfile-mem.c: Update.
8970 * symmisc.c: Update.
8974 * tracefile-tfile.c: Update.
8975 * tui/tui.c: Update.
8976 * typeprint.c: Update.
8977 * unittests/cli-utils-selftests.c: Update.
8978 * unittests/parse-connection-spec-selftests.c: Update.
8980 * valprint.c: Update.
8983 * windows-nat.c: Update.
8984 * x86-linux-nat.c: Update.
8985 * xml-support.c: Update.
8987 2019-04-08 Tom Tromey <tom@tromey.com>
8989 * xml-support.c: Use C++ exception handling.
8990 * x86-linux-nat.c: Use C++ exception handling.
8991 * windows-nat.c: Use C++ exception handling.
8992 * varobj.c: Use C++ exception handling.
8993 * value.c: Use C++ exception handling.
8994 * valprint.c: Use C++ exception handling.
8995 * valops.c: Use C++ exception handling.
8996 * unittests/parse-connection-spec-selftests.c: Use C++ exception
8998 * unittests/cli-utils-selftests.c: Use C++ exception handling.
8999 * typeprint.c: Use C++ exception handling.
9000 * tui/tui.c: Use C++ exception handling.
9001 * tracefile-tfile.c: Use C++ exception handling.
9002 * top.c: Use C++ exception handling.
9003 * thread.c: Use C++ exception handling.
9004 * target.c: Use C++ exception handling.
9005 * symmisc.c: Use C++ exception handling.
9006 * symfile-mem.c: Use C++ exception handling.
9007 * stack.c: Use C++ exception handling.
9008 * sparc64-linux-tdep.c: Use C++ exception handling.
9009 * solib.c: Use C++ exception handling.
9010 * solib-svr4.c: Use C++ exception handling.
9011 * solib-spu.c: Use C++ exception handling.
9012 * solib-frv.c: Use C++ exception handling.
9013 * solib-dsbt.c: Use C++ exception handling.
9014 * selftest-arch.c: Use C++ exception handling.
9015 * s390-tdep.c: Use C++ exception handling.
9016 * rust-lang.c: Use C++ exception handling.
9017 * rust-exp.y: Use C++ exception handling.
9018 * rs6000-tdep.c: Use C++ exception handling.
9019 * rs6000-aix-tdep.c: Use C++ exception handling.
9020 * riscv-tdep.c: Use C++ exception handling.
9021 * remote.c: Use C++ exception handling.
9022 * remote-fileio.c: Use C++ exception handling.
9023 * record-full.c: Use C++ exception handling.
9024 * record-btrace.c: Use C++ exception handling.
9025 * python/python.c: Use C++ exception handling.
9026 * python/py-value.c: Use C++ exception handling.
9027 * python/py-utils.c: Use C++ exception handling.
9028 * python/py-unwind.c: Use C++ exception handling.
9029 * python/py-type.c: Use C++ exception handling.
9030 * python/py-symbol.c: Use C++ exception handling.
9031 * python/py-record.c: Use C++ exception handling.
9032 * python/py-record-btrace.c: Use C++ exception handling.
9033 * python/py-progspace.c: Use C++ exception handling.
9034 * python/py-prettyprint.c: Use C++ exception handling.
9035 * python/py-param.c: Use C++ exception handling.
9036 * python/py-objfile.c: Use C++ exception handling.
9037 * python/py-linetable.c: Use C++ exception handling.
9038 * python/py-lazy-string.c: Use C++ exception handling.
9039 * python/py-infthread.c: Use C++ exception handling.
9040 * python/py-inferior.c: Use C++ exception handling.
9041 * python/py-gdb-readline.c: Use C++ exception handling.
9042 * python/py-framefilter.c: Use C++ exception handling.
9043 * python/py-frame.c: Use C++ exception handling.
9044 * python/py-finishbreakpoint.c: Use C++ exception handling.
9045 * python/py-cmd.c: Use C++ exception handling.
9046 * python/py-breakpoint.c: Use C++ exception handling.
9047 * python/py-arch.c: Use C++ exception handling.
9048 * printcmd.c: Use C++ exception handling.
9049 * ppc-linux-tdep.c: Use C++ exception handling.
9050 * parse.c: Use C++ exception handling.
9051 * p-valprint.c: Use C++ exception handling.
9052 * objc-lang.c: Use C++ exception handling.
9053 * mi/mi-main.c: Use C++ exception handling.
9054 * mi/mi-interp.c: Use C++ exception handling.
9055 * mi/mi-cmd-stack.c: Use C++ exception handling.
9056 * mi/mi-cmd-break.c: Use C++ exception handling.
9057 * main.c: Use C++ exception handling.
9058 * linux-thread-db.c: Use C++ exception handling.
9059 * linux-tdep.c: Use C++ exception handling.
9060 * linux-nat.c: Use C++ exception handling.
9061 * linux-fork.c: Use C++ exception handling.
9062 * linespec.c: Use C++ exception handling.
9063 * language.c: Use C++ exception handling.
9064 * jit.c: Use C++ exception handling.
9065 * infrun.c: Use C++ exception handling.
9066 * infcmd.c: Use C++ exception handling.
9067 * infcall.c: Use C++ exception handling.
9068 * inf-loop.c: Use C++ exception handling.
9069 * i386-tdep.c: Use C++ exception handling.
9070 * i386-linux-tdep.c: Use C++ exception handling.
9071 * guile/scm-value.c: Use C++ exception handling.
9072 * guile/scm-type.c: Use C++ exception handling.
9073 * guile/scm-symtab.c: Use C++ exception handling.
9074 * guile/scm-symbol.c: Use C++ exception handling.
9075 * guile/scm-pretty-print.c: Use C++ exception handling.
9076 * guile/scm-ports.c: Use C++ exception handling.
9077 * guile/scm-param.c: Use C++ exception handling.
9078 * guile/scm-math.c: Use C++ exception handling.
9079 * guile/scm-lazy-string.c: Use C++ exception handling.
9080 * guile/scm-frame.c: Use C++ exception handling.
9081 * guile/scm-disasm.c: Use C++ exception handling.
9082 * guile/scm-cmd.c: Use C++ exception handling.
9083 * guile/scm-breakpoint.c: Use C++ exception handling.
9084 * guile/scm-block.c: Use C++ exception handling.
9085 * guile/guile-internal.h: Use C++ exception handling.
9086 * gnu-v3-abi.c: Use C++ exception handling.
9087 * gdbtypes.c: Use C++ exception handling.
9088 * frame.c: Use C++ exception handling.
9089 * frame-unwind.c: Use C++ exception handling.
9090 * fbsd-tdep.c: Use C++ exception handling.
9091 * f-valprint.c: Use C++ exception handling.
9092 * exec.c: Use C++ exception handling.
9093 * event-top.c: Use C++ exception handling.
9094 * event-loop.c: Use C++ exception handling.
9095 * eval.c: Use C++ exception handling.
9096 * dwarf2read.c: Use C++ exception handling.
9097 * dwarf2loc.c: Use C++ exception handling.
9098 * dwarf2-frame.c: Use C++ exception handling.
9099 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9100 * dwarf-index-write.c: Use C++ exception handling.
9101 * dwarf-index-cache.c: Use C++ exception handling.
9102 * dtrace-probe.c: Use C++ exception handling.
9103 * disasm-selftests.c: Use C++ exception handling.
9104 * darwin-nat.c: Use C++ exception handling.
9105 * cp-valprint.c: Use C++ exception handling.
9106 * cp-support.c: Use C++ exception handling.
9107 * cp-abi.c: Use C++ exception handling.
9108 * corelow.c: Use C++ exception handling.
9109 * completer.c: Use C++ exception handling.
9110 * compile/compile-object-run.c: Use C++ exception handling.
9111 * compile/compile-object-load.c: Use C++ exception handling.
9112 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9113 * compile/compile-c-symbols.c: Use C++ exception handling.
9114 * common/selftest.c: Use C++ exception handling.
9115 * common/new-op.c: Use C++ exception handling.
9116 * cli/cli-script.c: Use C++ exception handling.
9117 * cli/cli-interp.c: Use C++ exception handling.
9118 * cli/cli-cmds.c: Use C++ exception handling.
9119 * c-varobj.c: Use C++ exception handling.
9120 * btrace.c: Use C++ exception handling.
9121 * breakpoint.c: Use C++ exception handling.
9122 * break-catch-throw.c: Use C++ exception handling.
9123 * arch-utils.c: Use C++ exception handling.
9124 * amd64-tdep.c: Use C++ exception handling.
9125 * ada-valprint.c: Use C++ exception handling.
9126 * ada-typeprint.c: Use C++ exception handling.
9127 * ada-lang.c: Use C++ exception handling.
9128 * aarch64-tdep.c: Use C++ exception handling.
9130 2019-04-08 Tom Tromey <tom@tromey.com>
9132 * xml-support.c (gdb_xml_parser::parse): Update.
9133 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9134 * value.c (show_convenience): Update.
9135 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9136 (test_parse_flags_qcs): Update.
9137 * thread.c (thr_try_catch_cmd): Update.
9138 * target.c (target_translate_tls_address): Update.
9139 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9140 (info_frame_command_core, frame_apply_command_count): Update.
9141 * rust-exp.y (rust_lex_exception_test): Update.
9142 * riscv-tdep.c (riscv_print_one_register_info): Update.
9143 * remote.c (remote_target::enable_btrace): Update.
9144 * record-btrace.c (record_btrace_enable_warn): Update.
9145 * python/py-utils.c (gdbpy_convert_exception): Update.
9146 * printcmd.c (do_one_display, print_variable_and_value): Update.
9147 * mi/mi-main.c (mi_print_exception): Update.
9148 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9149 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9150 * linux-nat.c (linux_nat_target::attach): Update.
9151 * linux-fork.c (class scoped_switch_fork_info): Update.
9152 * infrun.c (displaced_step_prepare): Update.
9153 * infcall.c (call_function_by_hand_dummy): Update.
9154 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9155 * gnu-v3-abi.c (print_one_vtable): Update.
9156 * frame.c (get_prev_frame_always): Update.
9157 * f-valprint.c (info_common_command_for_block): Update.
9158 * exec.c (try_open_exec_file): Update.
9159 * exceptions.c (print_exception, exception_print)
9160 (exception_fprintf, exception_print_same): Update.
9161 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9162 * dwarf-index-cache.c (index_cache::store)
9163 (index_cache::lookup_gdb_index): Update.
9164 * darwin-nat.c (maybe_cache_shell): Update.
9165 * cp-valprint.c (cp_print_value_fields): Update.
9166 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9167 (gcc_cplus_symbol_address): Update.
9168 * compile/compile-c-symbols.c (gcc_convert_symbol)
9169 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9170 * common/selftest.c: Update.
9171 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9173 (exception_try_scope_entry, exception_try_scope_exit): Don't
9175 (struct exception_try_scope): Remove.
9176 (TRY): Don't use exception_try_scope.
9177 (struct gdb_exception): Add constructor, operator=.
9179 (struct gdb_exception_RETURN_MASK_ALL)
9180 (struct gdb_exception_RETURN_MASK_ERROR)
9181 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9182 (struct gdb_quit_bad_alloc): Update.
9183 * common/common-exceptions.c (exception_none): Change
9185 (struct catcher) <state, exception>: Initialize inline.
9186 <prev>: Remove member.
9187 (current_catcher): Remove.
9188 (catchers): New global.
9189 (exceptions_state_mc_init): Simplify.
9190 (catcher_pop): Remove.
9191 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9192 (try_scope_depth, exception_try_scope_entry)
9193 (exception_try_scope_exit): Remove.
9194 (throw_exception_sjlj): Update.
9195 (exception_messages, exception_messages_size): Remove.
9196 (throw_it): Simplify.
9197 (gdb_exception_sliced_copy): Remove.
9198 (throw_exception_cxx): Update.
9199 * cli/cli-script.c (script_from_file): Update.
9200 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9202 * ada-valprint.c (ada_val_print): Update.
9203 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9204 (create_excep_cond_exprs): Update.
9206 2019-04-08 Tom Tromey <tom@tromey.com>
9208 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9209 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9210 (TRY, CATCH, END_CATCH): Remove some definitions.
9211 * common/common-exceptions.c: Don't use GDB_XCPT.
9212 (catcher_list_size): Remove.
9213 (throw_exception, throw_it): Simplify.
9215 2019-04-05 Tom Tromey <tom@tromey.com>
9217 Revert the header-sorting patch.
9218 * ft32-tdep.c: Revert.
9219 * frv-tdep.c: Revert.
9220 * frv-linux-tdep.c: Revert.
9222 * frame-unwind.c: Revert.
9223 * frame-base.c: Revert.
9224 * fork-child.c: Revert.
9225 * findvar.c: Revert.
9226 * findcmd.c: Revert.
9227 * filesystem.c: Revert.
9228 * filename-seen-cache.h: Revert.
9229 * filename-seen-cache.c: Revert.
9230 * fbsd-tdep.c: Revert.
9231 * fbsd-nat.h: Revert.
9232 * fbsd-nat.c: Revert.
9233 * f-valprint.c: Revert.
9234 * f-typeprint.c: Revert.
9236 * extension.h: Revert.
9237 * extension.c: Revert.
9238 * extension-priv.h: Revert.
9239 * expprint.c: Revert.
9242 * exceptions.c: Revert.
9243 * event-top.c: Revert.
9244 * event-loop.c: Revert.
9246 * elfread.c: Revert.
9247 * dwarf2read.h: Revert.
9248 * dwarf2read.c: Revert.
9249 * dwarf2loc.c: Revert.
9250 * dwarf2expr.h: Revert.
9251 * dwarf2expr.c: Revert.
9252 * dwarf2-frame.c: Revert.
9253 * dwarf2-frame-tailcall.c: Revert.
9254 * dwarf-index-write.h: Revert.
9255 * dwarf-index-write.c: Revert.
9256 * dwarf-index-common.c: Revert.
9257 * dwarf-index-cache.h: Revert.
9258 * dwarf-index-cache.c: Revert.
9259 * dummy-frame.c: Revert.
9260 * dtrace-probe.c: Revert.
9263 * disasm-selftests.c: Revert.
9264 * dictionary.c: Revert.
9265 * dicos-tdep.c: Revert.
9266 * demangle.c: Revert.
9269 * darwin-nat.h: Revert.
9270 * darwin-nat.c: Revert.
9271 * darwin-nat-info.c: Revert.
9272 * d-valprint.c: Revert.
9273 * d-namespace.c: Revert.
9276 * csky-tdep.c: Revert.
9277 * csky-linux-tdep.c: Revert.
9278 * cris-tdep.c: Revert.
9279 * cris-linux-tdep.c: Revert.
9280 * cp-valprint.c: Revert.
9281 * cp-support.c: Revert.
9282 * cp-namespace.c: Revert.
9284 * corelow.c: Revert.
9285 * corefile.c: Revert.
9286 * continuations.c: Revert.
9287 * completer.h: Revert.
9288 * completer.c: Revert.
9289 * complaints.c: Revert.
9290 * coffread.c: Revert.
9291 * coff-pe-read.c: Revert.
9292 * cli-out.h: Revert.
9293 * cli-out.c: Revert.
9294 * charset.c: Revert.
9295 * c-varobj.c: Revert.
9296 * c-valprint.c: Revert.
9297 * c-typeprint.c: Revert.
9299 * buildsym.c: Revert.
9300 * buildsym-legacy.c: Revert.
9301 * build-id.h: Revert.
9302 * build-id.c: Revert.
9304 * bsd-uthread.c: Revert.
9305 * breakpoint.h: Revert.
9306 * breakpoint.c: Revert.
9307 * break-catch-throw.c: Revert.
9308 * break-catch-syscall.c: Revert.
9309 * break-catch-sig.c: Revert.
9310 * blockframe.c: Revert.
9312 * bfin-tdep.c: Revert.
9313 * bfin-linux-tdep.c: Revert.
9314 * bfd-target.c: Revert.
9316 * ax-general.c: Revert.
9319 * avr-tdep.c: Revert.
9321 * auto-load.c: Revert.
9322 * arm-wince-tdep.c: Revert.
9323 * arm-tdep.c: Revert.
9324 * arm-symbian-tdep.c: Revert.
9325 * arm-pikeos-tdep.c: Revert.
9326 * arm-obsd-tdep.c: Revert.
9327 * arm-nbsd-tdep.c: Revert.
9328 * arm-nbsd-nat.c: Revert.
9329 * arm-linux-tdep.c: Revert.
9330 * arm-linux-nat.c: Revert.
9331 * arm-fbsd-tdep.c: Revert.
9332 * arm-fbsd-nat.c: Revert.
9333 * arm-bsd-tdep.c: Revert.
9334 * arch-utils.c: Revert.
9335 * arc-tdep.c: Revert.
9336 * arc-newlib-tdep.c: Revert.
9337 * annotate.h: Revert.
9338 * annotate.c: Revert.
9339 * amd64-windows-tdep.c: Revert.
9340 * amd64-windows-nat.c: Revert.
9341 * amd64-tdep.c: Revert.
9342 * amd64-sol2-tdep.c: Revert.
9343 * amd64-obsd-tdep.c: Revert.
9344 * amd64-obsd-nat.c: Revert.
9345 * amd64-nbsd-tdep.c: Revert.
9346 * amd64-nbsd-nat.c: Revert.
9347 * amd64-nat.c: Revert.
9348 * amd64-linux-tdep.c: Revert.
9349 * amd64-linux-nat.c: Revert.
9350 * amd64-fbsd-tdep.c: Revert.
9351 * amd64-fbsd-nat.c: Revert.
9352 * amd64-dicos-tdep.c: Revert.
9353 * amd64-darwin-tdep.c: Revert.
9354 * amd64-bsd-nat.c: Revert.
9355 * alpha-tdep.c: Revert.
9356 * alpha-obsd-tdep.c: Revert.
9357 * alpha-nbsd-tdep.c: Revert.
9358 * alpha-mdebug-tdep.c: Revert.
9359 * alpha-linux-tdep.c: Revert.
9360 * alpha-linux-nat.c: Revert.
9361 * alpha-bsd-tdep.c: Revert.
9362 * alpha-bsd-nat.c: Revert.
9363 * aix-thread.c: Revert.
9365 * addrmap.c: Revert.
9366 * ada-varobj.c: Revert.
9367 * ada-valprint.c: Revert.
9368 * ada-typeprint.c: Revert.
9369 * ada-tasks.c: Revert.
9370 * ada-lang.c: Revert.
9371 * aarch64-tdep.c: Revert.
9372 * aarch64-ravenscar-thread.c: Revert.
9373 * aarch64-newlib-tdep.c: Revert.
9374 * aarch64-linux-tdep.c: Revert.
9375 * aarch64-linux-nat.c: Revert.
9376 * aarch64-fbsd-tdep.c: Revert.
9377 * aarch64-fbsd-nat.c: Revert.
9378 * aarch32-linux-nat.c: Revert.
9380 2019-04-05 Tom Tromey <tom@tromey.com>
9382 * ft32-tdep.c: Sort headers.
9383 * frv-tdep.c: Sort headers.
9384 * frv-linux-tdep.c: Sort headers.
9385 * frame.c: Sort headers.
9386 * frame-unwind.c: Sort headers.
9387 * frame-base.c: Sort headers.
9388 * fork-child.c: Sort headers.
9389 * findvar.c: Sort headers.
9390 * findcmd.c: Sort headers.
9391 * filesystem.c: Sort headers.
9392 * filename-seen-cache.h: Sort headers.
9393 * filename-seen-cache.c: Sort headers.
9394 * fbsd-tdep.c: Sort headers.
9395 * fbsd-nat.h: Sort headers.
9396 * fbsd-nat.c: Sort headers.
9397 * f-valprint.c: Sort headers.
9398 * f-typeprint.c: Sort headers.
9399 * f-lang.c: Sort headers.
9400 * extension.h: Sort headers.
9401 * extension.c: Sort headers.
9402 * extension-priv.h: Sort headers.
9403 * expprint.c: Sort headers.
9404 * exec.h: Sort headers.
9405 * exec.c: Sort headers.
9406 * exceptions.c: Sort headers.
9407 * event-top.c: Sort headers.
9408 * event-loop.c: Sort headers.
9409 * eval.c: Sort headers.
9410 * elfread.c: Sort headers.
9411 * dwarf2read.h: Sort headers.
9412 * dwarf2read.c: Sort headers.
9413 * dwarf2loc.c: Sort headers.
9414 * dwarf2expr.h: Sort headers.
9415 * dwarf2expr.c: Sort headers.
9416 * dwarf2-frame.c: Sort headers.
9417 * dwarf2-frame-tailcall.c: Sort headers.
9418 * dwarf-index-write.h: Sort headers.
9419 * dwarf-index-write.c: Sort headers.
9420 * dwarf-index-common.c: Sort headers.
9421 * dwarf-index-cache.h: Sort headers.
9422 * dwarf-index-cache.c: Sort headers.
9423 * dummy-frame.c: Sort headers.
9424 * dtrace-probe.c: Sort headers.
9425 * disasm.h: Sort headers.
9426 * disasm.c: Sort headers.
9427 * disasm-selftests.c: Sort headers.
9428 * dictionary.c: Sort headers.
9429 * dicos-tdep.c: Sort headers.
9430 * demangle.c: Sort headers.
9431 * dcache.h: Sort headers.
9432 * dcache.c: Sort headers.
9433 * darwin-nat.h: Sort headers.
9434 * darwin-nat.c: Sort headers.
9435 * darwin-nat-info.c: Sort headers.
9436 * d-valprint.c: Sort headers.
9437 * d-namespace.c: Sort headers.
9438 * d-lang.c: Sort headers.
9439 * ctf.c: Sort headers.
9440 * csky-tdep.c: Sort headers.
9441 * csky-linux-tdep.c: Sort headers.
9442 * cris-tdep.c: Sort headers.
9443 * cris-linux-tdep.c: Sort headers.
9444 * cp-valprint.c: Sort headers.
9445 * cp-support.c: Sort headers.
9446 * cp-namespace.c: Sort headers.
9447 * cp-abi.c: Sort headers.
9448 * corelow.c: Sort headers.
9449 * corefile.c: Sort headers.
9450 * continuations.c: Sort headers.
9451 * completer.h: Sort headers.
9452 * completer.c: Sort headers.
9453 * complaints.c: Sort headers.
9454 * coffread.c: Sort headers.
9455 * coff-pe-read.c: Sort headers.
9456 * cli-out.h: Sort headers.
9457 * cli-out.c: Sort headers.
9458 * charset.c: Sort headers.
9459 * c-varobj.c: Sort headers.
9460 * c-valprint.c: Sort headers.
9461 * c-typeprint.c: Sort headers.
9462 * c-lang.c: Sort headers.
9463 * buildsym.c: Sort headers.
9464 * buildsym-legacy.c: Sort headers.
9465 * build-id.h: Sort headers.
9466 * build-id.c: Sort headers.
9467 * btrace.c: Sort headers.
9468 * bsd-uthread.c: Sort headers.
9469 * breakpoint.h: Sort headers.
9470 * breakpoint.c: Sort headers.
9471 * break-catch-throw.c: Sort headers.
9472 * break-catch-syscall.c: Sort headers.
9473 * break-catch-sig.c: Sort headers.
9474 * blockframe.c: Sort headers.
9475 * block.c: Sort headers.
9476 * bfin-tdep.c: Sort headers.
9477 * bfin-linux-tdep.c: Sort headers.
9478 * bfd-target.c: Sort headers.
9479 * bcache.c: Sort headers.
9480 * ax-general.c: Sort headers.
9481 * ax-gdb.h: Sort headers.
9482 * ax-gdb.c: Sort headers.
9483 * avr-tdep.c: Sort headers.
9484 * auxv.c: Sort headers.
9485 * auto-load.c: Sort headers.
9486 * arm-wince-tdep.c: Sort headers.
9487 * arm-tdep.c: Sort headers.
9488 * arm-symbian-tdep.c: Sort headers.
9489 * arm-pikeos-tdep.c: Sort headers.
9490 * arm-obsd-tdep.c: Sort headers.
9491 * arm-nbsd-tdep.c: Sort headers.
9492 * arm-nbsd-nat.c: Sort headers.
9493 * arm-linux-tdep.c: Sort headers.
9494 * arm-linux-nat.c: Sort headers.
9495 * arm-fbsd-tdep.c: Sort headers.
9496 * arm-fbsd-nat.c: Sort headers.
9497 * arm-bsd-tdep.c: Sort headers.
9498 * arch-utils.c: Sort headers.
9499 * arc-tdep.c: Sort headers.
9500 * arc-newlib-tdep.c: Sort headers.
9501 * annotate.h: Sort headers.
9502 * annotate.c: Sort headers.
9503 * amd64-windows-tdep.c: Sort headers.
9504 * amd64-windows-nat.c: Sort headers.
9505 * amd64-tdep.c: Sort headers.
9506 * amd64-sol2-tdep.c: Sort headers.
9507 * amd64-obsd-tdep.c: Sort headers.
9508 * amd64-obsd-nat.c: Sort headers.
9509 * amd64-nbsd-tdep.c: Sort headers.
9510 * amd64-nbsd-nat.c: Sort headers.
9511 * amd64-nat.c: Sort headers.
9512 * amd64-linux-tdep.c: Sort headers.
9513 * amd64-linux-nat.c: Sort headers.
9514 * amd64-fbsd-tdep.c: Sort headers.
9515 * amd64-fbsd-nat.c: Sort headers.
9516 * amd64-dicos-tdep.c: Sort headers.
9517 * amd64-darwin-tdep.c: Sort headers.
9518 * amd64-bsd-nat.c: Sort headers.
9519 * alpha-tdep.c: Sort headers.
9520 * alpha-obsd-tdep.c: Sort headers.
9521 * alpha-nbsd-tdep.c: Sort headers.
9522 * alpha-mdebug-tdep.c: Sort headers.
9523 * alpha-linux-tdep.c: Sort headers.
9524 * alpha-linux-nat.c: Sort headers.
9525 * alpha-bsd-tdep.c: Sort headers.
9526 * alpha-bsd-nat.c: Sort headers.
9527 * aix-thread.c: Sort headers.
9528 * agent.c: Sort headers.
9529 * addrmap.c: Sort headers.
9530 * ada-varobj.c: Sort headers.
9531 * ada-valprint.c: Sort headers.
9532 * ada-typeprint.c: Sort headers.
9533 * ada-tasks.c: Sort headers.
9534 * ada-lang.c: Sort headers.
9535 * aarch64-tdep.c: Sort headers.
9536 * aarch64-ravenscar-thread.c: Sort headers.
9537 * aarch64-newlib-tdep.c: Sort headers.
9538 * aarch64-linux-tdep.c: Sort headers.
9539 * aarch64-linux-nat.c: Sort headers.
9540 * aarch64-fbsd-tdep.c: Sort headers.
9541 * aarch64-fbsd-nat.c: Sort headers.
9542 * aarch32-linux-nat.c: Sort headers.
9544 2019-04-04 Tom Tromey <tom@tromey.com>
9546 * varobj.c (varobj_create): Update.
9547 * rust-exp.y (struct rust_parser) <update_innermost_block,
9548 lookup_symbol>: New methods.
9549 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
9551 (rust_parser::rust_lookup_type)
9552 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9553 * printcmd.c (display_command, do_one_display): Update.
9554 * parser-defs.h (struct parser_state) <parser_state>: Add
9555 "tracker" parameter.
9556 (block_tracker): New member.
9557 (class innermost_block_tracker) <innermost_block_tracker>: Add
9559 <reset>: Remove method.
9560 (innermost_block): Don't declare.
9561 (null_post_parser): Update.
9562 * parse.c (innermost_block): Remove global.
9563 (write_dollar_variable): Update.
9564 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
9565 Remove "tracker_types" parameter.
9566 (parse_expression): Add "tracker" parameter.
9567 (parse_expression_for_completion): Update.
9568 (null_post_parser): Add "tracker" parameter.
9569 * p-exp.y: Update rules.
9570 * m2-exp.y: Update rules.
9571 * language.h (struct language_defn) <la_post_parser>: Add
9572 "tracker" parameter.
9573 * go-exp.y: Update rules.
9574 * f-exp.y: Update rules.
9575 * expression.h (parse_expression, parse_exp_1): Add "tracker"
9577 * d-exp.y: Update rules.
9578 * c-exp.y: Update rules.
9579 * breakpoint.c (set_breakpoint_condition): Create an
9580 innermost_block_tracker.
9581 (watch_command_1): Likewise.
9582 * ada-lang.c (resolve): Add "tracker" parameter.
9583 (resolve_subexp): Likewise.
9584 * ada-exp.y (write_var_from_sym): Update.
9586 2019-04-04 Tom Tromey <tom@tromey.com>
9588 * type-stack.h: New file.
9589 * type-stack.c: New file.
9590 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
9592 (insert_into_type_stack, insert_type, push_type, push_type_int)
9593 (insert_type_address_space, pop_type, pop_type_int)
9594 (pop_typelist, pop_type_stack, append_type_stack)
9595 (push_type_stack, get_type_stack, push_typelist)
9596 (follow_type_instance_flags, follow_types): Don't declare.
9597 * parse.c (type_stack): Remove global.
9598 (parse_exp_in_context): Update.
9599 (insert_into_type_stack, insert_type, push_type, push_type_int)
9600 (insert_type_address_space, pop_type, pop_type_int)
9601 (pop_typelist, pop_type_stack, append_type_stack)
9602 (push_type_stack, get_type_stack, push_typelist)
9603 (follow_type_instance_flags, follow_types): Remove (moved to
9605 * f-exp.y (type_stack): New global.
9607 (push_kind_type, f_parse): Update.
9608 * d-exp.y (type_stack): New global.
9611 * c-exp.y (struct c_parse_state) <type_stack>: New member.
9613 * Makefile.in (COMMON_SFILES): Add type-stack.c.
9614 (HFILES_NO_SRCDIR): Add type-stack.h.
9616 2019-04-04 Tom Tromey <tom@tromey.com>
9618 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
9619 (rust_parser::convert_ast_to_expression, rust_parse)
9620 (rust_lex_test_completion, rust_lex_tests): Update.
9621 * parser-defs.h (struct expr_completion_state): New.
9622 (struct parser_state) <parser_state>: Add completion parameter.
9623 <mark_struct_expression, mark_completion_tag>: New methods.
9624 <parse_completion, m_completion_state>: New members.
9625 (prefixify_expression, null_post_parser): Update.
9626 (mark_struct_expression, mark_completion_tag): Don't declare.
9627 * parse.c (parse_completion, expout_last_struct)
9628 (expout_tag_completion_type, expout_completion_name): Remove
9630 (parser_state::mark_struct_expression)
9631 (parser_state::mark_completion_tag): Now methods.
9632 (prefixify_expression): Add last_struct parameter.
9633 (prefixify_subexp): Likewise.
9634 (parse_exp_1): Update.
9635 (parse_exp_in_context): Add cstate parameter. Update.
9636 (parse_expression_for_completion): Create an
9637 expr_completion_state.
9638 (null_post_parser): Add "completion" parameter.
9639 * p-exp.y: Update rules.
9641 * language.h (struct language_defn) <la_post_parser>: Add
9642 "completing" parameter.
9643 * go-exp.y: Update rules.
9644 (lex_one_token): Update.
9645 * expression.h (parse_completion): Don't declare.
9646 * d-exp.y: Update rules.
9647 (lex_one_token): Update rules.
9648 * c-exp.y: Update rules.
9649 (lex_one_token): Update.
9650 * ada-lang.c (resolve): Add "parse_completion" parameter.
9651 (resolve_subexp): Likewise.
9652 (ada_resolve_function): Likewise.
9654 2019-04-04 Tom Tromey <tom@tromey.com>
9656 * parser-defs.h (struct parser_state) <start_arglist,
9657 end_arglist>: New methods.
9658 <arglist_len, m_funcall_chain>: New members.
9659 (arglist_len, start_arglist, end_arglist): Don't declare.
9660 * parse.c (arglist_len, funcall_chain): Remove global.
9661 (start_arglist, end_arglist): Remove functions.
9662 (parse_exp_in_context): Update.
9663 * p-exp.y: Update rules.
9664 * m2-exp.y: Update rules.
9665 * go-exp.y: Update rules.
9666 * f-exp.y: Update rules.
9667 * d-exp.y: Update rules.
9668 * c-exp.y: Update rules.
9670 2019-04-04 Tom Tromey <tom@tromey.com>
9672 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
9673 lex_operator, push_back>: New methods.
9675 (rust_parser::lex_hex, lex_escape): Rename and update.
9676 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
9677 (rust_parser::lex_operator): Rename and update.
9678 (rust_parser::lex_number, rustyylex, rustyyerror)
9679 (rust_lex_test_init, rust_lex_test_sequence)
9680 (rust_lex_test_push_back, rust_lex_tests): Update.
9681 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
9683 <lexptr, prev_lexptr>: New members.
9684 (lexptr, prev_lexptr): Don't declare.
9685 * parse.c (lexptr, prev_lexptr): Remove globals.
9686 (parse_exp_in_context): Update.
9687 * p-exp.y (yylex, yyerror): Update.
9688 * m2-exp.y (parse_number, yylex, yyerror): Update.
9689 * go-exp.y (lex_one_token, yyerror): Update.
9690 * f-exp.y (match_string_literal, yylex, yyerror): Update.
9691 * d-exp.y (lex_one_token, yyerror): Update.
9692 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
9693 (lex_one_token, yyerror): Update.
9694 * ada-lex.l (YY_INPUT): Update.
9695 (rewind_to_char): Update.
9696 * ada-exp.y (yyerror): Update.
9698 2019-04-04 Tom Tromey <tom@tromey.com>
9700 * rust-exp.y (rustyylex, rust_lex_tests): Update.
9701 * parser-defs.h (struct parser_state) <parser_state>: Add new
9703 <comma_terminates>: New member.
9704 (comma_terminates): Don't declare global.
9705 * parse.c (comma_terminates): Remove global.
9706 (parse_exp_in_context): Update.
9707 * p-exp.y (yylex): Update.
9708 * m2-exp.y (yylex): Update.
9709 * go-exp.y (lex_one_token): Update.
9710 * f-exp.y (yylex): Update.
9711 * d-exp.y (lex_one_token): Update.
9712 * c-exp.y (lex_one_token): Update.
9713 * ada-lex.l: Update.
9715 2019-04-04 Tom Tromey <tom@tromey.com>
9717 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
9718 (rustyylex, rust_lex_test_init, rust_lex_test_one)
9719 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
9720 * parser-defs.h (paren_depth): Don't declare.
9721 * parse.c (paren_depth): Remove global.
9722 (parse_exp_in_context): Update.
9723 * p-exp.y (paren_depth): New global.
9724 (pascal_parse): Initialize it.
9725 * m2-exp.y (paren_depth): New global.
9726 (m2_parse): Initialize it.
9727 * go-exp.y (paren_depth): New global.
9728 (go_parse): Initialize it.
9729 * f-exp.y (paren_depth): New global.
9730 (f_parse): Initialize it.
9731 * d-exp.y (paren_depth): New global.
9732 (d_parse): Initialize it.
9733 * c-exp.y (paren_depth): New global.
9734 (c_parse): Initialize it.
9735 * ada-lex.l (paren_depth): New global.
9736 (lexer_init): Initialize it.
9738 2019-04-04 Tom Tromey <tom@tromey.com>
9740 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
9741 (rust_parser::convert_ast_to_type)
9742 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
9743 * parser-defs.h (struct parser_state) <parser_state>: Add
9744 parameters. Initialize new members.
9745 <expression_context_block, expression_context_pc>: New members.
9746 * parse.c (expression_context_block, expression_context_pc):
9748 (parse_exp_in_context): Update.
9749 * p-exp.y: Update all rules.
9751 * m2-exp.y: Update all rules.
9753 * go-exp.y (yylex): Update.
9754 * f-exp.y (yylex): Update.
9755 * d-exp.y: Update all rules.
9757 * c-exp.y: Update all rules.
9758 (lex_one_token, classify_name, yylex, c_parse): Update.
9759 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
9761 2019-04-04 Tom Tromey <tom@tromey.com>
9763 * gdbarch.h, gdbarch.c: Rebuild.
9764 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
9766 (struct stap_parse_info): Replace "parser_state" with
9768 * parser-defs.h (struct expr_builder): Rename from "parser_state".
9769 (parser_state): New class.
9770 * parse.c (expr_builder): Rename.
9771 (expr_builder::release): Rename.
9772 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
9773 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
9774 (write_exp_elt_longcst, write_exp_elt_floatcst)
9775 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
9776 (write_exp_string_vector, write_exp_bitstring)
9777 (write_exp_msymbol, mark_struct_expression)
9778 (write_dollar_variable)
9779 (insert_type_address_space, increase_expout_size): Replace
9780 "parser_state" with "expr_builder".
9781 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
9782 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
9783 "parser_state" with "expr_builder".
9785 2019-04-04 Tom Tromey <tom@tromey.com>
9787 * rust-exp.y: Replace "parse_language" with method call.
9789 (yylex): Replace "parse_language" with method call.
9791 (yylex): Replace "parse_language" with method call.
9792 * go-exp.y (classify_name): Replace "parse_language" with method
9794 * f-exp.y (yylex): Replace "parse_language" with method call.
9795 * d-exp.y (lex_one_token): Replace "parse_language" with method
9798 (lex_one_token, classify_name, yylex): Replace "parse_language"
9800 * ada-exp.y (find_primitive_type, type_char)
9801 (type_system_address): Replace "parse_language" with method call.
9803 2019-04-04 Tom Tromey <tom@tromey.com>
9805 * rust-exp.y: Replace "parse_gdbarch" with method call.
9806 * parse.c (write_dollar_variable, insert_type_address_space):
9807 Replace "parse_gdbarch" with method call.
9808 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
9810 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
9812 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
9813 "parse_gdbarch" with method call.
9814 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
9816 * f-exp.y (parse_type, parse_f_type, yylex): Replace
9817 "parse_gdbarch" with method call.
9818 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
9819 "parse_gdbarch" with method call.
9820 * c-exp.y (parse_type, parse_number, classify_name): Replace
9821 "parse_gdbarch" with method call.
9822 * ada-lex.l: Replace "parse_gdbarch" with method call.
9823 * ada-exp.y (parse_type, find_primitive_type, type_char)
9824 (type_system_address): Replace "parse_gdbarch" with method call.
9826 2019-04-04 Tom Tromey <tom@tromey.com>
9828 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
9829 * stap-probe.c (stap_parse_argument): Update.
9830 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
9831 initial_size parameter.
9832 * rust-exp.y (rust_lex_tests): Update.
9833 * parse.c (parser_state): Update.
9834 (parse_exp_in_context): Update.
9835 * parser-defs.h (struct parser_state) <parser_state>: Remove
9836 "initial_size" parameter.
9838 2019-04-04 Tom Tromey <tom@tromey.com>
9840 * parser-defs.h (increase_expout_size): Don't declare.
9841 * parse.c (increase_expout_size): Now static.
9843 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
9845 * gnu-nat.c (gnu_nat_target::wait): Fix
9846 target_waitstatus_to_string call.
9848 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9850 * eval.c (evaluate_subexp_standard): Handle internal functions
9851 during Fortran function call handling.
9853 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
9855 * NEWS: Mention new internal functions.
9856 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
9857 (read_base_type): Use dwarf2_init_complex_target_type.
9858 * value.c (creal_internal_fn): New function.
9859 (cimag_internal_fn): New function.
9860 (_initialize_values): Register new internal functions.
9862 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9864 * infrun.c (stop_all_threads): If debug_infrun, always
9865 trace the wait status after wait_one, using
9866 target_waitstatus_to_string and target_pid_to_str.
9867 (handle_inferior_event): Replace various trace of
9868 wait status kind by a single trace.
9869 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
9870 wait status kind image by target_waitstatus_to_string.
9871 * target/waitstatus.c (target_waitstatus_to_string): Fix
9874 2019-04-01 Tom Tromey <tromey@adacore.com>
9877 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
9879 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
9880 Pedro Alves <palves@redhat.com>
9882 * top.c (quit_force): Call 'finalize_values'.
9883 * value.c (finalize_values): New function.
9884 * value.h (finalize_values): Declare.
9886 2019-03-30 Eli Zaretskii <eliz@gnu.org>
9888 * NEWS: Announce $_gdb_major and $_gdb_minor.
9890 * top.c (init_gdb_version_vars): New function.
9891 (gdb_init): Call init_gdb_version_vars.
9893 2019-03-29 Tom Tromey <tromey@adacore.com>
9895 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
9896 help text. Remove dead code.
9898 2019-03-29 Keith Seitz <keiths@redhat.com>
9900 From Siddhesh Poyarekar:
9901 * f-lang.h (f77_get_upperbound): Return LONGEST.
9902 (f77_get_lowerbound): Likewise.
9903 * f-typeprint.c (f_type_print_varspec_suffix): Expand
9904 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
9906 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
9907 plongest to format print it.
9908 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
9909 (f77_get_upperbound): Likewise.
9910 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
9911 LOWER_BOUND to LONGEST.
9912 (f77_create_arrayprint_offset_tbl): Likewise.
9914 2019-03-29 Keith Seitz <keiths@redhat.com>
9916 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
9917 %s/pulongest for TYPE_LENGTH instead of %d in format
9919 * ada-typerint.c (ada_print_type): Likewise.
9920 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
9921 * compile/compile-c-support.c (generate_register_struct): Likewise.
9922 * gdbtypes.c (recursive_dump_type): Likewise.
9923 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
9924 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
9925 instead of %d in format strings.
9926 * riscv-tdep.c (riscv_type_alignment): Cast second argument
9927 to std::min to ULONGEST.
9928 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
9929 instead of %d in format strings.
9930 * tracepoint.c (info_scope_command): Likewise.
9931 * typeprint.c (print_offset_data::update)
9932 (print_offset_data::finish): Likewise.
9933 * xtensa-tdep.c (xtensa_store_return_value)
9934 (xtensa_push_dummy_call): Likewise.
9936 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
9938 * windows-nat.c (display_selector): Fixed format specifications
9941 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9943 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
9945 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
9947 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
9948 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
9949 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
9950 (nios2_linux_init_abi): Install it.
9952 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9954 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
9956 2019-03-28 Alan Hayward <alan.hayward@arm.com>
9958 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
9960 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9961 Tom Tromey <tromey@adacore.com>
9963 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
9965 2019-03-26 Joel Brobecker <brobecker@adacore.com>
9967 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
9968 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
9969 method to compute the bounds of range types. Also print "[evaluated]"
9970 if the bounds' values come from a dynamic evaluation.
9972 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
9974 * cp-valprint.c (cp_print_value_fields): Don't print trailing
9975 whitespace when pretty printing is on.
9977 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9979 * ppc-linux-nat.c: Add include.
9981 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9983 * NEWS: Mention AArch64 Pointer Authentication.
9985 2019-03-26 Alan Hayward <alan.hayward@arm.com>
9987 * arm-linux-nat.c: Add include.
9989 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
9991 * source-cache.c (source_cache::get_source_lines): Re-read
9992 fullname after calling open_source_file.
9994 2019-03-25 John Baldwin <jhb@FreeBSD.org>
9996 * NEWS: Mention TLS support for FreeBSD.
9998 2019-03-25 Tom Tromey <tromey@adacore.com>
10000 * minsyms.c (BUNCH_SIZE): Update comment.
10001 (~minimal_symbol_reader): Remove old comment.
10002 (compact_minimal_symbols): Update comment.
10003 (minimal_symbol_reader::install): Remove old comment. Update
10006 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10008 * s390-linux-nat.c: Add include.
10010 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10012 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10013 Call linux_get_hwcap.
10014 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10016 (aarch64_linux_get_hwcap): Remove function.
10017 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10019 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10021 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10022 * linux-tdep.c (linux_get_hwcap): Add function.
10023 (linux_get_hwcap2): Likewise.
10024 * linux-tdep.h (linux_get_hwcap): Add declaration.
10025 (linux_get_hwcap2): Likewise.
10026 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10027 (ppc_linux_get_hwcap2): Likewise.
10028 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10030 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10031 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10032 (ppc_linux_nat_target::read_description): Likewise.
10033 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10034 * s390-linux-nat.c: Likewise.
10035 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10037 2019-03-24 Tom Tromey <tom@tromey.com>
10039 * ada-lang.c (standard_lookup): Simplify initialization.
10040 (ada_lookup_symbol_nonlocal): Simplify return.
10041 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10042 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10043 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10044 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10046 * solib.c (solib_global_lookup): Simplify.
10047 * symtab.c (null_block_symbol): Remove.
10048 (symbol_cache_lookup): Simplify returns.
10049 (lookup_language_this): Simplify returns.
10050 (lookup_symbol_aux): Simplify return.
10051 (lookup_local_symbol): Simplify returns.
10052 (lookup_global_symbol_from_objfile): Simplify return.
10053 (lookup_symbol_in_objfile_symtabs)
10054 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10055 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10056 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10057 * cp-namespace.c (cp_lookup_bare_symbol)
10058 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10059 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10060 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10061 (cp_lookup_symbol_via_imports): Simplify initialization.
10062 (find_symbol_in_baseclass): Likewise.
10063 * symtab.h (null_block_symbol): Remove.
10064 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10065 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10066 (d_lookup_symbol_module): Likewise.
10067 (find_symbol_in_baseclass): Simplify initialization.
10069 2019-03-24 Tom Tromey <tom@tromey.com>
10071 * expression.h: Don't include symtab.h.
10072 (struct block): Forward declare.
10074 2019-03-24 Tom Tromey <tom@tromey.com>
10076 * c-exp.y (typebase): Remove casts.
10077 * gdbtypes.c (lookup_unsigned_typename, )
10078 (lookup_signed_typename): Remove cast.
10079 * eval.c (parse_to_comma_and_eval): Remove cast.
10080 * parse.c (write_dollar_variable): Remove cast.
10081 * block.h (struct block) <superblock>: Now const.
10082 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10083 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10084 (map_block): Make "block" const.
10085 * symfile.h (struct quick_symbol_functions)
10086 <map_matching_symbols>: Constify block argument to "callback".
10087 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10089 (find_pc_sect_compunit_symtab): Make "b" const.
10090 (find_symbol_at_address): Likewise.
10091 (search_symbols): Likewise.
10092 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10093 (dw2_debug_names_lookup_symbol): Likewise.
10094 (dw2_map_matching_symbols): Update.
10095 * p-valprint.c (pascal_val_print): Remove "block".
10096 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10097 (aux_add_nonlocal_symbols): Make "block" const.
10098 (resolve_subexp): Remove cast.
10099 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10101 (iterate_over_file_blocks): Likewise.
10102 * f-exp.y (%union) <bval>: Remove.
10103 * coffread.c (patch_opaque_types): Make "b" const.
10104 * spu-tdep.c (spu_catch_start): Make "block" const.
10105 * c-valprint.c (print_unpacked_pointer): Remove "block".
10106 * symmisc.c (dump_symtab_1): Make "b" const.
10107 (block_depth): Make "block" const.
10108 * d-exp.y (%union) <bval>: Remove.
10109 * cp-support.h (cp_lookup_rtti_type): Update.
10110 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10111 * psymtab.c (psym_lookup_symbol): Make "block" const.
10112 (maintenance_check_psymtabs): Make "b" const.
10113 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10114 (enumerate_locals, enumerate_args): Update.
10115 * python/py-symtab.c (stpy_global_block): Make "block" const.
10116 (stpy_static_block): Likewise.
10117 * inline-frame.c (block_starting_point_at): Make "new_block"
10119 * block.c (find_block_in_blockvector): Make return type const.
10120 (blockvector_for_pc_sect): Make "b" const.
10121 (find_block_in_blockvector): Make "b" const.
10123 2019-03-23 Tom Tromey <tom@tromey.com>
10125 * varobj.c (varobj_create): Update.
10126 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10127 * printcmd.c (display_command, do_one_display): Don't reset
10129 * parser-defs.h (enum innermost_block_tracker_type): Move to
10131 (innermost_block): Update comment.
10132 * parse.c (parse_exp_1): Add tracker_types parameter.
10133 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10134 tracker_types parameter. Reset innermost_block.
10135 (parse_exp_in_context): Remove.
10136 (parse_expression_for_completion): Update.
10137 * objfiles.c (~objfile): Don't reset expression_context_block or
10139 * expression.h (enum innermost_block_tracker_type): Move from
10141 (parse_exp_1): Add tracker_types parameter.
10142 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10143 reset innermost_block.
10145 2019-03-23 Tom Tromey <tom@tromey.com>
10147 * objfiles.h: Include bcache.h.
10149 2019-03-23 Tom Tromey <tom@tromey.com>
10151 * linespec.c (get_current_search_block): Use
10152 scoped_restore_current_language.
10153 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10155 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10156 Jiong Wang <jiong.wang@arm.com>
10158 * aarch64-linux-tdep.c
10159 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10161 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10163 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10164 Jiong Wang <jiong.wang@arm.com>
10166 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10168 (aarch64_analyze_prologue_test): Add PACIASP test.
10169 (aarch64_prologue_prev_register): Unmask PC value.
10171 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10172 Jiong Wang <jiong.wang@arm.com>
10174 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10175 (aarch64_dwarf2_prev_register): Unmask PC value.
10176 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10177 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10178 DW_CFA_AARCH64_negate_ra_state.
10179 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10181 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10182 Jiong Wang <jiong.wang@arm.com>
10184 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10186 (aarch64_pseudo_register_name): Likewise.
10187 (aarch64_pseudo_register_type): Likewise.
10188 (aarch64_pseudo_register_reggroup_p): Likewise.
10189 (aarch64_gdbarch_init): Add pauth registers.
10190 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10191 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10192 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10193 (struct gdbarch_tdep): Add regnum for ra_state.
10195 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10196 Jiong Wang <jiong.wang@arm.com>
10198 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10200 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10201 Jiong Wang <jiong.wang@arm.com>
10203 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10205 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10206 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10207 (aarch64_gdbarch_init): Add puth registers.
10208 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10209 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10210 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10212 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10213 Jiong Wang <jiong.wang@arm.com>
10215 * aarch64-linux-nat.c
10216 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10217 * aarch64-linux-tdep.c
10218 (aarch64_linux_core_read_description): Likewise.
10219 (aarch64_linux_get_hwcap): New function.
10220 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10221 (aarch64_linux_get_hwcap): New declaration.
10223 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10224 Jiong Wang <jiong.wang@arm.com>
10226 * aarch64-linux-nat.c
10227 (aarch64_linux_nat_target::read_description): Add pauth param.
10228 * aarch64-linux-tdep.c
10229 (aarch64_linux_core_read_description): Likewise.
10230 * aarch64-tdep.c (struct target_desc): Add in pauth.
10231 (aarch64_read_description): Add pauth param.
10232 (aarch64_gdbarch_init): Likewise.
10233 * aarch64-tdep.h (aarch64_read_description): Likewise.
10234 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10235 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10236 * features/Makefile: Add new files.
10237 * features/aarch64-pauth.c: New file.
10238 * features/aarch64-pauth.xml: New file.
10240 2019-03-20 Tom Tromey <tromey@adacore.com>
10242 * infrun.c (handle_inferior_event): Rename from
10243 handle_inferior_event_1. Create a scoped_value_mark.
10244 (handle_inferior_event): Remove.
10246 2019-03-19 Tom Tromey <tromey@adacore.com>
10248 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10249 * infrun.h (print_stop_event): Add "displays" parameter.
10250 * infrun.c (print_stop_event): Add "displays" parameter.
10252 2019-03-19 Pedro Alves <palves@redhat.com>
10254 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10255 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10256 to -1. Fix TABs vs spaces.
10257 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10258 * tui/tui-out.h (tui_ui_out) Add intro comments.
10259 <m_line, m_start_of_line>: In-class initialize, and add describing
10262 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10264 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10266 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10268 2019-03-18 Pedro Alves <palves@redhat.com>
10269 Eli Zaretskii <eliz@gnu.org>
10271 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10272 m_line and m_start_of_line.
10274 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10276 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10277 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10278 it returns a newline. This fixes a regression in TU mode, whereby
10279 the next line is output on the same screen line as the user input.
10281 2019-03-18 Tom Tromey <tromey@adacore.com>
10283 * minsyms.c (minimal_symbol_reader::install): Remove call to
10286 2019-03-18 Pedro Alves <palves@redhat.com>
10288 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10290 (apply_style): New, factored out from ...
10291 (apply_ansi_escape): ... this. Handle reverse video mode.
10292 (tui_set_reverse_mode): New function.
10293 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10294 * tui/tui-winsource.c (tui_show_source_line): Use
10295 tui_set_reverse_mode instead of setting A_STANDOUT.
10296 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10297 New setter methods.
10299 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10301 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10304 2019-03-18 Tom Tromey <tromey@adacore.com>
10306 * ada-lang.c (empty_array): Add "high" parameter.
10307 (ada_evaluate_subexp): Update.
10309 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10311 * unittests/string_view-selftests.c: Define
10312 _initialize_string_view_selftests unconditionally.
10314 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10317 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10319 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10322 * windows-nat.c (display_selector): Fix format specifiers.
10324 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10326 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10327 tui_refill_source_window instead of tui_refresh_win, to update the
10328 current execution line. This fixes redisplay of the current line
10329 when stepping through the code with "next" or "step".
10331 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10333 * source-cache.c (source_cache::get_source_lines): Call
10334 find_source_lines to initialize s->nlines. This fixes vertical
10335 scrolling of TUI source window when the DOWN arrow is pressed.
10337 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10339 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10340 linux-thread-db.c (_initialize_thread_db): Likewise.
10342 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10344 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10345 wclrtoeol in tui_show_source_line". This reverts changes made in
10346 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10348 2019-03-15 Tom Tromey <tom@tromey.com>
10350 * symtab.h (struct minimal_symbol): Derive from
10351 general_symbol_info.
10352 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10353 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10354 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10355 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10356 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10357 (MSYMBOL_SEARCH_NAME): Update.
10358 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10359 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10360 * minsyms.c (minimal_symbol_reader::record_full): Update.
10362 2019-03-15 Tom Tromey <tom@tromey.com>
10364 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10366 2019-03-15 Tom Tromey <tom@tromey.com>
10368 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10369 unique_xmalloc_ptr.
10370 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10372 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10373 (build_minimal_symbol_hash_tables)
10374 (minimal_symbol_reader::install): Update.
10376 2019-03-15 Tom Tromey <tom@tromey.com>
10378 * symtab.c (create_demangled_names_hash): Update.
10379 (symbol_set_names): Update.
10380 * objfiles.h (struct objfile_per_bfd_storage)
10381 <demangled_names_hash>: Now an htab_up.
10382 * objfiles.c (objfile_per_bfd_storage): Simplify.
10384 2019-03-15 Tom Tromey <tom@tromey.com>
10386 * objfiles.h (struct objfile_per_bfd_storage): Declare
10388 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10390 (get_objfile_bfd_data): Use new. Don't initialize
10392 (free_objfile_per_bfd_storage): Remove.
10393 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10395 2019-03-15 Tom Tromey <tom@tromey.com>
10397 * symfile.c (reread_symbols): Update.
10398 * objfiles.c (objfile::objfile): Update.
10399 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10400 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10402 (minimal_symbol_reader::install): Update.
10403 (terminate_minimal_symbol_table): Remove.
10404 * jit.c (jit_object_close_impl): Update.
10406 2019-03-15 Tom Tromey <tom@tromey.com>
10408 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10411 2019-03-15 Tom Tromey <tom@tromey.com>
10413 * objfiles.h (struct objfile_per_bfd_storage)
10414 <demangled_hash_languages>: Now a bitset.
10415 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10416 (lookup_minimal_symbol): Update.
10418 2019-03-15 Tom Tromey <tom@tromey.com>
10420 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10421 Don't return the symbol.
10422 * coffread.c (record_minimal_symbol): Use record_full.
10424 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10426 The MS-Windows port of ncurses fails to switch to a color pair if
10427 one or both of the colors are the implicit default colors. This
10428 change records the default colors when TUI is initialized, and
10429 then specifies them explicitly when a color pair uses the default
10430 colors. This allows color styling in TUI mode on MS-Windows.
10432 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10434 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10435 colors in ncurses_norm_attr.
10436 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10437 "none", replace it with the default color recorded in
10440 2019-03-14 Tom Tromey <tromey@adacore.com>
10442 * source-cache.h (class source_cache) <get_source_lines>: Return
10444 * source-cache.c (source_cache::extract_lines): Handle case where
10445 first_pos==npos. Return std::string.
10446 (source_cache::get_source_lines): Update.
10448 2019-03-14 Tom Tromey <tromey@adacore.com>
10450 * NEWS: Add item for "style sources" commands.
10451 * source-cache.c (source_cache::get_source_lines): Check
10453 * cli/cli-style.c (source_styling): New global.
10454 (_initialize_cli_style): Add "style sources" commands.
10455 (show_style_sources): New function.
10456 * cli/cli-style.h (source_styling): Declare.
10458 2019-03-14 Pedro Alves <palves@redhat.com>
10459 Tom Tromey <tromey@adacore.com>
10461 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10462 * tui/tui-winsource.c (tui_refill_source_window): New function,
10464 (tui_horizontal_source_scroll): ... here. Move some logic.
10465 * cli/cli-style.c (set_style_enabled): Notify new observable.
10466 * tui/tui-hooks.c (tui_redisplay_source): New function.
10467 (tui_attach_detach_observers): Attach or detach
10468 tui_redisplay_source.
10469 * observable.h (source_styling_changed): New observable.
10470 * observable.c: Define source_styling_changed observable.
10472 2019-03-13 Tom Tromey <tromey@adacore.com>
10474 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10475 (i386_gnu_nat_target::store_registers): Update.
10476 * target-debug.h (target_debug_print_std_string): New macro.
10477 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10478 * windows-tdep.c (display_one_tib): Update.
10479 * tui/tui-stack.c (tui_make_status_line): Update.
10480 * top.c (print_inferior_quit_action): Update.
10481 * thread.c (thr_try_catch_cmd): Update.
10482 (add_thread_with_info): Update.
10483 (thread_target_id_str): Update.
10484 (thr_try_catch_cmd): Update.
10485 (thread_command): Update.
10486 (thread_find_command): Update.
10487 * record-btrace.c (record_btrace_target::info_record)
10488 (record_btrace_resume_thread, record_btrace_target::resume)
10489 (record_btrace_cancel_resume, record_btrace_step_thread)
10490 (record_btrace_target::wait, record_btrace_target::wait)
10491 (record_btrace_target::wait, record_btrace_target::stop): Update.
10492 * progspace.c (print_program_space): Update.
10493 * process-stratum-target.c
10494 (process_stratum_target::thread_address_space): Update.
10495 * linux-fork.c (linux_fork_mourn_inferior)
10496 (detach_checkpoint_command, info_checkpoints_command)
10497 (linux_fork_context): Update.
10498 (linux_fork_detach): Update.
10499 (class scoped_switch_fork_info): Update.
10500 (delete_checkpoint_command): Update.
10501 * infrun.c (follow_fork_inferior): Update.
10502 (follow_fork_inferior): Update.
10503 (proceed_after_vfork_done): Update.
10504 (handle_vfork_child_exec_or_exit): Update.
10505 (follow_exec): Update.
10506 (displaced_step_prepare_throw): Update.
10507 (displaced_step_restore): Update.
10508 (start_step_over): Update.
10509 (resume_1): Update.
10510 (clear_proceed_status_thread): Update.
10512 (print_target_wait_results): Update.
10513 (do_target_wait): Update.
10514 (context_switch): Update.
10515 (stop_all_threads): Update.
10516 (restart_threads): Update.
10517 (finish_step_over): Update.
10518 (handle_signal_stop): Update.
10519 (switch_back_to_stepped_thread): Update.
10520 (keep_going_pass_signal): Update.
10521 (print_exited_reason): Update.
10522 (normal_stop): Update.
10523 * inferior.c (inferior_pid_to_str): Change return type.
10524 (print_selected_inferior): Update.
10525 (add_inferior): Update.
10526 (detach_inferior): Update.
10527 * dummy-frame.c (fprint_dummy_frames): Update.
10528 * dcache.c (dcache_info_1): Update.
10529 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
10530 (btrace_fetch, btrace_clear): Update.
10531 * linux-tdep.c (linux_core_pid_to_str): Change return type.
10532 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
10534 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
10535 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
10536 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
10537 * gdbarch.c, gdbarch.h: Rebuild.
10538 * gdbarch.sh (core_pid_to_str): Change return type.
10539 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
10541 (windows_nat_target::pid_to_str): Change return type.
10542 (windows_delete_thread): Update.
10543 (windows_nat_target::attach): Update.
10544 (windows_nat_target::files_info): Update.
10545 * target-delegates.c: Rebuild.
10546 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
10548 (sol_thread_target::pid_to_str): Change return type.
10549 * remote.c (class remote_target) <pid_to_str>: Change return
10551 (remote_target::pid_to_str): Change return type.
10552 (extended_remote_target::attach, remote_target::remote_stop_ns)
10553 (remote_target::remote_notif_remove_queued_reply)
10554 (remote_target::push_stop_reply, remote_target::disable_btrace):
10556 (extended_remote_target::attach): Update.
10557 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
10559 (gdbsim_target::pid_to_str): Change return type.
10560 * ravenscar-thread.c (struct ravenscar_thread_target)
10561 <pid_to_str>: Change return type.
10562 (ravenscar_thread_target::pid_to_str): Change return type.
10563 * procfs.c (class procfs_target) <pid_to_str>: Change return
10565 (procfs_target::pid_to_str): Change return type.
10566 (procfs_target::attach): Update.
10567 (procfs_target::detach): Update.
10568 (procfs_target::fetch_registers): Update.
10569 (procfs_target::store_registers): Update.
10570 (procfs_target::wait): Update.
10571 (procfs_target::files_info): Update.
10572 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
10573 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
10575 (nto_procfs_target::pid_to_str): Change return type.
10576 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
10577 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
10579 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
10580 (exit_lwp): Update.
10581 (attach_proc_task_lwp_callback, get_detach_signal)
10582 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
10583 (linux_nat_target::resume, wait_lwp, stop_callback)
10584 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
10585 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
10586 (linux_nat_wait_1, resume_stopped_resumed_lwps)
10587 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
10588 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
10590 (inf_ptrace_target::attach): Update.
10591 (inf_ptrace_target::files_info): Update.
10592 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
10594 (go32_nat_target::pid_to_str): Change return type.
10595 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
10596 (gnu_nat_target::wait): Update.
10597 (gnu_nat_target::wait): Update.
10598 (gnu_nat_target::resume): Update.
10599 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
10600 (fbsd_nat_target::wait): Update.
10601 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
10603 (darwin_nat_target::attach): Update.
10604 * corelow.c (class core_target) <pid_to_str>: Change return type.
10605 (core_target::pid_to_str): Change return type.
10606 * target.c (normal_pid_to_str): Change return type.
10607 (default_pid_to_str): Likewise.
10608 (target_pid_to_str): Change return type.
10609 (target_translate_tls_address): Update.
10610 (target_announce_detach): Update.
10611 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
10613 (bsd_uthread_target::pid_to_str): Change return type.
10614 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
10616 (bsd_kvm_target::pid_to_str): Change return type.
10617 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
10619 (aix_thread_target::pid_to_str): Change return type.
10620 * target.h (struct target_ops) <pid_to_str>: Change return type.
10621 (target_pid_to_str, normal_pid_to_str): Likewise.
10622 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
10624 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
10626 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
10628 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
10630 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
10632 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
10635 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
10637 * NEWS: Mention that the new default MI version is 3. Mention
10638 changes to the output of commands and events that deal with
10639 multi-location breakpoints.
10640 * breakpoint.c: Include "mi/mi-out.h".
10641 (print_one_breakpoint): Change output syntax if using MI version
10643 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
10645 (mi_multi_location_breakpoint_output_fixed): New.
10646 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
10647 (mi_cmd_fix_multi_location_breakpoint_output): New.
10648 (mi_multi_location_breakpoint_output_fixed): New.
10649 * mi/mi-cmds.c (mi_cmds): Register command
10650 -fix-multi-location-breakpoint-output.
10651 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
10654 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10656 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
10657 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
10658 instantiate mi_ui_out based on interpreter name.
10659 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
10660 * mi/mi-main.c (mi_load_progress): Likewise.
10662 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10664 * NEWS: Combine separate "New targets" sections for 8.3.
10666 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10668 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
10669 (ppcfbsd_init_abi): Install gdbarch
10670 "fetch_tls_load_module_address" and "get_thread_local_address"
10673 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10675 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
10676 (riscv_fbsd_init_abi): Install gdbarch
10677 "fetch_tls_load_module_address" and "get_thread_local_address"
10680 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10682 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
10683 (i386fbsd_init_abi): Install gdbarch
10684 "fetch_tls_load_module_address" and "get_thread_local_address"
10687 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10689 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
10690 (amd64fbsd_init_abi): Install gdbarch
10691 "fetch_tls_load_module_address" and "get_thread_local_address"
10694 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10696 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
10697 (struct fbsd_pspace_data): New type.
10698 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
10699 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
10700 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
10701 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
10702 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
10704 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10706 * gdbtypes.c (lookup_struct_elt): New function.
10707 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
10708 * gdbtypes.h (struct struct_elt): New type.
10709 (lookup_struct_elt): New prototype.
10711 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10713 * gdbtypes.c (lookup_struct_elt_type): Update comment and
10714 remove disabled code block.
10716 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10718 * gdbarch.sh (get_thread_local_address): New method.
10719 * gdbarch.h, gdbarch.c: Regenerate.
10720 * target.c (target_translate_tls_address): Use
10721 gdbarch_get_thread_local_address if present instead of
10722 target::get_thread_local_address.
10724 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10726 * target.h (target::get_thread_local_address): Update comment.
10728 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10730 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
10731 objfile->separate_debug_objfile_backlink if not NULL.
10733 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10735 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10736 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
10737 (amd64bsd_store_inferior_registers): Likewise.
10738 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10739 Enable segment base registers.
10740 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
10741 PT_GETFSBASE and PT_GETGSBASE.
10742 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
10744 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
10745 segment base registers.
10746 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10748 2019-03-12 John Baldwin <jhb@FreeBSD.org>
10750 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
10751 Update calls to i386_target_description to add 'segments'
10753 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
10754 add segment base registers.
10755 * arch/i386.c (i386_create_target_description): Add 'segments'
10756 parameter to enable segment base registers.
10757 * arch/i386.h (i386_create_target_description): Likewise.
10758 * features/i386/32bit-segments.xml: New file.
10759 * features/i386/32bit-segments.c: Generate.
10760 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
10761 call to i386_target_description to add 'segments' parameter.
10762 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
10763 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
10764 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
10765 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
10766 if feature is present.
10767 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
10768 Add 'segments' parameter to call to i386_target_description.
10769 (i386_target_description): Add 'segments' parameter to enable
10770 segment base registers.
10771 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
10772 to call to i386_target_description.
10773 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
10774 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
10775 Define I386_NUM_REGS.
10776 (i386_target_description): Add 'segments' parameter to enable
10777 segment base registers.
10779 2019-03-12 Eli Zaretskii <eliz@gnu.org>
10782 * source-cache.c: #undef open and close, to avoid unresolved
10783 externals during linking.
10785 2019-03-12 Tom Tromey <tromey@adacore.com>
10787 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
10788 const. Add initializers.
10789 (_initialize_remote): Don't initialize ptid globals.
10791 2019-03-12 Pedro Alves <palves@redhat.com>
10793 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
10795 2019-03-12 Pedro Alves <palves@redhat.com>
10797 * cp-name-parser.y (main): Remove unused 'len' variable.
10799 2019-03-12 Tom Tromey <tromey@adacore.com>
10801 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
10802 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
10804 2019-03-12 Tom Tromey <tromey@adacore.com>
10806 * linux-nat.c (iterate_over_lwps): Update.
10807 (stop_callback): Remove parameter.
10808 (stop_wait_callback, detach_callback, resume_set_callback)
10809 (select_singlestep_lwp_callback, set_ignore_sigint)
10810 (status_callback, resumed_callback, resume_clear_callback)
10811 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
10813 (linux_nat_target::detach, linux_nat_target::resume)
10814 (linux_stop_and_wait_all_lwps, select_event_lwp)
10815 (linux_nat_filter_event, linux_nat_wait_1)
10816 (linux_nat_target::kill, linux_nat_target::stop)
10817 (linux_nat_target::stop): Update.
10818 (linux_nat_resume_callback): Change type.
10819 (resume_stopped_resumed_lwps, count_events_callback)
10820 (select_event_lwp_callback): Likewise.
10821 (linux_stop_lwp, linux_nat_stop_lwp): Update.
10822 * arm-linux-nat.c (struct update_registers_data): Remove.
10823 (update_registers_callback): Change type.
10824 (arm_linux_insert_hw_breakpoint1): Update.
10825 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
10827 (x86_linux_dr_set_addr): Update.
10828 (x86_linux_dr_set_control): Update.
10829 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
10830 (iterate_over_lwps): Use gdb::function_view.
10831 * nat/aarch64-linux-hw-point.c (struct
10832 aarch64_dr_update_callback_param): Remove.
10833 (debug_reg_change_callback): Change type.
10834 (aarch64_notify_debug_reg_change): Update.
10835 * s390-linux-nat.c (s390_refresh_per_info): Update.
10837 2019-03-11 Tom Tromey <tromey@adacore.com>
10839 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
10840 redundant assignment to "this_cu".
10842 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10844 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
10846 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10848 * gdbtypes.c (rank_one_type_parm_set): New function extracted
10850 (rank_one_type): ... this.
10852 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10854 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
10856 (rank_one_type): ... this.
10858 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10860 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
10862 (rank_one_type): ... this.
10864 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10866 * gdbtypes.c (rank_one_type_parm_float): New function extracted
10868 (rank_one_type): ... this.
10870 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10872 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
10874 (rank_one_type): ... this.
10876 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10878 * gdbtypes.c (rank_one_type_parm_range): New function extracted
10880 (rank_one_type): ... this.
10882 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10884 * gdbtypes.c (rank_one_type_parm_char): New function extracted
10886 (rank_one_type): ... this.
10888 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10890 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
10892 (rank_one_type): ... this.
10894 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10896 * gdbtypes.c (rank_one_type_parm_int): New function extracted
10898 (rank_one_type): ... this.
10900 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10902 * gdbtypes.c (rank_one_type_parm_func): New function extracted
10904 (rank_one_type): ... this.
10906 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10908 * gdbtypes.c (rank_one_type_parm_array): New function extracted
10910 (rank_one_type): ... this.
10912 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
10914 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
10916 (rank_one_type): ... this.
10918 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10920 * inferior.c (initialize_inferiors): Ensure 'help set/show print
10921 inferior-events' shows the example events.
10923 2019-03-08 Eli Zaretskii <eliz@gnu.org>
10925 Support styling on native MS-Windows console
10928 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
10929 on MS-Windows if $TERM is not defined.
10931 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
10933 * posix-hdep.c (gdb_console_fputs):
10934 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
10936 * ui-file.h (gdb_console_fputs): Add prototype.
10938 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
10939 back to fputs only if the former returns zero.
10941 2019-03-07 Tom Tromey <tom@tromey.com>
10943 * symmisc.c (print_symbol_bcache_statistics): Update.
10944 (print_objfile_statistics): Update.
10945 * symfile.c (allocate_symtab): Update.
10946 * stabsread.c: Don't include bcache.h.
10947 * psymtab.h (struct psymbol_bcache): Don't declare.
10948 (class psymtab_storage) <psymbol_cache>: Now a bcache.
10949 (psymbol_bcache_init, psymbol_bcache_free)
10950 (psymbol_bcache_get_bcache): Don't declare.
10951 * psymtab.c (struct psymbol_bcache): Remove.
10952 (psymtab_storage::psymtab_storage): Update.
10953 (psymtab_storage::~psymtab_storage): Update.
10954 (psymbol_bcache_init, psymbol_bcache_free)
10955 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
10956 (add_psymbol_to_bcache): Update.
10957 (allocate_psymtab): Update.
10958 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10959 macro_cache>: No longer pointers.
10960 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
10961 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
10962 * macrotab.c (macro_bcache): Update.
10963 * macroexp.c: Don't include bcache.h.
10964 * gdbtypes.c (check_types_worklist): Update.
10965 (types_deeply_equal): Remove TRY/CATCH. Update.
10966 * elfread.c (elf_symtab_read): Update.
10967 * dwarf2read.c: Don't include bcache.h.
10968 * buildsym.c (buildsym_compunit::get_macro_table): Update.
10969 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
10970 (print_bcache_statistics, bcache_memory_used): Don't declare.
10971 (struct bcache): Move from bcache.c. Add constructor, destructor,
10972 methods. Rename all data members.
10973 * bcache.c (struct bcache): Move to bcache.h.
10974 (bcache::expand_hash_table): Rename from expand_hash_table.
10976 (bcache::insert): Rename from bcache_full.
10977 (bcache::compare): Rename from bcache_compare.
10978 (bcache_xmalloc): Remove.
10979 (bcache::~bcache): Rename from bcache_xfree.
10980 (bcache::print_statistics): Rename from print_bcache_statistics.
10981 (bcache::memory_used): Rename from bcache_memory_used.
10983 2019-03-07 Pedro Alves <palves@redhat.com>
10985 * infrun.c (normal_stop): Also check for
10986 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
10988 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10990 * f-lang.c (value_from_host_double): Moved to...
10991 * value.c (value_from_host_double): ...here.
10992 * value.h (value_from_host_double): Declare.
10993 * guile/scm-math.c (vlscm_convert_typed_number): Use
10994 value_from_host_double.
10995 (vlscm_convert_number): Likewise.
10996 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
10997 * python/py-value.c (convert_value_from_python): Likewise.
10999 2019-03-06 Tom Tromey <tom@tromey.com>
11001 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11003 2019-03-06 Tom Tromey <tom@tromey.com>
11005 * utils.h (free_current_contents): Don't declare.
11006 * utils.c (free_current_contents): Remove.
11008 2019-03-06 Tom Tromey <tom@tromey.com>
11010 * top.c (quit_force): Update.
11011 * main.c (captured_command_loop): Update.
11012 * common/new-op.c (operator new): Update.
11013 * common/common-exceptions.c (struct catcher)
11014 <save_cleanup_chain>: Remove member.
11015 (exceptions_state_mc_init): Update.
11016 (exception_try_scope_entry): Return nullptr.
11017 (exception_try_scope_exit, exception_rethrow)
11018 (throw_exception_sjlj, throw_exception_cxx): Update.
11019 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11020 (all_cleanups, do_cleanups, discard_cleanups)
11021 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11022 (restore_cleanups, restore_final_cleanups): Don't declare.
11023 (do_final_cleanups): Remove parameter.
11024 * common/cleanups.c (cleanup_chain, make_cleanup)
11025 (make_cleanup_dtor, all_cleanups, do_cleanups)
11026 (discard_my_cleanups, discard_cleanups)
11027 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11028 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11029 (null_cleanup): Remove.
11030 (do_final_cleanups): Remove parameter.
11032 2019-03-06 Tom Tromey <tom@tromey.com>
11034 * remote.c (remote_target::remote_parse_stop_reply): Use
11035 unique_xmalloc_ptr.
11037 2019-03-06 Tom Tromey <tom@tromey.com>
11039 * stabsread.c (struct stabs_field_info): Rename from field_info.
11040 <list, fnlist>: Add initializers.
11041 <obstack>: New member.
11042 (read_member_functions, read_struct_fields, read_baseclasses):
11043 Allocate on obstack. Don't use cleanups.
11044 (read_one_struct_field, read_member_functions, read_struct_fields)
11045 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11046 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11047 (read_struct_type): Update.
11049 2019-03-06 Tom Tromey <tom@tromey.com>
11051 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11052 * common/filestuff.h (make_cleanup_close): Don't declare.
11053 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11056 2019-03-06 Tom Tromey <tom@tromey.com>
11058 * solib-aix.c: Use make_scope_exit.
11060 2019-03-06 Tom Tromey <tom@tromey.com>
11062 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11063 Use make_scope_exit.
11065 2019-03-06 Tom Tromey <tom@tromey.com>
11067 * solib-svr4.c (disable_probes_interface): Remove parameter.
11068 (svr4_handle_solib_event): Use make_scope_exit.
11070 2019-03-06 Tom Tromey <tom@tromey.com>
11072 * remote.c (struct stop_reply_deleter): Remove.
11073 (stop_reply_up): Update.
11074 (struct stop_reply): Derive from notif_event. Don't typedef.
11075 <regcache>: Now a std::vector.
11076 (stop_reply_xfree): Remove.
11077 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11078 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11079 (remote_target::discard_pending_stop_replies): Use delete.
11080 (remote_target::remote_parse_stop_reply): Update.
11081 (remote_target::process_stop_reply): Update.
11082 * remote-notif.h (struct notif_event): Add virtual destructor.
11083 Remove "dtr" member.
11084 (struct notif_client) <alloc_event>: Return a unique_ptr.
11085 (notif_event_xfree): Don't declare.
11086 (notif_event_up): New typedef.
11087 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11088 (notif_event_xfree, do_notif_event_xfree): Remove.
11089 (remote_notif_state_xfree): Update.
11091 2019-03-06 Tom Tromey <tom@tromey.com>
11093 * infrun.c (displaced_step_clear_cleanup): Now a
11094 forward_scope_exit type.
11095 (displaced_step_prepare_throw): Update.
11096 (displaced_step_fixup): Update.
11098 2019-03-06 Tom Tromey <tom@tromey.com>
11100 * inferior.h (class inferior): Update comment.
11101 * gdbthread.h (class thread_info): Update comment.
11103 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11104 Tom Tromey <tom@tromey.com>
11106 * stabsread.h (struct stab_section_list): Remove.
11107 (coffstab_build_psymtabs): Update.
11108 * dbxread.c (symbuf_sections): Now a std::vector.
11109 (sect_idx): New global.
11110 (fill_symbuf): Update.
11111 (coffstab_build_psymtabs): Change type of stabsects parameter.
11113 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11115 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11116 (coff_locate_sections): Update.
11117 (coff_symfile_read): Remove cleanups. Update.
11118 (init_stringtab): Add storage parameter.
11119 (free_stringtab, free_stringtab_cleanup): Remove.
11120 (init_lineno): Add storage parameter.
11121 (free_linetab, free_linetab_cleanup): Remove.
11123 2019-03-06 Pedro Alves <palves@redhat.com>
11125 * linux-fork.c (fork_info::clobber_regs): Delete.
11126 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11127 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11129 (scoped_switch_fork_info::scoped_switch_fork_info)
11130 (checkpoint_command, linux_fork_context): Adjust
11131 fork_save_infrun_state calls.
11133 2019-03-06 Pedro Alves <palves@redhat.com>
11135 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11136 (inf_has_multiple_threads): Return 'bool' and rewrite using
11137 inferior_info::threads().
11139 2019-03-06 Pedro Alves <palves@redhat.com>
11141 * linux-fork.c: Include <list>.
11142 (fork_list): Now a std::list instance.
11143 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11144 (forks_exist_p, find_last_fork): Adjust.
11145 (new_fork): Delete.
11147 (add_fork): Adjust.
11148 (free_fork): Delete, folded into fork_info::~fork_info().
11149 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11151 (init_fork_list): Delete.
11152 (linux_fork_killall, linux_fork_mourn_inferior)
11153 (linux_fork_detach, info_checkpoints_command): Adjust.
11154 (_initialize_linux_fork): No longer call init_fork_list.
11156 2019-03-06 Pedro Alves <palves@redhat.com>
11158 * linux-fork.c (new_fork): New, split out of ...
11159 (add_fork): ... this. Return void. Move "first fork" special
11160 case from here, to ...
11161 (checkpoint_command): ... here.
11162 * linux-linux.h (add_fork): Return void.
11164 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11166 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11168 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11169 Chris January <chris.january@arm.com>
11170 David Lecomber <david.lecomber@arm.com>
11172 * f-exp.y: New token, UNOP_INTRINSIC.
11173 (exp): New pattern using UNOP_INTRINSIC token.
11174 (f77_keywords): Add 'abs' keyword.
11175 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11176 (value_from_host_double): New function.
11177 (evaluate_subexp_f): Support UNOP_ABS.
11179 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11181 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11184 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11186 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11187 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11188 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11190 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11192 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11194 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11195 Chris January <chris.january@arm.com>
11197 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11198 * f-exp.y: Define 'KIND' token.
11199 (exp): New pattern for KIND expressions.
11200 (ptype): Handle types with a kind extension.
11201 (direct_abs_decl): Extend to spot kind extensions.
11202 (f77_keywords): Add 'kind' to the list.
11203 (push_kind_type): New function.
11204 (convert_to_kind_type): New function.
11205 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11206 * parse.c (operator_length_standard): Likewise.
11207 * parser-defs.h (enum type_pieces): Add tp_kind.
11208 * std-operator.def: Add UNOP_KIND.
11210 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11212 * f-exp.y (f_parse): Set yydebug.
11214 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11216 * f-lang.c (evaluate_subexp_f): New function.
11217 (exp_descriptor_f): New global.
11218 (f_language_defn): Use exp_descriptor_f instead of
11219 exp_descriptor_standard.
11221 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11223 * f-exp.y (struct token): Add comments.
11224 (dot_ops): Remove uppercase versions and the end marker.
11225 (f77_keywords): Likewise.
11226 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11227 entries in the dot_ops array are case insensitive, and use
11228 strncasecmp to compare strings. Also some whitespace cleanup in
11229 this area. Similar for the f77_keywords array, except entries in
11230 this list might be case sensitive.
11232 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11234 * f-exp.y (struct f77_boolean_val): Add comments.
11235 (boolean_values): Remove uppercase versions, and end marker.
11236 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11237 and use strncasecmp to achieve case insensitivity. Additionally,
11238 perform whitespace cleanup around this code.
11240 2019-03-06 Tom Tromey <tromey@adacore.com>
11242 * remote-sim.c (gdbsim_target_open): Use result of
11245 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11246 Dirk Schubert <dirk.schubert@arm.com>
11247 Chris January <chris.january@arm.com>
11249 * eval.c (evaluate_subexp_standard): Call Fortran argument
11251 * f-lang.c (struct value): A value which can be passed into a
11252 Fortran function call.
11253 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11255 (struct type): Value ready for a Fortran function call.
11256 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11258 * f-lang.h (fortran_argument_convert): Declaration.
11259 (fortran_preserve_arg_pointer): Declaration.
11260 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11262 2019-03-05 Tom Tromey <tromey@adacore.com>
11264 * python/py-prettyprint.c (print_string_repr): Remove #if.
11265 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11267 2019-03-05 Tom Tromey <tromey@adacore.com>
11269 * target.c (the_dummy_target): Move later. Change type to
11271 (initialize_targets): Don't initialize the_dummy_target.
11273 2019-03-05 Tom Tromey <tromey@adacore.com>
11275 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11276 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11278 2019-03-05 Tom Tromey <tromey@adacore.com>
11280 * windows-nat.c (windows_nat_target::attach)
11281 (windows_nat_target::detach): Don't call gdb_flush.
11282 * valprint.c (generic_val_print, val_print, val_print_string):
11283 Don't call gdb_flush.
11284 * utils.c (defaulted_query): Don't call gdb_flush.
11285 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11286 * target.c (target_announce_detach): Don't call gdb_flush.
11287 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11288 * remote.c (extended_remote_target::attach): Don't call
11290 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11291 * printcmd.c (do_examine): Don't call gdb_flush.
11292 (info_display_command): Don't call gdb_flush.
11293 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11294 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11295 * memattr.c (info_mem_command): Don't call gdb_flush.
11296 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11297 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11298 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11299 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11300 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11301 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11302 (gnu_nat_target::detach): Don't call gdb_flush.
11303 * f-valprint.c (f_val_print): Don't call gdb_flush.
11304 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11305 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11306 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11308 * c-valprint.c (c_val_print): Don't call gdb_flush.
11309 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11311 2019-03-05 Tom Tromey <tromey@adacore.com>
11313 * varobj.c (update_dynamic_varobj_children): Update.
11314 (install_default_visualizer): Use reset, not release.
11315 * value.c (set_internalvar): Update.
11316 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11317 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11318 ATTRIBUTE_UNUSED_RESULT.
11320 2019-03-05 Tom Tromey <tromey@adacore.com>
11322 * remote.c (class scoped_remote_fd) <release>: Add
11323 ATTRIBUTE_UNUSED_RESULT.
11325 2019-03-05 Tom Tromey <tromey@adacore.com>
11327 * macroexp.c (struct macro_buffer) <release>: Add
11328 ATTRIBUTE_UNUSED_RESULT.
11330 2019-03-05 Tom Tromey <tromey@adacore.com>
11332 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11333 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11334 ATTRIBUTE_UNUSED_RESULT.
11336 2019-03-05 Tom Tromey <tromey@adacore.com>
11338 * common/scoped_fd.h (class scoped_fd) <release>: Add
11339 ATTRIBUTE_UNUSED_RESULT.
11341 2019-03-05 Tom Tromey <tromey@adacore.com>
11343 * parser-defs.h (struct parser_state) <release>: Add
11344 ATTRIBUTE_UNUSED_RESULT.
11346 2019-03-05 Tom Tromey <tromey@adacore.com>
11348 * utils.h (class gdb_argv) <release>: Add
11349 ATTRIBUTE_UNUSED_RESULT.
11350 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11352 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11354 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11355 for-loop range, to avoid compiler warnings.
11357 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11358 avoid compiler warnings about unused variables.
11360 * NEWS: Mention end of support for native debugging on MS-Windows
11364 * common/netstuff.c:
11365 * gdbserver/gdbreplay.c
11366 * gdbserver/remote-utils.c:
11368 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11369 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11370 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11371 'getaddrinfo' and 'freeaddrinfo' were not available before
11372 Windows XP, and mingw.org's MinGW headers by default define
11373 _WIN32_WINNT to 0x500.
11375 2019-03-01 Gary Benson <gbenson@redhat.com>
11377 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11379 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11380 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11383 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11384 set_sigint_trap, clear_sigint_trap.
11386 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11388 * target.c (target_detach): Clear the regcache and the
11391 2019-02-27 Pedro Alves <palves@redhat.com>
11393 * utils.c (set_screen_size): When we cap the height/width sizes,
11394 tweak the corresponding command variable to show "unlimited":
11396 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11397 Pedro Alves <palves@redhat.com>
11399 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11400 before calling rl_set_screen_size.
11402 2019-02-27 Tom Tromey <tromey@adacore.com>
11404 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11406 * python/py-value.c: Remove Python 2.4 workaround.
11407 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11409 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11410 Python 2.4 workaround.
11411 * python/python-internal.h: Remove Python 2.4 comment.
11412 (Py_ssize_t): Don't define.
11413 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11414 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11415 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11416 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11417 * python/python.c (do_start_initialization): Remove Python 2.4
11419 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11420 (print_children): Remove Python 2.4 workaround.
11421 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11423 (CHARBUFFERPROC_NAME): Remove.
11424 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11425 Python 2.4 workaround.
11427 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11429 * NEWS: Note minimum Python version.
11431 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11433 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11434 code from these functions. Remove corresponding ifdefs. Use
11435 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11436 Remove gotos and target of gotos.
11437 (infpy_search_memory): Likewise.
11439 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11441 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11442 (hppa_gdbarch_init): Don't register deleted functions with
11445 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11447 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11448 (h8300_unwind_sp): Delete.
11449 (h8300_dummy_id): Delete.
11450 (h8300_gdbarch_init): Don't register deleted functions with
11453 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11455 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11456 (ft32_unwind_pc): Delete.
11457 (ft32_unwind_sp): Delete.
11458 (ft32_gdbarch_init): Don't register deleted functions with
11461 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11463 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11464 (frv_unwind_pc): Delete.
11465 (frv_unwind_sp): Delete.
11466 (frv_gdbarch_init): Don't register deleted functions with
11469 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11471 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11472 (riscv_unwind_pc): Delete.
11473 (riscv_unwind_sp): Delete.
11474 (riscv_gdbarch_init): Don't register deleted functions with
11477 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11479 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11480 (csky_unwind_pc): Delete.
11481 (csky_unwind_sp): Delete.
11482 (csky_gdbarch_init): Don't register deleted functions with
11485 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11487 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11488 (cris_unwind_pc): Delete.
11489 (cris_unwind_sp): Delete.
11490 (cris_gdbarch_init): Don't register deleted functions with
11493 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11495 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11496 (bfin_unwind_pc): Delete.
11497 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11499 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11501 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11502 (arm_unwind_pc): Delete.
11503 (arm_unwind_sp): Delete.
11504 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11506 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11508 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11509 (arc_unwind_pc): Delete.
11510 (arc_unwind_sp): Delete.
11511 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11513 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11515 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11516 (alpha_unwind_pc): Delete.
11517 (alpha_gdbarch_init): Don't register deleted functions with
11520 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11522 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
11523 (aarch64_unwind_pc): Delete.
11524 (aarch64_unwind_sp): Delete.
11525 (aarch64_gdbarch_init): Don't register deleted functions with
11528 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11530 * gdbtypes.c (type_align): Don't consider static members when
11531 computing structure alignment.
11533 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11535 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
11536 return 0 for other types.
11537 * arch-utils.c (default_type_align): Always return 0.
11538 * gdbarch.h: Regenerate.
11539 * gdbarch.sh (type_align): Extend comment.
11540 * gdbtypes.c (type_align): Add additional comments, always call
11541 gdbarch_type_align before applying the default rules.
11542 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
11543 generic code will then apply a suitable default.
11544 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
11545 types, return 0 for other types.
11547 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11549 * NEWS: Create a new section for the next release branch.
11550 Rename the section of the current branch, now that it has
11553 2019-02-27 Joel Brobecker <brobecker@adacore.com>
11555 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
11556 * version.in: Bump version to 8.3.50.DATE-git.
11558 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
11560 * aix-thread.c (ptid_cmp): Remove unused variable.
11561 (get_signaled_thread): Likewise.
11562 (store_regs_user_thread): Likewise.
11563 (store_regs_kernel_thread): Likewise.
11564 (fetch_regs_kernel_thread): Remove shadowed variable.
11566 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
11568 * features/riscv/32bit-cpu.xml: Add register numbers.
11569 * features/riscv/32bit-fpu.c: Regenerate.
11570 * features/riscv/32bit-fpu.xml: Add register numbers.
11571 * features/riscv/64bit-cpu.xml: Add register numbers.
11572 * features/riscv/64bit-fpu.c: Regenerate.
11573 * features/riscv/64bit-fpu.xml: Add register numbers.
11575 2019-02-26 Kevin Buettner <kevinb@redhat.com>
11577 * NEWS: Mention two argument form of gdb.Value constructor.
11578 * python/py-value.c (convert_buffer_and_type_to_value): New
11580 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
11581 Add support for handling an optional second argument. Call
11582 convert_buffer_and_type_to_value as appropriate.
11583 * python/python-internal.h (Py_buffer_deleter): New struct.
11584 (Py_buffer_up): New typedef.
11586 2019-02-25 John Baldwin <jhb@FreeBSD.org>
11588 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
11589 instead of releasing ownership.
11591 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
11593 * dwarf2read.c (open_and_init_dwp_file): Call
11594 elf_numsections instead of bfd_count_sections to initialize
11595 dwp_file->num_sections.
11597 2019-02-25 Tom Tromey <tromey@adacore.com>
11599 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
11601 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
11603 * gcore.in: Add '--readnever' option when invoking GDB.
11605 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11607 * MAINTAINERS: Update my email address.
11609 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
11611 * build-id.c (build_id_to_debug_bfd_1): New function.
11612 (build_id_to_debug_bfd): Look for separate debug file in
11615 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
11617 * gdbarch.sh: Update the copyright year range that is placed into
11620 2019-02-22 Keith Seitz <keiths@redhat.com>
11623 * linespec.c (create_sals_line_offset): Search for the default
11624 symtab's filename instead of its fullname.
11626 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11628 * NEWS: Update style defaults.
11630 2019-02-21 Alan Hayward <alan.hayward@arm.com>
11632 * main.c (captured_main_1): Disable styling in batch mode.
11634 2019-02-20 Tom Tromey <tom@tromey.com>
11636 * symtab.c (symtab_symbol_info): Fix typos.
11638 2019-02-20 Tom Tromey <tromey@adacore.com>
11640 * findcmd.c (_initialize_mem_search): Use upper case for
11641 metasyntactic variables.
11643 2019-02-20 Alan Hayward <alan.hayward@arm.com>
11645 * aarch64-tdep.c (aarch64_add_reggroups): New function.
11646 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
11648 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
11650 * top.h (source_file_name): Change to std::string.
11651 * top.c (source_file_name): Likewise.
11652 (command_line_input): Adjust.
11653 * cli/cli-script.c (script_from_file): Adjust.
11655 2019-02-19 Tom Tromey <tromey@adacore.com>
11657 * ravenscar-thread.c
11658 (ravenscar_thread_target::update_thread_list): Don't call
11659 ada_build_task_list.
11660 * ada-lang.h (ada_build_task_list): Don't declare.
11661 * ada-tasks.c (struct ada_tasks_inferior_data)
11662 <task_list_valid_p>: Now bool.
11663 (read_known_tasks, ada_task_list_changed)
11664 (ada_tasks_invalidate_inferior_data): Update.
11665 (read_known_tasks_array): Return bool.
11666 (read_known_tasks_list): Likewise.
11667 (read_known_tasks): Return void.
11668 (ada_build_task_list): Now static.
11670 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
11672 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
11673 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
11675 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11677 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
11678 variant for ada_tasks_pspace_data_handle and
11679 ada_tasks_inferior_data_handle.
11680 (ada_tasks_pspace_data_cleanup): New function.
11681 (ada_tasks_inferior_data_cleanup): New function.
11683 2019-02-17 Tom Tromey <tom@tromey.com>
11685 * macrotab.h (macro_source_fullname): Return a std::string.
11686 * macrotab.c (macro_include, check_for_redefinition)
11687 (macro_undef, macro_lookup_definition, foreach_macro)
11688 (foreach_macro_in_scope): Update.
11689 (macro_source_fullname): Return a std::string.
11690 * macrocmd.c (show_pp_source_pos): Update.
11692 2019-02-17 Tom Tromey <tom@tromey.com>
11694 * macrocmd.c (show_pp_source_pos): Style the file names.
11696 2019-02-17 Tom Tromey <tom@tromey.com>
11699 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
11701 2019-02-17 Tom Tromey <tom@tromey.com>
11703 * ada-lang.c (user_select_syms): Use filtered printing.
11704 * utils.c (wrap_style): New global.
11705 (desired_style): Remove.
11706 (emit_style_escape): Add stream parameter.
11707 (set_output_style, reset_terminal_style, prompt_for_continue):
11709 (flush_wrap_buffer): Only flush gdb_stdout.
11710 (wrap_here): Set wrap_style.
11711 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
11712 treat escape sequences as a character. Change when wrap buffer is
11714 (fputs_styled): Do not set the output style when the default is
11716 * ui-style.h (struct ui_file_style) <is_default>: New method.
11717 * source.c (print_source_lines_base): Emit escape sequences in one
11720 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11722 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
11723 integers and enumeration types.
11725 2019-02-17 Joel Brobecker <brobecker@adacore.com>
11727 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
11728 instead of lookup_symbol_in_language
11729 (do_exact_match): New function.
11730 (ada_get_symbol_name_matcher): Return do_exact_match when
11731 doing a verbatim match.
11733 2019-02-15 Tom Tromey <tromey@adacore.com>
11735 * ravenscar-thread.c (ravenscar_thread_target::resume)
11736 (ravenscar_thread_target::wait): Special case wildcard requests.
11738 2019-02-15 Tom Tromey <tromey@adacore.com>
11740 * ravenscar-thread.c (base_ptid): Remove.
11741 (struct ravenscar_thread_target) <close>: New method.
11742 <m_base_ptid>: New member.
11743 <update_inferior_ptid, active_task, task_is_currently_active,
11744 runtime_initialized>: Declare methods.
11745 <ravenscar_thread_target>: Add constructor.
11746 (ravenscar_thread_target::task_is_currently_active)
11747 (ravenscar_thread_target::update_inferior_ptid)
11748 (ravenscar_runtime_initialized): Rename. Now methods.
11749 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
11750 (ravenscar_thread_target::update_thread_list): Update.
11751 (ravenscar_thread_target::active_task): Now method.
11752 (ravenscar_thread_target::store_registers)
11753 (ravenscar_thread_target::prepare_to_store)
11754 (ravenscar_thread_target::prepare_to_store)
11755 (ravenscar_thread_target::mourn_inferior): Update.
11756 (ravenscar_inferior_created): Use "new" to create target.
11757 (ravenscar_thread_target::get_ada_task_ptid): Update.
11758 (_initialize_ravenscar): Don't initialize base_ptid.
11759 (ravenscar_ops): Remove global.
11761 2019-02-15 Tom Tromey <tromey@adacore.com>
11763 * target.h (push_target): Declare new overload.
11764 * target.c (push_target): New overload, taking an rvalue reference.
11765 * remote.c (remote_target::open_1): Use push_target overload.
11766 * corelow.c (core_target_open): Use push_target overload.
11768 2019-02-15 Tom Tromey <tromey@adacore.com>
11770 * ravenscar-thread.c (is_ravenscar_task)
11771 (ravenscar_task_is_currently_active): Return bool.
11772 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
11773 (_initialize_ravenscar): Remove "(void)".
11774 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
11777 2019-02-15 Tom Tromey <tromey@adacore.com>
11779 * ravenscar-thread.c (ravenscar_runtime_initializer)
11780 (has_ravenscar_runtime, get_running_thread_id)
11781 (ravenscar_thread_target::resume): Fix indentation.
11783 2019-02-15 Tom Tromey <tromey@adacore.com>
11785 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
11786 from ravenscar_arch_ops.
11787 (sparc_ravenscar_ops::fetch_registers)
11788 (sparc_ravenscar_ops::store_registers): Now methods.
11789 (sparc_ravenscar_prepare_to_store): Remove.
11790 (sparc_ravenscar_ops): Redefine.
11791 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
11792 methods and destructor. Remove members.
11793 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
11794 (ravenscar_thread_target::store_registers)
11795 (ravenscar_thread_target::prepare_to_store): Update.
11796 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
11798 (struct ppc_ravenscar_powerpc_ops): Derive from
11799 ravenscar_arch_ops.
11800 (ppc_ravenscar_powerpc_ops::fetch_registers)
11801 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
11802 (ppc_ravenscar_powerpc_ops): Redefine.
11803 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
11804 (ppc_ravenscar_e500_ops::fetch_registers)
11805 (ppc_ravenscar_e500_ops::store_registers): Now methods.
11806 (ppc_ravenscar_e500_ops): Redefine.
11807 * aarch64-ravenscar-thread.c
11808 (aarch64_ravenscar_generic_prepare_to_store): Remove.
11809 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
11810 (aarch64_ravenscar_fetch_registers)
11811 (aarch64_ravenscar_store_registers): Now methods.
11812 (aarch64_ravenscar_ops): Redefine.
11814 2019-02-15 Tom Tromey <tromey@adacore.com>
11816 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
11817 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11818 (ravenscar_thread_target::stopped_by_watchpoint)
11819 (ravenscar_thread_target::stopped_data_address)
11820 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
11822 2019-02-15 Tom Tromey <tromey@adacore.com>
11824 * ravenscar-thread.c: Fix some typos.
11826 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11827 Tom Tromey <tromey@adacore.com>
11829 * ada-lang.c (ada_exception_sal): Change addr_string to a
11831 (create_ada_exception_catchpoint): Update.
11833 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11834 Tom Tromey <tromey@adacore.com>
11836 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
11837 (bp_location_ops): Remove.
11838 (base_breakpoint_allocate_location): Update.
11839 (free_bp_location): Update.
11840 * ada-lang.c (class ada_catchpoint_location)
11841 <ada_catchpoint_location>: Remove ops parameter.
11842 (ada_catchpoint_location_dtor): Remove.
11843 (ada_catchpoint_location_ops): Remove.
11844 (allocate_location_exception): Update.
11845 * breakpoint.h (struct bp_location_ops): Remove.
11846 (class bp_location) <bp_location>: Remove bp_location_ops
11848 <~bp_location>: Add destructor.
11851 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11852 Pedro Alves <palves@redhat.com>
11854 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
11857 2019-02-14 David Michael <fedora.dm0@gmail.com>
11858 Samuel Thibault <samuel.thibault@gnu.org>
11859 Thomas Schwinge <thomas@codesourcery.com>
11861 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
11862 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
11864 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
11866 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
11867 (check_empty): Use "const char *".
11869 * gnu-nat.c (gnu_nat_target::detach): Instead of
11870 'detach_inferior (pid)' call
11871 'detach_inferior (find_inferior_pid (pid))'.
11873 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
11874 'nat/fork-inferior.o'.
11875 * gnu-nat.c: #include "nat/fork-inferior.h".
11877 * gnu-nat.c (gnu_nat_target::detach): Instead of
11878 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
11879 * gnu-nat.h: #include "inf-child.h".
11880 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
11881 'i386_gnu_nat_target::fetch_registers'.
11882 (gnu_store_registers): Rename/move to
11883 'i386_gnu_nat_target::store_registers'.
11885 * config/i386/nm-i386gnu.h: Don't "#include" any files.
11886 * gnu-nat.h (mach_thread_info): New function.
11887 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
11889 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
11891 2019-02-14 Frederic Konrad <konrad@adacore.com>
11893 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
11895 2019-02-14 Joel Brobecker <brobecker@adacore.com>
11897 * windows-nat.c (windows_add_thread): Add new parameter
11898 "main_thread_p" with default value set to false. Update
11899 function documentation as well as all callers.
11900 (windows_delete_thread): Likewise.
11901 (fake_create_process): Update call to windows_add_thread.
11902 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
11903 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
11904 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
11905 call to windows_delete_thread.
11907 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
11909 * MAINTAINERS: Add Andrew Burgess as global maintainer.
11911 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11913 * symfile.c (find_separate_debug_file): Use canonical path of
11914 sysroot with child_path instead of gdb_sysroot if it is valid.
11916 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11918 * symfile.c (find_separate_debug_file): Use child_path to
11919 determine if an object file is under a sysroot.
11921 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11923 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11924 unittests/child-path-selftests.c.
11925 * common/pathstuff.c (child_path): New function.
11926 * common/pathstuff.h (child_path): New prototype.
11927 * unittests/child-path-selftests.c: New file.
11929 2019-02-12 John Baldwin <jhb@FreeBSD.org>
11931 * symfile.c (find_separate_debug_file): Look for separate debug
11932 files in debug directories under the sysroot.
11934 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11936 * symtab.h (struct minimal_symbol data_p): New const method.
11937 (struct minimal_symbol text_p): Likewise.
11938 * symtab.c (output_source_filename): Use file name style
11939 to print file name.
11940 (print_symbol_info): Likewise.
11941 (print_msymbol_info): Use address style to print addresses.
11942 Use function name style to print executable text symbols.
11943 (expand_symtab_containing_pc): Use data_p.
11944 (find_pc_sect_compunit_symtab): Likewise.
11946 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11948 * breakpoint.c (describe_other_breakpoints): Use address style
11949 to print addresses.
11950 (say_where): Likewise.
11952 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11954 * ada-typeprint.c (print_func_type): Print function name
11955 style to print function name.
11956 * c-typeprint.c (c_print_type_1): Likewise.
11958 2019-02-11 Alan Hayward <alan.hayward@arm.com>
11960 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
11963 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11965 * c-exp.y (direct_abs_decl): Use emplace_back to record the
11968 2019-02-10 Joel Brobecker <brobecker@adacore.com>
11970 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
11971 TYPE_CODE_REF types.
11973 2019-02-08 Jim Wilson <jimw@sifive.com>
11975 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
11976 (riscv_linux_fregset): New.
11977 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
11979 2019-02-07 Tom Tromey <tom@tromey.com>
11981 * thread.c (thread_cancel_execution_command): Update.
11982 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
11984 (struct thread_fsm_ops): Remove.
11985 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
11986 (thread_fsm_should_stop, thread_fsm_return_value)
11987 (thread_fsm_set_finished, thread_fsm_finished_p)
11988 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
11990 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
11991 * infrun.c (clear_proceed_status_thread)
11992 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
11993 (print_stop_event): Update.
11994 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
11996 (step_command_fsm_ops): Remove.
11997 (new_step_command_fsm): Remove.
11999 (step_command_fsm::should_stop): Rename from
12000 step_command_fsm_should_stop.
12001 (step_command_fsm::clean_up): Rename from
12002 step_command_fsm_clean_up.
12003 (step_command_fsm::do_async_reply_reason): Rename from
12004 step_command_fsm_async_reply_reason.
12005 (struct until_next_fsm): Inherit from thread_fsm. Add
12007 (until_next_fsm_ops): Remove.
12008 (new_until_next_fsm): Remove.
12009 (until_next_fsm::should_stop): Rename from
12010 until_next_fsm_should_stop.
12011 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12012 (until_next_fsm::do_async_reply_reason): Rename from
12013 until_next_fsm_async_reply_reason.
12014 (struct finish_command_fsm): Inherit from thread_fsm. Add
12015 constructor. Change type of breakpoint.
12016 (finish_command_fsm_ops): Remove.
12017 (new_finish_command_fsm): Remove.
12018 (finish_command_fsm::should_stop): Rename from
12019 finish_command_fsm_should_stop.
12020 (finish_command_fsm::clean_up): Rename from
12021 finish_command_fsm_clean_up.
12022 (finish_command_fsm::return_value): Rename from
12023 finish_command_fsm_return_value.
12024 (finish_command_fsm::do_async_reply_reason): Rename from
12025 finish_command_fsm_async_reply_reason.
12026 (finish_command): Update.
12027 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12029 (call_thread_fsm_ops): Remove.
12030 (call_thread_fsm::call_thread_fsm): Rename from
12031 new_call_thread_fsm.
12032 (call_thread_fsm::should_stop): Rename from
12033 call_thread_fsm_should_stop.
12034 (call_thread_fsm::should_notify_stop): Rename from
12035 call_thread_fsm_should_notify_stop.
12036 (run_inferior_call, call_function_by_hand_dummy): Update.
12037 * cli/cli-interp.c (should_print_stop_to_console): Update.
12038 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12039 Add constructor. Change type of location_breakpoint,
12041 (until_break_fsm_ops): Remove.
12042 (new_until_break_fsm): Remove.
12043 (until_break_fsm::should_stop): Rename from
12044 until_break_fsm_should_stop.
12045 (until_break_fsm::clean_up): Rename from
12046 until_break_fsm_clean_up.
12047 (until_break_fsm::do_async_reply_reason): Rename from
12048 until_break_fsm_async_reply_reason.
12049 (until_break_command): Update.
12050 * thread-fsm.c: Remove.
12051 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12053 2019-02-07 Tom Tromey <tom@tromey.com>
12055 * yy-remap.h: Add include guard.
12056 * xtensa-tdep.h: Add include guard.
12057 * xcoffread.h: Rename include guard.
12058 * varobj-iter.h: Add include guard.
12059 * tui/tui.h: Rename include guard.
12060 * tui/tui-winsource.h: Rename include guard.
12061 * tui/tui-wingeneral.h: Rename include guard.
12062 * tui/tui-windata.h: Rename include guard.
12063 * tui/tui-win.h: Rename include guard.
12064 * tui/tui-stack.h: Rename include guard.
12065 * tui/tui-source.h: Rename include guard.
12066 * tui/tui-regs.h: Rename include guard.
12067 * tui/tui-out.h: Rename include guard.
12068 * tui/tui-layout.h: Rename include guard.
12069 * tui/tui-io.h: Rename include guard.
12070 * tui/tui-hooks.h: Rename include guard.
12071 * tui/tui-file.h: Rename include guard.
12072 * tui/tui-disasm.h: Rename include guard.
12073 * tui/tui-data.h: Rename include guard.
12074 * tui/tui-command.h: Rename include guard.
12075 * tic6x-tdep.h: Add include guard.
12076 * target/waitstatus.h: Rename include guard.
12077 * target/wait.h: Rename include guard.
12078 * target/target.h: Rename include guard.
12079 * target/resume.h: Rename include guard.
12080 * target-float.h: Rename include guard.
12081 * stabsread.h: Add include guard.
12082 * rs6000-tdep.h: Add include guard.
12083 * riscv-fbsd-tdep.h: Add include guard.
12084 * regformats/regdef.h: Rename include guard.
12085 * record.h: Rename include guard.
12086 * python/python.h: Rename include guard.
12087 * python/python-internal.h: Rename include guard.
12088 * python/py-stopevent.h: Rename include guard.
12089 * python/py-ref.h: Rename include guard.
12090 * python/py-record.h: Rename include guard.
12091 * python/py-record-full.h: Rename include guard.
12092 * python/py-record-btrace.h: Rename include guard.
12093 * python/py-instruction.h: Rename include guard.
12094 * python/py-events.h: Rename include guard.
12095 * python/py-event.h: Rename include guard.
12096 * procfs.h: Add include guard.
12097 * proc-utils.h: Add include guard.
12098 * p-lang.h: Add include guard.
12099 * or1k-tdep.h: Rename include guard.
12100 * observable.h: Rename include guard.
12101 * nto-tdep.h: Rename include guard.
12102 * nat/x86-linux.h: Rename include guard.
12103 * nat/x86-linux-dregs.h: Rename include guard.
12104 * nat/x86-gcc-cpuid.h: Add include guard.
12105 * nat/x86-dregs.h: Rename include guard.
12106 * nat/x86-cpuid.h: Rename include guard.
12107 * nat/ppc-linux.h: Rename include guard.
12108 * nat/mips-linux-watch.h: Rename include guard.
12109 * nat/linux-waitpid.h: Rename include guard.
12110 * nat/linux-ptrace.h: Rename include guard.
12111 * nat/linux-procfs.h: Rename include guard.
12112 * nat/linux-osdata.h: Rename include guard.
12113 * nat/linux-nat.h: Rename include guard.
12114 * nat/linux-namespaces.h: Rename include guard.
12115 * nat/linux-btrace.h: Rename include guard.
12116 * nat/glibc_thread_db.h: Rename include guard.
12117 * nat/gdb_thread_db.h: Rename include guard.
12118 * nat/gdb_ptrace.h: Rename include guard.
12119 * nat/fork-inferior.h: Rename include guard.
12120 * nat/amd64-linux-siginfo.h: Rename include guard.
12121 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12122 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12123 * nat/aarch64-linux.h: Rename include guard.
12124 * nat/aarch64-linux-hw-point.h: Rename include guard.
12125 * mn10300-tdep.h: Add include guard.
12126 * mips-linux-tdep.h: Add include guard.
12127 * mi/mi-parse.h: Rename include guard.
12128 * mi/mi-out.h: Rename include guard.
12129 * mi/mi-main.h: Rename include guard.
12130 * mi/mi-interp.h: Rename include guard.
12131 * mi/mi-getopt.h: Rename include guard.
12132 * mi/mi-console.h: Rename include guard.
12133 * mi/mi-common.h: Rename include guard.
12134 * mi/mi-cmds.h: Rename include guard.
12135 * mi/mi-cmd-break.h: Rename include guard.
12136 * m2-lang.h: Add include guard.
12137 * location.h: Rename include guard.
12138 * linux-record.h: Rename include guard.
12139 * linux-nat.h: Add include guard.
12140 * linux-fork.h: Add include guard.
12141 * i386-darwin-tdep.h: Rename include guard.
12142 * hppa-linux-offsets.h: Add include guard.
12143 * guile/guile.h: Rename include guard.
12144 * guile/guile-internal.h: Rename include guard.
12145 * gnu-nat.h: Rename include guard.
12146 * gdb-stabs.h: Rename include guard.
12147 * frv-tdep.h: Add include guard.
12148 * f-lang.h: Add include guard.
12149 * event-loop.h: Add include guard.
12150 * darwin-nat.h: Rename include guard.
12151 * cp-abi.h: Rename include guard.
12152 * config/sparc/nm-sol2.h: Rename include guard.
12153 * config/nm-nto.h: Rename include guard.
12154 * config/nm-linux.h: Add include guard.
12155 * config/i386/nm-i386gnu.h: Rename include guard.
12156 * config/djgpp/nl_types.h: Rename include guard.
12157 * config/djgpp/langinfo.h: Rename include guard.
12158 * compile/gcc-cp-plugin.h: Add include guard.
12159 * compile/gcc-c-plugin.h: Add include guard.
12160 * compile/compile.h: Rename include guard.
12161 * compile/compile-object-run.h: Rename include guard.
12162 * compile/compile-object-load.h: Rename include guard.
12163 * compile/compile-internal.h: Rename include guard.
12164 * compile/compile-cplus.h: Rename include guard.
12165 * compile/compile-c.h: Rename include guard.
12166 * common/xml-utils.h: Rename include guard.
12167 * common/x86-xstate.h: Rename include guard.
12168 * common/version.h: Rename include guard.
12169 * common/vec.h: Rename include guard.
12170 * common/tdesc.h: Rename include guard.
12171 * common/selftest.h: Rename include guard.
12172 * common/scoped_restore.h: Rename include guard.
12173 * common/scoped_mmap.h: Rename include guard.
12174 * common/scoped_fd.h: Rename include guard.
12175 * common/safe-iterator.h: Rename include guard.
12176 * common/run-time-clock.h: Rename include guard.
12177 * common/refcounted-object.h: Rename include guard.
12178 * common/queue.h: Rename include guard.
12179 * common/ptid.h: Rename include guard.
12180 * common/print-utils.h: Rename include guard.
12181 * common/preprocessor.h: Rename include guard.
12182 * common/pathstuff.h: Rename include guard.
12183 * common/observable.h: Rename include guard.
12184 * common/netstuff.h: Rename include guard.
12185 * common/job-control.h: Rename include guard.
12186 * common/host-defs.h: Rename include guard.
12187 * common/gdb_wait.h: Rename include guard.
12188 * common/gdb_vecs.h: Rename include guard.
12189 * common/gdb_unlinker.h: Rename include guard.
12190 * common/gdb_unique_ptr.h: Rename include guard.
12191 * common/gdb_tilde_expand.h: Rename include guard.
12192 * common/gdb_sys_time.h: Rename include guard.
12193 * common/gdb_string_view.h: Rename include guard.
12194 * common/gdb_splay_tree.h: Rename include guard.
12195 * common/gdb_setjmp.h: Rename include guard.
12196 * common/gdb_ref_ptr.h: Rename include guard.
12197 * common/gdb_optional.h: Rename include guard.
12198 * common/gdb_locale.h: Rename include guard.
12199 * common/gdb_assert.h: Rename include guard.
12200 * common/filtered-iterator.h: Rename include guard.
12201 * common/filestuff.h: Rename include guard.
12202 * common/fileio.h: Rename include guard.
12203 * common/environ.h: Rename include guard.
12204 * common/common-utils.h: Rename include guard.
12205 * common/common-types.h: Rename include guard.
12206 * common/common-regcache.h: Rename include guard.
12207 * common/common-inferior.h: Rename include guard.
12208 * common/common-gdbthread.h: Rename include guard.
12209 * common/common-exceptions.h: Rename include guard.
12210 * common/common-defs.h: Rename include guard.
12211 * common/common-debug.h: Rename include guard.
12212 * common/cleanups.h: Rename include guard.
12213 * common/buffer.h: Rename include guard.
12214 * common/btrace-common.h: Rename include guard.
12215 * common/break-common.h: Rename include guard.
12216 * cli/cli-utils.h: Rename include guard.
12217 * cli/cli-style.h: Rename include guard.
12218 * cli/cli-setshow.h: Rename include guard.
12219 * cli/cli-script.h: Rename include guard.
12220 * cli/cli-interp.h: Rename include guard.
12221 * cli/cli-decode.h: Rename include guard.
12222 * cli/cli-cmds.h: Rename include guard.
12223 * charset-list.h: Add include guard.
12224 * buildsym-legacy.h: Rename include guard.
12225 * bfin-tdep.h: Add include guard.
12226 * ax.h: Rename include guard.
12227 * arm-linux-tdep.h: Add include guard.
12228 * arm-fbsd-tdep.h: Add include guard.
12229 * arch/xtensa.h: Rename include guard.
12230 * arch/tic6x.h: Add include guard.
12231 * arch/i386.h: Add include guard.
12232 * arch/arm.h: Rename include guard.
12233 * arch/arm-linux.h: Rename include guard.
12234 * arch/arm-get-next-pcs.h: Rename include guard.
12235 * arch/amd64.h: Add include guard.
12236 * arch/aarch64-insn.h: Rename include guard.
12237 * arch-utils.h: Rename include guard.
12238 * annotate.h: Add include guard.
12239 * amd64-darwin-tdep.h: Rename include guard.
12240 * aarch64-linux-tdep.h: Add include guard.
12241 * aarch64-fbsd-tdep.h: Add include guard.
12242 * aarch32-linux-nat.h: Add include guard.
12244 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12246 * macrotab.c (macro_define_internal): New function that
12247 factorizes macro_define_object_internal and macro_define_function
12249 (macro_define_object_internal): Use macro_define_internal.
12250 (macro_define_function): Likewise.
12252 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12254 * macrocmd.c (extract_identifier): Return
12255 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12258 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12260 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12262 2019-02-05 Tom Tromey <tom@tromey.com>
12264 * target.c (target_stack::unpush): Move assertion earlier.
12266 2019-01-30 Tom Tromey <tom@tromey.com>
12269 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12270 (gdbpy_parse_and_eval): Likewise.
12271 * python/python-internal.h (gdbpy_allow_threads): New class.
12273 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12275 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12276 (aarch64_fbsd_fpregmap): Move earlier.
12277 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12278 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12279 instead of individual calls to trad_frame_set_reg_addr.
12280 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12282 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12283 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12284 instead of individual calls to trad_frame_set_reg_addr.
12286 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12288 * CONTRIBUTE: Replace contribution list with wiki link.
12290 2019-01-25 Tom Tromey <tom@tromey.com>
12292 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12294 2019-01-25 Tom Tromey <tom@tromey.com>
12296 * xtensa-linux-nat.c: Fix common/ includes.
12297 * xml-support.h: Fix common/ includes.
12298 * xml-support.c: Fix common/ includes.
12299 * x86-linux-nat.c: Fix common/ includes.
12300 * windows-nat.c: Fix common/ includes.
12301 * varobj.h: Fix common/ includes.
12302 * varobj.c: Fix common/ includes.
12303 * value.c: Fix common/ includes.
12304 * valops.c: Fix common/ includes.
12305 * utils.c: Fix common/ includes.
12306 * unittests/xml-utils-selftests.c: Fix common/ includes.
12307 * unittests/utils-selftests.c: Fix common/ includes.
12308 * unittests/unpack-selftests.c: Fix common/ includes.
12309 * unittests/tracepoint-selftests.c: Fix common/ includes.
12310 * unittests/style-selftests.c: Fix common/ includes.
12311 * unittests/string_view-selftests.c: Fix common/ includes.
12312 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12313 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12314 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12315 * unittests/rsp-low-selftests.c: Fix common/ includes.
12316 * unittests/parse-connection-spec-selftests.c: Fix common/
12318 * unittests/optional-selftests.c: Fix common/ includes.
12319 * unittests/offset-type-selftests.c: Fix common/ includes.
12320 * unittests/observable-selftests.c: Fix common/ includes.
12321 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12322 * unittests/memrange-selftests.c: Fix common/ includes.
12323 * unittests/memory-map-selftests.c: Fix common/ includes.
12324 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12325 * unittests/function-view-selftests.c: Fix common/ includes.
12326 * unittests/environ-selftests.c: Fix common/ includes.
12327 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12328 * unittests/common-utils-selftests.c: Fix common/ includes.
12329 * unittests/cli-utils-selftests.c: Fix common/ includes.
12330 * unittests/array-view-selftests.c: Fix common/ includes.
12331 * ui-file.c: Fix common/ includes.
12332 * tui/tui-io.c: Fix common/ includes.
12333 * tracepoint.h: Fix common/ includes.
12334 * tracepoint.c: Fix common/ includes.
12335 * tracefile-tfile.c: Fix common/ includes.
12336 * top.h: Fix common/ includes.
12337 * top.c: Fix common/ includes.
12338 * thread.c: Fix common/ includes.
12339 * target/waitstatus.h: Fix common/ includes.
12340 * target/waitstatus.c: Fix common/ includes.
12341 * target.h: Fix common/ includes.
12342 * target.c: Fix common/ includes.
12343 * target-memory.c: Fix common/ includes.
12344 * target-descriptions.c: Fix common/ includes.
12345 * symtab.h: Fix common/ includes.
12346 * symfile.c: Fix common/ includes.
12347 * stap-probe.c: Fix common/ includes.
12348 * spu-linux-nat.c: Fix common/ includes.
12349 * sparc-nat.c: Fix common/ includes.
12350 * source.c: Fix common/ includes.
12351 * solib.c: Fix common/ includes.
12352 * solib-target.c: Fix common/ includes.
12353 * ser-unix.c: Fix common/ includes.
12354 * ser-tcp.c: Fix common/ includes.
12355 * ser-pipe.c: Fix common/ includes.
12356 * ser-base.c: Fix common/ includes.
12357 * selftest-arch.c: Fix common/ includes.
12358 * s12z-tdep.c: Fix common/ includes.
12359 * rust-exp.y: Fix common/ includes.
12360 * rs6000-aix-tdep.c: Fix common/ includes.
12361 * riscv-tdep.c: Fix common/ includes.
12362 * remote.c: Fix common/ includes.
12363 * remote-notif.h: Fix common/ includes.
12364 * remote-fileio.h: Fix common/ includes.
12365 * remote-fileio.c: Fix common/ includes.
12366 * regcache.h: Fix common/ includes.
12367 * regcache.c: Fix common/ includes.
12368 * record-btrace.c: Fix common/ includes.
12369 * python/python.c: Fix common/ includes.
12370 * python/py-type.c: Fix common/ includes.
12371 * python/py-inferior.c: Fix common/ includes.
12372 * progspace.h: Fix common/ includes.
12373 * producer.c: Fix common/ includes.
12374 * procfs.c: Fix common/ includes.
12375 * proc-api.c: Fix common/ includes.
12376 * printcmd.c: Fix common/ includes.
12377 * ppc-linux-nat.c: Fix common/ includes.
12378 * parser-defs.h: Fix common/ includes.
12379 * osdata.c: Fix common/ includes.
12380 * obsd-nat.c: Fix common/ includes.
12381 * nat/x86-linux.c: Fix common/ includes.
12382 * nat/x86-linux-dregs.c: Fix common/ includes.
12383 * nat/x86-dregs.h: Fix common/ includes.
12384 * nat/x86-dregs.c: Fix common/ includes.
12385 * nat/ppc-linux.c: Fix common/ includes.
12386 * nat/mips-linux-watch.h: Fix common/ includes.
12387 * nat/mips-linux-watch.c: Fix common/ includes.
12388 * nat/linux-waitpid.c: Fix common/ includes.
12389 * nat/linux-ptrace.h: Fix common/ includes.
12390 * nat/linux-ptrace.c: Fix common/ includes.
12391 * nat/linux-procfs.c: Fix common/ includes.
12392 * nat/linux-personality.c: Fix common/ includes.
12393 * nat/linux-osdata.c: Fix common/ includes.
12394 * nat/linux-namespaces.c: Fix common/ includes.
12395 * nat/linux-btrace.h: Fix common/ includes.
12396 * nat/linux-btrace.c: Fix common/ includes.
12397 * nat/fork-inferior.c: Fix common/ includes.
12398 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12399 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12400 * nat/aarch64-linux.c: Fix common/ includes.
12401 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12402 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12403 * namespace.h: Fix common/ includes.
12404 * mips-linux-tdep.c: Fix common/ includes.
12405 * minsyms.c: Fix common/ includes.
12406 * mi/mi-parse.h: Fix common/ includes.
12407 * mi/mi-main.c: Fix common/ includes.
12408 * mi/mi-cmd-env.c: Fix common/ includes.
12409 * memrange.h: Fix common/ includes.
12410 * memattr.c: Fix common/ includes.
12411 * maint.h: Fix common/ includes.
12412 * maint.c: Fix common/ includes.
12413 * main.c: Fix common/ includes.
12414 * machoread.c: Fix common/ includes.
12415 * location.c: Fix common/ includes.
12416 * linux-thread-db.c: Fix common/ includes.
12417 * linux-nat.c: Fix common/ includes.
12418 * linux-fork.c: Fix common/ includes.
12419 * inline-frame.c: Fix common/ includes.
12420 * infrun.c: Fix common/ includes.
12421 * inflow.c: Fix common/ includes.
12422 * inferior.h: Fix common/ includes.
12423 * inferior.c: Fix common/ includes.
12424 * infcmd.c: Fix common/ includes.
12425 * inf-ptrace.c: Fix common/ includes.
12426 * inf-child.c: Fix common/ includes.
12427 * ia64-linux-nat.c: Fix common/ includes.
12428 * i387-tdep.c: Fix common/ includes.
12429 * i386-tdep.c: Fix common/ includes.
12430 * i386-linux-tdep.c: Fix common/ includes.
12431 * i386-linux-nat.c: Fix common/ includes.
12432 * i386-go32-tdep.c: Fix common/ includes.
12433 * i386-fbsd-tdep.c: Fix common/ includes.
12434 * i386-fbsd-nat.c: Fix common/ includes.
12435 * guile/scm-type.c: Fix common/ includes.
12436 * guile/guile.c: Fix common/ includes.
12437 * go32-nat.c: Fix common/ includes.
12438 * gnu-nat.c: Fix common/ includes.
12439 * gdbthread.h: Fix common/ includes.
12440 * gdbarch-selftests.c: Fix common/ includes.
12441 * gdb_usleep.c: Fix common/ includes.
12442 * gdb_select.h: Fix common/ includes.
12443 * gdb_bfd.c: Fix common/ includes.
12444 * gcore.c: Fix common/ includes.
12445 * fork-child.c: Fix common/ includes.
12446 * findvar.c: Fix common/ includes.
12447 * fbsd-nat.c: Fix common/ includes.
12448 * event-top.c: Fix common/ includes.
12449 * event-loop.c: Fix common/ includes.
12450 * dwarf2read.c: Fix common/ includes.
12451 * dwarf2loc.c: Fix common/ includes.
12452 * dwarf2-frame.c: Fix common/ includes.
12453 * dwarf-index-cache.c: Fix common/ includes.
12454 * dtrace-probe.c: Fix common/ includes.
12455 * disasm-selftests.c: Fix common/ includes.
12456 * defs.h: Fix common/ includes.
12457 * csky-tdep.c: Fix common/ includes.
12458 * cp-valprint.c: Fix common/ includes.
12459 * cp-support.h: Fix common/ includes.
12460 * cp-support.c: Fix common/ includes.
12461 * corelow.c: Fix common/ includes.
12462 * completer.h: Fix common/ includes.
12463 * completer.c: Fix common/ includes.
12464 * compile/compile.c: Fix common/ includes.
12465 * compile/compile-loc2c.c: Fix common/ includes.
12466 * compile/compile-cplus-types.c: Fix common/ includes.
12467 * compile/compile-cplus-symbols.c: Fix common/ includes.
12468 * command.h: Fix common/ includes.
12469 * cli/cli-dump.c: Fix common/ includes.
12470 * cli/cli-cmds.c: Fix common/ includes.
12471 * charset.c: Fix common/ includes.
12472 * build-id.c: Fix common/ includes.
12473 * btrace.h: Fix common/ includes.
12474 * btrace.c: Fix common/ includes.
12475 * breakpoint.h: Fix common/ includes.
12476 * breakpoint.c: Fix common/ includes.
12478 (enum agent_op): Fix common/ includes.
12479 * ax-general.c (struct aop_map): Fix common/ includes.
12480 * ax-gdb.c: Fix common/ includes.
12481 * auxv.c: Fix common/ includes.
12482 * auto-load.c: Fix common/ includes.
12483 * arm-tdep.c: Fix common/ includes.
12484 * arch/riscv.c: Fix common/ includes.
12485 * arch/ppc-linux-common.c: Fix common/ includes.
12486 * arch/i386.c: Fix common/ includes.
12487 * arch/arm.c: Fix common/ includes.
12488 * arch/arm-linux.c: Fix common/ includes.
12489 * arch/arm-get-next-pcs.c: Fix common/ includes.
12490 * arch/amd64.c: Fix common/ includes.
12491 * arch/aarch64.c: Fix common/ includes.
12492 * arch/aarch64-insn.c: Fix common/ includes.
12493 * arch-utils.c: Fix common/ includes.
12494 * amd64-windows-tdep.c: Fix common/ includes.
12495 * amd64-tdep.c: Fix common/ includes.
12496 * amd64-sol2-tdep.c: Fix common/ includes.
12497 * amd64-obsd-tdep.c: Fix common/ includes.
12498 * amd64-nbsd-tdep.c: Fix common/ includes.
12499 * amd64-linux-tdep.c: Fix common/ includes.
12500 * amd64-linux-nat.c: Fix common/ includes.
12501 * amd64-fbsd-tdep.c: Fix common/ includes.
12502 * amd64-fbsd-nat.c: Fix common/ includes.
12503 * amd64-dicos-tdep.c: Fix common/ includes.
12504 * amd64-darwin-tdep.c: Fix common/ includes.
12505 * agent.c: Fix common/ includes.
12506 * ada-lang.h: Fix common/ includes.
12507 * ada-lang.c: Fix common/ includes.
12508 * aarch64-tdep.c: Fix common/ includes.
12510 2019-01-25 Tom Tromey <tom@tromey.com>
12512 * common/create-version.sh: Use common/version.h.
12514 2019-01-24 Pedro Alves <palves@redhat.com>
12516 * infrun.c (signal_stop, signal_print, signal_program)
12517 (signal_catch, signal_pass): Now arrays instead of pointers.
12518 (update_signals_program_target, do_target_resume)
12519 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
12520 * linux-nat.c (linux_nat_target::pass_signals)
12521 (linux_nat_target::create_inferior, linux_nat_target::attach):
12523 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
12524 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
12525 * procfs.c (procfs_target::pass_signals): Adjust.
12526 * record-full.c (record_full_target::resume): Adjust.
12527 * remote.c (remote_target::pass_signals)
12528 (remote_target::program_signals): Adjust.
12529 * target-debug.h (target_debug_print_signals): Now takes a
12530 gdb::array_view as parameter. Adjust.
12531 * target.h (target_ops) <pass_signals, program_signals>: Replace
12532 pointer and length parameters with gdb::array_view.
12533 (target_pass_signals, target_program_signals): Likewise.
12534 * target-delegates.c: Regenerate.
12536 2019-01-24 Pedro Alves <palves@redhat.com>
12538 * common/forward-scope-exit.h
12539 (forward_scope_exit::forward_scope_exit): Pass arguments to
12540 m_bind_function directly, instead of creating a std::bind and
12543 2019-01-24 Alan Hayward <alan.hayward@arm.com>
12545 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12546 for static members.
12547 (pass_in_v_vfp_candidate): Likewise.
12549 2019-01-23 Tom Tromey <tom@tromey.com>
12550 Pedro Alves <palves@redhat.com>
12552 * regcache.c (class regcache_invalidator): Remove.
12553 (regcache::raw_write): Use make_scope_exit.
12555 2019-01-23 Tom Tromey <tom@tromey.com>
12557 * ui-out.h (class ui_out_emit_type): Update comment.
12559 2019-01-23 Tom Tromey <tom@tromey.com>
12561 * infrun.c (fetch_inferior_event): Update comment.
12563 2019-01-23 Tom Tromey <tom@tromey.com>
12564 Pedro Alves <palves@redhat.com>
12566 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
12568 (fetch_inferior_event): Use SCOPE_EXIT.
12571 2019-01-23 Tom Tromey <tom@tromey.com>
12572 Pedro Alves <palves@redhat.com>
12574 * infrun.c (disable_thread_events): Delete.
12575 (stop_all_threads): Use SCOPE_EXIT.
12577 2019-01-23 Tom Tromey <tom@tromey.com>
12578 Pedro Alves <palves@redhat.com>
12580 * symfile.c: Include forward-scope-exit.h.
12581 (clear_symtab_users_cleanup): Replace forward declaration with
12582 a FORWARD_SCOPE_EXIT.
12583 (syms_from_objfile_1): Use the forward_scope_exit and
12584 gdb::optional instead of cleanup_function.
12585 (reread_symbols): Use the forward_scope_exit instead of
12587 (clear_symtab_users_cleanup): Remove function.
12589 2019-01-23 Tom Tromey <tom@tromey.com>
12590 Pedro Alves <palves@redhat.com>
12592 * linux-nat.c: Include scope-exit.h.
12593 (cleanup_target_stop): Remove.
12594 (linux_nat_target::static_tracepoint_markers_by_strid): Use
12597 2019-01-23 Tom Tromey <tom@tromey.com>
12598 Pedro Alves <palves@redhat.com>
12600 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
12601 (call_function_by_hand_dummy): Use SCOPE_EXIT.
12603 2019-01-23 Tom Tromey <tom@tromey.com>
12604 Andrew Burgess <andrew.burgess@embecosm.com>
12605 Pedro Alves <palves@redhat.com>
12607 * infrun.c (fetch_inferior_event): Use scope_exit.
12608 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
12609 * top.c (execute_command): Use scope_exit.
12610 * breakpoint.c (bpstat_do_actions): Use scope_exit.
12611 * utils.c (do_bpstat_clear_actions_cleanup)
12612 (make_bpstat_clear_actions_cleanup): Remove.
12614 2019-01-23 Tom Tromey <tom@tromey.com>
12615 Pedro Alves <palves@redhat.com>
12617 * infrun.c: Include "common/scope-exit.h"
12618 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
12619 (wait_for_inferior): Use SCOPE_EXIT.
12620 (fetch_inferior_event): Use scope_exit.
12622 2019-01-23 Tom Tromey <tom@tromey.com>
12623 Pedro Alves <palves@redhat.com>
12625 * breakpoint.c (create_breakpoint): Remove cleanup.
12627 2019-01-23 Tom Tromey <tom@tromey.com>
12628 Andrew Burgess <andrew.burgess@embecosm.com>
12629 Pedro Alves <palves@redhat.com>
12631 2019-01-23 Pedro Alves <palves@redhat.com>
12633 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
12635 2019-01-23 Pedro Alves <palves@redhat.com>
12636 Andrew Burgess <andrew.burgess@embecosm.com>
12638 * gdbthread.h: Include "common/forward-scope-exit.h".
12639 (scoped_finish_thread_state): Redefine custom class in terms of
12640 forward_scope_exit.
12642 2019-01-23 Pedro Alves <palves@redhat.com>
12643 Andrew Burgess <andrew.burgess@embecosm.com>
12645 * common/forward-scope-exit.h: New file.
12647 2019-01-23 Pedro Alves <palves@redhat.com>
12648 Andrew Burgess <andrew.burgess@embecosm.com>
12649 Tom Tromey <tom@tromey.com>
12651 * common/scope-exit.h: New file.
12653 2019-01-23 Pedro Alves <palves@redhat.com>
12655 * common/preprocessor.h (ESC): Rename to ...
12656 (ESC_PARENS): ... this.
12657 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
12658 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
12660 2019-01-23 Tom Tromey <tom@tromey.com>
12662 * language.h (class scoped_switch_to_sym_language_if_auto):
12663 Initialize m_lang in both cases.
12665 2019-01-23 Alan Hayward <alan.hayward@arm.com>
12667 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
12670 2019-01-22 Tom Tromey <tom@tromey.com>
12672 * corelow.c: Do not include sys/file.h.
12674 2019-01-22 Tom Tromey <tom@tromey.com>
12676 * tui/tui-wingeneral.h: Include gdb_curses.h.
12678 2019-01-22 Tom Tromey <tom@tromey.com>
12680 * source-cache.h (class source_cache) <get_source_lines,
12681 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
12683 2019-01-22 Tom Tromey <tom@tromey.com>
12685 * remote-fileio.h (struct remote_target): Declare.
12687 2019-01-22 Tom Tromey <tom@tromey.com>
12689 * python/py-arch.c: Do not include py-ref.h.
12690 * python/py-bpevent.c: Do not include py-ref.h.
12691 * python/py-cmd.c: Do not include py-ref.h.
12692 * python/py-continueevent.c: Do not include py-ref.h.
12693 * python/py-event.h: Do not include py-ref.h.
12694 * python/py-evtregistry.c: Do not include py-ref.h.
12695 * python/py-finishbreakpoint.c: Do not include py-ref.h.
12696 * python/py-frame.c: Do not include py-ref.h.
12697 * python/py-framefilter.c: Do not include py-ref.h.
12698 * python/py-function.c: Do not include py-ref.h.
12699 * python/py-infevents.c: Do not include py-ref.h.
12700 * python/py-linetable.c: Do not include py-ref.h.
12701 * python/py-objfile.c: Do not include py-ref.h.
12702 * python/py-param.c: Do not include py-ref.h.
12703 * python/py-prettyprint.c: Do not include py-ref.h.
12704 * python/py-progspace.c: Do not include py-ref.h.
12705 * python/py-symbol.c: Do not include py-ref.h.
12706 * python/py-symtab.c: Do not include py-ref.h.
12707 * python/py-type.c: Do not include py-ref.h.
12708 * python/py-unwind.c: Do not include py-ref.h.
12709 * python/py-utils.c: Do not include py-ref.h.
12710 * python/py-value.c: Do not include py-ref.h.
12711 * python/py-varobj.c: Do not include py-ref.h.
12712 * python/py-xmethods.c: Do not include py-ref.h.
12713 * python/python.c: Do not include py-ref.h.
12714 * varobj.c: Do not include py-ref.h.
12716 2019-01-22 Tom Tromey <tom@tromey.com>
12718 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
12719 keyword for bcache.
12721 2019-01-22 Tom Tromey <tom@tromey.com>
12723 * compile/compile-cplus-types.c: Remove a comment by #include.
12725 2019-01-22 Tom Tromey <tom@tromey.com>
12727 * compile/gcc-c-plugin.h: Include compile-internal.h.
12729 2019-01-22 Tom Tromey <tom@tromey.com>
12731 * stabsread.c (EXTERN): Do not define.
12732 (symnum, next_symbol_text_func, processing_gcc_compilation)
12733 (within_function, global_sym_chain, global_stabs)
12734 (previous_stab_code, this_object_header_files)
12735 (n_this_object_header_files)
12736 (n_allocated_this_object_header_files): Define.
12737 * stabsread.h (EXTERN): Never define. Use "extern".
12739 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12741 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
12744 2019-01-21 Tom Tromey <tom@tromey.com>
12746 * ui-out.c: Fix includes.
12747 * tui/tui-source.c: Fix includes.
12748 * target.c: Fix includes.
12749 * remote.c: Fix includes.
12750 * regcache.c: Fix includes.
12751 * python/py-block.c: Fix includes.
12752 * printcmd.c: Fix includes.
12753 * or1k-tdep.c: Fix includes.
12754 * mi/mi-main.c: Fix includes.
12755 * m32r-tdep.c: Fix includes.
12756 * csky-tdep.c: Fix includes.
12757 * compile/compile-cplus-types.c: Fix includes.
12758 * cli/cli-interp.c: Fix includes.
12760 2019-01-21 Alan Hayward <alan.hayward@arm.com>
12762 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
12765 2019-01-16 Tom Tromey <tom@tromey.com>
12767 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
12769 (struct objfile) <msymbols_range>: Move from top level.
12770 <msymbols>: New method.
12771 (class objfile_msymbols): Remove.
12772 * symtab.c (default_collect_symbol_completion_matches_break_on):
12774 * symmisc.c (dump_msymbols): Update.
12775 * stabsread.c (scan_file_globals): Update.
12776 * objc-lang.c (info_selectors_command, info_classes_command)
12777 (find_methods): Update.
12778 * minsyms.c (find_solib_trampoline_target): Update.
12779 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
12780 * coffread.c (coff_symfile_read): Update.
12781 * ada-lang.c (ada_lookup_simple_minsym)
12782 (ada_collect_symbol_completion_matches): Update.
12784 2019-01-16 Tom Tromey <tom@tromey.com>
12786 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
12787 type. Remove no-argument constructor.
12788 <iterator::operator++>: Simplify.
12790 <end>: Use minimal_symbol_count.
12792 2019-01-16 Tom Tromey <tom@tromey.com>
12794 * objfiles.h (struct objfile) <psymtabs>: New method.
12795 (class objfile_psymtabs): Remove.
12796 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
12798 <range>: New method.
12799 (require_partial_symbols): Change return type.
12800 * psymtab.c (require_partial_symbols)
12801 (psym_expand_symtabs_matching): Update.
12802 * mdebugread.c (parse_partial_symbols): Update.
12803 * dbxread.c (dbx_end_psymtab): Update.
12805 2019-01-15 Tom Tromey <tom@tromey.com>
12807 * symtab.c (lookup_objfile_from_block)
12808 (lookup_symbol_in_objfile_symtabs)
12809 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
12810 (find_line_symtab, info_sources_command)
12811 (default_collect_symbol_completion_matches_break_on)
12812 (make_source_files_completion_list): Update.
12813 * symmisc.c (print_objfile_statistics, dump_objfile)
12814 (maintenance_print_symbols, maintenance_info_symtabs)
12815 (maintenance_check_symtabs, maintenance_info_line_tables):
12817 * source.c (select_source_symtab)
12818 (forget_cached_source_info_for_objfile): Update.
12819 * objfiles.h (class objfile_compunits): Remove.
12820 (struct objfile) <compunits_range>: New typedef.
12821 (compunits): New method.
12822 * objfiles.c (objfile_relocate1): Update.
12823 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12824 * maint.c (count_symtabs_and_blocks): Update.
12825 * linespec.c (iterate_over_all_matching_symtabs): Update.
12826 * cp-support.c (add_symbol_overload_list_qualified): Update.
12827 * coffread.c (coff_symtab_read): Update.
12828 * ada-lang.c (add_nonlocal_symbols)
12829 (ada_collect_symbol_completion_matches)
12830 (ada_add_global_exceptions): Update.
12832 2019-01-15 Tom Tromey <tom@tromey.com>
12834 * progspace.h (program_space) <objfiles_safe_range>: New
12836 <objfiles_safe>: New method.
12837 * objfiles.h (class all_objfiles_safe): Remove.
12838 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
12839 * jit.c (jit_inferior_exit_hook): Update.
12841 2019-01-17 Tom Tromey <tom@tromey.com>
12843 * progspace.h (program_space) <objfiles_range>: New typedef.
12844 <objfiles>: New method.
12845 <objfiles_head>: Rename from objfiles.
12846 (object_files): Update.
12847 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
12848 * guile/scm-pretty-print.c
12849 (ppscm_find_pretty_printer_from_objfiles): Update.
12850 * guile/scm-objfile.c (gdbscm_objfiles): Update.
12851 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
12853 * python/py-progspace.c (pspy_get_objfiles): Update.
12854 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
12856 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
12857 (objfpy_lookup_objfile_by_build_id): Update.
12858 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
12859 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
12861 * symtab.c (iterate_over_symtabs, matching_obj_sections)
12862 (expand_symtab_containing_pc, lookup_objfile_from_block)
12863 (lookup_static_symbol, basic_lookup_transparent_type)
12864 (find_pc_sect_compunit_symtab, find_symbol_at_address)
12865 (find_line_symtab, info_sources_command)
12866 (default_collect_symbol_completion_matches_break_on)
12867 (make_source_files_completion_list, find_main_name): Update.
12868 * symmisc.c (print_symbol_bcache_statistics)
12869 (print_objfile_statistics, maintenance_print_symbols)
12870 (maintenance_print_msymbols, maintenance_print_objfiles)
12871 (maintenance_info_symtabs, maintenance_check_symtabs)
12872 (maintenance_expand_symtabs, maintenance_info_line_tables):
12874 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
12875 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
12876 (map_overlay_command, unmap_overlay_command)
12877 (simple_overlay_update, expand_symtabs_matching)
12878 (map_symbol_filenames): Update.
12879 * symfile-debug.c (set_debug_symfile): Update.
12880 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
12882 * source.c (select_source_symtab, forget_cached_source_info):
12884 * solib.c (solib_read_symbols): Update.
12885 * solib-spu.c (append_ocl_sos): Update.
12886 * psymtab.c (maintenance_print_psymbols)
12887 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
12888 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
12889 * printcmd.c (info_symbol_command): Update.
12890 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
12892 * objfiles.h (class all_objfiles): Remove.
12893 * objfiles.c (have_partial_symbols, have_full_symbols)
12894 (have_minimal_symbols, qsort_cmp, update_section_map)
12895 (shared_objfile_contains_address_p)
12896 (default_iterate_over_objfiles_in_search_order): Update.
12897 * objc-lang.c (info_selectors_command, info_classes_command)
12898 (find_methods): Update.
12899 * minsyms.c (find_solib_trampoline_target): Update.
12900 * maint.c (maintenance_info_sections)
12901 (maintenance_translate_address, count_symtabs_and_blocks):
12903 * main.c (captured_main_1): Update.
12904 * linux-thread-db.c (try_thread_db_load_from_pdir)
12905 (has_libpthread): Update.
12906 * linespec.c (iterate_over_all_matching_symtabs)
12907 (search_minsyms_for_name): Update.
12908 * jit.c (jit_find_objf_with_entry_addr): Update.
12909 * hppa-tdep.c (find_unwind_entry)
12910 (hppa_lookup_stub_minimal_symbol): Update.
12911 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
12913 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
12914 (elf_gnu_ifunc_resolve_by_got): Update.
12915 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
12916 * dwarf-index-write.c (save_gdb_index_command): Update.
12917 * cp-support.c (add_symbol_overload_list_qualified): Update.
12918 * breakpoint.c (create_overlay_event_breakpoint)
12919 (create_longjmp_master_breakpoint)
12920 (create_std_terminate_master_breakpoint)
12921 (create_exception_master_breakpoint): Update.
12922 * blockframe.c (find_pc_partial_function): Update.
12923 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
12924 (ada_collect_symbol_completion_matches)
12925 (ada_add_global_exceptions): Update.
12927 2019-01-17 Tom Tromey <tom@tromey.com>
12929 * solib-target.c (lm_info_target_p): Remove typedef. Don't
12931 (solib_target_parse_libraries): Change return type.
12932 (library_list_start_segment, library_list_start_section)
12933 (library_list_end_library, library_list_start_library); Update.
12934 (solib_target_free_library_list): Remove.
12935 (solib_target_parse_libraries): Remove cleanup. Change return
12937 (solib_target_current_sos): Update.
12939 2019-01-17 Tom Tromey <tromey@bapiya>
12941 * valprint.c: Replace "the the" with "the".
12942 * symtab.c: Replace "the the" with "the".
12943 * solib.c: Replace "the the" with "the".
12944 * solib-dsbt.c: Replace "the the" with "the".
12945 * linespec.c: Replace "the the" with "the".
12946 * dwarf2loc.h: Replace "the the" with "the".
12947 * amd64-windows-tdep.c: Replace "the the" with "the".
12948 * aarch64-tdep.c: Replace "the the" with "the".
12950 2019-01-16 Keith Seitz <keiths@redhat.com>
12953 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
12954 <builder>: Rename to ..
12955 <m_builder>: ... this and make private.
12956 (dwarf2_cu::get_builder): New method. Change all users of
12957 `builder' to use this method.
12958 (dwarf2_start_symtab): Move to ...
12959 (dwarf2_cu::start_symtab): ... here. Update all callers
12960 (setup_type_unit_groups): Move to ...
12961 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
12963 (dwarf2_cu::reset_builder): New method.
12964 (process_full_compunit, process_full_type_unit): Use
12965 dwarf2_cu::reset_builder.
12966 (follow_die_offset): Record the ancestor CU if it is different
12967 from the followed DIE's CU.
12968 (follow_die_sig_1): Likewise.
12970 2019-01-15 Tom Tromey <tom@tromey.com>
12972 * remote.c (class remote_state) <buf>: Now a char_vector.
12973 <buf_size>: Remove.
12974 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
12976 (remote_target::getpkt_or_notif_sane_1)
12977 (remote_target::getpkt_sane)
12978 (remote_target::getpkt_or_notif_sane): Likewise.
12979 (class remote_target) <putpkt>: New overload.
12980 (remote_target::read_frame): Change type of "buf_p". Remove
12981 sizeof_p parameter.
12982 (packet_ok): New overload.
12983 (packet_check_result): New overload.
12986 2019-01-14 Tom Tromey <tom@tromey.com>
12988 * remote-notif.c (handle_notification, remote_notif_ack)
12989 (remote_notif_parse): Make "buf" const.
12990 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
12992 (remote_notif_parse, remote_notif_ack, handle_notification):
12994 * remote.c (remote_notif_stop_parse): Make "buf" const.
12995 (remote_target::remote_parse_stop_reply): Make "buf" const.
12996 (remote_notif_stop_ack): Make "buf" const.
12998 2019-01-14 Tom Tromey <tom@tromey.com>
13000 * remote.c (remote_console_output): Make parameter const.
13002 2019-01-14 Tom Tromey <tom@tromey.com>
13004 * target-debug.h (target_debug_print_signals): Constify.
13005 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13006 * procfs.c (procfs_target::pass_signals): Update.
13007 * linux-nat.c (linux_nat_target::pass_signals): Update.
13008 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13009 * target-delegates.c: Rebuild.
13010 * remote.c (remote_target::program_signals): Update.
13011 (remote_target::pass_signals): Update.
13012 * target.c (target_pass_signals): Constify argument.
13013 (target_program_signals): Likewise.
13014 * target.h (struct target_ops) <pass_signals, program_signals>:
13016 (target_pass_signals, target_program_signals): Constify argument.
13018 2019-01-14 Tom Tromey <tom@tromey.com>
13021 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13023 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13025 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13027 * rs6000-tdep.c: Include reggroups.h.
13028 (IS_V_ALIAS_PSEUDOREG): Define.
13029 (rs6000_register_name): Return names for the "vX" aliases.
13030 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13031 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13032 aliases. Call default_register_reggroup_p for all other
13034 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13036 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13037 Handle "vX" aliases.
13038 (v_alias_pseudo_register_collect): New function.
13039 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13040 (rs6000_gdbarch_init): Initialize "vX" aliases as
13041 pseudo-registers. Restore registration of
13042 rs6000_pseudo_register_reggroup_p with
13043 set_tdesc_pseudo_register_reggroup_p.
13045 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13047 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13048 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13049 set_gdbarch_num_pseudo_regs.
13051 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13053 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13054 Remove arg prefixname, add do_set and do_show.
13055 Add member functions set_list and show_list.
13056 * cli/cli-style.c (class cli_style_option): Update accordingly.
13057 (style_set_list): Move to file scope.
13058 (style_show_list): Likewise.
13059 (set_style): Call help_list.
13060 (show_style): Call cmd_show_list.
13061 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13062 Update to use the new macro.
13064 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13066 * ada-lang.c (_initialize_ada_language): Expand the help text
13067 for the "catch exception" command.
13069 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13071 * symtab.c (matching_obj_sections): Initialize obj,
13072 declare it closer to its usage.
13074 2019-01-10 Tom Tromey <tom@tromey.com>
13076 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13077 (basic_inf_threads_range): Remove.
13078 (inf_threads_range, inf_non_exited_threads_range)
13079 (safe_inf_threads_range): Use next_adapter.
13081 2019-01-10 Keith Seitz <keiths@redhat.com>
13085 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13086 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13088 2019-01-10 Keith Seitz <keiths@redhat.com>
13092 * dictionary.c (pending_to_vector): Remove.
13093 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13094 Remove _1 suffix, replacing functions of the same name. Update
13096 (dict_create_hashed, dict_create_hashed_expandable)
13097 (dict_create_linear, dict_create_linear_expandable, dict_free)
13098 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13099 Make functions static.
13101 2019-01-10 Keith Seitz <keiths@redhat.com>
13105 * dictionary.h (struct dictionary): Replace declaration with
13107 (dict_create_hashed, dict_create_hashed_expandable)
13108 (dict_create_linear, dict_create_linear_expandable)
13109 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13110 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13111 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13112 taking multidictionary argument.
13113 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13114 * block.h (struct block) <dict>: Change to multidictionary
13115 and rename `multidict'.
13116 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13117 symmisc.c: Update all dictionary references to multidictionary.
13119 2019-01-10 Keith Seitz <keiths@redhat.com>
13123 * dictionary.c: Include unordered_map.
13124 (pending_to_vector): New function.
13125 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13126 Rewrite the non-"_1" functions to take vector instead
13128 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13129 "new" _1 versions of the same name.
13130 (multidictionary): Define.
13131 (std::hash<enum language): New definition.
13132 (collate_pending_symbols_by_language, mdict_create_hashed)
13133 (mdict_create_hashed_expandable, mdict_create_linear)
13134 (mdict_create_linear_expandable, mdict_free)
13135 (find_language_dictionary, create_new_language_dictionary)
13136 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13137 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13138 (mdict_size, mdict_empty): New functions.
13139 * dictionary.h (mdict_iterator): Define.
13141 2019-01-10 Pedro Alves <palves@redhat.com>
13143 * breakpoint.c (read_uploaded_action)
13144 (create_tracepoint_from_upload): Adjust to use
13145 gdb::unique_xmalloc_ptr.
13146 * ctf.c (ctf_write_uploaded_tp):
13147 (SET_ARRAY_FIELD): Use emplace_back.
13148 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13149 * tracefile-tfile.c (tfile_write_uploaded_tp):
13150 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13151 gdb::unique_xmalloc_ptr.
13152 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13153 at_string, cond_string, cmd_strings>: Replace char pointers
13154 with gdb::unique_xmalloc_ptr.
13156 2019-01-10 Pedro Alves <palves@redhat.com>
13158 * solib-target.c (library_list_start_library): Don't xstrdup name.
13160 2019-01-10 Pedro Alves <palves@redhat.com>
13162 * mdebugread.c (parse_partial_symbols): Use
13163 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13165 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13167 * linux-fork.c (scoped_switch_fork_info)
13168 <~scoped_switch_fork_info>: Fix incorrect variable name.
13170 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13172 * linux-fork.c (scoped_switch_fork_info)
13173 <scoped_switch_fork_info>: Make explicit.
13174 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13176 2019-01-10 Tom Tromey <tom@tromey.com>
13178 * objfiles.h (objfile::reset_psymtabs): Update.
13179 * objfiles.c (objfile::objfile): Update.
13180 * psymtab.h (psymtab_storage::obstack): Update.
13181 (psymtab_storage::m_obstack): Use gdb::optional.
13182 (class psymtab_storage): Update comment. Remove objfile
13184 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13186 2019-01-10 Tom Tromey <tom@tromey.com>
13188 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13189 <free_psymtabs>: Now private.
13190 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13191 (allocate_psymtab): Use new method.
13193 2019-01-10 Tom Tromey <tom@tromey.com>
13195 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13196 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13197 * mdebugread.c (parse_partial_symbols): Use
13198 allocate_dependencies.
13199 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13200 allocate_dependencies.
13201 (process_psymtab_comp_unit_reader)
13202 (build_type_psymtab_dependencies): Likewise.
13203 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13205 2019-01-10 Tom Tromey <tom@tromey.com>
13207 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13208 PSYMBOL_SET_LANGUAGE.
13209 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13211 2019-01-10 Tom Tromey <tom@tromey.com>
13213 * psymtab.h (psymtab_storage::obstack): New method.
13214 <m_obstack>: Rename from obstack; now private.
13215 * psymtab.c (psymtab_storage): Update.
13216 * dwarf2read.c (create_addrmap_from_index)
13217 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13220 2019-01-10 Tom Tromey <tom@tromey.com>
13222 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13223 * objfiles.h (objfile::reset_psymtabs): New method.
13225 2019-01-10 Tom Tromey <tom@tromey.com>
13227 * symmisc.c (print_symbol_bcache_statistics): Update.
13228 (print_objfile_statistics): Update.
13229 * symfile.c (reread_symbols): Update.
13230 * psymtab.h (class psymtab_storage): New.
13231 * psymtab.c (psymtab_storage): New constructor.
13232 (~psymtab_storage): New destructor.
13233 (require_partial_symbols): Update.
13234 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13235 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13236 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13237 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13238 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13239 (start_psymtab_common, end_psymtab_common)
13240 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13241 (allocate_psymtab): Update.
13242 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13244 (dump_psymtab_addrmap, maintenance_print_psymbols)
13245 (maintenance_check_psymtabs): Update.
13246 (class objfile_psymtabs): Move to objfiles.h.
13247 * psympriv.h (discard_psymtab): Now inline.
13248 (psymtab_discarder::psymtab_discarder): Update.
13249 (psymtab_discarder::~psymtab_discarder): Update.
13250 (ALL_OBJFILE_PSYMTABS): Rewrite.
13251 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13252 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13254 <partial_symtabs>: New field.
13255 (class objfile_psymtabs): Move from psymtab.h. Update.
13256 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13258 (objfile::~objfile): Don't destroy psymbol_cache.
13259 * mdebugread.c (parse_partial_symbols): Update.
13260 * dwarf2read.c (create_addrmap_from_index)
13261 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13262 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13263 (add_partial_subprogram, dwarf2_ranges_read): Update.
13264 * dwarf-index-write.c (write_address_map)
13265 (write_one_signatured_type, recursively_write_psymbols)
13266 (class debug_names, class debug_names, write_psymtabs_to_index):
13269 2019-01-10 Tom Tromey <tom@tromey.com>
13271 * symtab.h (SYMBOL_SET_NAMES): Update.
13272 (symbol_set_names): Update.
13273 (MSYMBOL_SET_NAMES): Update.
13274 * symtab.c (symbol_set_names): Change argument to be an
13275 objfile_per_bfd_storage.
13276 * psymtab.c (add_psymbol_to_bcache): Update.
13277 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13279 2019-01-10 Tom Tromey <tom@tromey.com>
13281 * symtab.c (create_demangled_names_hash): Change argument to be an
13282 objfile_per_bfd_storage.
13283 (symbol_set_names): Update.
13285 2019-01-10 Tom Tromey <tom@tromey.com>
13287 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13289 * psymtab.c (init_psymbol_list): Do nothing if already called.
13290 * psympriv.h (init_psymbol_list): Add comment.
13291 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13293 * dbxread.c (dbx_symfile_read): Unconditionally call
13296 2019-01-10 Tom Tromey <tom@tromey.com>
13298 * xcoffread.c (scan_xcoff_symtab): Update.
13299 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13301 * mdebugread.c (parse_partial_symbols)
13302 (handle_psymbol_enumerators): Update.
13303 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13304 * dbxread.c (read_dbx_symtab): Update.
13305 * psympriv.h (psymbol_placement): New enum.
13306 (add_psymbol_to_list): Update.
13308 2019-01-10 Tom Tromey <tom@tromey.com>
13310 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13311 static_psymbols parameters.
13312 (scan_xcoff_symtab): Update.
13313 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13314 static_psymbols parameters.
13315 * psympriv.h (start_psymtab_common): Update.
13316 * mdebugread.c (parse_partial_symbols): Update.
13317 * dwarf2read.c (create_partial_symtab): Update.
13318 * dbxread.c (read_dbx_symtab): Update.
13319 (start_psymtab): Remove global_psymbols and static_psymbols
13322 2019-01-10 Tom Tromey <tom@tromey.com>
13324 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13325 * psymtab.c (allocate_psymtab): Add comment.
13326 * psympriv.h (allocate_psymtab): Add comment.
13327 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13329 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13331 2019-01-10 Tom Tromey <tom@tromey.com>
13333 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13335 * mipsread.c: Include mdebugread.h.
13336 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13338 * elfread.c: Include mdebugread.h.
13340 2019-01-09 Tom Tromey <tom@tromey.com>
13342 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13343 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13344 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13345 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13346 (psym_lookup_symbol, psym_find_last_source_symtab)
13347 (psym_forget_cached_source_info, psym_print_stats)
13348 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13349 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13350 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13351 (psym_find_compunit_symtab_by_address)
13352 (maintenance_print_psymbols, maintenance_info_psymtabs)
13353 (maintenance_check_psymtabs): Use ranged for.
13354 * psymtab.h (class objfile_psymtabs): New.
13355 (require_partial_symbols): Return objfile_psymtabs.
13356 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13358 2019-01-09 Tom Tromey <tom@tromey.com>
13360 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13361 (find_pc_mapped_section, list_overlays_command)
13362 (map_overlay_command, unmap_overlay_command)
13363 (simple_overlay_update): Use all_objfiles.
13364 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13365 * printcmd.c (info_symbol_command): Use all_objfiles.
13366 * objfiles.h (ALL_OBJSECTIONS): Remove.
13367 * maint.c (maintenance_translate_address): Use all_objfiles.
13368 * gcore.c (gcore_create_callback): Use all_objfiles.
13369 (objfile_find_memory_regions): Likewise.
13371 2019-01-09 Tom Tromey <tom@tromey.com>
13373 * symtab.c (find_line_symtab, info_sources_command)
13374 (make_source_files_completion_list): Use objfile_compunits.
13375 * source.c (select_source_symtab): Use objfile_compunits.
13376 * objfiles.h (struct objfile): Update comment.
13377 (ALL_OBJFILES): Remove.
13378 (ALL_FILETABS): Remove.
13379 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13382 2019-01-09 Tom Tromey <tom@tromey.com>
13384 * symmisc.c (print_objfile_statistics, dump_objfile)
13385 (maintenance_print_symbols): Use compunit_filetabs.
13386 * source.c (forget_cached_source_info_for_objfile): Use
13388 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13389 (ALL_FILETABS): Use compunit_filetabs.
13390 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13391 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13393 2019-01-09 Tom Tromey <tom@tromey.com>
13395 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13396 (compunit_filetabs): New.
13397 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13399 (info_sources_command, make_source_files_completion_list): Remove
13401 * symmisc.c (print_objfile_statistics, dump_objfile)
13402 (maintenance_print_symbols): Remove declaration.
13403 (maintenance_info_symtabs): Use compunit_filetabs.
13404 (maintenance_info_line_tables): Likewise.
13405 * source.c (select_source_symtab): Change local variable name.
13406 (forget_cached_source_info_for_objfile): Remove declaration.
13407 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13408 * objfiles.c (objfile_relocate1): Remove declaration.
13409 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13411 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13412 * coffread.c (coff_symtab_read): Remove declaration.
13413 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13416 2019-01-09 Tom Tromey <tom@tromey.com>
13418 * symtab.c (lookup_objfile_from_block)
13419 (find_pc_sect_compunit_symtab, search_symbols)
13420 (default_collect_symbol_completion_matches_break_on): Use
13422 * objfiles.h (ALL_COMPUNITS): Remove.
13423 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13424 * cp-support.c (add_symbol_overload_list_qualified): Use
13426 * ada-lang.c (ada_collect_symbol_completion_matches)
13427 (ada_add_global_exceptions): Use objfile_compunits.
13429 2019-01-09 Tom Tromey <tom@tromey.com>
13431 * source.c (select_source_symtab)
13432 (forget_cached_source_info_for_objfile): Remove declaration.
13433 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13435 * maint.c (count_symtabs_and_blocks): Remove declaration.
13436 * cp-support.c (add_symbol_overload_list_qualified): Remove
13438 * coffread.c (coff_symtab_read): Remove declaration.
13439 * symtab.c (lookup_symbol_in_objfile_symtabs)
13440 (basic_lookup_transparent_type_1): Use objfile_compunits.
13441 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13442 (info_sources_command, search_symbols)
13443 (default_collect_symbol_completion_matches_break_on)
13444 (make_source_files_completion_list): Remove declaration.
13445 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13446 (ada_collect_symbol_completion_matches)
13447 (ada_add_global_exceptions): Remove declaration.
13448 * linespec.c (iterate_over_all_matching_symtabs): Use
13450 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13451 (class objfile_compunits): New.
13452 (ALL_COMPUNITS): Use objfile_compunits.
13453 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13454 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13456 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13458 2019-01-09 Tom Tromey <tom@tromey.com>
13460 * symtab.c (search_symbols)
13461 (default_collect_symbol_completion_matches_break_on): Use
13463 * ada-lang.c (ada_lookup_simple_minsym)
13464 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13465 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13466 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13468 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13469 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13470 * objc-lang.c (find_methods): Use objfile_msymbols.
13471 (info_selectors_command, info_classes_command): Likewise.
13472 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13473 * objfiles.h (class objfile_msymbols): New.
13474 (ALL_OBJFILE_MSYMBOLS): Remove.
13475 (ALL_MSYMBOLS): Remove.
13477 2019-01-09 Tom Tromey <tom@tromey.com>
13479 * common/next-iterator.h (next_adapter): Add Iterator template
13481 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13482 (class all_objfiles_safe): New.
13483 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13484 * objfiles.c (put_objfile_before): Update comment.
13485 (add_separate_debug_objfile): Likewise.
13486 (free_all_objfiles): Use all_objfiles_safe.
13487 (objfile_purge_solibs): Likewise.
13489 2019-01-09 Tom Tromey <tom@tromey.com>
13491 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13492 (expand_symtab_containing_pc, lookup_static_symbol)
13493 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13494 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13496 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13497 * breakpoint.c (create_overlay_event_breakpoint)
13498 (create_longjmp_master_breakpoint)
13499 (create_std_terminate_master_breakpoint)
13500 (create_exception_master_breakpoint): Use all_objfiles.
13501 * linux-thread-db.c (try_thread_db_load_from_pdir)
13502 (has_libpthread): Use all_objfiles.
13503 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13504 * linespec.c (iterate_over_all_matching_symtabs)
13505 (search_minsyms_for_name): Use all_objfiles.
13506 * maint.c (maintenance_info_sections): Use all_objfiles.
13507 * main.c (captured_main_1): Use all_objfiles.
13508 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13509 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13510 * guile/scm-pretty-print.c
13511 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13512 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13513 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13514 (maintenance_print_msymbols): Use all_objfiles.
13515 * source.c (select_source_symtab): Use all_objfiles.
13516 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13517 * symfile.c (remove_symbol_file_command)
13518 (expand_symtabs_matching, map_symbol_filenames): Use
13520 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
13522 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
13523 * objc-lang.c (find_methods): Use all_objfiles.
13524 * objfiles.c (have_partial_symbols, have_full_symbols)
13525 (have_minimal_symbols, qsort_cmp)
13526 (default_iterate_over_objfiles_in_search_order): Use
13528 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
13529 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
13530 (maintenance_check_psymtabs): Use all_objfiles.
13531 (ALL_PSYMTABS): Remove.
13532 * compile/compile-object-run.c (do_module_cleanup): Use
13534 * blockframe.c (find_pc_partial_function): Use all_objfiles.
13535 * cp-support.c (add_symbol_overload_list_qualified): Use
13537 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13539 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
13540 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
13542 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13543 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
13544 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13546 * solib.c (solib_read_symbols): Use all_objfiles
13548 2019-01-09 Tom Tromey <tom@tromey.com>
13550 * probe.c (parse_probes_in_pspace): Use all_objfiles.
13551 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
13553 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
13554 * symmisc.c (print_symbol_bcache_statistics)
13555 (print_objfile_statistics, maintenance_print_objfiles)
13556 (maintenance_info_symtabs, maintenance_check_symtabs)
13557 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
13559 * source.c (forget_cached_source_info): Use all_objfiles.
13560 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
13561 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13562 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
13563 * objfiles.c (update_section_map): Use all_objfiles.
13564 (shared_objfile_contains_address_p): Likewise.
13565 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
13566 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
13568 2019-01-09 Tom Tromey <tom@tromey.com>
13570 * common/next-iterator.h: New file.
13571 * objfiles.h (class all_objfiles): New.
13572 (struct objfile_iterator): New.
13574 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13576 * NEWS: Move the description of the changed "frame", "select-frame",
13577 and "info frame" commands to the Changed commands section.
13579 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
13581 * gdbtypes.c (check_stub_method_group): Remove handling of old
13583 * linespec.c (find_methods): Likewise.
13584 * stabsread.c (read_member_functions): Likewise.
13585 * valops.c (search_struct_method): Likewise.
13586 (value_struct_elt_for_reference): Likewise.
13587 * NEWS: Mention this change.
13589 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13591 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
13592 print_source_lines.
13593 * source.c (print_source_lines_base): Update line number check.
13594 (print_source_lines): New function.
13595 (source_lines_range::source_lines_range): New function.
13596 * source.h (class source_lines_range): New class.
13597 (print_source_lines): New declaration.
13599 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13601 * linespec.c (linespec_state_destructor): Free self->canonical_names.
13603 2019-01-08 Tom Tromey <tom@tromey.com>
13604 Simon Marchi <simon.marchi@ericsson.com>
13607 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
13608 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
13609 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13610 * f-exp.y (DOLLAR_VARIABLE): Likewise.
13611 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
13612 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
13614 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13616 * source.c (select_source_symtab): Move header comment to
13617 declaration in source.h.
13618 (forget_cached_source_info_for_objfile): Likewise.
13619 (forget_cached_source_info): Likewise.
13620 (identify_source_line): Likewise.
13621 * source.h (identify_source_line): Move declaration from symtab.h
13622 and add comment from source.c
13623 (print_source_lines): Likewise.
13624 (forget_cached_source_info_for_objfile): Likewise.
13625 (forget_cached_source_info): Likewise.
13626 (select_source_symtab): Likewise.
13627 (enum print_source_lines_flag): Move definition from symtab.h.
13628 * symtab.h (identify_source_line): Move declaration to source.h.
13629 (print_source_lines): Likewise.
13630 (forget_cached_source_info_for_objfile): Likewise.
13631 (forget_cached_source_info): Likewise.
13632 (select_source_symtab): Likewise.
13633 (enum print_source_lines_flag): Move definition to source.h.
13634 * tui/tui-hooks.c: Add 'source.h' include.
13636 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13638 * source.c (print_source_lines_base): Handle requests to print
13639 reverse line number sequences, and guard against empty lines
13642 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
13644 * source.c (print_source_lines_base): Fix skip of '\r' if next
13647 2019-01-06 Tom Tromey <tom@tromey.com>
13649 * c-exp.y (struct c_parse_state) <macro_original_text,
13650 expansion_obstack>: New member.
13651 (macro_original_text, expansion_obstack): Remove globals.
13652 (scan_macro_expansion, scanning_macro_expansion)
13653 (finished_macro_expansion): Update.
13654 (scan_macro_cleanup): Remove.
13655 (yylex, c_parse): Update.
13657 2019-01-06 Tom Tromey <tom@tromey.com>
13659 * c-exp.y (struct c_parse_state) <strings>: New member.
13660 (operator_stoken): Update.
13662 2019-01-06 Tom Tromey <tom@tromey.com>
13664 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
13665 (union type_stack_elt) <typelist_val>: Now a pointer to
13667 (type_stack_cleanup): Don't declare.
13668 (push_typelist): Update.
13669 * parse.c (pop_typelist): Return a std::vector.
13670 (push_typelist): Take a std::vector.
13671 (follow_types): Update. Do not free args.
13672 (type_stack_cleanup): Remove.
13673 * c-exp.y (struct c_parse_state): New.
13674 (cpstate): New global.
13675 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
13676 (nonempty_typelist): Update.
13677 (func_mod): Create a new vector.
13678 (c_parse): Create a c_parse_state.
13679 (check_parameter_typelist): Do not delete params.
13680 (function_method): Update. Do not delete type_list.
13682 2019-01-06 Tom Tromey <tom@tromey.com>
13685 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
13687 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
13688 (print_return_value): Likewise.
13690 2019-01-05 Tom Tromey <tom@tromey.com>
13692 * contrib/cleanup_check.py: Remove.
13693 * contrib/gcc-with-excheck: Remove.
13694 * contrib/exsummary.py: Remove.
13695 * contrib/excheck.py: Remove.
13697 2019-01-05 Joel Brobecker <brobecker@adacore.com>
13699 * thread.c (delete_thread_1): Add gdb_assert that THR is not
13700 NULL. Initialize tpprev to NULL instead of assigning it
13701 to NULL on the next statement.
13702 * windows-nat.c (windows_delete_thread): Remove check for
13703 main_thread_id before printing thread exit notifications.
13704 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
13705 Remove thread ID check against main_thread_id.
13706 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
13707 windows_delete_thread.
13708 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
13710 2019-01-04 Tom Tromey <tom@tromey.com>
13712 * compile/compile.c (_initialize_compile): Use upper case for
13713 metasyntactic variables.
13714 * symmisc.c (_initialize_symmisc): Use upper case for
13715 metasyntactic variables.
13716 * psymtab.c (_initialize_psymtab): Use upper case for
13717 metasyntactic variables.
13718 * demangle.c (demangle_command): Use upper case for metasyntactic
13720 (_initialize_demangler): Likewise.
13721 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
13724 2019-01-03 Tom Tromey <tom@tromey.com>
13726 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
13728 2019-01-03 Tom Tromey <tom@tromey.com>
13730 * python/py-symtab.c (salpy_str): Update.
13731 (struct salpy_sal_object) <symtab>: Now a PyObject.
13732 (salpy_dealloc): Update.
13733 (del_objfile_sal): Use gdbpy_ref.
13735 2019-01-03 Tom Tromey <tom@tromey.com>
13737 * python/py-type.c (convert_field): Use new_reference. Return
13739 (make_fielditem): Return gdbpy_ref.
13740 (typy_fields): Update.
13741 (typy_getitem): Update.
13742 (field_name): Return gdbpy_ref. Use new_reference.
13743 (typy_iterator_iternext): Update.
13745 2019-01-03 Tom Tromey <tom@tromey.com>
13747 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
13749 2019-01-03 Tom Tromey <tom@tromey.com>
13751 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
13752 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
13753 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
13754 (pspy_set_frame_filters, pspy_set_frame_unwinders)
13755 (pspy_set_type_printers): Likewise.
13756 * python/py-function.c (fnpy_init): Use gdbpy_ref.
13757 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
13758 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
13759 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
13760 (objfpy_set_type_printers): Likewise.
13762 2019-01-03 Tom Tromey <tom@tromey.com>
13764 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
13765 (gdbpy_print_stack): Use gdbpy_err_fetch.
13766 * python/python-internal.h (class gdbpy_err_fetch): New class.
13767 (class gdbpy_enter) <m_error_type, m_error_value,
13768 m_error_traceback>: Remove.
13769 <m_error>: New member.
13770 (gdbpy_exception_to_string): Don't declare.
13771 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
13772 * python/py-value.c (convert_value_from_python): Use
13774 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
13775 gdbpy_exception_to_string.
13776 (gdbpy_handle_exception): Use gdbpy_err_fetch.
13777 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
13780 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13782 * linux-nat.c (delete_lwp_cleanup): Delete.
13783 (struct lwp_deleter): New struct.
13784 (lwp_info_up): New typedef.
13785 (linux_nat_target::follow_fork): Delete cleanup, and make use of
13788 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13790 * linux-fork.c (class scoped_switch_fork_info): New class.
13791 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
13793 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13795 * valops.c (find_overload_match): Remove use of null_cleanup, and
13796 calls to do_cleanups.
13798 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13800 * compile/compile-cplus-types.c
13801 (compile_cplus_instance::decl_name): Handle changes to
13803 * cp-support.c (cp_func_name): Update header comment, update
13805 * cp-support.h (cp_func_name): Update return type in declaration.
13806 * valops.c (find_overload_match): Move temp_func local to top
13807 level of function and change its type. Use temp_func to hold and
13808 delete temporary string obtained from cp_func_name.
13810 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
13812 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
13813 gdb::char_vector, remove cleanup, and update uses of `msg`.
13815 2019-01-03 Jim Wilson <jimw@sifive.com>
13817 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
13819 2019-01-02 Tom Tromey <tom@tromey.com>
13821 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
13822 (tdesc_parse_xml): Remove cleanups.
13823 * target-descriptions.h (make_cleanup_free_target_description):
13825 (target_desc_deleter): New struct.
13826 (target_desc_up): New typedef.
13827 * target-descriptions.c (target_desc_deleter::operator()): Rename
13828 from free_target_description.
13829 (make_cleanup_free_target_description): Remove.
13831 2019-01-02 Tom Tromey <tom@tromey.com>
13833 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
13834 constructor, destructor.
13835 (linespec_parser): Remove typedef.
13836 (~linespec_parser): Rename from linespec_parser_delete.
13837 (linespec_lex_to_end, linespec_complete_label)
13838 (linespec_complete): Update.
13839 (decode_line_full): Remove cleanups.
13840 (decode_line_1): Update.
13842 2019-01-02 Tom Tromey <tom@tromey.com>
13844 * python/python-internal.h (inferior_to_inferior_object): Change
13846 * python/py-exitedevent.c (create_exited_event_object): Update.
13847 * python/py-inferior.c (inferior_to_inferior_object): Return
13849 (python_new_inferior, python_inferior_deleted)
13850 (thread_to_thread_object, delete_thread_object)
13851 (build_inferior_list, gdbpy_selected_inferior): Update.
13852 * python/py-infthread.c (create_thread_object): Update. Also fail
13853 if inferior_to_inferior_object fails.
13855 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
13857 * inferior.h (class inferior) <displaced_step_state>: New field.
13858 * infrun.h (struct displaced_step_state): Move here from
13859 infrun.c. Initialize fields, add constructor.
13860 <inf>: Remove field.
13861 <reset>: New method.
13862 * infrun.c (struct displaced_step_inferior_state): Move to
13864 (displaced_step_inferior_states): Remove.
13865 (get_displaced_stepping_state): Adust.
13866 (displaced_step_in_progress_any_inferior): Adjust.
13867 (displaced_step_in_progress_thread): Adjust.
13868 (displaced_step_in_progress): Adjust.
13869 (add_displaced_stepping_state): Remove.
13870 (get_displaced_step_closure_by_addr): Adjust.
13871 (remove_displaced_stepping_state): Remove.
13872 (infrun_inferior_exit): Call displaced_step_state.reset.
13873 (use_displaced_stepping): Don't check for NULL.
13874 (displaced_step_prepare_throw): Call
13875 get_displaced_stepping_state.
13876 (displaced_step_fixup): Don't check for NULL.
13877 (prepare_for_detach): Don't check for NULL.
13879 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13881 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
13882 in case of call that did not complete.
13884 2019-01-02 Andrey Utkin <autkin@undo.io>
13886 * symfile.c (find_separate_debug_file): Fix search of debug files for
13889 2019-01-02 Tom Tromey <tom@tromey.com>
13891 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
13893 * python/py-frame.c (frapy_older): Remove cast.
13894 (frapy_newer): Likewise.
13895 * python/py-breakpoint.c (local_setattro): Remove cast.
13896 * python/py-arch.c (archpy_name): Remove local variable.
13897 * python/py-type.c (gdbpy_lookup_type): Remove cast.
13899 2019-01-02 Joel Brobecker <brobecker@adacore.com>
13901 * unittests/basic_string_view/element_access/char/empty.cc:
13902 Fix year range in copyright header.
13904 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
13906 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
13908 <operator==>: Update with for removed field.
13910 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
13911 <isa_features>: ...this.
13912 <abi_features>: New field.
13913 (riscv_isa_flen): Update comment.
13914 (riscv_abi_xlen): New declaration.
13915 (riscv_abi_flen): New declaration.
13916 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
13918 (riscv_abi_xlen): New function.
13919 (riscv_isa_flen): Update to get answer from isa_features.
13920 (riscv_abi_flen): New function.
13921 (riscv_has_fp_abi): Update to get answer from abi_features.
13922 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
13924 (riscv_call_info) <xlen, flen>: Update comment.
13925 (riscv_call_arg_struct): Remove invalid assertions
13926 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
13928 (riscv_gdbarch_init): Gather isa features and abi features
13929 separately, ensure both match on the gdbarch when reusing an old
13930 gdbarch. Relax an error check to allow 32-bit abi float to run on
13931 a target with 64-bit float hardware.
13933 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13935 * source.c (search_command_helper): Stop reverse search
13936 when line 1 has been searched.
13938 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13940 * record-full.c (record_full_base_target::close): Rewrite
13941 record_full_core_buf_list free logic.
13943 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13945 * break-catch-syscall.c (print_one_catch_syscall): xfree
13948 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13950 * top.c (print_gdb_version): Update Copyright year in version
13953 2019-01-01 Joel Brobecker <brobecker@adacore.com>
13955 Update copyright year range in all GDB files.
13957 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
13959 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
13961 For older changes see ChangeLog-2018.
13967 version-control: never