1 2019-11-22 Christian Biesinger <cbiesinger@google.com>
3 * ada-lang.c (ada_lookup_simple_minsym): Update.
4 (ada_collect_symbol_completion_matches): Update.
5 * ada-tasks.c (read_atcb): Update.
6 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7 (amd64_windows_skip_trampoline_code): Update.
8 * arm-tdep.c (skip_prologue_function): Update.
9 (arm_skip_stack_protector): Update.
10 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11 (arm_wince_skip_main_prologue): Update.
12 * ax-gdb.c (gen_expr): Update.
13 * block.c (call_site_for_pc): Update.
14 * blockframe.c (find_pc_partial_function): Update.
15 * breakpoint.c (set_breakpoint_location_function): Update.
16 * btrace.c (ftrace_print_function_name): Update.
17 (ftrace_function_switched): Update.
18 * c-valprint.c (print_unpacked_pointer): Update.
19 * coffread.c (coff_symfile_read): Update.
20 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
21 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
22 * dwarf-index-write.c (write_psymbols): Update.
23 * dwarf2loc.c (call_site_to_target_addr): Update.
24 (func_verify_no_selftailcall): Update.
25 (tailcall_dump): Update.
26 (call_site_find_chain_1): Update.
27 (dwarf_expr_reg_to_entry_parameter): Update.
28 * elfread.c (elf_gnu_ifunc_record_cache): Update.
29 * eval.c (evaluate_funcall): Update.
30 (evaluate_subexp_standard): Update.
31 (evaluate_subexp_for_sizeof): Update.
32 * expprint.c (print_subexp_standard): Update.
33 (dump_subexp_body_standard): Update.
34 * frame.c (get_prev_frame_always_1): Update.
35 * frv-tdep.c (frv_skip_main_prologue): Update.
36 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
37 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
38 (gnuv3_get_typename_from_type_info): Update.
39 (gnuv3_skip_trampoline): Update.
40 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
41 * i386-tdep.c (i386_skip_main_prologue): Update.
42 (i386_pe_skip_trampoline_code): Update.
43 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
44 * infcall.c (get_function_name): Update.
45 * linespec.c (minsym_found): Update.
46 * linux-fork.c (info_checkpoints_command): Update.
47 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
48 (m32c_m16c_pointer_to_address): Update.
49 * maint.c (maintenance_translate_address): Update.
50 * minsyms.c (add_minsym_to_hash_table): Update.
51 (add_minsym_to_demangled_hash_table): Update.
52 (lookup_minimal_symbol_mangled): Update.
53 (lookup_minimal_symbol_demangled): Update.
54 (lookup_minimal_symbol_linkage): Update.
55 (lookup_minimal_symbol_text): Update.
56 (lookup_minimal_symbol_by_pc_name): Update.
57 (minimal_symbol_is_less_than): Update.
58 (compact_minimal_symbols): Update.
59 (build_minimal_symbol_hash_tables): Update.
60 (find_solib_trampoline_target): Update.
61 * mips-tdep.c (mips_stub_frame_sniffer): Update.
62 (mips_skip_pic_trampoline_code): Update.
63 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
64 * objc-lang.c (info_selectors_command): Update.
65 (info_classes_command): Update.
66 (find_methods): Update.
68 * p-valprint.c (pascal_val_print): Update.
69 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
70 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
71 * printcmd.c (build_address_symbolic): Update.
72 (info_symbol_command): Update.
73 * psymtab.c (psymbol_name_matches): Update.
74 (match_partial_symbol): Update.
75 (lookup_partial_symbol): Update.
76 (print_partial_symbols): Update.
77 (sort_pst_symbols): Update.
78 (maintenance_check_psymtabs): Update.
79 * python/py-framefilter.c (py_print_frame): Update.
80 * python/python.c (gdbpy_rbreak): Update.
81 * record-btrace.c (btrace_get_bfun_name): Update.
82 (btrace_call_history): Update.
83 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
84 (rs6000_skip_trampoline_code): Update.
85 * sol-thread.c (info_cb): Update.
86 * stabsread.c (scan_file_globals): Update.
87 * stack.c (find_frame_funname): Update.
88 (info_frame_command_core): Update.
89 * symmisc.c (dump_msymbols): Update.
90 * symtab.c (symbol_natural_name): Rename to..,
91 (general_symbol_info::natural_name): ...this.
92 (symbol_demangled_name): Rename to...
93 (general_symbol_info::demangled_name): ...this.
94 (symbol_search_name): Rename to...
95 (general_symbol_info::search_name): ...this.
96 (symbol_matches_search_name): Update.
97 (find_pc_sect_line): Update.
98 (skip_prologue_sal): Update.
99 (search_symbols): Update.
100 (print_msymbol_info): Update.
101 (rbreak_command): Update.
102 (completion_list_add_msymbol): Update.
103 (completion_list_objc_symbol): Update.
104 (get_msymbol_address): Update.
105 * symtab.h (struct general_symbol_info): Add member functions
106 natural_name (), linkage_name (), print_name (), demangled_name (),
108 (SYMBOL_NATURAL_NAME): Update.
109 (symbol_natural_name): Move to a member function on general_symbol_info.
110 (SYMBOL_DEMANGLED_NAME): Update.
111 (symbol_demangled_name): Move to a member function on
113 (SYMBOL_SEARCH_NAME): Update.
114 (symbol_search_name): Move to a member function on general_symbol_info.
115 (MSYMBOL_NATURAL_NAME): Remove.
116 (MSYMBOL_LINKAGE_NAME): Remove.
117 (MSYMBOL_PRINT_NAME): Remove.
118 (MSYMBOL_DEMANGLED_NAME): Remove.
119 (MSYMBOL_SEARCH_NAME): Remove.
120 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
122 2019-11-22 Christian Biesinger <cbiesinger@google.com>
124 * symtab.c (create_demangled_names_hash): Use per_bfd->
125 minimal_symbol_count for computing the initial size, if greater
126 than our default size.
128 2019-11-22 Tom de Vries <tdevries@suse.de>
130 * contrib/words.sh: Improve words extraction.
132 2019-11-22 Tom de Vries <tdevries@suse.de>
134 * contrib/words.sh: Combine sed invocations.
136 2019-11-21 Christian Biesinger <cbiesinger@google.com>
138 * Makefile.in: Update.
139 * demangle.c: Rename to...
140 * gdb-demangle.c: ..this.
141 (is_cplus_marker): Change return type to bool.
142 (_initialize_demangler): Rename to...
143 (_initialize_gdb_demangle): ...this.
144 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
145 * symtab.h (demangle): Remove declaration; instead include
148 2019-11-21 Tom Tromey <tromey@adacore.com>
150 * gdbsupport/format.c (format_pieces): Parse %I64d.
151 * unittests/format_pieces-selftests.c (test_windows_formats): New
153 (run_tests): Call it.
155 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
157 Byte reverse display of variables with DW_END_big, DW_END_little
158 (DW_AT_endianity) dwarf attributes if different than the native
160 * ada-lang.c (ada_value_binop):
161 Use type_byte_order instead of gdbarch_byte_order.
162 * ada-valprint.c (printstr):
163 (ada_val_print_string):
164 * ada-lang.c (value_pointer):
166 Use type_byte_order instead of gdbarch_byte_order.
167 * c-lang.c (c_get_string):
168 Use type_byte_order instead of gdbarch_byte_order.
169 * c-valprint.c (c_val_print_array):
170 Use type_byte_order instead of gdbarch_byte_order.
171 * cp-valprint.c (cp_print_class_member):
172 Use type_byte_order instead of gdbarch_byte_order.
173 * dwarf2loc.c (rw_pieced_value):
174 Use type_byte_order instead of gdbarch_byte_order.
175 * dwarf2read.c (read_base_type): Handle DW_END_big,
177 * f-lang.c (f_get_encoding):
178 Use type_byte_order instead of gdbarch_byte_order.
179 * findvar.c (default_read_var_value):
180 Use type_byte_order instead of gdbarch_byte_order.
181 * gdbtypes.c (check_types_equal):
182 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
183 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
184 and TYPE_ENDIANITY_LITTLE if set.
185 (type_byte_order): new function.
186 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
187 (struct main_type) <flag_endianity_not_default>:
189 (type_byte_order): New function.
190 * infcmd.c (default_print_one_register_info):
191 Use type_byte_order instead of gdbarch_byte_order.
192 * p-lang.c (pascal_printstr):
193 Use type_byte_order instead of gdbarch_byte_order.
194 * p-valprint.c (pascal_val_print):
195 Use type_byte_order instead of gdbarch_byte_order.
196 * printcmd.c (print_scalar_formatted):
197 Use type_byte_order instead of gdbarch_byte_order.
198 * solib-darwin.c (darwin_current_sos):
199 Use type_byte_order instead of gdbarch_byte_order.
200 * solib-svr4.c (solib_svr4_r_ldsomap):
201 Use type_byte_order instead of gdbarch_byte_order.
202 * stap-probe.c (stap_modify_semaphore):
203 Use type_byte_order instead of gdbarch_byte_order.
204 * target-float.c (target_float_same_format_p):
205 Use type_byte_order instead of gdbarch_byte_order.
206 * valarith.c (scalar_binop):
208 Use type_byte_order instead of gdbarch_byte_order.
209 * valops.c (value_cast):
210 Use type_byte_order instead of gdbarch_byte_order.
211 * valprint.c (generic_emit_char):
214 Use type_byte_order instead of gdbarch_byte_order.
215 * value.c (unpack_long):
216 (unpack_bits_as_long):
217 (unpack_value_bitfield):
220 (pack_unsigned_long):
221 Use type_byte_order instead of gdbarch_byte_order.
222 * findvar.c (unsigned_pointer_to_address):
223 (signed_pointer_to_address):
224 (unsigned_address_to_pointer):
225 (address_to_signed_pointer):
226 (default_read_var_value):
227 (default_value_from_register):
228 Use type_byte_order instead of gdbarch_byte_order.
229 * gnu-v3-abi.c (gnuv3_make_method_ptr):
230 Use type_byte_order instead of gdbarch_byte_order.
231 * riscv-tdep.c (riscv_print_one_register_info):
232 Use type_byte_order instead of gdbarch_byte_order.
234 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
236 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
237 (current_ui_gdb_stdin_ptr): Likewise.
238 (current_ui_gdb_stderr_ptr): Likewise.
239 (current_ui_gdb_stdlog_ptr): Likewise.
240 (current_ui_current_uiout_ptr): Likewise.
241 (gen_ret_current_ui_field_ptr): Remove.
243 2019-11-21 Tom de Vries <tdevries@suse.de>
246 * cli/cli-script.c (execute_control_command): Only switch to
247 INTERP_CONSOLE's ui_out when INTERP_MI is active.
249 2019-11-19 Tom Tromey <tom@tromey.com>
251 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
252 Now static. Change type of "name".
253 (tui_set_win_height_command): Don't copy "arg".
254 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
255 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
257 2019-11-19 Ali Tamur <tamur@google.com>
259 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
260 "if (attr != nullptr)".
261 (dwarf2_find_base_address): Likewise.
262 (dwarf2_build_include_psymtabs): Likewise.
263 (read_cutu_die_from_dwo): Likewise.
264 (read_func_scope): Likewise.
265 (read_call_site_scope): Likewise.
266 (dwarf2_get_pc_bounds): Likewise.
267 (dwarf2_record_block_ranges): Likewise.
268 (dwarf2_add_field): Likewise.
269 (dwarf2_add_member_fn): Likewise.
270 (read_structure_type): Likewise.
271 (read_enumeration_type): Likewise.
272 (read_array_type): Likewise.
273 (read_array_order): Likewise.
274 (read_set_type): Likewise.
275 (read_common_block): Likewise.
276 (read_tag_reference_type): Likewise.
277 (read_tag_string_type): Likewise.
278 (read_subroutine_type): Likewise.
279 (read_base_type): Likewise.
280 (read_subrange_type): Likewise.
281 (new_symbol): Likewise.
282 (prepare_one_comp_unit): Likewise.
284 2019-11-19 Tom Tromey <tromey@adacore.com>
286 * windows-nat.c (windows_nat_target::attach): Include GetLastError
287 result in error when DebugActiveProcess fails.
289 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
290 Pedro Alves <palves@redhat.com>
292 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
293 * target.c (target_stack::push): Call 'unpush' if there's a
294 target on top of the stack.
296 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
298 * python/py-block.c (blpy_dealloc): Call tp_free.
299 (blpy_block_syms_dealloc): Likewise.
300 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
301 * python/py-inferior.c (infpy_dealloc): Likewise.
302 * python/py-lazy-string.c (stpy_dealloc): Likewise.
303 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
304 * python/py-symbol.c (sympy_dealloc): Likewise.
305 * python/py-symtab.c (stpy_dealloc): Likewise.
306 * python/py-type.c (typy_iterator_dealloc): Likewise.
308 2019-11-18 Christian Biesinger <cbiesinger@google.com>
310 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
311 constructor instead of using a class initializer.
313 2019-11-15 Christian Biesinger <cbiesinger@google.com>
315 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
316 * configure: Regenerate.
317 * configure.ac: Don't source common.host.
318 * gdbsupport/common.host: Remove.
319 * gdbsupport/mingw-strerror.c: Remove.
320 * gdbsupport/posix-strerror.c: Rename to...
321 * gdbsupport/safe-strerror.c: ...this.
323 2019-11-15 Christian Biesinger <cbiesinger@google.com>
325 * maint.c (scoped_command_stats::print_time): Use localtime_r
326 instead of localtime (provided through gnulib if necessary).
327 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
330 2019-11-15 Christian Biesinger <cbiesinger@google.com>
332 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
333 avoid compile errors.
335 2019-11-15 Christian Biesinger <cbiesinger@google.com>
337 * config.in: Regenerate.
338 * configure: Regenerate.
339 * gdbsupport/common.m4: No longer check for strerror_r.
340 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
341 POSIX version of strerror_r, now that gnulib provides it if
344 2019-11-14 Christian Biesinger <cbiesinger@google.com>
346 * README (`configure' options): Update.
348 2019-11-14 Tom Tromey <tromey@adacore.com>
350 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
351 expected type for the RHS if the LHS is a convenience variable.
353 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
355 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
356 Provide explicit default and copy constructor.
358 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
360 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
361 only call Py_INCREF (newbp) in the bppy_pending_object case.
363 2019-11-13 Tom Tromey <tromey@adacore.com>
366 * psympriv.h (partial_symbol): Remove static assert.
367 * symtab.h (general_symbol_info, symbol): Remove static assert.
369 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
371 * gdbsupport/format.c (format_pieces::format_pieces): Support
372 printf 'z' size modifier.
373 * gdbsupport/format.h (enum argclass): Add size_t_arg.
374 * printcmd.c (ui_printf): Handle size_t_arg.
375 * ui-out.c (ui_out::vmessage): Likewise.
376 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
378 (run_tests): Call test_format_int_sizes.
380 2019-11-12 Christian Biesinger <cbiesinger@google.com>
382 * ada-exp.y (write_ambiguous_var): Update.
383 * buildsym.c (add_symbol_to_list): Update.
384 * dwarf2read.c (read_variable): Update.
385 (new_symbol): Update.
386 * jit.c (finalize_symtab): Update.
387 * language.c (language_alloc_type_symbol): Update.
388 * symtab.c (fixup_symbol_section): Update.
389 (initialize_objfile_symbol_1): Move code to...
390 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
391 (allocate_symbol): Update.
392 (allocate_template_symbol): Update.
393 (get_symbol_address): Update.
394 * symtab.h (struct symbol): Inherit from general_symbol_info instead
395 of having as a field, and add a constructor.
396 (SYMBOL_VALUE): Update.
397 (SYMBOL_VALUE_ADDRESS): Update.
398 (SET_SYMBOL_VALUE_ADDRESS): Update.
399 (SYMBOL_VALUE_BYTES): Update.
400 (SYMBOL_VALUE_COMMON_BLOCK): Update.
401 (SYMBOL_BLOCK_VALUE): Update.
402 (SYMBOL_VALUE_CHAIN): Update.
403 (SYMBOL_LANGUAGE): Update.
404 (SYMBOL_SECTION): Update.
405 (SYMBOL_OBJ_SECTION): Update.
406 (SYMBOL_SET_LANGUAGE): Update.
407 (SYMBOL_SET_LINKAGE_NAME): Update.
408 (SYMBOL_SET_NAMES): Update.
409 (SYMBOL_NATURAL_NAME): Update.
410 (SYMBOL_LINKAGE_NAME): Update.
411 (SYMBOL_DEMANGLED_NAME): Update.
412 (SYMBOL_SEARCH_NAME): Update.
413 (SYMBOL_MATCHES_SEARCH_NAME): Update.
414 (struct symbol): Update.
415 (struct template_symbol): Update.
416 (struct rust_vtable_symbol): Update.
417 * xcoffread.c (SYMBOL_DUP): Update.
419 2019-11-12 Tom Tromey <tom@tromey.com>
421 * tui/tui-layout.c (show_layout): Set current_layout.
422 (show_source_disasm_command, show_data)
423 (show_source_or_disasm_and_command): Don't set current_layout.
425 2019-11-12 Tom Tromey <tom@tromey.com>
427 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
429 2019-11-12 Tom Tromey <tom@tromey.com>
431 * tui/tui-win.c (resize_message): New global.
432 (show_tui_resize_message): New function.
433 (tui_async_resize_screen): Print message if requested.
434 (_initialize_tui_win): Add tui-resize-message setting.
435 * NEWS: Add entry for new commands.
437 2019-11-11 Tom Tromey <tom@tromey.com>
439 * tui/tui.c (tui_initialize_readline): Add new bindable readline
442 2019-11-11 Christian Biesinger <cbiesinger@google.com>
444 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
446 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
448 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
450 * python/python-internal.h (gdbpy_lookup_static_symbols):
451 Declare new function.
452 * python/python.c (python_GdbMethods): Add
453 gdb.lookup_static_symbols method.
454 * NEWS: Mention gdb.lookup_static_symbols.
456 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
458 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
459 static block of current object file first. Also fix typo in
462 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
464 * stack.c (set_last_displayed_sal): Delete.
465 (last_displayed_sal_valid): Delete.
466 (last_displayed_pspace): Delete.
467 (last_displayed_addr): Delete.
468 (last_displayed_symtab): Delete.
469 (last_displayed_line): Delete.
470 (class last_displayed_symtab_info_type): New.
471 (last_displayed_symtab_info): New static global variable.
472 (print_frame_info): Call methods on last_displayed_symtab_info.
473 (clear_last_displayed_sal): Update header comment, and make use of
474 last_displayed_symtab_info.
475 (last_displayed_sal_is_valid): Likewise.
476 (get_last_displayed_pspace): Likewise.
477 (get_last_displayed_addr): Likewise.
478 (get_last_displayed_symtab): Likewise.
479 (get_last_displayed_line): Likewise.
480 (get_last_displayed_sal): Likewise.
481 * stack.h (clear_last_displayed_sal): Update header comment.
482 (last_displayed_sal_is_valid): Likewise.
483 (get_last_displayed_pspace): Likewise.
484 (get_last_displayed_addr): Likewise.
485 (get_last_displayed_symtab): Likewise.
486 (get_last_displayed_line): Likewise.
487 (get_last_displayed_sal): Likewise.
489 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
491 * stack.c (frame_show_address): Convert return type to bool.
492 * stack.h (frame_show_address): Likewise, and update header
495 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
497 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
498 * unittests/vec-utils-selftests.c: New file.
499 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
501 2019-11-10 Tom Tromey <tom@tromey.com>
503 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
504 (tui_highlight_win): Likewise.
505 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
506 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
507 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
508 Don't set can_highlight.
510 2019-11-10 Tom Tromey <tom@tromey.com>
512 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
513 Remove unused declaration.
515 2019-11-08 Tom Tromey <tromey@adacore.com>
517 * top.c (read_command_file): Update.
518 (command_line_input): Make return type const.
519 * python/py-gdb-readline.c: Update.
520 * linespec.c (decode_line_2): Update.
521 * defs.h (command_line_input): Make return type const.
522 * cli/cli-script.c (read_next_line): Make return type const.
523 * ada-lang.c (get_selections): Update.
525 2019-11-06 Christian Biesinger <cbiesinger@google.com>
527 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
528 * mi/mi-main.c (output_cores): Likewise.
529 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
530 (linux_xfer_osdata_modules): Likewise.
531 * remote.c (register_remote_support_xml): Likewise.
532 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
533 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
535 2019-11-06 Tom Tromey <tom@tromey.com>
537 * tui/tui-interp.c: Don't include readline.h.
538 * tui/tui-hooks.c: Don't include readline.h.
539 * symmisc.c: Include tilde.h, not readline.h.
540 * symfile.c: Include tilde.h, not readline.h.
541 * source.c: Include tilde.h, not readline.h.
542 * solib.c: Include tilde.h, not readline.h.
543 * psymtab.c: Include tilde.h, not readline.h.
544 * exec.c: Include tilde.h, not readline.h.
545 * corelow.c: Include tilde.h, not readline.h.
546 * cli/cli-dump.c: Include tilde.h, not readline.h.
547 * cli/cli-cmds.c: Don't include readline.h.
549 2019-11-05 Tom Tromey <tom@tromey.com>
551 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
552 (tui_disassemble): Set addr_size.
553 (tui_disasm_window::set_contents): Use addr_size.
555 2019-11-05 Tom Tromey <tom@tromey.com>
557 * rust-lang.c (rust_language_defn): Update.
558 * python/py-value.c (valpy_string): Call c_get_string.
559 * p-lang.c (pascal_language_defn): Update.
560 * opencl-lang.c (opencl_language_defn): Update.
561 * objc-lang.c (objc_language_defn): Update.
562 * m2-lang.c (m2_language_defn): Update.
563 * language.c (unknown_language_defn, auto_language_defn): Update.
564 (default_get_string): Remove.
565 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
566 * go-lang.c (go_language_defn): Update.
567 * f-lang.c (f_language_defn): Update.
568 * d-lang.c (d_language_defn): Update.
569 * c-lang.c (c_language_defn, cplus_language_defn)
570 (asm_language_defn, minimal_language_defn): Update.
571 * ada-lang.c (ada_language_defn): Update.
572 * language.h (struct language_defn) <la_get_string>: Remove.
573 (LA_GET_STRING): Remove.
574 (default_get_string): Don't declare.
576 2019-11-05 Tom Tromey <tom@tromey.com>
578 * tui/tui-source.h (struct tui_source_window): Inline
579 constructor. Remove destructor.
580 <style_changed, m_observable>: Move to superclass.
581 * tui/tui-winsource.h (tui_copy_source_line): Declare.
582 (struct tui_source_window_base): Move private members to end.
583 <style_changed, m_observable>: Move from tui_source_window.
584 * tui/tui-winsource.c (tui_copy_source_line): Move from
585 tui-source.c. Rename from copy_source_line. Add special handling
586 for negative line number.
587 (tui_source_window_base::style_changed): Move from
589 (tui_source_window_base): Register observer.
590 (~tui_source_window_base): New.
591 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
593 (tui_source_window::set_contents): Use tui_copy_source_line.
594 (tui_source_window::tui_source_window): Move to tui-source.h.
595 (tui_source_window::~tui_source_window): Remove.
596 (tui_source_window::style_changed): Move to superclass.
597 * tui/tui-disasm.c (tui_disassemble): Create string file with
598 styling, when possible. Add "addr_size" parameter.
599 (tui_disasm_window::set_contents): Use tui_copy_source_line.
600 Don't compute maximum size.
601 (len_without_escapes): New function
603 2019-11-05 Tom Tromey <tom@tromey.com>
605 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
607 * tui/tui-winsource.c (tui_show_source_line): Update.
608 * tui/tui-source.c (tui_source_window::set_contents): Update.
609 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
611 2019-11-05 Christian Biesinger <cbiesinger@google.com>
613 * symtab.h (gdb_static_assert): Put && operator at the beginning
614 of the line instead of the end.
616 2019-11-04 Christian Biesinger <cbiesinger@google.com>
618 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
620 * symtab.h: Add a static_assert for sizeof (partial_symbol).
622 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
624 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
625 * configure.host: Mark *-*-solaris2.10* obsolete.
626 * configure.tgt: Mark Solaris < 11 obsolete.
627 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
628 Update target triplet.
630 2019-11-01 Tom Tromey <tromey@adacore.com>
632 * utils.c (print_sys_errmsg): Simplify.
634 2019-11-01 Tom Tromey <tromey@adacore.com>
636 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
638 2019-11-01 Christian Biesinger <cbiesinger@google.com>
640 * configure: Regenerate.
641 * configure.ac: Remove check for strerror_r.
642 * gdbsupport/common.m4: Check for strerror_r.
644 2019-11-01 Luis Machado <luis.machado@linaro.org>
648 * arm-tdep.c (arm_per_objfile): Rename to ...
649 (arm_per_bfd): ... this.
650 (arm_objfile_data_key): Rename to ...
651 (arm_bfd_data_key): ... this.
652 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
654 (arm_record_special_symbol): Likewise.
656 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
658 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
660 * c-typeprint.c (c_print_typedef): Likewise.
661 * f-typeprint.c (f_print_typedef): Likewise.
662 * m2-typeprint.c (m2_print_typedef): Likewise.
663 * p-typeprint.c (pascal_print_typedef): Likewise.
664 * rust-lang.c (rust_print_typedef): Likewise.
665 * symtab.c (print_symbol_info): Print a newline after calling
668 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
670 * symtab.c (info_module_cmdlist): New variable.
671 (info_module_command): New function.
672 (search_module_symbols): New function.
673 (info_module_subcommand): New function.
674 (struct info_modules_var_func_options): New struct.
675 (info_modules_var_func_options_defs): New variable.
676 (make_info_modules_var_func_options_def_group): New function.
677 (info_module_functions_command): New function.
678 (info_module_variables_command): New function.
679 (info_module_var_func_command_completer): New function.
680 (_initialize_symtab): Register new 'info module functions' and
681 'info module variables' commands.
682 * symtab.h (typedef symbol_search_in_module): New typedef.
683 (search_module_symbols): Declare new function.
684 * NEWS: Mention new commands.
686 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
688 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
689 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
690 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
692 (scan_partial_symbols): Only create partial module symbols for non
694 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
696 * symtab.c (search_domain_name): Likewise.
697 (search_symbols): Likewise.
698 (print_symbol_info): Likewise.
699 (symtab_symbol_info): Likewise.
700 (info_modules_command): New function.
701 (_initialize_symtab): Register 'info modules' command.
702 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
703 * NEWS: Mention new 'info modules' command.
705 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
707 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
708 and $_gdb_maint_setting_str.
710 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
712 * cli/cli-cmds.c (setting_cmd, value_from_setting)
713 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
714 (str_value_from_setting, gdb_setting_str_internal_fn)
715 (gdb_maint_setting_str_internal_fn): New functions.
716 (_initialize_cli_cmds): Define the new convenience functions.
717 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
718 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
720 2019-10-31 Christian Biesinger <cbiesinger@google.com>
722 * agent.c (set_can_use_agent): When the setting is turned on,
723 look up agent symbols if we don't have them yet.
724 (agent_new_objfile): Don't look up agent symbols when the agent
727 2019-10-31 Christian Biesinger <cbiesinger@google.com>
729 * config.in: Regenerate.
731 2019-10-31 Christian Biesinger <cbiesinger@google.com>
733 * configure: Regenerate.
734 * configure.ac: Check for strerror_r.
735 * gdbsupport/common-utils.h (safe_strerror): Change return value
736 to const char * and document that this function is now threadsafe.
737 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
738 thread_local and call strerror_r, if available.
739 * utils.c (perror_string): Update.
740 (print_sys_errmsg): Update.
742 2019-10-31 Luis Machado <luis.machado@linaro.org>
744 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
746 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
747 objfile to fetch per-bfd data.
748 (arm_find_exidx_entry): Likewise.
750 2019-10-31 Christian Biesinger <cbiesinger@google.com>
752 * gdbsupport/agent.c (debug_agent): Change type to bool.
753 (use_agent): Likewise.
754 (all_agent_symbols_look_up): Likewise.
755 (agent_loaded_p): Change return value to bool.
756 (agent_look_up_symbols): Update.
757 (agent_capability_check): Change return value to bool.
758 * gdbsupport/agent.h (agent_loaded_p): Likewise.
759 (debug_agent): Change type to bool.
760 (use_agent): Likewise.
761 (agent_capability_check): Change return value to bool.
763 2019-10-30 Christian Biesinger <cbiesinger@google.com>
765 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
766 (build_minimal_symbol_hash_tables): Code to clear the table moved
767 to clear_minimal_symbol_hash_tables.
768 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
771 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
773 * infcmd.c: Remove includes.
774 * infrun.c: Remove includes.
776 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
778 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
779 (grow_vect): Remove declaration.
780 (ada_type_of_array): Remove declaration.
781 (ada_update_initial_language): Remove declaration.
782 (ada_fold_name): Remove declaration.
783 (ada_fill_in_ada_prototype): Remove declaration.
784 (user_select_syms): Remove declaration.
785 (get_selections): Remove declaration.
786 (ada_tag_type): Remove declaration.
787 (ada_value_tag): Remove declaration.
788 (ada_is_others_clause): Remove declaration.
789 (ada_in_variant): Remove declaration.
790 (ada_value_struct_elt): Remove declaration.
791 (ada_attribute_name): Remove declaration.
792 (ada_system_address_type): Remove declaration.
793 * ada-lang.c (ada_watch_location_expression): Make static.
794 (GROW_VECT): Move here from ada-lang.h.
795 (grow_vect): Make static.
796 (ada_update_initial_language): Make static.
797 (ada_fold_name): Make static.
798 (ada_type_of_array): Make static.
799 (encoded_ordered_before): Move up.
800 (sort_choices): Move up.
801 (print_signatures): Move up.
802 (ada_print_symbol_signature): Move up.
803 (get_selections): Move up and make static.
804 (user_select_syms): Move up and make static.
805 (ada_value_struct_elt): Move up and make static.
806 (ada_tag_type): Make static.
807 (ada_value_tag): Make static.
808 (ada_is_others_clause): Make static.
809 (ada_in_variant): Make static.
810 (ada_attribute_name): Make static.
812 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
814 * ada-lang.c: Remove includes.
815 * ada-typeprint.c: Remove includes.
816 * ada-valprint.c: Remove includes.
818 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
820 * addrmap.c: Add static assertions of type size, moved from
822 (_initialize_addrmap): Remove.
824 2019-10-29 Christian Biesinger <cbiesinger@google.com>
826 * coffread.c (record_minimal_symbol): Update.
827 (process_coff_symbol): Update.
828 * dbxread.c (read_dbx_symtab): Update.
829 * dwarf2read.c (add_partial_symbol): Update.
830 (fixup_go_packaging): Update.
831 (load_partial_dies): Update.
832 (new_symbol): Update.
833 * elfread.c (record_minimal_symbol): Change signature to use
834 gdb::string_view instead of name+len.
835 (elf_symtab_read): Update.
836 (elf_rel_plt_read): Update.
837 * mdebugread.c (parse_partial_symbols): Update.
838 (handle_psymbol_enumerators): Update.
839 (new_symbol): Update.
840 * minsyms.c (minimal_symbol_reader::record_full): Change signature
841 to use gdb::string_view instead of name+len.
842 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
843 * psympriv.h (add_psymbol_to_list): Likewise.
844 * psymtab.c (add_psymbol_to_bcache): Likewise.
845 (add_psymbol_to_list): Likewise.
846 * stabsread.c (define_symbol): Update.
847 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
848 * symtab.h (SYMBOL_SET_NAMES): Likewise.
849 (symbol_set_names): Likewise.
850 * xcoffread.c (scan_xcoff_symtab): Update.
852 2019-10-29 Christian Biesinger <cbiesinger@google.com>
854 * symtab.h (symbol_set_names): Document that copy_name must be
855 set to true for non-nullterminated strings.
856 * symtab.c (symbol_set_names): Only make a nullterminated copy of
857 linkage_name if the entry was not found and we need to demangle.
859 2019-10-29 Christian Biesinger <cbiesinger@google.com>
861 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
862 * dwarf2-frame.c (bsearch_fde_cmp): Update.
863 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
864 * gdbsupport/gdb_binary_search.h: New file.
866 2019-10-29 Christian Biesinger <cbiesinger@google.com>
868 * NEWS: Mention new --with-system-gdbinit-dir option.
869 * config.in: Regenerate.
870 * configure: Regenerate.
871 * configure.ac: Add new option --with-system-gdbinit-dir.
872 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
874 * main.c (get_init_files): Change system_gdbinit argument to
875 a vector and return the files in SYSTEM_GDBINIT_DIR in
876 addition to SYSTEM_GDBINIT.
877 (captured_main_1): Update.
878 (print_gdb_help): Update.
879 * top.c (print_gdb_configuration): Also print the value of
882 2019-10-28 Christian Biesinger <cbiesinger@google.com>
884 * gdbsupport/common-utils.h (startswith): Add an overloaded version
885 that takes gdb::string_view arguments.
887 2019-10-26 Tom de Vries <tdevries@suse.de>
889 * aarch64-linux-tdep.c: Fix typos in comments.
890 * aarch64-tdep.c: Same.
894 * arch/aarch64-insn.c: Same.
896 * breakpoint.h: Same.
899 * cli/cli-decode.c: Same.
900 * cli/cli-script.c: Same.
901 * cli/cli-utils.h: Same.
902 * coff-pe-read.c: Same.
904 * compile/compile-cplus-symbols.c: Same.
905 * compile/compile-object-run.c: Same.
908 * cp-support.c: Same.
910 * dwarf-index-write.c: Same.
911 * dwarf2-frame.c: Same.
912 * dwarf2-frame.h: Same.
914 * frame-base.h: Same.
919 * guile/scm-objfile.c: Same.
928 * mi/mi-cmd-disas.c: Same.
929 * mi/mi-getopt.h: Same.
930 * mi/mi-main.c: Same.
932 * nat/aarch64-sve-linux-sigcontext.h: Same.
934 * ppc-linux-nat.c: Same.
935 * ppc-linux-tdep.c: Same.
938 * prologue-value.h: Same.
939 * python/py-evtregistry.c: Same.
940 * python/py-instruction.h: Same.
941 * record-btrace.c: Same.
942 * record-full.c: Same.
944 * rs6000-tdep.c: Same.
946 * sol-thread.c: Same.
947 * sparc-sol2-tdep.c: Same.
948 * sparc64-tdep.c: Same.
953 * tracepoint.c: Same.
954 * tui/tui-data.h: Same.
955 * tui/tui-io.c: Same.
956 * tui/tui-win.c: Same.
958 * unittests/rsp-low-selftests.c: Same.
970 * xtensa-tdep.c: Same.
972 2019-10-25 Ali Tamur <tamur@google.com>
974 * charset.c (find_charset_names): Reflect API change.
976 2019-10-25 Christian Biesinger <cbiesinger@google.com>
978 * symtab.c (struct demangled_name_entry): Change demangled name
979 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
980 part of the struct anymore.
981 (symbol_set_names): No longer obstack allocate + copy the demangled
982 name, just store the allocated name from bfd.
984 2019-10-25 Tom Tromey <tromey@adacore.com>
986 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
987 (bsearch_cie_cmp, add_cie): Remove.
988 (find_cie): Reimplement.
989 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
990 (dwarf2_build_frame_info): Update.
992 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
995 * symfile.c (reread_symbols): Call forget_cached_source_info to
996 clear the stale source cache.
998 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1000 * configure: Regenerate.
1001 * configure.ac: Remove code that sets python_has_threads.
1003 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1005 * config.in: Regenerate.
1006 * configure: Regenerate.
1007 * configure.ac: Remove the code that uses sed to get the python
1008 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1010 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1012 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1015 2019-10-23 Tom Tromey <tom@tromey.com>
1017 * arc-tdep.c: Remove ".." from include.
1018 * frv-tdep.c: Remove ".." from include.
1019 * lm32-tdep.c: Remove ".." from include.
1020 * microblaze-tdep.c: Remove ".." from include.
1021 * or1k-tdep.h: Remove ".." from include.
1022 * s12z-tdep.c: Remove ".." from include.
1023 * Makefile.in (OPCODES_CFLAGS): Add comment.
1024 (TOP_CFLAGS): New variable.
1025 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1027 2019-10-23 Tom Tromey <tom@tromey.com>
1029 * Makefile.in (READLINE_DIR): Update.
1031 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1033 * infcall.c (call_function_by_hand_dummy): Fix the function
1034 comment. And extract out a code section into...
1035 (reserve_stack_space): ...this new function.
1037 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1039 * infcall.c (value_arg_coerce): Remove an unused parameter.
1040 (call_function_by_hand_dummy): Update the call to
1043 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045 * infcall.c (call_function_by_hand_dummy): Refactor.
1047 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1049 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1051 2019-10-23 Tom Tromey <tom@tromey.com>
1053 * configure: Rebuild.
1054 * configure.ac: Don't check for sigprocmask.
1055 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1057 2019-10-23 Tom Tromey <tom@tromey.com>
1059 * configure: Rebuild.
1060 * acinclude.m4: Use m4_include, not sinclude.
1062 2019-10-23 Tom de Vries <tdevries@suse.de>
1064 PR breakpoints/24687
1065 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1067 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1069 * symtab.c (struct demangled_name_entry) <language>: Change from
1070 bitfield to regular variable.
1072 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1074 * symtab.c (struct demangled_name_entry): Add a constructor.
1075 (free_demangled_name_entry): New function to call the destructor
1076 for demangled_name_entry.
1077 (create_demangled_names_hash): Pass free_demangled_name_entry to
1079 (symbol_set_names): Call placement new for demangled_name_entry.
1080 * utils.c: No longer include xxhash.h here, now that fast_hash
1081 is inlined in the header.
1082 * utils.h: Instead, include it here.
1084 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1086 * Makefile.in: Link with libxxhash.
1087 * config.in: Regenerate.
1088 * configure: Regenerate.
1089 * configure.ac: Search for libxxhash.
1090 * utils.c (fast_hash): Use xxhash if present.
1092 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1094 * utils.h (fast_hash): New function.
1095 * symtab.c (hash_demangled_name_entry): Call new function
1098 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1100 * symtab.c (struct demangled_name_entry): Change type of mangled
1101 to gdb::string_view. Also adds a constructor that takes the
1103 (hash_demangled_name_entry): Update.
1104 (eq_demangled_name_entry): Update.
1105 (free_demangled_name_entry): New function to call the destructor
1106 now that this is not a POD anymore.
1107 (create_demangled_names_hash): Pass free_demangled_name_entry to
1109 (symbol_set_names): Update.
1111 2019-10-21 Ali Tamur <tamu@google.com>
1113 * dwarf2read.c (dir_index): Change type.
1114 (file_name_index): Likewise.
1115 (line_header::include_dir_at): Change comment and implementation on
1116 whether it is DWARF 5.
1117 (line_header::is_valid_file_index): New function.
1118 (line_header::file_name_at): Change comment and implementation on
1119 whether it is DWARF 5.
1120 (line_header::file_names): Change to private field renamed as
1121 m_file_names and introduce a new accessor method.
1122 (line_header::file_names_size): New method.
1123 (line_header::include_dirs): Change to private field and rename as
1125 (dw2_get_file_names_reader): Define local var at a smaller scope and
1127 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1128 (process_structure_scope): Likewise.
1129 (line_header::add_include_dir): Change message and reflect renaming.
1130 (line_header::add_file_name): Likewise.
1131 (read_formatted_entries): Handle DW_FORM_data16.
1132 (dwarf_decode_line_header): Fix line header length calculation.
1133 (psymtab_include_file_name): Change comment and API.
1134 (lnp_state_machine::m_file): Update comment and reflect type change.
1135 (lnp_state_machine::record_line): Reflect type change.
1136 (dwarf_decode_lines): Reflect API change.
1137 (file_file_name): Likewise.
1138 (file_full_name): Likewise.
1140 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1142 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1144 2019-10-21 Tom Tromey <tom@tromey.com>
1146 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1148 2019-10-21 Tom Tromey <tom@tromey.com>
1150 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1151 NM_H. Use AC_CONFIG_LINKS.
1152 * configure: Rebuild.
1153 * Makefile.in (NM_H): New variable.
1154 (generated_files): Add NM_H. Remove gcore.
1155 (nm.h, stamp-nmh): New targets.
1157 2019-10-20 Tom Tromey <tom@tromey.com>
1159 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1160 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1162 (put_objfile_before): Now static.
1164 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1166 * gdbsupport/common-utils.h (startswith): Change return type to
1169 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1171 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1172 * breakpoint.c (bp_locations_compare): Rename to...
1173 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1174 (update_global_location_list): Use std::sort instead of qsort.
1175 * buildsym.c (compare_line_numbers): Rename to...
1176 (lte_is_less_than): ...this, and change to std::sort semantics.
1177 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1179 * disasm.c (compare_lines): Rename to...
1180 (line_is_less_than): ...this, and change to std::sort semantics.
1181 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1183 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1184 (fde_is_less_than): ...this, and change to std::sort semantics.
1185 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1186 * mdebugread.c (compare_blocks):
1187 (block_is_less_than): ...this, and change to std::sort semantics.
1188 (sort_blocks): Call std::sort instead of qsort.
1189 * objfiles.c (qsort_cmp): Rename to...
1190 (sort_cmp): ...this, and change to std::sort semantics.
1191 (update_section_map): Call std::sort instead of qsort.
1192 * remote.c (compare_pnums): Remove.
1193 (map_regcache_remote_table): Call std::sort instead of qsort.
1194 * utils.c (compare_positive_ints): Remove.
1195 * utils.h (compare_positive_ints): Remove.
1196 * xcoffread.c (compare_lte): Remove.
1197 (arrange_linetable): Call std::sort instead of qsort.
1199 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1201 * symfile.c (init_entry_point_info): Fix typo.
1202 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1204 2019-10-18 Tom de Vries <tdevries@suse.de>
1206 * aarch64-tdep.c: Fix typos in comments.
1208 * ada-tasks.c: Same.
1209 * alpha-tdep.c: Same.
1210 * alpha-tdep.h: Same.
1211 * amd64-nat.c: Same.
1212 * amd64-windows-tdep.c: Same.
1215 * arch-utils.c: Same.
1216 * arm-nbsd-tdep.c: Same.
1219 * blockframe.c: Same.
1222 * coff-pe-read.c: Same.
1224 * cris-tdep.c: Same.
1225 * darwin-nat.c: Same.
1229 * dtrace-probe.c: Same.
1230 * dwarf-index-write.c: Same.
1231 * dwarf2-frame-tailcall.c: Same.
1232 * dwarf2-frame.c: Same.
1233 * dwarf2read.c: Same.
1235 * exceptions.c: Same.
1236 * fbsd-tdep.c: Same.
1240 * gnu-v3-abi.c: Same.
1242 * h8300-tdep.c: Same.
1243 * hppa-tdep.c: Same.
1244 * i386-linux-tdep.c: Same.
1245 * i386-tdep.c: Same.
1246 * ia64-libunwind-tdep.c: Same.
1247 * ia64-tdep.c: Same.
1251 * linux-nat.c: Same.
1252 * linux-thread-db.c: Same.
1253 * machoread.c: Same.
1254 * mdebugread.c: Same.
1256 * mn10300-tdep.c: Same.
1257 * namespace.c: Same.
1259 * opencl-lang.c: Same.
1260 * or1k-tdep.c: Same.
1262 * ppc-linux-nat.c: Same.
1263 * ppc-linux-tdep.c: Same.
1264 * ppc-sysv-tdep.c: Same.
1267 * record-btrace.c: Same.
1268 * record-full.c: Same.
1269 * remote-fileio.c: Same.
1271 * rs6000-tdep.c: Same.
1272 * s12z-tdep.c: Same.
1273 * score-tdep.c: Same.
1277 * sol-thread.c: Same.
1278 * solib-svr4.c: Same.
1281 * sparc-nat.c: Same.
1282 * sparc-sol2-tdep.c: Same.
1283 * sparc-tdep.c: Same.
1284 * sparc64-tdep.c: Same.
1285 * stabsread.c: Same.
1289 * target-descriptions.c: Same.
1290 * target-float.c: Same.
1297 * windows-nat.c: Same.
1298 * xcoffread.c: Same.
1299 * xstormy16-tdep.c: Same.
1300 * xtensa-tdep.c: Same.
1302 2019-10-17 Tom Tromey <tromey@adacore.com>
1304 * configure: Rebuild.
1305 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1306 in AC_CONFIG_FILES invocation.
1307 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1308 new-style config.status invocation.
1310 2019-10-17 Tom de Vries <tdevries@suse.de>
1312 * arm-nbsd-nat.c: Fix typos in comments.
1314 * darwin-nat-info.c: Same.
1315 * dwarf2read.c: Same.
1317 * event-top.c: Same.
1320 * hppa-tdep.c: Same.
1321 * i386-tdep.c: Same.
1324 * mdebugread.c: Same.
1325 * moxie-tdep.c: Same.
1326 * nto-procfs.c: Same.
1328 * ppc-linux-tdep.c: Same.
1330 * riscv-tdep.c: Same.
1331 * s390-tdep.c: Same.
1333 * sparc-linux-tdep.c: Same.
1334 * sparc-nat.c: Same.
1336 * target-descriptions.c: Same.
1340 2019-10-16 Tom Tromey <tom@tromey.com>
1342 * objfiles.h (struct objfile) <original_name>: Now const.
1344 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1346 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1347 pass on to sigsetjmp's second argument.
1348 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1350 2019-10-16 Keith Seitz <keiths@redhat.com>
1353 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1354 sections whose size is greater than the file size.
1356 2019-10-16 Jim Wilson <jimw@sifive.com>
1358 * riscv-tdep.c (riscv_gcc_target_options): New.
1359 (riscv_gnu_triplet_regexp): New.
1360 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1361 set_gdbarch_gnu_triplet_regexp.
1363 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1365 * Makefile.in: Add xml-builtin.h.
1366 * features/feature_to_c.sh: Add an include for xml-builtin.h
1367 to ensure that the compiler checks that the types match.
1368 * xml-builtin.h: New file.
1369 * xml-support.c (fetch_xml_builtin): Add missing const.
1370 * xml-support.h: Remove declaration of xml_builtins.
1372 2019-10-16 Tom de Vries <tdevries@suse.de>
1375 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1376 (amd64_classify_aggregate): ... here.
1377 (amd64_classify_aggregate_field): Handled fiels of nested structs
1380 2019-10-16 Tom de Vries <tdevries@suse.de>
1383 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1384 that handles 'theclass'.
1386 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1388 * linespec.c (decode_digits_ordinary): Update comment.
1389 * make-target-delegates: No longer need to handle VEC case.
1390 * memrange.c (normalize_mem_ranges): Update comment.
1391 * namespace.c (add_using_directive): Update comment.
1392 * objc-lang.c (uniquify_strings): Update comment.
1393 * ppc-linux-nat.c (struct thread_points): Update comment.
1394 * probe.h (find_probes_in_objfile): Update comment.
1395 * target.h (enum flash_preserve_mode): Update comment.
1396 * varobj.c (varobj_restrict_range): Update comment.
1397 * varobj.h (varobj_list_children): Update comment.
1399 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1401 * Makefile.in: Remove references to vec.h and vec.c.
1402 * aarch64-tdep.c: No longer include vec.h.
1403 * ada-lang.c: Likewise.
1404 * ada-lang.h: Likewise.
1405 * arm-tdep.c: Likewise.
1407 * breakpoint.h: Likewise.
1408 * charset.c: Likewise.
1409 * cp-support.h: Likewise.
1410 * dtrace-probe.c: Likewise.
1411 * dwarf2read.c: Likewise.
1412 * extension.h: Likewise.
1413 * gdb_bfd.c: Likewise.
1414 * gdbsupport/gdb_vecs.h: Likewise.
1415 * gdbsupport/vec.c: Remove.
1416 * gdbsupport/vec.h: Remove.
1417 * gdbthread.h: Likewise.
1418 * guile/scm-type.c: Likewise.
1419 * inline-frame.c: Likewise.
1420 * machoread.c: Likewise.
1421 * memattr.c: Likewise.
1422 * memrange.h: Likewise.
1423 * namespace.h: Likewise.
1424 * nat/linux-btrace.h: Likewise.
1425 * osdata.c: Likewise.
1426 * parser-defs.h: Likewise.
1427 * progspace.h: Likewise.
1428 * python/py-type.c: Likewise.
1429 * record-btrace.c: Likewise.
1430 * rust-exp.y: Likewise.
1431 * solib-target.c: Likewise.
1432 * stap-probe.c: Likewise.
1433 * target-descriptions.c: Likewise.
1434 * target-memory.c: Likewise.
1435 * target.h: Likewise.
1436 * varobj.c: Likewise.
1437 * varobj.h: Likewise.
1438 * xml-support.h: Likewise.
1440 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1442 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1443 Update for new std::vector based implementation.
1444 (process_psymtab_comp_unit_reader): Likewise.
1445 (scan_partial_symbols): Likewise.
1446 (recursively_compute_inclusions): Likewise.
1447 (compute_compunit_symtab_includes): Likewise.
1448 (process_imported_unit_die): Likewise.
1449 (queue_and_load_dwo_tu): Likewise.
1450 (follow_die_sig_1): Likewise.
1451 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1452 (typedef dwarf2_per_cu_ptr): Remove.
1453 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1455 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1456 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1457 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1458 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1461 2019-10-15 Tom Tromey <tromey@adacore.com>
1463 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1466 2019-10-15 Tom Tromey <tromey@adacore.com>
1468 * windows-nat.c (windows_nat_target::fetch_registers)
1469 (windows_nat_target::store_registers): Rename "pid" to "tid".
1471 2019-10-15 Tom Tromey <tromey@adacore.com>
1473 * gdbarch.h, gdbarch.c: Rebuild.
1474 * gdbarch.sh (gcc_target_options): Change return type to
1476 * compile/compile.c (get_args): Update.
1477 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1478 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1480 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1482 * arch-utils.c (default_gcc_target_options): Return std::string.
1483 * arch-utils.h (default_gcc_target_options): Return std::string.
1484 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1486 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1488 * breakpoint.c (breakpoint_chain): Make static.
1489 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1490 of accessing breakpoint_chain.
1492 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1494 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1495 to a gdb::function_view and return value to bool.
1496 * breakpoint.h (iterate_over_breakpoints): Likewise.
1497 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1498 (pop_dummy_frame): Update.
1499 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1500 (gdbscm_breakpoints): Update.
1501 * python/py-breakpoint.c (build_bp_list): Update.
1502 (gdbpy_breakpoints): Update.
1503 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1505 (bpfinishpy_handle_stop): Update.
1506 (bpfinishpy_handle_exit): Update.
1507 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1508 (svr4_update_solib_event_breakpoints): Update.
1510 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1512 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1513 when unwrapping single-field structs.
1515 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1517 * dwarf2read.c: Remove includes.
1519 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1521 * ui-out.c (ui_out::call_do_message): Silence
1522 -Wformat-nonliteral warning.
1524 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1526 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1527 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1528 include: readline/tilde.h.
1530 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1532 * remote.c (remote_target::get_trace_status): Remove declaration of
1533 trace_regblock_size.
1535 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1537 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1538 (show_user): Remove declaration of cmdlist.
1539 * cli/cli-cmds.h (max_user_call_depth): Declare.
1540 * cli/cli-script.c (execute_user_command): Remove declaration
1541 of max_user_call_depth.
1543 2019-10-11 Jim Wilson <jimw@sifive.com>
1545 * gdbsupport/print-utils.h (pulongest): Fix comment.
1546 (plongest): Likewise.
1547 (phex): Add missing comment, mention leading zeros.
1548 (phex_nz): Add mention of no leading zeros to comment.
1550 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1551 plongest instead of unsigned long long cast.
1553 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1555 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1556 for external_editor_command and gdbtk_test.
1558 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1560 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1561 * varobj.c (varobjdebug): Move comment to...
1562 * varobj.h (varobjdebug): ...here, and declare.
1564 2019-10-09 Tom Tromey <tom@tromey.com>
1566 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1569 2019-10-09 Tom Tromey <tom@tromey.com>
1571 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1572 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1573 * tui/tui-command.c (tui_cmd_window::resize)
1574 (tui_refresh_cmd_win): Update.
1575 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1576 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1577 * tui/tui-data.c (~tui_gen_win_info): Remove.
1578 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1579 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1580 (tui_redisplay_readline, tui_mld_flush)
1581 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1582 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1583 (tui_data_window::erase_data_content)
1584 (tui_data_item_window::rerender)
1585 (tui_data_item_window::refresh_window): Update.
1586 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1587 (box_win, tui_gen_win_info::make_window)
1588 (tui_gen_win_info::make_visible): Update.
1589 (tui_delete_win): Remove.
1590 * tui/tui-winsource.c
1591 (tui_source_window_base::do_erase_source_content): Update.
1592 (tui_show_source_line, tui_source_window_base::update_tab_width)
1593 (tui_source_window_base::update_exec_info): Update.
1594 * tui/tui-data.h (struct curses_deleter): New.
1595 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1596 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1598 2019-10-09 Tom Tromey <tom@tromey.com>
1600 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1602 2019-10-09 Tom Tromey <tom@tromey.com>
1604 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1605 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1607 2019-10-09 Tom Tromey <tom@tromey.com>
1609 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1610 window height directly.
1611 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1613 * tui/tui-layout.c (tui_default_win_height): Remove.
1614 (tui_default_win_viewport_height): Remove.
1616 2019-10-09 Tom Tromey <tom@tromey.com>
1618 * tui/tui.h: Remove comments.
1620 2019-10-09 Tom de Vries <tdevries@suse.de>
1622 * python/lib/gdb/printer/bound_registers.py: Use
1623 '^builtin_type_bound128' as regexp argument for
1624 add_builtin_pretty_printer.
1626 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1628 * guile/guile.c (guile_extension_script_ops): Remove forward
1629 declaration and mark as static.
1630 (guile_script_ops): Likewise.
1631 (extension_language_guile): Move further down in the file so
1632 it can reference the definitions for guile_{extension_,}script_ops.
1634 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1636 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1637 except SORTL, DFLTCC, and KDSA.
1639 2019-10-08 Tom Tromey <tromey@adacore.com>
1641 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1642 (struct safe_symbol_file_add_args): Remove.
1644 2019-10-08 Tom Tromey <tromey@adacore.com>
1646 * windows-nat.c: Don't include buildsym-legacy.h.
1648 2019-10-08 Tom Tromey <tromey@adacore.com>
1650 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1652 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1654 * gdbtypes.c (overload_debug): Move comment to header.
1655 * gdbtypes.h (overload_debug): Declare.
1656 * valops.c: Remove declaration of overload_debug, instead
1659 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1661 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1663 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1665 * language.h (lang_frame_mismatch_warn): ... here. Also add
1667 * top.c (lang_frame_mismatch_warn): Remove declaration.
1668 (check_frame_language_change): Pass lang_frame_mismatch_warn
1671 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1673 * c-lang.h (vtbl_ptr_name): Declare.
1674 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1676 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1678 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1680 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1683 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1685 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1686 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1687 * ctfread.c: New file.
1688 * ctfread.h: New file.
1689 * elfread.c: Include ctfread.h.
1690 (struct elfinfo text_p): New member ctfsect.
1691 (elf_locate_sections): Mark CTF section.
1692 (elf_symfile_read): Call elfctf_build_psymtabs.
1693 * Makefile.in (LIBCTF): Add.
1696 (DIST): Add ctfread.c.
1698 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1700 * ctfread.c (struct nextfield): Renamed to ...
1701 (struct ctf_nextfield): ... this.
1702 (struct field_info): Renamed to ...
1703 (strut ctf_field_info): ... this.
1704 (attach_fields_to_type): Update for renamed structures.
1705 (ctf_add_member_cb): Likewise.
1706 (ctf_add_enum_member_cb): Likewise.
1707 (process_struct_members): Likewise.
1708 (process_enum_type): Likewise.
1710 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1712 * tracectf.h: Rename, was ctf.h.
1713 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1714 * tracefile.c: Likewise.
1715 * tracepoint.c: Remove unused include ctf.h.
1716 * mi/mi-main.c: Likewise.
1717 * Makefile.in Replace ctf.c with tracectf.c.
1719 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1721 * version.in: Change version number to "9.0.50.DATE-git".
1723 2019-10-03 Tom Tromey <tom@tromey.com>
1726 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1728 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1730 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1731 cp_search_name_hash.
1732 * NEWS: Add entry about nested function support.
1734 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1735 Andrew Burgess <andrew.burgess@embecosm.com>
1737 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1738 for nested static variables when searchin VAR_DOMAIN.
1739 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1740 global scope, update comment.
1741 (add_partial_subprogram): Call add_partial_subprogram recursively
1742 for nested subroutines when processinng Fortran.
1743 (load_partial_dies): Process the child entities of a subprogram
1744 when processing Fortran.
1745 (partial_die_parent_scope): Handle building scope
1746 for Fortran nested functions.
1747 (process_die): Record that nested functions have a scope.
1748 (new_symbol): Always record Fortran subprograms on the global
1750 (determine_prefix): How to build the prefix for Fortran
1753 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1755 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1756 have just sent the thread a SIGSTOP and are waiting for it to
1759 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1761 * btrace.c (btrace_add_pc): Remove whitespace before the template
1762 parameter in 'std::vector <...>'.
1763 (parse_xml_btrace_block): Likewise.
1764 (btrace_maint_decode_pt): Likewise.
1765 (btrace_maint_update_packets): Likewise.
1766 (btrace_maint_print_packets): Likewise.
1767 * btrace.h (struct btrace_maint_info): Likewise.
1768 * dwarf2read.c (struct type_unit_group): Likewise.
1769 (build_type_psymtabs_reader): Likewise.
1770 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1771 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1772 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1774 2019-10-03 Tom de Vries <tdevries@suse.de>
1776 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1777 the first line of the help text for set/show style metadata.
1779 2019-10-02 Tom Tromey <tromey@adacore.com>
1781 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1782 * gdbsupport/common-inferior.c: New file.
1783 * infcmd.c (startup_with_shell): Don't define.
1784 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1785 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1786 * inferior.h (startup_with_shell): Don't declare.
1788 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1790 * gdbsupport/gdb_assert.h: Include errors.h.
1791 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1793 2019-10-02 Tom Tromey <tromey@adacore.com>
1795 * NEWS: Add $_ada_exception entry.
1796 * ada-lang.c (struct ada_catchpoint): Add constructor.
1797 <m_kind>: New member.
1798 (allocate_location_exception, re_set_exception): Remove
1800 (should_stop_exception): Compute $_ada_exception.
1801 (check_status_exception, print_it_exception)
1802 (print_one_exception, print_mention_exception): Remove
1804 (allocate_location_catch_exception, re_set_catch_exception)
1805 (check_status_exception, print_it_catch_exception)
1806 (print_one_catch_exception, print_mention_catch_exception)
1807 (print_recreate_catch_exception)
1808 (allocate_location_catch_exception_unhandled)
1809 (re_set_catch_exception_unhandled)
1810 (check_status_exception, print_it_catch_exception_unhandled)
1811 (print_one_catch_exception_unhandled)
1812 (print_mention_catch_exception_unhandled)
1813 (print_recreate_catch_exception_unhandled)
1814 (allocate_location_catch_assert, re_set_catch_assert)
1815 (check_status_assert, print_it_catch_assert)
1816 (print_one_catch_assert, print_mention_catch_assert)
1817 (print_recreate_catch_assert)
1818 (allocate_location_catch_handlers, re_set_catch_handlers)
1819 (check_status_handlers, print_it_catch_handlers)
1820 (print_one_catch_handlers, print_mention_catch_handlers)
1821 (print_recreate_catch_handlers): Remove.
1822 (create_ada_exception_catchpoint): Update.
1823 (initialize_ada_catchpoint_ops): Update.
1825 2019-10-02 Tom Tromey <tromey@adacore.com>
1827 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1828 (create_excep_cond_exprs): Simplify exception string computation.
1829 (ada_exception_catchpoint_cond_string): Likewise.
1831 2019-10-02 Tom Tromey <tromey@adacore.com>
1833 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1834 * ada-lang.c (lesseq_defined_than): Handle
1836 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1838 (dwarf2_has_info): Likewise.
1839 (new_symbol): Set maybe_copied on symbol when
1841 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1843 <can_copy>: New member.
1844 * elfread.c (record_minimal_symbol): Set maybe_copied
1845 on symbol when appropriate.
1846 (elf_symfile_read): Update call to dwarf2_has_info.
1847 * minsyms.c (lookup_minimal_symbol_linkage): New
1849 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1850 * symtab.c (get_symbol_address, get_msymbol_address):
1852 * symtab.h (get_symbol_address, get_msymbol_address):
1854 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1856 (struct symbol, struct minimal_symbol) <maybe_copied>:
1859 2019-10-02 Tom Tromey <tromey@adacore.com>
1861 * source.c (struct current_source_location): New.
1862 (current_source_key): New global.
1863 (current_source_symtab, current_source_line)
1864 (current_source_pspace): Remove.
1865 (get_source_location): New function.
1866 (get_current_source_symtab_and_line)
1867 (set_default_source_symtab_and_line)
1868 (set_current_source_symtab_and_line)
1869 (clear_current_source_symtab_and_line, select_source_symtab)
1870 (info_source_command, print_source_lines_base)
1871 (info_line_command, search_command_helper, _initialize_source):
1874 2019-10-02 Tom Tromey <tromey@adacore.com>
1876 * source.c (select_source_symtab): Don't call
1877 decode_line_with_current_source.
1879 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1881 * symtab.c (lookup_global_symbol): Search global block.
1883 2019-10-02 Tom Tromey <tromey@adacore.com>
1885 * coffread.c (process_coff_symbol): Update.
1886 * dwarf2read.c (var_decode_location, new_symbol): Update.
1887 * mdebugread.c (parse_symbol): Update.
1888 * objfiles.c (relocate_one_symbol): Update.
1889 * stabsread.c (define_symbol, fix_common_block)
1890 (scan_file_globals): Update.
1891 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1892 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1893 * xcoffread.c (process_xcoff_symbol): Update.
1895 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1897 * MAINTAINERS: Update my email address.
1899 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1901 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1903 (build_type_psymtabs_reader): Update for std::vector.
1904 (build_type_psymtab_dependencies): Likewise.
1905 * dwarf2read.h: Remove use of DEF_VEC_P.
1906 (typedef sig_type_ptr): Delete.
1908 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1910 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1912 (btrace_maint_decode_pt): Likewise, and move allocation of the
1913 vector outside of the loop.
1914 (btrace_maint_update_packets): Update to handle change from VEC to
1916 (btrace_maint_print_packets): Likewise.
1917 (maint_info_btrace_cmd): Likewise.
1918 * btrace.h: Remove use of DEF_VEC_O.
1919 (typedef btrace_pt_packet_s): Delete.
1920 (struct btrace_maint_info) <packets>: Change fromm VEC to
1922 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1924 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1926 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1927 make accesses into the vector constant references.
1928 (btrace_add_pc): Update for std::vector.
1929 (btrace_stitch_bts): Likewise.
1930 (parse_xml_btrace_block): Likewise.
1931 (btrace_maint_update_packets): Likewise.
1932 (btrace_maint_print_packets): Likewise.
1933 (maint_info_btrace_cmd): Likewise.
1934 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1936 (btrace_data::empty): Likewise.
1937 (btrace_data_append): Likewise.
1938 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1939 (typedef btrace_block_s): Delete.
1940 (struct btrace_block): Add constructor.
1941 (struct btrace_data_bts) <blocks>: Change to std::vector.
1942 * nat/linux-btrace.c (perf_event_read_bts): Update for
1944 (linux_read_bts): Likewise.
1946 2019-10-01 Tom Tromey <tom@tromey.com>
1948 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1950 2019-10-01 Tom Tromey <tom@tromey.com>
1952 * stack.c (print_frame, info_frame_command_core): Use
1954 * linux-thread-db.c (try_thread_db_load_1)
1955 (try_thread_db_load_from_pdir_1): Use styled_string.
1956 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1957 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1958 (maybe_print_unsupported_script_warning)
1959 (maybe_print_script_not_found_warning): Use styled_string.
1960 * ada-lang.c (user_select_syms): Use styled_string.
1962 2019-10-01 Tom Tromey <tom@tromey.com>
1964 * p-lang.c (pascal_printstr): Use metadata style.
1965 * value.c (show_convenience): Use metadata style.
1966 * valprint.c (valprint_check_validity, val_print_optimized_out)
1967 (val_print_not_saved, val_print_unavailable)
1968 (val_print_invalid_address, generic_val_print, val_print)
1969 (value_check_printable, val_print_array_elements): Use metadata
1971 * ui-out.h (class ui_out) <field_fmt>: New overload.
1972 <do_field_fmt>: Add style parameter.
1973 * ui-out.c (ui_out::field_fmt): New overload.
1974 * typeprint.c (type_print_unknown_return_type)
1975 (val_print_not_allocated, val_print_not_associated): Use metadata
1977 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1979 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1980 * tracepoint.c (tvariables_info_1): Use metadata style.
1981 * stack.c (print_frame_arg, print_frame_info, print_frame)
1982 (info_frame_command_core): Use metadata style.
1983 * skip.c (info_skip_command): Use metadata style.
1984 * rust-lang.c (rust_print_enum): Use metadata style.
1985 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1987 * python/py-framefilter.c (py_print_single_arg): Use metadata
1989 * printcmd.c (do_one_display, print_variable_and_value): Use
1991 * p-valprint.c (pascal_val_print)
1992 (pascal_object_print_value_fields): Use metadata style.
1993 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1994 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1996 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1997 * m2-valprint.c (m2_print_long_set): Use metadata style.
1998 * m2-typeprint.c (m2_print_type): Use metadata style.
1999 * infcmd.c (print_return_value_1): Use metadata style.
2000 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2001 * f-valprint.c (info_common_command_for_block): Use metadata
2003 * f-typeprint.c (f_type_print_base): Use metadata style.
2004 * expprint.c (print_subexp_standard): Use metadata style.
2005 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2006 * cli/cli-style.h (class cli_style_option): Add constructor.
2007 (metadata_style): Declare.
2008 * cli/cli-style.c (metadata_style): New global.
2009 (_initialize_cli_style): Register metadata style.
2010 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2012 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2013 * c-typeprint.c (c_type_print_base_struct_union)
2014 (c_type_print_base_1): Use metadata style.
2015 * breakpoint.c (watchpoint_value_print)
2016 (print_one_breakpoint_location): Use metadata style.
2017 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2019 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2021 * ada-valprint.c (val_print_packed_array_elements, printstr)
2022 (print_field_values, ada_val_print_ref, ada_val_print): Use
2024 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2026 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2028 * ada-lang.c (user_select_syms): Use metadata style.
2030 2019-10-01 Tom Tromey <tom@tromey.com>
2032 * cli/cli-cmds.c (pwd_command): Style output.
2034 2019-10-01 Pedro Alves <palves@redhat.com>
2035 Tom Tromey <tom@tromey.com>
2037 * symtab.c (print_symbol_info): Use %ps.
2038 (print_msymbol_info): Use %ps.
2039 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2040 * printcmd.c (print_variable_and_value): Use %ps.
2041 * macrocmd.c (show_pp_source_pos): Use %ps.
2042 * infrun.c (print_exited_reason): Use ui_out::message.
2043 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2044 (describe_other_breakpoints): Use ui_out::message and new
2046 (say_where): Use new formats.
2047 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2050 2019-10-01 Pedro Alves <palves@redhat.com>
2051 Tom Tromey <tom@tromey.com>
2053 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2054 (test_gdb_formats): New function.
2055 (run_tests): Call it.
2056 (test_format_specifier): Update.
2057 * utils.h (fputs_filtered): Update comment.
2058 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2059 (fputs_styled_unfiltered): Declare.
2060 * utils.c (fputs_styled_unfiltered): New function.
2061 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2062 (vfprintf_filtered): Update.
2063 (vfprintf_unfiltered, vprintf_filtered): Update.
2064 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2065 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2066 disallow_ui_out_field>: New constants.
2067 (enum class field_kind): New.
2068 (struct base_field_s, struct signed_field_s): New.
2069 (signed_field): New function.
2070 (struct string_field_s): New.
2071 (string_field): New function.
2072 (struct styled_string_s): New.
2073 (styled_string): New function.
2074 (class ui_out) <message>: Add comment.
2075 <vmessage, call_do_message>: New methods.
2076 <do_message>: Add style parameter.
2077 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2079 (ui_out::message): Rewrite.
2080 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2082 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2083 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2084 gdb_extensions parameter.
2085 (class format_piece): Add parameter to constructor.
2086 (n_int_args): New field.
2087 * gdbsupport/format.c (format_pieces::format_pieces): Add
2088 gdb_extensions parameter. Handle '*'.
2089 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2090 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2091 vfprintf_styled_no_gdbfmt.
2092 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2093 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2095 * ui-style.h (struct ui_file_style) <ptr>: New method.
2097 2019-10-01 Tom Tromey <tom@tromey.com>
2099 * unittests/format_pieces-selftests.c: Update. Add final format.
2100 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2101 empty literal pieces.
2103 2019-10-01 Tom Tromey <tom@tromey.com>
2105 * ui-out.h (enum class ui_out_style_kind): Remove.
2106 (class ui_out) <field_string, field_stsream, do_field_string>:
2107 Change type of "style".
2108 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2109 (ui_out::field_string): Update.
2110 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2112 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2113 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2114 * stack.c (print_frame_arg, print_frame_info, print_frame):
2116 * source.c (print_source_lines_base): Update.
2117 * solib.c (info_sharedlibrary_command): Update.
2118 * skip.c (info_skip_command): Update.
2119 * record-btrace.c (btrace_call_history_src_line)
2120 (btrace_call_history): Update.
2121 * python/py-framefilter.c (py_print_frame): Update.
2122 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2124 * mi/mi-out.c (mi_ui_out::do_table_header)
2125 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2126 (mi_ui_out::do_field_string): Update.
2127 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2129 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2131 * cli-out.c (cli_ui_out::do_table_header)
2132 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2133 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2134 (cli_ui_out::do_field_fmt): Update.
2135 * breakpoint.c (print_breakpoint_location): Update.
2136 (update_static_tracepoint): Update.
2138 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2140 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2141 conversion of gdb_datadir.
2142 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2143 remove not needed c_str ().
2145 2019-09-30 Ali Tamur <tamur@google.com>
2147 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2148 (dwarf2_string_attr): Likewise.
2150 2019-09-30 Ali Tamur <tamur@google.com>
2152 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2153 (process_full_type_unit): Likewise.
2154 (dump_die_shallow): Likewise.
2155 (cu_debug_loc_section): Likewise.
2157 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2159 * minsyms.c (compare_minimal_symbols): Rename to...
2160 (minimal_symbol_is_less_than): ...this, and adjust to STL
2161 conventions (return bool, take arguments as references)
2162 (minimal_symbol_reader::install): Call std::sort instead
2165 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2167 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2169 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2170 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2172 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2174 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2175 * psympriv.h (add_psymbol_to_list): Move comment here and update
2178 2019-09-29 Tom de Vries <tdevries@suse.de>
2180 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2181 Use $tmpdir/$(basename "$output_file").dwz instead of
2182 "${output_file}.dwz".
2184 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2187 * hppa-linux-nat.c: Include gdbarch.h.
2189 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2191 * blockframe.c (find_pc_partial_function): Change return type to bool.
2192 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2193 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2194 (stub_gnu_ifunc_resolve_name): Likewise.
2195 * symtab.c (compare_filenames_for_search): Likewise.
2196 (compare_glob_filenames_for_search): Likewise.
2197 (matching_obj_sections): Likewise.
2198 (symbol_matches_domain): Likewise.
2199 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2200 (find_line_pc): Change return type to bool.
2201 (find_line_pc_range): Likewise.
2202 (producer_is_realview): Likewise.
2203 * symtab.h (symbol_matches_domain): Likewise.
2204 (find_pc_partial_function): Likewise.
2205 (find_pc_line_pc_range): Likewise.
2206 (in_gnu_ifunc_stub): Likewise.
2207 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2208 (find_line_pc): Likewise.
2209 (find_line_pc_range): Likewise.
2210 (matching_obj_sections): Likewise.
2211 (find_line_symtab): Change out parameter to bool.
2212 (producer_is_realview): Change return type to bool.
2213 (compare_filenames_for_search): Likewise.
2214 (compare_glob_filenames_for_search): Likewise.
2216 2019-09-26 Tom Tromey <tom@tromey.com>
2218 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2219 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2220 * gdb_usleep.h: Remove.
2221 * gdb_usleep.c: Remove.
2222 * utils.c: Don't include gdb_usleep.h.
2224 2019-09-26 Tom Tromey <tromey@adacore.com>
2226 * python/py-type.c (type_to_type_object): Call check_typedef
2229 2019-09-26 Tom Tromey <tom@tromey.com>
2231 * utils.h (initialize_utils): Don't declare.
2232 * top.c (gdb_init): Don't call initialize_utils.
2233 * utils.c (initialize_utils): Remove. Move contents...
2234 (_initialize_utils): ... here.
2236 2019-09-25 Tom Tromey <tom@tromey.com>
2238 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2239 * utils.h (make_hex_string): Don't declare.
2240 * utils.c (make_hex_string): Remove.
2242 2019-09-24 Tom de Vries <tdevries@suse.de>
2245 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2246 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2248 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2250 * NEWS: Mention new simulator port for PRU.
2252 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2254 * ada-exp.y (write_object_remaining): Update.
2255 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2256 and eliminate the static buffer.
2257 (ada_decode_symbol): Update.
2258 (ada_la_decode): Update.
2259 (ada_sniff_from_mangled_name): Update.
2260 (is_valid_name_for_wild_match): Update.
2261 (ada_lookup_name_info::matches): Update and simplify.
2262 (name_matches_regex): Update.
2263 (ada_add_global_exceptions): Update.
2264 * ada-lang.h (ada_decode): Update signature.
2265 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2266 * dwarf-index-write.c (debug_names::insert): Update.
2268 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2270 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2273 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2275 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2276 Change "nonzero" to "true" in documentation.
2278 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2280 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2281 (_initialize_darwin_solib): Don't set
2282 darwin_so_ops.lookup_lib_global_symbol.
2283 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2284 set_gdbarch_iterate_over_objfiles_in_search_order.
2285 (elf_lookup_lib_symbol): Rename to...
2286 (svr4_iterate_over_objfiles_in_search_order): this, and update
2287 to iterate semantics.
2288 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2289 * solib.c (solib_global_lookup): Remove.
2290 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2291 (solib_global_lookup): Remove.
2292 * symtab.c (lookup_global_or_static_symbol): Remove call to
2293 solib_global_lookup.
2295 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2297 * NEWS: Move entries about default MI version now being
2298 version 3, and about the GDB/MI fix for multi-location
2299 breakpoints to the "since GDB 8.3" section.
2301 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2305 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2307 * NEWS: Mention that Cell/B.E. debugging support was removed.
2308 * MAINTAINERS: Remove spu target.
2310 * config/djgpp/fnchange.lst: Remove entries for removed files.
2312 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2313 spu-multiarch.o, and spu-tdep.o.
2314 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2315 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2316 spu-multiarch.c, and spu-tdep.c.
2317 * spu-linux-nat.c: Remove file.
2318 * spu-multiarch.c: Remove file.
2319 * spu-tdep.c: Remove file.
2320 * spu-tdep.h: Remove file.
2321 * solib-spu.c: Remove file.
2322 * solib-spu.h: Remove file.
2324 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2325 * configure.nat (spu-linux): Remove.
2326 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2327 solib-multiarch.o from gdb_target_obs.
2330 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2332 (ppc_linux_no_features): Update.
2333 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2335 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2336 (tdesc_powerpc_cell64l): Likewise.
2337 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2338 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2340 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2341 Do not include "features/rs6000/powerpc-cell32l.c" or
2342 "features/rs6000/powerpc-cell64l.c".
2343 (ppc_linux_spu_section): Remove.
2344 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2345 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2346 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2347 (ppc_linux_spe_context_lookup): Remove.
2348 (ppc_linux_spe_context_inferior_created): Remove.
2349 (ppc_linux_spe_context_solib_loaded): Remove.
2350 (ppc_linux_spe_context_solib_unloaded): Remove.
2351 (ppc_linux_spe_context): Remove.
2352 (struct ppu2spu_cache): Remove.
2353 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2354 (struct ppu2spu_data): Remove.
2355 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2356 ppu2spu_unwind): Remove.
2357 (ppc_linux_init_abi): Remove Cell/B.E. support.
2358 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2360 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2361 (rs6000/powerpc-cell64l-expedite): Likewise
2362 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2363 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2364 rs6000/powerpc-cell64l.xml.
2365 * features/rs6000/powerpc-cell32l.xml: Remove.
2366 * features/rs6000/powerpc-cell64l.xml: Likewise.
2367 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2368 * features/rs6000/powerpc-cell64l.c: Likewise.
2369 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2370 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2371 * regformats/reg-spu.dat: Remove.
2373 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2374 * corelow.c (struct spuid_list): Remove.
2375 (add_to_spuid_list): Remove.
2376 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2377 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2378 (remote_protocol_features): Remove associated entries.
2379 (_initialize_remote): No longer initialize them.
2380 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2381 * linux-nat.c (SPUFS_MAGIC): Remove.
2382 (linux_proc_xfer_spu): Remove.
2383 (spu_enumerate_spu_ids): Remove.
2384 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2385 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2386 (linux_make_corefile_notes): No longer call it.
2388 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2389 (cooked_write_test): Likewise.
2391 2019-09-20 Tom Tromey <tom@tromey.com>
2393 * NEWS: Mention case-sensitivity of TUI commands.
2394 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2395 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2396 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2398 2019-09-20 Tom Tromey <tom@tromey.com>
2400 * tui/tui-source.c (tui_source_window::set_contents): Use
2401 make_unique_xstrdup.
2402 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2403 make_unique_xstrdup.
2405 2019-09-20 Tom Tromey <tom@tromey.com>
2407 * tui/tui-data.c: Remove separator comments.
2408 * tui/tui-layout.c: Remove separator comments.
2409 * tui/tui-win.c: Remove separator comments.
2410 * tui/tui-wingeneral.c: Remove separator comments.
2412 2019-09-20 Tom Tromey <tom@tromey.com>
2414 * tui/tui.h (strcat_to_buf): Don't declare.
2415 * tui/tui.c (strcat_to_buf): Remove.
2417 2019-09-20 Tom Tromey <tom@tromey.com>
2419 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2421 * tui/tui-source.c (tui_source_window::set_contents)
2422 (tui_source_window::location_matches_p)
2423 (tui_source_window::maybe_update): Update.
2425 2019-09-20 Tom Tromey <tom@tromey.com>
2427 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2429 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2431 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2432 (tui_data_window::line_from_reg_element_no)
2433 (tui_data_window::first_reg_element_no_inline)
2434 (tui_data_window::show_registers)
2435 (tui_data_window::show_register_group)
2436 (tui_data_window::display_registers_from)
2437 (tui_data_window::display_registers_from_line)
2438 (tui_data_window::first_data_item_displayed)
2439 (tui_data_window::delete_data_content_windows)
2440 (tui_data_window::erase_data_content)
2441 (tui_data_window::do_scroll_vertical)
2442 (tui_data_window::refresh_window)
2443 (tui_data_window::check_register_values): Update.
2445 2019-09-20 Tom Tromey <tom@tromey.com>
2447 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2448 (struct tui_locator_window) <full_name, proc_name>: Now
2450 * tui/tui-stack.c (tui_locator_window::make_status_line)
2451 (tui_locator_window::set_locator_fullname)
2452 (tui_locator_window::set_locator_info): Update.
2453 * tui/tui-source.c (tui_source_window::set_contents)
2454 (tui_source_window::showing_source_p): Update.
2456 2019-09-20 Tom Tromey <tom@tromey.com>
2458 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2459 Don't call tui_locator_win_info_ptr.
2461 2019-09-20 Tom Tromey <tom@tromey.com>
2463 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2465 2019-09-20 Tom Tromey <tom@tromey.com>
2467 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2469 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2470 * tui/tui-layout.c (show_source_disasm_command, show_data)
2471 (show_source_or_disasm_and_command): Use 1 as height for locator.
2473 2019-09-20 Tom Tromey <tom@tromey.com>
2475 * tui/tui.c (tui_enable): Update.
2476 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2478 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2480 * tui/tui-data.c (win_resized): Now bool.
2481 (tui_win_resized): Return bool.
2482 (tui_set_win_resized_to): Accept a bool.
2484 2019-09-20 Tom Tromey <tom@tromey.com>
2486 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2487 Change type of "refresh_values_only".
2488 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2489 type of "refresh_values_only".
2491 2019-09-20 Tom Tromey <tom@tromey.com>
2493 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2495 (tui_disassemble): Add "pos" parameter.
2496 (tui_disasm_window::set_contents): Simplify.
2498 2019-09-20 Tom Tromey <tom@tromey.com>
2500 * tui/tui-winsource.h (struct tui_source_window_base)
2501 <show_source_content>: Now private.
2502 * tui/tui-winsource.c
2503 (tui_source_window_base::show_source_content): Don't handle empty
2506 2019-09-20 Tom Tromey <tom@tromey.com>
2508 * tui/tui-layout.c (show_source_disasm_command)
2509 (show_source_or_disasm_and_command): Don't call
2510 show_source_content.
2512 2019-09-20 Tom Tromey <tom@tromey.com>
2514 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2516 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2517 from tui_make_status_line.
2518 (tui_locator_window::rerender): Update.
2520 2019-09-20 Tom Tromey <tom@tromey.com>
2522 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2523 (tui_locator_window::rerender): Update.
2525 2019-09-20 Tom Tromey <tom@tromey.com>
2527 * tui/tui-winsource.h (struct tui_source_window_base)
2528 <~tui_source_window_base>: Don't declare.
2530 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2531 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2533 * tui/tui-source.c (tui_source_window::set_contents): Update.
2534 (tui_source_window::location_matches_p)
2535 (tui_source_window::maybe_update): Update.
2537 2019-09-20 Tom Tromey <tom@tromey.com>
2539 * tui/tui-winsource.h (~tui_source_element): Remove.
2540 (tui_source_element): Update.
2541 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2542 * tui/tui-winsource.c (tui_show_source_line): Update.
2543 * tui/tui-source.c (tui_source_window::set_contents): Update.
2544 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2546 2019-09-20 Tom Tromey <tom@tromey.com>
2548 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2550 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2551 tui_clear_source_windows_detail.
2552 * tui/tui-winsource.h (struct tui_source_window_base)
2553 <clear_detail>: Don't declare.
2554 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2556 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2558 2019-09-20 Tom Tromey <tromey@adacore.com>
2561 * block.c (contained_in): Fix final return value.
2563 2019-09-20 Alan Modra <amodra@gmail.com>
2565 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2566 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2567 (read_indirect_string_from_dwz): Use bfd accessor.
2568 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2569 * machoread.c (macho_symfile_read_all_oso): Likewise.
2570 * solib.c (solib_bfd_open): Likewise.
2572 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2574 * eval.c: Move declaration of overload_resolution to...
2577 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2579 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2580 * arm-linux-tdep.c: Likewise.
2581 * arm-nbsd-nat.c: Likewise.
2582 * arm-tdep.h: Declare arm_apcs_32.
2583 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2585 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2587 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2588 * dwarf2read.h: Declare dwarf_always_disassemble.
2590 2019-09-19 Tom de Vries <tdevries@suse.de>
2593 * source-cache.c (source_cache::ensure): Catch exception thrown during
2594 construction of the highlighter.
2596 2019-09-18 Alan Modra <amodra@gmail.com>
2598 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2599 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2600 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2601 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2602 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2603 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2604 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2605 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2606 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2607 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2608 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2609 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2610 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2611 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2612 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2613 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2614 * mi/mi-interp.c: Update throughout for bfd section macro and
2616 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2617 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2619 2019-09-18 Tom Tromey <tom@tromey.com>
2622 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2624 (tui_enable): Do not call rl_initialize.
2626 2019-09-18 Christian Groessler <chris@groessler.org>
2628 * alpha-linux-nat.c: Include gdbarch.h.
2630 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2632 * ui-file.c: Include cli/cli-style.h.
2633 (term_cli_styling): Remove cli_styling declaration.
2635 2019-09-18 Alan Modra <amodra@gmail.com>
2637 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2638 to bfd_asymbol_section.
2640 2019-09-18 Alan Modra <amodra@gmail.com>
2642 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2643 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2644 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2646 2019-09-18 Alan Modra <amodra@gmail.com>
2648 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2649 * spu-linux-nat.c (spu_bfd_open): Likewise.
2651 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2653 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2654 to bool to match definition in dwarf2read.c.
2656 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2658 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2659 (print_signatures): Likewise.
2660 (trust_pad_over_xvs): Likewise.
2661 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2662 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2663 * arm-linux-nat.c (arm_apcs_32): Likewise.
2664 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2665 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2666 * arm-tdep.c (arm_debug): Likewise.
2667 (arm_apcs_32): Likewise.
2668 * auto-load.c (debug_auto_load): Likewise.
2669 (auto_load_gdb_scripts): Likewise.
2670 (global_auto_load): Likewise.
2671 (auto_load_local_gdbinit): Likewise.
2672 (auto_load_local_gdbinit_loaded): Likewise.
2673 * auto-load.h (global_auto_load): Likewise.
2674 (auto_load_local_gdbinit): Likewise.
2675 (auto_load_local_gdbinit_loaded): Likewise.
2676 * breakpoint.c (disconnected_dprintf): Likewise.
2677 (breakpoint_proceeded): Likewise.
2678 (automatic_hardware_breakpoints): Likewise.
2679 (always_inserted_mode): Likewise.
2680 (target_exact_watchpoints): Likewise.
2681 (_initialize_breakpoint): Update.
2682 * breakpoint.h (target_exact_watchpoints): Change to bool.
2683 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2684 * cli/cli-cmds.c (trace_commands): Likewise.
2685 * cli/cli-cmds.h (trace_commands): Likewise.
2686 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2688 * cli/cli-logging.c (logging_overwrite): Change to bool.
2689 (logging_redirect): Likewise.
2690 (debug_redirect): Likewise.
2691 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2692 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2694 <boolean_option_def>: Update.
2695 (struct flag_option_def): Change default type of Context to bool
2697 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2698 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2699 (get_setshow_command_value_string): Likewise.
2700 * cli/cli-style.c (cli_styling): Change to bool.
2701 (source_styling): Likewise.
2702 * cli/cli-style.h (source_styling): Likewise.
2703 (cli_styling): Likewise.
2704 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2706 * command.h (var_types): Update comment.
2707 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2708 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2710 (debug_compile_cplus_scopes): Likewise.
2711 * compile/compile-internal.h (compile_debug): Likewise.
2712 * compile/compile.c (compile_debug): Likewise.
2713 (struct compile_options) <raw>: Likewise.
2714 * cp-support.c (catch_demangler_crashes): Likewise.
2715 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2716 (usr_cmd_cris_dwarf2_cfi): Likewise.
2717 * csky-tdep.c (csky_debug): Likewise.
2718 * darwin-nat.c (enable_mach_exceptions): Likewise.
2719 * dcache.c (dcache_enabled_p): Likewise.
2720 * defs.h (info_verbose): Likewise.
2721 * demangle.c (demangle): Likewise.
2722 (asm_demangle): Likewise.
2723 * dwarf-index-cache.c (debug_index_cache): Likewise.
2724 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2725 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2726 * dwarf2read.c (check_physname): Likewise.
2727 (use_deprecated_index_sections): Likewise.
2728 (dwarf_always_disassemble): Likewise.
2729 * eval.c (overload_resolution): Likewise.
2730 * event-top.c (set_editing_cmd_var): Likewise.
2731 (exec_done_display_p): Likewise.
2732 * event-top.h (set_editing_cmd_var): Likewise.
2733 (exec_done_display_p): Likewise.
2734 * exec.c (write_files): Likewise.
2735 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2736 (debug_fbsd_nat): Likewise.
2737 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2739 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2740 <backtrace_past_entry> Likewise.
2741 * gdb-demangle.h (demangle): Likewise.
2742 (asm_demangle): Likewise.
2743 * gdb_bfd.c (bfd_sharing): Likewise.
2744 * gdbcore.h (write_files): Likewise.
2745 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2746 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2747 * gdbthread.h (print_thread_events): Likewise.
2748 * gdbtypes.c (opaque_type_resolution): Likewise.
2749 (strict_type_checking): Likewise.
2750 * gnu-nat.c (gnu_debug_flag): Likewise.
2751 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2752 * guile/scm-param.c (pascm_variable): Add boolval.
2753 (add_setshow_generic): Update.
2754 (pascm_param_value): Update.
2755 (pascm_set_param_value_x): Update.
2756 * hppa-tdep.c (hppa_debug): Change to bool..
2757 * infcall.c (may_call_functions_p): Likewise.
2758 (coerce_float_to_double_p): Likewise.
2759 (unwind_on_signal_p): Likewise.
2760 (unwind_on_terminating_exception_p): Likewise.
2761 * infcmd.c (startup_with_shell): Likewise.
2762 * inferior.c (print_inferior_events): Likewise.
2763 * inferior.h (startup_with_shell): Likewise.
2764 (print_inferior_events): Likewise.
2765 * infrun.c (step_stop_if_no_debug): Likewise.
2766 (detach_fork): Likewise.
2767 (debug_displaced): Likewise.
2768 (disable_randomization): Likewise.
2769 (non_stop): Likewise.
2770 (non_stop_1): Likewise.
2771 (observer_mode): Likewise.
2772 (observer_mode_1): Likewise.
2773 (set_observer_mode): Update.
2774 (sched_multi): Change to bool.
2775 * infrun.h (debug_displaced): Likewise.
2776 (sched_multi): Likewise.
2777 (step_stop_if_no_debug): Likewise.
2778 (non_stop): Likewise.
2779 (disable_randomization): Likewise.
2780 * linux-tdep.c (use_coredump_filter): Likewise.
2781 (dump_excluded_mappings): Likewise.
2782 * linux-thread-db.c (auto_load_thread_db): Likewise.
2783 (check_thread_db_on_load): Likewise.
2784 * main.c (captured_main_1): Update.
2785 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2786 xx2_opt, boolean_opt>: Change to bool.
2787 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2788 * maint.c (maintenance_profile_p): Likewise.
2789 (per_command_time): Likewise.
2790 (per_command_space): Likewise.
2791 (per_command_symtab): Likewise.
2792 * memattr.c (inaccessible_by_default): Likewise.
2793 * mi/mi-main.c (mi_async): Likewise.
2794 (mi_async_1): Likewise.
2795 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2796 * nat/fork-inferior.h (startup_with_shell): Likewise.
2797 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2798 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2799 * nios2-tdep.c (nios2_debug): Likewise.
2800 * or1k-tdep.c (or1k_debug): Likewise.
2801 * parse.c (parser_debug): Likewise.
2802 * parser-defs.h (parser_debug): Likewise.
2803 * printcmd.c (print_symbol_filename): Likewise.
2804 * proc-api.c (procfs_trace): Likewise.
2805 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2806 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2807 (set_parameter_value): Update.
2808 (add_setshow_generic): Update.
2809 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2811 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2813 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2814 * record-btrace.c (record_btrace_target::store_registers): Update.
2815 * record-full.c (record_full_memory_query): Change to bool.
2816 (record_full_stop_at_limit): Likewise.
2817 * record-full.h (record_full_memory_query): Likewise.
2818 * remote-notif.c (notif_debug): Likewise.
2819 * remote-notif.h (notif_debug): Likewise.
2820 * remote.c (use_range_stepping): Likewise.
2821 (interrupt_on_connect): Likewise.
2822 (remote_break): Likewise.
2823 * ser-tcp.c (tcp_auto_retry): Likewise.
2824 * ser-unix.c (serial_hwflow): Likewise.
2825 * skip.c (debug_skip): Likewise.
2826 * solib-aix.c (solib_aix_debug): Likewise.
2827 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2828 (spu_auto_flush_cache_p): Likewise.
2829 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2831 (struct info_print_options) <quiet>: Likewise.
2832 * symfile-debug.c (debug_symfile): Likewise.
2833 * symfile.c (auto_solib_add): Likewise.
2834 (separate_debug_file_debug): Likewise.
2835 * symfile.h (auto_solib_add): Likewise.
2836 (separate_debug_file_debug): Likewise.
2837 * symtab.c (basenames_may_differ): Likewise.
2838 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2839 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2840 (struct info_types_options) <quiet>: Likewise.
2841 * symtab.h (demangle): Likewise.
2842 (basenames_may_differ): Likewise.
2843 * target-dcache.c (stack_cache_enabled_1): Likewise.
2844 (code_cache_enabled_1): Likewise.
2845 * target.c (trust_readonly): Likewise.
2846 (may_write_registers): Likewise.
2847 (may_write_memory): Likewise.
2848 (may_insert_breakpoints): Likewise.
2849 (may_insert_tracepoints): Likewise.
2850 (may_insert_fast_tracepoints): Likewise.
2851 (may_stop): Likewise.
2852 (auto_connect_native_target): Likewise.
2853 (target_stop_and_wait): Update.
2854 (target_async_permitted): Change to bool.
2855 (target_async_permitted_1): Likewise.
2856 (may_write_registers_1): Likewise.
2857 (may_write_memory_1): Likewise.
2858 (may_insert_breakpoints_1): Likewise.
2859 (may_insert_tracepoints_1): Likewise.
2860 (may_insert_fast_tracepoints_1): Likewise.
2861 (may_stop_1): Likewise.
2862 * target.h (target_async_permitted): Likewise.
2863 (may_write_registers): Likewise.
2864 (may_write_memory): Likewise.
2865 (may_insert_breakpoints): Likewise.
2866 (may_insert_tracepoints): Likewise.
2867 (may_insert_fast_tracepoints): Likewise.
2868 (may_stop): Likewise.
2869 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2870 (make_thread_apply_all_options_def_group): Change argument from int*
2872 (thread_apply_all_command): Update.
2873 (print_thread_events): Change to bool.
2874 * top.c (confirm): Likewise.
2875 (command_editing_p): Likewise.
2876 (history_expansion_p): Likewise.
2877 (write_history_p): Likewise.
2878 (info_verbose): Likewise.
2879 * top.h (confirm): Likewise.
2880 (history_expansion_p): Likewise.
2881 * tracepoint.c (disconnected_tracing): Likewise.
2882 (circular_trace_buffer): Likewise.
2883 * typeprint.c (print_methods): Likewise.
2884 (print_typedefs): Likewise.
2885 * utils.c (debug_timestamp): Likewise.
2886 (sevenbit_strings): Likewise.
2887 (pagination_enabled): Likewise.
2888 * utils.h (sevenbit_strings): Likewise.
2889 (pagination_enabled): Likewise.
2890 * valops.c (overload_resolution): Likewise.
2891 * valprint.h (struct value_print_options) <prettyformat_arrays,
2892 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2893 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2894 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2896 * windows-nat.c (new_console): Likewise.
2897 (cygwin_exceptions): Likewise.
2898 (new_group): Likewise.
2899 (debug_exec): Likewise.
2900 (debug_events): Likewise.
2901 (debug_memory): Likewise.
2902 (debug_exceptions): Likewise.
2903 (useshell): Likewise.
2904 * windows-tdep.c (maint_display_all_tib): Likewise.
2905 * xml-support.c (debug_xml): Likewise.
2907 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2909 * source.c (prepare_path_for_appending): New function.
2910 (openp): Make use of new function.
2911 (find_and_open_source): Search for the compilation directory and
2912 source file as a relative path beneath the directory search path.
2914 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2916 * source-cache.c (source_cache::get_line_charpos): Catch
2917 exceptions and return false, this matches the behaviour documented
2920 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2922 * ada-tasks.c (info_task): Remove quoting of the task's name.
2924 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2926 * symfile.c (auto_solib_add): Replace comment with a reference
2929 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2931 * NEWS: Mention that gdb can now be compiled with Python 3
2934 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2936 * maint.c (maint_print_section_data::maint_print_section_data):
2937 Force use of 'float log10 (float)' by casting the argument to
2940 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2942 * maint.c: Add 'cmath' include.
2943 (struct maint_print_section_data): New structure.
2944 (print_section_index): New function.
2945 (print_bfd_section_info): Add header comment, small whitespace
2946 cleanup, and update to call new print_section_index function.
2947 (print_objfile_section_info): Likewise.
2948 (maint_obj_section_from_bfd_section): New function.
2949 (print_bfd_section_info_maybe_relocated): New function.
2950 (maintenance_info_sections): Add header comment, always use
2951 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2953 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2955 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2956 inner scope, add check that the objfile has psymtabs before
2957 checking psymtabs_addrmap.
2958 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2960 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2962 * NEWS: Announce that Ada task names are now shown at more places,
2963 and between quotes (except in info task output).
2964 * gdb/ada-tasks.c (task_to_str): New function.
2965 (display_current_task_id): Call task_to_str.
2966 (task_command_1): Likewise.
2967 (print_ada_task_info): In non-mi mode, Properly align headers and data
2968 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2970 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2972 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2973 prstatus.pr_lwp.pr_info instead of making it up.
2975 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2977 * auto-load.c (auto_load_expand_dir_vars): Update.
2978 * defs.h (gdb_datadir): Change to std::string.
2979 (python_libdir): Likewise.
2980 (relocate_gdb_directory): Change return type to std::string.
2981 * guile/guile.c (gdbscm_data_directory): Update.
2982 (initialize_scheme_side): Update.
2983 * jit.c (jit_reader_dir): Change to std::string.
2984 (jit_reader_load_command): Update.
2985 * main.c (gdb_datadir): Change to std::string.
2986 (python_libdir): Likewise.
2987 (set_gdb_data_directory): Update.
2988 (relocate_path): Change to return std::string.
2989 (relocate_gdb_directory): Change to return std::string.
2990 (relocate_gdbinit_path_maybe_in_datadir): Update.
2991 (captured_main_1): Update.
2992 * python/python.c (do_start_initialization): Update.
2993 * top.c (show_gdb_datadir): Update.
2994 * xml-syscall.c (xml_init_syscalls_info): Update.
2995 (init_syscalls_info): Update.
2997 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2999 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3000 out of get_init_files.
3001 (get_init_files): Update.
3003 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3005 * main.c (get_init_files): Change to use std::string.
3006 (captured_main_1): Update.
3007 (print_gdb_help): Update.
3009 2019-09-11 Ali Tamur <tamur@google.com>
3011 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3014 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3016 * dbxread.c (read_dbx_symtab): Update.
3017 * dwarf2read.c (load_partial_dies): Update.
3018 * mdebugread.c (parse_partial_symbols): Update.
3019 (handle_psymbol_enumerators): Update.
3020 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3021 * psymtab.c (add_psymbol_to_bcache): Likewise.
3022 (add_psymbol_to_list): Likewise.
3023 * symtab.c (symbol_set_names): Likewise.
3024 * symtab.h (symbol_set_names): Likewise.
3025 * xcoffread.c (scan_xcoff_symtab): Update.
3027 2019-09-11 Tom Tromey <tom@tromey.com>
3029 * symfile-mem.c (symbol_file_add_from_memory): Use
3031 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3032 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3034 2019-09-10 Tom Tromey <tromey@adacore.com>
3036 * dwarf-index-write.c (write_psymbols): Extend error message.
3037 (debug_names::insert): Add Ada code.
3038 (debug_names::write_psymbols): Remove Ada check.
3039 (debug_names) <m_string_obstack>: New member.
3040 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3041 (gdb_index_symbol_name_matcher::matches): Remove.
3042 (mapped_index_base::find_name_components_bounds): Add "lang"
3044 (mapped_index_base::build_name_components): Also split names
3045 according to Ada syntax.
3046 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3047 type of "match_callback".
3048 (check_match, check_find_bounds_finds)
3049 (dw2_expand_symtabs_matching): Update.
3050 (dw2_debug_names_iterator): Add new constructor.
3051 (dw2_debug_names_map_matching_symbols): New function.
3052 (dw2_debug_names_expand_symtabs_matching): Update.
3053 (dwarf2_debug_names_functions): Use
3054 dw2_debug_names_map_matching_symbols.
3056 2019-09-10 Tom Tromey <tromey@adacore.com>
3058 * dwarf2read.c (dw2_get_file_names_reader): Add the
3059 CU's file name to the results.
3061 2019-09-10 Tom Tromey <tromey@adacore.com>
3063 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3064 map_matching_symbols. Update.
3065 * dwarf2read.c (dw2_map_matching_symbols): Update.
3066 * psymtab.c (match_partial_symbol): Change type; update.
3067 (psym_map_matching_symbols): Likewise.
3068 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3070 * symfile.h (struct quick_symbol_functions)
3071 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3074 2019-09-10 Tom Tromey <tromey@adacore.com>
3076 * psymtab.c (map_block): Remove.
3077 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3078 * symtab.c (iterate_over_symbols_terminated): New function.
3079 * symtab.c (iterate_over_symbols_terminated): Declare.
3081 2019-09-10 Tom Tromey <tromey@adacore.com>
3083 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3084 * language.h (struct language_defn) <la_iterate_over_symbols>:
3086 * symtab.c (iterate_over_symbols): Return bool.
3087 * symtab.h (iterate_over_symbols): Return bool.
3089 2019-09-10 Tom Tromey <tromey@adacore.com>
3091 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3092 (add_nonlocal_symbols): Update.
3093 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3094 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3095 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3096 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3097 Change type of "callback". Remove "data".
3100 2019-09-09 Ali Tamur <tamur@google.com>
3102 * dwarf2read.c (comp_unit_head): Update comment.
3103 (dwarf2_dwo_name): New function declaration.
3104 (dwarf_unit_type_name): New function declaration.
3105 (read_comp_unit_head): Add support for new compilation units,
3106 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3107 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3108 (currently named as "signature") in their header. Also clarify error
3110 (lookup_dwo_id): New function. Returns the dwo id of the given
3112 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3113 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3115 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3116 (dwarf2_dwo_name): Get the dwo name if present.
3117 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3120 2019-09-09 Tom Tromey <tom@tromey.com>
3122 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3124 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3126 * python/python.c (do_start_initialization): Make progname_copy static,
3127 to avoid a leak report.
3129 2019-09-08 Tom Tromey <tom@tromey.com>
3131 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3133 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3135 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3136 Change type to gdb::optional<block_enum>.
3137 (dw2_symtab_iter_init): Change block_index parameter type
3138 to gdb::optional<block_enum>.
3139 (dw2_lookup_symbol): Change block_index parameter
3140 type to block_enum.c
3141 (dw2_debug_names_lookup_symbol): Likewise.
3142 * psymtab.c (psym_lookup_symbol): Likewise.
3143 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3144 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3147 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3149 * defs.h (relocate_gdb_directory): Change int to bool in
3150 signature and rename flag to relocatable.
3151 * main.c (relocate_path): Likewise.
3152 (relocate_gdb_directory): Likewise.
3154 2019-09-06 Alan Modra <amodra@gmail.com>
3156 * coffread.c (coff_symfile_read): Constify filename variable.
3157 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3158 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3159 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3160 * solib.c (reload_shared_libraries_1): Likewise.
3161 * symfile.c (reread_symbols): Likewise.
3162 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3163 * solib-darwin.c (darwin_bfd_open): Likewise.
3164 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3166 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3168 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3169 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3171 2019-09-03 Tom Tromey <tromey@adacore.com>
3173 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3175 (has_negatives): Unbias a range type bound.
3176 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3177 * gdbtypes.c (operator==): Handle new field.
3178 (create_range_type): Add "bias" parameter.
3179 (create_static_range_type, resolve_dynamic_range): Update.
3180 * gdbtypes.h (struct range_bounds) <bias>: New member.
3181 (create_range_type): Add bias parameter.
3182 * printcmd.c (print_scalar_formatted): Unbias range types.
3183 * value.c (unpack_long): Unbias range types.
3184 (pack_long): Bias range types.
3186 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3188 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3191 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3193 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3194 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3195 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3196 (compile_probe_arg): Likewise.
3197 * probe.h (get_argument_count): Likewise.
3198 * solib-svr4.c (solib_event_probe_action): Likewise.
3199 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3201 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3203 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3205 (svr4_create_solib_event_breakpoints): ...from here.
3207 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3209 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3210 suffix from warning message.
3212 2019-08-30 Tom Tromey <tom@tromey.com>
3214 * tui/tui-winsource.h (struct tui_source_window_base)
3215 <refresh_all>: Don't declare.
3216 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3218 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3219 tui_show_locator_content.
3220 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3222 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3223 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3226 2019-08-30 Tom Tromey <tom@tromey.com>
3228 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3230 2019-08-30 Tom Tromey <tom@tromey.com>
3232 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3233 Remove unnecessary forward declarations.
3235 2019-08-30 Tom Tromey <tom@tromey.com>
3237 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3239 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3240 tui_show_locator_content.
3242 2019-08-30 Tom Tromey <tom@tromey.com>
3244 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3245 (tui_locator_window::rerender): Rewrite using body of previous
3246 tui_show_locator_content.
3248 2019-08-30 Tom Tromey <tom@tromey.com>
3250 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3251 set_locator_fullname>: New methods.
3252 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3253 Rename from tui_set_locator_fullname.
3254 (tui_locator_window::set_locator_info): Rename from
3255 tui_set_locator_info. Return bool.
3256 (tui_update_locator_fullname, tui_show_frame_info): Update.
3258 2019-08-30 Tom Tromey <tom@tromey.com>
3260 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3262 2019-08-30 Tom Tromey <tom@tromey.com>
3264 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3267 2019-08-30 Tom Tromey <tom@tromey.com>
3269 * tui/tui-wingeneral.c (box_win): Assume win_info and
3270 win_info->handle cannot be NULL.
3272 2019-08-30 Tom Tromey <tom@tromey.com>
3274 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3275 refresh_window>: Declare.
3276 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3278 (tui_data_item_window::rerender): Rename from
3279 tui_display_register.
3280 (tui_data_item_window::refresh_window): New method.
3281 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3284 2019-08-30 Tom Tromey <tom@tromey.com>
3286 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3287 regs_column_count, current_group>: Move later. Now private.
3288 <get_current_group>: New method.
3289 * tui/tui-regs.c (tui_reg_command): Update.
3290 * tui/tui-layout.c (tui_set_layout): Update.
3292 2019-08-30 Tom Tromey <tom@tromey.com>
3294 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3295 (tui_data_window::rerender): Don't call
3296 check_and_display_highlight_if_needed.
3297 (tui_data_window::refresh_all): Remove call to
3300 2019-08-30 Tom Tromey <tom@tromey.com>
3302 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3303 (tui_data_window::display_registers_from)
3304 (tui_data_window::display_reg_element_at_line)
3305 (tui_data_window::display_registers_from_line): Remove checks of
3308 2019-08-30 Tom Tromey <tom@tromey.com>
3310 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3312 * tui/tui-regs.c (tui_data_window::show_registers): Call
3314 (tui_data_window::rerender): Rename from display_all_data.
3315 (tui_data_window::rerender): Remove old implementation.
3317 2019-08-30 Tom Tromey <tom@tromey.com>
3319 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3321 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3323 2019-08-29 Bernhard Wodok <barto@gmx.net>
3324 Sergio Durigan Junior <sergiodj@redhat.com>
3327 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3329 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3331 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3332 when searching for types.
3334 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3336 * f-lang.c (f_language_defn): Use f_print_typedef.
3337 * f-lang.h (f_print_typedef): Declare.
3338 * f-typeprint.c (f_print_typedef): Define.
3340 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3342 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3344 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3346 * cli/cli-utils.c (info_print_options_defs): Delete.
3347 (make_info_print_options_def_group): Delete.
3348 (extract_info_print_options): Delete.
3349 (info_print_command_completer): Delete.
3350 (info_print_args_help): Add extra parameter, and optionally
3351 include text about -n flag.
3352 * cli/cli-utils.h (struct info_print_options): Delete.
3353 (extract_info_print_options): Delete declaration.
3354 (info_print_command_completer): Delete declaration.
3355 (info_print_args_help): Add extra parameter, extend header
3357 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3359 * stack.c (struct info_print_options): New type.
3360 (info_print_options_defs): New file scoped variable.
3361 (make_info_print_options_def_group): New static function.
3362 (info_print_command_completer): New static function.
3363 (info_locals_command): Update to use new local functions.
3364 (info_args_command): Likewise.
3365 (_initialize_stack): Add extra parameter to calls to
3366 info_print_args_help.
3367 * symtab.c (search_symbols): Add extra parameter, use this to
3368 possibly excluse non-debug symbols.
3369 (symtab_symbol_info): Add extra parameter, which is passed on to
3371 (struct info_print_options): New type.
3372 (info_print_options_defs): New file scoped variable.
3373 (make_info_print_options_def_group): New static function.
3374 (info_print_command_completer): New static function.
3375 (info_variables_command): Update to use local functions, and pass
3376 extra parameter through to symtab_symbol_info.
3377 (info_functions_command): Likewise.
3378 (info_types_command): Pass additional argument through to
3380 (rbreak_command): Pass extra argument to search_symbols.
3381 (_initialize_symtab): Add extra arguments for calls to
3382 info_print_args_help, and update help text for 'info variables',
3383 'whereis', and 'info functions' commands.
3384 * symtab.h (search_symbols): Add extra argument to declaration.
3385 * NEWS: Mention new flags.
3387 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3389 * symtab.c (lookup_static_symbol): Call the new function (and move
3390 it down to be next to lookup_global_symbol).
3391 (struct global_sym_lookup_data): Add block_enum member and rename to...
3392 (struct global_or_static_sym_lookup_data): ...this.
3393 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3394 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3395 (lookup_symbol_global_or_static_iterator_cb): ...this.
3396 (lookup_global_or_static_symbol): New function.
3397 (lookup_global_symbol): Call new function.
3399 2019-08-26 Tom de Vries <tdevries@suse.de>
3402 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3403 when pc_probe.prob == NULL.
3405 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3407 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3408 variable symbol_linkage to symbol_linkage_.
3410 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3412 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3413 represent whether the symbol is static, dynamic, or we don't
3416 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3418 * gdb/rx-tdep.c (rx_register_names): New.
3419 (rx_register_name): Delete.
3420 (rx_psw_type): Delete.
3421 (rx_fpsw_type): Delete.
3422 (rx_register_type): Delete.
3423 (rx_gdbarch_init): Convert target-descriptions.
3424 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3425 * gdb/features/Makefile: Add rx.xml.
3426 * gdb/features/rx.xml: New.
3427 * gdb/features/rx.c: Generated.
3428 * gdb/NEWS: Mention target description support.
3430 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3432 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3435 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3437 * configure.ac: Don't check for 'dlfcn.h' (moved to
3438 gdbsupport/common.m4).
3439 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3441 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3442 * compile/compile-c-support.c: Include
3443 'gdbsupport/gdb-dlfcn.h'.
3444 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3445 * gdb-dlfcn.c: Move to...
3446 * gdbsupport/gdb-dlfcn.c: ... here.
3447 * gdb-dlfcn.h: Move to...
3448 * gdbsupport/gdb-dlfcn.h: ... here.
3450 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3452 * nios2-tdep.c (struct reg_value): Improve comments. Make
3453 the offset field signed.
3455 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3457 * python/lib/gdb/__init__.py (_execute_file): New function.
3458 * python/python.c (python_run_simple_file): Call gdb._execute_file
3461 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3463 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3464 all uses as this was never set to anything but a zero value.
3466 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3468 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3470 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3472 * tui/tui-data.h (tui_gen_win_info): Add an =default
3473 move constructor, required by some GCC versions.
3475 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3477 * go32-nat.c (go32_sysinfo): Add hygon_p.
3479 2019-08-20 Tom Tromey <tom@tromey.com>
3481 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3482 line_from_reg_element_no, first_reg_element_no_inline,
3483 display_all_data, delete_data_content_windows,
3484 erase_data_content>: Now private.
3486 2019-08-20 Tom Tromey <tom@tromey.com>
3488 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3489 (tui_unhighlight_win, tui_highlight_win)
3490 (tui_win_info::make_window): Update.
3491 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3493 2019-08-20 Tom Tromey <tom@tromey.com>
3495 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3496 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3497 (MAX_PID_WIDTH): Move to tui-stack.c.
3498 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3499 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3500 (MAX_PID_WIDTH): Move from tui-data.h.
3502 2019-08-20 Tom Tromey <tom@tromey.com>
3504 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3505 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3507 (tui_gen_win_info::make_window): Rename from tui_make_window.
3508 (tui_win_info::make_window): New method.
3509 (tui_gen_win_info::make_visible): Update.
3510 * tui/tui-source.c (tui_source_window::set_contents): Update.
3511 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3512 (tui_data_window::display_registers_from): Update.
3513 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3514 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3518 (struct tui_win_info) <make_window>: Declare.
3519 <can_box>: Now virtual.
3520 <title>: New member.
3521 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3522 * tui/tui-command.c (tui_cmd_window::resize): Update.
3524 2019-08-20 Tom Tromey <tom@tromey.com>
3526 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3527 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3528 (tui_data_window::check_register_values): Update.
3530 2019-08-20 Tom Tromey <tom@tromey.com>
3532 * tui/tui-regs.h (struct tui_data_window): Use
3533 DISABLE_COPY_AND_ASSIGN.
3534 <regs_content>: Change type, removing unique_ptr.
3535 <tui_data_window>: Add move constructor.
3536 * tui/tui-regs.c (tui_data_window::show_registers)
3537 (tui_data_window::show_register_group)
3538 (tui_data_window::display_registers_from)
3539 (tui_data_window::display_registers_from)
3540 (tui_data_window::first_data_item_displayed)
3541 (tui_data_window::delete_data_content_windows)
3542 (tui_data_window::rerender, tui_data_window::refresh_window)
3543 (tui_data_window::check_register_values): Update.
3545 2019-08-20 Tom Tromey <tom@tromey.com>
3547 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3548 show_register_group>: Declare.
3549 (tui_show_register_group): Don't declare.
3550 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3552 (tui_data_window::show_register_group): Rename from
3553 tui_show_register_group.
3554 (tui_data_window::check_register_values, tui_reg_command):
3556 * tui/tui-layout.c (tui_set_layout): Update.
3558 2019-08-20 Tom Tromey <tom@tromey.com>
3560 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3562 (tui_check_register_values): Don't declare.
3563 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3564 from tui_check_register_values.
3565 * tui/tui-hooks.c (tui_register_changed): Update.
3567 2019-08-20 Tom Tromey <tom@tromey.com>
3569 * tui/tui-regs.c (tui_reg_layout): Move later.
3570 (tui_show_registers): Don't enable TUI mode or change layout.
3572 2019-08-20 Tom Tromey <tom@tromey.com>
3574 * tui/tui-regs.h (struct tui_data_item_window)
3575 <~tui_data_item_window>: Remove.
3576 <content>: Now a unique_xmalloc_ptr.
3577 * tui/tui-regs.c (tui_register_format): Return a
3579 (tui_get_register): Update.
3580 (~tui_data_item_window): Remove.
3581 (tui_data_window::display_registers_from, tui_display_register):
3583 * tui/tui-io.h (tui_expand_tabs): Update.
3584 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3585 Remove "col" parameter.
3587 2019-08-20 Tom Tromey <tom@tromey.com>
3589 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3591 * tui/tui-regs.c (~tui_data_item_window): Update.
3593 2019-08-20 Tom Tromey <tom@tromey.com>
3595 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3598 2019-08-20 Tom Tromey <tom@tromey.com>
3600 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3602 2019-08-20 Tom Tromey <tom@tromey.com>
3604 * tui/tui-source.h (struct tui_source_window): Update.
3605 * tui/tui-regs.c (tui_show_registers): Update.
3606 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3607 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3608 (NO_REGS_STRING): Remove defines.
3610 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3612 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3613 unnecessary thread walk if remote doesn't support the packet.
3615 2019-08-19 Tom Tromey <tromey@adacore.com>
3617 * python/py-value.c (value_has_field): Fix indentation.
3619 2019-08-19 Tom Tromey <tromey@adacore.com>
3621 * printcmd.c (do_one_display, info_display_command): Update.
3622 * block.h (contained_in): Return bool. Add allow_nested
3624 * block.c (contained_in): Return bool. Add allow_nested
3627 2019-08-19 Tom Tromey <tom@tromey.com>
3629 * configure: Rebuild.
3630 * configure.ac: Disallow the combination of -static-libstdc++ and
3632 * source-cache.c (get_language_name): Handle rust.
3633 (source_cache::get_source_lines): Ignore highlighting exceptions.
3635 2019-08-16 Tom Tromey <tom@tromey.com>
3637 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3638 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3639 (struct tui_source_window_base) <make_visible, refresh_window,
3640 resize>: Remove methods.
3641 <execution_info>: Remove field.
3642 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3643 (tui_show_source_line, tui_source_window_base)
3644 (~tui_source_window_base): Update.
3645 (tui_source_window_base::resize)
3646 (tui_source_window_base::make_visible)
3647 (tui_source_window_base::refresh_window): Remove.
3648 (tui_source_window_base::update_exec_info): Update.
3649 * tui/tui-source.c (tui_source_window::set_contents): Update.
3650 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3652 2019-08-16 Tom Tromey <tom@tromey.com>
3654 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3655 deprecated_query_hook.
3657 2019-08-16 Tom Tromey <tom@tromey.com>
3659 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3660 (tui_update_source_windows_with_line): Update.
3661 * tui/tui-source.h (struct tui_source_window)
3662 <show_symtab_source>: Declare.
3663 (tui_show_symtab_source): Don't declare.
3664 * tui/tui-source.c (tui_show_symtab_source): Rename from
3665 tui_show_symtab_source.
3667 2019-08-16 Tom Tromey <tom@tromey.com>
3669 * tui/tui-winsource.h (struct tui_source_window_base)
3670 <set_contents>: Declare.
3671 * tui/tui-winsource.c
3672 (tui_source_window_base::update_source_window_as_is): Update.
3673 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3675 (tui_set_source_content): Don't declare.
3676 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3677 tui_set_source_content.
3678 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3680 (tui_set_disassem_content): Don't declare.
3681 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3682 tui_set_disassem_content.
3684 2019-08-16 Tom Tromey <tom@tromey.com>
3686 * tui/tui-winsource.h (struct tui_source_window_base)
3687 <update_breakpoint_info>: Declare.
3688 (tui_update_breakpoint_info): Don't declare.
3689 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3690 (tui_update_all_breakpoint_info): Update.
3691 (tui_source_window_base::update_breakpoint_info): Rename from
3692 tui_update_breakpoint_info.
3693 (tui_source_window_base::update_exec_info): Update.
3695 2019-08-16 Tom Tromey <tom@tromey.com>
3697 * tui/tui-winsource.h (struct tui_source_window_base)
3698 <update_source_window>: Declare.
3699 (tui_update_source_window): Don't declare.
3700 * tui/tui-winsource.c
3701 (tui_source_window_base::update_source_window): Rename from
3702 tui_update_source_window.
3703 (tui_source_window_base::rerender): Update.
3704 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3705 * tui/tui-disasm.c (tui_show_disassem)
3706 (tui_show_disassem_and_update_source)
3707 (tui_disasm_window::maybe_update): Update.
3709 2019-08-16 Tom Tromey <tom@tromey.com>
3711 * tui/tui-winsource.h (struct tui_source_window_base)
3712 <update_source_window_as_is>: Declare.
3713 (tui_update_source_window_as_is): Don't declare.
3714 * tui/tui-winsource.c (tui_update_source_window): Update
3715 (tui_source_window_base::update_source_window_as_is): Rename from
3716 tui_update_source_window_as_is.
3717 (tui_source_window_base::refill): Update.
3718 * tui/tui-source.c (tui_show_symtab_source): Update.
3719 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3722 2019-08-16 Tom Tromey <tom@tromey.com>
3724 * tui/tui-winsource.h (tui_update_source_window)
3725 (tui_update_source_window_as_is): Remove "noerror" parameter.
3726 * tui/tui-winsource.c (tui_update_source_window)
3727 (tui_update_source_window_as_is): Remove "noerror" parameter.
3728 (tui_update_source_windows_with_addr)
3729 (tui_update_source_windows_with_line)
3730 (tui_source_window_base::rerender)
3731 (tui_source_window_base::refill): Update.
3732 * tui/tui-source.h (tui_set_source_content)
3733 (tui_show_symtab_source): Remove "noerror" parameter.
3734 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3736 (tui_show_symtab_source): Likewise.
3737 (tui_source_window::maybe_update): Update.
3738 * tui/tui-disasm.c (tui_show_disassem)
3739 (tui_show_disassem_and_update_source)
3740 (tui_disasm_window::do_scroll_vertical)
3741 (tui_disasm_window::maybe_update): Update.
3743 2019-08-16 Tom Tromey <tom@tromey.com>
3745 * tui/tui.c (tui_is_window_visible): Update.
3746 * tui/tui-wingeneral.c (tui_make_window)
3747 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3748 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3749 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3750 (tui_set_win_height_command, parse_scrolling_args): Update.
3751 * tui/tui-source.c (tui_source_window::style_changed): Update.
3752 * tui/tui-regs.c (tui_show_registers)
3753 (tui_data_window::first_data_item_displayed)
3754 (tui_data_window::delete_data_content_windows)
3755 (tui_check_register_values, tui_reg_command): Update.
3756 * tui/tui-disasm.c (tui_show_disassem): Update.
3757 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3759 <is_visible>: Remove field.
3760 * tui/tui-data.c (tui_next_win, tui_prev_win)
3761 (tui_delete_invisible_windows): Update.
3763 2019-08-16 Tom Tromey <tom@tromey.com>
3765 * tui/tui-winsource.h (struct tui_source_window_base)
3766 <m_has_locator>: Remove.
3767 * tui/tui-layout.c (show_source_disasm_command, show_data)
3768 (show_source_or_disasm_and_command): Update.
3770 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3772 * NEWS (Other MI changes): New subsection.
3773 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3774 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3775 * arch-utils.c (default_get_pc_address_flags): New function.
3776 * arch-utils.h (default_get_pc_address_flags): New declaration.
3777 * gdbarch.sh: Add get_pc_address_flags.
3778 * gdbarch.c: Regenerate.
3779 * gdbarch.h: Likewise.
3780 * stack.c (print_pc): New function.
3781 (print_frame_info) (print_frame): Call print_pc.
3783 2019-08-16 Tom de Vries <tdevries@suse.de>
3785 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3786 print_objfile_section_info.
3788 2019-08-15 Tom Tromey <tom@tromey.com>
3790 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3791 calling update_cmdwin_start_line.
3792 * tui/tui-winsource.h (struct tui_source_window_base)
3793 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3794 <rerender>: Declare.
3795 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3797 (tui_source_window_base::set_new_height): Remove.
3798 (tui_source_window_base::rerender): Rename from
3799 do_make_visible_with_new_height.
3800 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3802 (tui_win_info::make_invisible_and_set_new_height)
3803 (tui_win_info::make_visible_with_new_height): Remove.
3804 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3806 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3807 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3808 do_make_visible_with_new_height>: Don't declare.
3809 <rerender>: Declare.
3810 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3812 (tui_data_window::do_make_visible_with_new_height): Remove.
3813 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3814 call tui_show_locator_content.
3815 (tui_gen_win_info::resize): Call rerender.
3816 (show_source_or_disasm_and_command): Don't call
3817 tui_show_locator_content.
3818 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3820 (struct tui_win_info) <rerender>: Declare.
3821 <set_new_height, make_invisible_and_set_new_height,
3822 make_visible_with_new_height>: Don't declare.
3823 * tui/tui-data.c (tui_win_list::rerender): New method.
3824 * tui/tui-command.h (struct tui_cmd_window)
3825 <do_make_visible_with_new_height>: Don't declare.
3827 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3829 2019-08-15 Tom Tromey <tromey@adacore.com>
3831 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3832 * ada-lang.c (ada_enum_name): Likewise.
3834 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3836 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3838 (GdbOutputErrorFile): Likewise.
3839 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3841 (execute_unwinders): Rename to have a leading underscore.
3842 (auto_load_packages): Likewise.
3843 (global scope): Adjust call to auto_load_packages accordingly.
3844 (GdbSetPythonDirectory): Likewise.
3845 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3846 instead of execute_unwinders.
3848 2019-08-15 Tom Tromey <tom@tromey.com>
3850 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3851 (show_data): Don't change window visibility.
3852 (tui_gen_win_info::resize): Remove special case for command
3853 window. Use wresize, when available.
3854 (show_source_or_disasm_and_command): Don't change window
3856 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3857 <make_visible>: New method.
3858 * tui/tui-command.c (tui_cmd_window::resize): New method.
3860 2019-08-15 Tom Tromey <tom@tromey.com>
3862 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3863 (struct tui_source_windows): New.
3864 * tui/tui-winsource.c (tui_display_main): Update.
3865 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3866 (new_height_ok, parse_scrolling_args): Update.
3867 * tui/tui-layout.c (show_layout, show_data): Update.
3868 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3869 (tui_add_to_source_windows): Don't declare.
3870 * tui/tui-data.c (source_windows, tui_source_windows)
3871 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3873 2019-08-15 Tom Tromey <tom@tromey.com>
3875 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3877 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3878 * tui/tui-layout.c (show_source_disasm_command, show_data):
3880 (tui_gen_win_info::resize): Rename.
3881 (show_source_or_disasm_and_command): Update.
3882 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3885 2019-08-15 Tom Tromey <tom@tromey.com>
3887 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3888 * tui/tui-interp.c (tui_interp::init): Don't call
3889 tui_initialize_static_data.
3890 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3892 2019-08-15 Tom Tromey <tom@tromey.com>
3894 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3895 examine tui_win_list.
3897 2019-08-15 Tom Tromey <tom@tromey.com>
3899 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3900 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3901 tui_clear_source_content.
3902 (tui_clear_source_content): Remove.
3903 (tui_source_window_base::do_erase_source_content): Hoist call to
3905 * tui/tui-stack.c (tui_show_frame_info): Don't call
3906 tui_clear_source_content.
3908 2019-08-15 Tom Tromey <tom@tromey.com>
3910 * tui/tui-winsource.h (struct tui_source_window_base)
3911 <do_erase_source_content>: New method.
3912 <erase_source_content>: New method.
3913 (tui_erase_source_content): Don't declare.
3914 * tui/tui-winsource.c (tui_clear_source_content): Update.
3915 (tui_source_window_base::do_erase_source_content): Rename from
3916 tui_erase_source_content.
3917 (tui_source_window_base::show_source_content): Update.
3918 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3919 * tui/tui-source.h (struct tui_source_window)
3920 <erase_source_content>: New method.
3921 * tui/tui-disasm.h (struct tui_disasm_window)
3922 <erase_source_content>: New method.
3924 2019-08-15 Tom Tromey <tom@tromey.com>
3926 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3927 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3929 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3930 * tui/tui-source.c (tui_set_source_content): Update.
3931 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3933 2019-08-15 Tom Tromey <tom@tromey.com>
3935 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3936 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3938 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3940 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3942 (tui_source_window::maybe_update): Update.
3944 2019-08-15 Tom Tromey <tom@tromey.com>
3946 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3947 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3949 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3951 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3953 (tui_disasm_window::maybe_update): Update.
3955 2019-08-15 Tom Tromey <tom@tromey.com>
3957 * tui/tui-winsource.h (struct tui_source_window_base)
3958 <maybe_update>: Declare.
3959 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3961 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3963 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3964 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3966 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3968 2019-08-15 Tom Tromey <tom@tromey.com>
3970 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3972 2019-08-15 Tom Tromey <tom@tromey.com>
3974 * tui/tui-wingeneral.c: Include tui-stack.h.
3975 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3976 (struct tui_locator_window): Move from tui-data.h.
3977 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3978 (tui_initialize_static_data): Move from tui-data.c.
3979 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3980 (struct tui_locator_window): Move to tui-stack.c.
3981 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3982 (tui_initialize_static_data): Move to tui-stack.c.
3984 2019-08-15 Tom Tromey <tom@tromey.com>
3986 * tui/tui-layout.c (show_source_disasm_command)
3987 (show_source_or_disasm_and_command): Use make_visible method, not
3989 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3992 2019-08-15 Tom Tromey <tom@tromey.com>
3994 * tui/tui-wingeneral.h (tui_make_window): Update.
3995 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3997 (tui_gen_win_info::make_visible): Update.
3998 * tui/tui-regs.c (tui_data_window::display_registers_from):
4000 * tui/tui-layout.c (show_source_disasm_command)
4001 (show_source_or_disasm_and_command): Update.
4002 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4003 (enum tui_box): Remove.
4004 (struct tui_win_info) <can_box>: New method.
4005 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4008 2019-08-15 Tom de Vries <tdevries@suse.de>
4010 * linux-nat-trad.c: Include gdbarch.h.
4012 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4014 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4017 2019-08-14 Tom Tromey <tromey@adacore.com>
4019 * darwin-nat.c: Include gdbarch.h.
4020 * darwin-nat-info.c: Include gdbarch.h.
4022 2019-08-13 Tom Tromey <tom@tromey.com>
4024 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4026 * tui/tui-data.c (tui_initialize_static_data): Update.
4028 2019-08-13 Tom Tromey <tom@tromey.com>
4030 * tui/tui-winsource.h (struct tui_exec_info_window)
4031 <~tui_exec_info_window, maybe_allocate_content, get_content,
4033 (struct tui_source_window_base) <set_exec_info_content,
4034 show_exec_info_content>: Don't declare.
4035 * tui/tui-winsource.c
4036 (tui_exec_info_window::maybe_allocate_content): Remove.
4037 (tui_source_window_base::update_exec_info): Rename from
4038 set_exec_info_content.
4039 (tui_source_window_base::show_exec_info_content)
4040 (tui_source_window_base::update_exec_info): Remove.
4042 2019-08-13 Tom Tromey <tom@tromey.com>
4044 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4046 * tui/tui-winsource.c (tui_update_source_window_as_is)
4047 (tui_update_source_windows_with_addr, tui_erase_source_content):
4049 (tui_clear_exec_info_content): Remove.
4051 2019-08-13 Tom Tromey <tom@tromey.com>
4053 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4055 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4056 call tui_erase_exec_info_content.
4057 (tui_clear_exec_info_content): Rename from
4058 tui_erase_exec_info_content.
4059 (tui_clear_exec_info_content): Delete.
4061 2019-08-13 Tom Tromey <tom@tromey.com>
4063 * tui/tui-winsource.h (struct tui_source_window_base)
4064 <show_exec_info_content>: Declare.
4065 (tui_show_exec_info_content): Don't declare.
4066 * tui/tui-winsource.c
4067 (tui_source_window_base::show_exec_info_content): Rename from
4068 tui_show_exec_info_content.
4069 (tui_source_window_base::update_exec_info): Update.
4071 2019-08-13 Tom Tromey <tom@tromey.com>
4073 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4074 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4075 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4076 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4077 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4078 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4081 2019-08-13 Tom Tromey <tom@tromey.com>
4083 * tui/tui-winsource.h (struct tui_source_window_base)
4084 <update_exec_info>: Declare.
4085 (tui_update_exec_info): Don't declare.
4086 * tui/tui-winsource.c (tui_update_source_window_as_is)
4087 (tui_source_window_base::refresh_all)
4088 (tui_update_all_breakpoint_info): Update.
4089 (tui_source_window_base::update_exec_info): Rename from
4090 tui_update_exec_info.
4091 * tui/tui-stack.c (tui_show_frame_info): Update.
4093 2019-08-13 Tom Tromey <tom@tromey.com>
4095 * tui/tui-winsource.h (struct tui_source_window_base)
4096 <set_exec_info_content>: Declare.
4097 (tui_set_exec_info_content): Don't declare.
4098 * tui/tui-winsource.c
4099 (tui_source_window_base::set_exec_info_content): Rename from
4100 tui_set_exec_info_content.
4101 (tui_update_exec_info): Update.
4103 2019-08-13 Tom Tromey <tom@tromey.com>
4105 * tui/tui-winsource.h (struct tui_source_window_base)
4106 <show_source_content>: Declare.
4107 (tui_show_source_content): Don't declare.
4108 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4109 (tui_source_window_base::show_source_content): Rename from
4110 tui_show_source_content.
4111 (tui_source_window_base::refresh_all): Update.
4112 * tui/tui-layout.c (show_source_disasm_command)
4113 (show_source_or_disasm_and_command): Update.
4115 2019-08-13 Tom Tromey <tom@tromey.com>
4117 * tui/tui-winsource.c (tui_erase_source_content)
4118 (tui_show_source_content, tui_source_window_base::refresh_all):
4120 * tui/tui-wingeneral.h
4121 (tui_check_and_display_highlight_if_needed): Don't declare.
4122 * tui/tui-wingeneral.c
4123 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4124 check_and_display_highlight_if_needed.
4125 * tui/tui-win.c (tui_rehighlight_all)
4126 (tui_win_info::make_visible_with_new_height): Update.
4127 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4128 (tui_data_window::erase_data_content)
4129 (tui_data_window::display_all_data): Update.
4130 * tui/tui-data.h (struct tui_win_info)
4131 <check_and_display_highlight_if_needed>: Declare.
4133 2019-08-13 Tom Tromey <tom@tromey.com>
4135 * tui/tui-win.c (tui_resize_all): Call
4136 tui_delete_invisible_windows.
4137 * tui/tui-layout.c (show_layout): Call
4138 tui_delete_invisible_windows.
4139 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4140 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4142 2019-08-13 Tom Tromey <tom@tromey.com>
4144 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4145 tui_add_win_to_layout.
4147 2019-08-13 Tom Tromey <tom@tromey.com>
4149 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4150 * tui/tui-layout.c (tui_default_win_height): Now static.
4152 2019-08-13 Tom Tromey <tom@tromey.com>
4154 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4156 (show_source_disasm_command, show_source_or_disasm_and_command):
4157 Don't check current layout.
4159 2019-08-13 Tom Tromey <tom@tromey.com>
4161 * tui/tui-wingeneral.c (make_all_visible): Remove.
4162 (tui_make_all_invisible): Simplify.
4163 * tui/tui-layout.c (tui_make_all_invisible): Move from
4164 tui-wingeneral.c; simplify.
4165 (show_layout): Hoist call to tui_make_all_invisible.
4166 (show_data): Don't call tui_make_all_invisible.
4168 2019-08-13 Tom Tromey <tom@tromey.com>
4170 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4171 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4173 2019-08-13 Tom Tromey <tom@tromey.com>
4175 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4177 (show_source_disasm_command, show_data)
4178 (show_source_or_disasm_and_command): Don't use
4179 tui_set_current_layout_to.
4180 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4181 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4183 (tui_set_current_layout_to): Remove.
4185 2019-08-13 Tom Tromey <tom@tromey.com>
4187 * tui/tui-layout.c (tui_set_layout): Update.
4188 * tui/tui-data.h (struct tui_layout_def): Remove.
4189 (tui_layout_def): Don't declare.
4190 * tui/tui-data.c (layout_def): Remove.
4191 (tui_layout_def): Remove.
4193 2019-08-13 Tom Tromey <tom@tromey.com>
4195 * tui/tui-winsource.h (struct tui_source_window_base)
4196 <clear_detail>: No longer "override".
4197 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4198 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4199 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4200 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4202 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4204 2019-08-13 Tom Tromey <tromey@adacore.com>
4206 * tracepoint.c: Don't include readline.h or history.h.
4208 2019-08-12 Tom Tromey <tom@tromey.com>
4210 * configure: Rebuild.
4211 * configure.ac: Check for readline 7.
4212 * NEWS: Mention readline 7 requirement.
4215 2019-08-12 Tom Tromey <tom@tromey.com>
4217 * mingw-hdep.c (gdb_select): Remove readline hack.
4219 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4221 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4222 when the function fails.
4224 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4226 * s390-tdep.c (s390_type_align): New function.
4227 (s390_gdbarch_init): Set it as type_align gdbarch method.
4229 2019-08-09 Tom de Vries <tdevries@suse.de>
4232 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4233 pc_low with relocation offset.
4235 2019-08-07 Tom Tromey <tromey@adacore.com>
4237 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4238 (print_frame_args): Update.
4239 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4241 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4242 * frame.h (struct frame_arg): Add initializers.
4243 <error>: Now a unique_xmalloc_ptr.
4245 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4247 * NEWS: Expand the Pointer Authentication entry.
4248 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4249 (aarch64_frame_unmask_lr): ... to this.
4250 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4251 Call aarch64_frame_unmask_lr.
4252 * frame.c (struct frame_info): Add "masked" variable.
4253 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4254 (fprint_frame): Check for masked pc.
4255 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4257 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4258 * stack.c (print_frame): Check for masked pc.
4260 2019-08-06 Tom Tromey <tom@tromey.com>
4262 * stabsread.c (patch_block_stabs, read_one_struct_field)
4263 (read_enum_type): Use obstack_strndup.
4264 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4265 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4266 * dwarf2read.c (guess_full_die_structure_name)
4267 (anonymous_struct_prefix): Use obstack_strndup.
4268 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4269 * c-exp.y (yylex): Use obstack_strndup.
4270 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4271 (write_var_or_type): Use obstack_strndup.
4273 2019-08-06 Tom Tromey <tom@tromey.com>
4275 * symfile.c (reread_symbols): Use obstack_strdup.
4276 * stabsread.c (read_type): Use obstack_strdup.
4277 * gdb_obstack.h (obstack_strdup): New overload.
4278 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4279 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4280 (dwarf2_canonicalize_name): Use obstack_strdup.
4281 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4282 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4285 2019-08-06 Tom Tromey <tom@tromey.com>
4287 * gdb_obstack.h (obstack_strdup): Define.
4288 * gdb_obstack.c (obstack_strdup): Don't define.
4290 2019-08-06 Tom Tromey <tom@tromey.com>
4292 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4294 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4296 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4297 * stabsread.c (common_block_start): Use obstack_strdup.
4298 * objfiles.c (set_objfile_main_name, objfile): Use
4300 * namespace.c (add_using_directive): Use obstack_strdup.
4301 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4302 * jit.c (finalize_symtab): Use obstack_strdup.
4303 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4304 (guess_partial_die_structure_name, partial_die_info::fixup)
4305 (dwarf2_name): Use obstack_strdup.
4306 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4308 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4309 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4311 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4313 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4315 * unittests/help-doc-selftests.c: New file.
4316 * Makefile.in: Add the new file.
4318 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4320 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4321 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4322 the full first line, except when FOR_VALUE_PREFIX. In this case,
4323 the trailing '.' is not output, and the first character is uppercased.
4324 (print_help_for_command): Update call to print_doc_line.
4325 (print_doc_of_command): Likewise.
4326 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4327 * cli/cli-option.c (append_indented_doc): Do not append newline.
4328 (build_help_option): Append newline after first appended_indented_doc
4329 only if a second call is done.
4330 (build_help): Append 2 new lines before each option, except the first
4332 * compile/compile.c (_initialize_compile): Add new lines after
4333 %OPTIONS%, when not at the end of the help.
4334 Change help doc or code
4335 producing the help doc to respect the invariants.
4336 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4337 Also removed the new line after 'Options:', as all other commands
4338 do not put an empty line between 'Options:' and the first option.
4339 * printcmd.c (_initialize_printcmd): Likewise.
4340 * stack.c (_initialize_stack): Likewise.
4341 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4342 incorrectly telling COMMAND is optional.
4343 * ada-lang.c (_initialize_ada_language): Change help doc or code
4344 producing the help doc to respect the invariants.
4345 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4346 * breakpoint.c (_initialize_breakpoint): Likewise.
4347 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4348 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4349 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4350 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4351 _initialize_cli_style): Likewise.
4352 * corelow.c (core_target_info): Likewise.
4353 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4354 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4355 * filesystem.c (_initialize_filesystem): Likewise.
4356 * frame.c (_initialize_frame): Likewise.
4357 * gnu-nat.c (add_task_commands): Likewise.
4358 * infcall.c (_initialize_infcall): Likewise.
4359 * infcmd.c (_initialize_infcmd): Likewise.
4360 * interps.c (_initialize_interpreter): Likewise.
4361 * language.c (_initialize_language): Likewise.
4362 * linux-fork.c (_initialize_linux_fork): Likewise.
4363 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4364 * maint.c (_initialize_maint_cmds): Likewise.
4365 * memattr.c (_initialize_mem): Likewise.
4366 * printcmd.c (_initialize_printcmd): Likewise.
4367 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4369 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4370 * record-btrace.c (_initialize_record_btrace): Likewise.
4371 * record-full.c (_initialize_record_full): Likewise.
4372 * record.c (_initialize_record): Likewise.
4373 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4374 * regcache.c (_initialize_regcache): Likewise.
4375 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4376 _initialize_remote): Likewise.
4377 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4378 * serial.c (_initialize_serial): Likewise.
4379 * skip.c (_initialize_step_skip): Likewise.
4380 * source.c (_initialize_source): Likewise.
4381 * stack.c (_initialize_stack): Likewise.
4382 * symfile.c (_initialize_symfile): Likewise.
4383 * symtab.c (_initialize_symtab): Likewise.
4384 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4385 * top.c (init_main): Likewise.
4386 * tracefile-tfile.c (tfile_target_info): Likewise.
4387 * tracepoint.c (_initialize_tracepoint): Likewise.
4388 * tui/tui-win.c (_initialize_tui_win): Likewise.
4389 * utils.c (add_internal_problem_command): Likewise.
4390 * valprint.c (value_print_option_defs): Likewise.
4392 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4395 * configure.ac: Drop enable-libmcheck support.
4396 * configure, config.in: Rebuild.
4397 * libmcheck.m4: Remove.
4398 * acinclude.m4: Don't include it.
4399 * Makefile.in: Don't distribute it.
4400 * top.c (print_gdb_configuration): Don't mention it.
4402 2019-08-06 Tom Tromey <tom@tromey.com>
4404 * utils.c (set_output_style): Sometimes pass stream to
4406 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4407 * record-btrace.c (btrace_insn_history): Update.
4408 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4410 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4411 Update initializers.
4412 <m_uiout>: New field.
4414 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4415 Remove "uiout" parameter.
4416 (dump_insns): Update.
4417 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4418 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4420 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4422 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4423 (error_in_psymtab_expansion): Likewise.
4424 (lookup_symbol_via_quick_fns): Likewise.
4425 (basic_lookup_transparent_type_quick): Likewise.
4426 (basic_lookup_transparent_type_1): Likewise.
4428 2019-08-06 Tom Tromey <tromey@adacore.com>
4430 * source.c (last_source_error): Now bool.
4431 (print_source_lines_base): Make "noprint" bool. Only open
4432 source file when last_source_visited changes.
4434 2019-08-06 Tom Tromey <tromey@adacore.com>
4436 * annotate.c (annotate_source_line): Use g_source_cache.
4437 * source-cache.c (source_cache::get_plain_source_lines): Change
4438 parameters. Populate m_offset_cache.
4439 (source_cache::ensure): New method.
4440 (source_cache::get_line_charpos): New method.
4441 (extract_lines): Move lower. Change parameters.
4442 (source_cache::get_source_lines): Move lower.
4443 * source-cache.h (class source_cache): Update comment.
4444 <get_line_charpos>: New method.
4445 <get_source_lines>: Update comment.
4446 <clear>: Clear m_offset_cache.
4447 <get_plain_source_lines>: Change parameters.
4448 <ensure>: New method
4449 <m_offset_cache>: New member.
4450 * source.c (forget_cached_source_info_for_objfile): Update.
4451 (info_source_command): Use g_source_cache.
4452 (find_source_lines, open_source_file_with_line_charpos): Remove.
4453 (print_source_lines_base, search_command_helper): Use g_source_cache.
4454 * source.h (open_source_file_with_line_charpos): Don't declare.
4455 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4456 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4459 2019-08-06 Tom Tromey <tromey@adacore.com>
4461 * source-cache.c (source_cache::get_plain_source_lines):
4462 Remove "first_line" and "last_line" parameters.
4463 (source_cache::get_source_lines): Cache plain text.
4464 * source-cache.h (class source_cache)
4465 <get_plain_source_lines>: Update.
4467 2019-08-06 Tom Tromey <tromey@adacore.com>
4469 * source-cache.c (extract_lines): No longer a method.
4470 Changed type of parameter. Include final newline.
4471 (selftests::extract_lines_test): New function.
4472 (_initialize_source_cache): Likewise.
4473 * source-cache.h (class source_cache)
4474 <extract_lines>: Don't declare.
4476 2019-08-06 Tom Tromey <tromey@adacore.com>
4478 * breakpoint.c (init_breakpoint_sal): Update.
4479 (breakpoint): Update.
4480 * breakpoint.h (struct breakpoint) <filter>: Now a
4483 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4485 * NEWS: Mention dictionary access on blocks.
4486 * python/py-block.c (blpy_getitem): New function.
4487 (block_object_as_mapping): New struct.
4488 (block_object_type): Use new struct for tp_as_mapping field.
4490 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4492 * objfiles.h (objfile): Add a comment describing partial symbols.
4494 2019-08-05 Tom Tromey <tromey@adacore.com>
4496 * compile/compile.c (_initialize_compile): Use _(), not N_().
4497 * thread.c (_initialize_thread): Use _(), not N_().
4498 * stack.c (_initialize_stack): Use _(), not N_().
4499 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4501 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4503 * dwarf2read.c (struct dw2_symtab_iterator):
4504 <want_specific_block>: Remove.
4505 <block_index>: Change type to gdb::optional.
4506 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4507 change type of BLOCK_INDEX parameter to gdb::optional.
4508 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4509 (dw2_lookup_symbol): Don't pass argument for
4510 WANT_SPECIFIC_BLOCK.
4511 (dw2_expand_symtabs_for_function): Don't pass argument for
4512 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4513 (class dw2_debug_names_iterator)
4514 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4515 parameter, change BLOCK_INDEX type to gdb::optional.
4516 <m_want_specific_block>: Remove.
4517 <m_block_index>: Change type to gdb::optional.
4518 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4519 gdb::optional. Re-write in function of gdb::optional.
4520 (dw2_debug_names_lookup_symbol): Don't pass argument for
4521 WANT_SPECIFIC_BLOCK.
4522 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4523 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4526 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4528 * NEWS: Mention changes to "info sources" command.
4530 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4532 * symtab.c (filename_partial_match_opts): New struct type.
4533 (struct output_source_filename_data): New members
4534 regexp, c_regexp, partial_match.
4535 (output_source_filename): Use new members to decide to print file.
4536 (info_sources_option_defs): New variable.
4537 (make_info_sources_options_def_group, print_info_sources_header,
4538 info_sources_command_completer):
4540 (info_sources_command): Read new optional arguments.
4541 (_initialize_symtab): Update info sources help.
4543 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4545 * ada-lang.c (exception_support_info_v0): Renamed from...
4546 (default_exception_support_info): ... this. Create new
4548 (ada_has_this_exception_support): Look up catch_handlers_sym.
4549 (ada_exception_support_info_sniffer): Try v0 after default.
4551 2019-08-01 Tom Tromey <tromey@adacore.com>
4553 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4556 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4558 * s12z-tdep.c: Fix include path for s12z-opc.h.
4560 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4562 * NEWS: Require GNU make 3.82.
4564 2019-07-16 Tom Tromey <tom@tromey.com>
4566 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4569 2019-07-30 Tom Tromey <tromey@adacore.com>
4571 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4573 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4575 * printcmd.c (print_address_symbolic): Print negative offsets.
4576 (build_address_symbolic): Force signed arithmetic when computing
4579 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4581 PR/24474: Add a function to lookup static variables.
4582 * NEWS: Mention this new function.
4583 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4584 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4585 * python/python.c (python_GdbMethods): Add new function.
4587 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4589 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4590 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4591 (objfpy_lookup_static_symbol): New function.
4592 (objfile_object_methods): Add new functions.
4594 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4596 * NEWS: Mention 'set|show print frame-info'. Mention new
4597 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4598 backtrace argument. Mention that python frame filtering code
4599 is now consistent with what 'backtrace' command prints.
4601 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4603 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4605 (print_frame_info_auto, print_frame_info_source_line,
4606 print_frame_info_location, print_frame_info_source_and_location,
4607 print_frame_info_location_and_address, print_frame_info_short_location):
4609 (struct frame_print_options): New member print_frame_info.
4610 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4611 * stack.h (get_user_print_what_frame_info): New declaration.
4612 (frame_show_address): New declaration.
4613 * stack.c (print_frame_arguments_choices): New value 'presence'.
4614 (print_frame_info_auto, print_frame_info_source_line,
4615 print_frame_info_location, print_frame_info_source_and_location,
4616 print_frame_info_location_and_address, print_frame_info_short_location,
4617 print_frame_info_choices, print_frame_info_print_what): New definitions.
4618 (print_frame_args): Only print dots for args if print frame-arguments
4620 (frame_print_option_defs): New element for "frame-info".
4621 (get_user_print_what_frame_info): New function.
4622 (frame_show_address): Make non static. Move comment to stack.h.
4623 (print_frame_info_to_print_what): New function.
4624 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4625 to decide what to print.
4626 (backtrace_command_1): Handle the new print_frame_arguments_presence
4628 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4629 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4630 (py_print_frame): In non-mi mode, use LOCATION as default for
4631 print_what, similarly to frame information printed directly by
4632 backtrace command. Handle frame-info user option in non MI mode.
4634 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4636 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4637 Add case for debugging 32-bit target on 64-bit host. Revise
4640 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4642 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4643 instead of find_function_entry_range_from_pc.
4645 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4647 * stack.c (find_frame_funname): Remove code which preferred
4648 minsym over symtab sym in "certain pathological cases".
4650 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4651 parameter. Change type of "do_demangle" to bool.
4652 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4653 Pass suitable "prefer_sym_over_minsym" flag to
4654 build_address_symbolic(). Don't output "+" for negative offsets.
4655 * printcmd.c (print_address_symbolic): Update invocation of
4656 build_address_symbolic to include a "prefer_sym_over_minsym"
4658 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4659 Restrict cases in which use of minimal symbol is preferred to that
4660 of a found symbol. Update comments.
4662 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4663 for entry pc when entry pc is out of range for that FDE.
4665 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4668 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4671 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4673 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4674 this function's Python signature.
4677 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4679 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4680 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4681 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4682 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4683 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4686 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4688 * h8300-tdep.c (h8300_register_name_common): New.
4689 h8300_register_name): Use h8300_register_name_common.
4690 (h8300s_register_name): Likewise.
4691 (h8300sx_register_name): Likewise.
4692 (h8300h_register_nam): New.
4693 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4696 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4698 * arm-tdep.c (arm_skip_cmse_entry): New function.
4699 (arm_is_sgstubs_section): New function.
4700 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4702 2019-07-22 Tom Tromey <tom@tromey.com>
4704 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4707 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4709 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4712 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4714 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4715 so that GDB doesn't match any msymbols when searching in the
4717 (print_symbol_info): Print using typedef_print or type_print based
4718 on the type of the symbol. Add updated FIXME comment moved from...
4719 (_initialize_symtab): ... move and update FIXME comment to above.
4721 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4723 * NEWS: Mention adding -q option to "info types".
4724 * symtab.c (struct info_types_options): New struct.
4725 (info_types_options_defs): New variable.
4726 (make_info_types_options_def_group): New function.
4727 (info_types_command): Use gdb::option framework to parse options.
4728 (info_types_command_completer): New function.
4729 (_initialize_symtab): Extend the help text on "info types" and
4730 register command completer.
4732 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4734 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4735 (lookup_symbol_in_objfile): Change int to block_enum and add a
4736 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4738 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4740 * MAINTAINERS (Write After Approval): Add self.
4742 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4744 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4745 instruction to the dummy code region.
4747 2019-07-19 Tom Tromey <tromey@adacore.com>
4749 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4750 (ARGSUSED, PARAMS, __func__): Remove rules.
4752 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4754 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4755 * features/arm/arm-with-iwmmxt.c: Remove.
4756 * features/arm/arm-with-iwmmxt.xml: Remove.
4757 * features/arm/arm-with-m-fpa-layout.c: Remove.
4758 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4759 * features/arm/arm-with-m-vfp-d16.c: Remove.
4760 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4761 * features/arm/arm-with-m.c: Remove.
4762 * features/arm/arm-with-m.xml: Remove.
4763 * features/arm/arm-with-neon.c: Remove.
4764 * features/arm/arm-with-neon.xml: Remove.
4765 * features/arm/arm-with-vfpv2.c: Remove.
4766 * features/arm/arm-with-vfpv2.xml: Remove.
4767 * features/arm/arm-with-vfpv3.c: Remove.
4768 * features/arm/arm-with-vfpv3.xml: Remove.
4770 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4772 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4774 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4776 * arch/aarch32.c (aarch32_create_target_description): Create
4777 target descriptions using features.
4778 * arch/arm.c (arm_create_target_description)
4779 (arm_create_mprofile_target_description): Likewise.
4780 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4782 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4784 * Makefile.in: Add new files.
4785 * aarch32-tdep.c: New file.
4786 * aarch32-tdep.h: New file.
4787 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4788 Call aarch32_read_description.
4789 * arch/aarch32.c: New file.
4790 * arch/aarch32.h: New file.
4791 * arch/arm.c (arm_create_target_description)
4792 (arm_create_mprofile_target_description): New function.
4793 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4794 (arm_create_target_description)
4795 (arm_create_mprofile_target_description): New declaration.
4796 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4797 read_description functions.
4798 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4800 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4801 * arm-tdep.c (tdesc_arm_list): New variable.
4802 (arm_register_g_packet_guesses): Call create description functions.
4803 (arm_read_description) (arm_read_mprofile_description): New
4805 * arm-tdep.h (arm_read_description)
4806 (arm_read_mprofile_description): Add declaration.
4807 * configure.tgt: Add new files.
4809 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4811 * top.c (new_ui_command): Open specified terminal just once.
4813 2019-07-18 Tom Tromey <tromey@adacore.com>
4815 * symtab.c (main_name): Constify return type.
4816 * symfile.c (set_initial_language): Update.
4817 * symtab.h (main_name): Constify return type.
4819 2019-07-17 Tom Tromey <tom@tromey.com>
4821 * tui/tui-winsource.c (tui_update_source_window)
4822 (tui_update_source_window_as_is)
4823 (tui_update_source_windows_with_line): Remove return.
4824 * tui/tui-disasm.c (tui_show_disassem)
4825 (tui_show_disassem_and_update_source): Remove return.
4826 * tui/tui.c (tui_reset): Remove return.
4827 * tui/tui-wingeneral.c
4828 (tui_check_and_display_highlight_if_needed): Remove return.
4830 2019-07-17 Tom Tromey <tom@tromey.com>
4832 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4834 2019-07-17 Tom Tromey <tom@tromey.com>
4836 * tui/tui-winsource.h (struct tui_exec_info_window)
4837 (struct tui_source_window_base): Move from tui-data.h.
4838 * tui/tui-winsource.c: Move many method definitions from
4839 elsewhere. Remove "structuring" comments.
4840 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4841 (tui_source_window_base::refresh_window): Move to
4843 * tui/tui-win.c (tui_source_window_base::refresh_all)
4844 (tui_source_window_base::update_tab_width)
4845 (tui_source_window_base::set_new_height)
4846 (tui_source_window_base::do_make_visible_with_new_height): Move to
4848 * tui/tui-source.h: Update.
4849 * tui/tui-source.c (tui_source_window_base::reset): Move to
4851 * tui/tui-disasm.h: Update.
4852 * tui/tui-data.h (struct tui_exec_info_window): Move to
4854 (struct tui_source_window_base): Likewise.
4855 * tui/tui-data.c (tui_source_window_base::clear_detail)
4856 (tui_source_window_base, ~tui_source_window_base): Move to
4859 2019-07-17 Tom Tromey <tom@tromey.com>
4861 * tui/tui-win.c (tui_resize_all)
4862 (tui_source_window_base::update_tab_width)
4863 (tui_adjust_win_heights): Update.
4864 (tui_win_info::make_invisible_and_set_new_height): Rename from
4865 make_invisible_and_set_new_height.
4866 * tui/tui-data.h (struct tui_win_info)
4867 <make_invisible_and_set_new_height>: New method.
4869 2019-07-17 Tom Tromey <tom@tromey.com>
4871 * tui/tui.c: Update.
4872 * tui/tui-source.h (struct tui_source_window): Move from
4874 * tui/tui-layout.c: Update.
4875 * tui/tui-disasm.c: Update.
4876 * tui/tui-data.h (struct tui_source_window): Move to
4879 2019-07-17 Tom Tromey <tom@tromey.com>
4881 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4883 * tui/tui-data.h (struct tui_disasm_window): Move to
4886 2019-07-17 Tom Tromey <tom@tromey.com>
4888 * tui/tui-regs.h (struct tui_data_item_window): Move from
4890 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4891 * tui/tui-data.h (struct tui_data_item_window): Move to
4893 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4895 2019-07-17 Tom Tromey <tom@tromey.com>
4897 * tui/tui.c: Update.
4898 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4899 (tui_cmd_window::max_height): Move to tui-command.c.
4900 * tui/tui-layout.c: Update.
4901 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4902 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4904 * tui/tui-command.h (struct tui_cmd_window): Move from
4906 * tui/tui-command.c: Remove "structuring" comments.
4907 (tui_cmd_window::clear_detail)
4908 (tui_cmd_window::do_make_visible_with_new_height)
4909 (tui_cmd_window::max_height): Move from elsewhere.
4911 2019-07-17 Tom Tromey <tom@tromey.com>
4913 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4915 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4916 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4918 2019-07-17 Tom Tromey <tom@tromey.com>
4920 * tui/tui.c: Update.
4921 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4923 * tui/tui-windata.h: Remove file.
4924 * tui/tui-windata.c: Remove file.
4925 * tui/tui-win.c (tui_data_window::set_new_height)
4926 (tui_data_window::do_make_visible_with_new_height): Move to
4928 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4929 * tui/tui-regs.c: Remove "structuring" comments.
4930 (tui_data_window::first_data_item_displayed)
4931 (tui_data_window::delete_data_content_windows)
4932 (tui_data_window::erase_data_content)
4933 (tui_data_window::display_all_data)
4934 (tui_data_window::refresh_all)
4935 (tui_data_window::do_scroll_vertical)
4936 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4937 (tui_data_window::do_make_visible_with_new_height)
4938 (tui_data_window::refresh_window): Move from elsewhere.
4939 (_initialize_tui_regs): Move to end of file.
4940 * tui/tui-layout.c: Update.
4941 * tui/tui-hooks.c: Update.
4942 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4943 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4945 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4947 2019-07-17 Tom Tromey <tom@tromey.com>
4949 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4952 2019-07-17 Tom Tromey <tom@tromey.com>
4954 * tui/tui-win.c (tui_source_window_base::set_new_height)
4955 (tui_source_window_base::do_make_visible_with_new_height): Use
4956 m_has_locator field directly.
4957 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4959 (struct tui_source_window_base) <has_locator>: Likewise.
4961 2019-07-17 Tom Tromey <tom@tromey.com>
4963 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4965 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4967 * tui/tui-win.c (tui_source_window_base::set_new_height)
4968 (tui_source_window_base::set_new_height)
4969 (make_invisible_and_set_new_height)
4970 (tui_source_window_base::do_make_visible_with_new_height)
4971 (tui_source_window_base::do_make_visible_with_new_height):
4973 * tui/tui-layout.c (show_source_disasm_command, show_data)
4974 (show_source_or_disasm_and_command): Update.
4975 * tui/tui-layout.c (show_layout): Update.
4977 2019-07-17 Tom Tromey <tom@tromey.com>
4979 * tui/tui-layout.c (make_data_window): Remove.
4980 (show_data): Unify creation and re-initialization cases.
4982 2019-07-17 Tom Tromey <tom@tromey.com>
4984 * tui/tui-layout.c (make_source_window, make_disasm_window):
4986 (show_data): Unify creation and re-initialization cases.
4988 2019-07-17 Tom Tromey <tom@tromey.com>
4990 * tui/tui-layout.c (make_command_window): Remove.
4991 (show_source_disasm_command, show_source_or_disasm_and_command):
4992 Unify creation and re-initialization cases.
4994 2019-07-17 Tom Tromey <tom@tromey.com>
4996 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4997 creation and re-initialization cases.
4999 2019-07-17 Tom Tromey <tom@tromey.com>
5001 * tui/tui-regs.c (tui_get_register): Return void.
5003 2019-07-17 Tom Tromey <tom@tromey.com>
5005 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5008 2019-07-17 Tom Tromey <tom@tromey.com>
5010 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5013 2019-07-17 Tom Tromey <tom@tromey.com>
5015 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5016 * tui/tui-regs.c (tui_reg_layout): New function.
5017 (tui_show_registers, tui_reg_command): Use it.
5018 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5019 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5021 (tui_layout_command): Remove.
5023 2019-07-17 Tom Tromey <tom@tromey.com>
5025 * tui/tui-layout.h (tui/tui-layout): Return void.
5026 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5028 2019-07-17 Tom Tromey <tom@tromey.com>
5030 * tui/tui-layout.c (show_source_disasm_command, show_data):
5032 (reset_locator): Remove.
5033 (show_source_or_disasm_and_command): Update.
5035 2019-07-17 Tom Tromey <tom@tromey.com>
5037 * tui/tui-source.c (tui_source_window_base::reset): Remove
5039 * tui/tui-layout.c (make_command_window, make_source_window)
5040 (make_disasm_window, make_data_window)
5041 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5042 (reset_locator, show_source_or_disasm_and_command): Update.
5043 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5045 (struct tui_source_window_base) <reset>: Likewise.
5047 2019-07-17 Tom Tromey <tom@tromey.com>
5049 * tui/tui-layout.c (show_source_disasm_command): Use
5051 (reset_locator): New function.
5052 (init_and_make_win): Remove.
5053 (show_source_or_disasm_and_command): Use reset_locator.
5055 2019-07-17 Tom Tromey <tom@tromey.com>
5057 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5059 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5061 * tui/tui-source.c (tui_source_window_base::reset): New method.
5062 * tui/tui-layout.c (make_command_window): Don't call
5064 (make_source_window, make_disasm_window): Don't call
5065 make_source_or_disasm_window.
5066 (make_data_window): Don't call init_and_make_win. Change calling
5068 (show_source_disasm_command, show_data): Simplify.
5069 (make_source_or_disasm_window): Remove.
5070 (show_source_or_disasm_and_command): Simplify.
5071 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5072 (struct tui_source_window_base) <reset>: Likewise.
5073 <execution_info>: Remove initializer.
5074 * tui/tui-data.c (tui_source_window_base): Initialize
5077 2019-07-17 Tom Tromey <tom@tromey.com>
5079 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5082 2019-07-17 Tom Tromey <tom@tromey.com>
5084 * tui/tui.c (tui_rl_other_window): Update.
5085 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5086 superclass method first. Always iterate over regs_content.
5087 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5089 * tui/tui-win.c (tui_set_focus_command): Update.
5091 2019-07-17 Tom Tromey <tom@tromey.com>
5093 * tui/tui-win.c (tui_set_focus_command): Rename from
5094 tui_set_focus. Call tui_enable.
5095 (tui_set_focus_command): Remove.
5097 2019-07-17 Tom Tromey <tom@tromey.com>
5099 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5101 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5103 (tui_data_window::refresh_window): Call refresh_window on data
5104 items. Always call superclass refresh_window.
5105 (tui_win_info::refresh): Remove.
5106 (tui_source_window_base::refresh_window): Update.
5107 (tui_refresh_all): Update.
5108 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5110 (show_source_or_disasm_and_command): Likewise.
5111 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5112 (struct tui_source_window_base) <refresh>: Likewise.
5114 2019-07-17 Tom Tromey <tom@tromey.com>
5116 * tui/tui-winsource.c (tui_clear_source_content)
5117 (tui_show_source_content): Update.
5118 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5119 whether content is empty.
5120 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5123 2019-07-17 Tom Tromey <tom@tromey.com>
5125 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5127 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5128 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5130 2019-07-17 Tom Tromey <tom@tromey.com>
5132 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5133 (struct tui_data_item_window): Update.
5135 2019-07-17 Tom Tromey <tom@tromey.com>
5137 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5138 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5141 2019-07-17 Tom Tromey <tom@tromey.com>
5143 * tui/tui-winsource.h (tui_erase_source_content)
5144 (tui_clear_source_content): Remove "display_prompt" parameter.
5145 * tui/tui-winsource.c (tui_update_source_window_as_is)
5146 (tui_update_source_windows_with_addr): Update.
5147 (tui_clear_source_content): Remove "display_prompt" parameter.
5148 (tui_erase_source_content): Likewise. Simplify.
5149 (tui_show_source_content): Update.
5150 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5151 * tui/tui-stack.c (tui_show_frame_info): Update.
5152 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5155 2019-07-17 Tom Tromey <tom@tromey.com>
5157 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5158 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5160 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5163 2019-07-17 Tom Tromey <tom@tromey.com>
5165 * tui/tui-winsource.c (tui_clear_source_content)
5166 (tui_show_source_content, tui_show_exec_info_content)
5167 (tui_clear_exec_info_content): Update.
5168 * tui/tui-stack.c (tui_show_locator_content): Update.
5169 (tui_show_frame_info): Update.
5170 * tui/tui-source.h (tui_source_window): Don't declare.
5171 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5172 from tui_source_is_displayed.
5173 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5175 (struct tui_source_window_base) <content_in_use>: New field. Now
5177 (struct tui_source_window) <showing_source_p>: New method.
5178 (TUI_SRC_WIN): Change cast.
5179 * tui/tui-data.c (tui_initialize_static_data): Update.
5181 2019-07-17 Tom Tromey <tom@tromey.com>
5183 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5185 * tui/tui-source.c (tui_source_window::location_matches_p): New
5187 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5189 * tui/tui-data.h (struct tui_source_window_base)
5190 <location_matches_p>: New method.
5191 (struct tui_source_window, struct tui_disasm_window)
5192 <location_matches_p>: Likewise.
5194 2019-07-17 Tom Tromey <tom@tromey.com>
5196 * tui/tui-win.c (tui_set_win_height_command): Rename from
5198 (tui_set_win_height_command): Remove.
5200 2019-07-17 Tom Tromey <tom@tromey.com>
5202 * tui/tui-source.c (tui_source_window): New constructor. Add
5204 (~tui_source_window): New destructor.
5205 (tui_source_window::style_changed): New method.
5206 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5207 (tui_attach_detach_observers): Update.
5208 * tui/tui-data.h (struct tui_source_window): Make constructor not
5209 inline. Add destructor.
5210 (struct tui_source_window) <style_changed>: New method.
5211 <m_observable>: New member.
5213 2019-07-17 Tom Tromey <tom@tromey.com>
5215 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5216 * tui/tui-win.c (tui_resize_all): Fix typo.
5218 2019-07-17 Tom Tromey <tom@tromey.com>
5220 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5221 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5222 (tui_refresh_all): Remove "list" parameter. Use foreach.
5223 * tui/tui-win.c (window_name_completer): Use foreach.
5224 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5225 (update_tab_width): Likewise.
5226 * tui/tui-layout.c (show_layout): Update.
5227 * tui/tui-data.h (class tui_window_iterator): New.
5228 (struct all_tui_windows): New.
5229 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5231 2019-07-17 Tom Tromey <tom@tromey.com>
5233 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5234 parameter. Don't reference globals.
5235 (tui_reg_command): Update.
5237 2019-07-17 Tom Tromey <tom@tromey.com>
5239 * tui/tui-regs.c (tui_show_registers): Simplify.
5241 2019-07-17 Tom Tromey <tom@tromey.com>
5243 * tui/tui-regs.c (tui_show_registers): Update.
5244 (tui_show_register_group): Add win_info parameter.
5246 2019-07-17 Tom Tromey <tom@tromey.com>
5248 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5249 Rename from tui_display_reg_element_at_line.
5250 (tui_data_window::display_registers_from_line): Update.
5251 * tui/tui-data.h (struct tui_data_window)
5252 <display_reg_element_at_line>: New method.
5254 2019-07-17 Tom Tromey <tom@tromey.com>
5256 * tui/tui-regs.h (tui_display_registers_from)
5257 (tui_display_registers_from_line): Don't declare.
5258 * tui/tui-windata.c (tui_data_window::display_all_data)
5259 (tui_data_window::refresh_all)
5260 (tui_data_window::do_scroll_vertical): Update.
5261 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5262 from tui_display_registers_from.
5263 (tui_display_reg_element_at_line): Update.
5264 (tui_data_window::display_registers_from_line): Rename from
5265 tui_display_registers_from_line.
5266 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5267 display_registers_from_line>: New methods.
5269 2019-07-17 Tom Tromey <tom@tromey.com>
5271 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5272 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5273 from tui_erase_data_content.
5274 (tui_data_window::display_all_data)
5275 (tui_data_window::refresh_all)
5276 (tui_data_window::do_scroll_vertical): Update.
5277 * tui/tui-regs.c (tui_show_registers): Update.
5278 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5281 2019-07-17 Tom Tromey <tom@tromey.com>
5283 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5286 (tui_data_window::delete_data_content_windows): Rename from
5287 tui_delete_data_content_windows.
5288 (tui_data_window::display_all_data)
5289 (tui_data_window::do_scroll_vertical): Update.
5290 * tui/tui-data.h (struct tui_data_window)
5291 <delete_data_content_windows>: New method.
5293 2019-07-17 Tom Tromey <tom@tromey.com>
5295 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5296 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5298 2019-07-17 Tom Tromey <tom@tromey.com>
5300 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5301 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5302 from tui_display_all_data.
5304 (tui_data_window::do_make_visible_with_new_height): Update.
5305 * tui/tui-regs.c (tui_show_registers): Update.
5306 * tui/tui-layout.c (tui_set_layout): Update.
5307 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5310 2019-07-17 Tom Tromey <tom@tromey.com>
5312 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5313 * tui/tui-windata.c (tui_display_data_from): Remove.
5314 (tui_data_window::refresh_all): Update.
5316 2019-07-17 Tom Tromey <tom@tromey.com>
5318 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5319 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5320 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5321 tui_display_registers_from_line.
5322 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5323 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5324 "force_display" parameter.
5326 2019-07-17 Tom Tromey <tom@tromey.com>
5328 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5330 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5331 Rename from tui_first_reg_element_no_inline.
5332 (tui_display_reg_element_at_line)
5333 (tui_display_registers_from_line): Update.
5334 * tui/tui-data.h (struct tui_data_window)
5335 <first_reg_element_no_inline>: New method.
5337 2019-07-17 Tom Tromey <tom@tromey.com>
5339 * tui/tui-windata.c (tui_display_data_from)
5340 (tui_data_window::do_scroll_vertical): Update.
5341 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5342 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5343 Rename from tui_line_from_reg_element_no.
5344 (tui_display_registers_from_line): Update.
5345 * tui/tui-data.h (struct tui_data_window)
5346 <line_from_reg_element_no>: New method.
5348 2019-07-17 Tom Tromey <tom@tromey.com>
5350 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5351 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5352 tui_last_regs_line_no.
5353 (tui_display_reg_element_at_line)
5354 (tui_display_registers_from_line): Update.
5355 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5358 2019-07-17 Tom Tromey <tom@tromey.com>
5361 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5362 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5363 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5364 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5365 (tui_update_breakpoint_info): Likewise.
5366 * tui/tui-hooks.c (tui_event_create_breakpoint)
5367 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5372 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5374 2019-07-17 Tom Tromey <tom@tromey.com>
5376 * tui/tui-winsource.c (tui_update_source_window_as_is)
5377 (tui_update_source_windows_with_addr): Update.
5378 * tui/tui-source.h (tui_set_source_content)
5379 (tui_show_symtab_source): Add "win_info" parameter.
5380 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5382 (tui_show_symtab_source): Likewise.
5384 2019-07-17 Tom Tromey <tom@tromey.com>
5386 * tui/tui-wingeneral.c
5387 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5389 2019-07-17 Tom Tromey <tom@tromey.com>
5391 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5392 (struct tui_cmd_window) <can_scroll>: New method.
5393 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5396 2019-07-17 Tom Tromey <tromey@adacore.com>
5398 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5399 do_field_signed>: Rename. Change type of "value".
5400 * ui-out.c (ui_out::field_signed): Rename from field_int.
5401 Change type of "value".
5402 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5404 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5405 do_field_int. Change type of "value".
5406 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5407 do_field_int. Change type of "value".
5408 * tracepoint.c (trace_status_mi, tfind_1)
5409 (print_one_static_tracepoint_marker): Update.
5410 * thread.c (print_thread_info_1, print_selected_thread_frame):
5412 * stack.c (print_frame, print_frame_info): Update.
5413 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5415 * source.c (print_source_lines_base): Update.
5416 * skip.c (info_skip_command): Update.
5417 * record-btrace.c (btrace_ui_out_decode_error)
5418 (btrace_call_history_src_line): Update.
5419 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5421 * progspace.c (print_program_space): Update.
5422 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5423 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5424 do_field_int. Change type of "value".
5425 * mi/mi-out.c (mi_ui_out::do_table_begin)
5426 (mi_ui_out::do_table_header): Update.
5427 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5429 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5430 (mi_cmd_data_list_changed_registers, output_register)
5431 (mi_cmd_data_read_memory, mi_load_progress)
5432 (mi_cmd_trace_frame_collected): Update.
5433 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5435 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5436 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5437 (mi_cmd_var_list_children, varobj_update_one): Update.
5438 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5439 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5440 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5441 * inferior.c (print_inferior): Update.
5442 * gdb_bfd.c (print_one_bfd): Update.
5443 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5445 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5446 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5447 do_field_int. Change type of "value".
5448 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5449 do_field_int. Change type of "value".
5450 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5451 (print_one_breakpoint_location, print_it_catch_fork)
5452 (print_one_catch_fork, print_it_catch_vfork)
5453 (print_one_catch_vfork, print_it_catch_solib)
5454 (print_it_catch_exec, print_it_ranged_breakpoint)
5455 (print_mention_watchpoint, print_mention_masked_watchpoint)
5456 (bkpt_print_it, update_static_tracepoint): Update.
5457 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5458 * break-catch-syscall.c (print_it_catch_syscall): Update.
5459 * ada-tasks.c (print_ada_task_info): Update.
5460 * ada-lang.c (print_it_exception, print_mention_exception):
5463 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5465 PR breakpoints/24541
5466 * gdbarch.c: Regenerate.
5467 * gdbarch.h: Regenerate.
5468 * gdbarch.sh: Adjust return type and parameter types for
5469 'stap_adjust_register'.
5470 (i386_stap_adjust_register): Adjust signature and return new
5472 * stap-probe.c (stap_parse_register_operand): Adjust use of
5473 'gdbarch_stap_adjust_register'.
5475 2019-07-17 Tom Tromey <tromey@adacore.com>
5477 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5479 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5481 (struct s390_process_info): Add initializers.
5482 (s390_add_process): Use new.
5483 (s390_linux_nat_target::low_forget_process): Use delete.
5484 (s390_linux_nat_target::low_new_fork)
5485 (s390_linux_nat_target::stopped_by_watchpoint)
5486 (s390_linux_nat_target::low_prepare_to_resume)
5487 (s390_linux_nat_target::insert_watchpoint)
5488 (s390_linux_nat_target::insert_hw_breakpoint)
5489 (s390_linux_nat_target::remove_watchpoint)
5490 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5492 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5494 * aarch64-fbsd-nat.c: Include regcache.h.
5495 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5497 (aarch64_fbsd_nat_target::fetch_registers)
5498 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5500 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5502 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5504 * fbsd-nat.c: Include gdbarch.h.
5506 2019-07-15 Tom Tromey <tromey@adacore.com>
5508 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5510 2019-07-15 Tom Tromey <tromey@adacore.com>
5512 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5513 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5514 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5515 * cli-out.c (cli_ui_out::do_field_int): New method.
5516 * ui-out.c (ui_out::field_unsigned): New method.
5517 * symfile.c (generic_load): Use field_unsigned.
5518 (print_transfer_performance): Likewise.
5519 * record-btrace.c (ui_out_field_uint): Remove.
5520 (btrace_call_history_insn_range, btrace_call_history): Use
5522 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5524 * ui-out.h (class ui_out) <field_unsigned>: New method.
5525 <do_field_unsigned>: Likewise.
5527 2019-07-15 Tom Tromey <tromey@adacore.com>
5529 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5530 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5531 * target.c (flash_erase_command): Use field_string.
5532 * infrun.c (print_signal_received_reason): Use field_string.
5533 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5534 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5536 * ada-tasks.c (print_ada_task_info): Use field_string.
5538 2019-07-15 Tom Tromey <tromey@adacore.com>
5540 * target.c (flash_erase_command): Use field_core_addr.
5541 * symfile.c (generic_load): Use field_core_addr.
5542 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5543 Use field_core_addr.
5544 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5547 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5549 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5550 value if its desired type is smaller than a CORE_ADDR and signed.
5552 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5554 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5555 of changes to field names, and use new is_reference field to
5556 decide if a property is a reference or not.
5557 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5559 (struct dwarf2_property_baton): Update header comment, rename
5560 'referenced_type' to 'property_type' and update comments.
5561 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5562 default property type, store in property baton, update to take
5563 accound of renamed field.
5564 (read_func_scope): Update call to attr_to_dynamic_prop.
5565 (read_array_type): Likewise.
5566 (dwarf2_per_cu_addr_sized_int_type): New function.
5567 (read_subrange_index_type): Move type finding code to
5568 dwarf2_per_cu_addr_sized_int_type.
5569 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5570 (dwarf2_per_cu_addr_type): New function.
5571 (set_die_type): Update calls to attr_to_dynamic_prop.
5573 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5575 * dwarf2read.c (read_subrange_index_type): New function.
5576 (read_subrange_type): Move code into new function and call it.
5577 * gdbtypes.c (create_range_type): Add some asserts.
5579 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5581 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5582 update return statements.
5583 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5584 declaration, and update comment to match.
5585 * gdbtypes.c (resolve_dynamic_array): Update call to
5586 dwarf2_evaluate_property to match new return type.
5588 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5590 * valarith.c (value_subscripted_rvalue): Change lowerbound
5591 parameter type from int to LONGEST.
5592 * value.h (value_subscripted_rvalue): Likewise in declaration.
5594 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5596 * cli/cli-utils.c (info_print_command_completer): New function.
5597 * cli/cli-utils.h: Add 'completer.h' include, and forward
5598 declaration for 'struct cmd_list_element'.
5599 (info_print_command_completer): Declare.
5600 * stack.c (_initialize_stack): Add completer for 'info locals' and
5602 * symtab.c (_initialize_symtab): Add completer for 'info
5603 variables' and 'info functions'.
5604 * NEWS: Mention completion for additional info commands.
5606 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5608 * cli/cli-utils.c (extract_info_print_args): Delete.
5609 (extract_arg_maybe_quoted): Delete.
5610 (info_print_options_defs): New variable.
5611 (make_info_print_options_def_group): New function.
5612 (extract_info_print_options): Define new function.
5613 * cli/cli-utils.h (extract_info_print_args): Delete.
5614 (struct info_print_options): New structure.
5615 (extract_info_print_options): Declare new function.
5616 * stack.c (info_locals_command): Update to use new
5617 extract_info_print_options, also add a header comment.
5618 (info_args_command): Likewise.
5619 * symtab.c (info_variables_command): Likewise.
5620 (info_functions_command): Likewise.
5622 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5624 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5625 to extract string arguments.
5626 * common/common-utils.c (extract_string_maybe_quoted): New function.
5627 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5629 2019-07-11 Tom Tromey <tromey@adacore.com>
5631 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5632 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5633 * top.h (gdbinit): Don't declare.
5634 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5636 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5637 * top.c (gdb_init): Don't call init_cli_cmds.
5639 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5641 2019-07-11 Tom Tromey <tromey@adacore.com>
5643 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5644 after it has been moved.
5646 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5648 * valops.c (value_must_coerce_to_target): Change return type to
5650 * value.h (value_must_coerce_to_target): Likewise.
5652 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5654 * breakpoint.c (is_hardware_watchpoint): Remove
5655 forward-declaration.
5656 (is_masked_watchpoint): Change return type to bool.
5657 (is_tracepoint): Likewise.
5658 (is_breakpoint): Likewise.
5659 (is_hardware_watchpoint): Likewise.
5660 (is_watchpoint): Likewise.
5661 (is_no_memory_software_watchpoint): Likewise.
5662 (is_catchpoint): Likewise.
5663 (breakpoint_1): Make FILTER parameter's return type bool.
5664 is_masked_watchpoint): Change return type to bool.
5665 (save_breakpoints): Make FILTER parameter's return type bool.
5666 * breakpoint.h (is_breakpoint): Change return type to bool.
5667 (is_watchpoint): Likewise.
5668 (is_catchpoint): Likewise.
5669 (is_tracepoint): Likewise.
5671 2019-07-10 Tom Tromey <tom@tromey.com>
5673 * defs.h: Don't include gdbarch.h.
5674 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5675 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5676 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5677 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5678 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5679 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5680 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5681 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5682 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5683 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5684 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5685 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5686 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5687 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5688 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5689 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5690 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5691 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5692 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5693 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5694 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5695 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5696 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5697 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5698 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5699 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5700 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5702 2019-07-10 Tom Tromey <tromey@adacore.com>
5704 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5705 * breakpoint.c (init_ada_exception_breakpoint): Register as
5707 (print_one_breakpoint_location, print_one_breakpoint): Use
5708 is_ada_exception_catchpoint.
5709 * ada-lang.c (class ada_catchpoint_location): Pass
5710 bp_loc_software_breakpoint to bp_location constructor.
5711 (is_ada_exception_catchpoint): New function.
5713 2019-07-10 Tom Tromey <tromey@adacore.com>
5715 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5717 (struct arm_exidx_entry): New method operator<.
5718 (struct arm_exidx_data) <section_maps>: Change type.
5719 (arm_exidx_data_free): Remove.
5720 (arm_exidx_data_key): Change type. Move lower.
5721 (arm_exidx_new_objfile): Update.
5722 (arm_compare_exidx_entries): Remove.
5723 (arm_find_exidx_entry, _initialize_arm_tdep)
5725 2019-07-10 Tom Tromey <tromey@adacore.com>
5727 * solib-spu.c (ocl_program_data_key): Change type.
5728 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5731 2019-07-10 Tom Tromey <tromey@adacore.com>
5733 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5734 (struct solib_aix_inferior_data) <library_list>: Change type.
5735 (solib_aix_inferior_data_handle): Change type.
5736 (get_solib_aix_inferior_data): Update.
5737 (solib_aix_free_library_list): Remove.
5738 (library_list_start_library): Update.
5739 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5741 (solib_aix_get_library_list)
5742 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5743 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5745 2019-07-10 Tom Tromey <tromey@adacore.com>
5747 * solib-dsbt.c (struct dsbt_info): Add initializers.
5748 (solib_dsbt_pspace_data): Change type.
5749 (dsbt_pspace_data_cleanup): Remove.
5750 (get_dsbt_info, _initialize_dsbt_solib): Update.
5752 2019-07-10 Tom Tromey <tromey@adacore.com>
5754 * spu-tdep.c (spu_overlay_data): Change type.
5755 (spu_get_overlay_table, spu_overlay_new_objfile)
5756 (_initialize_spu_tdep): Update.
5758 2019-07-10 Tom Tromey <tromey@adacore.com>
5760 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5762 (dbx_objfile_data_key): Change type and declare later.
5763 (DBX_SYMFILE_INFO): Rewrite.
5764 * dbxread.c (dbx_objfile_data_key): Change type.
5765 (dbx_symfile_init): Update.
5766 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5767 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5768 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5770 2019-07-10 Tom Tromey <tromey@adacore.com>
5772 * jit.c (jit_program_space_key): Change type. Move lower.
5773 (get_jit_program_space_data): Update.
5774 (jit_program_space_data_cleanup): Remove.
5775 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5777 (struct jit_program_space_data): Add initializers.
5779 2019-07-10 Tom Tromey <tromey@adacore.com>
5781 * solib-darwin.c (struct darwin_info): Add initializers.
5782 (solib_darwin_pspace_data): Change type.
5783 (darwin_pspace_data_cleanup): Remove.
5784 (get_darwin_info, _initialize_darwin_solib): Update.
5786 2019-07-10 Tom Tromey <tromey@adacore.com>
5788 * remote-sim.c (struct sim_inferior_data): Add initializers,
5789 constructor, and destructor.
5790 (sim_inferior_data_key): Change type. Move lower.
5791 (check_for_duplicate_sim_descriptor): Update.
5792 (get_sim_inferior_data): Use new. Update.
5793 (~sim_inferior_data_cleanup): Rename from
5794 sim_inferior_data_cleanup. Simplify.
5795 (gdbsim_close_inferior, simulator_command)
5796 (sim_command_completer, _initialize_remote_sim): Update.
5797 (next_pid, INITIAL_PID): Move earlier.
5799 2019-07-10 Tom Tromey <tromey@adacore.com>
5801 * python/python-internal.h (create_thread_object): Return
5803 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5804 * python/py-inferior.c (struct threadlist_entry): Add
5806 <thread_obj>: Now a gdbpy_ref.
5807 (thread_to_thread_object): Update.
5808 (add_thread_object): Use new.
5809 (delete_thread_object): Use delete.
5810 (infpy_threads): Update.
5811 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5814 2019-07-10 Tom Tromey <tromey@adacore.com>
5816 * valops.c (value_cast): Specialize error message for Ada.
5818 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5820 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5822 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5824 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5825 bpstat_should_step): Return bool, adjust comments.
5826 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5827 bpstat_should_step): Likewise.
5829 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5831 * features/Makefile: Use feature target descriptions for Arm.
5832 * features/arm/arm-core.c: Generate new file.
5833 * features/arm/arm-fpa.c: Likewise.
5834 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5835 * features/arm/arm-m-profile.c: Likewise.
5836 * features/arm/arm-vfpv2.c: Likewise.
5837 * features/arm/arm-vfpv3.c: Likewise.
5838 * features/arm/xscale-iwmmxt.c: Likewise.
5839 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5841 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5843 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5846 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5848 * features/aarch64-pauth.c: Regenerate.
5850 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5852 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5854 (bpstat_what): Use false instead of 0.
5856 2019-07-09 Pedro Alves <palves@redhat.com>
5858 * break-catch-throw.c (is_exception_catchpoint): New.
5859 * breakpoint.c (print_one_breakpoint_location): New parameter
5860 'raw_loc'. Handle it. Use
5861 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5862 looking at the breakpoint's type.
5863 (print_one_breakpoint): If handling "maint info breakpoints", also
5864 print locations of exception catchpoints.
5865 * breakpoint.h (is_exception_catchpoint): Declare.
5867 2019-07-09 Pedro Alves <palves@redhat.com>
5869 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5871 (allocate_location_exception_catchpoint): New.
5872 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5873 (initialize_throw_catchpoint_ops): Install
5874 allocate_location_exception_catchpoint as allocate_location
5876 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5877 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5879 (breakpoint_address_is_meaningful): Delete.
5880 (bl_address_is_meaningful): New.
5881 (breakpoint_locations_match): Adjust comment.
5882 (bp_location_from_bp_type): New, factored out of...
5883 (bp_location::bp_location(breakpoint *)): ... this.
5884 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5886 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5887 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5888 breakpoint_address_is_meaningful.
5889 (bp_locations_compare): Adjust comment.
5890 (update_global_location_list): Use bl_address_is_meaningful
5891 instead of breakpoint_address_is_meaningful.
5892 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5894 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5895 * python/py-breakpoint.c (bppy_get_location): No longer check
5896 whether location is null.
5898 2019-07-09 Pedro Alves <palves@redhat.com>
5901 * breakpoint.c (print_one_breakpoint_location): Remove
5902 single-location assert.
5904 2019-07-09 Tom Tromey <tom@tromey.com>
5906 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5907 * configure: Rebuild.
5908 * configure.ac: Change common to gdbsupport.
5909 * gdbsupport: Rename from common.
5910 * acinclude.m4: Change common to gdbsupport.
5911 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5912 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5914 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5915 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5916 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5917 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5918 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5919 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5920 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5921 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5922 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5923 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5924 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5925 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5926 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5927 coff-pe-read.c, command.h, compile/compile-c-support.c,
5928 compile/compile-c.h, compile/compile-cplus-symbols.c,
5929 compile/compile-cplus-types.c, compile/compile-cplus.h,
5930 compile/compile-loc2c.c, compile/compile.c, completer.c,
5931 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5932 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5933 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5934 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5935 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5936 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5937 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5938 features/aarch64-core.c, features/aarch64-fpu.c,
5939 features/aarch64-pauth.c, features/aarch64-sve.c,
5940 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5941 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5942 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5943 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5944 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5945 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5946 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5947 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5948 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5949 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5950 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5951 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5952 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5953 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5954 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5955 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5956 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5957 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5958 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5959 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5960 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5961 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5962 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5963 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5964 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5965 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5966 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5967 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5968 minsyms.c, mips-linux-tdep.c, namespace.h,
5969 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5970 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5971 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5972 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5973 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5974 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5975 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5976 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5977 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5978 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5979 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5980 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5981 procfs.c, producer.c, progspace.h, psymtab.h,
5982 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5983 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5984 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5985 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5986 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5987 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5988 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5989 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5990 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5991 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5992 target-memory.c, target.c, target.h, target/waitstatus.c,
5993 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5994 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5995 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5996 unittests/array-view-selftests.c,
5997 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5998 unittests/common-utils-selftests.c,
5999 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6000 unittests/format_pieces-selftests.c,
6001 unittests/function-view-selftests.c,
6002 unittests/lookup_name_info-selftests.c,
6003 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6004 unittests/mkdir-recursive-selftests.c,
6005 unittests/observable-selftests.c,
6006 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6007 unittests/parse-connection-spec-selftests.c,
6008 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6009 unittests/scoped_fd-selftests.c,
6010 unittests/scoped_mmap-selftests.c,
6011 unittests/scoped_restore-selftests.c,
6012 unittests/string_view-selftests.c, unittests/style-selftests.c,
6013 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6014 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6015 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6016 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6017 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6018 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6020 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6022 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6024 (decode_digits_ordinary): Set explicit_line field in sal.
6025 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6026 symtab_and_line that was set on an explicit line number in
6027 assembler code. Do always update the recorded symtab and line if
6028 we do skip the prologue.
6030 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6032 * breakpoint.c (set_breakpoint_location_function): Remove
6033 explicit_loc parameter.
6034 (momentary_breakpoint_from_master): Update call to
6035 set_breakpoint_location_function.
6036 (add_location_to_breakpoint): Likewise.
6038 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6040 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6041 required features based on default bfd type when no specific bfd
6044 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6046 * NEWS: Mention that GDB printf and eval commands can now print
6047 C-style and Ada-style convenience var strings without
6048 calling the inferior.
6049 * printcmd.c (printf_c_string): Locally print GDB internal var
6050 instead of transiting via the inferior.
6051 (printf_wide_c_string): Likewise.
6053 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6055 PR breakpoints/25011
6056 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6058 2019-07-04 Tom Tromey <tom@tromey.com>
6061 * tui/tui-winsource.c (tui_clear_source_content): Update.
6062 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6063 (tui_update_breakpoint_info): Update.
6064 (tui_set_exec_info_content): Update.
6065 * tui/tui-source.c (tui_set_source_content_nil): Update.
6066 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6068 * tui/tui-data.h (enum tui_bp_flag): New.
6069 (tui_bp_flags): New enum flags type.
6070 (struct tui_source_element) <break_mode>: Change type. Rename
6072 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6073 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6075 * tui/tui-winsource.h: Fix comment.
6077 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6079 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6080 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6081 (store_fpregs_to_thread)
6082 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6083 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6084 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6085 (IWMMXT_REGS_SIZE): Add define.
6086 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6087 (fetch_vfp_regs, store_vfp_regs)
6088 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6089 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6091 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6093 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6095 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6096 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6097 (ARM_INT_REGISTER_SIZE): ...to this.
6098 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6099 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6100 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6101 (arm_linux_collect_gregset, supply_nwfpe_register)
6102 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6104 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6105 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6106 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6107 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6108 (arm_return_in_memory, arm_store_return_value)
6109 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6110 (arm_record_ld_st_multiple): Likewise.
6111 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6112 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6114 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6116 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6117 AARCH64_DISPLACED_MODIFIED_INSNS.
6118 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6119 (aarch64_displaced_step_copy_insn): Likewise.
6120 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6121 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6122 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6123 ARM_DISPLACED_MODIFIED_INSNS.
6124 * arm-tdep.c (arm_gdbarch_init): Likewise.
6125 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6126 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6127 (struct arm_displaced_step_closure): Use
6128 ARM_DISPLACED_MODIFIED_INSNS.
6130 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6132 * features/Makefile: Remove unused xml files.
6133 * features/aarch64.xml: Remove.
6134 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6135 * features/i386/amd64-avx-avx512.xml: Remove.
6136 * features/i386/amd64-avx-linux.xml: Remove.
6137 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6138 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6139 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6140 * features/i386/amd64-avx-mpx.xml: Remove.
6141 * features/i386/amd64-avx.xml: Remove.
6142 * features/i386/amd64-linux.xml: Remove.
6143 * features/i386/amd64-mpx-linux.xml: Remove.
6144 * features/i386/amd64-mpx.xml: Remove.
6145 * features/i386/amd64.xml: Remove.
6146 * features/i386/i386-avx-avx512-linux.xml: Remove.
6147 * features/i386/i386-avx-avx512.xml: Remove.
6148 * features/i386/i386-avx-linux.xml: Remove.
6149 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6150 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6151 * features/i386/i386-avx-mpx-linux.xml: Remove.
6152 * features/i386/i386-avx-mpx.xml: Remove.
6153 * features/i386/i386-avx.xml: Remove.
6154 * features/i386/i386-linux.xml: Remove.
6155 * features/i386/i386-mmx-linux.xml: Remove.
6156 * features/i386/i386-mmx.xml: Remove.
6157 * features/i386/i386-mpx-linux.xml: Remove.
6158 * features/i386/i386-mpx.xml: Remove.
6159 * features/i386/i386.xml: Remove.
6160 * features/i386/x32-avx-avx512-linux.xml: Remove.
6161 * features/i386/x32-avx-linux.xml: Remove.
6162 * features/i386/x32-linux.xml: Remove.
6164 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6166 * regformats/aarch64.dat: Remove.
6167 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6168 * regformats/i386/amd64-avx-linux.dat: Remove.
6169 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6170 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6171 * regformats/i386/amd64-linux.dat: Remove.
6172 * regformats/i386/amd64-mpx-linux.dat: Remove.
6173 * regformats/i386/amd64.dat: Remove.
6174 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6175 * regformats/i386/i386-avx-linux.dat: Remove.
6176 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6177 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6178 * regformats/i386/i386-linux.dat: Remove.
6179 * regformats/i386/i386-mmx-linux.dat: Remove.
6180 * regformats/i386/i386-mpx-linux.dat: Remove.
6181 * regformats/i386/i386.dat: Remove.
6182 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6183 * regformats/i386/x32-avx-linux.dat: Remove.
6184 * regformats/i386/x32-linux.dat: Remove.
6186 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6188 * aarch64-tdep.c: Remove xml self tests.
6189 * amd64-linux-tdep.c: Likewise.
6190 * amd64-tdep.c: Likewise.
6191 * i386-linux-tdep.c: Likewise.
6192 * i386-tdep.c: Likewise.
6194 2019-07-03 Pedro Alves <palves@redhat.com>
6197 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6198 (pipe_cmd_option_defs): New.
6199 (make_pipe_cmd_options_def_group): New.
6200 (pipe_command): Use gdb::option::process_options.
6201 (pipe_command_completer): New function.
6202 (_initialize_cli_cmds): Install completer for "pipe" command.
6204 2019-07-03 Pedro Alves <palves@redhat.com>
6206 * cli/cli-option.c (union option_value) <string>: New field.
6207 (struct option_def_and_value): Add ctor, move ctor, dtor and
6208 use DISABLE_COPY_AND_ASSIGN.
6209 (option_def_and_value::clear_value): New.
6210 (parse_option, save_option_value_in_ctx, get_val_type_str)
6211 (add_setshow_cmds_for_options): Handle var_string.
6212 * cli-option.h (union option_def::var_address) <string>: New
6214 (struct string_option_def): New.
6215 * maint-test-options.c (struct test_options_opts): Add default
6216 ctor and use DISABLE_COPY_AND_ASSIGN.
6217 <string_opt>: New field.
6218 (test_options_opts::~test_options_opts): New.
6219 (test_options_opts::dump): Also dump "-string".
6220 (test_options_option_defs): Install "string.
6222 2019-07-03 Pedro Alves <palves@redhat.com>
6224 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6225 option_value with a null enumeration.
6226 (complete_options): Save the option values in the context.
6227 (save_option_value_in_ctx): New, factored out from ...
6228 (process_options): ... here.
6229 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6231 * maint-test-options.c (test_options_opts::dump): New, factored
6233 (maintenance_test_options_command_mode): ... here.
6234 (maintenance_test_options_command_completion_result): Delete.
6235 (maintenance_test_options_command_completion_text): Update
6237 (maintenance_show_test_options_completion_result): Change
6238 prototype. Just print
6239 maintenance_test_options_command_completion_text.
6240 (save_completion_result): New.
6241 (maintenance_test_options_completer_mode): Pass options context to
6242 complete_options, and then save a dump.
6243 (_initialize_maint_test_options): Use add_cmd to install "maint
6244 show test-options-completion-result".
6246 2019-07-03 Pedro Alves <palves@redhat.com>
6248 * NEWS (New commands): Mention "with" and "maint with".
6249 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6250 (with_command, with_command_completer): New.
6251 (pipe_command): Adjust to new repeat_previous
6253 (_initialize_cli_cmds): Install the "with" command and its "w"
6255 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6257 * cli/cli-setshow.c (parse_cli_var_uinteger)
6258 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6259 argument strings for all var_types.
6260 (get_setshow_command_value_string): New, factored out from ...
6261 (do_show_command): ... this.
6262 * cli/cli-setshow.h: Include <string>.
6263 (get_setshow_command_value_string): Declare.
6264 * command.h (repeat_previous): Now returns const char *. Adjust
6266 * maint.c: Include "cli/cli-cmds.h".
6267 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6268 (_initialize_maint_cmds): Register the "maintenance with" command.
6269 * top.c (repeat_previous): Move bits from pipe_command here:
6270 Return the saved command line, if any; error out if there's no
6271 command to relaunch.
6273 2019-07-03 Pedro Alves <palves@redhat.com>
6275 * NEWS (New commands): Mention "maint set/show test-settings"
6276 instead of "maint test-settings".
6277 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6278 (maintenance_test_settings_set_list): Rename to ...
6279 (maintenance_set_test_settings_list): ... this.
6280 (maintenance_test_settings_show_list): Rename to ...
6281 (maintenance_show_test_settings_list): ... this.
6282 (maintenance_test_settings_cmd): Delete.
6283 (maintenance_test_settings_set_cmd): ...
6284 (maintenance_set_test_settings_cmd): ... this.
6285 (maintenance_test_settings_show_cmd): ...
6286 (maintenance_show_test_settings_cmd): ... this.
6287 (maintenance_test_settings_show_value_cmd):
6288 (maintenance_show_test_settings_value_cmd): ... this.
6289 (_initialize_maint_test_settings): No longer install the "maint
6290 test-settings" prefix command. Rename "maint test-settings set"
6291 to "maint set test-settings", and "maint test-settings show" to
6292 "maint show test-settings". Adjust all subcommands.
6294 2019-07-03 Pedro Alves <palves@redhat.com>
6296 * maint-test-settings.c: Fix file's intro comment. Replace all
6297 references to "test-options" with references to "test-settings",
6300 2019-07-03 Pedro Alves <palves@redhat.com>
6302 * maint-test-settings.c (maintenance_test_settings_xxx)
6303 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6305 (maintenance_test_settings_enums): Use them.
6306 (maintenance_test_settings_enum): Default to
6307 maintenance_test_settings_xxx.
6308 (_initialize_maint_test_settings): Initialize
6309 MAINTENANCE_TEST_SETTINGS_FILENAME.
6311 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6313 * breakpoint.h (remove_breakpoints_inf): Change return type to
6314 void, move function documentation here.
6315 * breakpoint.c (remove_breakpoints_inf): Change return type to
6316 void, move function documentation to header.
6318 2019-07-02 Pedro Alves <palves@redhat.com>
6320 * NEWS (Completion improvements): Mention "info threads".
6321 * thread.c (struct info_threads_opts, info_threads_option_defs)
6322 (make_info_threads_options_def_group): New.
6323 (info_threads_command): Use gdb::option::process_options.
6324 (info_threads_command_completer): New.
6325 (_initialize_thread): Use gdb::option::build_help to build the
6326 help text for "info threads".
6328 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6330 * defs.h (generic_load): Move from here...
6331 * symfile.h (generic_load): ... to here. Rename name parameter
6333 * symfile.c (generic_load): Add comment.
6335 2019-07-01 Tom Tromey <tromey@adacore.com>
6338 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6339 declaration of without_params. Fix formatting.
6341 2019-07-01 Tom Tromey <tromey@adacore.com>
6343 * ada-exp.y (find_primitive_type): Update.
6344 * ada-lang.h (ada_lookup_symbol): Update.
6345 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6347 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6349 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6351 PR breakpoints/24541
6352 * gdbarch.c: Regenerate.
6353 * gdbarch.h: Regenerate.
6354 * gdbarch.sh: Add 'stap_adjust_register'.
6355 * i386-tdep.c: Include '<unordered_set>'.
6356 (i386_stap_adjust_register): New function.
6357 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6358 * stap-probe.c (stap_parse_register_operand): Call
6359 'gdbarch_stap_adjust_register'.
6361 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6364 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6365 * python/python.c (do_start_initialization): Use 'xmalloc'
6366 instead of 'PyMem_Malloc'.
6368 2019-06-28 Tom Tromey <tromey@adacore.com>
6370 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6373 2019-06-27 Tom Tromey <tromey@adacore.com>
6375 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6377 (arm_find_mapping_symbol, arm_record_special_symbol)
6378 (_initialize_arm_tdep): Update.
6379 (arm_objfile_data_free): Remove.
6381 2019-06-27 Tom Tromey <tromey@adacore.com>
6383 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6384 to cp_print_static_field.
6386 2019-06-26 Tom Tromey <tromey@adacore.com>
6388 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6389 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6392 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6394 * features/aarch64-core.c (create_feature_aarch64_core):
6396 * features/aarch64-core.xml: Add cpsr flags.
6398 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6400 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6401 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6403 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6405 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6407 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6409 (arm_record_special_symbol): Don't insert new symbol in sorted
6410 position, push it at the end.
6412 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6414 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6415 (arm_mapping_symbol_s): Remove.
6416 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6417 (arm_mapping_symbol_vec): New typedef.
6418 (struct arm_per_objfile): Add constructor.
6419 <section_maps>: Change type to
6420 std::unique_ptr<arm_mapping_symbol_vec[]>.
6421 (arm_compare_mapping_symbols): Remove.
6422 (arm_find_mapping_symbol): Adjust to section_maps type change.
6423 (arm_objfile_data_free): Call delete on arm_per_objfile.
6424 (arm_record_special_symbol): Adjust to section_maps type change.
6425 Allocate arm_per_objfile with new.
6427 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6429 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6430 with the command prefix.
6432 2019-06-25 Tom Tromey <tom@tromey.com>
6434 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6435 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6437 2019-06-25 Tom Tromey <tom@tromey.com>
6439 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6441 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6444 2019-06-25 Tom Tromey <tom@tromey.com>
6446 * tui/tui-winsource.c
6447 (tui_source_window_base::set_is_exec_point_at): Add check against
6450 2019-06-25 Tom Tromey <tom@tromey.com>
6452 * tui/tui-source.c (tui_set_source_content): Don't check before
6454 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6456 2019-06-25 Tom Tromey <tom@tromey.com>
6458 * tui/tui-winsource.h (tui_update_source_window_as_is)
6459 (tui_alloc_source_buffer, tui_line_is_displayed)
6460 (tui_addr_is_displayed): Change type of win_info.
6461 * tui/tui-winsource.c (tui_update_source_window_as_is)
6462 (tui_clear_source_content, tui_show_source_line)
6463 (tui_show_source_content, tui_source_window_base::refill)
6464 (tui_source_window_base::set_is_exec_point_at)
6465 (tui_source_window_base::set_is_exec_point_at)
6466 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6467 (tui_alloc_source_buffer, tui_line_is_displayed)
6468 (tui_addr_is_displayed): Change type of win_info. Update.
6469 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6470 (tui_source_window_base::do_make_visible_with_new_height):
6472 * tui/tui-source.c (tui_set_source_content)
6473 (tui_set_source_content_nil)
6474 (tui_source_window::do_scroll_vertical): Update.
6475 * tui/tui-layout.c (show_layout): Update.
6476 * tui/tui-disasm.c (tui_set_disassem_content)
6477 (tui_disasm_window::do_scroll_vertical): Update.
6478 * tui/tui-data.h (tui_win_content): Remove.
6479 (struct tui_gen_win_info) <content, content_size>: Remove.
6480 (struct tui_source_element): Add initializers and destructor.
6481 (union tui_which_element, struct tui_win_element): Remove.
6482 (struct tui_source_window_base) <content>: New field.
6483 (struct tui_data_window): Remove destructor.
6484 (tui_alloc_content, tui_free_win_content)
6485 (tui_free_all_source_wins_content): Don't declare.
6486 * tui/tui-data.c (tui_initialize_static_data): Update.
6487 (init_content_element, tui_alloc_content): Remove.
6488 (~tui_gen_win_info): Update.
6489 (~tui_data_window, tui_free_all_source_wins_content)
6490 (tui_free_win_content, free_content, free_content_elements):
6493 2019-06-25 Tom Tromey <tom@tromey.com>
6495 * tui/tui-winsource.h (tui_clear_source_content)
6496 (tui_erase_source_content, tui_show_source_content): Change type
6498 * tui/tui-winsource.c (tui_clear_source_content)
6499 (tui_erase_source_content, tui_show_source_content): Change type
6501 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6502 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6504 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6506 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6508 2019-06-25 Tom Tromey <tom@tromey.com>
6510 * tui/tui-winsource.c (tui_clear_source_content)
6511 (tui_source_window_base::set_is_exec_point_at): Update.
6512 * tui/tui-source.c (tui_set_source_content_nil): Update.
6513 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6515 * tui/tui-data.c (init_content_element): Update.
6517 2019-06-25 Tom Tromey <tom@tromey.com>
6519 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6520 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6521 * tui/tui-layout.c (init_and_make_win): Update.
6522 * tui/tui.h (enum tui_win_type): Update.
6523 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6524 tui_win_is_auxillary.
6525 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6526 tui_win_is_auxillary.
6528 2019-06-25 Tom Tromey <tom@tromey.com>
6530 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6531 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6532 (tui_delete_data_content_windows, tui_display_all_data)
6533 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6535 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6536 * tui/tui-regs.c (tui_last_regs_line_no)
6537 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6538 (tui_show_registers): Update.
6539 (tui_show_register_group): Return void. Update.
6540 (tui_display_registers_from, tui_display_reg_element_at_line)
6541 (tui_display_registers_from_line, tui_check_register_values):
6543 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6545 (struct tui_data_window) <regs_content>: Now a std::vector.
6546 <regs_content_count>: Remove.
6547 (tui_add_content_elements, tui_free_data_content): Don't declare.
6548 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6549 (init_content_element): Remove DATA_WIN case. Add assert.
6550 (tui_add_content_elements): Remove.
6551 (tui_data_window): Update.
6552 (tui_free_data_content): Remove.
6553 (free_content_elements): Remove DATA_WIN case.
6555 2019-06-25 Tom Tromey <tom@tromey.com>
6557 * tui/tui-data.c (tui_data_item_window): Update.
6558 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6559 * tui/tui-windata.c (tui_display_all_data)
6560 (tui_display_data_from_line): Update.
6561 (tui_check_data_values): Remove.
6562 * tui/tui-regs.c (tui_show_register_group)
6563 (tui_display_reg_element_at_line): Update.
6564 * tui/tui-hooks.c (tui_register_changed)
6565 (tui_refresh_frame_and_register_information): Call
6566 tui_check_register_values.
6567 * tui/tui-data.h (struct tui_data_window) <data_content,
6568 data_content_count, data_type>: Remove.
6569 (enum tui_data_type): Remove.
6571 * tui/tui-data.c (tui_data_window::clear_detail)
6572 (~tui_data_window): Update.
6574 2019-06-25 Tom Tromey <tom@tromey.com>
6576 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6578 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6579 Rename from tui_first_data_item_displayed. Update.
6580 (tui_data_window::refresh_all)
6581 (tui_data_window::do_scroll_vertical): Update.
6582 * tui/tui-data.h (struct tui_data_window)
6583 <first_data_item_displayed>: Declare new method.
6585 2019-06-25 Tom Tromey <tom@tromey.com>
6587 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6588 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6590 (tui_initialize_static_data): ...here.
6592 2019-06-25 Tom Tromey <tom@tromey.com>
6594 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6595 (tui_display_registers_from, tui_check_register_values): Update.
6596 (tui_display_register): Remove win_info parameter; update.
6597 (tui_get_register): Change type of parameters.
6598 * tui/tui-data.h (struct tui_data_element): Remove.
6599 (union tui_which_element) <data>: Remove.
6600 <data_window>: Change type.
6601 (struct tui_data_item_window): New.
6602 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6604 (~tui_data_item_window): New destructor.
6605 (free_content_elements): Remove DATA_ITEM_WIN case.
6607 2019-06-25 Tom Tromey <tom@tromey.com>
6609 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6612 2019-06-25 Tom Tromey <tom@tromey.com>
6614 * tui/tui-data.h (struct tui_command_element): Remove.
6615 (union tui_which_element) <command>: Remove.
6616 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6618 (free_content_elements): Remove CMD_WIN case.
6620 2019-06-25 Tom Tromey <tom@tromey.com>
6622 * tui/tui-layout.c (tui_set_layout): Update.
6623 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6624 * tui/tui-data.c (layout_def): Update.
6626 2019-06-25 Tom Tromey <tom@tromey.com>
6628 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6629 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6630 (tui_source_window_base::set_new_height): Update.
6631 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6633 (tui_set_locator_fullname, tui_set_locator_info)
6634 (tui_show_frame_info): Update.
6635 * tui/tui-source.c (tui_set_source_content)
6636 (tui_source_is_displayed): Update.
6637 * tui/tui-layout.c (show_source_disasm_command, show_data)
6638 (show_source_or_disasm_and_command): Update.
6639 * tui/tui-disasm.c (tui_set_disassem_content)
6640 (tui_get_begin_asm_address): Update.
6641 * tui/tui-data.h (struct tui_locator_element): Remove.
6642 (union tui_which_element) <locator>: Remove.
6643 (struct tui_locator_window): New.
6644 (tui_locator_win_info_ptr): Change return type.
6645 * tui/tui-data.c (_locator): Change type.
6646 (tui_locator_win_info_ptr): Change return type.
6647 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6648 (tui_alloc_content): Add assert.
6650 2019-06-25 Tom Tromey <tom@tromey.com>
6652 * tui/tui-winsource.c
6653 (tui_exec_info_window::maybe_allocate_content): New method.
6654 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6655 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6656 (make_source_or_disasm_window): Add cast.
6657 * tui/tui-data.h (union tui_which_element) <simple_string>:
6659 (struct tui_source_info): New.
6660 (struct tui_source_window_base) <execution_info>: Change type.
6661 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6662 case, and add assert.
6663 (tui_alloc_content): Add assert.
6665 2019-06-25 Tom Tromey <tom@tromey.com>
6667 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6668 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6669 * tui/tui-data.c (tui_alloc_win_info): Remove.
6671 2019-06-25 Tom Tromey <tom@tromey.com>
6673 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6674 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6677 2019-06-25 Tom Tromey <tom@tromey.com>
6679 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6680 make_visible_with_new_height method.
6681 (tui_win_info::make_visible_with_new_height): New method.
6682 (tui_source_window_base::do_make_visible_with_new_height)
6683 (tui_data_window::do_make_visible_with_new_height)
6684 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6685 (make_visible_with_new_height): Remove.
6686 (tui_resize_all, tui_adjust_win_heights): Use
6687 make_visible_with_new_height method.
6688 * tui/tui-data.h (struct tui_win_info)
6689 <do_make_visible_with_new_height, make_visible_with_new_height>:
6691 (struct tui_source_window_base, struct tui_data_window)
6692 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6695 2019-06-25 Tom Tromey <tom@tromey.com>
6697 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6699 (update_tab_width): Call update_tab_width method.
6700 * tui/tui-data.h (struct tui_win_info)
6701 (struct tui_source_window_base) <update_tab_width>: New methods.
6703 2019-06-25 Tom Tromey <tom@tromey.com>
6705 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6707 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6709 (tui_gen_win_info::make_visible): Update.
6710 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6712 * tui/tui-data.h (enum tui_box): New enum.
6713 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6715 2019-06-25 Tom Tromey <tom@tromey.com>
6717 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6718 init_and_make_win for EXEC_INFO_WIN.
6719 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6721 (struct tui_win_info) <~tui_win_info>: Inline.
6722 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6724 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6725 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6727 (tui_initialize_static_data): Update.
6728 (~tui_gen_win_info): Handle more cleanup here.
6729 (~tui_source_window_base): Delete "execution_info".
6730 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6732 2019-06-25 Tom Tromey <tom@tromey.com>
6734 * tui/tui-layout.c (make_command_window): Don't set
6736 (show_source_disasm_command): Call the reset method.
6737 (show_data): Don't set can_highlight. Call the reset method.
6738 (tui_gen_win_info::reset): Rename from init_gen_win_info
6739 (init_and_make_win): Simplify. Return tui_gen_win_info.
6740 (show_source_or_disasm_and_command): Call the reset method.
6741 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6742 (struct tui_cmd_window): Set can_highlight.
6744 2019-06-25 Tom Tromey <tom@tromey.com>
6746 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6748 (tui_make_visible, tui_make_invisible): Rewrite.
6749 (tui_win_info::make_visible): Remove.
6750 (tui_source_window_base::make_visible): Update.
6751 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6752 method. Moved from...
6753 (struct tui_win_info) <make_visible>: ...here.
6755 2019-06-25 Tom Tromey <tom@tromey.com>
6757 * tui/tui-winsource.c
6758 (tui_source_window_base::do_scroll_horizontal): Remove direction
6760 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6761 direction parameter.
6762 * tui/tui-win.c (tui_win_info::forward_scroll)
6763 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6764 (tui_win_info::right_scroll): Update.
6765 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6766 direction parameter.
6767 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6768 direction parameter.
6769 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6770 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6771 Remove direction parameter.
6772 (struct tui_source_window_base, struct tui_source_window)
6773 (struct tui_disasm_window, struct tui_data_window)
6774 (struct tui_cmd_window): Update.
6776 2019-06-25 Tom Tromey <tom@tromey.com>
6778 * tui/tui-winsource.h (tui_set_exec_info_content)
6779 (tui_show_exec_info_content, tui_erase_exec_info_content)
6780 (tui_clear_exec_info_content, tui_update_exec_info): Change
6781 argument to tui_source_window_base.
6782 * tui/tui-winsource.c (tui_set_exec_info_content)
6783 (tui_show_exec_info_content, tui_erase_exec_info_content)
6784 (tui_clear_exec_info_content, tui_update_exec_info): Change
6785 argument to tui_source_window_base.
6787 2019-06-25 Tom Tromey <tom@tromey.com>
6789 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6790 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6792 2019-06-25 Tom Tromey <tom@tromey.com>
6794 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6797 2019-06-25 Tom Tromey <tom@tromey.com>
6799 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6801 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6803 * tui/tui-source.c (tui_set_source_content): Update.
6804 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6806 2019-06-25 Tom Tromey <tom@tromey.com>
6808 * tui/tui-win.c (window_name_completer, tui_set_focus)
6809 (tui_all_windows_info): Use name method.
6810 * tui/tui-data.h (struct tui_gen_win_info)
6811 (struct tui_source_window, struct tui_disasm_window)
6812 (struct tui_data_window, struct tui_cmd_window) <name>: New
6814 (tui_win_name): Don't declare.
6815 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6816 (tui_win_name): Remove.
6818 2019-06-25 Tom Tromey <tom@tromey.com>
6820 * tui/tui-winsource.h (tui_update_source_window)
6821 (tui_update_source_window_as_is): Change parameter type.
6822 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6823 to be a tui_source_window_base.
6824 (tui_update_source_window_as_is): Likewise.
6825 * tui/tui-win.c (make_visible_with_new_height): Update.
6827 2019-06-25 Tom Tromey <tom@tromey.com>
6829 * tui/tui-winsource.c (tui_erase_source_content)
6830 (tui_show_source_content, tui_show_exec_info_content)
6831 (tui_erase_exec_info_content): Use refresh_window method.
6832 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6833 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6834 from tui_refresh_win.
6835 (tui_data_window::refresh_window): New method.
6836 (tui_win_info::refresh, tui_source_window_base::refresh)
6837 (tui_refresh_all): Use refresh_window method.
6838 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6840 * tui/tui-regs.c (tui_display_register): Call refresh_window
6842 * tui/tui-layout.c (show_source_disasm_command)
6843 (show_source_or_disasm_and_command): Call refresh_window method.
6844 * tui/tui-data.h (struct tui_gen_win_info)
6845 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6848 2019-06-25 Tom Tromey <tom@tromey.com>
6850 * tui/tui.c (tui_rl_other_window, tui_enable)
6851 (tui_is_window_visible, tui_get_command_dimension): Update.
6852 * tui/tui-winsource.c (tui_update_source_window_as_is)
6853 (tui_clear_source_content, tui_erase_source_content)
6854 (tui_show_source_line, tui_source_window_base::refill)
6855 (tui_source_window_base::do_scroll_horizontal)
6856 (tui_source_window_base::set_is_exec_point_at)
6857 (tui_update_breakpoint_info, tui_set_exec_info_content)
6858 (tui_alloc_source_buffer, tui_line_is_displayed)
6859 (tui_addr_is_displayed): Update.
6860 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6861 (tui_check_and_display_highlight_if_needed)
6862 (tui_win_info::make_visible, tui_win_info::refresh)
6863 (tui_refresh_all): Update.
6864 * tui/tui-windata.c (tui_first_data_item_displayed)
6865 (tui_delete_data_content_windows, tui_erase_data_content)
6866 (tui_display_all_data, tui_data_window::refresh_all)
6867 (tui_check_data_values): Update.
6868 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6869 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6870 (tui_win_info::backward_scroll, tui_refresh_all_win)
6871 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6872 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6873 (tui_source_window_base::set_new_height)
6874 (tui_data_window::set_new_height)
6875 (make_invisible_and_set_new_height)
6876 (make_visible_with_new_height, new_height_ok)
6877 (parse_scrolling_args): Update.
6878 * tui/tui-stack.c (tui_show_frame_info): Update.
6879 * tui/tui-source.c (tui_set_source_content)
6880 (tui_set_source_content_nil, tui_source_is_displayed)
6881 (tui_source_window::do_scroll_vertical): Update.
6882 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6883 (tui_display_registers_from, tui_display_reg_element_at_line)
6884 (tui_check_register_values, tui_reg_command): Update.
6885 * tui/tui-layout.c (tui_default_win_height)
6886 (show_source_disasm_command, show_data, init_and_make_win)
6887 (show_source_or_disasm_and_command): Update.
6888 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6889 (tui_redisplay_readline, tui_mld_flush)
6890 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6892 * tui/tui-disasm.c (tui_set_disassem_content)
6893 (tui_disasm_window::do_scroll_vertical): Update.
6894 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6896 (struct tui_win_info): Derive from tui_gen_win_info.
6897 <~tui_win_info>: Mark as override.
6898 <generic>: Remove member.
6899 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6900 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6901 (~tui_data_window, ~tui_win_info)
6902 (tui_free_all_source_wins_content): Update.
6903 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6905 2019-06-25 Tom Tromey <tom@tromey.com>
6907 * tui/tui-layout.c (init_and_make_win): Use new.
6908 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6909 destructor, initializers.
6910 (tui_alloc_generic_win_info): Don't declare.
6911 * tui/tui-data.c (_locator): Add argument to constructor.
6912 (source_win, disasm_win): New globals.
6913 (exec_info): Remove.
6914 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6916 (tui_alloc_generic_win_info): Remove.
6917 (init_content_element): Use new.
6918 (tui_win_info::tui_win_info): Update.
6919 (free_content_elements) <case DATA_WIN>: Use delete.
6921 2019-06-25 Tom Tromey <tom@tromey.com>
6923 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6924 * tui/tui-windata.c (tui_first_data_item_displayed)
6925 (tui_delete_data_content_windows): Update.
6926 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6927 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6928 (tui_display_registers_from, tui_check_register_values): Update.
6929 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6931 * tui/tui-data.c (init_content_element): Update. Allocate the new
6933 (tui_free_data_content): Update.
6934 (free_content_elements) <case DATA_WIN>: Free the window.
6936 2019-06-25 Tom Tromey <tom@tromey.com>
6938 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6940 * tui/tui-layout.c (make_command_window)
6941 (show_source_disasm_command, show_data, init_and_make_win)
6942 (show_source_or_disasm_and_command): Update.
6943 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6945 <can_highight, is_highlighted>: Now bool.
6946 (tui_set_win_highlight): Don't declare.
6947 * tui/tui-data.c (tui_set_win_highlight): Remove.
6949 2019-06-25 Tom Tromey <tom@tromey.com>
6951 * tui/tui-wingeneral.c (make_visible): Remove check of window
6954 2019-06-25 Tom Tromey <tom@tromey.com>
6956 * tui/tui-win.c (tui_win_info::max_height)
6957 (tui_cmd_window::max_height): New methods.
6958 (new_height_ok): Call max_height.
6959 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6960 <max_height>: New method.
6962 2019-06-25 Tom Tromey <tom@tromey.com>
6964 * tui/tui-win.c (tui_source_window_base::set_new_height)
6965 (tui_data_window::set_new_height): New methods.
6966 (make_invisible_and_set_new_height): Call set_new_height method.
6967 * tui/tui-data.h (struct tui_win_info)
6968 (struct tui_source_window_base, struct tui_data_window)
6969 <set_new_height>: New method.
6971 2019-06-25 Tom Tromey <tom@tromey.com>
6973 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6974 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6975 tui_refresh_data_win.
6976 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6978 (tui_refresh_all_win): Call the refresh_all method.
6979 (tui_set_focus): Likewise.
6980 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6981 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6984 2019-06-25 Tom Tromey <tom@tromey.com>
6986 * tui/tui-winsource.h (tui_refill_source_window)
6987 (tui_set_is_exec_point_at): Don't declare.
6988 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6989 (tui_source_window_base::refill): Rename from
6990 tui_refill_source_window.
6991 (tui_source_window_base::do_scroll_horizontal): Update.
6992 (tui_source_window_base::set_is_exec_point_at): Rename from
6993 tui_set_is_exec_point_at.
6994 (tui_update_all_breakpoint_info): Update.
6995 * tui/tui-stack.c (tui_show_frame_info): Update.
6996 * tui/tui-layout.c (show_data): Add cast.
6997 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6998 * tui/tui-data.h (struct tui_source_window_base) <refill,
6999 set_is_exec_point_at>: New methods.
7000 (tui_source_windows, tui_add_to_source_windows): Update types.
7001 (tui_add_to_source_windows): Remove redundant declaration.
7002 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7003 (tui_source_windows): Change return type.
7004 (tui_clear_source_windows_detail): Update.
7005 (tui_add_to_source_windows): Change type of parameter.
7006 (tui_free_all_source_wins_content): Update.
7008 2019-06-25 Tom Tromey <tom@tromey.com>
7010 * tui/tui-wingeneral.c (tui_win_info::refresh)
7011 (tui_source_window_base::refresh): New methods.
7012 (tui_refresh_all): Call the refresh method.
7013 * tui/tui-data.h (struct tui_win_info)
7014 (struct tui_source_window_base) <refresh>: New method.
7016 2019-06-25 Tom Tromey <tom@tromey.com>
7018 * tui/tui.h (tui_is_window_visible): Return bool.
7019 * tui/tui.c (tui_is_window_visible): Return bool.
7020 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7021 (tui_make_visible, tui_make_invisible)
7022 (tui_win_info::make_visible)
7023 (tui_source_window_base::make_visible, make_all_visible)
7024 (tui_make_all_visible, tui_make_all_invisible): Update.
7025 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7026 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7028 (struct tui_win_info, struct tui_source_window_base)
7029 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7030 * tui/tui-data.c (tui_init_generic_part): Update.
7032 2019-06-25 Tom Tromey <tom@tromey.com>
7034 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7035 (tui_source_window_base::make_visible): New methods.
7036 (make_all_visible): Make method call.
7037 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7038 (struct tui_source_window_base, struct tui_cmd_window): Override
7040 (tui_win_is_source_type): Don't declare.
7041 * tui/tui-data.c (tui_win_is_source_type): Remove.
7043 2019-06-25 Tom Tromey <tom@tromey.com>
7045 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7048 2019-06-25 Tom Tromey <tom@tromey.com>
7050 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7051 Inline constructor. Add initializers for members.
7052 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7053 constructors; now inline in class.
7055 2019-06-25 Tom Tromey <tom@tromey.com>
7057 * tui/tui-regs.c (tui_show_registers): Update.
7058 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7060 * tui/tui-data.c (tui_data_window::clear_detail)
7061 (tui_data_window): Update.
7063 2019-06-25 Tom Tromey <tom@tromey.com>
7065 * tui/tui-windata.c (tui_display_all_data)
7066 (tui_display_data_from_line, tui_display_data_from)
7067 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7069 * tui/tui-regs.c (tui_last_regs_line_no)
7070 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7071 (tui_show_registers, tui_show_register_group)
7072 (tui_display_registers_from, tui_display_reg_element_at_line)
7073 (tui_display_registers_from_line, tui_check_register_values)
7074 (tui_reg_next, tui_reg_prev): Update.
7075 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7076 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7078 (struct tui_win_info) <detail>: Remove. Add new fields from
7080 (TUI_DATA_WIN): Add cast.
7081 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7082 (~tui_data_window): Simplify.
7084 2019-06-25 Tom Tromey <tom@tromey.com>
7086 * tui/tui-layout.c (show_source_disasm_command)
7087 (show_source_or_disasm_and_command): Update.
7088 * tui/tui-io.c (update_cmdwin_start_line)
7089 (tui_redisplay_readline): Update.
7090 * tui/tui-data.h (struct tui_command_info): Remove.
7091 (struct tui_win_info) <detail>: Remove command_info member.
7092 (struct tui_data_window) <start_line>: New member, from
7094 (TUI_CMD_WIN): Add casts.
7096 2019-06-25 Tom Tromey <tom@tromey.com>
7098 * tui/tui-winsource.c (tui_update_source_window)
7099 (tui_refill_source_window)
7100 (tui_source_window_base::do_scroll_horizontal)
7101 (tui_update_breakpoint_info, tui_set_exec_info_content)
7102 (tui_show_exec_info_content, tui_erase_exec_info_content)
7103 (tui_clear_exec_info_content): Update.
7104 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7106 * tui/tui-win.c (make_invisible_and_set_new_height)
7107 (make_visible_with_new_height): Update.
7108 * tui/tui-source.c (tui_set_source_content)
7109 (tui_show_symtab_source): Update.
7110 * tui/tui-layout.c (extract_display_start_addr)
7111 (show_source_disasm_command, show_data)
7112 (make_source_or_disasm_window)
7113 (show_source_or_disasm_and_command): Update.
7114 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7115 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7117 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7118 to tui_source_window_base.
7119 (struct tui_win_info) <detail>: Remove source_info member.
7120 (struct tui_source_window_base) <has_locator>: Inline.
7121 Move contents from tui_source_info; rename has_locator member to
7123 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7124 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7126 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7128 (tui_free_all_source_wins_content): Cast to
7129 tui_source_window_base.
7131 2019-06-25 Tom Tromey <tom@tromey.com>
7133 * tui/tui-win.c (make_invisible_and_set_new_height)
7134 (make_visible_with_new_height): Call has_locator method.
7135 * tui/tui-layout.c (show_source_disasm_command, show_data)
7136 (show_source_or_disasm_and_command): Update for bool change.
7137 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7138 (tui_win_info) <has_locator>: New method.
7139 (struct tui_source_window_base) <has_locator>: New method.
7140 (tui_win_has_locator): Don't declare.
7141 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7142 from tui_win_has_locator.
7143 (tui_source_window_base): Use false, not FALSE.
7145 2019-06-25 Tom Tromey <tom@tromey.com>
7147 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7148 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7149 clear_detail method directly.
7150 (tui_clear_win_detail): Remove.
7152 2019-06-25 Tom Tromey <tom@tromey.com>
7154 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7155 "this", not TUI_DISASM_WIN.
7157 2019-06-25 Tom Tromey <tom@tromey.com>
7159 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7161 * tui/tui-winsource.c
7162 (tui_source_window_base::do_scroll_horizontal): Rename from
7163 tui_horizontal_source_scroll.
7164 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7165 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7166 from tui_vertical_data_scroll.
7167 * tui/tui-win.h (tui_scroll): Don't declare.
7168 * tui/tui-win.c (tui_win_info::forward_scroll)
7169 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7170 (tui_win_info::right_scroll): Rename and update.
7171 (tui_scroll_forward_command, tui_scroll_backward_command)
7172 (tui_scroll_left_command, tui_scroll_right_command): Update.
7173 (tui_scroll): Remove.
7174 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7175 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7176 from tui_vertical_source_scroll.
7177 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7178 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7179 from tui_vertical_disassem_scroll.
7180 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7181 do_scroll_horizontal>: New methods.
7182 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7184 (struct tui_source_window_base): Add do_scroll_horizontal.
7185 (struct tui_source_window, struct tui_disasm_window): Add
7187 (struct tui_data_window, struct tui_cmd_window): Add
7188 do_scroll_horizontal and do_scroll_vertical.
7189 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7191 2019-06-25 Tom Tromey <tom@tromey.com>
7193 * tui/tui-data.h (struct tui_source_window_base): New struct.
7194 (struct tui_source_window): Derive from tui_source_window_base.
7195 (struct tui_disasm_window): New struct.
7196 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7197 from tui_source_window::clear_detail.
7198 (tui_source_window_base): Rename from tui_source_window.
7199 (~tui_source_window_base): Rename from ~tui_source_window.
7200 (tui_alloc_win_info): Create a tui_disasm_window.
7202 2019-06-25 Tom Tromey <tom@tromey.com>
7204 * tui/tui-data.h (struct tui_source_window)
7205 (struct tui_data_window): Declare destructors.
7206 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7208 (tui_win_info): Simplify.
7210 2019-06-25 Tom Tromey <tom@tromey.com>
7212 * tui/tui-winsource.c (tui_display_main)
7213 (tui_update_source_windows_with_addr)
7214 (tui_update_all_breakpoint_info): Update.
7215 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7216 (new_height_ok, parse_scrolling_args): Update.
7217 * tui/tui-stack.c (tui_show_frame_info): Update.
7218 * tui/tui-data.h (struct tui_list): Remove.
7219 (tui_source_windows): Return a reference to a std::vector.
7220 * tui/tui-data.c (source_windows): Now a std::vector.
7221 (tui_source_windows): Change return type.
7222 (tui_clear_source_windows): Rewrite.
7223 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7224 (tui_free_all_source_wins_content): Rewrite.
7226 2019-06-25 Tom Tromey <tom@tromey.com>
7228 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7229 (struct tui_data_window, struct tui_cmd_window): Declare
7230 clear_detail method.
7231 * tui/tui-data.c (tui_source_window::clear_detail)
7232 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7234 (tui_clear_win_detail): Simplify.
7236 2019-06-25 Tom Tromey <tom@tromey.com>
7238 * tui/tui-layout.c (make_source_window, make_disasm_window)
7239 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7240 Return the new window.
7241 (show_source_disasm_command, show_data)
7242 (show_source_or_disasm_and_command): Update.
7244 2019-06-25 Tom Tromey <tom@tromey.com>
7246 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7247 parameter. Return the new window.
7248 (show_source_disasm_command): Update and remove NULL check.
7249 (show_source_or_disasm_and_command): Update.
7251 2019-06-25 Tom Tromey <tom@tromey.com>
7253 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7255 2019-06-25 Tom Tromey <tom@tromey.com>
7257 * tui/tui-data.h (struct tui_win_info): Make constructor
7258 protected. Make destructor virtual. Add initializers.
7259 (tui_source_window, tui_data_window, tui_cmd_window): New
7261 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7262 constructor. Add "type" parameter.
7263 (tui_source_window, tui_data_window, tui_cmd_window): New
7265 (tui_alloc_win_info): Instantiate the appropriate subclass.
7267 2019-06-25 Tom Tromey <tom@tromey.com>
7269 * tui/tui-win.c (tui_resize_all): Use delete.
7270 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7272 (tui_free_window): Don't declare.
7273 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7276 2019-06-25 Tom Tromey <tom@tromey.com>
7278 * tui/tui-data.h (struct tui_win_info): Add constructor.
7279 * tui/tui-data.c (tui_alloc_win_info): Use new.
7280 (tui_free_window): Use delete.
7282 2019-06-22 Tom Tromey <tom@tromey.com>
7284 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7286 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7288 2019-06-22 Tom Tromey <tom@tromey.com>
7290 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7292 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7294 2019-06-22 Tom de Vries <tdevries@suse.de>
7296 * dwarf2read.c (create_addrmap_from_aranges)
7297 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7300 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7302 * dwarf2read.h (dwarf2_section_info_def): Remove.
7303 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7304 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7305 std::vector<dwarf2_section_info>.
7306 (struct dwo_file) <~dwo_file>: Remove.
7307 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7309 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7310 (dwarf2_read_debug_names): Likewise.
7311 (create_debug_types_hash_table): Change parameter type to
7312 array_view, adjust code accordingly.
7313 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7314 (partial_die_info::fixup): Likewise.
7315 (determine_prefix): Likewise.
7316 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7318 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7320 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7322 <~dwo_file>: Remove call to gdb_bfd_unref.
7323 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7324 gdb_bfd_ref_ptr::get.
7326 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7328 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7330 * dwarf2read.c (struct dwo_file): Initialize fields.
7332 (free_dwo_file): Remove, move content to ~dwo_file.
7333 (struct dwo_file_deleter): Remove.
7334 (dwo_file_up>: Remove custom deleter.
7335 (free_dwo_files): Remove.
7336 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7338 (process_skeletonless_type_units): Call unique_ptr::get.
7339 (allocate_dwo_file_hash_table): Add deleter to created hash
7340 table. Change return type to htab_up.
7341 (lookup_dwo_file_slot): Don't memset dwo_file, call
7343 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7344 (create_dwo_unit_in_dwp_v2): Likewise.
7345 (open_and_init_dwo_file): Likewise.
7346 (free_dwo_file_from_slot): Remove.
7348 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7350 * dwarf2read.h (struct dwarf2_section_info) <readin,
7351 is_virtual>: Change type to bool.
7352 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7355 2019-06-19 Tom Tromey <tom@tromey.com>
7357 * tui/tui-data.h (tui_init_content_element): Don't declare.
7359 2019-06-19 Tom Tromey <tom@tromey.com>
7361 * tui/tui-data.h (tui_init_win_info): Don't declare.
7363 2019-06-19 Tom de Vries <tdevries@suse.de>
7365 * dwarf2read.h (abstract_to_concrete): Change type to
7366 std::unordered_map<sect_offset, std::vector<sect_offset>,
7367 gdb::hash_enum<sect_offset>>.
7369 2019-06-19 Tom Tromey <tromey@adacore.com>
7371 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7372 EVAL_AVOID_SIDE_EFFECTS specially.
7374 2019-06-19 Tom Tromey <tromey@adacore.com>
7376 * source-cache.c (highlighter): New global.
7377 (source_cache::get_source_lines): Create a highlighter on demand.
7379 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7381 * defs.h (deprecated_interactive_hook): Delete declaration.
7382 * interps.c (clear_interpreter_hooks): Remove use of
7383 deprecated_interactive_hook.
7384 * top.c (deprecated_interactive_hook): Delete definition.
7385 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7387 2019-06-18 Tom de Vries <tdevries@suse.de>
7390 * dwarf2read.h (abstract_to_concrete): Change type from
7391 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7392 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7393 * dwarf2read.c (read_variable): Update.
7394 (dwarf2_fetch_die_loc_sect_off): Update.
7396 2019-06-17 Tom de Vries <tdevries@suse.de>
7399 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7400 accessing parent[parent_len - 1].
7402 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7405 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7406 call dtrace_process_dof with NULL dof.
7408 2019-06-16 Tom de Vries <tdevries@suse.de>
7411 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7413 2019-06-16 Tom Tromey <tom@tromey.com>
7415 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7416 (make_all_visible): Use address of member.
7418 2019-06-16 Tom Tromey <tom@tromey.com>
7420 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7421 (tui_free_window, free_content, free_content_elements): Remove
7423 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7425 * tui/tui-regs.c (tui_show_register_group)
7426 (tui_display_registers_from, tui_display_reg_element_at_line):
7427 Remove unnecessary cast.
7429 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7431 * linux-nat.c (normal_mask): Delete.
7432 (_initialize_linux_nat): Don't initialise normal_mask.
7434 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7437 * dwarf-index-write.h (write_psymtabs_to_index): Add
7438 dwz_basename parameter.
7439 * dwarf-index-write.c (write_gdbindex): Move file writing to
7440 write_gdbindex_1. Change return type void.
7441 (assert_file_size): Move up, remove filename parameter.
7442 (write_gdbindex_1): New function.
7443 (write_debug_names): Change return type to void, call
7445 (struct index_wip_file): New struct.
7446 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7447 file logic to index_wip_file. Write index for dwz file if
7449 (save_gdb_index_command): Pass basename of dwz file, if present.
7450 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7451 build-id of dwz file, if present.
7452 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7453 (dwarf2_get_dwz_file): Likewise.
7454 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7455 (dwarf2_get_dwz_file): Likewise.
7457 2019-06-16 Tom Tromey <tom@tromey.com>
7459 * coffread.c (process_coff_symbol): Use xstrdup.
7460 * value.c (create_internalvar): Use xstrdup.
7462 2019-06-16 Tom Tromey <tom@tromey.com>
7464 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7465 * breakpoint.c (stopin_command, stopat_command)
7466 (until_break_command, decode_location_default): Remove unnecessary
7468 * utils.c (subset_compare): Remove unnecessary cast.
7469 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7471 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7473 * infcmd.c (path_command): Remove unnecessary cast.
7474 * coffread.c (decode_type): Remove unnecessary cast.
7475 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7476 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7477 * tui/tui-stack.c (tui_show_locator_content)
7478 (tui_show_frame_info): Remove unnecessary cast.
7479 * tui/tui-win.c (tui_scroll_forward_command)
7480 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7481 (parse_scrolling_args): Remove unnecessary cast.
7482 * tui/tui-data.c (init_win_info, tui_del_window)
7483 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7484 (free_content_elements): Remove unnecessary cast.
7485 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7487 * tui/tui-source.c (tui_set_source_content)
7488 (tui_vertical_source_scroll): Remove unnecessary cast.
7489 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7491 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7492 * tui/tui-regs.c (tui_display_registers_from)
7493 (tui_display_register): Remove unnecessary cast.
7494 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7495 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7496 (make_visible): Remove unnecessary cast.
7497 * tui/tui-winsource.c (tui_erase_source_content)
7498 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7500 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7501 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7502 * stabsread.c (read_type, read_array_type, read_range_type):
7503 Remove unnecessary cast.
7504 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7505 (parse_symbol, parse_type, upgrade_type, parse_external)
7506 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7508 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7510 2019-06-16 Tom Tromey <tom@tromey.com>
7512 * tui/tui-data.c (tui_alloc_generic_win_info)
7513 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7516 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7517 Andrew Burgess <andrew.burgess@embecosm.com>
7519 * f-typeprint.c (f_print_type): Don't return early for not
7520 associated or not allocated types.
7521 (f_type_print_varspec_suffix): Add print_rank parameter and print
7522 ranks of array types in case they dangling.
7523 (f_type_print_base): Add print_rank parameter.
7525 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7527 * NEWS: Mention new MI commands.
7528 * break-catch-throw.c (enum exception_event_kind): Move to
7530 (print_mention_exception_catchpoint): Output text as a single
7532 (catch_exception_command_1): Rename to...
7533 (catch_exception_event): ...this, make non-static, update header
7534 command, and change some parameter types.
7535 (catch_catch_command): Update for changes to
7536 catch_exception_command_1.
7537 (catch_throw_command): Likewise.
7538 (catch_rethrow_command): Likewise.
7539 * breakpoint.c (enum exception_event_kind): Delete.
7540 * breakpoint.h (enum exception_event_kind): Moved here from
7541 break-catch-throw.c.
7542 (catch_exception_event): Declare.
7543 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7544 (mi_cmd_catch_throw): New function.
7545 (mi_cmd_catch_rethrow): New function.
7546 (mi_cmd_catch_catch): New function.
7547 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7548 'catch-catch' entries.
7549 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7550 (mi_cmd_catch_rethrow): Declare.
7551 (mi_cmd_catch_catch): Declare.
7553 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7555 * annotate.c (annotate_source_line): Change return type to void,
7556 update implementation to match.
7557 * annotate.h (annotate_source_line): Change return type to void,
7558 update header comment.
7559 * stack.c (print_frame_info): Don't change what frame information
7560 is printed based on whether annotations are on or not.
7562 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7564 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7565 (annotate_source): Make static.
7566 (annotate_source_line): Moved from source.c and renamed from
7567 identify_source_line. Update the return type.
7568 * annotate.h (annotate_source): Delete declaration.
7569 (annotate_source_line): Declaration moved from source.h, and
7570 renamed from identify_source_line. Return type updated.
7571 * source.c (identify_source_line): Moved to annotate.c and renamed
7572 to annotate_source_line.
7573 (info_line_command): Remove check of annotation_level.
7574 * source.h (identify_source_line): Move declaration to annotate.h
7575 and rename to annotate_source_line.
7576 * stack.c: Add 'annotate.h' include.
7577 (print_frame_info): Remove check of annotation_level before
7578 calling annotate_source_line.
7580 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7582 * source-cache.c (source_cache::get_plain_source_lines): Use
7583 open_source_file_with_line_charpos instead of just
7584 open_source_file, remove call to find_source_lines.
7585 (source_cache::get_source_lines): Likewise.
7586 * source.c (find_source_lines): Make static.
7587 (get_filename_and_charpos): Renamed into...
7588 (open_source_file_with_line_charpos): ..this along with changes to
7589 return a scoped_fd, and some other minor clean ups.
7590 (identify_source_line): Use open_source_file_with_line_charpos.
7591 (search_command_helper): Use open_source_file_with_line_charpos
7592 instead of just open_source_file, remove call to
7594 * source.h (open_source_file_with_line_charpos): Declare new
7596 (find_source_lines): Delete declaration.
7598 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7600 * source.c (get_filename_and_charpos): Remove fullname
7602 (identify_source_line): Update call to get_filename_and_charpos.
7604 2019-06-14 Tom Tromey <tromey@adacore.com>
7607 * ui-style.h (skip_ansi_escape): Update comment.
7608 * ui-file.h (class no_terminal_escape_file): New class.
7609 * ui-file.c (no_terminal_escape_file::write)
7610 (no_terminal_escape_file::puts): New methods.
7611 * cli/cli-logging.c (handle_redirections): Use
7612 no_terminal_escape_file.
7614 2019-06-14 Tom Tromey <tromey@adacore.com>
7616 * NEWS: Move convenience variable news above Python news.
7618 2019-06-14 Tom Tromey <tom@tromey.com>
7620 * gnulib: Move directory to top-level.
7621 * configure.ac: Don't configure gnulib.
7622 * configure: Rebuild.
7623 * common/common-defs.h: Use new path to gnulib.
7624 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7626 (INCGNU): Look in new gnulib location.
7627 (HFILES_NO_SRCDIR): Remove gnulib files.
7628 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7629 (generated_files): Remove GNULIB_H.
7630 ($(LIBGNU), all-lib): Remove targets.
7631 (distclean): Don't mention GNULIB_BUILDDIR.
7632 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7634 2019-06-14 Tom Tromey <tromey@adacore.com>
7636 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7637 Warn if symbol file does not provide any symbols.
7639 2019-06-14 Tom Tromey <tromey@adacore.com>
7641 * source.c (find_and_open_source): Respect basenames_may_differ.
7643 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7645 * annotate.c (annotate_breakpoints_invalid): Make use of
7646 scoped_restore_terminal_state.
7647 (annotate_frames_invalid): Likewise.
7649 2019-06-14 Tom Tromey <tromey@adacore.com>
7651 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7652 allow assignment to an internalvar.
7654 2019-06-14 Tom Tromey <tromey@adacore.com>
7656 * ada-lex.l: Allow "_" in attribute names.
7658 2019-06-14 Tom Tromey <tromey@adacore.com>
7661 * regcache.c (registers_changed): Don't call alloca.
7662 * top.c (execute_command): Don't call alloca.
7664 2019-06-13 Pedro Alves <palves@redhat.com>
7666 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7667 'expression'. When parsing an expression, error out if there's
7668 junk after "unlimited".
7669 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7670 (do_set_command): Adjust calls to is_unlimited_literal.
7672 2019-06-13 Pedro Alves <palves@redhat.com>
7674 * compile/compile.c (make_compile_options_def_group): Add braces
7675 around array_view initializer.
7676 * thread.c (make_thread_apply_all_options_def_group)
7677 (make_thread_apply_all_options_def_group): Likewise.
7679 2019-06-13 Pedro Alves <palves@redhat.com>
7681 * NEWS (New commands): Mention "maint test-options
7682 require-delimiter", "maint test-options unknown-is-error", "maint
7683 test-options unknown-is-operand" and "maint show
7684 test-options-completion-result".
7685 (New command options, command completion): New section.
7686 (Completion improvements): New section.
7687 Mention that you can abbreviate "unlimited".
7689 2019-06-13 Pedro Alves <palves@redhat.com>
7691 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7692 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7693 * unittests/cli-utils-selftests.c (test_parse_flags)
7694 (test_parse_flags_qcs): Delete.
7695 (test_cli_utils): Don't call deleted functions.
7697 2019-06-13 Pedro Alves <palves@redhat.com>
7699 * thread.c: Include "cli/cli-option.h".
7700 (tp_array_compar_ascending): Global.
7701 (tp_array_compar): Delete function.
7702 (tp_array_compar_ascending, tp_array_compar_descending): New
7704 (ascending_option_def, qcs_flag_option_def)
7705 (thr_qcs_flags_option_defs)
7706 (make_thread_apply_all_options_def_group)
7707 (make_thread_apply_options_def_group): New.
7708 (thread_apply_all_command): Use gdb::option::process_options.
7709 (thread_apply_command_completer)
7710 (thread_apply_all_command_completer): New.
7711 (thread_apply_command): Use gdb::option::process_options.
7712 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7713 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7714 to generate help text of "thread apply". Adjust "taas"'s help.
7715 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7716 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7718 2019-06-13 Pedro Alves <palves@redhat.com>
7720 * thread.c (thread_apply_command): Check for invalid TID with
7721 isdigit instead of !isalpha.
7723 2019-06-13 Pedro Alves <palves@redhat.com>
7725 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7726 (validate_flags_qcs): New.
7727 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7728 (validate_flags_qcs): Declare.
7729 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7730 (make_frame_apply_options_def_group): New.
7731 (frame_apply_command_count): Process options with
7732 gdb::option::process_options.
7733 (frame_apply_completer): New.
7734 (frame_apply_level_completer, frame_apply_all_completer)
7735 (frame_apply_completer): New.
7736 (_initialize_stack): Update help of "frame apply", "frame apply
7737 level", "frame apply all" and "faas" to mention supported options
7738 and install command completers.
7739 * stack.h (frame_apply_all_completer): Declare.
7740 * thread.c: Include "stack.h".
7741 (tfaas_command): Add "--".
7742 (_initialize_thread): Update help "tfaas" to mention supported
7743 options and install command completer.
7745 2019-06-13 Pedro Alves <palves@redhat.com>
7747 * completer.c (complete_nested_command_line): New.
7748 (gdb_completion_word_break_characters_throw): Add assertion.
7749 * completer.h (complete_nested_command_line): Declare.
7751 2019-06-13 Pedro Alves <palves@redhat.com>
7753 * stack.c (parse_backtrace_qualifiers): New.
7754 (backtrace_command): Use it.
7755 (backtrace_command_completer): Complete on qualifiers.
7757 2019-06-13 Pedro Alves <palves@redhat.com>
7759 * frame.c: Include "cli/cli-option.h.
7760 (user_set_backtrace_options): New.
7761 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7763 (get_prev_frame): Adjust.
7764 (boolean_option_def, uinteger_option_def)
7765 (set_backtrace_option_defs): New.
7766 (_initialize_frame): Adjust and use
7767 gdb::option::add_setshow_cmds_for_options to install "set
7768 backtrace past-main" and "set backtrace past-entry".
7769 * frame.h: Include "cli/cli-option.h".
7770 (struct frame_print_options): Forward declare.
7771 (print_frame_arguments_all, print_frame_arguments_scalars)
7772 (print_frame_arguments_none): Declare.
7773 (print_entry_values): Delete declaration.
7774 (struct frame_print_options, user_frame_print_options): New.
7775 (struct set_backtrace_options): New.
7776 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7777 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7778 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7779 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7780 (list_args_or_locals): Add frame_print_options parameter.
7781 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7782 * python/py-framefilter.c (enumerate_args): Pass down
7783 USER_FRAME_PRINT_OPTIONS.
7784 * stack.c: Include "cli/cli-option.h".
7785 (print_frame_arguments_all, print_frame_arguments_scalars)
7786 (print_frame_arguments_none): Declare.
7787 (print_raw_frame_arguments, print_entry_values): Delete.
7788 (user_frame_print_options): New.
7789 (boolean_option_def, enum_option_def, frame_print_option_defs):
7791 (struct backtrace_cmd_options): New.
7792 (bt_flag_option_def): New.
7793 (backtrace_command_option_defs): New.
7794 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7795 (print_frame_arg, read_frame_arg, print_frame_args)
7796 (print_frame_info, print_frame): Add frame_print_options parameter
7798 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7799 (backtrace_command_1): Add frame_print_options and
7800 backtrace_cmd_options parameters and use them.
7801 (make_backtrace_options_def_group): New.
7802 (backtrace_command): Process command options with
7803 gdb::option::process_options.
7804 (backtrace_command_completer): New.
7805 (_initialize_stack): Extend "backtrace"'s help to mention
7806 supported options. Install completer for "backtrace".
7807 Install some settings commands with add_setshow_cmds_for_options.
7809 2019-06-13 Pedro Alves <palves@redhat.com>
7811 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7812 and that "set/show print raw frame-arguments" are now deprecated.
7814 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7816 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7817 * stack.c (_initialize_stack): Install "set/show print
7818 raw-frame-arguments", and deprecate "set/show print raw
7820 * valprint.c (_initialize_valprint): Deprecate "set/show print
7823 2019-06-13 Pedro Alves <palves@redhat.com>
7825 * compile/compile.c (struct compile_options): New.
7826 (compile_flag_option_def, compile_command_option_defs)
7827 (make_compile_options_def_group): New.
7828 (compile_file_command): Handle options with
7829 gdb::option::process_options.
7830 (compile_file_command_completer): New function.
7831 (compile_code_command): Handle options with
7832 gdb::option::process_options.
7833 (compile_code_command_completer): New function.
7834 (_initialize_compiler): Install completers for "compile code" and
7835 "compile file". Mention available options in "compile code" and
7836 "compile code"'s help.
7837 * completer.c (advance_to_completion_word): New, factored out from
7839 (advance_to_expression_complete_word_point): ... this.
7840 (advance_to_filename_complete_word_point): New.
7841 * completer.h (advance_to_filename_complete_word_point): New
7844 2019-06-13 Pedro Alves <palves@redhat.com>
7846 * compile/compile.c: Include "cli/cli-option.h".
7847 (compile_print_value): Scope data pointer is now a
7848 value_print_options pointer; adjust.
7849 (compile_print_command): Process options. Scope data pointer is
7850 now a value_print_options pointer; adjust.
7851 (_initialize_compile): Update "compile print"'s help to include
7852 supported options. Install a completer for "compile print".
7853 * cp-valprint.c (show_vtblprint, show_objectprint)
7854 (show_static_field_print): Delete.
7855 (_initialize_cp_valprint): Don't install "set print
7856 static-members", "set print vtbl", "set print object" here.
7857 * printcmd.c: Include "cli/cli-option.h" and
7858 "common/gdb_optional.h".
7859 (print_command_parse_format): Rework to fill in a
7860 value_print_options instead of a format_data.
7861 (print_value): Change parameter type from format_data pointer to
7862 value_print_options reference. Adjust.
7863 (print_command_1): Process options. Adjust to pass down a
7864 value_print_options.
7865 (print_command_completer): New.
7866 (_initialize_printcmd): Install print_command_completer as
7867 handle_brkchars completer for the "print" command. Update
7868 "print"'s help to include supported options.
7869 * valprint.c: Include "cli/cli-option.h".
7870 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7871 here from cp-valprint.c.
7872 (boolean_option_def, uinteger_option_def)
7873 (value_print_option_defs, make_value_print_options_def_group):
7874 New. Use gdb::option::add_setshow_cmds_for_options to install
7875 "set print elements", "set print null-stop", "set print repeats",
7876 "set print pretty", "set print union", "set print array", "set
7877 print address", "set print symbol", "set print array-indexes".
7878 * valprint.h: Include <string> and "cli/cli-option.h".
7879 (make_value_print_options_def_group): Declare.
7880 (print_value): Change parameter type from format_data pointer to
7881 value_print_options reference.
7882 (print_command_completer): Declare.
7884 2019-06-13 Pedro Alves <palves@redhat.com>
7886 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7887 (COMMON_SFILES): Add maint-test-settings.c.
7888 * cli/cli-decode.c (boolean_enums): New global, factored out from
7890 (add_setshow_boolean_cmd): ... here.
7891 * cli/cli-decode.h (boolean_enums): Declare.
7892 * cli/cli-option.c: New file.
7893 * cli/cli-option.h: New file.
7894 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7895 factored out from ...
7896 (parse_cli_boolean_value(const char *)): ... this.
7897 (is_unlimited_literal): Change parameter type to pointer to
7898 pointer. Adjust and advance ARG pointer.
7899 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7900 (parse_cli_var_enum): New, factored out from ...
7901 (do_set_command): ... this. Adjust.
7902 * cli/cli-setshow.h (parse_cli_boolean_value)
7903 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7904 (parse_cli_var_enum): Declare.
7905 * cli/cli-utils.c: Include "cli/cli-option.h".
7906 (get_ulongest): New.
7907 * cli/cli-utils.h (get_ulongest): Declare.
7908 (check_for_argument): New overloads.
7909 * maint-test-options.c: New file.
7911 2019-06-13 Pedro Alves <palves@redhat.com>
7913 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7914 parse a range if "-" is at the end of the string.
7916 2019-06-13 Pedro Alves <palves@redhat.com>
7918 * cli/cli-setshow.c (parse_auto_binary_operation)
7919 (parse_cli_boolean_value): Don't allow "o".
7921 2019-06-13 Pedro Alves <palves@redhat.com>
7923 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7924 * NEWS: Mention maint test-settings KIND.
7925 * maint-test-settings.c: New file.
7927 2019-06-13 Pedro Alves <palves@redhat.com>
7929 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7931 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7934 2019-06-13 Pedro Alves <palves@redhat.com>
7936 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7939 2019-06-13 Pedro Alves <palves@redhat.com>
7941 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7943 2019-06-13 Pedro Alves <palves@redhat.com>
7945 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7946 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7948 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7949 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7951 (check_for_argument): Skip spaces after argument.
7953 2019-06-13 Pedro Alves <palves@redhat.com>
7955 * thread.c (thread_apply_command): Adjust TID parsing.
7956 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7957 detected before end of string.
7958 (tid_is_in_list): Error out if LIST is invalid.
7960 2019-06-13 Pedro Alves <palves@redhat.com>
7962 * completer.c (complete_line_internal_1): Rewind completion word
7964 (completion_tracker::advance_custom_word_point_by): Change
7965 parameter type to int.
7966 * completer.h (completion_tracker::advance_custom_word_point_by):
7969 2019-06-13 Pedro Alves <palves@redhat.com>
7971 * completer.c (advance_to_completion_word): Handle delimiters.
7973 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7975 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7977 2019-06-11 Tom Tromey <tom@tromey.com>
7979 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7980 (xmalloc_failed): Move to alloc.c.
7981 * alloc.c: New file.
7982 * Makefile.in (COMMON_SFILES): Add alloc.c.
7984 2019-06-11 Tom Tromey <tom@tromey.com>
7986 * nat/linux-waitpid.c: Don't include server.h.
7987 (linux_debug): Remove.
7988 (my_waitpid): Update.
7990 2019-06-11 Tom Tromey <tromey@adacore.com>
7992 * infcall.c (_initialize_infcall): Remove trailing newline from
7994 * user-regs.c (_initialize_user_regs): Remove trailing newline
7996 * typeprint.c (_initialize_typeprint): Remove trailing newline
7998 * reverse.c (_initialize_reverse): Remove trailing newlines from
8000 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8002 * language.c (add_set_language_command): Remove trailing newline
8004 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8006 * disasm.c (_initialize_disasm): Remove trailing newline from
8008 * top.c (init_main): Remove trailing newline from help.
8009 * interps.c (_initialize_interpreter): Remove trailing newline
8011 * btrace.c (_initialize_btrace): Remove trailing newlines from
8013 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8015 * python/python.c (_initialize_python): Remove trailing newline
8017 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8019 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8020 from help. Reformat some text.
8021 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8023 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8026 2019-06-11 Tom Tromey <tromey@adacore.com>
8028 * darwin-nat.c (darwin_decode_exception_message)
8029 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8031 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8033 * valops.c (value_slice): Check for not allocated or not
8036 2019-06-10 Tom de Vries <tdevries@suse.de>
8039 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8040 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8043 2019-06-10 Tom de Vries <tdevries@suse.de>
8046 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8047 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8049 2019-06-10 Tom de Vries <tdevries@suse.de>
8052 * symtab.c (struct demangled_name_entry): Add language field.
8053 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8054 static minimal symbol". Set and use language field.
8056 2019-06-10 Tom Tromey <tromey@adacore.com>
8058 * ada-lang.c (_initialize_ada_language): Update help text.
8060 2019-06-10 Tom Tromey <tromey@adacore.com>
8062 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8064 * guile/guile.c (handle_boot_error): Don't end warning with a
8066 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8067 warning with a newline.
8068 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8070 (s12z_frame_cache): Likewise.
8071 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8073 * solib-svr4.c (disable_probes_interface): Don't end warning with
8075 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8077 * python/python.c (do_finish_initialization): Don't end warning
8080 2019-06-10 Tom Tromey <tom@tromey.com>
8082 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8083 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8086 2019-06-10 Tom Tromey <tromey@adacore.com>
8088 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8090 (elf_new_init): Don't call stabsread_new_init.
8091 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8092 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8093 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8095 2019-06-10 Tom de Vries <tdevries@suse.de>
8099 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8101 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8103 * source.c (find_and_open_source): Also rewrite relative file
8106 2019-04-26 Amos Bird <amosbird@gmail.com>
8108 * annotate.c (annotate_thread_exited): Add "thread-exited"
8111 2019-06-06 Tom Tromey <tromey@adacore.com>
8113 * maint.h (class scoped_command_stats): Use
8114 DISABLE_COPY_AND_ASSIGN.
8115 <print_time>: New method.
8116 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8118 (scoped_command_stats::print_time): New method.
8120 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8122 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8123 instructions of lengths 6 or 8 bytes.
8125 2019-06-04 Pedro Alves <palves@redhat.com>
8127 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8129 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8130 * breakpoint.c (condition_completer): Likewise.
8131 * cli/cli-dump.c (scan_expression): Likewise.
8132 * common/filestuff.c (mkdir_recursive): Likewise.
8133 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8134 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8135 (gdb_abspath): Likewise.
8136 * compile/compile-cplus-types.c
8137 (compile_cplus_instance::decl_name): Likewise.
8138 * completer.c (complete_explicit_location):
8139 (signal_completer, reg_or_group_completer_1): Likewise.
8140 * cp-support.c (cp_remove_params_if_any): Likewise.
8141 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8142 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8143 * infcmd.c (strip_bg_char): Likewise.
8144 * linespec.c (copy_token_string): Likewise.
8145 * mi/mi-main.c (output_cores): Likewise.
8146 * psymtab.c (psymtab_search_name):
8147 * symfile.c (test_set_ext_lang_command): Likewise.
8148 * target.c (target_fileio_read_stralloc): Likewise.
8149 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8150 * value.c (complete_internalvar): Likewise.
8152 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8154 Add objfile property to gdb.Type.
8155 * NEWS: Mention Python API addition.
8156 * python/py-type.c (typy_get_objfile): New method.
8158 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8160 * NEWS: Mention the new set|show style [title|highlight].
8161 Mention changes to "show style", "help" and "apropos".
8163 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8165 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8166 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8167 instead of print_help_for_command.
8168 (print_doc_of_command): New function.
8169 (help_list): Add 'apropos -v word' suggestion.
8170 (print_help_for_command): Style the command name using title style.
8171 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8172 (_initialize_cli_cmds): Describe -v in apropos_command help.
8174 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8176 * cli/cli-style.h (cli_style_option): Add name in constructor,
8177 add m_name class member, add constructor with intensity,
8178 add name class function.
8179 (cli_style_option::add_setshow_commands): Remove name argument.
8180 (highlight_style, title_style): New styles.
8181 * cli/cli-style.c (do_show): New function that shows a style
8182 characteristic styling the style name with itself.
8183 (set_style_name): New function.
8184 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8185 Update all callers according to the changes in cli/cli-style.h.
8186 * utils.h (fputs_highlighted): New function.
8187 * utils.c (fputs_highlighted): Likewise.
8189 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8191 * NEWS: Mention new pipe command and new convenience variables.
8193 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8195 * cli/cli-cmds.c (pipe_command): New function.
8196 (_initialize_cli_cmds): Call add_com for pipe_command.
8197 Define | as an alias for pipe.
8198 (exit_status_set_internal_vars): New function.
8199 (shell_escape): Call exit_status_set_internal_vars.
8200 cli/cli-decode.c (find_command_name_length): Recognize | as
8201 a single character command.
8203 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8205 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8206 top.c (execute_command_to_ui_file): New function, mostly a copy
8207 of execute_command_to_string.
8208 (execute_command_to_string): Implement by calling
8209 execute_command_to_ui_file.
8211 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8213 * top.h (saved_command_line): Remove declaration.
8214 * top.c (previous_saved_command_line, previous_repeat_arguments):
8216 (saved_command_line): Make static, define together with other
8218 (dont_repeat): Clear repeat_arguments.
8219 (repeat_previous, get_saved_command_line, save_command_line):
8221 (gdb_init): Initialize saved_command_line
8222 and previous_saved_command_line.
8223 * main.c (captured_main_1): Remove saved_command_line initialization.
8224 * event-top.c (handle_line_of_input): Update to use
8225 the new 'repeat' related functions instead of direct access to
8227 * command.h (repeat_previous, get_saved_command_line,
8228 save_command_line): New declarations.
8229 (dont_repeat): Add comment.
8231 2019-05-30 Tom Tromey <tromey@adacore.com>
8233 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8235 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8237 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8240 * completer.c (complete): Initialize variable word.
8242 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8244 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8245 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8246 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8247 'body' is NULL to the outter 'if', protecting the '!is_define'
8250 2019-05-29 Tom Tromey <tromey@adacore.com>
8252 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8253 (dwarf_unknown): New function.
8254 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8255 (dwarf_type_encoding_name): Use dwarf_unknown.
8257 2019-05-29 Tom Tromey <tromey@adacore.com>
8260 * cp-valprint.c (cp_print_value_fields): Call
8261 cp_print_static_field inside "try".
8263 2019-05-29 Tom Tromey <tromey@adacore.com>
8265 * inflow.c (struct terminal_info): Add default operator=.
8266 * configure: Rebuild.
8267 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8268 -Wdeprecated-copy-dtor, -Wredundant-move.
8270 2019-05-29 Tom Tromey <tromey@adacore.com>
8273 * infcmd.c (print_return_value_1): Handle finish_print
8275 (show_print_finish): New function.
8276 (_initialize_infcmd): Add "set/show print finish" commands.
8277 * valprint.c (user_print_options): Initialize new member.
8278 * valprint.h (struct value_print_options) <finish_print>: New
8281 2019-05-28 Tom Tromey <tromey@adacore.com>
8283 * ada-lang.c (ada_remove_Xbn_suffix)
8284 (find_old_style_renaming_symbol)
8285 (parse_old_style_renaming): Remove.
8286 (ada_find_renaming_symbol): Don't call
8287 find_old_style_renaming_symbol.
8288 (ada_is_renaming_symbol): Rename from
8289 ada_find_renaming_symbol. Remove "block" parameter. Return
8291 (ada_read_var_value): Update and simplify.
8292 * ada-exp.y (write_var_or_type): Remove old code.
8294 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8297 * event-top.c: Remove include comment.
8298 * inflow.c (class scoped_ignore_sigttou): Move from here...
8299 * inflow.h (class scoped_ignore_sigttou): ...to here.
8300 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8301 * top.c: Remove include comment.
8303 2019-05-27 Tom Tromey <tom@tromey.com>
8307 2019-05-22 Tom Tromey <tromey@adacore.com>
8309 * target.c (target_follow_exec): Constify parameter.
8310 * target-delegates.c: Rebuild.
8311 * remote.c (remote_target::follow_exec): Constify parameter.
8312 * infrun.c (follow_exec): Constify parameter.
8313 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8314 (target_follow_exec): Likewise.
8316 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8318 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8319 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8321 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8323 * NEWS: Add debugredirect and testsuite sections.
8325 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8327 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8328 target descriptions using exclusively floating point register name
8331 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8334 * f-lang.c (build_fortran_types): Handle the case where
8335 gdbarch_floatformat_for_type returns a nullptr.
8337 2019-05-21 Tom de Vries <tdevries@suse.de>
8340 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8342 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8345 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8347 * i386-tdep.c (i386_floatformat_for_type): Use
8348 floatformats_ia64_quad for the 16-byte floating point component
8349 within a fortran 32-byte complex number.
8351 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8353 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8354 delete default constructor.
8355 (find_partial_die): Update to return const struct.
8356 (partial_die_parent_scope): Move variable declaration into scope
8357 of its use and change its type to auto.
8358 (guess_partial_die_structure_name): Likewise.
8359 (partial_die_info::fixup): Likewise.
8361 2019-05-17 Tom Tromey <tromey@adacore.com>
8363 * source.c (find_and_open_source): Remove cast.
8365 2019-05-17 Tom Tromey <tromey@adacore.com>
8367 * annotate.c (annotate_source): Make "filename" const.
8368 * annotate.h (annotate_source): Use const.
8370 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8372 * disasm.c (set_disassembler_options): Send errors to stderr.
8374 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8376 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8377 (cli_interp_base::set_logging): Check debug_redirect.
8378 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8379 * cli/cli-logging.c (debug_redirect): Add static variable.
8380 (pop_output_files): Add default param.
8381 (handle_redirections): Print debug setting.
8382 (show_logging_command): Likewise.
8383 (_initialize_cli_logging): Add debugredirect command.
8384 * interps.c (current_interp_set_logging): Add debug_redirect
8386 * interps.h (set_logging): Add debug_redirect parameter.
8387 (current_interp_set_logging): Likewise.
8388 * mi/mi-common.h: Likewise.
8389 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8391 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8392 Tom Tromey <tromey@adacore.com>
8394 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8396 * cli/cli-interp.h (make_logging_output): Remove declaration.
8397 * cli/cli-logging.c (make_logging_output): Remove function.
8398 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8400 * ui-file.c (tee_file::tee_file): Remove bools.
8401 (tee_file::~tee_file): Remove deletes.
8402 * ui-file.h (tee_file): Remove bools.
8404 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8406 * mi/mi-cmds.h (mi_cmd_complete): New function.
8407 * mi/mi-main.c (mi_cmd_complete): Likewise.
8408 * mi/mi-cmds.c: Define new MI command -complete.
8409 * NEWS: Mention new -complete command.
8411 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8413 * completer.h (complete): New function.
8414 * completer.c (complete): Likewise.
8415 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8416 function defined in completer.h.
8418 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8420 * MAINTAINERS (Write After Approval): Add myself.
8422 2019-05-17 Tom de Vries <tdevries@suse.de>
8425 * dwarf2read.c (struct cu_partial_die_info): New struct.
8426 (find_partial_die): Return cu_partial_die_info.
8427 (partial_die_parent_scope, guess_partial_die_structure_name)
8428 (partial_die_info::fixup): Handle new return type of find_partial_die.
8430 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8432 PR breakpoints/24541
8433 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8434 "std::string", simplifying the algorithm.
8436 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8438 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8439 (stap_static_probe_ops::get_probes): Likewise.
8441 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8443 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8444 '-')" and "else if".
8445 (stap_parse_single_operand): Join checks for
8446 "gdbarch_stap_parse_special_token_p" and
8447 "gdbarch_stap_parse_special_token" in the same "if" statement.
8448 Invert check when verifying for operation on register
8451 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8453 * stap-probe.c (stap_get_opcode): Update comment.
8454 (stap_get_expected_argument_type): Likewise.
8455 (handle_stap_probe): Likewise.
8457 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8459 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8460 return type to 'bool'. Adjust comment. Use 'bool' when
8462 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8463 * stap-probe.c (stap_parse_argument_1): Likewise.
8464 (stap_is_operator): Likewise.
8465 (stap_is_generic_prefix): Likewise.
8466 (stap_is_register_prefix): Likewise.
8467 (stap_is_register_indirection_prefix): Likewise.
8468 (stap_is_integer_prefix): Likewise.
8469 (stap_generic_check_suffix): Likewise.
8470 (stap_check_integer_suffix): Likewise.
8471 (stap_check_register_suffix): Likewise.
8472 (stap_check_register_indirection_suffix): Likewise.
8473 (stap_parse_register_operand): Likewise.
8474 (stap_parse_single_operand): Likewise.
8475 (stap_parse_argument_1): Likewise.
8476 (stap_probe::get_argument_count): Likewise.
8477 (stap_is_operator): Likewise.
8479 2019-05-16 Tom Tromey <tromey@adacore.com>
8481 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8484 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8486 * linux-thread-db.c (try_thread_db_load_1): Change return type
8488 (try_thread_db_load): Likewise.
8489 (try_thread_db_load_from_pdir_1): Likewise.
8490 (try_thread_db_load_from_pdir): Likewise.
8491 (try_thread_db_load_from_sdir): Likewise.
8492 (try_thread_db_load_from_dir): Likewise.
8493 (thread_db_load_search): Likewise.
8494 (has_libpthread): Likewise.
8495 (thread_db_load): Likewise.
8497 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8499 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8500 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8501 NULL, and complain/return if that's the case.
8503 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8505 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8506 (advance, posn, abstract_read_memory): New functions.
8507 [struct mem_read_abstraction]: New struct.
8508 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8510 2019-05-14 Tom Tromey <tromey@adacore.com>
8512 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8513 value is not lval_memory.
8515 2019-05-14 Tom Tromey <tromey@adacore.com>
8517 * solib.c (info_sharedlibrary_command): Style the file name.
8519 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8521 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8522 (aarch64_vnv_type): Likewise.
8523 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8524 * common/tdesc.c: Likewise.
8525 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8526 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8527 * features/aarch64-fpu.xml: Add ieee half view.
8528 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8529 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8530 * gdbtypes.h (struct builtin_type): Likewise.
8531 (struct objfile_type): Likewise.
8533 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8535 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8537 * location.h (string_to_event_location): Likewise.
8539 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8543 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8545 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8546 New variable declaration.
8547 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8549 (print_one_breakpoint): Use ui_out::test_flags and new global
8550 variable to compute use_fixed_output.
8551 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8553 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8554 (mi_multi_location_breakpoint_output_fixed): Remove.
8555 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8557 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8558 fix_multi_location_breakpoint_output flag if version >= 3.
8559 * ui-out.h (enum ui_out_flag)
8560 <fix_multi_location_breakpoint_output>: New enumerator.
8562 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8564 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8566 2019-05-10 Tom Tromey <tromey@adacore.com>
8568 * ada-lang.c (catch_ada_completer): New function.
8569 (_initialize_ada_language): Use it.
8571 2019-05-10 Tom Tromey <tromey@adacore.com>
8573 * thread.c (print_thread_info): Make "requested_threads" const.
8574 * gdbthread.h (print_thread_info): Make "requested_threads"
8576 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8577 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8579 2019-05-08 Tom Tromey <tom@tromey.com>
8581 * gdbtypes.c (objfile_type_data): Change type.
8582 (objfile_type, _initialize_gdbtypes): Update.
8584 2019-05-08 Tom Tromey <tom@tromey.com>
8586 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8587 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8588 (_initialize_dwarf2_frame): Update.
8590 2019-05-08 Tom Tromey <tom@tromey.com>
8592 * objc-lang.c (objc_objfile_data): Change type.
8593 (find_methods): Update.
8594 (_initialize_objc_lang): Remove.
8596 2019-05-08 Tom Tromey <tom@tromey.com>
8598 * stabsread.c (rs6000_builtin_type_data): Change type.
8599 (rs6000_builtin_type, _initialize_stabsread): Update.
8601 2019-05-08 Tom Tromey <tom@tromey.com>
8603 * mips-tdep.c (mips_pdr_data): Remove.
8604 (_initialize_mips_tdep): Update.
8606 2019-05-08 Tom Tromey <tom@tromey.com>
8608 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8609 (hppa_init_objfile_priv_data, read_unwind_info)
8610 (find_unwind_entry, _initialize_hppa_tdep): Update.
8612 2019-05-08 Tom Tromey <tom@tromey.com>
8614 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8615 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8617 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8619 2019-05-08 Tom Tromey <tom@tromey.com>
8621 * mdebugread.c (basic_type_data): Change type.
8622 (basic_type, _initialize_mdebugread): Update.
8624 2019-05-08 Tom Tromey <tom@tromey.com>
8626 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8628 2019-05-08 Tom Tromey <tom@tromey.com>
8630 * nto-tdep.c (nto_inferior_data_reg): Change type.
8631 (nto_inferior_data): Update.
8632 (nto_inferior_data_cleanup, nto_new_inferior_data)
8633 (_initialize_nto_tdep): Remove.
8634 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8636 2019-05-08 Tom Tromey <tom@tromey.com>
8638 * ada-lang.c (struct ada_inferior_data): Add initializers.
8639 (ada_inferior_data): Change type.
8640 (ada_inferior_data_cleanup): Remove.
8641 (get_ada_inferior_data, ada_inferior_exit)
8642 (struct ada_pspace_data): Add initializers, destructor.
8643 (ada_pspace_data_handle): Change type.
8644 (get_ada_pspace_data): Update.
8645 (ada_pspace_data_cleanup): Remove.
8647 2019-05-08 Tom Tromey <tom@tromey.com>
8649 * coffread.c (struct coff_symfile_info): Add initializers.
8650 (coff_objfile_data_key): Move lower. Change type.
8651 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8653 (coff_free_info): Remove.
8655 2019-05-08 Tom Tromey <tom@tromey.com>
8657 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8658 (fbsd_pspace_data_handle): Move lower. Change type.
8659 (get_fbsd_pspace_data): Update.
8660 (fbsd_pspace_data_cleanup): Remove.
8661 (_initialize_fbsd_tdep): Update.
8663 2019-05-08 Tom Tromey <tom@tromey.com>
8665 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8666 (get_ada_tasks_pspace_data): Update.
8667 (ada_tasks_pspace_data_cleanup): Remove.
8668 (_initialize_tasks): Update.
8669 (ada_tasks_inferior_data_handle): Change type.
8670 (get_ada_tasks_inferior_data): Update.
8671 (ada_tasks_inferior_data_cleanup): Remove.
8672 (struct ada_tasks_pspace_data): Add initializers.
8674 2019-05-08 Tom Tromey <tom@tromey.com>
8676 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8677 * symfile-debug.c (debug_sym_get_probes): Change type.
8678 * stap-probe.c (handle_stap_probe):
8679 (stap_static_probe_ops::get_probes): Change type.
8680 * probe.h (class static_probe_ops) <get_probes>: Change type.
8681 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8682 (parse_probes_in_pspace): Update.
8683 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8685 (any_static_probe_ops::get_probes): Change type.
8686 * elfread.c (elfread_data): New typedef.
8687 (probe_key): Change type.
8688 (elf_get_probes): Likewise. Update.
8689 (probe_key_free): Remove.
8690 (_initialize_elfread): Update.
8691 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8693 (dtrace_process_dof_probe, dtrace_process_dof)
8694 (dtrace_static_probe_ops::get_probe): Change type.
8696 2019-05-08 Tom Tromey <tom@tromey.com>
8698 * xcoffread.c (struct xcoff_symfile_info): Rename from
8699 coff_symfile_info. Add initializers.
8700 (xcoff_objfile_data_key): Move lower. Change type.
8701 (XCOFF_DATA): Rewrite.
8702 (xcoff_free_info): Remove.
8703 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8704 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8705 (xcoff_initial_scan): Update.
8707 2019-05-08 Tom Tromey <tom@tromey.com>
8709 * solib-svr4.c (struct svr4_info): Add initializers and
8711 <probes_table>: Now an htab_up.
8712 (solib_svr4_pspace_data): Change type.
8713 (free_probes_table): Simplify.
8714 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8715 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8716 (probes_table_remove_objfile_probes, register_solib_event_probe)
8717 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8718 (_initialize_svr4_solib): Update.
8720 2019-05-08 Tom Tromey <tom@tromey.com>
8722 * remote.c (remote_pspace_data): Change type.
8723 (remote_pspace_data_cleanup): Remove.
8724 (get_remote_exec_file, set_pspace_remote_exec_file)
8725 (_initialize_remote): Update.
8727 2019-05-08 Tom Tromey <tom@tromey.com>
8729 * breakpoint.c (breakpoint_objfile_key): Change type.
8730 (get_breakpoint_objfile_data): Update.
8731 (free_breakpoint_objfile_data): Remove.
8732 (_initialize_breakpoint): Update.
8734 2019-05-08 Tom Tromey <tom@tromey.com>
8736 * linux-tdep.c (struct linux_info): Add initializers.
8737 (linux_inferior_data): Move. Change type.
8738 (invalidate_linux_cache_inf): Update.
8739 (linux_inferior_data_cleanup): Remove.
8740 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8742 2019-05-08 Tom Tromey <tom@tromey.com>
8744 * auxv.c (auxv_inferior_data): Move. Change type.
8745 (auxv_inferior_data_cleanup): Remove.
8746 (invalidate_auxv_cache_inf): Rewrite.
8747 (get_auxv_inferior_data, _initialize_auxv): Update.
8749 2019-05-08 Tom Tromey <tom@tromey.com>
8751 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8752 (symfile_debug_objfile_data_key): Change type.
8753 (symfile_debug_installed, debug_qf_has_symbols)
8754 (debug_qf_find_last_source_symtab)
8755 (debug_qf_forget_cached_source_info)
8756 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8757 (debug_qf_print_stats, debug_qf_dump)
8758 (debug_qf_expand_symtabs_for_function)
8759 (debug_qf_expand_all_symtabs)
8760 (debug_qf_expand_symtabs_with_fullname)
8761 (debug_qf_map_matching_symbols)
8762 (debug_qf_expand_symtabs_matching)
8763 (debug_qf_find_pc_sect_compunit_symtab)
8764 (debug_qf_map_symbol_filenames)
8765 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8766 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8767 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8768 (debug_sym_read_linetable, debug_sym_relocate): Update.
8769 (symfile_debug_free_objfile): Remove.
8770 (install_symfile_debug_logging, _initialize_symfile_debug):
8773 2019-05-08 Tom Tromey <tom@tromey.com>
8775 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8776 allocate_on_obstack.
8777 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8778 (get_dwarf2_per_objfile): Update.
8779 (set_dwarf2_per_objfile): Remove.
8780 (dwarf2_has_info, dwarf2_get_section_info): Update.
8781 (dwarf2_free_objfile): Remove.
8782 (_initialize_dwarf2_read): Update.
8784 2019-05-08 Tom Tromey <tom@tromey.com>
8786 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8788 <unsupported_script_warning_printed,
8789 script_not_found_warning_printed>: Now bool.
8790 (auto_load_pspace_data): Change type.
8791 (~auto_load_pspace_info): Rename from
8792 auto_load_pspace_data_cleanup.
8793 (get_auto_load_pspace_data, init_loaded_scripts_info)
8794 (clear_section_scripts, maybe_print_unsupported_script_warning)
8795 (maybe_print_script_not_found_warning, _initialize_auto_load):
8798 2019-05-08 Tom Tromey <tom@tromey.com>
8800 * objfiles.c (objfile_pspace_info): Add destructor and
8802 (objfiles_pspace_data): Change type.
8803 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8804 (get_objfile_pspace_data): Update.
8805 (objfiles_bfd_data): Change type.
8806 (get_objfile_bfd_data): Update.
8807 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8809 2019-05-08 Tom Tromey <tom@tromey.com>
8811 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8813 (get_catch_syscall_inferior_data): Update.
8814 (catch_syscall_inferior_data_cleanup): Remove.
8815 (_initialize_break_catch_syscall): Update.
8817 2019-05-08 Tom Tromey <tom@tromey.com>
8819 * inflow.c (struct terminal_info): Add destructor and
8821 (inflow_inferior_data): Change type.
8822 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8823 (get_inflow_inferior_data, inflow_inferior_exit)
8824 (swap_terminal_info, _initialize_inflow): Update.
8826 2019-05-08 Tom Tromey <tom@tromey.com>
8828 * target-dcache.c (target_dcache_cleanup): Remove.
8829 (target_dcache_aspace_key): Change type.
8830 (target_dcache_init_p, target_dcache_invalidate)
8831 (target_dcache_get, target_dcache_get_or_init)
8832 (_initialize_target_dcache): Update.
8833 * dcache.h (struct dcache_deleter): New.
8835 2019-05-08 Tom Tromey <tom@tromey.com>
8837 * symtab.c (struct symbol_cache): Add destructor and
8839 (symbol_cache_key): Move. Change type.
8840 (make_symbol_cache, free_symbol_cache): Remove.
8841 (get_symbol_cache): Update.
8842 (symbol_cache_cleanup): Remove.
8843 (ALL_PSPACES, symbol_cache_flush)
8844 (maintenance_print_symbol_cache)
8845 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8848 2019-05-08 Tom Tromey <tom@tromey.com>
8850 * symtab.c (struct main_info): Add destructor and initializers.
8851 (main_progspace_key): Move. Change type.
8852 (get_main_info): Update.
8853 (main_info_cleanup): Remove.
8854 (_initialize_symtab): Update.
8856 2019-05-08 Tom Tromey <tom@tromey.com>
8858 * registry.h (DECLARE_REGISTRY): Define the _key class.
8860 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8862 * NEWS: Merge two 'New commands' sections.
8864 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8866 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8867 parameter and use Ada language definition instead.
8868 (ada_val_print_ptr): Remove unused language parameter.
8869 (ada_val_print_num): Remove language parameter and use Ada language
8871 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8873 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8874 parameter and use Ada language definition instead.
8875 (ada_val_print_1): Update all ada_val_print_xxx calls.
8876 Remove language parameter.
8877 (ada_val_print): Update ada_val_print_1 call.
8879 2019-05-08 Tom Tromey <tromey@adacore.com>
8881 * remote.c (remote_hw_watchpoint_limit)
8882 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8885 2019-05-08 Tom Tromey <tromey@adacore.com>
8887 * maint.c (_initialize_maint_cmds): Move initialization code to
8889 (watchdog, show_watchdog): Move to remote.c.
8890 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8892 (_initialize_remote): Move initialization code from maint.c.
8893 * defs.h (watchdog): Don't declare.
8895 2019-05-08 Tom Tromey <tromey@adacore.com>
8897 * tui/tui-interp.c: Include main.h.
8898 * interps.c: Include main.h.
8899 * main.h (interpreter_p): Declare.
8900 * defs.h (interpreter_p): Don't declare.
8902 2019-05-08 Tom Tromey <tromey@adacore.com>
8904 * dwarf2loc.c: Include dwarf2read.h.
8905 * defs.h (read_unsigned_leb128): Don't declare.
8906 * dwarf2read.h (read_unsigned_leb128): Declare.
8908 2019-05-08 Tom Tromey <tromey@adacore.com>
8910 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8913 2019-05-08 Tom Tromey <tromey@adacore.com>
8915 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8916 when no wrap column is set.
8918 2019-05-08 Tom Tromey <tromey@adacore.com>
8920 * c-lang.c (c_get_string): Handle non-C-style arrays.
8922 2019-05-08 Tom Tromey <tromey@adacore.com>
8924 * typeprint.c (print_offset_data::update): Print the bit offset,
8925 not the number of bits remaining.
8927 2019-05-08 Tom Tromey <tromey@adacore.com>
8929 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8930 padding at end of comment.
8932 2019-05-08 Tom Tromey <tromey@adacore.com>
8934 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8937 2019-05-06 Tom Tromey <tom@tromey.com>
8939 * common/scoped_mmap.c: Include common-defs.h.
8940 * common/scoped_mmap.h: Don't include config.h.
8942 2019-05-04 Tom Tromey <tom@tromey.com>
8944 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8945 (struct aarch64_call_info): Add initializers.
8946 <si>: Now a std::vector.
8947 (pass_on_stack, aarch64_push_dummy_call): Update.
8949 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8950 Tom Tromey <tom@tromey.com>
8952 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8953 (ppc_threads): Now a std::vector. Now static.
8954 (hwdebug_find_thread_points_by_tid)
8955 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8958 2019-05-04 Tom Tromey <tom@tromey.com>
8960 * arc-tdep.c (arc_tdesc_init): Return bool.
8962 2019-05-04 Tom Tromey <tom@tromey.com>
8964 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8965 Use gdb_assert_not_reached.
8967 2019-05-04 Tom Tromey <tom@tromey.com>
8969 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8972 2019-05-04 Tom Tromey <tom@tromey.com>
8974 * arc-tdep.c (arc_tdesc_init): Use bool.
8976 2019-05-04 Tom Tromey <tom@tromey.com>
8978 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8980 2019-05-04 Tom Tromey <tom@tromey.com>
8982 * cli/cli-cmds.c (valid_command_p): Return bool.
8984 2019-05-04 Tom Tromey <tom@tromey.com>
8986 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8987 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8989 2019-05-04 Raul Tambre <raul@tambre.ee>
8991 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8992 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8993 operator for comparison.
8995 2019-05-04 Tom Tromey <tom@tromey.com>
8997 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8998 (lookup_partial_symbol, print_partial_symbols)
8999 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9000 (psymbol_compare): Update.
9001 (add_psymbol_to_bcache): Clear the entire psymbol.
9002 (maintenance_check_psymtabs): Update.
9003 * psympriv.h (struct partial_symbol): Don't derive from
9004 general_symbol_info.
9005 <obj_section, unrelocated_address, address,
9006 set_unrelocated_address>: Update.
9007 <ginfo>: New member.
9008 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9009 (debug_names::write_psymbols): Update.
9011 2019-05-04 Tom de Vries <tdevries@suse.de>
9013 * contrib/cc-with-tweaks.sh: Support -n arg.
9015 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9017 * corelow.c (core_target::detach): Ensure frame cache and
9018 register caches are cleared.
9019 inferior.c (exit_inferior_1): Likewise.
9021 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9022 Tom Tromey <tom@tromey.com>
9024 * dictionary.c (collate_pending_symbols_by_language): Remove
9025 "struct" from foreach.
9026 * symtab.c (lookup_global_symbol_from_objfile)
9027 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9029 * ser-tcp.c (net_open): Remove "struct" from foreach.
9030 * objfiles.c (objfile_relocate, objfile_rebase)
9031 (objfile_has_symbols): Remove "struct" from foreach.
9032 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9034 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9036 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9037 "struct" from foreach.
9038 * ada-lang.c (create_excep_cond_exprs)
9039 (ada_exception_catchpoint_cond_string): Remove "struct" from
9042 2019-05-03 Tom Tromey <tromey@adacore.com>
9044 * ada-exp.y (convert_char_literal): Check suffix of each
9047 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9050 * ada-exp.y (yywrap): Don't define.
9051 * ada-lex.l (%option): Add noyywrap
9054 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9056 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9057 _WIN32_WINNT to the XP level, unless already defined to a higher
9060 * unittests/parse-connection-spec-selftests.c:
9062 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9065 * symfile.c (find_separate_debug_file): Remove colon from the
9066 drive spec of DOS/Windows file names of the target, so that the
9067 file name produced from DEBUGDIR and the target's directory will
9068 be valid on DOS/Windows systems.
9070 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9072 * rust-lang.c (val_print_struct): Handle printing structures
9075 2019-05-02 Tom Tromey <tromey@adacore.com>
9077 * valarith.c (_initialize_valarith): Remove.
9079 2019-05-01 Tom Tromey <tromey@adacore.com>
9081 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9084 2019-05-01 Tom Tromey <tromey@adacore.com>
9086 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9087 for big-endian copies.
9089 2019-04-30 Ali Tamur <tamur@google.com>
9090 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9091 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9092 (read_3_bytes): New function.
9094 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9096 * windows-nat.c (main_thread_id): Delete.
9097 (handle_output_debug_string): Replace main_thread_id by
9098 current_event.dwThreadId.
9099 (fake_create_process): Likewise.
9100 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9101 Do not set main_thread_id.
9102 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9103 current_event.dwThreadId.
9104 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9106 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9108 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9109 Use current_event.dwThreadId instead of main_thread_id.
9111 2019-04-30 Tom Tromey <tromey@adacore.com>
9113 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9114 (create_excep_cond_exprs): Iterate over program spaces.
9115 (ada_exception_catchpoint_cond_string): Examine all minimal
9116 symbols for exception types.
9118 2019-04-30 Tom Tromey <tromey@adacore.com>
9121 * dwarf2read.c (process_structure_scope): Handle case where type
9122 has template parameters but no symbol was created.
9124 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9125 Chris January <chris.january@arm.com>
9127 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9129 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9131 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9133 * f-typeprint.c (f_print_type): Update rules for printing
9135 (f_type_print_varspec_suffix): Likewise.
9137 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9138 Chris January <chris.january@arm.com>
9140 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9143 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9145 * f-lang.c (build_fortran_types): Change name of void type to
9147 * f-typeprint.c (f_type_print_base): Print the name of the void
9148 type, rather than a fixed string.
9149 * f-valprint.c (f_decorations): Use lower case void string.
9151 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9152 Chris January <chris.january@arm.com>
9154 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9157 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9158 Chris January <chris.january@arm.com>
9159 David Lecomber <david.lecomber@arm.com>
9161 * f-exp.y (BINOP_INTRINSIC): New token.
9162 (exp): New parser rule handling BINOP_INTRINSIC.
9163 (f77_keywords): Add new builtin procedures.
9164 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9165 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9166 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9167 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9168 (print_unop_subexp_f): New function.
9169 (print_binop_subexp_f): New function.
9170 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9171 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9172 (dump_subexp_body_f): Likewise.
9173 (operator_check_f): Likewise.
9174 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9175 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9177 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9179 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9181 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9182 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9183 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9184 (operator_length_f): New fuction.
9185 (print_subexp_f): New function.
9186 (op_name_f): New function.
9187 (dump_subexp_body_f): New function.
9188 (operator_check_f): New function.
9189 (exp_descriptor_f): Replace standard expression handling functions
9191 * gdb/fortran-operator.def: New file.
9192 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9193 * gdb/std-operator.def: Remove UNOP_KIND.
9195 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9197 * std-operator.def: Remove unbalanced, stray double quote
9200 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9201 Chris January <chris.january@arm.com>
9202 Daniel Everett <daniel.everett@arm.com>
9203 Nick Forrington <nick.forrington@arm.com>
9204 Richard Bunt <richard.bunt@arm.com>
9206 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9207 of depth when printing anonymous structs or unions.
9208 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9209 Don't print either the top-level value, or the children if the
9210 max-depth is exceeded.
9211 (ppscm_print_children): When printing the key of a map, allow one
9212 extra level of depth.
9213 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9214 print either the top-level value, or the children if the max-depth
9216 (print_children): When printing the key of a map, allow one extra
9218 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9219 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9220 (user_print_options): Initialise max_depth field.
9221 (val_print_scalar_or_string_type_p): New function.
9222 (val_print): Check to see if the max depth has been reached.
9223 (val_print_check_max_depth): Define new function.
9224 (show_print_max_depth): New function.
9225 (_initialize_valprint): Add 'print max-depth' option.
9226 * valprint.h (struct value_print_options) <max_depth>: New field.
9227 (val_print_check_max_depth): Declare new function.
9228 * NEWS: Document new feature.
9230 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9232 * ada-lang.c (ada_language_defn): Initialise new field.
9233 * c-lang.c (c_is_string_type_p): New function.
9234 (c_language_defn): Initialise new field.
9235 (cplus_language_defn): Initialise new field.
9236 (asm_language_defn): Initialise new field.
9237 (minimal_language_defn): Initialise new field.
9238 * c-lang.h (c_is_string_type_p): Declare new function.
9239 * d-lang.c (d_language_defn): Initialise new field.
9240 * f-lang.c (f_is_string_type_p): New function.
9241 (f_language_defn): Initialise new field.
9242 * go-lang.c (go_is_string_type_p): New function.
9243 (go_language_defn): Initialise new field.
9244 * language.c (default_is_string_type_p): New function.
9245 (unknown_language_defn): Initialise new field.
9246 (auto_language_defn): Initialise new field.
9247 * language.h (struct language_defn) <la_is_string_type_p>: New
9249 (default_is_string_type_p): Declare new function.
9250 * m2-lang.c (m2_language_defn): Initialise new field.
9251 * objc-lang.c (objc_language_defn): Initialise new field.
9252 * opencl-lang.c (opencl_language_defn): Initialise new field.
9253 * p-lang.c (pascal_is_string_type_p): New function.
9254 (pascal_language_defn): Initialise new field.
9255 * rust-lang.c (rust_is_string_type_p): New function.
9256 (rust_language_defn): Initialise new field.
9258 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9260 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9262 * ada-lang.c (ada_language_defn): Initialise new field.
9263 * c-lang.c (c_language_defn): Likewise.
9264 (cplus_language_defn): Likewise.
9265 (asm_language_defn): Likewise.
9266 (minimal_language_defn): Likewise.
9267 * d-lang.c (d_language_defn): Likewise.
9268 * f-lang.c (f_language_defn): Likewise.
9269 * go-lang.c (go_language_defn): Likewise.
9270 * language.c (unknown_language_defn): Likewise.
9271 (auto_language_defn): Likewise.
9272 * m2-lang.c (m2_language_defn): Likewise.
9273 * objc-lang.c (objc_language_defn): Likewise.
9274 * opencl-lang.c (opencl_language_defn): Likewise.
9275 * p-lang.c (pascal_language_defn): Likewise.
9276 * rust-lang.c (rust_language_defn): Likewise.
9278 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9280 * ada-lang.c (ada_is_character_type): Change return type to bool.
9281 (ada_is_string_type): Likewise.
9282 * ada-lang.h (ada_is_character_type): Update declaration
9283 (ada_is_string_type): Likewise.
9285 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9287 Support style in 'frame|thread apply'
9289 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9290 * record.c (record_start, record_stop): Update callers of
9291 execute_command_to_string with false.
9292 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9293 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9295 (class string_file): New constructor with term_out parameter.
9296 Override methods term_out and can_emit_style_escape. New member
9298 (class stdio_file): Override can_emit_style_escape.
9299 (class tee_file): Override term_out and can_emit_style_escape.
9300 * utils.h (can_emit_style_escape): Remove.
9301 * utils.c (can_emit_style_escape): Likewise.
9302 Update all callers of can_emit_style_escape (SOMESTREAM) to
9303 SOMESTREAM->can_emit_style_escape.
9304 * source-cache.c (source_cache::get_source_lines): Likewise.
9305 * stack.c (frame_apply_command_count): Call execute_command_to_string
9306 passing the term_out characteristic of the current gdb_stdout.
9307 * thread.c (thr_try_catch_cmd): Likewise.
9308 * top.c (execute_command_to_string): pass term_out parameter
9309 to construct the string_file for the command output.
9310 * ui-file.c (term_cli_styling): New function (most code moved
9311 from utils.c can_emit_style_escape).
9312 (string_file::string_file, string_file::can_emit_style_escape,
9313 stdio_file::can_emit_style_escape, tee_file::term_out,
9314 tee_file::can_emit_style_escape): New functions.
9316 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9318 * NEWS: Mention the new set|show may-call-functions.
9319 * infcall.c (may_call_functions_p): New variable.
9320 (show_may_call_functions_p): New function.
9321 (call_function_by_hand_dummy): Throws an error if not
9323 (_initialize_infcall): Call add_setshow_boolean_cmd for
9326 2019-04-25 Keith Seitz <keiths@redhat.com>
9329 * cp-support.c (inspect_type): Don't attempt substitutions
9330 of symbol with the same name.
9332 2019-04-25 Tom Tromey <tromey@adacore.com>
9335 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9338 2019-04-25 Tom Tromey <tromey@adacore.com>
9340 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9342 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9343 (gdb_xml_parser::parse): Use std::move.
9344 * python/python-internal.h (gdbpy_convert_exception): Take a const
9346 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9348 * python/py-utils.c (gdbpy_convert_exception): Take a const
9350 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9352 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9354 * mi/mi-main.c (mi_print_exception): Take a const reference.
9355 * main.c (handle_command_errors): Take a const reference.
9356 * linespec.c (parse_linespec): Use std::move.
9357 * infcall.c (run_inferior_call): Use std::move.
9358 (call_function_by_hand_dummy): Use std::move.
9359 * exec.c (try_open_exec_file): Use std::move.
9360 * exceptions.h (exception_print, exception_fprintf)
9361 (exception_print_same): Update.
9362 * exceptions.c (print_exception, exception_print)
9363 (exception_fprintf, exception_print_same): Change parameters to
9365 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9366 * common/new-op.c: Use std::move.
9367 * common/common-exceptions.h (struct gdb_exception): Add move
9369 (struct gdb_exception_error, struct gdb_exception_quit, struct
9370 gdb_quit_bad_alloc): Change constructor to move constructor.
9371 (throw_exception): Change parameter to rvalue reference.
9372 * common/common-exceptions.c (throw_exception): Take rvalue
9374 * cli/cli-interp.c (safe_execute_command): Use std::move.
9375 * breakpoint.c (insert_bp_location, location_to_sals): Use
9378 2019-04-25 Tom Tromey <tromey@adacore.com>
9380 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9381 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9382 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9383 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9384 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9385 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9386 guile/scm-value.c: Use unpack.
9387 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9388 gdbscm_gdb_exception.
9389 (gdbscm_throw_gdb_exception): Likewise.
9390 (struct gdbscm_gdb_exception): New.
9391 (unpack): New function.
9392 (gdbscm_wrap): Use unpack.
9394 2019-04-25 Tom Tromey <tromey@adacore.com>
9396 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9397 (gdb_rl_callback_handler): Use std::move.
9398 * common/common-exceptions.h (struct gdb_exception): Add move
9399 assignment operator.
9400 (throw_exception_sjlj): Change "exception" to const reference.
9401 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9402 (throw_exception_sjlj): Change "exception" to const reference.
9404 2019-04-25 Tom Tromey <tromey@adacore.com>
9406 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9407 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9408 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9410 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9412 * mi/mi-interp.c (mi_interp::exec): Update.
9413 * linespec.c (parse_linespec): Update.
9414 * infcall.c (run_inferior_call): Update.
9415 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9416 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9417 (gdbscm_lookup_global_symbol): Update.
9418 * guile/scm-param.c (gdbscm_parameter_value): Update.
9419 * guile/scm-frame.c (gdbscm_frame_read_register)
9420 (gdbscm_frame_read_var): Update.
9421 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9422 * exec.c (try_open_exec_file): Update.
9423 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9424 (gdb_rl_callback_handler): Update.
9425 * common/common-exceptions.h (exception_none): Don't declare.
9426 * common/common-exceptions.c (exception_none): Don't define.
9427 (struct catcher) <exception>: Update.
9428 * cli/cli-interp.c (safe_execute_command): Update.
9429 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9431 2019-04-25 Ali Tamur <tamur@google.com>
9433 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9434 (read_attribute_value): Likewise.
9435 (dwarf2_read_addr_index): Update comment.
9436 (read_str_index): Add DW_FORM_strx.
9437 (dwarf2_string_attr): Likewise.
9438 (dwarf2_const_value_attr): Likewise.
9439 (dump_die_shallow): Likewise.
9440 (dwarf2_fetch_constant_bytes): Likewise.
9441 (skip_form_bytes): Likewise.
9442 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9444 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9448 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9449 OFFSET. Verify if current mapping contains an ELF header.
9450 (linux_find_memory_regions_full): Adjust call to
9453 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9454 Kang Li <kanglictf@gmail.com>
9458 * dwarf2-frame.c (read_initial_length): Be consistent about using
9459 unsigned representation of length.
9460 (decode_frame_entry_1): Likewise. Check for wraparound of
9461 end pointer as well as buffer overflow.
9463 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9465 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9468 2019-04-24 Tom Tromey <tromey@adacore.com>
9470 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9474 * s12z-tdep.c (s12z_unwind_pc): Delete.
9475 (s12z_unwind_sp): Delete.
9476 (s12z_gdbarch_init): Don't register deleted functions with
9479 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9481 * rl78-tdep.c (rl78_unwind_sp): Delete.
9482 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9484 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9486 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9487 (xstormy16_unwind_pc): Delete.
9488 (xstormy16_dummy_id): Delete.
9489 (xstormy16_gdbarch_init): Don't register deleted functions with
9492 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9494 * vax-tdep.c (vax_unwind_pc): Delete.
9495 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9497 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9499 * v850-tdep.c (v850_unwind_sp): Delete.
9500 (v850_unwind_pc): Delete.
9501 (v850_dummy_id): Delete.
9502 (v850_gdbarch_init): Don't register deleted functions with
9505 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9507 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9508 (tilegx_unwind_pc): Delete.
9509 (tilegx_unwind_dummy_id): Delete.
9510 (tilegx_gdbarch_init): Don't register deleted functions with
9513 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9515 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9516 (tic6x_dummy_id): Delete.
9517 (tic6x_gdbarch_init): Don't register deleted functions with
9520 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9522 * sparc-tdep.c (sparc_unwind_pc): Delete.
9523 (sparc32_gdbarch_init): Don't register deleted function with
9526 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9528 * sh-tdep.c (sh_unwind_sp): Delete.
9529 (sh_unwind_pc): Delete.
9530 (sh_dummy_id): Delete.
9531 (sh_gdbarch_init): Don't register deleted functions with
9534 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9536 * score-tdep.c (score_unwind_sp): Delete.
9537 (score_unwind_pc): Delete.
9538 (score_dummy_id): Delete.
9539 (score_gdbarch_init): Don't register deleted functions with
9542 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9544 * rx-tdep.c (rx_unwind_pc): Delete.
9545 (rx_unwind_sp): Delete.
9546 (rx_dummy_id): Delete.
9547 (rx_gdbarch_init): Don't register deleted functions with
9548 gdbarch. Update comment.
9550 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9552 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9553 (rs6000_dummy_id): Delete.
9554 (rs6000_gdbarch_init): Don't register deleted functions with
9557 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9559 * or1k-tdep.c (or1k_dummy_id): Delete.
9560 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9562 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9564 * nios2-tdep.c (nios2_dummy_id): Delete.
9565 (nios2_unwind_sp): Delete.
9566 (nios2_gdbarch_init): Don't register deleted functions with
9569 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9571 * nds32-tdep.c (nds32_dummy_id): Delete.
9572 (nds32_unwind_pc): Delete.
9573 (nds32_unwind_sp): Delete.
9574 (nds32_gdbarch_init): Don't register deleted functions with
9577 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9579 * msp430-tdep.c (msp430_unwind_pc): Delete.
9580 (msp430_unwind_sp): Delete.
9581 (msp430_dummy_id): Delete.
9582 (msp430_gdbarch_init): Don't register deleted functions with
9585 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9587 * moxie-tdep.c (moxie_unwind_sp): Delete.
9588 (moxie_unwind_pc): Delete.
9589 (moxie_dummy_id): Delete.
9590 (moxie_gdbarch_init): Don't register deleted functions with
9593 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9595 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9596 (mn10300_unwind_pc): Delete.
9597 (mn10300_unwind_sp): Delete.
9598 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9600 (mn10300_frame_unwind_init): Don't register deleted functions with
9603 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9605 * mep-tdep.c (mep_unwind_pc): Delete.
9606 (mep_unwind_sp): Delete.
9607 (mep_dummy_id): Delete.
9608 (mep_gdbarch_init): Don't register deleted functions with
9611 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9613 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9614 (m68hc11_unwind_sp): Delete.
9615 (m68hc11_gdbarch_init): Don't register deleted functions with
9618 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9620 * m32r-tdep.c (m32r_unwind_sp): Delete.
9621 (m32r_unwind_pc): Delete.
9622 (m32r_dummy_id): Delete.
9623 (m32r_gdbarch_init): Don't register deleted functions with
9626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9628 * m32c-tdep.c (m32c_unwind_pc): Delete.
9629 (m32c_unwind_sp): Delete.
9630 (m32c_dummy_id): Delete.
9631 (m32c_gdbarch_init): Don't register deleted functions with
9634 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9636 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9637 (lm32_unwind_pc): Delete.
9638 (lm32_dummy_id): Delete.
9639 (lm32_gdbarch_init): Don't register deleted functions with
9642 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9644 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9645 (iq2000_unwind_pc): Delete.
9646 (iq2000_dummy_id): Delete.
9647 (iq2000_gdbarch_init): Don't register deleted functions with
9650 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9652 * nds32-tdep.c (nds32_type_align): Delete.
9653 (nds32_push_dummy_call): Use type_align instead.
9655 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9657 * arm-tdep.c (arm_type_align): Only handle vector override case.
9658 (arm_push_dummy_call): Use type_align.
9659 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9661 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9663 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9665 (pass_on_stack): Use type_align.
9666 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9669 2019-04-23 Tom Tromey <tromey@adacore.com>
9671 * dwarf2read.c (line_header::file_name_at): Remove unused
9674 2019-04-23 Tom de Vries <tdevries@suse.de>
9677 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9681 2019-03-27 Ali Tamur <tamur@google.com>
9683 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9684 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9685 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9686 (dwarf_expr_context::get_addr_index): Likewise
9687 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9688 (symbol_needs_eval_context::get_addr_index): Likewise
9689 (disassemble_dwarf_expression): Add DW_OP_addrx
9690 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9691 (read_cutu_die_from_dwo): Update comment
9692 (skip_one_die): Add DW_FORM_addrx
9693 (read_attribute_value): Likewise
9694 (var_decode_location): Add DW_OP_addrx
9695 (dwarf2_const_value_attr): Add DW_FORM_addrx
9696 (dump_die_shallow): Likewise
9697 (dwarf2_fetch_constant_bytes): Likewise
9698 (decode_locdesc): Add DW_OP_addrx
9699 (skip_form_bytes): Add DW_FORM_addrx
9701 2019-04-22 Ali Tamur <tamur@google.com>
9703 * MAINTAINERS (Write After Approval): Add self.
9705 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9707 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9708 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9709 (open_symbol_file_object): Likewise.
9710 (svr4_default_sos): Add info parameter.
9711 (svr4_read_so_list): Likewise.
9712 (svr4_current_sos_direct): Adjust functions calls to pass down
9714 (svr4_current_sos_1): Add info parameter.
9715 (svr4_current_sos): Call get_svr4_info, pass info down to
9717 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9719 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9721 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9723 (probes_table_remove_objfile_probes): Likewise.
9724 (register_solib_event_probe): Add info parameter.
9725 (solist_update_incremental): Pass info parameter down to
9727 (disable_probes_interface): Add info parameter.
9728 (svr4_handle_solib_event): Pass current_program_space to
9729 get_svr4_info. Adjust disable_probes_interface cleanup.
9730 (svr4_create_probe_breakpoints): Add info parameter, pass it
9731 down to register_solib_event_probe.
9732 (svr4_create_solib_event_breakpoints): Add info parameter,
9733 pass it down to svr4_create_probe_breakpoints.
9734 (enable_break): Pass info down to
9735 svr4_create_solib_event_breakpoints.
9736 (svr4_solib_create_inferior_hook): Pass current_program_space to
9738 (svr4_clear_solib): Likewise.
9740 2019-04-22 Pedro Alves <palves@redhat.com>
9742 * solib-svr4.c (svr4_free_objfile_observer): New.
9743 (probe_and_action::objfile): New field.
9744 (probes_table_htab_remove_objfile_probes)
9745 (probes_table_remove_objfile_probes): New functions.
9746 (register_solib_event_probe): Add 'objfile' parameter. Store it
9747 in the new probe_and_action. Don't store the probe in 'lookup'.
9748 (svr4_create_probe_breakpoints): Pass objfile to
9749 register_solib_event_probe.
9750 (_initialize_svr4_solib): Register a free_objfile observer.
9752 2019-04-19 Tom Tromey <tom@tromey.com>
9754 * common/queue.h: Remove.
9756 2019-04-19 Tom Tromey <tom@tromey.com>
9758 * event-loop.c: Don't include "common/queue.h".
9760 2019-04-19 Tom Tromey <tom@tromey.com>
9762 * remote.c (remote_target): Use delete.
9763 * remote-notif.h: Include <list>, not "common/queue.h".
9764 (notif_client_p): Remove typedef.
9765 (remote_notif_state): Add constructor, destructor, initializer.
9766 <notif_queue>: Now a std::list.
9767 (remote_notif_state_xfree): Don't declare.
9768 * remote-notif.c (remote_notif_process, handle_notification)
9769 (remote_notif_state_allocate): Update.
9770 (~remote_notif_state): Rename from remote_notif_state_xfree.
9772 2019-04-19 Tom Tromey <tom@tromey.com>
9774 * symfile.c (reread_symbols): Update.
9775 * objfiles.c (objfile_register_static_link)
9776 (objfile_lookup_static_link): Update
9777 (~objfile) Don't delete static_links.
9778 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9780 2019-04-19 Tom Tromey <tom@tromey.com>
9782 * type-stack.h (struct type_stack) <insert>: Constify string.
9783 * type-stack.c (type_stack::insert): Constify string.
9784 * gdbtypes.h (lookup_template_type): Update.
9785 (address_space_name_to_int): Update.
9786 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9788 (lookup_template_type): Make name const.
9789 * c-exp.y: Update rules.
9790 (lex_one_token, classify_name, classify_inner_name)
9791 (c_print_token): Update.
9792 * p-exp.y: Update rules.
9794 * f-exp.y: Update rules.
9796 * d-exp.y: Update rules.
9797 (lex_one_token, classify_name, classify_inner_name): Update.
9798 * parse.c (write_dollar_variable, copy_name): Return std::string.
9799 * parser-defs.h (copy_name): Change return type.
9800 * m2-exp.y: Update rules.
9802 * go-exp.y (lex_one_token): Update.
9804 (classify_unsafe_function, classify_packaged_name)
9805 (classify_name, yylex): Update.
9807 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9809 * configure.ac: add --enable-source-highlight switch.
9810 * configure: Regenerate.
9811 * top.c (print_gdb_version): plumb --enable-source-highlight
9812 status to "show configuration".
9814 2019-04-19 Tom Tromey <tromey@adacore.com>
9816 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9818 (empty_record, ada_template_to_fixed_record_type_1)
9819 (template_to_static_fixed_type)
9820 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9821 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9822 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9825 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9828 * source.c (print_source_lines_base): Advance "iter" when a
9829 control character is seen.
9831 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9833 * inferior.h (struct infcall_suspend_state_deleter):
9834 Catch exception in destructor to avoid crash.
9836 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9838 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9839 close to the add_com "shell".
9841 2019-04-18 Tom Tromey <tromey@adacore.com>
9843 * process-stratum-target.h (class process_stratum_target)
9844 <stratum>: Add "final".
9846 2019-04-17 Tom Tromey <tromey@adacore.com>
9848 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9849 against nullptr before use.
9851 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9853 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9855 2019-04-17 Jim Wilson <jimw@sifive.com>
9856 Andrew Burgess <andrew.burgess@embecosm.com>
9858 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9859 code read might fail, assume 4-byte breakpoint in that case.
9861 2019-04-15 Leszek Swirski <leszeks@google.com>
9863 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9864 rather than a hand-rolled POD check when checking for forced MEMORY
9867 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9869 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9870 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9872 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9873 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9874 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9877 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9879 * aarch64-linux-nat.c
9880 (aarch64_linux_nat_target::thread_architecture): Add override.
9881 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9884 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9886 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9888 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9890 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9891 target types of size 96-bits, add some additional comments, and
9892 check that the builtin type we found was the correct size.
9894 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9896 * utils.c (prompt_for_continue): Don't restore the styling at the
9897 end, as applied_style has the wrong value. This fixes styling in
9898 long lists of file names that are interrupted by the "Continue?"
9901 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9903 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9904 * c-lang.c (c_language_defn): Likewise.
9905 (cplus_language_defn): Likewise.
9906 (asm_language_defn): Likewise.
9907 (minimal_language_defn): Likewise.
9908 * d-lang.c (d_language_defn): Likewise.
9909 * f-lang.c (f_language_defn): Likewise.
9910 * go-lang.c (go_language_defn): Likewise.
9911 * language.c (unknown_language_defn): Likewise.
9912 (auto_language_defn): Likewise.
9913 * language.h (struct language_defn): Remove la_magic field.
9914 (LANG_MAGIC): Delete.
9915 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9916 * objc-lang.c (objc_language_defn): Likewise.
9917 * opencl-lang.c (opencl_language_defn): Likewise.
9918 * p-lang.c (pascal_language_defn): Likewise.
9919 * rust-lang.c (rust_language_defn): Likewise.
9921 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9923 * riscv-tdep.c (riscv_type_align): New function.
9924 (riscv_type_alignment): Delete.
9925 (riscv_arg_location): Use 'type_align'.
9926 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9928 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9930 * gdbtypes.c (type_align): A struct with no non-static fields also
9933 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9935 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9937 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9939 (riscv_struct_info::analyse): New implementation using new
9940 analyse_inner member function.
9941 (riscv_struct_info::field_offset): New member function.
9942 (riscv_struct_info::m_offsets): New member variable.
9943 (riscv_struct_info::analyse_inner): New private member function,
9944 takes the old implementation of riscv_struct_info::analyse but
9945 extended to track field offsets.
9946 (riscv_call_arg_struct): Update the struct folding special cases
9947 to handle cases where empty C++ structs, which are non-zero
9949 (riscv_arg_location): Initialise the length of each location, a
9950 non-zero length now indicates the location is in use.
9951 (riscv_push_dummy_call): Allow for the first location having a
9952 non-zero offset when setting up arguments.
9953 (riscv_return_value): Likewise, but for return values.
9955 2019-04-11 Tom Tromey <tromey@adacore.com>
9957 * utils.c (internal_vproblem): Make "msg" const.
9959 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9961 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9962 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9963 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9964 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9966 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9968 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9970 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9971 of amd64_collect_native_gregset.
9972 (amd64_linux_nat_target::store_registers): Likewise.
9974 2019-04-10 Tom Tromey <tom@tromey.com>
9976 * symtab.c (lookup_global_symbol_from_objfile)
9977 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9978 * objfiles.h (class separate_debug_iterator): New.
9979 (class separate_debug_range): New.
9980 (struct objfile) <separate_debug_objfiles>: New method.
9981 (objfile_separate_debug_iterate): Don't declare.
9982 * objfiles.c (separate_debug_iterator::operator++): Rename from
9983 objfile_separate_debug_iterate.
9984 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9986 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9989 2019-04-10 Tom Tromey <tom@tromey.com>
9991 * symfile.c (reread_symbols): Remove old comment.
9992 * objfiles.c (free_all_objfiles): Fix a typo.
9994 2019-04-10 Tom Tromey <tom@tromey.com>
9996 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9997 * minsyms.c (lookup_minimal_symbol): Use foreach.
9998 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9999 (lookup_minimal_symbol_solib_trampoline): Likewise.
10000 * symfile.c (reread_symbols): Use foreach.
10002 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10003 Tom Tromey <tromey@adacore.com>
10006 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10007 (rust_lex_int_test): Change "value" to be LONGEST.
10008 (rust_lex_tests): Add test for long integer literal.
10010 2019-04-09 Tom Tromey <tromey@adacore.com>
10012 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10014 (extended_remote_target::attach): Update.
10015 (remote_target::remote_notice_new_inferior): Update.
10016 (remote_target::add_current_inferior_and_thread): Update.
10017 * inferior.c (exit_inferior_1): Use "false".
10018 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10020 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10022 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10023 the "start" command.
10025 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10027 * python/py-inferior.c (infpy_thread_from_thread_handle):
10028 Adjust comments to reflect renaming of thread_from_thread_handle
10029 to thread_from_handle. Adjust keywords. Fix type error message.
10030 (inferior_object_methods): Add thread_from_handle. Retain
10031 thread_from_thread_handle, but mark it as deprecated.
10033 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10035 * gdbthread.h (find_thread_by_handle): Revise declaration.
10036 * thread.c (find_thread_by_handle): Likewise. Adjust
10037 implementation too.
10038 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10039 support for buffer objects as handles.
10041 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10043 * python/py-infthread.c (thpy_thread_handle): New function.
10044 (thread_object_methods): Register thpy_thread_handle.
10046 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10048 * gdbthread.h (thread_to_thread_handle): Declare.
10049 * thread.c (gdbtypes.h): Include.
10050 (thread_to_thread_handle): New function.
10052 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10053 (target_thread_info_to_thread_handle): Declare.
10054 * target.c (target_thread_info_to_thread_handle): New function.
10055 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10056 * target-delegates.c: Regenerate.
10058 * linux-thread-db.c (class thread_db_target): Add method
10059 thread_info_to_thread_handle.
10060 (thread_db_target::thread_info_to_thread_handle): Define.
10061 * remote.c (class remote_target): Add new method
10062 thread_info_to_thread_handle.
10063 (remote_target::thread_info_to_thread_handle): Define.
10065 2019-04-08 Pedro Alves <palves@redhat.com>
10067 * common/common-exceptions.c (throw_exception): Don't create
10068 named object to throw; throw directly.
10069 (throw_it): Likewise. Don't initialize gdb_exception::message
10070 here, with new; pass FMT and AP to the ctor instead.
10071 * common/common-exceptions.h: Include <string>.
10072 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10073 const char *, va_list)): New ctor. Use std::make_shared.
10074 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10076 (gdb_exception_error::gdb_exception_error(enum errors, const char
10078 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10080 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10082 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10083 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10086 2019-04-08 Tom Tromey <tom@tromey.com>
10088 * valops.c (value_rtti_indirect_type): Replace throw_exception
10090 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10092 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10094 * target.c (target_translate_tls_address): Replace throw_exception
10096 * stack.c (frame_apply_command_count): Replace throw_exception
10098 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10100 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10102 * rs6000-tdep.c (rs6000_frame_cache)
10103 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10104 * remote.c: Replace throw_exception with throw.
10105 * record-full.c (record_full_message, record_full_wait_1)
10106 (record_full_restore): Replace throw_exception with throw.
10108 (get_thread_current_frame_id, record_btrace_start_replaying)
10109 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10110 (cmd_record_btrace_start): Replace throw_exception with throw.
10111 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10113 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10114 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10116 (find_linespec_symbols): Replace throw_exception with throw.
10117 * infrun.c (displaced_step_prepare, resume): Replace
10118 throw_exception with throw.
10119 * infcmd.c (post_create_inferior): Replace throw_exception with
10121 * inf-loop.c (inferior_event_handler): Replace throw_exception
10123 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10124 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10125 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10126 (get_prev_frame_always, get_frame_pc_if_available)
10127 (get_frame_address_in_block_if_available, get_frame_language):
10128 Replace throw_exception with throw.
10129 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10130 throw_exception with throw.
10131 * eval.c (fetch_subexp_value, evaluate_var_value)
10132 (evaluate_funcall, evaluate_subexp_standard): Replace
10133 throw_exception with throw.
10134 * dwarf2loc.c (call_site_find_chain)
10135 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10136 Replace throw_exception with throw.
10137 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10139 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10141 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10142 * completer.c (complete_line_internal): Replace throw_exception
10144 * compile/compile-object-run.c (compile_object_run): Replace
10145 throw_exception with throw.
10146 * cli/cli-script.c (process_next_line): Replace throw_exception
10148 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10149 (btrace_enable, btrace_maint_update_pt_packets): Replace
10150 throw_exception with throw.
10151 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10152 throw_exception with throw.
10153 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10154 throw_exception with throw.
10155 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10156 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10157 * aarch64-tdep.c (aarch64_make_prologue_cache)
10158 (aarch64_make_stub_cache): Replace throw_exception with throw.
10160 2019-04-08 Tom Tromey <tom@tromey.com>
10162 * common/common-exceptions.c (throw_exception): Rename from
10163 throw_exception_cxx. Remove old copy. Make argument const.
10164 (throw_it): Create and throw exception objects directly.
10165 * common/common-exceptions.h (throw_exception): Make argument
10167 (struct gdb_exception_error): Add constructor.
10168 (struct gdb_exception_quit): Add constructor.
10170 2019-04-08 Tom Tromey <tom@tromey.com>
10172 * common/common-exceptions.h (exception_rethrow): Don't declare.
10173 (TRY_SJLJ): Update comment.
10174 (TRY, CATCH, END_CATCH): Remove.
10175 * common/common-exceptions.c (exception_rethrow): Remove.
10177 2019-04-08 Tom Tromey <tom@tromey.com>
10179 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10181 (gdb_exception_error): Rename from
10182 gdb_exception_RETURN_MASK_ERROR.
10183 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10184 (gdb_quit_bad_alloc): Update.
10185 * aarch64-tdep.c: Update.
10186 * ada-lang.c: Update.
10187 * ada-typeprint.c: Update.
10188 * ada-valprint.c: Update.
10189 * amd64-tdep.c: Update.
10190 * arch-utils.c: Update.
10191 * break-catch-throw.c: Update.
10192 * breakpoint.c: Update.
10193 * btrace.c: Update.
10194 * c-varobj.c: Update.
10195 * cli/cli-cmds.c: Update.
10196 * cli/cli-interp.c: Update.
10197 * cli/cli-script.c: Update.
10198 * common/common-exceptions.c: Update.
10199 * common/new-op.c: Update.
10200 * common/selftest.c: Update.
10201 * compile/compile-c-symbols.c: Update.
10202 * compile/compile-cplus-symbols.c: Update.
10203 * compile/compile-object-load.c: Update.
10204 * compile/compile-object-run.c: Update.
10205 * completer.c: Update.
10206 * corelow.c: Update.
10207 * cp-abi.c: Update.
10208 * cp-support.c: Update.
10209 * cp-valprint.c: Update.
10210 * darwin-nat.c: Update.
10211 * disasm-selftests.c: Update.
10212 * dtrace-probe.c: Update.
10213 * dwarf-index-cache.c: Update.
10214 * dwarf-index-write.c: Update.
10215 * dwarf2-frame-tailcall.c: Update.
10216 * dwarf2-frame.c: Update.
10217 * dwarf2loc.c: Update.
10218 * dwarf2read.c: Update.
10220 * event-loop.c: Update.
10221 * event-top.c: Update.
10223 * f-valprint.c: Update.
10224 * fbsd-tdep.c: Update.
10225 * frame-unwind.c: Update.
10227 * gdbtypes.c: Update.
10228 * gnu-v3-abi.c: Update.
10229 * guile/guile-internal.h: Update.
10230 * guile/scm-block.c: Update.
10231 * guile/scm-breakpoint.c: Update.
10232 * guile/scm-cmd.c: Update.
10233 * guile/scm-disasm.c: Update.
10234 * guile/scm-frame.c: Update.
10235 * guile/scm-lazy-string.c: Update.
10236 * guile/scm-math.c: Update.
10237 * guile/scm-param.c: Update.
10238 * guile/scm-ports.c: Update.
10239 * guile/scm-pretty-print.c: Update.
10240 * guile/scm-symbol.c: Update.
10241 * guile/scm-symtab.c: Update.
10242 * guile/scm-type.c: Update.
10243 * guile/scm-value.c: Update.
10244 * i386-linux-tdep.c: Update.
10245 * i386-tdep.c: Update.
10246 * inf-loop.c: Update.
10247 * infcall.c: Update.
10248 * infcmd.c: Update.
10249 * infrun.c: Update.
10251 * language.c: Update.
10252 * linespec.c: Update.
10253 * linux-fork.c: Update.
10254 * linux-nat.c: Update.
10255 * linux-tdep.c: Update.
10256 * linux-thread-db.c: Update.
10258 * mi/mi-cmd-break.c: Update.
10259 * mi/mi-cmd-stack.c: Update.
10260 * mi/mi-interp.c: Update.
10261 * mi/mi-main.c: Update.
10262 * objc-lang.c: Update.
10263 * p-valprint.c: Update.
10265 * ppc-linux-tdep.c: Update.
10266 * printcmd.c: Update.
10267 * python/py-arch.c: Update.
10268 * python/py-breakpoint.c: Update.
10269 * python/py-cmd.c: Update.
10270 * python/py-finishbreakpoint.c: Update.
10271 * python/py-frame.c: Update.
10272 * python/py-framefilter.c: Update.
10273 * python/py-gdb-readline.c: Update.
10274 * python/py-inferior.c: Update.
10275 * python/py-infthread.c: Update.
10276 * python/py-lazy-string.c: Update.
10277 * python/py-linetable.c: Update.
10278 * python/py-objfile.c: Update.
10279 * python/py-param.c: Update.
10280 * python/py-prettyprint.c: Update.
10281 * python/py-progspace.c: Update.
10282 * python/py-record-btrace.c: Update.
10283 * python/py-record.c: Update.
10284 * python/py-symbol.c: Update.
10285 * python/py-type.c: Update.
10286 * python/py-unwind.c: Update.
10287 * python/py-utils.c: Update.
10288 * python/py-value.c: Update.
10289 * python/python.c: Update.
10290 * record-btrace.c: Update.
10291 * record-full.c: Update.
10292 * remote-fileio.c: Update.
10293 * remote.c: Update.
10294 * riscv-tdep.c: Update.
10295 * rs6000-aix-tdep.c: Update.
10296 * rs6000-tdep.c: Update.
10297 * rust-exp.y: Update.
10298 * rust-lang.c: Update.
10299 * s390-tdep.c: Update.
10300 * selftest-arch.c: Update.
10301 * solib-dsbt.c: Update.
10302 * solib-frv.c: Update.
10303 * solib-spu.c: Update.
10304 * solib-svr4.c: Update.
10306 * sparc64-linux-tdep.c: Update.
10308 * symfile-mem.c: Update.
10309 * symmisc.c: Update.
10310 * target.c: Update.
10311 * thread.c: Update.
10313 * tracefile-tfile.c: Update.
10314 * tui/tui.c: Update.
10315 * typeprint.c: Update.
10316 * unittests/cli-utils-selftests.c: Update.
10317 * unittests/parse-connection-spec-selftests.c: Update.
10318 * valops.c: Update.
10319 * valprint.c: Update.
10321 * varobj.c: Update.
10322 * windows-nat.c: Update.
10323 * x86-linux-nat.c: Update.
10324 * xml-support.c: Update.
10326 2019-04-08 Tom Tromey <tom@tromey.com>
10328 * xml-support.c: Use C++ exception handling.
10329 * x86-linux-nat.c: Use C++ exception handling.
10330 * windows-nat.c: Use C++ exception handling.
10331 * varobj.c: Use C++ exception handling.
10332 * value.c: Use C++ exception handling.
10333 * valprint.c: Use C++ exception handling.
10334 * valops.c: Use C++ exception handling.
10335 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10337 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10338 * typeprint.c: Use C++ exception handling.
10339 * tui/tui.c: Use C++ exception handling.
10340 * tracefile-tfile.c: Use C++ exception handling.
10341 * top.c: Use C++ exception handling.
10342 * thread.c: Use C++ exception handling.
10343 * target.c: Use C++ exception handling.
10344 * symmisc.c: Use C++ exception handling.
10345 * symfile-mem.c: Use C++ exception handling.
10346 * stack.c: Use C++ exception handling.
10347 * sparc64-linux-tdep.c: Use C++ exception handling.
10348 * solib.c: Use C++ exception handling.
10349 * solib-svr4.c: Use C++ exception handling.
10350 * solib-spu.c: Use C++ exception handling.
10351 * solib-frv.c: Use C++ exception handling.
10352 * solib-dsbt.c: Use C++ exception handling.
10353 * selftest-arch.c: Use C++ exception handling.
10354 * s390-tdep.c: Use C++ exception handling.
10355 * rust-lang.c: Use C++ exception handling.
10356 * rust-exp.y: Use C++ exception handling.
10357 * rs6000-tdep.c: Use C++ exception handling.
10358 * rs6000-aix-tdep.c: Use C++ exception handling.
10359 * riscv-tdep.c: Use C++ exception handling.
10360 * remote.c: Use C++ exception handling.
10361 * remote-fileio.c: Use C++ exception handling.
10362 * record-full.c: Use C++ exception handling.
10363 * record-btrace.c: Use C++ exception handling.
10364 * python/python.c: Use C++ exception handling.
10365 * python/py-value.c: Use C++ exception handling.
10366 * python/py-utils.c: Use C++ exception handling.
10367 * python/py-unwind.c: Use C++ exception handling.
10368 * python/py-type.c: Use C++ exception handling.
10369 * python/py-symbol.c: Use C++ exception handling.
10370 * python/py-record.c: Use C++ exception handling.
10371 * python/py-record-btrace.c: Use C++ exception handling.
10372 * python/py-progspace.c: Use C++ exception handling.
10373 * python/py-prettyprint.c: Use C++ exception handling.
10374 * python/py-param.c: Use C++ exception handling.
10375 * python/py-objfile.c: Use C++ exception handling.
10376 * python/py-linetable.c: Use C++ exception handling.
10377 * python/py-lazy-string.c: Use C++ exception handling.
10378 * python/py-infthread.c: Use C++ exception handling.
10379 * python/py-inferior.c: Use C++ exception handling.
10380 * python/py-gdb-readline.c: Use C++ exception handling.
10381 * python/py-framefilter.c: Use C++ exception handling.
10382 * python/py-frame.c: Use C++ exception handling.
10383 * python/py-finishbreakpoint.c: Use C++ exception handling.
10384 * python/py-cmd.c: Use C++ exception handling.
10385 * python/py-breakpoint.c: Use C++ exception handling.
10386 * python/py-arch.c: Use C++ exception handling.
10387 * printcmd.c: Use C++ exception handling.
10388 * ppc-linux-tdep.c: Use C++ exception handling.
10389 * parse.c: Use C++ exception handling.
10390 * p-valprint.c: Use C++ exception handling.
10391 * objc-lang.c: Use C++ exception handling.
10392 * mi/mi-main.c: Use C++ exception handling.
10393 * mi/mi-interp.c: Use C++ exception handling.
10394 * mi/mi-cmd-stack.c: Use C++ exception handling.
10395 * mi/mi-cmd-break.c: Use C++ exception handling.
10396 * main.c: Use C++ exception handling.
10397 * linux-thread-db.c: Use C++ exception handling.
10398 * linux-tdep.c: Use C++ exception handling.
10399 * linux-nat.c: Use C++ exception handling.
10400 * linux-fork.c: Use C++ exception handling.
10401 * linespec.c: Use C++ exception handling.
10402 * language.c: Use C++ exception handling.
10403 * jit.c: Use C++ exception handling.
10404 * infrun.c: Use C++ exception handling.
10405 * infcmd.c: Use C++ exception handling.
10406 * infcall.c: Use C++ exception handling.
10407 * inf-loop.c: Use C++ exception handling.
10408 * i386-tdep.c: Use C++ exception handling.
10409 * i386-linux-tdep.c: Use C++ exception handling.
10410 * guile/scm-value.c: Use C++ exception handling.
10411 * guile/scm-type.c: Use C++ exception handling.
10412 * guile/scm-symtab.c: Use C++ exception handling.
10413 * guile/scm-symbol.c: Use C++ exception handling.
10414 * guile/scm-pretty-print.c: Use C++ exception handling.
10415 * guile/scm-ports.c: Use C++ exception handling.
10416 * guile/scm-param.c: Use C++ exception handling.
10417 * guile/scm-math.c: Use C++ exception handling.
10418 * guile/scm-lazy-string.c: Use C++ exception handling.
10419 * guile/scm-frame.c: Use C++ exception handling.
10420 * guile/scm-disasm.c: Use C++ exception handling.
10421 * guile/scm-cmd.c: Use C++ exception handling.
10422 * guile/scm-breakpoint.c: Use C++ exception handling.
10423 * guile/scm-block.c: Use C++ exception handling.
10424 * guile/guile-internal.h: Use C++ exception handling.
10425 * gnu-v3-abi.c: Use C++ exception handling.
10426 * gdbtypes.c: Use C++ exception handling.
10427 * frame.c: Use C++ exception handling.
10428 * frame-unwind.c: Use C++ exception handling.
10429 * fbsd-tdep.c: Use C++ exception handling.
10430 * f-valprint.c: Use C++ exception handling.
10431 * exec.c: Use C++ exception handling.
10432 * event-top.c: Use C++ exception handling.
10433 * event-loop.c: Use C++ exception handling.
10434 * eval.c: Use C++ exception handling.
10435 * dwarf2read.c: Use C++ exception handling.
10436 * dwarf2loc.c: Use C++ exception handling.
10437 * dwarf2-frame.c: Use C++ exception handling.
10438 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10439 * dwarf-index-write.c: Use C++ exception handling.
10440 * dwarf-index-cache.c: Use C++ exception handling.
10441 * dtrace-probe.c: Use C++ exception handling.
10442 * disasm-selftests.c: Use C++ exception handling.
10443 * darwin-nat.c: Use C++ exception handling.
10444 * cp-valprint.c: Use C++ exception handling.
10445 * cp-support.c: Use C++ exception handling.
10446 * cp-abi.c: Use C++ exception handling.
10447 * corelow.c: Use C++ exception handling.
10448 * completer.c: Use C++ exception handling.
10449 * compile/compile-object-run.c: Use C++ exception handling.
10450 * compile/compile-object-load.c: Use C++ exception handling.
10451 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10452 * compile/compile-c-symbols.c: Use C++ exception handling.
10453 * common/selftest.c: Use C++ exception handling.
10454 * common/new-op.c: Use C++ exception handling.
10455 * cli/cli-script.c: Use C++ exception handling.
10456 * cli/cli-interp.c: Use C++ exception handling.
10457 * cli/cli-cmds.c: Use C++ exception handling.
10458 * c-varobj.c: Use C++ exception handling.
10459 * btrace.c: Use C++ exception handling.
10460 * breakpoint.c: Use C++ exception handling.
10461 * break-catch-throw.c: Use C++ exception handling.
10462 * arch-utils.c: Use C++ exception handling.
10463 * amd64-tdep.c: Use C++ exception handling.
10464 * ada-valprint.c: Use C++ exception handling.
10465 * ada-typeprint.c: Use C++ exception handling.
10466 * ada-lang.c: Use C++ exception handling.
10467 * aarch64-tdep.c: Use C++ exception handling.
10469 2019-04-08 Tom Tromey <tom@tromey.com>
10471 * xml-support.c (gdb_xml_parser::parse): Update.
10472 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10473 * value.c (show_convenience): Update.
10474 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10475 (test_parse_flags_qcs): Update.
10476 * thread.c (thr_try_catch_cmd): Update.
10477 * target.c (target_translate_tls_address): Update.
10478 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10479 (info_frame_command_core, frame_apply_command_count): Update.
10480 * rust-exp.y (rust_lex_exception_test): Update.
10481 * riscv-tdep.c (riscv_print_one_register_info): Update.
10482 * remote.c (remote_target::enable_btrace): Update.
10483 * record-btrace.c (record_btrace_enable_warn): Update.
10484 * python/py-utils.c (gdbpy_convert_exception): Update.
10485 * printcmd.c (do_one_display, print_variable_and_value): Update.
10486 * mi/mi-main.c (mi_print_exception): Update.
10487 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10488 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10489 * linux-nat.c (linux_nat_target::attach): Update.
10490 * linux-fork.c (class scoped_switch_fork_info): Update.
10491 * infrun.c (displaced_step_prepare): Update.
10492 * infcall.c (call_function_by_hand_dummy): Update.
10493 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10494 * gnu-v3-abi.c (print_one_vtable): Update.
10495 * frame.c (get_prev_frame_always): Update.
10496 * f-valprint.c (info_common_command_for_block): Update.
10497 * exec.c (try_open_exec_file): Update.
10498 * exceptions.c (print_exception, exception_print)
10499 (exception_fprintf, exception_print_same): Update.
10500 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10501 * dwarf-index-cache.c (index_cache::store)
10502 (index_cache::lookup_gdb_index): Update.
10503 * darwin-nat.c (maybe_cache_shell): Update.
10504 * cp-valprint.c (cp_print_value_fields): Update.
10505 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10506 (gcc_cplus_symbol_address): Update.
10507 * compile/compile-c-symbols.c (gcc_convert_symbol)
10508 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10509 * common/selftest.c: Update.
10510 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10512 (exception_try_scope_entry, exception_try_scope_exit): Don't
10514 (struct exception_try_scope): Remove.
10515 (TRY): Don't use exception_try_scope.
10516 (struct gdb_exception): Add constructor, operator=.
10517 <what>: New method.
10518 (struct gdb_exception_RETURN_MASK_ALL)
10519 (struct gdb_exception_RETURN_MASK_ERROR)
10520 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10521 (struct gdb_quit_bad_alloc): Update.
10522 * common/common-exceptions.c (exception_none): Change
10524 (struct catcher) <state, exception>: Initialize inline.
10525 <prev>: Remove member.
10526 (current_catcher): Remove.
10527 (catchers): New global.
10528 (exceptions_state_mc_init): Simplify.
10529 (catcher_pop): Remove.
10530 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10531 (try_scope_depth, exception_try_scope_entry)
10532 (exception_try_scope_exit): Remove.
10533 (throw_exception_sjlj): Update.
10534 (exception_messages, exception_messages_size): Remove.
10535 (throw_it): Simplify.
10536 (gdb_exception_sliced_copy): Remove.
10537 (throw_exception_cxx): Update.
10538 * cli/cli-script.c (script_from_file): Update.
10539 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10541 * ada-valprint.c (ada_val_print): Update.
10542 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10543 (create_excep_cond_exprs): Update.
10545 2019-04-08 Tom Tromey <tom@tromey.com>
10547 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10548 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10549 (TRY, CATCH, END_CATCH): Remove some definitions.
10550 * common/common-exceptions.c: Don't use GDB_XCPT.
10551 (catcher_list_size): Remove.
10552 (throw_exception, throw_it): Simplify.
10554 2019-04-05 Tom Tromey <tom@tromey.com>
10556 Revert the header-sorting patch.
10557 * ft32-tdep.c: Revert.
10558 * frv-tdep.c: Revert.
10559 * frv-linux-tdep.c: Revert.
10561 * frame-unwind.c: Revert.
10562 * frame-base.c: Revert.
10563 * fork-child.c: Revert.
10564 * findvar.c: Revert.
10565 * findcmd.c: Revert.
10566 * filesystem.c: Revert.
10567 * filename-seen-cache.h: Revert.
10568 * filename-seen-cache.c: Revert.
10569 * fbsd-tdep.c: Revert.
10570 * fbsd-nat.h: Revert.
10571 * fbsd-nat.c: Revert.
10572 * f-valprint.c: Revert.
10573 * f-typeprint.c: Revert.
10574 * f-lang.c: Revert.
10575 * extension.h: Revert.
10576 * extension.c: Revert.
10577 * extension-priv.h: Revert.
10578 * expprint.c: Revert.
10581 * exceptions.c: Revert.
10582 * event-top.c: Revert.
10583 * event-loop.c: Revert.
10585 * elfread.c: Revert.
10586 * dwarf2read.h: Revert.
10587 * dwarf2read.c: Revert.
10588 * dwarf2loc.c: Revert.
10589 * dwarf2expr.h: Revert.
10590 * dwarf2expr.c: Revert.
10591 * dwarf2-frame.c: Revert.
10592 * dwarf2-frame-tailcall.c: Revert.
10593 * dwarf-index-write.h: Revert.
10594 * dwarf-index-write.c: Revert.
10595 * dwarf-index-common.c: Revert.
10596 * dwarf-index-cache.h: Revert.
10597 * dwarf-index-cache.c: Revert.
10598 * dummy-frame.c: Revert.
10599 * dtrace-probe.c: Revert.
10600 * disasm.h: Revert.
10601 * disasm.c: Revert.
10602 * disasm-selftests.c: Revert.
10603 * dictionary.c: Revert.
10604 * dicos-tdep.c: Revert.
10605 * demangle.c: Revert.
10606 * dcache.h: Revert.
10607 * dcache.c: Revert.
10608 * darwin-nat.h: Revert.
10609 * darwin-nat.c: Revert.
10610 * darwin-nat-info.c: Revert.
10611 * d-valprint.c: Revert.
10612 * d-namespace.c: Revert.
10613 * d-lang.c: Revert.
10615 * csky-tdep.c: Revert.
10616 * csky-linux-tdep.c: Revert.
10617 * cris-tdep.c: Revert.
10618 * cris-linux-tdep.c: Revert.
10619 * cp-valprint.c: Revert.
10620 * cp-support.c: Revert.
10621 * cp-namespace.c: Revert.
10622 * cp-abi.c: Revert.
10623 * corelow.c: Revert.
10624 * corefile.c: Revert.
10625 * continuations.c: Revert.
10626 * completer.h: Revert.
10627 * completer.c: Revert.
10628 * complaints.c: Revert.
10629 * coffread.c: Revert.
10630 * coff-pe-read.c: Revert.
10631 * cli-out.h: Revert.
10632 * cli-out.c: Revert.
10633 * charset.c: Revert.
10634 * c-varobj.c: Revert.
10635 * c-valprint.c: Revert.
10636 * c-typeprint.c: Revert.
10637 * c-lang.c: Revert.
10638 * buildsym.c: Revert.
10639 * buildsym-legacy.c: Revert.
10640 * build-id.h: Revert.
10641 * build-id.c: Revert.
10642 * btrace.c: Revert.
10643 * bsd-uthread.c: Revert.
10644 * breakpoint.h: Revert.
10645 * breakpoint.c: Revert.
10646 * break-catch-throw.c: Revert.
10647 * break-catch-syscall.c: Revert.
10648 * break-catch-sig.c: Revert.
10649 * blockframe.c: Revert.
10651 * bfin-tdep.c: Revert.
10652 * bfin-linux-tdep.c: Revert.
10653 * bfd-target.c: Revert.
10654 * bcache.c: Revert.
10655 * ax-general.c: Revert.
10656 * ax-gdb.h: Revert.
10657 * ax-gdb.c: Revert.
10658 * avr-tdep.c: Revert.
10660 * auto-load.c: Revert.
10661 * arm-wince-tdep.c: Revert.
10662 * arm-tdep.c: Revert.
10663 * arm-symbian-tdep.c: Revert.
10664 * arm-pikeos-tdep.c: Revert.
10665 * arm-obsd-tdep.c: Revert.
10666 * arm-nbsd-tdep.c: Revert.
10667 * arm-nbsd-nat.c: Revert.
10668 * arm-linux-tdep.c: Revert.
10669 * arm-linux-nat.c: Revert.
10670 * arm-fbsd-tdep.c: Revert.
10671 * arm-fbsd-nat.c: Revert.
10672 * arm-bsd-tdep.c: Revert.
10673 * arch-utils.c: Revert.
10674 * arc-tdep.c: Revert.
10675 * arc-newlib-tdep.c: Revert.
10676 * annotate.h: Revert.
10677 * annotate.c: Revert.
10678 * amd64-windows-tdep.c: Revert.
10679 * amd64-windows-nat.c: Revert.
10680 * amd64-tdep.c: Revert.
10681 * amd64-sol2-tdep.c: Revert.
10682 * amd64-obsd-tdep.c: Revert.
10683 * amd64-obsd-nat.c: Revert.
10684 * amd64-nbsd-tdep.c: Revert.
10685 * amd64-nbsd-nat.c: Revert.
10686 * amd64-nat.c: Revert.
10687 * amd64-linux-tdep.c: Revert.
10688 * amd64-linux-nat.c: Revert.
10689 * amd64-fbsd-tdep.c: Revert.
10690 * amd64-fbsd-nat.c: Revert.
10691 * amd64-dicos-tdep.c: Revert.
10692 * amd64-darwin-tdep.c: Revert.
10693 * amd64-bsd-nat.c: Revert.
10694 * alpha-tdep.c: Revert.
10695 * alpha-obsd-tdep.c: Revert.
10696 * alpha-nbsd-tdep.c: Revert.
10697 * alpha-mdebug-tdep.c: Revert.
10698 * alpha-linux-tdep.c: Revert.
10699 * alpha-linux-nat.c: Revert.
10700 * alpha-bsd-tdep.c: Revert.
10701 * alpha-bsd-nat.c: Revert.
10702 * aix-thread.c: Revert.
10704 * addrmap.c: Revert.
10705 * ada-varobj.c: Revert.
10706 * ada-valprint.c: Revert.
10707 * ada-typeprint.c: Revert.
10708 * ada-tasks.c: Revert.
10709 * ada-lang.c: Revert.
10710 * aarch64-tdep.c: Revert.
10711 * aarch64-ravenscar-thread.c: Revert.
10712 * aarch64-newlib-tdep.c: Revert.
10713 * aarch64-linux-tdep.c: Revert.
10714 * aarch64-linux-nat.c: Revert.
10715 * aarch64-fbsd-tdep.c: Revert.
10716 * aarch64-fbsd-nat.c: Revert.
10717 * aarch32-linux-nat.c: Revert.
10719 2019-04-05 Tom Tromey <tom@tromey.com>
10721 * ft32-tdep.c: Sort headers.
10722 * frv-tdep.c: Sort headers.
10723 * frv-linux-tdep.c: Sort headers.
10724 * frame.c: Sort headers.
10725 * frame-unwind.c: Sort headers.
10726 * frame-base.c: Sort headers.
10727 * fork-child.c: Sort headers.
10728 * findvar.c: Sort headers.
10729 * findcmd.c: Sort headers.
10730 * filesystem.c: Sort headers.
10731 * filename-seen-cache.h: Sort headers.
10732 * filename-seen-cache.c: Sort headers.
10733 * fbsd-tdep.c: Sort headers.
10734 * fbsd-nat.h: Sort headers.
10735 * fbsd-nat.c: Sort headers.
10736 * f-valprint.c: Sort headers.
10737 * f-typeprint.c: Sort headers.
10738 * f-lang.c: Sort headers.
10739 * extension.h: Sort headers.
10740 * extension.c: Sort headers.
10741 * extension-priv.h: Sort headers.
10742 * expprint.c: Sort headers.
10743 * exec.h: Sort headers.
10744 * exec.c: Sort headers.
10745 * exceptions.c: Sort headers.
10746 * event-top.c: Sort headers.
10747 * event-loop.c: Sort headers.
10748 * eval.c: Sort headers.
10749 * elfread.c: Sort headers.
10750 * dwarf2read.h: Sort headers.
10751 * dwarf2read.c: Sort headers.
10752 * dwarf2loc.c: Sort headers.
10753 * dwarf2expr.h: Sort headers.
10754 * dwarf2expr.c: Sort headers.
10755 * dwarf2-frame.c: Sort headers.
10756 * dwarf2-frame-tailcall.c: Sort headers.
10757 * dwarf-index-write.h: Sort headers.
10758 * dwarf-index-write.c: Sort headers.
10759 * dwarf-index-common.c: Sort headers.
10760 * dwarf-index-cache.h: Sort headers.
10761 * dwarf-index-cache.c: Sort headers.
10762 * dummy-frame.c: Sort headers.
10763 * dtrace-probe.c: Sort headers.
10764 * disasm.h: Sort headers.
10765 * disasm.c: Sort headers.
10766 * disasm-selftests.c: Sort headers.
10767 * dictionary.c: Sort headers.
10768 * dicos-tdep.c: Sort headers.
10769 * demangle.c: Sort headers.
10770 * dcache.h: Sort headers.
10771 * dcache.c: Sort headers.
10772 * darwin-nat.h: Sort headers.
10773 * darwin-nat.c: Sort headers.
10774 * darwin-nat-info.c: Sort headers.
10775 * d-valprint.c: Sort headers.
10776 * d-namespace.c: Sort headers.
10777 * d-lang.c: Sort headers.
10778 * ctf.c: Sort headers.
10779 * csky-tdep.c: Sort headers.
10780 * csky-linux-tdep.c: Sort headers.
10781 * cris-tdep.c: Sort headers.
10782 * cris-linux-tdep.c: Sort headers.
10783 * cp-valprint.c: Sort headers.
10784 * cp-support.c: Sort headers.
10785 * cp-namespace.c: Sort headers.
10786 * cp-abi.c: Sort headers.
10787 * corelow.c: Sort headers.
10788 * corefile.c: Sort headers.
10789 * continuations.c: Sort headers.
10790 * completer.h: Sort headers.
10791 * completer.c: Sort headers.
10792 * complaints.c: Sort headers.
10793 * coffread.c: Sort headers.
10794 * coff-pe-read.c: Sort headers.
10795 * cli-out.h: Sort headers.
10796 * cli-out.c: Sort headers.
10797 * charset.c: Sort headers.
10798 * c-varobj.c: Sort headers.
10799 * c-valprint.c: Sort headers.
10800 * c-typeprint.c: Sort headers.
10801 * c-lang.c: Sort headers.
10802 * buildsym.c: Sort headers.
10803 * buildsym-legacy.c: Sort headers.
10804 * build-id.h: Sort headers.
10805 * build-id.c: Sort headers.
10806 * btrace.c: Sort headers.
10807 * bsd-uthread.c: Sort headers.
10808 * breakpoint.h: Sort headers.
10809 * breakpoint.c: Sort headers.
10810 * break-catch-throw.c: Sort headers.
10811 * break-catch-syscall.c: Sort headers.
10812 * break-catch-sig.c: Sort headers.
10813 * blockframe.c: Sort headers.
10814 * block.c: Sort headers.
10815 * bfin-tdep.c: Sort headers.
10816 * bfin-linux-tdep.c: Sort headers.
10817 * bfd-target.c: Sort headers.
10818 * bcache.c: Sort headers.
10819 * ax-general.c: Sort headers.
10820 * ax-gdb.h: Sort headers.
10821 * ax-gdb.c: Sort headers.
10822 * avr-tdep.c: Sort headers.
10823 * auxv.c: Sort headers.
10824 * auto-load.c: Sort headers.
10825 * arm-wince-tdep.c: Sort headers.
10826 * arm-tdep.c: Sort headers.
10827 * arm-symbian-tdep.c: Sort headers.
10828 * arm-pikeos-tdep.c: Sort headers.
10829 * arm-obsd-tdep.c: Sort headers.
10830 * arm-nbsd-tdep.c: Sort headers.
10831 * arm-nbsd-nat.c: Sort headers.
10832 * arm-linux-tdep.c: Sort headers.
10833 * arm-linux-nat.c: Sort headers.
10834 * arm-fbsd-tdep.c: Sort headers.
10835 * arm-fbsd-nat.c: Sort headers.
10836 * arm-bsd-tdep.c: Sort headers.
10837 * arch-utils.c: Sort headers.
10838 * arc-tdep.c: Sort headers.
10839 * arc-newlib-tdep.c: Sort headers.
10840 * annotate.h: Sort headers.
10841 * annotate.c: Sort headers.
10842 * amd64-windows-tdep.c: Sort headers.
10843 * amd64-windows-nat.c: Sort headers.
10844 * amd64-tdep.c: Sort headers.
10845 * amd64-sol2-tdep.c: Sort headers.
10846 * amd64-obsd-tdep.c: Sort headers.
10847 * amd64-obsd-nat.c: Sort headers.
10848 * amd64-nbsd-tdep.c: Sort headers.
10849 * amd64-nbsd-nat.c: Sort headers.
10850 * amd64-nat.c: Sort headers.
10851 * amd64-linux-tdep.c: Sort headers.
10852 * amd64-linux-nat.c: Sort headers.
10853 * amd64-fbsd-tdep.c: Sort headers.
10854 * amd64-fbsd-nat.c: Sort headers.
10855 * amd64-dicos-tdep.c: Sort headers.
10856 * amd64-darwin-tdep.c: Sort headers.
10857 * amd64-bsd-nat.c: Sort headers.
10858 * alpha-tdep.c: Sort headers.
10859 * alpha-obsd-tdep.c: Sort headers.
10860 * alpha-nbsd-tdep.c: Sort headers.
10861 * alpha-mdebug-tdep.c: Sort headers.
10862 * alpha-linux-tdep.c: Sort headers.
10863 * alpha-linux-nat.c: Sort headers.
10864 * alpha-bsd-tdep.c: Sort headers.
10865 * alpha-bsd-nat.c: Sort headers.
10866 * aix-thread.c: Sort headers.
10867 * agent.c: Sort headers.
10868 * addrmap.c: Sort headers.
10869 * ada-varobj.c: Sort headers.
10870 * ada-valprint.c: Sort headers.
10871 * ada-typeprint.c: Sort headers.
10872 * ada-tasks.c: Sort headers.
10873 * ada-lang.c: Sort headers.
10874 * aarch64-tdep.c: Sort headers.
10875 * aarch64-ravenscar-thread.c: Sort headers.
10876 * aarch64-newlib-tdep.c: Sort headers.
10877 * aarch64-linux-tdep.c: Sort headers.
10878 * aarch64-linux-nat.c: Sort headers.
10879 * aarch64-fbsd-tdep.c: Sort headers.
10880 * aarch64-fbsd-nat.c: Sort headers.
10881 * aarch32-linux-nat.c: Sort headers.
10883 2019-04-04 Tom Tromey <tom@tromey.com>
10885 * varobj.c (varobj_create): Update.
10886 * rust-exp.y (struct rust_parser) <update_innermost_block,
10887 lookup_symbol>: New methods.
10888 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10890 (rust_parser::rust_lookup_type)
10891 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10892 * printcmd.c (display_command, do_one_display): Update.
10893 * parser-defs.h (struct parser_state) <parser_state>: Add
10894 "tracker" parameter.
10895 (block_tracker): New member.
10896 (class innermost_block_tracker) <innermost_block_tracker>: Add
10898 <reset>: Remove method.
10899 (innermost_block): Don't declare.
10900 (null_post_parser): Update.
10901 * parse.c (innermost_block): Remove global.
10902 (write_dollar_variable): Update.
10903 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10904 Remove "tracker_types" parameter.
10905 (parse_expression): Add "tracker" parameter.
10906 (parse_expression_for_completion): Update.
10907 (null_post_parser): Add "tracker" parameter.
10908 * p-exp.y: Update rules.
10909 * m2-exp.y: Update rules.
10910 * language.h (struct language_defn) <la_post_parser>: Add
10911 "tracker" parameter.
10912 * go-exp.y: Update rules.
10913 * f-exp.y: Update rules.
10914 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10916 * d-exp.y: Update rules.
10917 * c-exp.y: Update rules.
10918 * breakpoint.c (set_breakpoint_condition): Create an
10919 innermost_block_tracker.
10920 (watch_command_1): Likewise.
10921 * ada-lang.c (resolve): Add "tracker" parameter.
10922 (resolve_subexp): Likewise.
10923 * ada-exp.y (write_var_from_sym): Update.
10925 2019-04-04 Tom Tromey <tom@tromey.com>
10927 * type-stack.h: New file.
10928 * type-stack.c: New file.
10929 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10931 (insert_into_type_stack, insert_type, push_type, push_type_int)
10932 (insert_type_address_space, pop_type, pop_type_int)
10933 (pop_typelist, pop_type_stack, append_type_stack)
10934 (push_type_stack, get_type_stack, push_typelist)
10935 (follow_type_instance_flags, follow_types): Don't declare.
10936 * parse.c (type_stack): Remove global.
10937 (parse_exp_in_context): Update.
10938 (insert_into_type_stack, insert_type, push_type, push_type_int)
10939 (insert_type_address_space, pop_type, pop_type_int)
10940 (pop_typelist, pop_type_stack, append_type_stack)
10941 (push_type_stack, get_type_stack, push_typelist)
10942 (follow_type_instance_flags, follow_types): Remove (moved to
10944 * f-exp.y (type_stack): New global.
10946 (push_kind_type, f_parse): Update.
10947 * d-exp.y (type_stack): New global.
10950 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10952 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10953 (HFILES_NO_SRCDIR): Add type-stack.h.
10955 2019-04-04 Tom Tromey <tom@tromey.com>
10957 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10958 (rust_parser::convert_ast_to_expression, rust_parse)
10959 (rust_lex_test_completion, rust_lex_tests): Update.
10960 * parser-defs.h (struct expr_completion_state): New.
10961 (struct parser_state) <parser_state>: Add completion parameter.
10962 <mark_struct_expression, mark_completion_tag>: New methods.
10963 <parse_completion, m_completion_state>: New members.
10964 (prefixify_expression, null_post_parser): Update.
10965 (mark_struct_expression, mark_completion_tag): Don't declare.
10966 * parse.c (parse_completion, expout_last_struct)
10967 (expout_tag_completion_type, expout_completion_name): Remove
10969 (parser_state::mark_struct_expression)
10970 (parser_state::mark_completion_tag): Now methods.
10971 (prefixify_expression): Add last_struct parameter.
10972 (prefixify_subexp): Likewise.
10973 (parse_exp_1): Update.
10974 (parse_exp_in_context): Add cstate parameter. Update.
10975 (parse_expression_for_completion): Create an
10976 expr_completion_state.
10977 (null_post_parser): Add "completion" parameter.
10978 * p-exp.y: Update rules.
10980 * language.h (struct language_defn) <la_post_parser>: Add
10981 "completing" parameter.
10982 * go-exp.y: Update rules.
10983 (lex_one_token): Update.
10984 * expression.h (parse_completion): Don't declare.
10985 * d-exp.y: Update rules.
10986 (lex_one_token): Update rules.
10987 * c-exp.y: Update rules.
10988 (lex_one_token): Update.
10989 * ada-lang.c (resolve): Add "parse_completion" parameter.
10990 (resolve_subexp): Likewise.
10991 (ada_resolve_function): Likewise.
10993 2019-04-04 Tom Tromey <tom@tromey.com>
10995 * parser-defs.h (struct parser_state) <start_arglist,
10996 end_arglist>: New methods.
10997 <arglist_len, m_funcall_chain>: New members.
10998 (arglist_len, start_arglist, end_arglist): Don't declare.
10999 * parse.c (arglist_len, funcall_chain): Remove global.
11000 (start_arglist, end_arglist): Remove functions.
11001 (parse_exp_in_context): Update.
11002 * p-exp.y: Update rules.
11003 * m2-exp.y: Update rules.
11004 * go-exp.y: Update rules.
11005 * f-exp.y: Update rules.
11006 * d-exp.y: Update rules.
11007 * c-exp.y: Update rules.
11009 2019-04-04 Tom Tromey <tom@tromey.com>
11011 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11012 lex_operator, push_back>: New methods.
11014 (rust_parser::lex_hex, lex_escape): Rename and update.
11015 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11016 (rust_parser::lex_operator): Rename and update.
11017 (rust_parser::lex_number, rustyylex, rustyyerror)
11018 (rust_lex_test_init, rust_lex_test_sequence)
11019 (rust_lex_test_push_back, rust_lex_tests): Update.
11020 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11022 <lexptr, prev_lexptr>: New members.
11023 (lexptr, prev_lexptr): Don't declare.
11024 * parse.c (lexptr, prev_lexptr): Remove globals.
11025 (parse_exp_in_context): Update.
11026 * p-exp.y (yylex, yyerror): Update.
11027 * m2-exp.y (parse_number, yylex, yyerror): Update.
11028 * go-exp.y (lex_one_token, yyerror): Update.
11029 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11030 * d-exp.y (lex_one_token, yyerror): Update.
11031 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11032 (lex_one_token, yyerror): Update.
11033 * ada-lex.l (YY_INPUT): Update.
11034 (rewind_to_char): Update.
11035 * ada-exp.y (yyerror): Update.
11037 2019-04-04 Tom Tromey <tom@tromey.com>
11039 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11040 * parser-defs.h (struct parser_state) <parser_state>: Add new
11042 <comma_terminates>: New member.
11043 (comma_terminates): Don't declare global.
11044 * parse.c (comma_terminates): Remove global.
11045 (parse_exp_in_context): Update.
11046 * p-exp.y (yylex): Update.
11047 * m2-exp.y (yylex): Update.
11048 * go-exp.y (lex_one_token): Update.
11049 * f-exp.y (yylex): Update.
11050 * d-exp.y (lex_one_token): Update.
11051 * c-exp.y (lex_one_token): Update.
11052 * ada-lex.l: Update.
11054 2019-04-04 Tom Tromey <tom@tromey.com>
11056 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11057 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11058 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11059 * parser-defs.h (paren_depth): Don't declare.
11060 * parse.c (paren_depth): Remove global.
11061 (parse_exp_in_context): Update.
11062 * p-exp.y (paren_depth): New global.
11063 (pascal_parse): Initialize it.
11064 * m2-exp.y (paren_depth): New global.
11065 (m2_parse): Initialize it.
11066 * go-exp.y (paren_depth): New global.
11067 (go_parse): Initialize it.
11068 * f-exp.y (paren_depth): New global.
11069 (f_parse): Initialize it.
11070 * d-exp.y (paren_depth): New global.
11071 (d_parse): Initialize it.
11072 * c-exp.y (paren_depth): New global.
11073 (c_parse): Initialize it.
11074 * ada-lex.l (paren_depth): New global.
11075 (lexer_init): Initialize it.
11077 2019-04-04 Tom Tromey <tom@tromey.com>
11079 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11080 (rust_parser::convert_ast_to_type)
11081 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11082 * parser-defs.h (struct parser_state) <parser_state>: Add
11083 parameters. Initialize new members.
11084 <expression_context_block, expression_context_pc>: New members.
11085 * parse.c (expression_context_block, expression_context_pc):
11087 (parse_exp_in_context): Update.
11088 * p-exp.y: Update all rules.
11090 * m2-exp.y: Update all rules.
11092 * go-exp.y (yylex): Update.
11093 * f-exp.y (yylex): Update.
11094 * d-exp.y: Update all rules.
11096 * c-exp.y: Update all rules.
11097 (lex_one_token, classify_name, yylex, c_parse): Update.
11098 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11100 2019-04-04 Tom Tromey <tom@tromey.com>
11102 * gdbarch.h, gdbarch.c: Rebuild.
11103 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11105 (struct stap_parse_info): Replace "parser_state" with
11107 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11108 (parser_state): New class.
11109 * parse.c (expr_builder): Rename.
11110 (expr_builder::release): Rename.
11111 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11112 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11113 (write_exp_elt_longcst, write_exp_elt_floatcst)
11114 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11115 (write_exp_string_vector, write_exp_bitstring)
11116 (write_exp_msymbol, mark_struct_expression)
11117 (write_dollar_variable)
11118 (insert_type_address_space, increase_expout_size): Replace
11119 "parser_state" with "expr_builder".
11120 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11121 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11122 "parser_state" with "expr_builder".
11124 2019-04-04 Tom Tromey <tom@tromey.com>
11126 * rust-exp.y: Replace "parse_language" with method call.
11128 (yylex): Replace "parse_language" with method call.
11130 (yylex): Replace "parse_language" with method call.
11131 * go-exp.y (classify_name): Replace "parse_language" with method
11133 * f-exp.y (yylex): Replace "parse_language" with method call.
11134 * d-exp.y (lex_one_token): Replace "parse_language" with method
11137 (lex_one_token, classify_name, yylex): Replace "parse_language"
11139 * ada-exp.y (find_primitive_type, type_char)
11140 (type_system_address): Replace "parse_language" with method call.
11142 2019-04-04 Tom Tromey <tom@tromey.com>
11144 * rust-exp.y: Replace "parse_gdbarch" with method call.
11145 * parse.c (write_dollar_variable, insert_type_address_space):
11146 Replace "parse_gdbarch" with method call.
11147 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11149 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11151 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11152 "parse_gdbarch" with method call.
11153 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11155 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11156 "parse_gdbarch" with method call.
11157 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11158 "parse_gdbarch" with method call.
11159 * c-exp.y (parse_type, parse_number, classify_name): Replace
11160 "parse_gdbarch" with method call.
11161 * ada-lex.l: Replace "parse_gdbarch" with method call.
11162 * ada-exp.y (parse_type, find_primitive_type, type_char)
11163 (type_system_address): Replace "parse_gdbarch" with method call.
11165 2019-04-04 Tom Tromey <tom@tromey.com>
11167 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11168 * stap-probe.c (stap_parse_argument): Update.
11169 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11170 initial_size parameter.
11171 * rust-exp.y (rust_lex_tests): Update.
11172 * parse.c (parser_state): Update.
11173 (parse_exp_in_context): Update.
11174 * parser-defs.h (struct parser_state) <parser_state>: Remove
11175 "initial_size" parameter.
11177 2019-04-04 Tom Tromey <tom@tromey.com>
11179 * parser-defs.h (increase_expout_size): Don't declare.
11180 * parse.c (increase_expout_size): Now static.
11182 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11184 * gnu-nat.c (gnu_nat_target::wait): Fix
11185 target_waitstatus_to_string call.
11187 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11189 * eval.c (evaluate_subexp_standard): Handle internal functions
11190 during Fortran function call handling.
11192 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11194 * NEWS: Mention new internal functions.
11195 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11196 (read_base_type): Use dwarf2_init_complex_target_type.
11197 * value.c (creal_internal_fn): New function.
11198 (cimag_internal_fn): New function.
11199 (_initialize_values): Register new internal functions.
11201 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11203 * infrun.c (stop_all_threads): If debug_infrun, always
11204 trace the wait status after wait_one, using
11205 target_waitstatus_to_string and target_pid_to_str.
11206 (handle_inferior_event): Replace various trace of
11207 wait status kind by a single trace.
11208 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11209 wait status kind image by target_waitstatus_to_string.
11210 * target/waitstatus.c (target_waitstatus_to_string): Fix
11213 2019-04-01 Tom Tromey <tromey@adacore.com>
11216 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11218 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11219 Pedro Alves <palves@redhat.com>
11221 * top.c (quit_force): Call 'finalize_values'.
11222 * value.c (finalize_values): New function.
11223 * value.h (finalize_values): Declare.
11225 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11227 * NEWS: Announce $_gdb_major and $_gdb_minor.
11229 * top.c (init_gdb_version_vars): New function.
11230 (gdb_init): Call init_gdb_version_vars.
11232 2019-03-29 Tom Tromey <tromey@adacore.com>
11234 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11235 help text. Remove dead code.
11237 2019-03-29 Keith Seitz <keiths@redhat.com>
11239 From Siddhesh Poyarekar:
11240 * f-lang.h (f77_get_upperbound): Return LONGEST.
11241 (f77_get_lowerbound): Likewise.
11242 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11243 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11245 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11246 plongest to format print it.
11247 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11248 (f77_get_upperbound): Likewise.
11249 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11250 LOWER_BOUND to LONGEST.
11251 (f77_create_arrayprint_offset_tbl): Likewise.
11253 2019-03-29 Keith Seitz <keiths@redhat.com>
11255 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11256 %s/pulongest for TYPE_LENGTH instead of %d in format
11258 * ada-typerint.c (ada_print_type): Likewise.
11259 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11260 * compile/compile-c-support.c (generate_register_struct): Likewise.
11261 * gdbtypes.c (recursive_dump_type): Likewise.
11262 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11263 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11264 instead of %d in format strings.
11265 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11266 to std::min to ULONGEST.
11267 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11268 instead of %d in format strings.
11269 * tracepoint.c (info_scope_command): Likewise.
11270 * typeprint.c (print_offset_data::update)
11271 (print_offset_data::finish): Likewise.
11272 * xtensa-tdep.c (xtensa_store_return_value)
11273 (xtensa_push_dummy_call): Likewise.
11275 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11277 * windows-nat.c (display_selector): Fixed format specifications
11280 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11282 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11284 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11286 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11287 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11288 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11289 (nios2_linux_init_abi): Install it.
11291 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11293 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11295 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11297 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11299 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11300 Tom Tromey <tromey@adacore.com>
11302 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11304 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11306 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11307 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11308 method to compute the bounds of range types. Also print "[evaluated]"
11309 if the bounds' values come from a dynamic evaluation.
11311 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11313 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11314 whitespace when pretty printing is on.
11316 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11318 * ppc-linux-nat.c: Add include.
11320 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11322 * NEWS: Mention AArch64 Pointer Authentication.
11324 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11326 * arm-linux-nat.c: Add include.
11328 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11330 * source-cache.c (source_cache::get_source_lines): Re-read
11331 fullname after calling open_source_file.
11333 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11335 * NEWS: Mention TLS support for FreeBSD.
11337 2019-03-25 Tom Tromey <tromey@adacore.com>
11339 * minsyms.c (BUNCH_SIZE): Update comment.
11340 (~minimal_symbol_reader): Remove old comment.
11341 (compact_minimal_symbols): Update comment.
11342 (minimal_symbol_reader::install): Remove old comment. Update
11345 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11347 * s390-linux-nat.c: Add include.
11349 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11351 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11352 Call linux_get_hwcap.
11353 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11355 (aarch64_linux_get_hwcap): Remove function.
11356 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11358 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11360 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11361 * linux-tdep.c (linux_get_hwcap): Add function.
11362 (linux_get_hwcap2): Likewise.
11363 * linux-tdep.h (linux_get_hwcap): Add declaration.
11364 (linux_get_hwcap2): Likewise.
11365 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11366 (ppc_linux_get_hwcap2): Likewise.
11367 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11369 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11370 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11371 (ppc_linux_nat_target::read_description): Likewise.
11372 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11373 * s390-linux-nat.c: Likewise.
11374 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11376 2019-03-24 Tom Tromey <tom@tromey.com>
11378 * ada-lang.c (standard_lookup): Simplify initialization.
11379 (ada_lookup_symbol_nonlocal): Simplify return.
11380 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11381 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11382 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11383 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11385 * solib.c (solib_global_lookup): Simplify.
11386 * symtab.c (null_block_symbol): Remove.
11387 (symbol_cache_lookup): Simplify returns.
11388 (lookup_language_this): Simplify returns.
11389 (lookup_symbol_aux): Simplify return.
11390 (lookup_local_symbol): Simplify returns.
11391 (lookup_global_symbol_from_objfile): Simplify return.
11392 (lookup_symbol_in_objfile_symtabs)
11393 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11394 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11395 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11396 * cp-namespace.c (cp_lookup_bare_symbol)
11397 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11398 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11399 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11400 (cp_lookup_symbol_via_imports): Simplify initialization.
11401 (find_symbol_in_baseclass): Likewise.
11402 * symtab.h (null_block_symbol): Remove.
11403 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11404 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11405 (d_lookup_symbol_module): Likewise.
11406 (find_symbol_in_baseclass): Simplify initialization.
11408 2019-03-24 Tom Tromey <tom@tromey.com>
11410 * expression.h: Don't include symtab.h.
11411 (struct block): Forward declare.
11413 2019-03-24 Tom Tromey <tom@tromey.com>
11415 * c-exp.y (typebase): Remove casts.
11416 * gdbtypes.c (lookup_unsigned_typename, )
11417 (lookup_signed_typename): Remove cast.
11418 * eval.c (parse_to_comma_and_eval): Remove cast.
11419 * parse.c (write_dollar_variable): Remove cast.
11420 * block.h (struct block) <superblock>: Now const.
11421 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11422 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11423 (map_block): Make "block" const.
11424 * symfile.h (struct quick_symbol_functions)
11425 <map_matching_symbols>: Constify block argument to "callback".
11426 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11428 (find_pc_sect_compunit_symtab): Make "b" const.
11429 (find_symbol_at_address): Likewise.
11430 (search_symbols): Likewise.
11431 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11432 (dw2_debug_names_lookup_symbol): Likewise.
11433 (dw2_map_matching_symbols): Update.
11434 * p-valprint.c (pascal_val_print): Remove "block".
11435 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11436 (aux_add_nonlocal_symbols): Make "block" const.
11437 (resolve_subexp): Remove cast.
11438 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11440 (iterate_over_file_blocks): Likewise.
11441 * f-exp.y (%union) <bval>: Remove.
11442 * coffread.c (patch_opaque_types): Make "b" const.
11443 * spu-tdep.c (spu_catch_start): Make "block" const.
11444 * c-valprint.c (print_unpacked_pointer): Remove "block".
11445 * symmisc.c (dump_symtab_1): Make "b" const.
11446 (block_depth): Make "block" const.
11447 * d-exp.y (%union) <bval>: Remove.
11448 * cp-support.h (cp_lookup_rtti_type): Update.
11449 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11450 * psymtab.c (psym_lookup_symbol): Make "block" const.
11451 (maintenance_check_psymtabs): Make "b" const.
11452 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11453 (enumerate_locals, enumerate_args): Update.
11454 * python/py-symtab.c (stpy_global_block): Make "block" const.
11455 (stpy_static_block): Likewise.
11456 * inline-frame.c (block_starting_point_at): Make "new_block"
11458 * block.c (find_block_in_blockvector): Make return type const.
11459 (blockvector_for_pc_sect): Make "b" const.
11460 (find_block_in_blockvector): Make "b" const.
11462 2019-03-23 Tom Tromey <tom@tromey.com>
11464 * varobj.c (varobj_create): Update.
11465 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11466 * printcmd.c (display_command, do_one_display): Don't reset
11468 * parser-defs.h (enum innermost_block_tracker_type): Move to
11470 (innermost_block): Update comment.
11471 * parse.c (parse_exp_1): Add tracker_types parameter.
11472 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11473 tracker_types parameter. Reset innermost_block.
11474 (parse_exp_in_context): Remove.
11475 (parse_expression_for_completion): Update.
11476 * objfiles.c (~objfile): Don't reset expression_context_block or
11478 * expression.h (enum innermost_block_tracker_type): Move from
11480 (parse_exp_1): Add tracker_types parameter.
11481 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11482 reset innermost_block.
11484 2019-03-23 Tom Tromey <tom@tromey.com>
11486 * objfiles.h: Include bcache.h.
11488 2019-03-23 Tom Tromey <tom@tromey.com>
11490 * linespec.c (get_current_search_block): Use
11491 scoped_restore_current_language.
11492 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11494 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11495 Jiong Wang <jiong.wang@arm.com>
11497 * aarch64-linux-tdep.c
11498 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11500 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11502 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11503 Jiong Wang <jiong.wang@arm.com>
11505 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11507 (aarch64_analyze_prologue_test): Add PACIASP test.
11508 (aarch64_prologue_prev_register): Unmask PC value.
11510 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11511 Jiong Wang <jiong.wang@arm.com>
11513 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11514 (aarch64_dwarf2_prev_register): Unmask PC value.
11515 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11516 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11517 DW_CFA_AARCH64_negate_ra_state.
11518 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11520 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11521 Jiong Wang <jiong.wang@arm.com>
11523 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11525 (aarch64_pseudo_register_name): Likewise.
11526 (aarch64_pseudo_register_type): Likewise.
11527 (aarch64_pseudo_register_reggroup_p): Likewise.
11528 (aarch64_gdbarch_init): Add pauth registers.
11529 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11530 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11531 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11532 (struct gdbarch_tdep): Add regnum for ra_state.
11534 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11535 Jiong Wang <jiong.wang@arm.com>
11537 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11539 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11540 Jiong Wang <jiong.wang@arm.com>
11542 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11544 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11545 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11546 (aarch64_gdbarch_init): Add puth registers.
11547 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11548 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11549 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11551 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11552 Jiong Wang <jiong.wang@arm.com>
11554 * aarch64-linux-nat.c
11555 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11556 * aarch64-linux-tdep.c
11557 (aarch64_linux_core_read_description): Likewise.
11558 (aarch64_linux_get_hwcap): New function.
11559 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11560 (aarch64_linux_get_hwcap): New declaration.
11562 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11563 Jiong Wang <jiong.wang@arm.com>
11565 * aarch64-linux-nat.c
11566 (aarch64_linux_nat_target::read_description): Add pauth param.
11567 * aarch64-linux-tdep.c
11568 (aarch64_linux_core_read_description): Likewise.
11569 * aarch64-tdep.c (struct target_desc): Add in pauth.
11570 (aarch64_read_description): Add pauth param.
11571 (aarch64_gdbarch_init): Likewise.
11572 * aarch64-tdep.h (aarch64_read_description): Likewise.
11573 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11574 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11575 * features/Makefile: Add new files.
11576 * features/aarch64-pauth.c: New file.
11577 * features/aarch64-pauth.xml: New file.
11579 2019-03-20 Tom Tromey <tromey@adacore.com>
11581 * infrun.c (handle_inferior_event): Rename from
11582 handle_inferior_event_1. Create a scoped_value_mark.
11583 (handle_inferior_event): Remove.
11585 2019-03-19 Tom Tromey <tromey@adacore.com>
11587 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11588 * infrun.h (print_stop_event): Add "displays" parameter.
11589 * infrun.c (print_stop_event): Add "displays" parameter.
11591 2019-03-19 Pedro Alves <palves@redhat.com>
11593 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11594 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11595 to -1. Fix TABs vs spaces.
11596 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11597 * tui/tui-out.h (tui_ui_out) Add intro comments.
11598 <m_line, m_start_of_line>: In-class initialize, and add describing
11601 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11603 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11605 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11607 2019-03-18 Pedro Alves <palves@redhat.com>
11608 Eli Zaretskii <eliz@gnu.org>
11610 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11611 m_line and m_start_of_line.
11613 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11615 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11616 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11617 it returns a newline. This fixes a regression in TU mode, whereby
11618 the next line is output on the same screen line as the user input.
11620 2019-03-18 Tom Tromey <tromey@adacore.com>
11622 * minsyms.c (minimal_symbol_reader::install): Remove call to
11625 2019-03-18 Pedro Alves <palves@redhat.com>
11627 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11629 (apply_style): New, factored out from ...
11630 (apply_ansi_escape): ... this. Handle reverse video mode.
11631 (tui_set_reverse_mode): New function.
11632 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11633 * tui/tui-winsource.c (tui_show_source_line): Use
11634 tui_set_reverse_mode instead of setting A_STANDOUT.
11635 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11636 New setter methods.
11638 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11640 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11643 2019-03-18 Tom Tromey <tromey@adacore.com>
11645 * ada-lang.c (empty_array): Add "high" parameter.
11646 (ada_evaluate_subexp): Update.
11648 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11650 * unittests/string_view-selftests.c: Define
11651 _initialize_string_view_selftests unconditionally.
11653 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11656 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11658 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11661 * windows-nat.c (display_selector): Fix format specifiers.
11663 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11665 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11666 tui_refill_source_window instead of tui_refresh_win, to update the
11667 current execution line. This fixes redisplay of the current line
11668 when stepping through the code with "next" or "step".
11670 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11672 * source-cache.c (source_cache::get_source_lines): Call
11673 find_source_lines to initialize s->nlines. This fixes vertical
11674 scrolling of TUI source window when the DOWN arrow is pressed.
11676 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11678 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11679 linux-thread-db.c (_initialize_thread_db): Likewise.
11681 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11683 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11684 wclrtoeol in tui_show_source_line". This reverts changes made in
11685 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11687 2019-03-15 Tom Tromey <tom@tromey.com>
11689 * symtab.h (struct minimal_symbol): Derive from
11690 general_symbol_info.
11691 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11692 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11693 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11694 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11695 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11696 (MSYMBOL_SEARCH_NAME): Update.
11697 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11698 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11699 * minsyms.c (minimal_symbol_reader::record_full): Update.
11701 2019-03-15 Tom Tromey <tom@tromey.com>
11703 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11705 2019-03-15 Tom Tromey <tom@tromey.com>
11707 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11708 unique_xmalloc_ptr.
11709 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11711 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11712 (build_minimal_symbol_hash_tables)
11713 (minimal_symbol_reader::install): Update.
11715 2019-03-15 Tom Tromey <tom@tromey.com>
11717 * symtab.c (create_demangled_names_hash): Update.
11718 (symbol_set_names): Update.
11719 * objfiles.h (struct objfile_per_bfd_storage)
11720 <demangled_names_hash>: Now an htab_up.
11721 * objfiles.c (objfile_per_bfd_storage): Simplify.
11723 2019-03-15 Tom Tromey <tom@tromey.com>
11725 * objfiles.h (struct objfile_per_bfd_storage): Declare
11727 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11729 (get_objfile_bfd_data): Use new. Don't initialize
11731 (free_objfile_per_bfd_storage): Remove.
11732 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11734 2019-03-15 Tom Tromey <tom@tromey.com>
11736 * symfile.c (reread_symbols): Update.
11737 * objfiles.c (objfile::objfile): Update.
11738 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11739 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11741 (minimal_symbol_reader::install): Update.
11742 (terminate_minimal_symbol_table): Remove.
11743 * jit.c (jit_object_close_impl): Update.
11745 2019-03-15 Tom Tromey <tom@tromey.com>
11747 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11750 2019-03-15 Tom Tromey <tom@tromey.com>
11752 * objfiles.h (struct objfile_per_bfd_storage)
11753 <demangled_hash_languages>: Now a bitset.
11754 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11755 (lookup_minimal_symbol): Update.
11757 2019-03-15 Tom Tromey <tom@tromey.com>
11759 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11760 Don't return the symbol.
11761 * coffread.c (record_minimal_symbol): Use record_full.
11763 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11765 The MS-Windows port of ncurses fails to switch to a color pair if
11766 one or both of the colors are the implicit default colors. This
11767 change records the default colors when TUI is initialized, and
11768 then specifies them explicitly when a color pair uses the default
11769 colors. This allows color styling in TUI mode on MS-Windows.
11771 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11773 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11774 colors in ncurses_norm_attr.
11775 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11776 "none", replace it with the default color recorded in
11779 2019-03-14 Tom Tromey <tromey@adacore.com>
11781 * source-cache.h (class source_cache) <get_source_lines>: Return
11783 * source-cache.c (source_cache::extract_lines): Handle case where
11784 first_pos==npos. Return std::string.
11785 (source_cache::get_source_lines): Update.
11787 2019-03-14 Tom Tromey <tromey@adacore.com>
11789 * NEWS: Add item for "style sources" commands.
11790 * source-cache.c (source_cache::get_source_lines): Check
11792 * cli/cli-style.c (source_styling): New global.
11793 (_initialize_cli_style): Add "style sources" commands.
11794 (show_style_sources): New function.
11795 * cli/cli-style.h (source_styling): Declare.
11797 2019-03-14 Pedro Alves <palves@redhat.com>
11798 Tom Tromey <tromey@adacore.com>
11800 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11801 * tui/tui-winsource.c (tui_refill_source_window): New function,
11803 (tui_horizontal_source_scroll): ... here. Move some logic.
11804 * cli/cli-style.c (set_style_enabled): Notify new observable.
11805 * tui/tui-hooks.c (tui_redisplay_source): New function.
11806 (tui_attach_detach_observers): Attach or detach
11807 tui_redisplay_source.
11808 * observable.h (source_styling_changed): New observable.
11809 * observable.c: Define source_styling_changed observable.
11811 2019-03-13 Tom Tromey <tromey@adacore.com>
11813 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11814 (i386_gnu_nat_target::store_registers): Update.
11815 * target-debug.h (target_debug_print_std_string): New macro.
11816 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11817 * windows-tdep.c (display_one_tib): Update.
11818 * tui/tui-stack.c (tui_make_status_line): Update.
11819 * top.c (print_inferior_quit_action): Update.
11820 * thread.c (thr_try_catch_cmd): Update.
11821 (add_thread_with_info): Update.
11822 (thread_target_id_str): Update.
11823 (thr_try_catch_cmd): Update.
11824 (thread_command): Update.
11825 (thread_find_command): Update.
11826 * record-btrace.c (record_btrace_target::info_record)
11827 (record_btrace_resume_thread, record_btrace_target::resume)
11828 (record_btrace_cancel_resume, record_btrace_step_thread)
11829 (record_btrace_target::wait, record_btrace_target::wait)
11830 (record_btrace_target::wait, record_btrace_target::stop): Update.
11831 * progspace.c (print_program_space): Update.
11832 * process-stratum-target.c
11833 (process_stratum_target::thread_address_space): Update.
11834 * linux-fork.c (linux_fork_mourn_inferior)
11835 (detach_checkpoint_command, info_checkpoints_command)
11836 (linux_fork_context): Update.
11837 (linux_fork_detach): Update.
11838 (class scoped_switch_fork_info): Update.
11839 (delete_checkpoint_command): Update.
11840 * infrun.c (follow_fork_inferior): Update.
11841 (follow_fork_inferior): Update.
11842 (proceed_after_vfork_done): Update.
11843 (handle_vfork_child_exec_or_exit): Update.
11844 (follow_exec): Update.
11845 (displaced_step_prepare_throw): Update.
11846 (displaced_step_restore): Update.
11847 (start_step_over): Update.
11848 (resume_1): Update.
11849 (clear_proceed_status_thread): Update.
11851 (print_target_wait_results): Update.
11852 (do_target_wait): Update.
11853 (context_switch): Update.
11854 (stop_all_threads): Update.
11855 (restart_threads): Update.
11856 (finish_step_over): Update.
11857 (handle_signal_stop): Update.
11858 (switch_back_to_stepped_thread): Update.
11859 (keep_going_pass_signal): Update.
11860 (print_exited_reason): Update.
11861 (normal_stop): Update.
11862 * inferior.c (inferior_pid_to_str): Change return type.
11863 (print_selected_inferior): Update.
11864 (add_inferior): Update.
11865 (detach_inferior): Update.
11866 * dummy-frame.c (fprint_dummy_frames): Update.
11867 * dcache.c (dcache_info_1): Update.
11868 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11869 (btrace_fetch, btrace_clear): Update.
11870 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11871 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11873 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11874 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11875 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11876 * gdbarch.c, gdbarch.h: Rebuild.
11877 * gdbarch.sh (core_pid_to_str): Change return type.
11878 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11880 (windows_nat_target::pid_to_str): Change return type.
11881 (windows_delete_thread): Update.
11882 (windows_nat_target::attach): Update.
11883 (windows_nat_target::files_info): Update.
11884 * target-delegates.c: Rebuild.
11885 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11887 (sol_thread_target::pid_to_str): Change return type.
11888 * remote.c (class remote_target) <pid_to_str>: Change return
11890 (remote_target::pid_to_str): Change return type.
11891 (extended_remote_target::attach, remote_target::remote_stop_ns)
11892 (remote_target::remote_notif_remove_queued_reply)
11893 (remote_target::push_stop_reply, remote_target::disable_btrace):
11895 (extended_remote_target::attach): Update.
11896 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11898 (gdbsim_target::pid_to_str): Change return type.
11899 * ravenscar-thread.c (struct ravenscar_thread_target)
11900 <pid_to_str>: Change return type.
11901 (ravenscar_thread_target::pid_to_str): Change return type.
11902 * procfs.c (class procfs_target) <pid_to_str>: Change return
11904 (procfs_target::pid_to_str): Change return type.
11905 (procfs_target::attach): Update.
11906 (procfs_target::detach): Update.
11907 (procfs_target::fetch_registers): Update.
11908 (procfs_target::store_registers): Update.
11909 (procfs_target::wait): Update.
11910 (procfs_target::files_info): Update.
11911 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11912 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11914 (nto_procfs_target::pid_to_str): Change return type.
11915 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11916 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11918 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11919 (exit_lwp): Update.
11920 (attach_proc_task_lwp_callback, get_detach_signal)
11921 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11922 (linux_nat_target::resume, wait_lwp, stop_callback)
11923 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11924 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11925 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11926 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11927 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11929 (inf_ptrace_target::attach): Update.
11930 (inf_ptrace_target::files_info): Update.
11931 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11933 (go32_nat_target::pid_to_str): Change return type.
11934 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11935 (gnu_nat_target::wait): Update.
11936 (gnu_nat_target::wait): Update.
11937 (gnu_nat_target::resume): Update.
11938 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11939 (fbsd_nat_target::wait): Update.
11940 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11942 (darwin_nat_target::attach): Update.
11943 * corelow.c (class core_target) <pid_to_str>: Change return type.
11944 (core_target::pid_to_str): Change return type.
11945 * target.c (normal_pid_to_str): Change return type.
11946 (default_pid_to_str): Likewise.
11947 (target_pid_to_str): Change return type.
11948 (target_translate_tls_address): Update.
11949 (target_announce_detach): Update.
11950 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11952 (bsd_uthread_target::pid_to_str): Change return type.
11953 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11955 (bsd_kvm_target::pid_to_str): Change return type.
11956 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11958 (aix_thread_target::pid_to_str): Change return type.
11959 * target.h (struct target_ops) <pid_to_str>: Change return type.
11960 (target_pid_to_str, normal_pid_to_str): Likewise.
11961 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11963 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11965 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11967 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11969 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11971 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11974 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11976 * NEWS: Mention that the new default MI version is 3. Mention
11977 changes to the output of commands and events that deal with
11978 multi-location breakpoints.
11979 * breakpoint.c: Include "mi/mi-out.h".
11980 (print_one_breakpoint): Change output syntax if using MI version
11982 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11984 (mi_multi_location_breakpoint_output_fixed): New.
11985 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11986 (mi_cmd_fix_multi_location_breakpoint_output): New.
11987 (mi_multi_location_breakpoint_output_fixed): New.
11988 * mi/mi-cmds.c (mi_cmds): Register command
11989 -fix-multi-location-breakpoint-output.
11990 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11993 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11995 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11996 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11997 instantiate mi_ui_out based on interpreter name.
11998 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11999 * mi/mi-main.c (mi_load_progress): Likewise.
12001 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12003 * NEWS: Combine separate "New targets" sections for 8.3.
12005 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12007 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12008 (ppcfbsd_init_abi): Install gdbarch
12009 "fetch_tls_load_module_address" and "get_thread_local_address"
12012 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12014 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12015 (riscv_fbsd_init_abi): Install gdbarch
12016 "fetch_tls_load_module_address" and "get_thread_local_address"
12019 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12021 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12022 (i386fbsd_init_abi): Install gdbarch
12023 "fetch_tls_load_module_address" and "get_thread_local_address"
12026 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12028 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12029 (amd64fbsd_init_abi): Install gdbarch
12030 "fetch_tls_load_module_address" and "get_thread_local_address"
12033 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12035 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12036 (struct fbsd_pspace_data): New type.
12037 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12038 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12039 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12040 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12041 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12043 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12045 * gdbtypes.c (lookup_struct_elt): New function.
12046 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12047 * gdbtypes.h (struct struct_elt): New type.
12048 (lookup_struct_elt): New prototype.
12050 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12052 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12053 remove disabled code block.
12055 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12057 * gdbarch.sh (get_thread_local_address): New method.
12058 * gdbarch.h, gdbarch.c: Regenerate.
12059 * target.c (target_translate_tls_address): Use
12060 gdbarch_get_thread_local_address if present instead of
12061 target::get_thread_local_address.
12063 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12065 * target.h (target::get_thread_local_address): Update comment.
12067 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12069 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12070 objfile->separate_debug_objfile_backlink if not NULL.
12072 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12074 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12075 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12076 (amd64bsd_store_inferior_registers): Likewise.
12077 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12078 Enable segment base registers.
12079 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12080 PT_GETFSBASE and PT_GETGSBASE.
12081 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12083 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12084 segment base registers.
12085 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12087 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12089 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12090 Update calls to i386_target_description to add 'segments'
12092 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12093 add segment base registers.
12094 * arch/i386.c (i386_create_target_description): Add 'segments'
12095 parameter to enable segment base registers.
12096 * arch/i386.h (i386_create_target_description): Likewise.
12097 * features/i386/32bit-segments.xml: New file.
12098 * features/i386/32bit-segments.c: Generate.
12099 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12100 call to i386_target_description to add 'segments' parameter.
12101 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12102 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12103 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12104 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12105 if feature is present.
12106 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12107 Add 'segments' parameter to call to i386_target_description.
12108 (i386_target_description): Add 'segments' parameter to enable
12109 segment base registers.
12110 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12111 to call to i386_target_description.
12112 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12113 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12114 Define I386_NUM_REGS.
12115 (i386_target_description): Add 'segments' parameter to enable
12116 segment base registers.
12118 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12121 * source-cache.c: #undef open and close, to avoid unresolved
12122 externals during linking.
12124 2019-03-12 Tom Tromey <tromey@adacore.com>
12126 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12127 const. Add initializers.
12128 (_initialize_remote): Don't initialize ptid globals.
12130 2019-03-12 Pedro Alves <palves@redhat.com>
12132 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12134 2019-03-12 Pedro Alves <palves@redhat.com>
12136 * cp-name-parser.y (main): Remove unused 'len' variable.
12138 2019-03-12 Tom Tromey <tromey@adacore.com>
12140 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12141 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12143 2019-03-12 Tom Tromey <tromey@adacore.com>
12145 * linux-nat.c (iterate_over_lwps): Update.
12146 (stop_callback): Remove parameter.
12147 (stop_wait_callback, detach_callback, resume_set_callback)
12148 (select_singlestep_lwp_callback, set_ignore_sigint)
12149 (status_callback, resumed_callback, resume_clear_callback)
12150 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12152 (linux_nat_target::detach, linux_nat_target::resume)
12153 (linux_stop_and_wait_all_lwps, select_event_lwp)
12154 (linux_nat_filter_event, linux_nat_wait_1)
12155 (linux_nat_target::kill, linux_nat_target::stop)
12156 (linux_nat_target::stop): Update.
12157 (linux_nat_resume_callback): Change type.
12158 (resume_stopped_resumed_lwps, count_events_callback)
12159 (select_event_lwp_callback): Likewise.
12160 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12161 * arm-linux-nat.c (struct update_registers_data): Remove.
12162 (update_registers_callback): Change type.
12163 (arm_linux_insert_hw_breakpoint1): Update.
12164 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12166 (x86_linux_dr_set_addr): Update.
12167 (x86_linux_dr_set_control): Update.
12168 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12169 (iterate_over_lwps): Use gdb::function_view.
12170 * nat/aarch64-linux-hw-point.c (struct
12171 aarch64_dr_update_callback_param): Remove.
12172 (debug_reg_change_callback): Change type.
12173 (aarch64_notify_debug_reg_change): Update.
12174 * s390-linux-nat.c (s390_refresh_per_info): Update.
12176 2019-03-11 Tom Tromey <tromey@adacore.com>
12178 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12179 redundant assignment to "this_cu".
12181 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12183 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12185 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12187 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12189 (rank_one_type): ... this.
12191 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12193 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12195 (rank_one_type): ... this.
12197 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12199 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12201 (rank_one_type): ... this.
12203 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12205 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12207 (rank_one_type): ... this.
12209 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12211 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12213 (rank_one_type): ... this.
12215 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12217 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12219 (rank_one_type): ... this.
12221 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12223 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12225 (rank_one_type): ... this.
12227 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12229 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12231 (rank_one_type): ... this.
12233 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12235 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12237 (rank_one_type): ... this.
12239 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12241 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12243 (rank_one_type): ... this.
12245 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12247 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12249 (rank_one_type): ... this.
12251 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12253 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12255 (rank_one_type): ... this.
12257 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12259 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12260 inferior-events' shows the example events.
12262 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12264 Support styling on native MS-Windows console
12267 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12268 on MS-Windows if $TERM is not defined.
12270 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12272 * posix-hdep.c (gdb_console_fputs):
12273 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12275 * ui-file.h (gdb_console_fputs): Add prototype.
12277 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12278 back to fputs only if the former returns zero.
12280 2019-03-07 Tom Tromey <tom@tromey.com>
12282 * symmisc.c (print_symbol_bcache_statistics): Update.
12283 (print_objfile_statistics): Update.
12284 * symfile.c (allocate_symtab): Update.
12285 * stabsread.c: Don't include bcache.h.
12286 * psymtab.h (struct psymbol_bcache): Don't declare.
12287 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12288 (psymbol_bcache_init, psymbol_bcache_free)
12289 (psymbol_bcache_get_bcache): Don't declare.
12290 * psymtab.c (struct psymbol_bcache): Remove.
12291 (psymtab_storage::psymtab_storage): Update.
12292 (psymtab_storage::~psymtab_storage): Update.
12293 (psymbol_bcache_init, psymbol_bcache_free)
12294 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12295 (add_psymbol_to_bcache): Update.
12296 (allocate_psymtab): Update.
12297 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12298 macro_cache>: No longer pointers.
12299 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12300 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12301 * macrotab.c (macro_bcache): Update.
12302 * macroexp.c: Don't include bcache.h.
12303 * gdbtypes.c (check_types_worklist): Update.
12304 (types_deeply_equal): Remove TRY/CATCH. Update.
12305 * elfread.c (elf_symtab_read): Update.
12306 * dwarf2read.c: Don't include bcache.h.
12307 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12308 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12309 (print_bcache_statistics, bcache_memory_used): Don't declare.
12310 (struct bcache): Move from bcache.c. Add constructor, destructor,
12311 methods. Rename all data members.
12312 * bcache.c (struct bcache): Move to bcache.h.
12313 (bcache::expand_hash_table): Rename from expand_hash_table.
12315 (bcache::insert): Rename from bcache_full.
12316 (bcache::compare): Rename from bcache_compare.
12317 (bcache_xmalloc): Remove.
12318 (bcache::~bcache): Rename from bcache_xfree.
12319 (bcache::print_statistics): Rename from print_bcache_statistics.
12320 (bcache::memory_used): Rename from bcache_memory_used.
12322 2019-03-07 Pedro Alves <palves@redhat.com>
12324 * infrun.c (normal_stop): Also check for
12325 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12327 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12329 * f-lang.c (value_from_host_double): Moved to...
12330 * value.c (value_from_host_double): ...here.
12331 * value.h (value_from_host_double): Declare.
12332 * guile/scm-math.c (vlscm_convert_typed_number): Use
12333 value_from_host_double.
12334 (vlscm_convert_number): Likewise.
12335 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12336 * python/py-value.c (convert_value_from_python): Likewise.
12338 2019-03-06 Tom Tromey <tom@tromey.com>
12340 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12342 2019-03-06 Tom Tromey <tom@tromey.com>
12344 * utils.h (free_current_contents): Don't declare.
12345 * utils.c (free_current_contents): Remove.
12347 2019-03-06 Tom Tromey <tom@tromey.com>
12349 * top.c (quit_force): Update.
12350 * main.c (captured_command_loop): Update.
12351 * common/new-op.c (operator new): Update.
12352 * common/common-exceptions.c (struct catcher)
12353 <save_cleanup_chain>: Remove member.
12354 (exceptions_state_mc_init): Update.
12355 (exception_try_scope_entry): Return nullptr.
12356 (exception_try_scope_exit, exception_rethrow)
12357 (throw_exception_sjlj, throw_exception_cxx): Update.
12358 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12359 (all_cleanups, do_cleanups, discard_cleanups)
12360 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12361 (restore_cleanups, restore_final_cleanups): Don't declare.
12362 (do_final_cleanups): Remove parameter.
12363 * common/cleanups.c (cleanup_chain, make_cleanup)
12364 (make_cleanup_dtor, all_cleanups, do_cleanups)
12365 (discard_my_cleanups, discard_cleanups)
12366 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12367 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12368 (null_cleanup): Remove.
12369 (do_final_cleanups): Remove parameter.
12371 2019-03-06 Tom Tromey <tom@tromey.com>
12373 * remote.c (remote_target::remote_parse_stop_reply): Use
12374 unique_xmalloc_ptr.
12376 2019-03-06 Tom Tromey <tom@tromey.com>
12378 * stabsread.c (struct stabs_field_info): Rename from field_info.
12379 <list, fnlist>: Add initializers.
12380 <obstack>: New member.
12381 (read_member_functions, read_struct_fields, read_baseclasses):
12382 Allocate on obstack. Don't use cleanups.
12383 (read_one_struct_field, read_member_functions, read_struct_fields)
12384 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12385 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12386 (read_struct_type): Update.
12388 2019-03-06 Tom Tromey <tom@tromey.com>
12390 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12391 * common/filestuff.h (make_cleanup_close): Don't declare.
12392 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12395 2019-03-06 Tom Tromey <tom@tromey.com>
12397 * solib-aix.c: Use make_scope_exit.
12399 2019-03-06 Tom Tromey <tom@tromey.com>
12401 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12402 Use make_scope_exit.
12404 2019-03-06 Tom Tromey <tom@tromey.com>
12406 * solib-svr4.c (disable_probes_interface): Remove parameter.
12407 (svr4_handle_solib_event): Use make_scope_exit.
12409 2019-03-06 Tom Tromey <tom@tromey.com>
12411 * remote.c (struct stop_reply_deleter): Remove.
12412 (stop_reply_up): Update.
12413 (struct stop_reply): Derive from notif_event. Don't typedef.
12414 <regcache>: Now a std::vector.
12415 (stop_reply_xfree): Remove.
12416 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12417 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12418 (remote_target::discard_pending_stop_replies): Use delete.
12419 (remote_target::remote_parse_stop_reply): Update.
12420 (remote_target::process_stop_reply): Update.
12421 * remote-notif.h (struct notif_event): Add virtual destructor.
12422 Remove "dtr" member.
12423 (struct notif_client) <alloc_event>: Return a unique_ptr.
12424 (notif_event_xfree): Don't declare.
12425 (notif_event_up): New typedef.
12426 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12427 (notif_event_xfree, do_notif_event_xfree): Remove.
12428 (remote_notif_state_xfree): Update.
12430 2019-03-06 Tom Tromey <tom@tromey.com>
12432 * infrun.c (displaced_step_clear_cleanup): Now a
12433 forward_scope_exit type.
12434 (displaced_step_prepare_throw): Update.
12435 (displaced_step_fixup): Update.
12437 2019-03-06 Tom Tromey <tom@tromey.com>
12439 * inferior.h (class inferior): Update comment.
12440 * gdbthread.h (class thread_info): Update comment.
12442 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12443 Tom Tromey <tom@tromey.com>
12445 * stabsread.h (struct stab_section_list): Remove.
12446 (coffstab_build_psymtabs): Update.
12447 * dbxread.c (symbuf_sections): Now a std::vector.
12448 (sect_idx): New global.
12449 (fill_symbuf): Update.
12450 (coffstab_build_psymtabs): Change type of stabsects parameter.
12452 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12454 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12455 (coff_locate_sections): Update.
12456 (coff_symfile_read): Remove cleanups. Update.
12457 (init_stringtab): Add storage parameter.
12458 (free_stringtab, free_stringtab_cleanup): Remove.
12459 (init_lineno): Add storage parameter.
12460 (free_linetab, free_linetab_cleanup): Remove.
12462 2019-03-06 Pedro Alves <palves@redhat.com>
12464 * linux-fork.c (fork_info::clobber_regs): Delete.
12465 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12466 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12468 (scoped_switch_fork_info::scoped_switch_fork_info)
12469 (checkpoint_command, linux_fork_context): Adjust
12470 fork_save_infrun_state calls.
12472 2019-03-06 Pedro Alves <palves@redhat.com>
12474 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12475 (inf_has_multiple_threads): Return 'bool' and rewrite using
12476 inferior_info::threads().
12478 2019-03-06 Pedro Alves <palves@redhat.com>
12480 * linux-fork.c: Include <list>.
12481 (fork_list): Now a std::list instance.
12482 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12483 (forks_exist_p, find_last_fork): Adjust.
12484 (new_fork): Delete.
12486 (add_fork): Adjust.
12487 (free_fork): Delete, folded into fork_info::~fork_info().
12488 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12490 (init_fork_list): Delete.
12491 (linux_fork_killall, linux_fork_mourn_inferior)
12492 (linux_fork_detach, info_checkpoints_command): Adjust.
12493 (_initialize_linux_fork): No longer call init_fork_list.
12495 2019-03-06 Pedro Alves <palves@redhat.com>
12497 * linux-fork.c (new_fork): New, split out of ...
12498 (add_fork): ... this. Return void. Move "first fork" special
12499 case from here, to ...
12500 (checkpoint_command): ... here.
12501 * linux-linux.h (add_fork): Return void.
12503 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12505 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12507 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12508 Chris January <chris.january@arm.com>
12509 David Lecomber <david.lecomber@arm.com>
12511 * f-exp.y: New token, UNOP_INTRINSIC.
12512 (exp): New pattern using UNOP_INTRINSIC token.
12513 (f77_keywords): Add 'abs' keyword.
12514 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12515 (value_from_host_double): New function.
12516 (evaluate_subexp_f): Support UNOP_ABS.
12518 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12520 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12523 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12525 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12526 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12527 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12529 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12531 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12533 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12534 Chris January <chris.january@arm.com>
12536 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12537 * f-exp.y: Define 'KIND' token.
12538 (exp): New pattern for KIND expressions.
12539 (ptype): Handle types with a kind extension.
12540 (direct_abs_decl): Extend to spot kind extensions.
12541 (f77_keywords): Add 'kind' to the list.
12542 (push_kind_type): New function.
12543 (convert_to_kind_type): New function.
12544 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12545 * parse.c (operator_length_standard): Likewise.
12546 * parser-defs.h (enum type_pieces): Add tp_kind.
12547 * std-operator.def: Add UNOP_KIND.
12549 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12551 * f-exp.y (f_parse): Set yydebug.
12553 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12555 * f-lang.c (evaluate_subexp_f): New function.
12556 (exp_descriptor_f): New global.
12557 (f_language_defn): Use exp_descriptor_f instead of
12558 exp_descriptor_standard.
12560 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12562 * f-exp.y (struct token): Add comments.
12563 (dot_ops): Remove uppercase versions and the end marker.
12564 (f77_keywords): Likewise.
12565 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12566 entries in the dot_ops array are case insensitive, and use
12567 strncasecmp to compare strings. Also some whitespace cleanup in
12568 this area. Similar for the f77_keywords array, except entries in
12569 this list might be case sensitive.
12571 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12573 * f-exp.y (struct f77_boolean_val): Add comments.
12574 (boolean_values): Remove uppercase versions, and end marker.
12575 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12576 and use strncasecmp to achieve case insensitivity. Additionally,
12577 perform whitespace cleanup around this code.
12579 2019-03-06 Tom Tromey <tromey@adacore.com>
12581 * remote-sim.c (gdbsim_target_open): Use result of
12584 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12585 Dirk Schubert <dirk.schubert@arm.com>
12586 Chris January <chris.january@arm.com>
12588 * eval.c (evaluate_subexp_standard): Call Fortran argument
12590 * f-lang.c (struct value): A value which can be passed into a
12591 Fortran function call.
12592 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12594 (struct type): Value ready for a Fortran function call.
12595 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12597 * f-lang.h (fortran_argument_convert): Declaration.
12598 (fortran_preserve_arg_pointer): Declaration.
12599 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12601 2019-03-05 Tom Tromey <tromey@adacore.com>
12603 * python/py-prettyprint.c (print_string_repr): Remove #if.
12604 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12606 2019-03-05 Tom Tromey <tromey@adacore.com>
12608 * target.c (the_dummy_target): Move later. Change type to
12610 (initialize_targets): Don't initialize the_dummy_target.
12612 2019-03-05 Tom Tromey <tromey@adacore.com>
12614 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12615 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12617 2019-03-05 Tom Tromey <tromey@adacore.com>
12619 * windows-nat.c (windows_nat_target::attach)
12620 (windows_nat_target::detach): Don't call gdb_flush.
12621 * valprint.c (generic_val_print, val_print, val_print_string):
12622 Don't call gdb_flush.
12623 * utils.c (defaulted_query): Don't call gdb_flush.
12624 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12625 * target.c (target_announce_detach): Don't call gdb_flush.
12626 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12627 * remote.c (extended_remote_target::attach): Don't call
12629 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12630 * printcmd.c (do_examine): Don't call gdb_flush.
12631 (info_display_command): Don't call gdb_flush.
12632 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12633 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12634 * memattr.c (info_mem_command): Don't call gdb_flush.
12635 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12636 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12637 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12638 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12639 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12640 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12641 (gnu_nat_target::detach): Don't call gdb_flush.
12642 * f-valprint.c (f_val_print): Don't call gdb_flush.
12643 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12644 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12645 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12647 * c-valprint.c (c_val_print): Don't call gdb_flush.
12648 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12650 2019-03-05 Tom Tromey <tromey@adacore.com>
12652 * varobj.c (update_dynamic_varobj_children): Update.
12653 (install_default_visualizer): Use reset, not release.
12654 * value.c (set_internalvar): Update.
12655 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12656 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12657 ATTRIBUTE_UNUSED_RESULT.
12659 2019-03-05 Tom Tromey <tromey@adacore.com>
12661 * remote.c (class scoped_remote_fd) <release>: Add
12662 ATTRIBUTE_UNUSED_RESULT.
12664 2019-03-05 Tom Tromey <tromey@adacore.com>
12666 * macroexp.c (struct macro_buffer) <release>: Add
12667 ATTRIBUTE_UNUSED_RESULT.
12669 2019-03-05 Tom Tromey <tromey@adacore.com>
12671 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12672 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12673 ATTRIBUTE_UNUSED_RESULT.
12675 2019-03-05 Tom Tromey <tromey@adacore.com>
12677 * common/scoped_fd.h (class scoped_fd) <release>: Add
12678 ATTRIBUTE_UNUSED_RESULT.
12680 2019-03-05 Tom Tromey <tromey@adacore.com>
12682 * parser-defs.h (struct parser_state) <release>: Add
12683 ATTRIBUTE_UNUSED_RESULT.
12685 2019-03-05 Tom Tromey <tromey@adacore.com>
12687 * utils.h (class gdb_argv) <release>: Add
12688 ATTRIBUTE_UNUSED_RESULT.
12689 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12691 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12693 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12694 for-loop range, to avoid compiler warnings.
12696 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12697 avoid compiler warnings about unused variables.
12699 * NEWS: Mention end of support for native debugging on MS-Windows
12703 * common/netstuff.c:
12704 * gdbserver/gdbreplay.c
12705 * gdbserver/remote-utils.c:
12707 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12708 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12709 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12710 'getaddrinfo' and 'freeaddrinfo' were not available before
12711 Windows XP, and mingw.org's MinGW headers by default define
12712 _WIN32_WINNT to 0x500.
12714 2019-03-01 Gary Benson <gbenson@redhat.com>
12716 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12718 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12719 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12722 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12723 set_sigint_trap, clear_sigint_trap.
12725 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12727 * target.c (target_detach): Clear the regcache and the
12730 2019-02-27 Pedro Alves <palves@redhat.com>
12732 * utils.c (set_screen_size): When we cap the height/width sizes,
12733 tweak the corresponding command variable to show "unlimited":
12735 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12736 Pedro Alves <palves@redhat.com>
12738 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12739 before calling rl_set_screen_size.
12741 2019-02-27 Tom Tromey <tromey@adacore.com>
12743 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12745 * python/py-value.c: Remove Python 2.4 workaround.
12746 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12748 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12749 Python 2.4 workaround.
12750 * python/python-internal.h: Remove Python 2.4 comment.
12751 (Py_ssize_t): Don't define.
12752 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12753 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12754 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12755 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12756 * python/python.c (do_start_initialization): Remove Python 2.4
12758 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12759 (print_children): Remove Python 2.4 workaround.
12760 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12762 (CHARBUFFERPROC_NAME): Remove.
12763 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12764 Python 2.4 workaround.
12766 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12768 * NEWS: Note minimum Python version.
12770 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12772 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12773 code from these functions. Remove corresponding ifdefs. Use
12774 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12775 Remove gotos and target of gotos.
12776 (infpy_search_memory): Likewise.
12778 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12780 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12781 (hppa_gdbarch_init): Don't register deleted functions with
12784 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12786 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12787 (h8300_unwind_sp): Delete.
12788 (h8300_dummy_id): Delete.
12789 (h8300_gdbarch_init): Don't register deleted functions with
12792 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12794 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12795 (ft32_unwind_pc): Delete.
12796 (ft32_unwind_sp): Delete.
12797 (ft32_gdbarch_init): Don't register deleted functions with
12800 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12802 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12803 (frv_unwind_pc): Delete.
12804 (frv_unwind_sp): Delete.
12805 (frv_gdbarch_init): Don't register deleted functions with
12808 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12810 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12811 (riscv_unwind_pc): Delete.
12812 (riscv_unwind_sp): Delete.
12813 (riscv_gdbarch_init): Don't register deleted functions with
12816 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12818 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12819 (csky_unwind_pc): Delete.
12820 (csky_unwind_sp): Delete.
12821 (csky_gdbarch_init): Don't register deleted functions with
12824 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12826 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12827 (cris_unwind_pc): Delete.
12828 (cris_unwind_sp): Delete.
12829 (cris_gdbarch_init): Don't register deleted functions with
12832 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12834 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12835 (bfin_unwind_pc): Delete.
12836 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12838 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12840 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12841 (arm_unwind_pc): Delete.
12842 (arm_unwind_sp): Delete.
12843 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12845 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12847 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12848 (arc_unwind_pc): Delete.
12849 (arc_unwind_sp): Delete.
12850 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12852 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12854 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12855 (alpha_unwind_pc): Delete.
12856 (alpha_gdbarch_init): Don't register deleted functions with
12859 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12861 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12862 (aarch64_unwind_pc): Delete.
12863 (aarch64_unwind_sp): Delete.
12864 (aarch64_gdbarch_init): Don't register deleted functions with
12867 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12869 * gdbtypes.c (type_align): Don't consider static members when
12870 computing structure alignment.
12872 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12874 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12875 return 0 for other types.
12876 * arch-utils.c (default_type_align): Always return 0.
12877 * gdbarch.h: Regenerate.
12878 * gdbarch.sh (type_align): Extend comment.
12879 * gdbtypes.c (type_align): Add additional comments, always call
12880 gdbarch_type_align before applying the default rules.
12881 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12882 generic code will then apply a suitable default.
12883 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12884 types, return 0 for other types.
12886 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12888 * NEWS: Create a new section for the next release branch.
12889 Rename the section of the current branch, now that it has
12892 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12894 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12895 * version.in: Bump version to 8.3.50.DATE-git.
12897 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12899 * aix-thread.c (ptid_cmp): Remove unused variable.
12900 (get_signaled_thread): Likewise.
12901 (store_regs_user_thread): Likewise.
12902 (store_regs_kernel_thread): Likewise.
12903 (fetch_regs_kernel_thread): Remove shadowed variable.
12905 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12907 * features/riscv/32bit-cpu.xml: Add register numbers.
12908 * features/riscv/32bit-fpu.c: Regenerate.
12909 * features/riscv/32bit-fpu.xml: Add register numbers.
12910 * features/riscv/64bit-cpu.xml: Add register numbers.
12911 * features/riscv/64bit-fpu.c: Regenerate.
12912 * features/riscv/64bit-fpu.xml: Add register numbers.
12914 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12916 * NEWS: Mention two argument form of gdb.Value constructor.
12917 * python/py-value.c (convert_buffer_and_type_to_value): New
12919 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12920 Add support for handling an optional second argument. Call
12921 convert_buffer_and_type_to_value as appropriate.
12922 * python/python-internal.h (Py_buffer_deleter): New struct.
12923 (Py_buffer_up): New typedef.
12925 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12927 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12928 instead of releasing ownership.
12930 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12932 * dwarf2read.c (open_and_init_dwp_file): Call
12933 elf_numsections instead of bfd_count_sections to initialize
12934 dwp_file->num_sections.
12936 2019-02-25 Tom Tromey <tromey@adacore.com>
12938 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12940 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12942 * gcore.in: Add '--readnever' option when invoking GDB.
12944 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12946 * MAINTAINERS: Update my email address.
12948 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12950 * build-id.c (build_id_to_debug_bfd_1): New function.
12951 (build_id_to_debug_bfd): Look for separate debug file in
12954 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12956 * gdbarch.sh: Update the copyright year range that is placed into
12959 2019-02-22 Keith Seitz <keiths@redhat.com>
12962 * linespec.c (create_sals_line_offset): Search for the default
12963 symtab's filename instead of its fullname.
12965 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12967 * NEWS: Update style defaults.
12969 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12971 * main.c (captured_main_1): Disable styling in batch mode.
12973 2019-02-20 Tom Tromey <tom@tromey.com>
12975 * symtab.c (symtab_symbol_info): Fix typos.
12977 2019-02-20 Tom Tromey <tromey@adacore.com>
12979 * findcmd.c (_initialize_mem_search): Use upper case for
12980 metasyntactic variables.
12982 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12984 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12985 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12987 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12989 * top.h (source_file_name): Change to std::string.
12990 * top.c (source_file_name): Likewise.
12991 (command_line_input): Adjust.
12992 * cli/cli-script.c (script_from_file): Adjust.
12994 2019-02-19 Tom Tromey <tromey@adacore.com>
12996 * ravenscar-thread.c
12997 (ravenscar_thread_target::update_thread_list): Don't call
12998 ada_build_task_list.
12999 * ada-lang.h (ada_build_task_list): Don't declare.
13000 * ada-tasks.c (struct ada_tasks_inferior_data)
13001 <task_list_valid_p>: Now bool.
13002 (read_known_tasks, ada_task_list_changed)
13003 (ada_tasks_invalidate_inferior_data): Update.
13004 (read_known_tasks_array): Return bool.
13005 (read_known_tasks_list): Likewise.
13006 (read_known_tasks): Return void.
13007 (ada_build_task_list): Now static.
13009 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13011 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13012 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13014 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13016 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13017 variant for ada_tasks_pspace_data_handle and
13018 ada_tasks_inferior_data_handle.
13019 (ada_tasks_pspace_data_cleanup): New function.
13020 (ada_tasks_inferior_data_cleanup): New function.
13022 2019-02-17 Tom Tromey <tom@tromey.com>
13024 * macrotab.h (macro_source_fullname): Return a std::string.
13025 * macrotab.c (macro_include, check_for_redefinition)
13026 (macro_undef, macro_lookup_definition, foreach_macro)
13027 (foreach_macro_in_scope): Update.
13028 (macro_source_fullname): Return a std::string.
13029 * macrocmd.c (show_pp_source_pos): Update.
13031 2019-02-17 Tom Tromey <tom@tromey.com>
13033 * macrocmd.c (show_pp_source_pos): Style the file names.
13035 2019-02-17 Tom Tromey <tom@tromey.com>
13038 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13040 2019-02-17 Tom Tromey <tom@tromey.com>
13042 * ada-lang.c (user_select_syms): Use filtered printing.
13043 * utils.c (wrap_style): New global.
13044 (desired_style): Remove.
13045 (emit_style_escape): Add stream parameter.
13046 (set_output_style, reset_terminal_style, prompt_for_continue):
13048 (flush_wrap_buffer): Only flush gdb_stdout.
13049 (wrap_here): Set wrap_style.
13050 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13051 treat escape sequences as a character. Change when wrap buffer is
13053 (fputs_styled): Do not set the output style when the default is
13055 * ui-style.h (struct ui_file_style) <is_default>: New method.
13056 * source.c (print_source_lines_base): Emit escape sequences in one
13059 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13061 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13062 integers and enumeration types.
13064 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13066 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13067 instead of lookup_symbol_in_language
13068 (do_exact_match): New function.
13069 (ada_get_symbol_name_matcher): Return do_exact_match when
13070 doing a verbatim match.
13072 2019-02-15 Tom Tromey <tromey@adacore.com>
13074 * ravenscar-thread.c (ravenscar_thread_target::resume)
13075 (ravenscar_thread_target::wait): Special case wildcard requests.
13077 2019-02-15 Tom Tromey <tromey@adacore.com>
13079 * ravenscar-thread.c (base_ptid): Remove.
13080 (struct ravenscar_thread_target) <close>: New method.
13081 <m_base_ptid>: New member.
13082 <update_inferior_ptid, active_task, task_is_currently_active,
13083 runtime_initialized>: Declare methods.
13084 <ravenscar_thread_target>: Add constructor.
13085 (ravenscar_thread_target::task_is_currently_active)
13086 (ravenscar_thread_target::update_inferior_ptid)
13087 (ravenscar_runtime_initialized): Rename. Now methods.
13088 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13089 (ravenscar_thread_target::update_thread_list): Update.
13090 (ravenscar_thread_target::active_task): Now method.
13091 (ravenscar_thread_target::store_registers)
13092 (ravenscar_thread_target::prepare_to_store)
13093 (ravenscar_thread_target::prepare_to_store)
13094 (ravenscar_thread_target::mourn_inferior): Update.
13095 (ravenscar_inferior_created): Use "new" to create target.
13096 (ravenscar_thread_target::get_ada_task_ptid): Update.
13097 (_initialize_ravenscar): Don't initialize base_ptid.
13098 (ravenscar_ops): Remove global.
13100 2019-02-15 Tom Tromey <tromey@adacore.com>
13102 * target.h (push_target): Declare new overload.
13103 * target.c (push_target): New overload, taking an rvalue reference.
13104 * remote.c (remote_target::open_1): Use push_target overload.
13105 * corelow.c (core_target_open): Use push_target overload.
13107 2019-02-15 Tom Tromey <tromey@adacore.com>
13109 * ravenscar-thread.c (is_ravenscar_task)
13110 (ravenscar_task_is_currently_active): Return bool.
13111 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13112 (_initialize_ravenscar): Remove "(void)".
13113 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13116 2019-02-15 Tom Tromey <tromey@adacore.com>
13118 * ravenscar-thread.c (ravenscar_runtime_initializer)
13119 (has_ravenscar_runtime, get_running_thread_id)
13120 (ravenscar_thread_target::resume): Fix indentation.
13122 2019-02-15 Tom Tromey <tromey@adacore.com>
13124 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13125 from ravenscar_arch_ops.
13126 (sparc_ravenscar_ops::fetch_registers)
13127 (sparc_ravenscar_ops::store_registers): Now methods.
13128 (sparc_ravenscar_prepare_to_store): Remove.
13129 (sparc_ravenscar_ops): Redefine.
13130 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13131 methods and destructor. Remove members.
13132 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13133 (ravenscar_thread_target::store_registers)
13134 (ravenscar_thread_target::prepare_to_store): Update.
13135 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13137 (struct ppc_ravenscar_powerpc_ops): Derive from
13138 ravenscar_arch_ops.
13139 (ppc_ravenscar_powerpc_ops::fetch_registers)
13140 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13141 (ppc_ravenscar_powerpc_ops): Redefine.
13142 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13143 (ppc_ravenscar_e500_ops::fetch_registers)
13144 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13145 (ppc_ravenscar_e500_ops): Redefine.
13146 * aarch64-ravenscar-thread.c
13147 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13148 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13149 (aarch64_ravenscar_fetch_registers)
13150 (aarch64_ravenscar_store_registers): Now methods.
13151 (aarch64_ravenscar_ops): Redefine.
13153 2019-02-15 Tom Tromey <tromey@adacore.com>
13155 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13156 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13157 (ravenscar_thread_target::stopped_by_watchpoint)
13158 (ravenscar_thread_target::stopped_data_address)
13159 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13161 2019-02-15 Tom Tromey <tromey@adacore.com>
13163 * ravenscar-thread.c: Fix some typos.
13165 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13166 Tom Tromey <tromey@adacore.com>
13168 * ada-lang.c (ada_exception_sal): Change addr_string to a
13170 (create_ada_exception_catchpoint): Update.
13172 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13173 Tom Tromey <tromey@adacore.com>
13175 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13176 (bp_location_ops): Remove.
13177 (base_breakpoint_allocate_location): Update.
13178 (free_bp_location): Update.
13179 * ada-lang.c (class ada_catchpoint_location)
13180 <ada_catchpoint_location>: Remove ops parameter.
13181 (ada_catchpoint_location_dtor): Remove.
13182 (ada_catchpoint_location_ops): Remove.
13183 (allocate_location_exception): Update.
13184 * breakpoint.h (struct bp_location_ops): Remove.
13185 (class bp_location) <bp_location>: Remove bp_location_ops
13187 <~bp_location>: Add destructor.
13190 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13191 Pedro Alves <palves@redhat.com>
13193 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13196 2019-02-14 David Michael <fedora.dm0@gmail.com>
13197 Samuel Thibault <samuel.thibault@gnu.org>
13198 Thomas Schwinge <thomas@codesourcery.com>
13200 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13201 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13203 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13205 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13206 (check_empty): Use "const char *".
13208 * gnu-nat.c (gnu_nat_target::detach): Instead of
13209 'detach_inferior (pid)' call
13210 'detach_inferior (find_inferior_pid (pid))'.
13212 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13213 'nat/fork-inferior.o'.
13214 * gnu-nat.c: #include "nat/fork-inferior.h".
13216 * gnu-nat.c (gnu_nat_target::detach): Instead of
13217 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13218 * gnu-nat.h: #include "inf-child.h".
13219 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13220 'i386_gnu_nat_target::fetch_registers'.
13221 (gnu_store_registers): Rename/move to
13222 'i386_gnu_nat_target::store_registers'.
13224 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13225 * gnu-nat.h (mach_thread_info): New function.
13226 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13228 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13230 2019-02-14 Frederic Konrad <konrad@adacore.com>
13232 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13234 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13236 * windows-nat.c (windows_add_thread): Add new parameter
13237 "main_thread_p" with default value set to false. Update
13238 function documentation as well as all callers.
13239 (windows_delete_thread): Likewise.
13240 (fake_create_process): Update call to windows_add_thread.
13241 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13242 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13243 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13244 call to windows_delete_thread.
13246 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13248 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13250 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13252 * symfile.c (find_separate_debug_file): Use canonical path of
13253 sysroot with child_path instead of gdb_sysroot if it is valid.
13255 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13257 * symfile.c (find_separate_debug_file): Use child_path to
13258 determine if an object file is under a sysroot.
13260 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13262 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13263 unittests/child-path-selftests.c.
13264 * common/pathstuff.c (child_path): New function.
13265 * common/pathstuff.h (child_path): New prototype.
13266 * unittests/child-path-selftests.c: New file.
13268 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13270 * symfile.c (find_separate_debug_file): Look for separate debug
13271 files in debug directories under the sysroot.
13273 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13275 * symtab.h (struct minimal_symbol data_p): New const method.
13276 (struct minimal_symbol text_p): Likewise.
13277 * symtab.c (output_source_filename): Use file name style
13278 to print file name.
13279 (print_symbol_info): Likewise.
13280 (print_msymbol_info): Use address style to print addresses.
13281 Use function name style to print executable text symbols.
13282 (expand_symtab_containing_pc): Use data_p.
13283 (find_pc_sect_compunit_symtab): Likewise.
13285 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13287 * breakpoint.c (describe_other_breakpoints): Use address style
13288 to print addresses.
13289 (say_where): Likewise.
13291 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13293 * ada-typeprint.c (print_func_type): Print function name
13294 style to print function name.
13295 * c-typeprint.c (c_print_type_1): Likewise.
13297 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13299 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13302 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13304 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13307 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13309 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13310 TYPE_CODE_REF types.
13312 2019-02-08 Jim Wilson <jimw@sifive.com>
13314 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13315 (riscv_linux_fregset): New.
13316 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13318 2019-02-07 Tom Tromey <tom@tromey.com>
13320 * thread.c (thread_cancel_execution_command): Update.
13321 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13323 (struct thread_fsm_ops): Remove.
13324 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13325 (thread_fsm_should_stop, thread_fsm_return_value)
13326 (thread_fsm_set_finished, thread_fsm_finished_p)
13327 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13329 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13330 * infrun.c (clear_proceed_status_thread)
13331 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13332 (print_stop_event): Update.
13333 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13335 (step_command_fsm_ops): Remove.
13336 (new_step_command_fsm): Remove.
13338 (step_command_fsm::should_stop): Rename from
13339 step_command_fsm_should_stop.
13340 (step_command_fsm::clean_up): Rename from
13341 step_command_fsm_clean_up.
13342 (step_command_fsm::do_async_reply_reason): Rename from
13343 step_command_fsm_async_reply_reason.
13344 (struct until_next_fsm): Inherit from thread_fsm. Add
13346 (until_next_fsm_ops): Remove.
13347 (new_until_next_fsm): Remove.
13348 (until_next_fsm::should_stop): Rename from
13349 until_next_fsm_should_stop.
13350 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13351 (until_next_fsm::do_async_reply_reason): Rename from
13352 until_next_fsm_async_reply_reason.
13353 (struct finish_command_fsm): Inherit from thread_fsm. Add
13354 constructor. Change type of breakpoint.
13355 (finish_command_fsm_ops): Remove.
13356 (new_finish_command_fsm): Remove.
13357 (finish_command_fsm::should_stop): Rename from
13358 finish_command_fsm_should_stop.
13359 (finish_command_fsm::clean_up): Rename from
13360 finish_command_fsm_clean_up.
13361 (finish_command_fsm::return_value): Rename from
13362 finish_command_fsm_return_value.
13363 (finish_command_fsm::do_async_reply_reason): Rename from
13364 finish_command_fsm_async_reply_reason.
13365 (finish_command): Update.
13366 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13368 (call_thread_fsm_ops): Remove.
13369 (call_thread_fsm::call_thread_fsm): Rename from
13370 new_call_thread_fsm.
13371 (call_thread_fsm::should_stop): Rename from
13372 call_thread_fsm_should_stop.
13373 (call_thread_fsm::should_notify_stop): Rename from
13374 call_thread_fsm_should_notify_stop.
13375 (run_inferior_call, call_function_by_hand_dummy): Update.
13376 * cli/cli-interp.c (should_print_stop_to_console): Update.
13377 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13378 Add constructor. Change type of location_breakpoint,
13380 (until_break_fsm_ops): Remove.
13381 (new_until_break_fsm): Remove.
13382 (until_break_fsm::should_stop): Rename from
13383 until_break_fsm_should_stop.
13384 (until_break_fsm::clean_up): Rename from
13385 until_break_fsm_clean_up.
13386 (until_break_fsm::do_async_reply_reason): Rename from
13387 until_break_fsm_async_reply_reason.
13388 (until_break_command): Update.
13389 * thread-fsm.c: Remove.
13390 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13392 2019-02-07 Tom Tromey <tom@tromey.com>
13394 * yy-remap.h: Add include guard.
13395 * xtensa-tdep.h: Add include guard.
13396 * xcoffread.h: Rename include guard.
13397 * varobj-iter.h: Add include guard.
13398 * tui/tui.h: Rename include guard.
13399 * tui/tui-winsource.h: Rename include guard.
13400 * tui/tui-wingeneral.h: Rename include guard.
13401 * tui/tui-windata.h: Rename include guard.
13402 * tui/tui-win.h: Rename include guard.
13403 * tui/tui-stack.h: Rename include guard.
13404 * tui/tui-source.h: Rename include guard.
13405 * tui/tui-regs.h: Rename include guard.
13406 * tui/tui-out.h: Rename include guard.
13407 * tui/tui-layout.h: Rename include guard.
13408 * tui/tui-io.h: Rename include guard.
13409 * tui/tui-hooks.h: Rename include guard.
13410 * tui/tui-file.h: Rename include guard.
13411 * tui/tui-disasm.h: Rename include guard.
13412 * tui/tui-data.h: Rename include guard.
13413 * tui/tui-command.h: Rename include guard.
13414 * tic6x-tdep.h: Add include guard.
13415 * target/waitstatus.h: Rename include guard.
13416 * target/wait.h: Rename include guard.
13417 * target/target.h: Rename include guard.
13418 * target/resume.h: Rename include guard.
13419 * target-float.h: Rename include guard.
13420 * stabsread.h: Add include guard.
13421 * rs6000-tdep.h: Add include guard.
13422 * riscv-fbsd-tdep.h: Add include guard.
13423 * regformats/regdef.h: Rename include guard.
13424 * record.h: Rename include guard.
13425 * python/python.h: Rename include guard.
13426 * python/python-internal.h: Rename include guard.
13427 * python/py-stopevent.h: Rename include guard.
13428 * python/py-ref.h: Rename include guard.
13429 * python/py-record.h: Rename include guard.
13430 * python/py-record-full.h: Rename include guard.
13431 * python/py-record-btrace.h: Rename include guard.
13432 * python/py-instruction.h: Rename include guard.
13433 * python/py-events.h: Rename include guard.
13434 * python/py-event.h: Rename include guard.
13435 * procfs.h: Add include guard.
13436 * proc-utils.h: Add include guard.
13437 * p-lang.h: Add include guard.
13438 * or1k-tdep.h: Rename include guard.
13439 * observable.h: Rename include guard.
13440 * nto-tdep.h: Rename include guard.
13441 * nat/x86-linux.h: Rename include guard.
13442 * nat/x86-linux-dregs.h: Rename include guard.
13443 * nat/x86-gcc-cpuid.h: Add include guard.
13444 * nat/x86-dregs.h: Rename include guard.
13445 * nat/x86-cpuid.h: Rename include guard.
13446 * nat/ppc-linux.h: Rename include guard.
13447 * nat/mips-linux-watch.h: Rename include guard.
13448 * nat/linux-waitpid.h: Rename include guard.
13449 * nat/linux-ptrace.h: Rename include guard.
13450 * nat/linux-procfs.h: Rename include guard.
13451 * nat/linux-osdata.h: Rename include guard.
13452 * nat/linux-nat.h: Rename include guard.
13453 * nat/linux-namespaces.h: Rename include guard.
13454 * nat/linux-btrace.h: Rename include guard.
13455 * nat/glibc_thread_db.h: Rename include guard.
13456 * nat/gdb_thread_db.h: Rename include guard.
13457 * nat/gdb_ptrace.h: Rename include guard.
13458 * nat/fork-inferior.h: Rename include guard.
13459 * nat/amd64-linux-siginfo.h: Rename include guard.
13460 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13461 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13462 * nat/aarch64-linux.h: Rename include guard.
13463 * nat/aarch64-linux-hw-point.h: Rename include guard.
13464 * mn10300-tdep.h: Add include guard.
13465 * mips-linux-tdep.h: Add include guard.
13466 * mi/mi-parse.h: Rename include guard.
13467 * mi/mi-out.h: Rename include guard.
13468 * mi/mi-main.h: Rename include guard.
13469 * mi/mi-interp.h: Rename include guard.
13470 * mi/mi-getopt.h: Rename include guard.
13471 * mi/mi-console.h: Rename include guard.
13472 * mi/mi-common.h: Rename include guard.
13473 * mi/mi-cmds.h: Rename include guard.
13474 * mi/mi-cmd-break.h: Rename include guard.
13475 * m2-lang.h: Add include guard.
13476 * location.h: Rename include guard.
13477 * linux-record.h: Rename include guard.
13478 * linux-nat.h: Add include guard.
13479 * linux-fork.h: Add include guard.
13480 * i386-darwin-tdep.h: Rename include guard.
13481 * hppa-linux-offsets.h: Add include guard.
13482 * guile/guile.h: Rename include guard.
13483 * guile/guile-internal.h: Rename include guard.
13484 * gnu-nat.h: Rename include guard.
13485 * gdb-stabs.h: Rename include guard.
13486 * frv-tdep.h: Add include guard.
13487 * f-lang.h: Add include guard.
13488 * event-loop.h: Add include guard.
13489 * darwin-nat.h: Rename include guard.
13490 * cp-abi.h: Rename include guard.
13491 * config/sparc/nm-sol2.h: Rename include guard.
13492 * config/nm-nto.h: Rename include guard.
13493 * config/nm-linux.h: Add include guard.
13494 * config/i386/nm-i386gnu.h: Rename include guard.
13495 * config/djgpp/nl_types.h: Rename include guard.
13496 * config/djgpp/langinfo.h: Rename include guard.
13497 * compile/gcc-cp-plugin.h: Add include guard.
13498 * compile/gcc-c-plugin.h: Add include guard.
13499 * compile/compile.h: Rename include guard.
13500 * compile/compile-object-run.h: Rename include guard.
13501 * compile/compile-object-load.h: Rename include guard.
13502 * compile/compile-internal.h: Rename include guard.
13503 * compile/compile-cplus.h: Rename include guard.
13504 * compile/compile-c.h: Rename include guard.
13505 * common/xml-utils.h: Rename include guard.
13506 * common/x86-xstate.h: Rename include guard.
13507 * common/version.h: Rename include guard.
13508 * common/vec.h: Rename include guard.
13509 * common/tdesc.h: Rename include guard.
13510 * common/selftest.h: Rename include guard.
13511 * common/scoped_restore.h: Rename include guard.
13512 * common/scoped_mmap.h: Rename include guard.
13513 * common/scoped_fd.h: Rename include guard.
13514 * common/safe-iterator.h: Rename include guard.
13515 * common/run-time-clock.h: Rename include guard.
13516 * common/refcounted-object.h: Rename include guard.
13517 * common/queue.h: Rename include guard.
13518 * common/ptid.h: Rename include guard.
13519 * common/print-utils.h: Rename include guard.
13520 * common/preprocessor.h: Rename include guard.
13521 * common/pathstuff.h: Rename include guard.
13522 * common/observable.h: Rename include guard.
13523 * common/netstuff.h: Rename include guard.
13524 * common/job-control.h: Rename include guard.
13525 * common/host-defs.h: Rename include guard.
13526 * common/gdb_wait.h: Rename include guard.
13527 * common/gdb_vecs.h: Rename include guard.
13528 * common/gdb_unlinker.h: Rename include guard.
13529 * common/gdb_unique_ptr.h: Rename include guard.
13530 * common/gdb_tilde_expand.h: Rename include guard.
13531 * common/gdb_sys_time.h: Rename include guard.
13532 * common/gdb_string_view.h: Rename include guard.
13533 * common/gdb_splay_tree.h: Rename include guard.
13534 * common/gdb_setjmp.h: Rename include guard.
13535 * common/gdb_ref_ptr.h: Rename include guard.
13536 * common/gdb_optional.h: Rename include guard.
13537 * common/gdb_locale.h: Rename include guard.
13538 * common/gdb_assert.h: Rename include guard.
13539 * common/filtered-iterator.h: Rename include guard.
13540 * common/filestuff.h: Rename include guard.
13541 * common/fileio.h: Rename include guard.
13542 * common/environ.h: Rename include guard.
13543 * common/common-utils.h: Rename include guard.
13544 * common/common-types.h: Rename include guard.
13545 * common/common-regcache.h: Rename include guard.
13546 * common/common-inferior.h: Rename include guard.
13547 * common/common-gdbthread.h: Rename include guard.
13548 * common/common-exceptions.h: Rename include guard.
13549 * common/common-defs.h: Rename include guard.
13550 * common/common-debug.h: Rename include guard.
13551 * common/cleanups.h: Rename include guard.
13552 * common/buffer.h: Rename include guard.
13553 * common/btrace-common.h: Rename include guard.
13554 * common/break-common.h: Rename include guard.
13555 * cli/cli-utils.h: Rename include guard.
13556 * cli/cli-style.h: Rename include guard.
13557 * cli/cli-setshow.h: Rename include guard.
13558 * cli/cli-script.h: Rename include guard.
13559 * cli/cli-interp.h: Rename include guard.
13560 * cli/cli-decode.h: Rename include guard.
13561 * cli/cli-cmds.h: Rename include guard.
13562 * charset-list.h: Add include guard.
13563 * buildsym-legacy.h: Rename include guard.
13564 * bfin-tdep.h: Add include guard.
13565 * ax.h: Rename include guard.
13566 * arm-linux-tdep.h: Add include guard.
13567 * arm-fbsd-tdep.h: Add include guard.
13568 * arch/xtensa.h: Rename include guard.
13569 * arch/tic6x.h: Add include guard.
13570 * arch/i386.h: Add include guard.
13571 * arch/arm.h: Rename include guard.
13572 * arch/arm-linux.h: Rename include guard.
13573 * arch/arm-get-next-pcs.h: Rename include guard.
13574 * arch/amd64.h: Add include guard.
13575 * arch/aarch64-insn.h: Rename include guard.
13576 * arch-utils.h: Rename include guard.
13577 * annotate.h: Add include guard.
13578 * amd64-darwin-tdep.h: Rename include guard.
13579 * aarch64-linux-tdep.h: Add include guard.
13580 * aarch64-fbsd-tdep.h: Add include guard.
13581 * aarch32-linux-nat.h: Add include guard.
13583 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13585 * macrotab.c (macro_define_internal): New function that
13586 factorizes macro_define_object_internal and macro_define_function
13588 (macro_define_object_internal): Use macro_define_internal.
13589 (macro_define_function): Likewise.
13591 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13593 * macrocmd.c (extract_identifier): Return
13594 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13597 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13599 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13601 2019-02-05 Tom Tromey <tom@tromey.com>
13603 * target.c (target_stack::unpush): Move assertion earlier.
13605 2019-01-30 Tom Tromey <tom@tromey.com>
13608 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13609 (gdbpy_parse_and_eval): Likewise.
13610 * python/python-internal.h (gdbpy_allow_threads): New class.
13612 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13614 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13615 (aarch64_fbsd_fpregmap): Move earlier.
13616 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13617 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13618 instead of individual calls to trad_frame_set_reg_addr.
13619 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13621 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13622 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13623 instead of individual calls to trad_frame_set_reg_addr.
13625 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13627 * CONTRIBUTE: Replace contribution list with wiki link.
13629 2019-01-25 Tom Tromey <tom@tromey.com>
13631 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13633 2019-01-25 Tom Tromey <tom@tromey.com>
13635 * xtensa-linux-nat.c: Fix common/ includes.
13636 * xml-support.h: Fix common/ includes.
13637 * xml-support.c: Fix common/ includes.
13638 * x86-linux-nat.c: Fix common/ includes.
13639 * windows-nat.c: Fix common/ includes.
13640 * varobj.h: Fix common/ includes.
13641 * varobj.c: Fix common/ includes.
13642 * value.c: Fix common/ includes.
13643 * valops.c: Fix common/ includes.
13644 * utils.c: Fix common/ includes.
13645 * unittests/xml-utils-selftests.c: Fix common/ includes.
13646 * unittests/utils-selftests.c: Fix common/ includes.
13647 * unittests/unpack-selftests.c: Fix common/ includes.
13648 * unittests/tracepoint-selftests.c: Fix common/ includes.
13649 * unittests/style-selftests.c: Fix common/ includes.
13650 * unittests/string_view-selftests.c: Fix common/ includes.
13651 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13652 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13653 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13654 * unittests/rsp-low-selftests.c: Fix common/ includes.
13655 * unittests/parse-connection-spec-selftests.c: Fix common/
13657 * unittests/optional-selftests.c: Fix common/ includes.
13658 * unittests/offset-type-selftests.c: Fix common/ includes.
13659 * unittests/observable-selftests.c: Fix common/ includes.
13660 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13661 * unittests/memrange-selftests.c: Fix common/ includes.
13662 * unittests/memory-map-selftests.c: Fix common/ includes.
13663 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13664 * unittests/function-view-selftests.c: Fix common/ includes.
13665 * unittests/environ-selftests.c: Fix common/ includes.
13666 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13667 * unittests/common-utils-selftests.c: Fix common/ includes.
13668 * unittests/cli-utils-selftests.c: Fix common/ includes.
13669 * unittests/array-view-selftests.c: Fix common/ includes.
13670 * ui-file.c: Fix common/ includes.
13671 * tui/tui-io.c: Fix common/ includes.
13672 * tracepoint.h: Fix common/ includes.
13673 * tracepoint.c: Fix common/ includes.
13674 * tracefile-tfile.c: Fix common/ includes.
13675 * top.h: Fix common/ includes.
13676 * top.c: Fix common/ includes.
13677 * thread.c: Fix common/ includes.
13678 * target/waitstatus.h: Fix common/ includes.
13679 * target/waitstatus.c: Fix common/ includes.
13680 * target.h: Fix common/ includes.
13681 * target.c: Fix common/ includes.
13682 * target-memory.c: Fix common/ includes.
13683 * target-descriptions.c: Fix common/ includes.
13684 * symtab.h: Fix common/ includes.
13685 * symfile.c: Fix common/ includes.
13686 * stap-probe.c: Fix common/ includes.
13687 * spu-linux-nat.c: Fix common/ includes.
13688 * sparc-nat.c: Fix common/ includes.
13689 * source.c: Fix common/ includes.
13690 * solib.c: Fix common/ includes.
13691 * solib-target.c: Fix common/ includes.
13692 * ser-unix.c: Fix common/ includes.
13693 * ser-tcp.c: Fix common/ includes.
13694 * ser-pipe.c: Fix common/ includes.
13695 * ser-base.c: Fix common/ includes.
13696 * selftest-arch.c: Fix common/ includes.
13697 * s12z-tdep.c: Fix common/ includes.
13698 * rust-exp.y: Fix common/ includes.
13699 * rs6000-aix-tdep.c: Fix common/ includes.
13700 * riscv-tdep.c: Fix common/ includes.
13701 * remote.c: Fix common/ includes.
13702 * remote-notif.h: Fix common/ includes.
13703 * remote-fileio.h: Fix common/ includes.
13704 * remote-fileio.c: Fix common/ includes.
13705 * regcache.h: Fix common/ includes.
13706 * regcache.c: Fix common/ includes.
13707 * record-btrace.c: Fix common/ includes.
13708 * python/python.c: Fix common/ includes.
13709 * python/py-type.c: Fix common/ includes.
13710 * python/py-inferior.c: Fix common/ includes.
13711 * progspace.h: Fix common/ includes.
13712 * producer.c: Fix common/ includes.
13713 * procfs.c: Fix common/ includes.
13714 * proc-api.c: Fix common/ includes.
13715 * printcmd.c: Fix common/ includes.
13716 * ppc-linux-nat.c: Fix common/ includes.
13717 * parser-defs.h: Fix common/ includes.
13718 * osdata.c: Fix common/ includes.
13719 * obsd-nat.c: Fix common/ includes.
13720 * nat/x86-linux.c: Fix common/ includes.
13721 * nat/x86-linux-dregs.c: Fix common/ includes.
13722 * nat/x86-dregs.h: Fix common/ includes.
13723 * nat/x86-dregs.c: Fix common/ includes.
13724 * nat/ppc-linux.c: Fix common/ includes.
13725 * nat/mips-linux-watch.h: Fix common/ includes.
13726 * nat/mips-linux-watch.c: Fix common/ includes.
13727 * nat/linux-waitpid.c: Fix common/ includes.
13728 * nat/linux-ptrace.h: Fix common/ includes.
13729 * nat/linux-ptrace.c: Fix common/ includes.
13730 * nat/linux-procfs.c: Fix common/ includes.
13731 * nat/linux-personality.c: Fix common/ includes.
13732 * nat/linux-osdata.c: Fix common/ includes.
13733 * nat/linux-namespaces.c: Fix common/ includes.
13734 * nat/linux-btrace.h: Fix common/ includes.
13735 * nat/linux-btrace.c: Fix common/ includes.
13736 * nat/fork-inferior.c: Fix common/ includes.
13737 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13738 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13739 * nat/aarch64-linux.c: Fix common/ includes.
13740 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13741 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13742 * namespace.h: Fix common/ includes.
13743 * mips-linux-tdep.c: Fix common/ includes.
13744 * minsyms.c: Fix common/ includes.
13745 * mi/mi-parse.h: Fix common/ includes.
13746 * mi/mi-main.c: Fix common/ includes.
13747 * mi/mi-cmd-env.c: Fix common/ includes.
13748 * memrange.h: Fix common/ includes.
13749 * memattr.c: Fix common/ includes.
13750 * maint.h: Fix common/ includes.
13751 * maint.c: Fix common/ includes.
13752 * main.c: Fix common/ includes.
13753 * machoread.c: Fix common/ includes.
13754 * location.c: Fix common/ includes.
13755 * linux-thread-db.c: Fix common/ includes.
13756 * linux-nat.c: Fix common/ includes.
13757 * linux-fork.c: Fix common/ includes.
13758 * inline-frame.c: Fix common/ includes.
13759 * infrun.c: Fix common/ includes.
13760 * inflow.c: Fix common/ includes.
13761 * inferior.h: Fix common/ includes.
13762 * inferior.c: Fix common/ includes.
13763 * infcmd.c: Fix common/ includes.
13764 * inf-ptrace.c: Fix common/ includes.
13765 * inf-child.c: Fix common/ includes.
13766 * ia64-linux-nat.c: Fix common/ includes.
13767 * i387-tdep.c: Fix common/ includes.
13768 * i386-tdep.c: Fix common/ includes.
13769 * i386-linux-tdep.c: Fix common/ includes.
13770 * i386-linux-nat.c: Fix common/ includes.
13771 * i386-go32-tdep.c: Fix common/ includes.
13772 * i386-fbsd-tdep.c: Fix common/ includes.
13773 * i386-fbsd-nat.c: Fix common/ includes.
13774 * guile/scm-type.c: Fix common/ includes.
13775 * guile/guile.c: Fix common/ includes.
13776 * go32-nat.c: Fix common/ includes.
13777 * gnu-nat.c: Fix common/ includes.
13778 * gdbthread.h: Fix common/ includes.
13779 * gdbarch-selftests.c: Fix common/ includes.
13780 * gdb_usleep.c: Fix common/ includes.
13781 * gdb_select.h: Fix common/ includes.
13782 * gdb_bfd.c: Fix common/ includes.
13783 * gcore.c: Fix common/ includes.
13784 * fork-child.c: Fix common/ includes.
13785 * findvar.c: Fix common/ includes.
13786 * fbsd-nat.c: Fix common/ includes.
13787 * event-top.c: Fix common/ includes.
13788 * event-loop.c: Fix common/ includes.
13789 * dwarf2read.c: Fix common/ includes.
13790 * dwarf2loc.c: Fix common/ includes.
13791 * dwarf2-frame.c: Fix common/ includes.
13792 * dwarf-index-cache.c: Fix common/ includes.
13793 * dtrace-probe.c: Fix common/ includes.
13794 * disasm-selftests.c: Fix common/ includes.
13795 * defs.h: Fix common/ includes.
13796 * csky-tdep.c: Fix common/ includes.
13797 * cp-valprint.c: Fix common/ includes.
13798 * cp-support.h: Fix common/ includes.
13799 * cp-support.c: Fix common/ includes.
13800 * corelow.c: Fix common/ includes.
13801 * completer.h: Fix common/ includes.
13802 * completer.c: Fix common/ includes.
13803 * compile/compile.c: Fix common/ includes.
13804 * compile/compile-loc2c.c: Fix common/ includes.
13805 * compile/compile-cplus-types.c: Fix common/ includes.
13806 * compile/compile-cplus-symbols.c: Fix common/ includes.
13807 * command.h: Fix common/ includes.
13808 * cli/cli-dump.c: Fix common/ includes.
13809 * cli/cli-cmds.c: Fix common/ includes.
13810 * charset.c: Fix common/ includes.
13811 * build-id.c: Fix common/ includes.
13812 * btrace.h: Fix common/ includes.
13813 * btrace.c: Fix common/ includes.
13814 * breakpoint.h: Fix common/ includes.
13815 * breakpoint.c: Fix common/ includes.
13817 (enum agent_op): Fix common/ includes.
13818 * ax-general.c (struct aop_map): Fix common/ includes.
13819 * ax-gdb.c: Fix common/ includes.
13820 * auxv.c: Fix common/ includes.
13821 * auto-load.c: Fix common/ includes.
13822 * arm-tdep.c: Fix common/ includes.
13823 * arch/riscv.c: Fix common/ includes.
13824 * arch/ppc-linux-common.c: Fix common/ includes.
13825 * arch/i386.c: Fix common/ includes.
13826 * arch/arm.c: Fix common/ includes.
13827 * arch/arm-linux.c: Fix common/ includes.
13828 * arch/arm-get-next-pcs.c: Fix common/ includes.
13829 * arch/amd64.c: Fix common/ includes.
13830 * arch/aarch64.c: Fix common/ includes.
13831 * arch/aarch64-insn.c: Fix common/ includes.
13832 * arch-utils.c: Fix common/ includes.
13833 * amd64-windows-tdep.c: Fix common/ includes.
13834 * amd64-tdep.c: Fix common/ includes.
13835 * amd64-sol2-tdep.c: Fix common/ includes.
13836 * amd64-obsd-tdep.c: Fix common/ includes.
13837 * amd64-nbsd-tdep.c: Fix common/ includes.
13838 * amd64-linux-tdep.c: Fix common/ includes.
13839 * amd64-linux-nat.c: Fix common/ includes.
13840 * amd64-fbsd-tdep.c: Fix common/ includes.
13841 * amd64-fbsd-nat.c: Fix common/ includes.
13842 * amd64-dicos-tdep.c: Fix common/ includes.
13843 * amd64-darwin-tdep.c: Fix common/ includes.
13844 * agent.c: Fix common/ includes.
13845 * ada-lang.h: Fix common/ includes.
13846 * ada-lang.c: Fix common/ includes.
13847 * aarch64-tdep.c: Fix common/ includes.
13849 2019-01-25 Tom Tromey <tom@tromey.com>
13851 * common/create-version.sh: Use common/version.h.
13853 2019-01-24 Pedro Alves <palves@redhat.com>
13855 * infrun.c (signal_stop, signal_print, signal_program)
13856 (signal_catch, signal_pass): Now arrays instead of pointers.
13857 (update_signals_program_target, do_target_resume)
13858 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13859 * linux-nat.c (linux_nat_target::pass_signals)
13860 (linux_nat_target::create_inferior, linux_nat_target::attach):
13862 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13863 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13864 * procfs.c (procfs_target::pass_signals): Adjust.
13865 * record-full.c (record_full_target::resume): Adjust.
13866 * remote.c (remote_target::pass_signals)
13867 (remote_target::program_signals): Adjust.
13868 * target-debug.h (target_debug_print_signals): Now takes a
13869 gdb::array_view as parameter. Adjust.
13870 * target.h (target_ops) <pass_signals, program_signals>: Replace
13871 pointer and length parameters with gdb::array_view.
13872 (target_pass_signals, target_program_signals): Likewise.
13873 * target-delegates.c: Regenerate.
13875 2019-01-24 Pedro Alves <palves@redhat.com>
13877 * common/forward-scope-exit.h
13878 (forward_scope_exit::forward_scope_exit): Pass arguments to
13879 m_bind_function directly, instead of creating a std::bind and
13882 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13884 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13885 for static members.
13886 (pass_in_v_vfp_candidate): Likewise.
13888 2019-01-23 Tom Tromey <tom@tromey.com>
13889 Pedro Alves <palves@redhat.com>
13891 * regcache.c (class regcache_invalidator): Remove.
13892 (regcache::raw_write): Use make_scope_exit.
13894 2019-01-23 Tom Tromey <tom@tromey.com>
13896 * ui-out.h (class ui_out_emit_type): Update comment.
13898 2019-01-23 Tom Tromey <tom@tromey.com>
13900 * infrun.c (fetch_inferior_event): Update comment.
13902 2019-01-23 Tom Tromey <tom@tromey.com>
13903 Pedro Alves <palves@redhat.com>
13905 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13907 (fetch_inferior_event): Use SCOPE_EXIT.
13910 2019-01-23 Tom Tromey <tom@tromey.com>
13911 Pedro Alves <palves@redhat.com>
13913 * infrun.c (disable_thread_events): Delete.
13914 (stop_all_threads): Use SCOPE_EXIT.
13916 2019-01-23 Tom Tromey <tom@tromey.com>
13917 Pedro Alves <palves@redhat.com>
13919 * symfile.c: Include forward-scope-exit.h.
13920 (clear_symtab_users_cleanup): Replace forward declaration with
13921 a FORWARD_SCOPE_EXIT.
13922 (syms_from_objfile_1): Use the forward_scope_exit and
13923 gdb::optional instead of cleanup_function.
13924 (reread_symbols): Use the forward_scope_exit instead of
13926 (clear_symtab_users_cleanup): Remove function.
13928 2019-01-23 Tom Tromey <tom@tromey.com>
13929 Pedro Alves <palves@redhat.com>
13931 * linux-nat.c: Include scope-exit.h.
13932 (cleanup_target_stop): Remove.
13933 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13936 2019-01-23 Tom Tromey <tom@tromey.com>
13937 Pedro Alves <palves@redhat.com>
13939 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13940 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13942 2019-01-23 Tom Tromey <tom@tromey.com>
13943 Andrew Burgess <andrew.burgess@embecosm.com>
13944 Pedro Alves <palves@redhat.com>
13946 * infrun.c (fetch_inferior_event): Use scope_exit.
13947 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13948 * top.c (execute_command): Use scope_exit.
13949 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13950 * utils.c (do_bpstat_clear_actions_cleanup)
13951 (make_bpstat_clear_actions_cleanup): Remove.
13953 2019-01-23 Tom Tromey <tom@tromey.com>
13954 Pedro Alves <palves@redhat.com>
13956 * infrun.c: Include "common/scope-exit.h"
13957 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13958 (wait_for_inferior): Use SCOPE_EXIT.
13959 (fetch_inferior_event): Use scope_exit.
13961 2019-01-23 Tom Tromey <tom@tromey.com>
13962 Pedro Alves <palves@redhat.com>
13964 * breakpoint.c (create_breakpoint): Remove cleanup.
13966 2019-01-23 Tom Tromey <tom@tromey.com>
13967 Andrew Burgess <andrew.burgess@embecosm.com>
13968 Pedro Alves <palves@redhat.com>
13970 2019-01-23 Pedro Alves <palves@redhat.com>
13972 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13974 2019-01-23 Pedro Alves <palves@redhat.com>
13975 Andrew Burgess <andrew.burgess@embecosm.com>
13977 * gdbthread.h: Include "common/forward-scope-exit.h".
13978 (scoped_finish_thread_state): Redefine custom class in terms of
13979 forward_scope_exit.
13981 2019-01-23 Pedro Alves <palves@redhat.com>
13982 Andrew Burgess <andrew.burgess@embecosm.com>
13984 * common/forward-scope-exit.h: New file.
13986 2019-01-23 Pedro Alves <palves@redhat.com>
13987 Andrew Burgess <andrew.burgess@embecosm.com>
13988 Tom Tromey <tom@tromey.com>
13990 * common/scope-exit.h: New file.
13992 2019-01-23 Pedro Alves <palves@redhat.com>
13994 * common/preprocessor.h (ESC): Rename to ...
13995 (ESC_PARENS): ... this.
13996 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13997 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13999 2019-01-23 Tom Tromey <tom@tromey.com>
14001 * language.h (class scoped_switch_to_sym_language_if_auto):
14002 Initialize m_lang in both cases.
14004 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14006 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14009 2019-01-22 Tom Tromey <tom@tromey.com>
14011 * corelow.c: Do not include sys/file.h.
14013 2019-01-22 Tom Tromey <tom@tromey.com>
14015 * tui/tui-wingeneral.h: Include gdb_curses.h.
14017 2019-01-22 Tom Tromey <tom@tromey.com>
14019 * source-cache.h (class source_cache) <get_source_lines,
14020 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14022 2019-01-22 Tom Tromey <tom@tromey.com>
14024 * remote-fileio.h (struct remote_target): Declare.
14026 2019-01-22 Tom Tromey <tom@tromey.com>
14028 * python/py-arch.c: Do not include py-ref.h.
14029 * python/py-bpevent.c: Do not include py-ref.h.
14030 * python/py-cmd.c: Do not include py-ref.h.
14031 * python/py-continueevent.c: Do not include py-ref.h.
14032 * python/py-event.h: Do not include py-ref.h.
14033 * python/py-evtregistry.c: Do not include py-ref.h.
14034 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14035 * python/py-frame.c: Do not include py-ref.h.
14036 * python/py-framefilter.c: Do not include py-ref.h.
14037 * python/py-function.c: Do not include py-ref.h.
14038 * python/py-infevents.c: Do not include py-ref.h.
14039 * python/py-linetable.c: Do not include py-ref.h.
14040 * python/py-objfile.c: Do not include py-ref.h.
14041 * python/py-param.c: Do not include py-ref.h.
14042 * python/py-prettyprint.c: Do not include py-ref.h.
14043 * python/py-progspace.c: Do not include py-ref.h.
14044 * python/py-symbol.c: Do not include py-ref.h.
14045 * python/py-symtab.c: Do not include py-ref.h.
14046 * python/py-type.c: Do not include py-ref.h.
14047 * python/py-unwind.c: Do not include py-ref.h.
14048 * python/py-utils.c: Do not include py-ref.h.
14049 * python/py-value.c: Do not include py-ref.h.
14050 * python/py-varobj.c: Do not include py-ref.h.
14051 * python/py-xmethods.c: Do not include py-ref.h.
14052 * python/python.c: Do not include py-ref.h.
14053 * varobj.c: Do not include py-ref.h.
14055 2019-01-22 Tom Tromey <tom@tromey.com>
14057 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14058 keyword for bcache.
14060 2019-01-22 Tom Tromey <tom@tromey.com>
14062 * compile/compile-cplus-types.c: Remove a comment by #include.
14064 2019-01-22 Tom Tromey <tom@tromey.com>
14066 * compile/gcc-c-plugin.h: Include compile-internal.h.
14068 2019-01-22 Tom Tromey <tom@tromey.com>
14070 * stabsread.c (EXTERN): Do not define.
14071 (symnum, next_symbol_text_func, processing_gcc_compilation)
14072 (within_function, global_sym_chain, global_stabs)
14073 (previous_stab_code, this_object_header_files)
14074 (n_this_object_header_files)
14075 (n_allocated_this_object_header_files): Define.
14076 * stabsread.h (EXTERN): Never define. Use "extern".
14078 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14080 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14083 2019-01-21 Tom Tromey <tom@tromey.com>
14085 * ui-out.c: Fix includes.
14086 * tui/tui-source.c: Fix includes.
14087 * target.c: Fix includes.
14088 * remote.c: Fix includes.
14089 * regcache.c: Fix includes.
14090 * python/py-block.c: Fix includes.
14091 * printcmd.c: Fix includes.
14092 * or1k-tdep.c: Fix includes.
14093 * mi/mi-main.c: Fix includes.
14094 * m32r-tdep.c: Fix includes.
14095 * csky-tdep.c: Fix includes.
14096 * compile/compile-cplus-types.c: Fix includes.
14097 * cli/cli-interp.c: Fix includes.
14099 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14101 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14104 2019-01-16 Tom Tromey <tom@tromey.com>
14106 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14108 (struct objfile) <msymbols_range>: Move from top level.
14109 <msymbols>: New method.
14110 (class objfile_msymbols): Remove.
14111 * symtab.c (default_collect_symbol_completion_matches_break_on):
14113 * symmisc.c (dump_msymbols): Update.
14114 * stabsread.c (scan_file_globals): Update.
14115 * objc-lang.c (info_selectors_command, info_classes_command)
14116 (find_methods): Update.
14117 * minsyms.c (find_solib_trampoline_target): Update.
14118 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14119 * coffread.c (coff_symfile_read): Update.
14120 * ada-lang.c (ada_lookup_simple_minsym)
14121 (ada_collect_symbol_completion_matches): Update.
14123 2019-01-16 Tom Tromey <tom@tromey.com>
14125 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14126 type. Remove no-argument constructor.
14127 <iterator::operator++>: Simplify.
14129 <end>: Use minimal_symbol_count.
14131 2019-01-16 Tom Tromey <tom@tromey.com>
14133 * objfiles.h (struct objfile) <psymtabs>: New method.
14134 (class objfile_psymtabs): Remove.
14135 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14137 <range>: New method.
14138 (require_partial_symbols): Change return type.
14139 * psymtab.c (require_partial_symbols)
14140 (psym_expand_symtabs_matching): Update.
14141 * mdebugread.c (parse_partial_symbols): Update.
14142 * dbxread.c (dbx_end_psymtab): Update.
14144 2019-01-15 Tom Tromey <tom@tromey.com>
14146 * symtab.c (lookup_objfile_from_block)
14147 (lookup_symbol_in_objfile_symtabs)
14148 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14149 (find_line_symtab, info_sources_command)
14150 (default_collect_symbol_completion_matches_break_on)
14151 (make_source_files_completion_list): Update.
14152 * symmisc.c (print_objfile_statistics, dump_objfile)
14153 (maintenance_print_symbols, maintenance_info_symtabs)
14154 (maintenance_check_symtabs, maintenance_info_line_tables):
14156 * source.c (select_source_symtab)
14157 (forget_cached_source_info_for_objfile): Update.
14158 * objfiles.h (class objfile_compunits): Remove.
14159 (struct objfile) <compunits_range>: New typedef.
14160 (compunits): New method.
14161 * objfiles.c (objfile_relocate1): Update.
14162 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14163 * maint.c (count_symtabs_and_blocks): Update.
14164 * linespec.c (iterate_over_all_matching_symtabs): Update.
14165 * cp-support.c (add_symbol_overload_list_qualified): Update.
14166 * coffread.c (coff_symtab_read): Update.
14167 * ada-lang.c (add_nonlocal_symbols)
14168 (ada_collect_symbol_completion_matches)
14169 (ada_add_global_exceptions): Update.
14171 2019-01-15 Tom Tromey <tom@tromey.com>
14173 * progspace.h (program_space) <objfiles_safe_range>: New
14175 <objfiles_safe>: New method.
14176 * objfiles.h (class all_objfiles_safe): Remove.
14177 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14178 * jit.c (jit_inferior_exit_hook): Update.
14180 2019-01-17 Tom Tromey <tom@tromey.com>
14182 * progspace.h (program_space) <objfiles_range>: New typedef.
14183 <objfiles>: New method.
14184 <objfiles_head>: Rename from objfiles.
14185 (object_files): Update.
14186 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14187 * guile/scm-pretty-print.c
14188 (ppscm_find_pretty_printer_from_objfiles): Update.
14189 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14190 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14192 * python/py-progspace.c (pspy_get_objfiles): Update.
14193 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14195 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14196 (objfpy_lookup_objfile_by_build_id): Update.
14197 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14198 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14200 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14201 (expand_symtab_containing_pc, lookup_objfile_from_block)
14202 (lookup_static_symbol, basic_lookup_transparent_type)
14203 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14204 (find_line_symtab, info_sources_command)
14205 (default_collect_symbol_completion_matches_break_on)
14206 (make_source_files_completion_list, find_main_name): Update.
14207 * symmisc.c (print_symbol_bcache_statistics)
14208 (print_objfile_statistics, maintenance_print_symbols)
14209 (maintenance_print_msymbols, maintenance_print_objfiles)
14210 (maintenance_info_symtabs, maintenance_check_symtabs)
14211 (maintenance_expand_symtabs, maintenance_info_line_tables):
14213 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14214 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14215 (map_overlay_command, unmap_overlay_command)
14216 (simple_overlay_update, expand_symtabs_matching)
14217 (map_symbol_filenames): Update.
14218 * symfile-debug.c (set_debug_symfile): Update.
14219 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14221 * source.c (select_source_symtab, forget_cached_source_info):
14223 * solib.c (solib_read_symbols): Update.
14224 * solib-spu.c (append_ocl_sos): Update.
14225 * psymtab.c (maintenance_print_psymbols)
14226 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14227 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14228 * printcmd.c (info_symbol_command): Update.
14229 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14231 * objfiles.h (class all_objfiles): Remove.
14232 * objfiles.c (have_partial_symbols, have_full_symbols)
14233 (have_minimal_symbols, qsort_cmp, update_section_map)
14234 (shared_objfile_contains_address_p)
14235 (default_iterate_over_objfiles_in_search_order): Update.
14236 * objc-lang.c (info_selectors_command, info_classes_command)
14237 (find_methods): Update.
14238 * minsyms.c (find_solib_trampoline_target): Update.
14239 * maint.c (maintenance_info_sections)
14240 (maintenance_translate_address, count_symtabs_and_blocks):
14242 * main.c (captured_main_1): Update.
14243 * linux-thread-db.c (try_thread_db_load_from_pdir)
14244 (has_libpthread): Update.
14245 * linespec.c (iterate_over_all_matching_symtabs)
14246 (search_minsyms_for_name): Update.
14247 * jit.c (jit_find_objf_with_entry_addr): Update.
14248 * hppa-tdep.c (find_unwind_entry)
14249 (hppa_lookup_stub_minimal_symbol): Update.
14250 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14252 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14253 (elf_gnu_ifunc_resolve_by_got): Update.
14254 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14255 * dwarf-index-write.c (save_gdb_index_command): Update.
14256 * cp-support.c (add_symbol_overload_list_qualified): Update.
14257 * breakpoint.c (create_overlay_event_breakpoint)
14258 (create_longjmp_master_breakpoint)
14259 (create_std_terminate_master_breakpoint)
14260 (create_exception_master_breakpoint): Update.
14261 * blockframe.c (find_pc_partial_function): Update.
14262 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14263 (ada_collect_symbol_completion_matches)
14264 (ada_add_global_exceptions): Update.
14266 2019-01-17 Tom Tromey <tom@tromey.com>
14268 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14270 (solib_target_parse_libraries): Change return type.
14271 (library_list_start_segment, library_list_start_section)
14272 (library_list_end_library, library_list_start_library); Update.
14273 (solib_target_free_library_list): Remove.
14274 (solib_target_parse_libraries): Remove cleanup. Change return
14276 (solib_target_current_sos): Update.
14278 2019-01-17 Tom Tromey <tromey@bapiya>
14280 * valprint.c: Replace "the the" with "the".
14281 * symtab.c: Replace "the the" with "the".
14282 * solib.c: Replace "the the" with "the".
14283 * solib-dsbt.c: Replace "the the" with "the".
14284 * linespec.c: Replace "the the" with "the".
14285 * dwarf2loc.h: Replace "the the" with "the".
14286 * amd64-windows-tdep.c: Replace "the the" with "the".
14287 * aarch64-tdep.c: Replace "the the" with "the".
14289 2019-01-16 Keith Seitz <keiths@redhat.com>
14292 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14293 <builder>: Rename to ..
14294 <m_builder>: ... this and make private.
14295 (dwarf2_cu::get_builder): New method. Change all users of
14296 `builder' to use this method.
14297 (dwarf2_start_symtab): Move to ...
14298 (dwarf2_cu::start_symtab): ... here. Update all callers
14299 (setup_type_unit_groups): Move to ...
14300 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14302 (dwarf2_cu::reset_builder): New method.
14303 (process_full_compunit, process_full_type_unit): Use
14304 dwarf2_cu::reset_builder.
14305 (follow_die_offset): Record the ancestor CU if it is different
14306 from the followed DIE's CU.
14307 (follow_die_sig_1): Likewise.
14309 2019-01-15 Tom Tromey <tom@tromey.com>
14311 * remote.c (class remote_state) <buf>: Now a char_vector.
14312 <buf_size>: Remove.
14313 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14315 (remote_target::getpkt_or_notif_sane_1)
14316 (remote_target::getpkt_sane)
14317 (remote_target::getpkt_or_notif_sane): Likewise.
14318 (class remote_target) <putpkt>: New overload.
14319 (remote_target::read_frame): Change type of "buf_p". Remove
14320 sizeof_p parameter.
14321 (packet_ok): New overload.
14322 (packet_check_result): New overload.
14325 2019-01-14 Tom Tromey <tom@tromey.com>
14327 * remote-notif.c (handle_notification, remote_notif_ack)
14328 (remote_notif_parse): Make "buf" const.
14329 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14331 (remote_notif_parse, remote_notif_ack, handle_notification):
14333 * remote.c (remote_notif_stop_parse): Make "buf" const.
14334 (remote_target::remote_parse_stop_reply): Make "buf" const.
14335 (remote_notif_stop_ack): Make "buf" const.
14337 2019-01-14 Tom Tromey <tom@tromey.com>
14339 * remote.c (remote_console_output): Make parameter const.
14341 2019-01-14 Tom Tromey <tom@tromey.com>
14343 * target-debug.h (target_debug_print_signals): Constify.
14344 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14345 * procfs.c (procfs_target::pass_signals): Update.
14346 * linux-nat.c (linux_nat_target::pass_signals): Update.
14347 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14348 * target-delegates.c: Rebuild.
14349 * remote.c (remote_target::program_signals): Update.
14350 (remote_target::pass_signals): Update.
14351 * target.c (target_pass_signals): Constify argument.
14352 (target_program_signals): Likewise.
14353 * target.h (struct target_ops) <pass_signals, program_signals>:
14355 (target_pass_signals, target_program_signals): Constify argument.
14357 2019-01-14 Tom Tromey <tom@tromey.com>
14360 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14362 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14364 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14366 * rs6000-tdep.c: Include reggroups.h.
14367 (IS_V_ALIAS_PSEUDOREG): Define.
14368 (rs6000_register_name): Return names for the "vX" aliases.
14369 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14370 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14371 aliases. Call default_register_reggroup_p for all other
14373 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14375 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14376 Handle "vX" aliases.
14377 (v_alias_pseudo_register_collect): New function.
14378 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14379 (rs6000_gdbarch_init): Initialize "vX" aliases as
14380 pseudo-registers. Restore registration of
14381 rs6000_pseudo_register_reggroup_p with
14382 set_tdesc_pseudo_register_reggroup_p.
14384 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14386 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14387 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14388 set_gdbarch_num_pseudo_regs.
14390 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14392 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14393 Remove arg prefixname, add do_set and do_show.
14394 Add member functions set_list and show_list.
14395 * cli/cli-style.c (class cli_style_option): Update accordingly.
14396 (style_set_list): Move to file scope.
14397 (style_show_list): Likewise.
14398 (set_style): Call help_list.
14399 (show_style): Call cmd_show_list.
14400 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14401 Update to use the new macro.
14403 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14405 * ada-lang.c (_initialize_ada_language): Expand the help text
14406 for the "catch exception" command.
14408 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14410 * symtab.c (matching_obj_sections): Initialize obj,
14411 declare it closer to its usage.
14413 2019-01-10 Tom Tromey <tom@tromey.com>
14415 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14416 (basic_inf_threads_range): Remove.
14417 (inf_threads_range, inf_non_exited_threads_range)
14418 (safe_inf_threads_range): Use next_adapter.
14420 2019-01-10 Keith Seitz <keiths@redhat.com>
14424 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14425 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14427 2019-01-10 Keith Seitz <keiths@redhat.com>
14431 * dictionary.c (pending_to_vector): Remove.
14432 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14433 Remove _1 suffix, replacing functions of the same name. Update
14435 (dict_create_hashed, dict_create_hashed_expandable)
14436 (dict_create_linear, dict_create_linear_expandable, dict_free)
14437 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14438 Make functions static.
14440 2019-01-10 Keith Seitz <keiths@redhat.com>
14444 * dictionary.h (struct dictionary): Replace declaration with
14446 (dict_create_hashed, dict_create_hashed_expandable)
14447 (dict_create_linear, dict_create_linear_expandable)
14448 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14449 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14450 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14451 taking multidictionary argument.
14452 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14453 * block.h (struct block) <dict>: Change to multidictionary
14454 and rename `multidict'.
14455 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14456 symmisc.c: Update all dictionary references to multidictionary.
14458 2019-01-10 Keith Seitz <keiths@redhat.com>
14462 * dictionary.c: Include unordered_map.
14463 (pending_to_vector): New function.
14464 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14465 Rewrite the non-"_1" functions to take vector instead
14467 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14468 "new" _1 versions of the same name.
14469 (multidictionary): Define.
14470 (std::hash<enum language): New definition.
14471 (collate_pending_symbols_by_language, mdict_create_hashed)
14472 (mdict_create_hashed_expandable, mdict_create_linear)
14473 (mdict_create_linear_expandable, mdict_free)
14474 (find_language_dictionary, create_new_language_dictionary)
14475 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14476 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14477 (mdict_size, mdict_empty): New functions.
14478 * dictionary.h (mdict_iterator): Define.
14480 2019-01-10 Pedro Alves <palves@redhat.com>
14482 * breakpoint.c (read_uploaded_action)
14483 (create_tracepoint_from_upload): Adjust to use
14484 gdb::unique_xmalloc_ptr.
14485 * ctf.c (ctf_write_uploaded_tp):
14486 (SET_ARRAY_FIELD): Use emplace_back.
14487 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14488 * tracefile-tfile.c (tfile_write_uploaded_tp):
14489 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14490 gdb::unique_xmalloc_ptr.
14491 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14492 at_string, cond_string, cmd_strings>: Replace char pointers
14493 with gdb::unique_xmalloc_ptr.
14495 2019-01-10 Pedro Alves <palves@redhat.com>
14497 * solib-target.c (library_list_start_library): Don't xstrdup name.
14499 2019-01-10 Pedro Alves <palves@redhat.com>
14501 * mdebugread.c (parse_partial_symbols): Use
14502 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14504 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14506 * linux-fork.c (scoped_switch_fork_info)
14507 <~scoped_switch_fork_info>: Fix incorrect variable name.
14509 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14511 * linux-fork.c (scoped_switch_fork_info)
14512 <scoped_switch_fork_info>: Make explicit.
14513 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14515 2019-01-10 Tom Tromey <tom@tromey.com>
14517 * objfiles.h (objfile::reset_psymtabs): Update.
14518 * objfiles.c (objfile::objfile): Update.
14519 * psymtab.h (psymtab_storage::obstack): Update.
14520 (psymtab_storage::m_obstack): Use gdb::optional.
14521 (class psymtab_storage): Update comment. Remove objfile
14523 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14525 2019-01-10 Tom Tromey <tom@tromey.com>
14527 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14528 <free_psymtabs>: Now private.
14529 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14530 (allocate_psymtab): Use new method.
14532 2019-01-10 Tom Tromey <tom@tromey.com>
14534 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14535 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14536 * mdebugread.c (parse_partial_symbols): Use
14537 allocate_dependencies.
14538 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14539 allocate_dependencies.
14540 (process_psymtab_comp_unit_reader)
14541 (build_type_psymtab_dependencies): Likewise.
14542 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14544 2019-01-10 Tom Tromey <tom@tromey.com>
14546 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14547 PSYMBOL_SET_LANGUAGE.
14548 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14550 2019-01-10 Tom Tromey <tom@tromey.com>
14552 * psymtab.h (psymtab_storage::obstack): New method.
14553 <m_obstack>: Rename from obstack; now private.
14554 * psymtab.c (psymtab_storage): Update.
14555 * dwarf2read.c (create_addrmap_from_index)
14556 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14559 2019-01-10 Tom Tromey <tom@tromey.com>
14561 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14562 * objfiles.h (objfile::reset_psymtabs): New method.
14564 2019-01-10 Tom Tromey <tom@tromey.com>
14566 * symmisc.c (print_symbol_bcache_statistics): Update.
14567 (print_objfile_statistics): Update.
14568 * symfile.c (reread_symbols): Update.
14569 * psymtab.h (class psymtab_storage): New.
14570 * psymtab.c (psymtab_storage): New constructor.
14571 (~psymtab_storage): New destructor.
14572 (require_partial_symbols): Update.
14573 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14574 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14575 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14576 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14577 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14578 (start_psymtab_common, end_psymtab_common)
14579 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14580 (allocate_psymtab): Update.
14581 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14583 (dump_psymtab_addrmap, maintenance_print_psymbols)
14584 (maintenance_check_psymtabs): Update.
14585 (class objfile_psymtabs): Move to objfiles.h.
14586 * psympriv.h (discard_psymtab): Now inline.
14587 (psymtab_discarder::psymtab_discarder): Update.
14588 (psymtab_discarder::~psymtab_discarder): Update.
14589 (ALL_OBJFILE_PSYMTABS): Rewrite.
14590 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14591 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14593 <partial_symtabs>: New field.
14594 (class objfile_psymtabs): Move from psymtab.h. Update.
14595 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14597 (objfile::~objfile): Don't destroy psymbol_cache.
14598 * mdebugread.c (parse_partial_symbols): Update.
14599 * dwarf2read.c (create_addrmap_from_index)
14600 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14601 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14602 (add_partial_subprogram, dwarf2_ranges_read): Update.
14603 * dwarf-index-write.c (write_address_map)
14604 (write_one_signatured_type, recursively_write_psymbols)
14605 (class debug_names, class debug_names, write_psymtabs_to_index):
14608 2019-01-10 Tom Tromey <tom@tromey.com>
14610 * symtab.h (SYMBOL_SET_NAMES): Update.
14611 (symbol_set_names): Update.
14612 (MSYMBOL_SET_NAMES): Update.
14613 * symtab.c (symbol_set_names): Change argument to be an
14614 objfile_per_bfd_storage.
14615 * psymtab.c (add_psymbol_to_bcache): Update.
14616 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14618 2019-01-10 Tom Tromey <tom@tromey.com>
14620 * symtab.c (create_demangled_names_hash): Change argument to be an
14621 objfile_per_bfd_storage.
14622 (symbol_set_names): Update.
14624 2019-01-10 Tom Tromey <tom@tromey.com>
14626 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14628 * psymtab.c (init_psymbol_list): Do nothing if already called.
14629 * psympriv.h (init_psymbol_list): Add comment.
14630 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14632 * dbxread.c (dbx_symfile_read): Unconditionally call
14635 2019-01-10 Tom Tromey <tom@tromey.com>
14637 * xcoffread.c (scan_xcoff_symtab): Update.
14638 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14640 * mdebugread.c (parse_partial_symbols)
14641 (handle_psymbol_enumerators): Update.
14642 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14643 * dbxread.c (read_dbx_symtab): Update.
14644 * psympriv.h (psymbol_placement): New enum.
14645 (add_psymbol_to_list): Update.
14647 2019-01-10 Tom Tromey <tom@tromey.com>
14649 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14650 static_psymbols parameters.
14651 (scan_xcoff_symtab): Update.
14652 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14653 static_psymbols parameters.
14654 * psympriv.h (start_psymtab_common): Update.
14655 * mdebugread.c (parse_partial_symbols): Update.
14656 * dwarf2read.c (create_partial_symtab): Update.
14657 * dbxread.c (read_dbx_symtab): Update.
14658 (start_psymtab): Remove global_psymbols and static_psymbols
14661 2019-01-10 Tom Tromey <tom@tromey.com>
14663 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14664 * psymtab.c (allocate_psymtab): Add comment.
14665 * psympriv.h (allocate_psymtab): Add comment.
14666 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14668 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14670 2019-01-10 Tom Tromey <tom@tromey.com>
14672 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14674 * mipsread.c: Include mdebugread.h.
14675 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14677 * elfread.c: Include mdebugread.h.
14679 2019-01-09 Tom Tromey <tom@tromey.com>
14681 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14682 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14683 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14684 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14685 (psym_lookup_symbol, psym_find_last_source_symtab)
14686 (psym_forget_cached_source_info, psym_print_stats)
14687 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14688 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14689 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14690 (psym_find_compunit_symtab_by_address)
14691 (maintenance_print_psymbols, maintenance_info_psymtabs)
14692 (maintenance_check_psymtabs): Use ranged for.
14693 * psymtab.h (class objfile_psymtabs): New.
14694 (require_partial_symbols): Return objfile_psymtabs.
14695 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14697 2019-01-09 Tom Tromey <tom@tromey.com>
14699 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14700 (find_pc_mapped_section, list_overlays_command)
14701 (map_overlay_command, unmap_overlay_command)
14702 (simple_overlay_update): Use all_objfiles.
14703 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14704 * printcmd.c (info_symbol_command): Use all_objfiles.
14705 * objfiles.h (ALL_OBJSECTIONS): Remove.
14706 * maint.c (maintenance_translate_address): Use all_objfiles.
14707 * gcore.c (gcore_create_callback): Use all_objfiles.
14708 (objfile_find_memory_regions): Likewise.
14710 2019-01-09 Tom Tromey <tom@tromey.com>
14712 * symtab.c (find_line_symtab, info_sources_command)
14713 (make_source_files_completion_list): Use objfile_compunits.
14714 * source.c (select_source_symtab): Use objfile_compunits.
14715 * objfiles.h (struct objfile): Update comment.
14716 (ALL_OBJFILES): Remove.
14717 (ALL_FILETABS): Remove.
14718 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14721 2019-01-09 Tom Tromey <tom@tromey.com>
14723 * symmisc.c (print_objfile_statistics, dump_objfile)
14724 (maintenance_print_symbols): Use compunit_filetabs.
14725 * source.c (forget_cached_source_info_for_objfile): Use
14727 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14728 (ALL_FILETABS): Use compunit_filetabs.
14729 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14730 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14732 2019-01-09 Tom Tromey <tom@tromey.com>
14734 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14735 (compunit_filetabs): New.
14736 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14738 (info_sources_command, make_source_files_completion_list): Remove
14740 * symmisc.c (print_objfile_statistics, dump_objfile)
14741 (maintenance_print_symbols): Remove declaration.
14742 (maintenance_info_symtabs): Use compunit_filetabs.
14743 (maintenance_info_line_tables): Likewise.
14744 * source.c (select_source_symtab): Change local variable name.
14745 (forget_cached_source_info_for_objfile): Remove declaration.
14746 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14747 * objfiles.c (objfile_relocate1): Remove declaration.
14748 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14750 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14751 * coffread.c (coff_symtab_read): Remove declaration.
14752 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14755 2019-01-09 Tom Tromey <tom@tromey.com>
14757 * symtab.c (lookup_objfile_from_block)
14758 (find_pc_sect_compunit_symtab, search_symbols)
14759 (default_collect_symbol_completion_matches_break_on): Use
14761 * objfiles.h (ALL_COMPUNITS): Remove.
14762 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14763 * cp-support.c (add_symbol_overload_list_qualified): Use
14765 * ada-lang.c (ada_collect_symbol_completion_matches)
14766 (ada_add_global_exceptions): Use objfile_compunits.
14768 2019-01-09 Tom Tromey <tom@tromey.com>
14770 * source.c (select_source_symtab)
14771 (forget_cached_source_info_for_objfile): Remove declaration.
14772 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14774 * maint.c (count_symtabs_and_blocks): Remove declaration.
14775 * cp-support.c (add_symbol_overload_list_qualified): Remove
14777 * coffread.c (coff_symtab_read): Remove declaration.
14778 * symtab.c (lookup_symbol_in_objfile_symtabs)
14779 (basic_lookup_transparent_type_1): Use objfile_compunits.
14780 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14781 (info_sources_command, search_symbols)
14782 (default_collect_symbol_completion_matches_break_on)
14783 (make_source_files_completion_list): Remove declaration.
14784 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14785 (ada_collect_symbol_completion_matches)
14786 (ada_add_global_exceptions): Remove declaration.
14787 * linespec.c (iterate_over_all_matching_symtabs): Use
14789 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14790 (class objfile_compunits): New.
14791 (ALL_COMPUNITS): Use objfile_compunits.
14792 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14793 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14795 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14797 2019-01-09 Tom Tromey <tom@tromey.com>
14799 * symtab.c (search_symbols)
14800 (default_collect_symbol_completion_matches_break_on): Use
14802 * ada-lang.c (ada_lookup_simple_minsym)
14803 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14804 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14805 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14807 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14808 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14809 * objc-lang.c (find_methods): Use objfile_msymbols.
14810 (info_selectors_command, info_classes_command): Likewise.
14811 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14812 * objfiles.h (class objfile_msymbols): New.
14813 (ALL_OBJFILE_MSYMBOLS): Remove.
14814 (ALL_MSYMBOLS): Remove.
14816 2019-01-09 Tom Tromey <tom@tromey.com>
14818 * common/next-iterator.h (next_adapter): Add Iterator template
14820 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14821 (class all_objfiles_safe): New.
14822 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14823 * objfiles.c (put_objfile_before): Update comment.
14824 (add_separate_debug_objfile): Likewise.
14825 (free_all_objfiles): Use all_objfiles_safe.
14826 (objfile_purge_solibs): Likewise.
14828 2019-01-09 Tom Tromey <tom@tromey.com>
14830 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14831 (expand_symtab_containing_pc, lookup_static_symbol)
14832 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14833 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14835 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14836 * breakpoint.c (create_overlay_event_breakpoint)
14837 (create_longjmp_master_breakpoint)
14838 (create_std_terminate_master_breakpoint)
14839 (create_exception_master_breakpoint): Use all_objfiles.
14840 * linux-thread-db.c (try_thread_db_load_from_pdir)
14841 (has_libpthread): Use all_objfiles.
14842 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14843 * linespec.c (iterate_over_all_matching_symtabs)
14844 (search_minsyms_for_name): Use all_objfiles.
14845 * maint.c (maintenance_info_sections): Use all_objfiles.
14846 * main.c (captured_main_1): Use all_objfiles.
14847 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14848 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14849 * guile/scm-pretty-print.c
14850 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14851 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14852 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14853 (maintenance_print_msymbols): Use all_objfiles.
14854 * source.c (select_source_symtab): Use all_objfiles.
14855 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14856 * symfile.c (remove_symbol_file_command)
14857 (expand_symtabs_matching, map_symbol_filenames): Use
14859 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14861 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14862 * objc-lang.c (find_methods): Use all_objfiles.
14863 * objfiles.c (have_partial_symbols, have_full_symbols)
14864 (have_minimal_symbols, qsort_cmp)
14865 (default_iterate_over_objfiles_in_search_order): Use
14867 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14868 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14869 (maintenance_check_psymtabs): Use all_objfiles.
14870 (ALL_PSYMTABS): Remove.
14871 * compile/compile-object-run.c (do_module_cleanup): Use
14873 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14874 * cp-support.c (add_symbol_overload_list_qualified): Use
14876 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14878 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14879 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14881 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14882 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14883 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14885 * solib.c (solib_read_symbols): Use all_objfiles
14887 2019-01-09 Tom Tromey <tom@tromey.com>
14889 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14890 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14892 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14893 * symmisc.c (print_symbol_bcache_statistics)
14894 (print_objfile_statistics, maintenance_print_objfiles)
14895 (maintenance_info_symtabs, maintenance_check_symtabs)
14896 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14898 * source.c (forget_cached_source_info): Use all_objfiles.
14899 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14900 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14901 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14902 * objfiles.c (update_section_map): Use all_objfiles.
14903 (shared_objfile_contains_address_p): Likewise.
14904 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14905 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14907 2019-01-09 Tom Tromey <tom@tromey.com>
14909 * common/next-iterator.h: New file.
14910 * objfiles.h (class all_objfiles): New.
14911 (struct objfile_iterator): New.
14913 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14915 * NEWS: Move the description of the changed "frame", "select-frame",
14916 and "info frame" commands to the Changed commands section.
14918 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14920 * gdbtypes.c (check_stub_method_group): Remove handling of old
14922 * linespec.c (find_methods): Likewise.
14923 * stabsread.c (read_member_functions): Likewise.
14924 * valops.c (search_struct_method): Likewise.
14925 (value_struct_elt_for_reference): Likewise.
14926 * NEWS: Mention this change.
14928 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14930 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14931 print_source_lines.
14932 * source.c (print_source_lines_base): Update line number check.
14933 (print_source_lines): New function.
14934 (source_lines_range::source_lines_range): New function.
14935 * source.h (class source_lines_range): New class.
14936 (print_source_lines): New declaration.
14938 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14940 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14942 2019-01-08 Tom Tromey <tom@tromey.com>
14943 Simon Marchi <simon.marchi@ericsson.com>
14946 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14947 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14948 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14949 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14950 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14951 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14953 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14955 * source.c (select_source_symtab): Move header comment to
14956 declaration in source.h.
14957 (forget_cached_source_info_for_objfile): Likewise.
14958 (forget_cached_source_info): Likewise.
14959 (identify_source_line): Likewise.
14960 * source.h (identify_source_line): Move declaration from symtab.h
14961 and add comment from source.c
14962 (print_source_lines): Likewise.
14963 (forget_cached_source_info_for_objfile): Likewise.
14964 (forget_cached_source_info): Likewise.
14965 (select_source_symtab): Likewise.
14966 (enum print_source_lines_flag): Move definition from symtab.h.
14967 * symtab.h (identify_source_line): Move declaration to source.h.
14968 (print_source_lines): Likewise.
14969 (forget_cached_source_info_for_objfile): Likewise.
14970 (forget_cached_source_info): Likewise.
14971 (select_source_symtab): Likewise.
14972 (enum print_source_lines_flag): Move definition to source.h.
14973 * tui/tui-hooks.c: Add 'source.h' include.
14975 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14977 * source.c (print_source_lines_base): Handle requests to print
14978 reverse line number sequences, and guard against empty lines
14981 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14983 * source.c (print_source_lines_base): Fix skip of '\r' if next
14986 2019-01-06 Tom Tromey <tom@tromey.com>
14988 * c-exp.y (struct c_parse_state) <macro_original_text,
14989 expansion_obstack>: New member.
14990 (macro_original_text, expansion_obstack): Remove globals.
14991 (scan_macro_expansion, scanning_macro_expansion)
14992 (finished_macro_expansion): Update.
14993 (scan_macro_cleanup): Remove.
14994 (yylex, c_parse): Update.
14996 2019-01-06 Tom Tromey <tom@tromey.com>
14998 * c-exp.y (struct c_parse_state) <strings>: New member.
14999 (operator_stoken): Update.
15001 2019-01-06 Tom Tromey <tom@tromey.com>
15003 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15004 (union type_stack_elt) <typelist_val>: Now a pointer to
15006 (type_stack_cleanup): Don't declare.
15007 (push_typelist): Update.
15008 * parse.c (pop_typelist): Return a std::vector.
15009 (push_typelist): Take a std::vector.
15010 (follow_types): Update. Do not free args.
15011 (type_stack_cleanup): Remove.
15012 * c-exp.y (struct c_parse_state): New.
15013 (cpstate): New global.
15014 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15015 (nonempty_typelist): Update.
15016 (func_mod): Create a new vector.
15017 (c_parse): Create a c_parse_state.
15018 (check_parameter_typelist): Do not delete params.
15019 (function_method): Update. Do not delete type_list.
15021 2019-01-06 Tom Tromey <tom@tromey.com>
15024 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15026 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15027 (print_return_value): Likewise.
15029 2019-01-05 Tom Tromey <tom@tromey.com>
15031 * contrib/cleanup_check.py: Remove.
15032 * contrib/gcc-with-excheck: Remove.
15033 * contrib/exsummary.py: Remove.
15034 * contrib/excheck.py: Remove.
15036 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15038 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15039 NULL. Initialize tpprev to NULL instead of assigning it
15040 to NULL on the next statement.
15041 * windows-nat.c (windows_delete_thread): Remove check for
15042 main_thread_id before printing thread exit notifications.
15043 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15044 Remove thread ID check against main_thread_id.
15045 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15046 windows_delete_thread.
15047 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15049 2019-01-04 Tom Tromey <tom@tromey.com>
15051 * compile/compile.c (_initialize_compile): Use upper case for
15052 metasyntactic variables.
15053 * symmisc.c (_initialize_symmisc): Use upper case for
15054 metasyntactic variables.
15055 * psymtab.c (_initialize_psymtab): Use upper case for
15056 metasyntactic variables.
15057 * demangle.c (demangle_command): Use upper case for metasyntactic
15059 (_initialize_demangler): Likewise.
15060 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15063 2019-01-03 Tom Tromey <tom@tromey.com>
15065 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15067 2019-01-03 Tom Tromey <tom@tromey.com>
15069 * python/py-symtab.c (salpy_str): Update.
15070 (struct salpy_sal_object) <symtab>: Now a PyObject.
15071 (salpy_dealloc): Update.
15072 (del_objfile_sal): Use gdbpy_ref.
15074 2019-01-03 Tom Tromey <tom@tromey.com>
15076 * python/py-type.c (convert_field): Use new_reference. Return
15078 (make_fielditem): Return gdbpy_ref.
15079 (typy_fields): Update.
15080 (typy_getitem): Update.
15081 (field_name): Return gdbpy_ref. Use new_reference.
15082 (typy_iterator_iternext): Update.
15084 2019-01-03 Tom Tromey <tom@tromey.com>
15086 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15088 2019-01-03 Tom Tromey <tom@tromey.com>
15090 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15091 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15092 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15093 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15094 (pspy_set_type_printers): Likewise.
15095 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15096 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15097 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15098 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15099 (objfpy_set_type_printers): Likewise.
15101 2019-01-03 Tom Tromey <tom@tromey.com>
15103 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15104 (gdbpy_print_stack): Use gdbpy_err_fetch.
15105 * python/python-internal.h (class gdbpy_err_fetch): New class.
15106 (class gdbpy_enter) <m_error_type, m_error_value,
15107 m_error_traceback>: Remove.
15108 <m_error>: New member.
15109 (gdbpy_exception_to_string): Don't declare.
15110 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15111 * python/py-value.c (convert_value_from_python): Use
15113 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15114 gdbpy_exception_to_string.
15115 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15116 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15119 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15121 * linux-nat.c (delete_lwp_cleanup): Delete.
15122 (struct lwp_deleter): New struct.
15123 (lwp_info_up): New typedef.
15124 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15127 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15129 * linux-fork.c (class scoped_switch_fork_info): New class.
15130 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15132 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15134 * valops.c (find_overload_match): Remove use of null_cleanup, and
15135 calls to do_cleanups.
15137 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15139 * compile/compile-cplus-types.c
15140 (compile_cplus_instance::decl_name): Handle changes to
15142 * cp-support.c (cp_func_name): Update header comment, update
15144 * cp-support.h (cp_func_name): Update return type in declaration.
15145 * valops.c (find_overload_match): Move temp_func local to top
15146 level of function and change its type. Use temp_func to hold and
15147 delete temporary string obtained from cp_func_name.
15149 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15151 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15152 gdb::char_vector, remove cleanup, and update uses of `msg`.
15154 2019-01-03 Jim Wilson <jimw@sifive.com>
15156 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15158 2019-01-02 Tom Tromey <tom@tromey.com>
15160 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15161 (tdesc_parse_xml): Remove cleanups.
15162 * target-descriptions.h (make_cleanup_free_target_description):
15164 (target_desc_deleter): New struct.
15165 (target_desc_up): New typedef.
15166 * target-descriptions.c (target_desc_deleter::operator()): Rename
15167 from free_target_description.
15168 (make_cleanup_free_target_description): Remove.
15170 2019-01-02 Tom Tromey <tom@tromey.com>
15172 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15173 constructor, destructor.
15174 (linespec_parser): Remove typedef.
15175 (~linespec_parser): Rename from linespec_parser_delete.
15176 (linespec_lex_to_end, linespec_complete_label)
15177 (linespec_complete): Update.
15178 (decode_line_full): Remove cleanups.
15179 (decode_line_1): Update.
15181 2019-01-02 Tom Tromey <tom@tromey.com>
15183 * python/python-internal.h (inferior_to_inferior_object): Change
15185 * python/py-exitedevent.c (create_exited_event_object): Update.
15186 * python/py-inferior.c (inferior_to_inferior_object): Return
15188 (python_new_inferior, python_inferior_deleted)
15189 (thread_to_thread_object, delete_thread_object)
15190 (build_inferior_list, gdbpy_selected_inferior): Update.
15191 * python/py-infthread.c (create_thread_object): Update. Also fail
15192 if inferior_to_inferior_object fails.
15194 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15196 * inferior.h (class inferior) <displaced_step_state>: New field.
15197 * infrun.h (struct displaced_step_state): Move here from
15198 infrun.c. Initialize fields, add constructor.
15199 <inf>: Remove field.
15200 <reset>: New method.
15201 * infrun.c (struct displaced_step_inferior_state): Move to
15203 (displaced_step_inferior_states): Remove.
15204 (get_displaced_stepping_state): Adust.
15205 (displaced_step_in_progress_any_inferior): Adjust.
15206 (displaced_step_in_progress_thread): Adjust.
15207 (displaced_step_in_progress): Adjust.
15208 (add_displaced_stepping_state): Remove.
15209 (get_displaced_step_closure_by_addr): Adjust.
15210 (remove_displaced_stepping_state): Remove.
15211 (infrun_inferior_exit): Call displaced_step_state.reset.
15212 (use_displaced_stepping): Don't check for NULL.
15213 (displaced_step_prepare_throw): Call
15214 get_displaced_stepping_state.
15215 (displaced_step_fixup): Don't check for NULL.
15216 (prepare_for_detach): Don't check for NULL.
15218 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15220 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15221 in case of call that did not complete.
15223 2019-01-02 Andrey Utkin <autkin@undo.io>
15225 * symfile.c (find_separate_debug_file): Fix search of debug files for
15228 2019-01-02 Tom Tromey <tom@tromey.com>
15230 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15232 * python/py-frame.c (frapy_older): Remove cast.
15233 (frapy_newer): Likewise.
15234 * python/py-breakpoint.c (local_setattro): Remove cast.
15235 * python/py-arch.c (archpy_name): Remove local variable.
15236 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15238 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15240 * unittests/basic_string_view/element_access/char/empty.cc:
15241 Fix year range in copyright header.
15243 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15245 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15247 <operator==>: Update with for removed field.
15249 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15250 <isa_features>: ...this.
15251 <abi_features>: New field.
15252 (riscv_isa_flen): Update comment.
15253 (riscv_abi_xlen): New declaration.
15254 (riscv_abi_flen): New declaration.
15255 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15257 (riscv_abi_xlen): New function.
15258 (riscv_isa_flen): Update to get answer from isa_features.
15259 (riscv_abi_flen): New function.
15260 (riscv_has_fp_abi): Update to get answer from abi_features.
15261 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15263 (riscv_call_info) <xlen, flen>: Update comment.
15264 (riscv_call_arg_struct): Remove invalid assertions
15265 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15267 (riscv_gdbarch_init): Gather isa features and abi features
15268 separately, ensure both match on the gdbarch when reusing an old
15269 gdbarch. Relax an error check to allow 32-bit abi float to run on
15270 a target with 64-bit float hardware.
15272 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15274 * source.c (search_command_helper): Stop reverse search
15275 when line 1 has been searched.
15277 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15279 * record-full.c (record_full_base_target::close): Rewrite
15280 record_full_core_buf_list free logic.
15282 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15284 * break-catch-syscall.c (print_one_catch_syscall): xfree
15287 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15289 * top.c (print_gdb_version): Update Copyright year in version
15292 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15294 Update copyright year range in all GDB files.
15296 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15298 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15300 For older changes see ChangeLog-2018.
15306 version-control: never