1 2019-11-22 Tom de Vries <tdevries@suse.de>
3 * contrib/words.sh: Combine sed invocations.
5 2019-11-21 Christian Biesinger <cbiesinger@google.com>
8 * demangle.c: Rename to...
9 * gdb-demangle.c: ..this.
10 (is_cplus_marker): Change return type to bool.
11 (_initialize_demangler): Rename to...
12 (_initialize_gdb_demangle): ...this.
13 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
14 * symtab.h (demangle): Remove declaration; instead include
17 2019-11-21 Tom Tromey <tromey@adacore.com>
19 * gdbsupport/format.c (format_pieces): Parse %I64d.
20 * unittests/format_pieces-selftests.c (test_windows_formats): New
24 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
26 Byte reverse display of variables with DW_END_big, DW_END_little
27 (DW_AT_endianity) dwarf attributes if different than the native
29 * ada-lang.c (ada_value_binop):
30 Use type_byte_order instead of gdbarch_byte_order.
31 * ada-valprint.c (printstr):
32 (ada_val_print_string):
33 * ada-lang.c (value_pointer):
35 Use type_byte_order instead of gdbarch_byte_order.
36 * c-lang.c (c_get_string):
37 Use type_byte_order instead of gdbarch_byte_order.
38 * c-valprint.c (c_val_print_array):
39 Use type_byte_order instead of gdbarch_byte_order.
40 * cp-valprint.c (cp_print_class_member):
41 Use type_byte_order instead of gdbarch_byte_order.
42 * dwarf2loc.c (rw_pieced_value):
43 Use type_byte_order instead of gdbarch_byte_order.
44 * dwarf2read.c (read_base_type): Handle DW_END_big,
46 * f-lang.c (f_get_encoding):
47 Use type_byte_order instead of gdbarch_byte_order.
48 * findvar.c (default_read_var_value):
49 Use type_byte_order instead of gdbarch_byte_order.
50 * gdbtypes.c (check_types_equal):
51 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
52 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
53 and TYPE_ENDIANITY_LITTLE if set.
54 (type_byte_order): new function.
55 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
56 (struct main_type) <flag_endianity_not_default>:
58 (type_byte_order): New function.
59 * infcmd.c (default_print_one_register_info):
60 Use type_byte_order instead of gdbarch_byte_order.
61 * p-lang.c (pascal_printstr):
62 Use type_byte_order instead of gdbarch_byte_order.
63 * p-valprint.c (pascal_val_print):
64 Use type_byte_order instead of gdbarch_byte_order.
65 * printcmd.c (print_scalar_formatted):
66 Use type_byte_order instead of gdbarch_byte_order.
67 * solib-darwin.c (darwin_current_sos):
68 Use type_byte_order instead of gdbarch_byte_order.
69 * solib-svr4.c (solib_svr4_r_ldsomap):
70 Use type_byte_order instead of gdbarch_byte_order.
71 * stap-probe.c (stap_modify_semaphore):
72 Use type_byte_order instead of gdbarch_byte_order.
73 * target-float.c (target_float_same_format_p):
74 Use type_byte_order instead of gdbarch_byte_order.
75 * valarith.c (scalar_binop):
77 Use type_byte_order instead of gdbarch_byte_order.
78 * valops.c (value_cast):
79 Use type_byte_order instead of gdbarch_byte_order.
80 * valprint.c (generic_emit_char):
83 Use type_byte_order instead of gdbarch_byte_order.
84 * value.c (unpack_long):
85 (unpack_bits_as_long):
86 (unpack_value_bitfield):
90 Use type_byte_order instead of gdbarch_byte_order.
91 * findvar.c (unsigned_pointer_to_address):
92 (signed_pointer_to_address):
93 (unsigned_address_to_pointer):
94 (address_to_signed_pointer):
95 (default_read_var_value):
96 (default_value_from_register):
97 Use type_byte_order instead of gdbarch_byte_order.
98 * gnu-v3-abi.c (gnuv3_make_method_ptr):
99 Use type_byte_order instead of gdbarch_byte_order.
100 * riscv-tdep.c (riscv_print_one_register_info):
101 Use type_byte_order instead of gdbarch_byte_order.
103 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
105 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
106 (current_ui_gdb_stdin_ptr): Likewise.
107 (current_ui_gdb_stderr_ptr): Likewise.
108 (current_ui_gdb_stdlog_ptr): Likewise.
109 (current_ui_current_uiout_ptr): Likewise.
110 (gen_ret_current_ui_field_ptr): Remove.
112 2019-11-21 Tom de Vries <tdevries@suse.de>
115 * cli/cli-script.c (execute_control_command): Only switch to
116 INTERP_CONSOLE's ui_out when INTERP_MI is active.
118 2019-11-19 Tom Tromey <tom@tromey.com>
120 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
121 Now static. Change type of "name".
122 (tui_set_win_height_command): Don't copy "arg".
123 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
124 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
126 2019-11-19 Ali Tamur <tamur@google.com>
128 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
129 "if (attr != nullptr)".
130 (dwarf2_find_base_address): Likewise.
131 (dwarf2_build_include_psymtabs): Likewise.
132 (read_cutu_die_from_dwo): Likewise.
133 (read_func_scope): Likewise.
134 (read_call_site_scope): Likewise.
135 (dwarf2_get_pc_bounds): Likewise.
136 (dwarf2_record_block_ranges): Likewise.
137 (dwarf2_add_field): Likewise.
138 (dwarf2_add_member_fn): Likewise.
139 (read_structure_type): Likewise.
140 (read_enumeration_type): Likewise.
141 (read_array_type): Likewise.
142 (read_array_order): Likewise.
143 (read_set_type): Likewise.
144 (read_common_block): Likewise.
145 (read_tag_reference_type): Likewise.
146 (read_tag_string_type): Likewise.
147 (read_subroutine_type): Likewise.
148 (read_base_type): Likewise.
149 (read_subrange_type): Likewise.
150 (new_symbol): Likewise.
151 (prepare_one_comp_unit): Likewise.
153 2019-11-19 Tom Tromey <tromey@adacore.com>
155 * windows-nat.c (windows_nat_target::attach): Include GetLastError
156 result in error when DebugActiveProcess fails.
158 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
159 Pedro Alves <palves@redhat.com>
161 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
162 * target.c (target_stack::push): Call 'unpush' if there's a
163 target on top of the stack.
165 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
167 * python/py-block.c (blpy_dealloc): Call tp_free.
168 (blpy_block_syms_dealloc): Likewise.
169 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
170 * python/py-inferior.c (infpy_dealloc): Likewise.
171 * python/py-lazy-string.c (stpy_dealloc): Likewise.
172 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
173 * python/py-symbol.c (sympy_dealloc): Likewise.
174 * python/py-symtab.c (stpy_dealloc): Likewise.
175 * python/py-type.c (typy_iterator_dealloc): Likewise.
177 2019-11-18 Christian Biesinger <cbiesinger@google.com>
179 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
180 constructor instead of using a class initializer.
182 2019-11-15 Christian Biesinger <cbiesinger@google.com>
184 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
185 * configure: Regenerate.
186 * configure.ac: Don't source common.host.
187 * gdbsupport/common.host: Remove.
188 * gdbsupport/mingw-strerror.c: Remove.
189 * gdbsupport/posix-strerror.c: Rename to...
190 * gdbsupport/safe-strerror.c: ...this.
192 2019-11-15 Christian Biesinger <cbiesinger@google.com>
194 * maint.c (scoped_command_stats::print_time): Use localtime_r
195 instead of localtime (provided through gnulib if necessary).
196 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
199 2019-11-15 Christian Biesinger <cbiesinger@google.com>
201 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
202 avoid compile errors.
204 2019-11-15 Christian Biesinger <cbiesinger@google.com>
206 * config.in: Regenerate.
207 * configure: Regenerate.
208 * gdbsupport/common.m4: No longer check for strerror_r.
209 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
210 POSIX version of strerror_r, now that gnulib provides it if
213 2019-11-14 Christian Biesinger <cbiesinger@google.com>
215 * README (`configure' options): Update.
217 2019-11-14 Tom Tromey <tromey@adacore.com>
219 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
220 expected type for the RHS if the LHS is a convenience variable.
222 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
224 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
225 Provide explicit default and copy constructor.
227 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
229 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
230 only call Py_INCREF (newbp) in the bppy_pending_object case.
232 2019-11-13 Tom Tromey <tromey@adacore.com>
235 * psympriv.h (partial_symbol): Remove static assert.
236 * symtab.h (general_symbol_info, symbol): Remove static assert.
238 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
240 * gdbsupport/format.c (format_pieces::format_pieces): Support
241 printf 'z' size modifier.
242 * gdbsupport/format.h (enum argclass): Add size_t_arg.
243 * printcmd.c (ui_printf): Handle size_t_arg.
244 * ui-out.c (ui_out::vmessage): Likewise.
245 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
247 (run_tests): Call test_format_int_sizes.
249 2019-11-12 Christian Biesinger <cbiesinger@google.com>
251 * ada-exp.y (write_ambiguous_var): Update.
252 * buildsym.c (add_symbol_to_list): Update.
253 * dwarf2read.c (read_variable): Update.
254 (new_symbol): Update.
255 * jit.c (finalize_symtab): Update.
256 * language.c (language_alloc_type_symbol): Update.
257 * symtab.c (fixup_symbol_section): Update.
258 (initialize_objfile_symbol_1): Move code to...
259 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
260 (allocate_symbol): Update.
261 (allocate_template_symbol): Update.
262 (get_symbol_address): Update.
263 * symtab.h (struct symbol): Inherit from general_symbol_info instead
264 of having as a field, and add a constructor.
265 (SYMBOL_VALUE): Update.
266 (SYMBOL_VALUE_ADDRESS): Update.
267 (SET_SYMBOL_VALUE_ADDRESS): Update.
268 (SYMBOL_VALUE_BYTES): Update.
269 (SYMBOL_VALUE_COMMON_BLOCK): Update.
270 (SYMBOL_BLOCK_VALUE): Update.
271 (SYMBOL_VALUE_CHAIN): Update.
272 (SYMBOL_LANGUAGE): Update.
273 (SYMBOL_SECTION): Update.
274 (SYMBOL_OBJ_SECTION): Update.
275 (SYMBOL_SET_LANGUAGE): Update.
276 (SYMBOL_SET_LINKAGE_NAME): Update.
277 (SYMBOL_SET_NAMES): Update.
278 (SYMBOL_NATURAL_NAME): Update.
279 (SYMBOL_LINKAGE_NAME): Update.
280 (SYMBOL_DEMANGLED_NAME): Update.
281 (SYMBOL_SEARCH_NAME): Update.
282 (SYMBOL_MATCHES_SEARCH_NAME): Update.
283 (struct symbol): Update.
284 (struct template_symbol): Update.
285 (struct rust_vtable_symbol): Update.
286 * xcoffread.c (SYMBOL_DUP): Update.
288 2019-11-12 Tom Tromey <tom@tromey.com>
290 * tui/tui-layout.c (show_layout): Set current_layout.
291 (show_source_disasm_command, show_data)
292 (show_source_or_disasm_and_command): Don't set current_layout.
294 2019-11-12 Tom Tromey <tom@tromey.com>
296 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
298 2019-11-12 Tom Tromey <tom@tromey.com>
300 * tui/tui-win.c (resize_message): New global.
301 (show_tui_resize_message): New function.
302 (tui_async_resize_screen): Print message if requested.
303 (_initialize_tui_win): Add tui-resize-message setting.
304 * NEWS: Add entry for new commands.
306 2019-11-11 Tom Tromey <tom@tromey.com>
308 * tui/tui.c (tui_initialize_readline): Add new bindable readline
311 2019-11-11 Christian Biesinger <cbiesinger@google.com>
313 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
315 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
317 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
319 * python/python-internal.h (gdbpy_lookup_static_symbols):
320 Declare new function.
321 * python/python.c (python_GdbMethods): Add
322 gdb.lookup_static_symbols method.
323 * NEWS: Mention gdb.lookup_static_symbols.
325 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
327 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
328 static block of current object file first. Also fix typo in
331 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
333 * stack.c (set_last_displayed_sal): Delete.
334 (last_displayed_sal_valid): Delete.
335 (last_displayed_pspace): Delete.
336 (last_displayed_addr): Delete.
337 (last_displayed_symtab): Delete.
338 (last_displayed_line): Delete.
339 (class last_displayed_symtab_info_type): New.
340 (last_displayed_symtab_info): New static global variable.
341 (print_frame_info): Call methods on last_displayed_symtab_info.
342 (clear_last_displayed_sal): Update header comment, and make use of
343 last_displayed_symtab_info.
344 (last_displayed_sal_is_valid): Likewise.
345 (get_last_displayed_pspace): Likewise.
346 (get_last_displayed_addr): Likewise.
347 (get_last_displayed_symtab): Likewise.
348 (get_last_displayed_line): Likewise.
349 (get_last_displayed_sal): Likewise.
350 * stack.h (clear_last_displayed_sal): Update header comment.
351 (last_displayed_sal_is_valid): Likewise.
352 (get_last_displayed_pspace): Likewise.
353 (get_last_displayed_addr): Likewise.
354 (get_last_displayed_symtab): Likewise.
355 (get_last_displayed_line): Likewise.
356 (get_last_displayed_sal): Likewise.
358 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
360 * stack.c (frame_show_address): Convert return type to bool.
361 * stack.h (frame_show_address): Likewise, and update header
364 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
366 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
367 * unittests/vec-utils-selftests.c: New file.
368 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
370 2019-11-10 Tom Tromey <tom@tromey.com>
372 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
373 (tui_highlight_win): Likewise.
374 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
375 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
376 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
377 Don't set can_highlight.
379 2019-11-10 Tom Tromey <tom@tromey.com>
381 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
382 Remove unused declaration.
384 2019-11-08 Tom Tromey <tromey@adacore.com>
386 * top.c (read_command_file): Update.
387 (command_line_input): Make return type const.
388 * python/py-gdb-readline.c: Update.
389 * linespec.c (decode_line_2): Update.
390 * defs.h (command_line_input): Make return type const.
391 * cli/cli-script.c (read_next_line): Make return type const.
392 * ada-lang.c (get_selections): Update.
394 2019-11-06 Christian Biesinger <cbiesinger@google.com>
396 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
397 * mi/mi-main.c (output_cores): Likewise.
398 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
399 (linux_xfer_osdata_modules): Likewise.
400 * remote.c (register_remote_support_xml): Likewise.
401 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
402 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
404 2019-11-06 Tom Tromey <tom@tromey.com>
406 * tui/tui-interp.c: Don't include readline.h.
407 * tui/tui-hooks.c: Don't include readline.h.
408 * symmisc.c: Include tilde.h, not readline.h.
409 * symfile.c: Include tilde.h, not readline.h.
410 * source.c: Include tilde.h, not readline.h.
411 * solib.c: Include tilde.h, not readline.h.
412 * psymtab.c: Include tilde.h, not readline.h.
413 * exec.c: Include tilde.h, not readline.h.
414 * corelow.c: Include tilde.h, not readline.h.
415 * cli/cli-dump.c: Include tilde.h, not readline.h.
416 * cli/cli-cmds.c: Don't include readline.h.
418 2019-11-05 Tom Tromey <tom@tromey.com>
420 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
421 (tui_disassemble): Set addr_size.
422 (tui_disasm_window::set_contents): Use addr_size.
424 2019-11-05 Tom Tromey <tom@tromey.com>
426 * rust-lang.c (rust_language_defn): Update.
427 * python/py-value.c (valpy_string): Call c_get_string.
428 * p-lang.c (pascal_language_defn): Update.
429 * opencl-lang.c (opencl_language_defn): Update.
430 * objc-lang.c (objc_language_defn): Update.
431 * m2-lang.c (m2_language_defn): Update.
432 * language.c (unknown_language_defn, auto_language_defn): Update.
433 (default_get_string): Remove.
434 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
435 * go-lang.c (go_language_defn): Update.
436 * f-lang.c (f_language_defn): Update.
437 * d-lang.c (d_language_defn): Update.
438 * c-lang.c (c_language_defn, cplus_language_defn)
439 (asm_language_defn, minimal_language_defn): Update.
440 * ada-lang.c (ada_language_defn): Update.
441 * language.h (struct language_defn) <la_get_string>: Remove.
442 (LA_GET_STRING): Remove.
443 (default_get_string): Don't declare.
445 2019-11-05 Tom Tromey <tom@tromey.com>
447 * tui/tui-source.h (struct tui_source_window): Inline
448 constructor. Remove destructor.
449 <style_changed, m_observable>: Move to superclass.
450 * tui/tui-winsource.h (tui_copy_source_line): Declare.
451 (struct tui_source_window_base): Move private members to end.
452 <style_changed, m_observable>: Move from tui_source_window.
453 * tui/tui-winsource.c (tui_copy_source_line): Move from
454 tui-source.c. Rename from copy_source_line. Add special handling
455 for negative line number.
456 (tui_source_window_base::style_changed): Move from
458 (tui_source_window_base): Register observer.
459 (~tui_source_window_base): New.
460 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
462 (tui_source_window::set_contents): Use tui_copy_source_line.
463 (tui_source_window::tui_source_window): Move to tui-source.h.
464 (tui_source_window::~tui_source_window): Remove.
465 (tui_source_window::style_changed): Move to superclass.
466 * tui/tui-disasm.c (tui_disassemble): Create string file with
467 styling, when possible. Add "addr_size" parameter.
468 (tui_disasm_window::set_contents): Use tui_copy_source_line.
469 Don't compute maximum size.
470 (len_without_escapes): New function
472 2019-11-05 Tom Tromey <tom@tromey.com>
474 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
476 * tui/tui-winsource.c (tui_show_source_line): Update.
477 * tui/tui-source.c (tui_source_window::set_contents): Update.
478 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
480 2019-11-05 Christian Biesinger <cbiesinger@google.com>
482 * symtab.h (gdb_static_assert): Put && operator at the beginning
483 of the line instead of the end.
485 2019-11-04 Christian Biesinger <cbiesinger@google.com>
487 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
489 * symtab.h: Add a static_assert for sizeof (partial_symbol).
491 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
493 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
494 * configure.host: Mark *-*-solaris2.10* obsolete.
495 * configure.tgt: Mark Solaris < 11 obsolete.
496 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
497 Update target triplet.
499 2019-11-01 Tom Tromey <tromey@adacore.com>
501 * utils.c (print_sys_errmsg): Simplify.
503 2019-11-01 Tom Tromey <tromey@adacore.com>
505 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
507 2019-11-01 Christian Biesinger <cbiesinger@google.com>
509 * configure: Regenerate.
510 * configure.ac: Remove check for strerror_r.
511 * gdbsupport/common.m4: Check for strerror_r.
513 2019-11-01 Luis Machado <luis.machado@linaro.org>
517 * arm-tdep.c (arm_per_objfile): Rename to ...
518 (arm_per_bfd): ... this.
519 (arm_objfile_data_key): Rename to ...
520 (arm_bfd_data_key): ... this.
521 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
523 (arm_record_special_symbol): Likewise.
525 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
527 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
529 * c-typeprint.c (c_print_typedef): Likewise.
530 * f-typeprint.c (f_print_typedef): Likewise.
531 * m2-typeprint.c (m2_print_typedef): Likewise.
532 * p-typeprint.c (pascal_print_typedef): Likewise.
533 * rust-lang.c (rust_print_typedef): Likewise.
534 * symtab.c (print_symbol_info): Print a newline after calling
537 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
539 * symtab.c (info_module_cmdlist): New variable.
540 (info_module_command): New function.
541 (search_module_symbols): New function.
542 (info_module_subcommand): New function.
543 (struct info_modules_var_func_options): New struct.
544 (info_modules_var_func_options_defs): New variable.
545 (make_info_modules_var_func_options_def_group): New function.
546 (info_module_functions_command): New function.
547 (info_module_variables_command): New function.
548 (info_module_var_func_command_completer): New function.
549 (_initialize_symtab): Register new 'info module functions' and
550 'info module variables' commands.
551 * symtab.h (typedef symbol_search_in_module): New typedef.
552 (search_module_symbols): Declare new function.
553 * NEWS: Mention new commands.
555 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
557 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
558 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
559 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
561 (scan_partial_symbols): Only create partial module symbols for non
563 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
565 * symtab.c (search_domain_name): Likewise.
566 (search_symbols): Likewise.
567 (print_symbol_info): Likewise.
568 (symtab_symbol_info): Likewise.
569 (info_modules_command): New function.
570 (_initialize_symtab): Register 'info modules' command.
571 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
572 * NEWS: Mention new 'info modules' command.
574 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
576 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
577 and $_gdb_maint_setting_str.
579 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
581 * cli/cli-cmds.c (setting_cmd, value_from_setting)
582 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
583 (str_value_from_setting, gdb_setting_str_internal_fn)
584 (gdb_maint_setting_str_internal_fn): New functions.
585 (_initialize_cli_cmds): Define the new convenience functions.
586 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
587 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
589 2019-10-31 Christian Biesinger <cbiesinger@google.com>
591 * agent.c (set_can_use_agent): When the setting is turned on,
592 look up agent symbols if we don't have them yet.
593 (agent_new_objfile): Don't look up agent symbols when the agent
596 2019-10-31 Christian Biesinger <cbiesinger@google.com>
598 * config.in: Regenerate.
600 2019-10-31 Christian Biesinger <cbiesinger@google.com>
602 * configure: Regenerate.
603 * configure.ac: Check for strerror_r.
604 * gdbsupport/common-utils.h (safe_strerror): Change return value
605 to const char * and document that this function is now threadsafe.
606 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
607 thread_local and call strerror_r, if available.
608 * utils.c (perror_string): Update.
609 (print_sys_errmsg): Update.
611 2019-10-31 Luis Machado <luis.machado@linaro.org>
613 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
615 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
616 objfile to fetch per-bfd data.
617 (arm_find_exidx_entry): Likewise.
619 2019-10-31 Christian Biesinger <cbiesinger@google.com>
621 * gdbsupport/agent.c (debug_agent): Change type to bool.
622 (use_agent): Likewise.
623 (all_agent_symbols_look_up): Likewise.
624 (agent_loaded_p): Change return value to bool.
625 (agent_look_up_symbols): Update.
626 (agent_capability_check): Change return value to bool.
627 * gdbsupport/agent.h (agent_loaded_p): Likewise.
628 (debug_agent): Change type to bool.
629 (use_agent): Likewise.
630 (agent_capability_check): Change return value to bool.
632 2019-10-30 Christian Biesinger <cbiesinger@google.com>
634 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
635 (build_minimal_symbol_hash_tables): Code to clear the table moved
636 to clear_minimal_symbol_hash_tables.
637 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
640 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
642 * infcmd.c: Remove includes.
643 * infrun.c: Remove includes.
645 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
647 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
648 (grow_vect): Remove declaration.
649 (ada_type_of_array): Remove declaration.
650 (ada_update_initial_language): Remove declaration.
651 (ada_fold_name): Remove declaration.
652 (ada_fill_in_ada_prototype): Remove declaration.
653 (user_select_syms): Remove declaration.
654 (get_selections): Remove declaration.
655 (ada_tag_type): Remove declaration.
656 (ada_value_tag): Remove declaration.
657 (ada_is_others_clause): Remove declaration.
658 (ada_in_variant): Remove declaration.
659 (ada_value_struct_elt): Remove declaration.
660 (ada_attribute_name): Remove declaration.
661 (ada_system_address_type): Remove declaration.
662 * ada-lang.c (ada_watch_location_expression): Make static.
663 (GROW_VECT): Move here from ada-lang.h.
664 (grow_vect): Make static.
665 (ada_update_initial_language): Make static.
666 (ada_fold_name): Make static.
667 (ada_type_of_array): Make static.
668 (encoded_ordered_before): Move up.
669 (sort_choices): Move up.
670 (print_signatures): Move up.
671 (ada_print_symbol_signature): Move up.
672 (get_selections): Move up and make static.
673 (user_select_syms): Move up and make static.
674 (ada_value_struct_elt): Move up and make static.
675 (ada_tag_type): Make static.
676 (ada_value_tag): Make static.
677 (ada_is_others_clause): Make static.
678 (ada_in_variant): Make static.
679 (ada_attribute_name): Make static.
681 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
683 * ada-lang.c: Remove includes.
684 * ada-typeprint.c: Remove includes.
685 * ada-valprint.c: Remove includes.
687 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
689 * addrmap.c: Add static assertions of type size, moved from
691 (_initialize_addrmap): Remove.
693 2019-10-29 Christian Biesinger <cbiesinger@google.com>
695 * coffread.c (record_minimal_symbol): Update.
696 (process_coff_symbol): Update.
697 * dbxread.c (read_dbx_symtab): Update.
698 * dwarf2read.c (add_partial_symbol): Update.
699 (fixup_go_packaging): Update.
700 (load_partial_dies): Update.
701 (new_symbol): Update.
702 * elfread.c (record_minimal_symbol): Change signature to use
703 gdb::string_view instead of name+len.
704 (elf_symtab_read): Update.
705 (elf_rel_plt_read): Update.
706 * mdebugread.c (parse_partial_symbols): Update.
707 (handle_psymbol_enumerators): Update.
708 (new_symbol): Update.
709 * minsyms.c (minimal_symbol_reader::record_full): Change signature
710 to use gdb::string_view instead of name+len.
711 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
712 * psympriv.h (add_psymbol_to_list): Likewise.
713 * psymtab.c (add_psymbol_to_bcache): Likewise.
714 (add_psymbol_to_list): Likewise.
715 * stabsread.c (define_symbol): Update.
716 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
717 * symtab.h (SYMBOL_SET_NAMES): Likewise.
718 (symbol_set_names): Likewise.
719 * xcoffread.c (scan_xcoff_symtab): Update.
721 2019-10-29 Christian Biesinger <cbiesinger@google.com>
723 * symtab.h (symbol_set_names): Document that copy_name must be
724 set to true for non-nullterminated strings.
725 * symtab.c (symbol_set_names): Only make a nullterminated copy of
726 linkage_name if the entry was not found and we need to demangle.
728 2019-10-29 Christian Biesinger <cbiesinger@google.com>
730 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
731 * dwarf2-frame.c (bsearch_fde_cmp): Update.
732 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
733 * gdbsupport/gdb_binary_search.h: New file.
735 2019-10-29 Christian Biesinger <cbiesinger@google.com>
737 * NEWS: Mention new --with-system-gdbinit-dir option.
738 * config.in: Regenerate.
739 * configure: Regenerate.
740 * configure.ac: Add new option --with-system-gdbinit-dir.
741 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
743 * main.c (get_init_files): Change system_gdbinit argument to
744 a vector and return the files in SYSTEM_GDBINIT_DIR in
745 addition to SYSTEM_GDBINIT.
746 (captured_main_1): Update.
747 (print_gdb_help): Update.
748 * top.c (print_gdb_configuration): Also print the value of
751 2019-10-28 Christian Biesinger <cbiesinger@google.com>
753 * gdbsupport/common-utils.h (startswith): Add an overloaded version
754 that takes gdb::string_view arguments.
756 2019-10-26 Tom de Vries <tdevries@suse.de>
758 * aarch64-linux-tdep.c: Fix typos in comments.
759 * aarch64-tdep.c: Same.
763 * arch/aarch64-insn.c: Same.
765 * breakpoint.h: Same.
768 * cli/cli-decode.c: Same.
769 * cli/cli-script.c: Same.
770 * cli/cli-utils.h: Same.
771 * coff-pe-read.c: Same.
773 * compile/compile-cplus-symbols.c: Same.
774 * compile/compile-object-run.c: Same.
777 * cp-support.c: Same.
779 * dwarf-index-write.c: Same.
780 * dwarf2-frame.c: Same.
781 * dwarf2-frame.h: Same.
783 * frame-base.h: Same.
788 * guile/scm-objfile.c: Same.
797 * mi/mi-cmd-disas.c: Same.
798 * mi/mi-getopt.h: Same.
799 * mi/mi-main.c: Same.
801 * nat/aarch64-sve-linux-sigcontext.h: Same.
803 * ppc-linux-nat.c: Same.
804 * ppc-linux-tdep.c: Same.
807 * prologue-value.h: Same.
808 * python/py-evtregistry.c: Same.
809 * python/py-instruction.h: Same.
810 * record-btrace.c: Same.
811 * record-full.c: Same.
813 * rs6000-tdep.c: Same.
815 * sol-thread.c: Same.
816 * sparc-sol2-tdep.c: Same.
817 * sparc64-tdep.c: Same.
822 * tracepoint.c: Same.
823 * tui/tui-data.h: Same.
824 * tui/tui-io.c: Same.
825 * tui/tui-win.c: Same.
827 * unittests/rsp-low-selftests.c: Same.
839 * xtensa-tdep.c: Same.
841 2019-10-25 Ali Tamur <tamur@google.com>
843 * charset.c (find_charset_names): Reflect API change.
845 2019-10-25 Christian Biesinger <cbiesinger@google.com>
847 * symtab.c (struct demangled_name_entry): Change demangled name
848 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
849 part of the struct anymore.
850 (symbol_set_names): No longer obstack allocate + copy the demangled
851 name, just store the allocated name from bfd.
853 2019-10-25 Tom Tromey <tromey@adacore.com>
855 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
856 (bsearch_cie_cmp, add_cie): Remove.
857 (find_cie): Reimplement.
858 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
859 (dwarf2_build_frame_info): Update.
861 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
864 * symfile.c (reread_symbols): Call forget_cached_source_info to
865 clear the stale source cache.
867 2019-10-24 Christian Biesinger <cbiesinger@google.com>
869 * configure: Regenerate.
870 * configure.ac: Remove code that sets python_has_threads.
872 2019-10-24 Christian Biesinger <cbiesinger@google.com>
874 * config.in: Regenerate.
875 * configure: Regenerate.
876 * configure.ac: Remove the code that uses sed to get the python
877 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
879 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
881 * python/py-progspace.c (pspy_block_for_pc): Return None for all
884 2019-10-23 Tom Tromey <tom@tromey.com>
886 * arc-tdep.c: Remove ".." from include.
887 * frv-tdep.c: Remove ".." from include.
888 * lm32-tdep.c: Remove ".." from include.
889 * microblaze-tdep.c: Remove ".." from include.
890 * or1k-tdep.h: Remove ".." from include.
891 * s12z-tdep.c: Remove ".." from include.
892 * Makefile.in (OPCODES_CFLAGS): Add comment.
893 (TOP_CFLAGS): New variable.
894 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
896 2019-10-23 Tom Tromey <tom@tromey.com>
898 * Makefile.in (READLINE_DIR): Update.
900 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
902 * infcall.c (call_function_by_hand_dummy): Fix the function
903 comment. And extract out a code section into...
904 (reserve_stack_space): ...this new function.
906 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
908 * infcall.c (value_arg_coerce): Remove an unused parameter.
909 (call_function_by_hand_dummy): Update the call to
912 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
914 * infcall.c (call_function_by_hand_dummy): Refactor.
916 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
918 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
920 2019-10-23 Tom Tromey <tom@tromey.com>
922 * configure: Rebuild.
923 * configure.ac: Don't check for sigprocmask.
924 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
926 2019-10-23 Tom Tromey <tom@tromey.com>
928 * configure: Rebuild.
929 * acinclude.m4: Use m4_include, not sinclude.
931 2019-10-23 Tom de Vries <tdevries@suse.de>
934 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
936 2019-10-22 Christian Biesinger <cbiesinger@google.com>
938 * symtab.c (struct demangled_name_entry) <language>: Change from
939 bitfield to regular variable.
941 2019-10-22 Christian Biesinger <cbiesinger@google.com>
943 * symtab.c (struct demangled_name_entry): Add a constructor.
944 (free_demangled_name_entry): New function to call the destructor
945 for demangled_name_entry.
946 (create_demangled_names_hash): Pass free_demangled_name_entry to
948 (symbol_set_names): Call placement new for demangled_name_entry.
949 * utils.c: No longer include xxhash.h here, now that fast_hash
950 is inlined in the header.
951 * utils.h: Instead, include it here.
953 2019-10-22 Christian Biesinger <cbiesinger@google.com>
955 * Makefile.in: Link with libxxhash.
956 * config.in: Regenerate.
957 * configure: Regenerate.
958 * configure.ac: Search for libxxhash.
959 * utils.c (fast_hash): Use xxhash if present.
961 2019-10-22 Christian Biesinger <cbiesinger@google.com>
963 * utils.h (fast_hash): New function.
964 * symtab.c (hash_demangled_name_entry): Call new function
967 2019-10-22 Christian Biesinger <cbiesinger@google.com>
969 * symtab.c (struct demangled_name_entry): Change type of mangled
970 to gdb::string_view. Also adds a constructor that takes the
972 (hash_demangled_name_entry): Update.
973 (eq_demangled_name_entry): Update.
974 (free_demangled_name_entry): New function to call the destructor
975 now that this is not a POD anymore.
976 (create_demangled_names_hash): Pass free_demangled_name_entry to
978 (symbol_set_names): Update.
980 2019-10-21 Ali Tamur <tamu@google.com>
982 * dwarf2read.c (dir_index): Change type.
983 (file_name_index): Likewise.
984 (line_header::include_dir_at): Change comment and implementation on
985 whether it is DWARF 5.
986 (line_header::is_valid_file_index): New function.
987 (line_header::file_name_at): Change comment and implementation on
988 whether it is DWARF 5.
989 (line_header::file_names): Change to private field renamed as
990 m_file_names and introduce a new accessor method.
991 (line_header::file_names_size): New method.
992 (line_header::include_dirs): Change to private field and rename as
994 (dw2_get_file_names_reader): Define local var at a smaller scope and
996 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
997 (process_structure_scope): Likewise.
998 (line_header::add_include_dir): Change message and reflect renaming.
999 (line_header::add_file_name): Likewise.
1000 (read_formatted_entries): Handle DW_FORM_data16.
1001 (dwarf_decode_line_header): Fix line header length calculation.
1002 (psymtab_include_file_name): Change comment and API.
1003 (lnp_state_machine::m_file): Update comment and reflect type change.
1004 (lnp_state_machine::record_line): Reflect type change.
1005 (dwarf_decode_lines): Reflect API change.
1006 (file_file_name): Likewise.
1007 (file_full_name): Likewise.
1009 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1011 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1013 2019-10-21 Tom Tromey <tom@tromey.com>
1015 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1017 2019-10-21 Tom Tromey <tom@tromey.com>
1019 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1020 NM_H. Use AC_CONFIG_LINKS.
1021 * configure: Rebuild.
1022 * Makefile.in (NM_H): New variable.
1023 (generated_files): Add NM_H. Remove gcore.
1024 (nm.h, stamp-nmh): New targets.
1026 2019-10-20 Tom Tromey <tom@tromey.com>
1028 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1029 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1031 (put_objfile_before): Now static.
1033 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1035 * gdbsupport/common-utils.h (startswith): Change return type to
1038 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1040 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1041 * breakpoint.c (bp_locations_compare): Rename to...
1042 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1043 (update_global_location_list): Use std::sort instead of qsort.
1044 * buildsym.c (compare_line_numbers): Rename to...
1045 (lte_is_less_than): ...this, and change to std::sort semantics.
1046 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1048 * disasm.c (compare_lines): Rename to...
1049 (line_is_less_than): ...this, and change to std::sort semantics.
1050 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1052 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1053 (fde_is_less_than): ...this, and change to std::sort semantics.
1054 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1055 * mdebugread.c (compare_blocks):
1056 (block_is_less_than): ...this, and change to std::sort semantics.
1057 (sort_blocks): Call std::sort instead of qsort.
1058 * objfiles.c (qsort_cmp): Rename to...
1059 (sort_cmp): ...this, and change to std::sort semantics.
1060 (update_section_map): Call std::sort instead of qsort.
1061 * remote.c (compare_pnums): Remove.
1062 (map_regcache_remote_table): Call std::sort instead of qsort.
1063 * utils.c (compare_positive_ints): Remove.
1064 * utils.h (compare_positive_ints): Remove.
1065 * xcoffread.c (compare_lte): Remove.
1066 (arrange_linetable): Call std::sort instead of qsort.
1068 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1070 * symfile.c (init_entry_point_info): Fix typo.
1071 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1073 2019-10-18 Tom de Vries <tdevries@suse.de>
1075 * aarch64-tdep.c: Fix typos in comments.
1077 * ada-tasks.c: Same.
1078 * alpha-tdep.c: Same.
1079 * alpha-tdep.h: Same.
1080 * amd64-nat.c: Same.
1081 * amd64-windows-tdep.c: Same.
1084 * arch-utils.c: Same.
1085 * arm-nbsd-tdep.c: Same.
1088 * blockframe.c: Same.
1091 * coff-pe-read.c: Same.
1093 * cris-tdep.c: Same.
1094 * darwin-nat.c: Same.
1098 * dtrace-probe.c: Same.
1099 * dwarf-index-write.c: Same.
1100 * dwarf2-frame-tailcall.c: Same.
1101 * dwarf2-frame.c: Same.
1102 * dwarf2read.c: Same.
1104 * exceptions.c: Same.
1105 * fbsd-tdep.c: Same.
1109 * gnu-v3-abi.c: Same.
1111 * h8300-tdep.c: Same.
1112 * hppa-tdep.c: Same.
1113 * i386-linux-tdep.c: Same.
1114 * i386-tdep.c: Same.
1115 * ia64-libunwind-tdep.c: Same.
1116 * ia64-tdep.c: Same.
1120 * linux-nat.c: Same.
1121 * linux-thread-db.c: Same.
1122 * machoread.c: Same.
1123 * mdebugread.c: Same.
1125 * mn10300-tdep.c: Same.
1126 * namespace.c: Same.
1128 * opencl-lang.c: Same.
1129 * or1k-tdep.c: Same.
1131 * ppc-linux-nat.c: Same.
1132 * ppc-linux-tdep.c: Same.
1133 * ppc-sysv-tdep.c: Same.
1136 * record-btrace.c: Same.
1137 * record-full.c: Same.
1138 * remote-fileio.c: Same.
1140 * rs6000-tdep.c: Same.
1141 * s12z-tdep.c: Same.
1142 * score-tdep.c: Same.
1146 * sol-thread.c: Same.
1147 * solib-svr4.c: Same.
1150 * sparc-nat.c: Same.
1151 * sparc-sol2-tdep.c: Same.
1152 * sparc-tdep.c: Same.
1153 * sparc64-tdep.c: Same.
1154 * stabsread.c: Same.
1158 * target-descriptions.c: Same.
1159 * target-float.c: Same.
1166 * windows-nat.c: Same.
1167 * xcoffread.c: Same.
1168 * xstormy16-tdep.c: Same.
1169 * xtensa-tdep.c: Same.
1171 2019-10-17 Tom Tromey <tromey@adacore.com>
1173 * configure: Rebuild.
1174 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1175 in AC_CONFIG_FILES invocation.
1176 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1177 new-style config.status invocation.
1179 2019-10-17 Tom de Vries <tdevries@suse.de>
1181 * arm-nbsd-nat.c: Fix typos in comments.
1183 * darwin-nat-info.c: Same.
1184 * dwarf2read.c: Same.
1186 * event-top.c: Same.
1189 * hppa-tdep.c: Same.
1190 * i386-tdep.c: Same.
1193 * mdebugread.c: Same.
1194 * moxie-tdep.c: Same.
1195 * nto-procfs.c: Same.
1197 * ppc-linux-tdep.c: Same.
1199 * riscv-tdep.c: Same.
1200 * s390-tdep.c: Same.
1202 * sparc-linux-tdep.c: Same.
1203 * sparc-nat.c: Same.
1205 * target-descriptions.c: Same.
1209 2019-10-16 Tom Tromey <tom@tromey.com>
1211 * objfiles.h (struct objfile) <original_name>: Now const.
1213 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1215 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1216 pass on to sigsetjmp's second argument.
1217 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1219 2019-10-16 Keith Seitz <keiths@redhat.com>
1222 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1223 sections whose size is greater than the file size.
1225 2019-10-16 Jim Wilson <jimw@sifive.com>
1227 * riscv-tdep.c (riscv_gcc_target_options): New.
1228 (riscv_gnu_triplet_regexp): New.
1229 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1230 set_gdbarch_gnu_triplet_regexp.
1232 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1234 * Makefile.in: Add xml-builtin.h.
1235 * features/feature_to_c.sh: Add an include for xml-builtin.h
1236 to ensure that the compiler checks that the types match.
1237 * xml-builtin.h: New file.
1238 * xml-support.c (fetch_xml_builtin): Add missing const.
1239 * xml-support.h: Remove declaration of xml_builtins.
1241 2019-10-16 Tom de Vries <tdevries@suse.de>
1244 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1245 (amd64_classify_aggregate): ... here.
1246 (amd64_classify_aggregate_field): Handled fiels of nested structs
1249 2019-10-16 Tom de Vries <tdevries@suse.de>
1252 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1253 that handles 'theclass'.
1255 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1257 * linespec.c (decode_digits_ordinary): Update comment.
1258 * make-target-delegates: No longer need to handle VEC case.
1259 * memrange.c (normalize_mem_ranges): Update comment.
1260 * namespace.c (add_using_directive): Update comment.
1261 * objc-lang.c (uniquify_strings): Update comment.
1262 * ppc-linux-nat.c (struct thread_points): Update comment.
1263 * probe.h (find_probes_in_objfile): Update comment.
1264 * target.h (enum flash_preserve_mode): Update comment.
1265 * varobj.c (varobj_restrict_range): Update comment.
1266 * varobj.h (varobj_list_children): Update comment.
1268 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1270 * Makefile.in: Remove references to vec.h and vec.c.
1271 * aarch64-tdep.c: No longer include vec.h.
1272 * ada-lang.c: Likewise.
1273 * ada-lang.h: Likewise.
1274 * arm-tdep.c: Likewise.
1276 * breakpoint.h: Likewise.
1277 * charset.c: Likewise.
1278 * cp-support.h: Likewise.
1279 * dtrace-probe.c: Likewise.
1280 * dwarf2read.c: Likewise.
1281 * extension.h: Likewise.
1282 * gdb_bfd.c: Likewise.
1283 * gdbsupport/gdb_vecs.h: Likewise.
1284 * gdbsupport/vec.c: Remove.
1285 * gdbsupport/vec.h: Remove.
1286 * gdbthread.h: Likewise.
1287 * guile/scm-type.c: Likewise.
1288 * inline-frame.c: Likewise.
1289 * machoread.c: Likewise.
1290 * memattr.c: Likewise.
1291 * memrange.h: Likewise.
1292 * namespace.h: Likewise.
1293 * nat/linux-btrace.h: Likewise.
1294 * osdata.c: Likewise.
1295 * parser-defs.h: Likewise.
1296 * progspace.h: Likewise.
1297 * python/py-type.c: Likewise.
1298 * record-btrace.c: Likewise.
1299 * rust-exp.y: Likewise.
1300 * solib-target.c: Likewise.
1301 * stap-probe.c: Likewise.
1302 * target-descriptions.c: Likewise.
1303 * target-memory.c: Likewise.
1304 * target.h: Likewise.
1305 * varobj.c: Likewise.
1306 * varobj.h: Likewise.
1307 * xml-support.h: Likewise.
1309 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1311 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1312 Update for new std::vector based implementation.
1313 (process_psymtab_comp_unit_reader): Likewise.
1314 (scan_partial_symbols): Likewise.
1315 (recursively_compute_inclusions): Likewise.
1316 (compute_compunit_symtab_includes): Likewise.
1317 (process_imported_unit_die): Likewise.
1318 (queue_and_load_dwo_tu): Likewise.
1319 (follow_die_sig_1): Likewise.
1320 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1321 (typedef dwarf2_per_cu_ptr): Remove.
1322 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1324 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1325 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1326 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1327 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1330 2019-10-15 Tom Tromey <tromey@adacore.com>
1332 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1335 2019-10-15 Tom Tromey <tromey@adacore.com>
1337 * windows-nat.c (windows_nat_target::fetch_registers)
1338 (windows_nat_target::store_registers): Rename "pid" to "tid".
1340 2019-10-15 Tom Tromey <tromey@adacore.com>
1342 * gdbarch.h, gdbarch.c: Rebuild.
1343 * gdbarch.sh (gcc_target_options): Change return type to
1345 * compile/compile.c (get_args): Update.
1346 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1347 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1349 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1351 * arch-utils.c (default_gcc_target_options): Return std::string.
1352 * arch-utils.h (default_gcc_target_options): Return std::string.
1353 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1355 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1357 * breakpoint.c (breakpoint_chain): Make static.
1358 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1359 of accessing breakpoint_chain.
1361 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1363 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1364 to a gdb::function_view and return value to bool.
1365 * breakpoint.h (iterate_over_breakpoints): Likewise.
1366 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1367 (pop_dummy_frame): Update.
1368 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1369 (gdbscm_breakpoints): Update.
1370 * python/py-breakpoint.c (build_bp_list): Update.
1371 (gdbpy_breakpoints): Update.
1372 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1374 (bpfinishpy_handle_stop): Update.
1375 (bpfinishpy_handle_exit): Update.
1376 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1377 (svr4_update_solib_event_breakpoints): Update.
1379 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1381 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1382 when unwrapping single-field structs.
1384 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1386 * dwarf2read.c: Remove includes.
1388 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1390 * ui-out.c (ui_out::call_do_message): Silence
1391 -Wformat-nonliteral warning.
1393 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1395 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1396 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1397 include: readline/tilde.h.
1399 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1401 * remote.c (remote_target::get_trace_status): Remove declaration of
1402 trace_regblock_size.
1404 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1406 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1407 (show_user): Remove declaration of cmdlist.
1408 * cli/cli-cmds.h (max_user_call_depth): Declare.
1409 * cli/cli-script.c (execute_user_command): Remove declaration
1410 of max_user_call_depth.
1412 2019-10-11 Jim Wilson <jimw@sifive.com>
1414 * gdbsupport/print-utils.h (pulongest): Fix comment.
1415 (plongest): Likewise.
1416 (phex): Add missing comment, mention leading zeros.
1417 (phex_nz): Add mention of no leading zeros to comment.
1419 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1420 plongest instead of unsigned long long cast.
1422 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1424 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1425 for external_editor_command and gdbtk_test.
1427 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1429 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1430 * varobj.c (varobjdebug): Move comment to...
1431 * varobj.h (varobjdebug): ...here, and declare.
1433 2019-10-09 Tom Tromey <tom@tromey.com>
1435 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1438 2019-10-09 Tom Tromey <tom@tromey.com>
1440 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1441 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1442 * tui/tui-command.c (tui_cmd_window::resize)
1443 (tui_refresh_cmd_win): Update.
1444 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1445 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1446 * tui/tui-data.c (~tui_gen_win_info): Remove.
1447 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1448 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1449 (tui_redisplay_readline, tui_mld_flush)
1450 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1451 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1452 (tui_data_window::erase_data_content)
1453 (tui_data_item_window::rerender)
1454 (tui_data_item_window::refresh_window): Update.
1455 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1456 (box_win, tui_gen_win_info::make_window)
1457 (tui_gen_win_info::make_visible): Update.
1458 (tui_delete_win): Remove.
1459 * tui/tui-winsource.c
1460 (tui_source_window_base::do_erase_source_content): Update.
1461 (tui_show_source_line, tui_source_window_base::update_tab_width)
1462 (tui_source_window_base::update_exec_info): Update.
1463 * tui/tui-data.h (struct curses_deleter): New.
1464 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1465 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1467 2019-10-09 Tom Tromey <tom@tromey.com>
1469 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1471 2019-10-09 Tom Tromey <tom@tromey.com>
1473 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1474 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1476 2019-10-09 Tom Tromey <tom@tromey.com>
1478 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1479 window height directly.
1480 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1482 * tui/tui-layout.c (tui_default_win_height): Remove.
1483 (tui_default_win_viewport_height): Remove.
1485 2019-10-09 Tom Tromey <tom@tromey.com>
1487 * tui/tui.h: Remove comments.
1489 2019-10-09 Tom de Vries <tdevries@suse.de>
1491 * python/lib/gdb/printer/bound_registers.py: Use
1492 '^builtin_type_bound128' as regexp argument for
1493 add_builtin_pretty_printer.
1495 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1497 * guile/guile.c (guile_extension_script_ops): Remove forward
1498 declaration and mark as static.
1499 (guile_script_ops): Likewise.
1500 (extension_language_guile): Move further down in the file so
1501 it can reference the definitions for guile_{extension_,}script_ops.
1503 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1505 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1506 except SORTL, DFLTCC, and KDSA.
1508 2019-10-08 Tom Tromey <tromey@adacore.com>
1510 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1511 (struct safe_symbol_file_add_args): Remove.
1513 2019-10-08 Tom Tromey <tromey@adacore.com>
1515 * windows-nat.c: Don't include buildsym-legacy.h.
1517 2019-10-08 Tom Tromey <tromey@adacore.com>
1519 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1521 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1523 * gdbtypes.c (overload_debug): Move comment to header.
1524 * gdbtypes.h (overload_debug): Declare.
1525 * valops.c: Remove declaration of overload_debug, instead
1528 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1530 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1532 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1534 * language.h (lang_frame_mismatch_warn): ... here. Also add
1536 * top.c (lang_frame_mismatch_warn): Remove declaration.
1537 (check_frame_language_change): Pass lang_frame_mismatch_warn
1540 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1542 * c-lang.h (vtbl_ptr_name): Declare.
1543 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1545 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1547 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1549 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1552 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1554 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1555 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1556 * ctfread.c: New file.
1557 * ctfread.h: New file.
1558 * elfread.c: Include ctfread.h.
1559 (struct elfinfo text_p): New member ctfsect.
1560 (elf_locate_sections): Mark CTF section.
1561 (elf_symfile_read): Call elfctf_build_psymtabs.
1562 * Makefile.in (LIBCTF): Add.
1565 (DIST): Add ctfread.c.
1567 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1569 * ctfread.c (struct nextfield): Renamed to ...
1570 (struct ctf_nextfield): ... this.
1571 (struct field_info): Renamed to ...
1572 (strut ctf_field_info): ... this.
1573 (attach_fields_to_type): Update for renamed structures.
1574 (ctf_add_member_cb): Likewise.
1575 (ctf_add_enum_member_cb): Likewise.
1576 (process_struct_members): Likewise.
1577 (process_enum_type): Likewise.
1579 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1581 * tracectf.h: Rename, was ctf.h.
1582 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1583 * tracefile.c: Likewise.
1584 * tracepoint.c: Remove unused include ctf.h.
1585 * mi/mi-main.c: Likewise.
1586 * Makefile.in Replace ctf.c with tracectf.c.
1588 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1590 * version.in: Change version number to "9.0.50.DATE-git".
1592 2019-10-03 Tom Tromey <tom@tromey.com>
1595 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1597 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1599 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1600 cp_search_name_hash.
1601 * NEWS: Add entry about nested function support.
1603 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1604 Andrew Burgess <andrew.burgess@embecosm.com>
1606 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1607 for nested static variables when searchin VAR_DOMAIN.
1608 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1609 global scope, update comment.
1610 (add_partial_subprogram): Call add_partial_subprogram recursively
1611 for nested subroutines when processinng Fortran.
1612 (load_partial_dies): Process the child entities of a subprogram
1613 when processing Fortran.
1614 (partial_die_parent_scope): Handle building scope
1615 for Fortran nested functions.
1616 (process_die): Record that nested functions have a scope.
1617 (new_symbol): Always record Fortran subprograms on the global
1619 (determine_prefix): How to build the prefix for Fortran
1622 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1624 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1625 have just sent the thread a SIGSTOP and are waiting for it to
1628 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1630 * btrace.c (btrace_add_pc): Remove whitespace before the template
1631 parameter in 'std::vector <...>'.
1632 (parse_xml_btrace_block): Likewise.
1633 (btrace_maint_decode_pt): Likewise.
1634 (btrace_maint_update_packets): Likewise.
1635 (btrace_maint_print_packets): Likewise.
1636 * btrace.h (struct btrace_maint_info): Likewise.
1637 * dwarf2read.c (struct type_unit_group): Likewise.
1638 (build_type_psymtabs_reader): Likewise.
1639 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1640 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1641 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1643 2019-10-03 Tom de Vries <tdevries@suse.de>
1645 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1646 the first line of the help text for set/show style metadata.
1648 2019-10-02 Tom Tromey <tromey@adacore.com>
1650 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1651 * gdbsupport/common-inferior.c: New file.
1652 * infcmd.c (startup_with_shell): Don't define.
1653 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1654 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1655 * inferior.h (startup_with_shell): Don't declare.
1657 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1659 * gdbsupport/gdb_assert.h: Include errors.h.
1660 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1662 2019-10-02 Tom Tromey <tromey@adacore.com>
1664 * NEWS: Add $_ada_exception entry.
1665 * ada-lang.c (struct ada_catchpoint): Add constructor.
1666 <m_kind>: New member.
1667 (allocate_location_exception, re_set_exception): Remove
1669 (should_stop_exception): Compute $_ada_exception.
1670 (check_status_exception, print_it_exception)
1671 (print_one_exception, print_mention_exception): Remove
1673 (allocate_location_catch_exception, re_set_catch_exception)
1674 (check_status_exception, print_it_catch_exception)
1675 (print_one_catch_exception, print_mention_catch_exception)
1676 (print_recreate_catch_exception)
1677 (allocate_location_catch_exception_unhandled)
1678 (re_set_catch_exception_unhandled)
1679 (check_status_exception, print_it_catch_exception_unhandled)
1680 (print_one_catch_exception_unhandled)
1681 (print_mention_catch_exception_unhandled)
1682 (print_recreate_catch_exception_unhandled)
1683 (allocate_location_catch_assert, re_set_catch_assert)
1684 (check_status_assert, print_it_catch_assert)
1685 (print_one_catch_assert, print_mention_catch_assert)
1686 (print_recreate_catch_assert)
1687 (allocate_location_catch_handlers, re_set_catch_handlers)
1688 (check_status_handlers, print_it_catch_handlers)
1689 (print_one_catch_handlers, print_mention_catch_handlers)
1690 (print_recreate_catch_handlers): Remove.
1691 (create_ada_exception_catchpoint): Update.
1692 (initialize_ada_catchpoint_ops): Update.
1694 2019-10-02 Tom Tromey <tromey@adacore.com>
1696 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1697 (create_excep_cond_exprs): Simplify exception string computation.
1698 (ada_exception_catchpoint_cond_string): Likewise.
1700 2019-10-02 Tom Tromey <tromey@adacore.com>
1702 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1703 * ada-lang.c (lesseq_defined_than): Handle
1705 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1707 (dwarf2_has_info): Likewise.
1708 (new_symbol): Set maybe_copied on symbol when
1710 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1712 <can_copy>: New member.
1713 * elfread.c (record_minimal_symbol): Set maybe_copied
1714 on symbol when appropriate.
1715 (elf_symfile_read): Update call to dwarf2_has_info.
1716 * minsyms.c (lookup_minimal_symbol_linkage): New
1718 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1719 * symtab.c (get_symbol_address, get_msymbol_address):
1721 * symtab.h (get_symbol_address, get_msymbol_address):
1723 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1725 (struct symbol, struct minimal_symbol) <maybe_copied>:
1728 2019-10-02 Tom Tromey <tromey@adacore.com>
1730 * source.c (struct current_source_location): New.
1731 (current_source_key): New global.
1732 (current_source_symtab, current_source_line)
1733 (current_source_pspace): Remove.
1734 (get_source_location): New function.
1735 (get_current_source_symtab_and_line)
1736 (set_default_source_symtab_and_line)
1737 (set_current_source_symtab_and_line)
1738 (clear_current_source_symtab_and_line, select_source_symtab)
1739 (info_source_command, print_source_lines_base)
1740 (info_line_command, search_command_helper, _initialize_source):
1743 2019-10-02 Tom Tromey <tromey@adacore.com>
1745 * source.c (select_source_symtab): Don't call
1746 decode_line_with_current_source.
1748 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1750 * symtab.c (lookup_global_symbol): Search global block.
1752 2019-10-02 Tom Tromey <tromey@adacore.com>
1754 * coffread.c (process_coff_symbol): Update.
1755 * dwarf2read.c (var_decode_location, new_symbol): Update.
1756 * mdebugread.c (parse_symbol): Update.
1757 * objfiles.c (relocate_one_symbol): Update.
1758 * stabsread.c (define_symbol, fix_common_block)
1759 (scan_file_globals): Update.
1760 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1761 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1762 * xcoffread.c (process_xcoff_symbol): Update.
1764 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1766 * MAINTAINERS: Update my email address.
1768 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1770 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1772 (build_type_psymtabs_reader): Update for std::vector.
1773 (build_type_psymtab_dependencies): Likewise.
1774 * dwarf2read.h: Remove use of DEF_VEC_P.
1775 (typedef sig_type_ptr): Delete.
1777 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1779 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1781 (btrace_maint_decode_pt): Likewise, and move allocation of the
1782 vector outside of the loop.
1783 (btrace_maint_update_packets): Update to handle change from VEC to
1785 (btrace_maint_print_packets): Likewise.
1786 (maint_info_btrace_cmd): Likewise.
1787 * btrace.h: Remove use of DEF_VEC_O.
1788 (typedef btrace_pt_packet_s): Delete.
1789 (struct btrace_maint_info) <packets>: Change fromm VEC to
1791 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1793 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1795 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1796 make accesses into the vector constant references.
1797 (btrace_add_pc): Update for std::vector.
1798 (btrace_stitch_bts): Likewise.
1799 (parse_xml_btrace_block): Likewise.
1800 (btrace_maint_update_packets): Likewise.
1801 (btrace_maint_print_packets): Likewise.
1802 (maint_info_btrace_cmd): Likewise.
1803 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1805 (btrace_data::empty): Likewise.
1806 (btrace_data_append): Likewise.
1807 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1808 (typedef btrace_block_s): Delete.
1809 (struct btrace_block): Add constructor.
1810 (struct btrace_data_bts) <blocks>: Change to std::vector.
1811 * nat/linux-btrace.c (perf_event_read_bts): Update for
1813 (linux_read_bts): Likewise.
1815 2019-10-01 Tom Tromey <tom@tromey.com>
1817 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1819 2019-10-01 Tom Tromey <tom@tromey.com>
1821 * stack.c (print_frame, info_frame_command_core): Use
1823 * linux-thread-db.c (try_thread_db_load_1)
1824 (try_thread_db_load_from_pdir_1): Use styled_string.
1825 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1826 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1827 (maybe_print_unsupported_script_warning)
1828 (maybe_print_script_not_found_warning): Use styled_string.
1829 * ada-lang.c (user_select_syms): Use styled_string.
1831 2019-10-01 Tom Tromey <tom@tromey.com>
1833 * p-lang.c (pascal_printstr): Use metadata style.
1834 * value.c (show_convenience): Use metadata style.
1835 * valprint.c (valprint_check_validity, val_print_optimized_out)
1836 (val_print_not_saved, val_print_unavailable)
1837 (val_print_invalid_address, generic_val_print, val_print)
1838 (value_check_printable, val_print_array_elements): Use metadata
1840 * ui-out.h (class ui_out) <field_fmt>: New overload.
1841 <do_field_fmt>: Add style parameter.
1842 * ui-out.c (ui_out::field_fmt): New overload.
1843 * typeprint.c (type_print_unknown_return_type)
1844 (val_print_not_allocated, val_print_not_associated): Use metadata
1846 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1848 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1849 * tracepoint.c (tvariables_info_1): Use metadata style.
1850 * stack.c (print_frame_arg, print_frame_info, print_frame)
1851 (info_frame_command_core): Use metadata style.
1852 * skip.c (info_skip_command): Use metadata style.
1853 * rust-lang.c (rust_print_enum): Use metadata style.
1854 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1856 * python/py-framefilter.c (py_print_single_arg): Use metadata
1858 * printcmd.c (do_one_display, print_variable_and_value): Use
1860 * p-valprint.c (pascal_val_print)
1861 (pascal_object_print_value_fields): Use metadata style.
1862 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1863 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1865 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1866 * m2-valprint.c (m2_print_long_set): Use metadata style.
1867 * m2-typeprint.c (m2_print_type): Use metadata style.
1868 * infcmd.c (print_return_value_1): Use metadata style.
1869 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1870 * f-valprint.c (info_common_command_for_block): Use metadata
1872 * f-typeprint.c (f_type_print_base): Use metadata style.
1873 * expprint.c (print_subexp_standard): Use metadata style.
1874 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1875 * cli/cli-style.h (class cli_style_option): Add constructor.
1876 (metadata_style): Declare.
1877 * cli/cli-style.c (metadata_style): New global.
1878 (_initialize_cli_style): Register metadata style.
1879 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1881 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1882 * c-typeprint.c (c_type_print_base_struct_union)
1883 (c_type_print_base_1): Use metadata style.
1884 * breakpoint.c (watchpoint_value_print)
1885 (print_one_breakpoint_location): Use metadata style.
1886 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1888 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1890 * ada-valprint.c (val_print_packed_array_elements, printstr)
1891 (print_field_values, ada_val_print_ref, ada_val_print): Use
1893 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1895 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1897 * ada-lang.c (user_select_syms): Use metadata style.
1899 2019-10-01 Tom Tromey <tom@tromey.com>
1901 * cli/cli-cmds.c (pwd_command): Style output.
1903 2019-10-01 Pedro Alves <palves@redhat.com>
1904 Tom Tromey <tom@tromey.com>
1906 * symtab.c (print_symbol_info): Use %ps.
1907 (print_msymbol_info): Use %ps.
1908 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1909 * printcmd.c (print_variable_and_value): Use %ps.
1910 * macrocmd.c (show_pp_source_pos): Use %ps.
1911 * infrun.c (print_exited_reason): Use ui_out::message.
1912 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1913 (describe_other_breakpoints): Use ui_out::message and new
1915 (say_where): Use new formats.
1916 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1919 2019-10-01 Pedro Alves <palves@redhat.com>
1920 Tom Tromey <tom@tromey.com>
1922 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1923 (test_gdb_formats): New function.
1924 (run_tests): Call it.
1925 (test_format_specifier): Update.
1926 * utils.h (fputs_filtered): Update comment.
1927 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1928 (fputs_styled_unfiltered): Declare.
1929 * utils.c (fputs_styled_unfiltered): New function.
1930 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1931 (vfprintf_filtered): Update.
1932 (vfprintf_unfiltered, vprintf_filtered): Update.
1933 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1934 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1935 disallow_ui_out_field>: New constants.
1936 (enum class field_kind): New.
1937 (struct base_field_s, struct signed_field_s): New.
1938 (signed_field): New function.
1939 (struct string_field_s): New.
1940 (string_field): New function.
1941 (struct styled_string_s): New.
1942 (styled_string): New function.
1943 (class ui_out) <message>: Add comment.
1944 <vmessage, call_do_message>: New methods.
1945 <do_message>: Add style parameter.
1946 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1948 (ui_out::message): Rewrite.
1949 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1951 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1952 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1953 gdb_extensions parameter.
1954 (class format_piece): Add parameter to constructor.
1955 (n_int_args): New field.
1956 * gdbsupport/format.c (format_pieces::format_pieces): Add
1957 gdb_extensions parameter. Handle '*'.
1958 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1959 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1960 vfprintf_styled_no_gdbfmt.
1961 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1962 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1964 * ui-style.h (struct ui_file_style) <ptr>: New method.
1966 2019-10-01 Tom Tromey <tom@tromey.com>
1968 * unittests/format_pieces-selftests.c: Update. Add final format.
1969 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1970 empty literal pieces.
1972 2019-10-01 Tom Tromey <tom@tromey.com>
1974 * ui-out.h (enum class ui_out_style_kind): Remove.
1975 (class ui_out) <field_string, field_stsream, do_field_string>:
1976 Change type of "style".
1977 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1978 (ui_out::field_string): Update.
1979 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1981 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1982 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1983 * stack.c (print_frame_arg, print_frame_info, print_frame):
1985 * source.c (print_source_lines_base): Update.
1986 * solib.c (info_sharedlibrary_command): Update.
1987 * skip.c (info_skip_command): Update.
1988 * record-btrace.c (btrace_call_history_src_line)
1989 (btrace_call_history): Update.
1990 * python/py-framefilter.c (py_print_frame): Update.
1991 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1993 * mi/mi-out.c (mi_ui_out::do_table_header)
1994 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1995 (mi_ui_out::do_field_string): Update.
1996 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1998 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2000 * cli-out.c (cli_ui_out::do_table_header)
2001 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2002 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2003 (cli_ui_out::do_field_fmt): Update.
2004 * breakpoint.c (print_breakpoint_location): Update.
2005 (update_static_tracepoint): Update.
2007 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2009 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2010 conversion of gdb_datadir.
2011 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2012 remove not needed c_str ().
2014 2019-09-30 Ali Tamur <tamur@google.com>
2016 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2017 (dwarf2_string_attr): Likewise.
2019 2019-09-30 Ali Tamur <tamur@google.com>
2021 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2022 (process_full_type_unit): Likewise.
2023 (dump_die_shallow): Likewise.
2024 (cu_debug_loc_section): Likewise.
2026 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2028 * minsyms.c (compare_minimal_symbols): Rename to...
2029 (minimal_symbol_is_less_than): ...this, and adjust to STL
2030 conventions (return bool, take arguments as references)
2031 (minimal_symbol_reader::install): Call std::sort instead
2034 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2036 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2038 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2039 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2041 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2043 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2044 * psympriv.h (add_psymbol_to_list): Move comment here and update
2047 2019-09-29 Tom de Vries <tdevries@suse.de>
2049 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2050 Use $tmpdir/$(basename "$output_file").dwz instead of
2051 "${output_file}.dwz".
2053 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2056 * hppa-linux-nat.c: Include gdbarch.h.
2058 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2060 * blockframe.c (find_pc_partial_function): Change return type to bool.
2061 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2062 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2063 (stub_gnu_ifunc_resolve_name): Likewise.
2064 * symtab.c (compare_filenames_for_search): Likewise.
2065 (compare_glob_filenames_for_search): Likewise.
2066 (matching_obj_sections): Likewise.
2067 (symbol_matches_domain): Likewise.
2068 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2069 (find_line_pc): Change return type to bool.
2070 (find_line_pc_range): Likewise.
2071 (producer_is_realview): Likewise.
2072 * symtab.h (symbol_matches_domain): Likewise.
2073 (find_pc_partial_function): Likewise.
2074 (find_pc_line_pc_range): Likewise.
2075 (in_gnu_ifunc_stub): Likewise.
2076 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2077 (find_line_pc): Likewise.
2078 (find_line_pc_range): Likewise.
2079 (matching_obj_sections): Likewise.
2080 (find_line_symtab): Change out parameter to bool.
2081 (producer_is_realview): Change return type to bool.
2082 (compare_filenames_for_search): Likewise.
2083 (compare_glob_filenames_for_search): Likewise.
2085 2019-09-26 Tom Tromey <tom@tromey.com>
2087 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2088 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2089 * gdb_usleep.h: Remove.
2090 * gdb_usleep.c: Remove.
2091 * utils.c: Don't include gdb_usleep.h.
2093 2019-09-26 Tom Tromey <tromey@adacore.com>
2095 * python/py-type.c (type_to_type_object): Call check_typedef
2098 2019-09-26 Tom Tromey <tom@tromey.com>
2100 * utils.h (initialize_utils): Don't declare.
2101 * top.c (gdb_init): Don't call initialize_utils.
2102 * utils.c (initialize_utils): Remove. Move contents...
2103 (_initialize_utils): ... here.
2105 2019-09-25 Tom Tromey <tom@tromey.com>
2107 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2108 * utils.h (make_hex_string): Don't declare.
2109 * utils.c (make_hex_string): Remove.
2111 2019-09-24 Tom de Vries <tdevries@suse.de>
2114 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2115 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2117 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2119 * NEWS: Mention new simulator port for PRU.
2121 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2123 * ada-exp.y (write_object_remaining): Update.
2124 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2125 and eliminate the static buffer.
2126 (ada_decode_symbol): Update.
2127 (ada_la_decode): Update.
2128 (ada_sniff_from_mangled_name): Update.
2129 (is_valid_name_for_wild_match): Update.
2130 (ada_lookup_name_info::matches): Update and simplify.
2131 (name_matches_regex): Update.
2132 (ada_add_global_exceptions): Update.
2133 * ada-lang.h (ada_decode): Update signature.
2134 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2135 * dwarf-index-write.c (debug_names::insert): Update.
2137 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2139 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2142 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2144 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2145 Change "nonzero" to "true" in documentation.
2147 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2149 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2150 (_initialize_darwin_solib): Don't set
2151 darwin_so_ops.lookup_lib_global_symbol.
2152 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2153 set_gdbarch_iterate_over_objfiles_in_search_order.
2154 (elf_lookup_lib_symbol): Rename to...
2155 (svr4_iterate_over_objfiles_in_search_order): this, and update
2156 to iterate semantics.
2157 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2158 * solib.c (solib_global_lookup): Remove.
2159 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2160 (solib_global_lookup): Remove.
2161 * symtab.c (lookup_global_or_static_symbol): Remove call to
2162 solib_global_lookup.
2164 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2166 * NEWS: Move entries about default MI version now being
2167 version 3, and about the GDB/MI fix for multi-location
2168 breakpoints to the "since GDB 8.3" section.
2170 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2174 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2176 * NEWS: Mention that Cell/B.E. debugging support was removed.
2177 * MAINTAINERS: Remove spu target.
2179 * config/djgpp/fnchange.lst: Remove entries for removed files.
2181 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2182 spu-multiarch.o, and spu-tdep.o.
2183 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2184 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2185 spu-multiarch.c, and spu-tdep.c.
2186 * spu-linux-nat.c: Remove file.
2187 * spu-multiarch.c: Remove file.
2188 * spu-tdep.c: Remove file.
2189 * spu-tdep.h: Remove file.
2190 * solib-spu.c: Remove file.
2191 * solib-spu.h: Remove file.
2193 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2194 * configure.nat (spu-linux): Remove.
2195 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2196 solib-multiarch.o from gdb_target_obs.
2199 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2201 (ppc_linux_no_features): Update.
2202 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2204 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2205 (tdesc_powerpc_cell64l): Likewise.
2206 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2207 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2209 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2210 Do not include "features/rs6000/powerpc-cell32l.c" or
2211 "features/rs6000/powerpc-cell64l.c".
2212 (ppc_linux_spu_section): Remove.
2213 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2214 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2215 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2216 (ppc_linux_spe_context_lookup): Remove.
2217 (ppc_linux_spe_context_inferior_created): Remove.
2218 (ppc_linux_spe_context_solib_loaded): Remove.
2219 (ppc_linux_spe_context_solib_unloaded): Remove.
2220 (ppc_linux_spe_context): Remove.
2221 (struct ppu2spu_cache): Remove.
2222 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2223 (struct ppu2spu_data): Remove.
2224 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2225 ppu2spu_unwind): Remove.
2226 (ppc_linux_init_abi): Remove Cell/B.E. support.
2227 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2229 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2230 (rs6000/powerpc-cell64l-expedite): Likewise
2231 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2232 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2233 rs6000/powerpc-cell64l.xml.
2234 * features/rs6000/powerpc-cell32l.xml: Remove.
2235 * features/rs6000/powerpc-cell64l.xml: Likewise.
2236 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2237 * features/rs6000/powerpc-cell64l.c: Likewise.
2238 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2239 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2240 * regformats/reg-spu.dat: Remove.
2242 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2243 * corelow.c (struct spuid_list): Remove.
2244 (add_to_spuid_list): Remove.
2245 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2246 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2247 (remote_protocol_features): Remove associated entries.
2248 (_initialize_remote): No longer initialize them.
2249 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2250 * linux-nat.c (SPUFS_MAGIC): Remove.
2251 (linux_proc_xfer_spu): Remove.
2252 (spu_enumerate_spu_ids): Remove.
2253 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2254 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2255 (linux_make_corefile_notes): No longer call it.
2257 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2258 (cooked_write_test): Likewise.
2260 2019-09-20 Tom Tromey <tom@tromey.com>
2262 * NEWS: Mention case-sensitivity of TUI commands.
2263 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2264 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2265 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2267 2019-09-20 Tom Tromey <tom@tromey.com>
2269 * tui/tui-source.c (tui_source_window::set_contents): Use
2270 make_unique_xstrdup.
2271 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2272 make_unique_xstrdup.
2274 2019-09-20 Tom Tromey <tom@tromey.com>
2276 * tui/tui-data.c: Remove separator comments.
2277 * tui/tui-layout.c: Remove separator comments.
2278 * tui/tui-win.c: Remove separator comments.
2279 * tui/tui-wingeneral.c: Remove separator comments.
2281 2019-09-20 Tom Tromey <tom@tromey.com>
2283 * tui/tui.h (strcat_to_buf): Don't declare.
2284 * tui/tui.c (strcat_to_buf): Remove.
2286 2019-09-20 Tom Tromey <tom@tromey.com>
2288 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2290 * tui/tui-source.c (tui_source_window::set_contents)
2291 (tui_source_window::location_matches_p)
2292 (tui_source_window::maybe_update): Update.
2294 2019-09-20 Tom Tromey <tom@tromey.com>
2296 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2298 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2300 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2301 (tui_data_window::line_from_reg_element_no)
2302 (tui_data_window::first_reg_element_no_inline)
2303 (tui_data_window::show_registers)
2304 (tui_data_window::show_register_group)
2305 (tui_data_window::display_registers_from)
2306 (tui_data_window::display_registers_from_line)
2307 (tui_data_window::first_data_item_displayed)
2308 (tui_data_window::delete_data_content_windows)
2309 (tui_data_window::erase_data_content)
2310 (tui_data_window::do_scroll_vertical)
2311 (tui_data_window::refresh_window)
2312 (tui_data_window::check_register_values): Update.
2314 2019-09-20 Tom Tromey <tom@tromey.com>
2316 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2317 (struct tui_locator_window) <full_name, proc_name>: Now
2319 * tui/tui-stack.c (tui_locator_window::make_status_line)
2320 (tui_locator_window::set_locator_fullname)
2321 (tui_locator_window::set_locator_info): Update.
2322 * tui/tui-source.c (tui_source_window::set_contents)
2323 (tui_source_window::showing_source_p): Update.
2325 2019-09-20 Tom Tromey <tom@tromey.com>
2327 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2328 Don't call tui_locator_win_info_ptr.
2330 2019-09-20 Tom Tromey <tom@tromey.com>
2332 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2334 2019-09-20 Tom Tromey <tom@tromey.com>
2336 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2338 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2339 * tui/tui-layout.c (show_source_disasm_command, show_data)
2340 (show_source_or_disasm_and_command): Use 1 as height for locator.
2342 2019-09-20 Tom Tromey <tom@tromey.com>
2344 * tui/tui.c (tui_enable): Update.
2345 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2347 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2349 * tui/tui-data.c (win_resized): Now bool.
2350 (tui_win_resized): Return bool.
2351 (tui_set_win_resized_to): Accept a bool.
2353 2019-09-20 Tom Tromey <tom@tromey.com>
2355 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2356 Change type of "refresh_values_only".
2357 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2358 type of "refresh_values_only".
2360 2019-09-20 Tom Tromey <tom@tromey.com>
2362 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2364 (tui_disassemble): Add "pos" parameter.
2365 (tui_disasm_window::set_contents): Simplify.
2367 2019-09-20 Tom Tromey <tom@tromey.com>
2369 * tui/tui-winsource.h (struct tui_source_window_base)
2370 <show_source_content>: Now private.
2371 * tui/tui-winsource.c
2372 (tui_source_window_base::show_source_content): Don't handle empty
2375 2019-09-20 Tom Tromey <tom@tromey.com>
2377 * tui/tui-layout.c (show_source_disasm_command)
2378 (show_source_or_disasm_and_command): Don't call
2379 show_source_content.
2381 2019-09-20 Tom Tromey <tom@tromey.com>
2383 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2385 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2386 from tui_make_status_line.
2387 (tui_locator_window::rerender): Update.
2389 2019-09-20 Tom Tromey <tom@tromey.com>
2391 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2392 (tui_locator_window::rerender): Update.
2394 2019-09-20 Tom Tromey <tom@tromey.com>
2396 * tui/tui-winsource.h (struct tui_source_window_base)
2397 <~tui_source_window_base>: Don't declare.
2399 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2400 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2402 * tui/tui-source.c (tui_source_window::set_contents): Update.
2403 (tui_source_window::location_matches_p)
2404 (tui_source_window::maybe_update): Update.
2406 2019-09-20 Tom Tromey <tom@tromey.com>
2408 * tui/tui-winsource.h (~tui_source_element): Remove.
2409 (tui_source_element): Update.
2410 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2411 * tui/tui-winsource.c (tui_show_source_line): Update.
2412 * tui/tui-source.c (tui_source_window::set_contents): Update.
2413 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2415 2019-09-20 Tom Tromey <tom@tromey.com>
2417 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2419 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2420 tui_clear_source_windows_detail.
2421 * tui/tui-winsource.h (struct tui_source_window_base)
2422 <clear_detail>: Don't declare.
2423 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2425 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2427 2019-09-20 Tom Tromey <tromey@adacore.com>
2430 * block.c (contained_in): Fix final return value.
2432 2019-09-20 Alan Modra <amodra@gmail.com>
2434 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2435 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2436 (read_indirect_string_from_dwz): Use bfd accessor.
2437 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2438 * machoread.c (macho_symfile_read_all_oso): Likewise.
2439 * solib.c (solib_bfd_open): Likewise.
2441 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2443 * eval.c: Move declaration of overload_resolution to...
2446 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2448 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2449 * arm-linux-tdep.c: Likewise.
2450 * arm-nbsd-nat.c: Likewise.
2451 * arm-tdep.h: Declare arm_apcs_32.
2452 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2454 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2456 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2457 * dwarf2read.h: Declare dwarf_always_disassemble.
2459 2019-09-19 Tom de Vries <tdevries@suse.de>
2462 * source-cache.c (source_cache::ensure): Catch exception thrown during
2463 construction of the highlighter.
2465 2019-09-18 Alan Modra <amodra@gmail.com>
2467 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2468 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2469 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2470 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2471 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2472 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2473 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2474 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2475 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2476 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2477 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2478 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2479 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2480 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2481 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2482 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2483 * mi/mi-interp.c: Update throughout for bfd section macro and
2485 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2486 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2488 2019-09-18 Tom Tromey <tom@tromey.com>
2491 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2493 (tui_enable): Do not call rl_initialize.
2495 2019-09-18 Christian Groessler <chris@groessler.org>
2497 * alpha-linux-nat.c: Include gdbarch.h.
2499 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2501 * ui-file.c: Include cli/cli-style.h.
2502 (term_cli_styling): Remove cli_styling declaration.
2504 2019-09-18 Alan Modra <amodra@gmail.com>
2506 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2507 to bfd_asymbol_section.
2509 2019-09-18 Alan Modra <amodra@gmail.com>
2511 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2512 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2513 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2515 2019-09-18 Alan Modra <amodra@gmail.com>
2517 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2518 * spu-linux-nat.c (spu_bfd_open): Likewise.
2520 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2522 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2523 to bool to match definition in dwarf2read.c.
2525 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2527 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2528 (print_signatures): Likewise.
2529 (trust_pad_over_xvs): Likewise.
2530 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2531 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2532 * arm-linux-nat.c (arm_apcs_32): Likewise.
2533 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2534 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2535 * arm-tdep.c (arm_debug): Likewise.
2536 (arm_apcs_32): Likewise.
2537 * auto-load.c (debug_auto_load): Likewise.
2538 (auto_load_gdb_scripts): Likewise.
2539 (global_auto_load): Likewise.
2540 (auto_load_local_gdbinit): Likewise.
2541 (auto_load_local_gdbinit_loaded): Likewise.
2542 * auto-load.h (global_auto_load): Likewise.
2543 (auto_load_local_gdbinit): Likewise.
2544 (auto_load_local_gdbinit_loaded): Likewise.
2545 * breakpoint.c (disconnected_dprintf): Likewise.
2546 (breakpoint_proceeded): Likewise.
2547 (automatic_hardware_breakpoints): Likewise.
2548 (always_inserted_mode): Likewise.
2549 (target_exact_watchpoints): Likewise.
2550 (_initialize_breakpoint): Update.
2551 * breakpoint.h (target_exact_watchpoints): Change to bool.
2552 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2553 * cli/cli-cmds.c (trace_commands): Likewise.
2554 * cli/cli-cmds.h (trace_commands): Likewise.
2555 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2557 * cli/cli-logging.c (logging_overwrite): Change to bool.
2558 (logging_redirect): Likewise.
2559 (debug_redirect): Likewise.
2560 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2561 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2563 <boolean_option_def>: Update.
2564 (struct flag_option_def): Change default type of Context to bool
2566 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2567 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2568 (get_setshow_command_value_string): Likewise.
2569 * cli/cli-style.c (cli_styling): Change to bool.
2570 (source_styling): Likewise.
2571 * cli/cli-style.h (source_styling): Likewise.
2572 (cli_styling): Likewise.
2573 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2575 * command.h (var_types): Update comment.
2576 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2577 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2579 (debug_compile_cplus_scopes): Likewise.
2580 * compile/compile-internal.h (compile_debug): Likewise.
2581 * compile/compile.c (compile_debug): Likewise.
2582 (struct compile_options) <raw>: Likewise.
2583 * cp-support.c (catch_demangler_crashes): Likewise.
2584 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2585 (usr_cmd_cris_dwarf2_cfi): Likewise.
2586 * csky-tdep.c (csky_debug): Likewise.
2587 * darwin-nat.c (enable_mach_exceptions): Likewise.
2588 * dcache.c (dcache_enabled_p): Likewise.
2589 * defs.h (info_verbose): Likewise.
2590 * demangle.c (demangle): Likewise.
2591 (asm_demangle): Likewise.
2592 * dwarf-index-cache.c (debug_index_cache): Likewise.
2593 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2594 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2595 * dwarf2read.c (check_physname): Likewise.
2596 (use_deprecated_index_sections): Likewise.
2597 (dwarf_always_disassemble): Likewise.
2598 * eval.c (overload_resolution): Likewise.
2599 * event-top.c (set_editing_cmd_var): Likewise.
2600 (exec_done_display_p): Likewise.
2601 * event-top.h (set_editing_cmd_var): Likewise.
2602 (exec_done_display_p): Likewise.
2603 * exec.c (write_files): Likewise.
2604 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2605 (debug_fbsd_nat): Likewise.
2606 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2608 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2609 <backtrace_past_entry> Likewise.
2610 * gdb-demangle.h (demangle): Likewise.
2611 (asm_demangle): Likewise.
2612 * gdb_bfd.c (bfd_sharing): Likewise.
2613 * gdbcore.h (write_files): Likewise.
2614 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2615 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2616 * gdbthread.h (print_thread_events): Likewise.
2617 * gdbtypes.c (opaque_type_resolution): Likewise.
2618 (strict_type_checking): Likewise.
2619 * gnu-nat.c (gnu_debug_flag): Likewise.
2620 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2621 * guile/scm-param.c (pascm_variable): Add boolval.
2622 (add_setshow_generic): Update.
2623 (pascm_param_value): Update.
2624 (pascm_set_param_value_x): Update.
2625 * hppa-tdep.c (hppa_debug): Change to bool..
2626 * infcall.c (may_call_functions_p): Likewise.
2627 (coerce_float_to_double_p): Likewise.
2628 (unwind_on_signal_p): Likewise.
2629 (unwind_on_terminating_exception_p): Likewise.
2630 * infcmd.c (startup_with_shell): Likewise.
2631 * inferior.c (print_inferior_events): Likewise.
2632 * inferior.h (startup_with_shell): Likewise.
2633 (print_inferior_events): Likewise.
2634 * infrun.c (step_stop_if_no_debug): Likewise.
2635 (detach_fork): Likewise.
2636 (debug_displaced): Likewise.
2637 (disable_randomization): Likewise.
2638 (non_stop): Likewise.
2639 (non_stop_1): Likewise.
2640 (observer_mode): Likewise.
2641 (observer_mode_1): Likewise.
2642 (set_observer_mode): Update.
2643 (sched_multi): Change to bool.
2644 * infrun.h (debug_displaced): Likewise.
2645 (sched_multi): Likewise.
2646 (step_stop_if_no_debug): Likewise.
2647 (non_stop): Likewise.
2648 (disable_randomization): Likewise.
2649 * linux-tdep.c (use_coredump_filter): Likewise.
2650 (dump_excluded_mappings): Likewise.
2651 * linux-thread-db.c (auto_load_thread_db): Likewise.
2652 (check_thread_db_on_load): Likewise.
2653 * main.c (captured_main_1): Update.
2654 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2655 xx2_opt, boolean_opt>: Change to bool.
2656 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2657 * maint.c (maintenance_profile_p): Likewise.
2658 (per_command_time): Likewise.
2659 (per_command_space): Likewise.
2660 (per_command_symtab): Likewise.
2661 * memattr.c (inaccessible_by_default): Likewise.
2662 * mi/mi-main.c (mi_async): Likewise.
2663 (mi_async_1): Likewise.
2664 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2665 * nat/fork-inferior.h (startup_with_shell): Likewise.
2666 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2667 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2668 * nios2-tdep.c (nios2_debug): Likewise.
2669 * or1k-tdep.c (or1k_debug): Likewise.
2670 * parse.c (parser_debug): Likewise.
2671 * parser-defs.h (parser_debug): Likewise.
2672 * printcmd.c (print_symbol_filename): Likewise.
2673 * proc-api.c (procfs_trace): Likewise.
2674 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2675 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2676 (set_parameter_value): Update.
2677 (add_setshow_generic): Update.
2678 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2680 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2682 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2683 * record-btrace.c (record_btrace_target::store_registers): Update.
2684 * record-full.c (record_full_memory_query): Change to bool.
2685 (record_full_stop_at_limit): Likewise.
2686 * record-full.h (record_full_memory_query): Likewise.
2687 * remote-notif.c (notif_debug): Likewise.
2688 * remote-notif.h (notif_debug): Likewise.
2689 * remote.c (use_range_stepping): Likewise.
2690 (interrupt_on_connect): Likewise.
2691 (remote_break): Likewise.
2692 * ser-tcp.c (tcp_auto_retry): Likewise.
2693 * ser-unix.c (serial_hwflow): Likewise.
2694 * skip.c (debug_skip): Likewise.
2695 * solib-aix.c (solib_aix_debug): Likewise.
2696 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2697 (spu_auto_flush_cache_p): Likewise.
2698 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2700 (struct info_print_options) <quiet>: Likewise.
2701 * symfile-debug.c (debug_symfile): Likewise.
2702 * symfile.c (auto_solib_add): Likewise.
2703 (separate_debug_file_debug): Likewise.
2704 * symfile.h (auto_solib_add): Likewise.
2705 (separate_debug_file_debug): Likewise.
2706 * symtab.c (basenames_may_differ): Likewise.
2707 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2708 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2709 (struct info_types_options) <quiet>: Likewise.
2710 * symtab.h (demangle): Likewise.
2711 (basenames_may_differ): Likewise.
2712 * target-dcache.c (stack_cache_enabled_1): Likewise.
2713 (code_cache_enabled_1): Likewise.
2714 * target.c (trust_readonly): Likewise.
2715 (may_write_registers): Likewise.
2716 (may_write_memory): Likewise.
2717 (may_insert_breakpoints): Likewise.
2718 (may_insert_tracepoints): Likewise.
2719 (may_insert_fast_tracepoints): Likewise.
2720 (may_stop): Likewise.
2721 (auto_connect_native_target): Likewise.
2722 (target_stop_and_wait): Update.
2723 (target_async_permitted): Change to bool.
2724 (target_async_permitted_1): Likewise.
2725 (may_write_registers_1): Likewise.
2726 (may_write_memory_1): Likewise.
2727 (may_insert_breakpoints_1): Likewise.
2728 (may_insert_tracepoints_1): Likewise.
2729 (may_insert_fast_tracepoints_1): Likewise.
2730 (may_stop_1): Likewise.
2731 * target.h (target_async_permitted): Likewise.
2732 (may_write_registers): Likewise.
2733 (may_write_memory): Likewise.
2734 (may_insert_breakpoints): Likewise.
2735 (may_insert_tracepoints): Likewise.
2736 (may_insert_fast_tracepoints): Likewise.
2737 (may_stop): Likewise.
2738 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2739 (make_thread_apply_all_options_def_group): Change argument from int*
2741 (thread_apply_all_command): Update.
2742 (print_thread_events): Change to bool.
2743 * top.c (confirm): Likewise.
2744 (command_editing_p): Likewise.
2745 (history_expansion_p): Likewise.
2746 (write_history_p): Likewise.
2747 (info_verbose): Likewise.
2748 * top.h (confirm): Likewise.
2749 (history_expansion_p): Likewise.
2750 * tracepoint.c (disconnected_tracing): Likewise.
2751 (circular_trace_buffer): Likewise.
2752 * typeprint.c (print_methods): Likewise.
2753 (print_typedefs): Likewise.
2754 * utils.c (debug_timestamp): Likewise.
2755 (sevenbit_strings): Likewise.
2756 (pagination_enabled): Likewise.
2757 * utils.h (sevenbit_strings): Likewise.
2758 (pagination_enabled): Likewise.
2759 * valops.c (overload_resolution): Likewise.
2760 * valprint.h (struct value_print_options) <prettyformat_arrays,
2761 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2762 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2763 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2765 * windows-nat.c (new_console): Likewise.
2766 (cygwin_exceptions): Likewise.
2767 (new_group): Likewise.
2768 (debug_exec): Likewise.
2769 (debug_events): Likewise.
2770 (debug_memory): Likewise.
2771 (debug_exceptions): Likewise.
2772 (useshell): Likewise.
2773 * windows-tdep.c (maint_display_all_tib): Likewise.
2774 * xml-support.c (debug_xml): Likewise.
2776 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2778 * source.c (prepare_path_for_appending): New function.
2779 (openp): Make use of new function.
2780 (find_and_open_source): Search for the compilation directory and
2781 source file as a relative path beneath the directory search path.
2783 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2785 * source-cache.c (source_cache::get_line_charpos): Catch
2786 exceptions and return false, this matches the behaviour documented
2789 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2791 * ada-tasks.c (info_task): Remove quoting of the task's name.
2793 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2795 * symfile.c (auto_solib_add): Replace comment with a reference
2798 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2800 * NEWS: Mention that gdb can now be compiled with Python 3
2803 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2805 * maint.c (maint_print_section_data::maint_print_section_data):
2806 Force use of 'float log10 (float)' by casting the argument to
2809 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2811 * maint.c: Add 'cmath' include.
2812 (struct maint_print_section_data): New structure.
2813 (print_section_index): New function.
2814 (print_bfd_section_info): Add header comment, small whitespace
2815 cleanup, and update to call new print_section_index function.
2816 (print_objfile_section_info): Likewise.
2817 (maint_obj_section_from_bfd_section): New function.
2818 (print_bfd_section_info_maybe_relocated): New function.
2819 (maintenance_info_sections): Add header comment, always use
2820 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2822 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2824 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2825 inner scope, add check that the objfile has psymtabs before
2826 checking psymtabs_addrmap.
2827 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2829 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2831 * NEWS: Announce that Ada task names are now shown at more places,
2832 and between quotes (except in info task output).
2833 * gdb/ada-tasks.c (task_to_str): New function.
2834 (display_current_task_id): Call task_to_str.
2835 (task_command_1): Likewise.
2836 (print_ada_task_info): In non-mi mode, Properly align headers and data
2837 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2839 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2841 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2842 prstatus.pr_lwp.pr_info instead of making it up.
2844 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2846 * auto-load.c (auto_load_expand_dir_vars): Update.
2847 * defs.h (gdb_datadir): Change to std::string.
2848 (python_libdir): Likewise.
2849 (relocate_gdb_directory): Change return type to std::string.
2850 * guile/guile.c (gdbscm_data_directory): Update.
2851 (initialize_scheme_side): Update.
2852 * jit.c (jit_reader_dir): Change to std::string.
2853 (jit_reader_load_command): Update.
2854 * main.c (gdb_datadir): Change to std::string.
2855 (python_libdir): Likewise.
2856 (set_gdb_data_directory): Update.
2857 (relocate_path): Change to return std::string.
2858 (relocate_gdb_directory): Change to return std::string.
2859 (relocate_gdbinit_path_maybe_in_datadir): Update.
2860 (captured_main_1): Update.
2861 * python/python.c (do_start_initialization): Update.
2862 * top.c (show_gdb_datadir): Update.
2863 * xml-syscall.c (xml_init_syscalls_info): Update.
2864 (init_syscalls_info): Update.
2866 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2868 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2869 out of get_init_files.
2870 (get_init_files): Update.
2872 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2874 * main.c (get_init_files): Change to use std::string.
2875 (captured_main_1): Update.
2876 (print_gdb_help): Update.
2878 2019-09-11 Ali Tamur <tamur@google.com>
2880 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2883 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2885 * dbxread.c (read_dbx_symtab): Update.
2886 * dwarf2read.c (load_partial_dies): Update.
2887 * mdebugread.c (parse_partial_symbols): Update.
2888 (handle_psymbol_enumerators): Update.
2889 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2890 * psymtab.c (add_psymbol_to_bcache): Likewise.
2891 (add_psymbol_to_list): Likewise.
2892 * symtab.c (symbol_set_names): Likewise.
2893 * symtab.h (symbol_set_names): Likewise.
2894 * xcoffread.c (scan_xcoff_symtab): Update.
2896 2019-09-11 Tom Tromey <tom@tromey.com>
2898 * symfile-mem.c (symbol_file_add_from_memory): Use
2900 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2901 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2903 2019-09-10 Tom Tromey <tromey@adacore.com>
2905 * dwarf-index-write.c (write_psymbols): Extend error message.
2906 (debug_names::insert): Add Ada code.
2907 (debug_names::write_psymbols): Remove Ada check.
2908 (debug_names) <m_string_obstack>: New member.
2909 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2910 (gdb_index_symbol_name_matcher::matches): Remove.
2911 (mapped_index_base::find_name_components_bounds): Add "lang"
2913 (mapped_index_base::build_name_components): Also split names
2914 according to Ada syntax.
2915 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2916 type of "match_callback".
2917 (check_match, check_find_bounds_finds)
2918 (dw2_expand_symtabs_matching): Update.
2919 (dw2_debug_names_iterator): Add new constructor.
2920 (dw2_debug_names_map_matching_symbols): New function.
2921 (dw2_debug_names_expand_symtabs_matching): Update.
2922 (dwarf2_debug_names_functions): Use
2923 dw2_debug_names_map_matching_symbols.
2925 2019-09-10 Tom Tromey <tromey@adacore.com>
2927 * dwarf2read.c (dw2_get_file_names_reader): Add the
2928 CU's file name to the results.
2930 2019-09-10 Tom Tromey <tromey@adacore.com>
2932 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2933 map_matching_symbols. Update.
2934 * dwarf2read.c (dw2_map_matching_symbols): Update.
2935 * psymtab.c (match_partial_symbol): Change type; update.
2936 (psym_map_matching_symbols): Likewise.
2937 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2939 * symfile.h (struct quick_symbol_functions)
2940 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2943 2019-09-10 Tom Tromey <tromey@adacore.com>
2945 * psymtab.c (map_block): Remove.
2946 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2947 * symtab.c (iterate_over_symbols_terminated): New function.
2948 * symtab.c (iterate_over_symbols_terminated): Declare.
2950 2019-09-10 Tom Tromey <tromey@adacore.com>
2952 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2953 * language.h (struct language_defn) <la_iterate_over_symbols>:
2955 * symtab.c (iterate_over_symbols): Return bool.
2956 * symtab.h (iterate_over_symbols): Return bool.
2958 2019-09-10 Tom Tromey <tromey@adacore.com>
2960 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2961 (add_nonlocal_symbols): Update.
2962 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2963 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2964 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2965 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2966 Change type of "callback". Remove "data".
2969 2019-09-09 Ali Tamur <tamur@google.com>
2971 * dwarf2read.c (comp_unit_head): Update comment.
2972 (dwarf2_dwo_name): New function declaration.
2973 (dwarf_unit_type_name): New function declaration.
2974 (read_comp_unit_head): Add support for new compilation units,
2975 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2976 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2977 (currently named as "signature") in their header. Also clarify error
2979 (lookup_dwo_id): New function. Returns the dwo id of the given
2981 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2982 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2984 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2985 (dwarf2_dwo_name): Get the dwo name if present.
2986 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2989 2019-09-09 Tom Tromey <tom@tromey.com>
2991 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2993 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2995 * python/python.c (do_start_initialization): Make progname_copy static,
2996 to avoid a leak report.
2998 2019-09-08 Tom Tromey <tom@tromey.com>
3000 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3002 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3004 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3005 Change type to gdb::optional<block_enum>.
3006 (dw2_symtab_iter_init): Change block_index parameter type
3007 to gdb::optional<block_enum>.
3008 (dw2_lookup_symbol): Change block_index parameter
3009 type to block_enum.c
3010 (dw2_debug_names_lookup_symbol): Likewise.
3011 * psymtab.c (psym_lookup_symbol): Likewise.
3012 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3013 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3016 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3018 * defs.h (relocate_gdb_directory): Change int to bool in
3019 signature and rename flag to relocatable.
3020 * main.c (relocate_path): Likewise.
3021 (relocate_gdb_directory): Likewise.
3023 2019-09-06 Alan Modra <amodra@gmail.com>
3025 * coffread.c (coff_symfile_read): Constify filename variable.
3026 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3027 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3028 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3029 * solib.c (reload_shared_libraries_1): Likewise.
3030 * symfile.c (reread_symbols): Likewise.
3031 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3032 * solib-darwin.c (darwin_bfd_open): Likewise.
3033 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3035 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3037 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3038 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3040 2019-09-03 Tom Tromey <tromey@adacore.com>
3042 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3044 (has_negatives): Unbias a range type bound.
3045 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3046 * gdbtypes.c (operator==): Handle new field.
3047 (create_range_type): Add "bias" parameter.
3048 (create_static_range_type, resolve_dynamic_range): Update.
3049 * gdbtypes.h (struct range_bounds) <bias>: New member.
3050 (create_range_type): Add bias parameter.
3051 * printcmd.c (print_scalar_formatted): Unbias range types.
3052 * value.c (unpack_long): Unbias range types.
3053 (pack_long): Bias range types.
3055 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3057 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3060 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3062 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3063 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3064 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3065 (compile_probe_arg): Likewise.
3066 * probe.h (get_argument_count): Likewise.
3067 * solib-svr4.c (solib_event_probe_action): Likewise.
3068 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3070 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3072 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3074 (svr4_create_solib_event_breakpoints): ...from here.
3076 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3078 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3079 suffix from warning message.
3081 2019-08-30 Tom Tromey <tom@tromey.com>
3083 * tui/tui-winsource.h (struct tui_source_window_base)
3084 <refresh_all>: Don't declare.
3085 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3087 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3088 tui_show_locator_content.
3089 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3091 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3092 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3095 2019-08-30 Tom Tromey <tom@tromey.com>
3097 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3099 2019-08-30 Tom Tromey <tom@tromey.com>
3101 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3102 Remove unnecessary forward declarations.
3104 2019-08-30 Tom Tromey <tom@tromey.com>
3106 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3108 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3109 tui_show_locator_content.
3111 2019-08-30 Tom Tromey <tom@tromey.com>
3113 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3114 (tui_locator_window::rerender): Rewrite using body of previous
3115 tui_show_locator_content.
3117 2019-08-30 Tom Tromey <tom@tromey.com>
3119 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3120 set_locator_fullname>: New methods.
3121 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3122 Rename from tui_set_locator_fullname.
3123 (tui_locator_window::set_locator_info): Rename from
3124 tui_set_locator_info. Return bool.
3125 (tui_update_locator_fullname, tui_show_frame_info): Update.
3127 2019-08-30 Tom Tromey <tom@tromey.com>
3129 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3131 2019-08-30 Tom Tromey <tom@tromey.com>
3133 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3136 2019-08-30 Tom Tromey <tom@tromey.com>
3138 * tui/tui-wingeneral.c (box_win): Assume win_info and
3139 win_info->handle cannot be NULL.
3141 2019-08-30 Tom Tromey <tom@tromey.com>
3143 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3144 refresh_window>: Declare.
3145 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3147 (tui_data_item_window::rerender): Rename from
3148 tui_display_register.
3149 (tui_data_item_window::refresh_window): New method.
3150 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3153 2019-08-30 Tom Tromey <tom@tromey.com>
3155 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3156 regs_column_count, current_group>: Move later. Now private.
3157 <get_current_group>: New method.
3158 * tui/tui-regs.c (tui_reg_command): Update.
3159 * tui/tui-layout.c (tui_set_layout): Update.
3161 2019-08-30 Tom Tromey <tom@tromey.com>
3163 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3164 (tui_data_window::rerender): Don't call
3165 check_and_display_highlight_if_needed.
3166 (tui_data_window::refresh_all): Remove call to
3169 2019-08-30 Tom Tromey <tom@tromey.com>
3171 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3172 (tui_data_window::display_registers_from)
3173 (tui_data_window::display_reg_element_at_line)
3174 (tui_data_window::display_registers_from_line): Remove checks of
3177 2019-08-30 Tom Tromey <tom@tromey.com>
3179 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3181 * tui/tui-regs.c (tui_data_window::show_registers): Call
3183 (tui_data_window::rerender): Rename from display_all_data.
3184 (tui_data_window::rerender): Remove old implementation.
3186 2019-08-30 Tom Tromey <tom@tromey.com>
3188 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3190 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3192 2019-08-29 Bernhard Wodok <barto@gmx.net>
3193 Sergio Durigan Junior <sergiodj@redhat.com>
3196 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3198 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3200 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3201 when searching for types.
3203 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3205 * f-lang.c (f_language_defn): Use f_print_typedef.
3206 * f-lang.h (f_print_typedef): Declare.
3207 * f-typeprint.c (f_print_typedef): Define.
3209 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3211 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3213 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3215 * cli/cli-utils.c (info_print_options_defs): Delete.
3216 (make_info_print_options_def_group): Delete.
3217 (extract_info_print_options): Delete.
3218 (info_print_command_completer): Delete.
3219 (info_print_args_help): Add extra parameter, and optionally
3220 include text about -n flag.
3221 * cli/cli-utils.h (struct info_print_options): Delete.
3222 (extract_info_print_options): Delete declaration.
3223 (info_print_command_completer): Delete declaration.
3224 (info_print_args_help): Add extra parameter, extend header
3226 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3228 * stack.c (struct info_print_options): New type.
3229 (info_print_options_defs): New file scoped variable.
3230 (make_info_print_options_def_group): New static function.
3231 (info_print_command_completer): New static function.
3232 (info_locals_command): Update to use new local functions.
3233 (info_args_command): Likewise.
3234 (_initialize_stack): Add extra parameter to calls to
3235 info_print_args_help.
3236 * symtab.c (search_symbols): Add extra parameter, use this to
3237 possibly excluse non-debug symbols.
3238 (symtab_symbol_info): Add extra parameter, which is passed on to
3240 (struct info_print_options): New type.
3241 (info_print_options_defs): New file scoped variable.
3242 (make_info_print_options_def_group): New static function.
3243 (info_print_command_completer): New static function.
3244 (info_variables_command): Update to use local functions, and pass
3245 extra parameter through to symtab_symbol_info.
3246 (info_functions_command): Likewise.
3247 (info_types_command): Pass additional argument through to
3249 (rbreak_command): Pass extra argument to search_symbols.
3250 (_initialize_symtab): Add extra arguments for calls to
3251 info_print_args_help, and update help text for 'info variables',
3252 'whereis', and 'info functions' commands.
3253 * symtab.h (search_symbols): Add extra argument to declaration.
3254 * NEWS: Mention new flags.
3256 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3258 * symtab.c (lookup_static_symbol): Call the new function (and move
3259 it down to be next to lookup_global_symbol).
3260 (struct global_sym_lookup_data): Add block_enum member and rename to...
3261 (struct global_or_static_sym_lookup_data): ...this.
3262 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3263 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3264 (lookup_symbol_global_or_static_iterator_cb): ...this.
3265 (lookup_global_or_static_symbol): New function.
3266 (lookup_global_symbol): Call new function.
3268 2019-08-26 Tom de Vries <tdevries@suse.de>
3271 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3272 when pc_probe.prob == NULL.
3274 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3276 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3277 variable symbol_linkage to symbol_linkage_.
3279 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3281 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3282 represent whether the symbol is static, dynamic, or we don't
3285 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3287 * gdb/rx-tdep.c (rx_register_names): New.
3288 (rx_register_name): Delete.
3289 (rx_psw_type): Delete.
3290 (rx_fpsw_type): Delete.
3291 (rx_register_type): Delete.
3292 (rx_gdbarch_init): Convert target-descriptions.
3293 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3294 * gdb/features/Makefile: Add rx.xml.
3295 * gdb/features/rx.xml: New.
3296 * gdb/features/rx.c: Generated.
3297 * gdb/NEWS: Mention target description support.
3299 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3301 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3304 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3306 * configure.ac: Don't check for 'dlfcn.h' (moved to
3307 gdbsupport/common.m4).
3308 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3310 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3311 * compile/compile-c-support.c: Include
3312 'gdbsupport/gdb-dlfcn.h'.
3313 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3314 * gdb-dlfcn.c: Move to...
3315 * gdbsupport/gdb-dlfcn.c: ... here.
3316 * gdb-dlfcn.h: Move to...
3317 * gdbsupport/gdb-dlfcn.h: ... here.
3319 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3321 * nios2-tdep.c (struct reg_value): Improve comments. Make
3322 the offset field signed.
3324 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3326 * python/lib/gdb/__init__.py (_execute_file): New function.
3327 * python/python.c (python_run_simple_file): Call gdb._execute_file
3330 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3332 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3333 all uses as this was never set to anything but a zero value.
3335 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3337 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3339 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3341 * tui/tui-data.h (tui_gen_win_info): Add an =default
3342 move constructor, required by some GCC versions.
3344 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3346 * go32-nat.c (go32_sysinfo): Add hygon_p.
3348 2019-08-20 Tom Tromey <tom@tromey.com>
3350 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3351 line_from_reg_element_no, first_reg_element_no_inline,
3352 display_all_data, delete_data_content_windows,
3353 erase_data_content>: Now private.
3355 2019-08-20 Tom Tromey <tom@tromey.com>
3357 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3358 (tui_unhighlight_win, tui_highlight_win)
3359 (tui_win_info::make_window): Update.
3360 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3362 2019-08-20 Tom Tromey <tom@tromey.com>
3364 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3365 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3366 (MAX_PID_WIDTH): Move to tui-stack.c.
3367 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3368 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3369 (MAX_PID_WIDTH): Move from tui-data.h.
3371 2019-08-20 Tom Tromey <tom@tromey.com>
3373 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3374 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3376 (tui_gen_win_info::make_window): Rename from tui_make_window.
3377 (tui_win_info::make_window): New method.
3378 (tui_gen_win_info::make_visible): Update.
3379 * tui/tui-source.c (tui_source_window::set_contents): Update.
3380 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3381 (tui_data_window::display_registers_from): Update.
3382 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3383 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3387 (struct tui_win_info) <make_window>: Declare.
3388 <can_box>: Now virtual.
3389 <title>: New member.
3390 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3391 * tui/tui-command.c (tui_cmd_window::resize): Update.
3393 2019-08-20 Tom Tromey <tom@tromey.com>
3395 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3396 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3397 (tui_data_window::check_register_values): Update.
3399 2019-08-20 Tom Tromey <tom@tromey.com>
3401 * tui/tui-regs.h (struct tui_data_window): Use
3402 DISABLE_COPY_AND_ASSIGN.
3403 <regs_content>: Change type, removing unique_ptr.
3404 <tui_data_window>: Add move constructor.
3405 * tui/tui-regs.c (tui_data_window::show_registers)
3406 (tui_data_window::show_register_group)
3407 (tui_data_window::display_registers_from)
3408 (tui_data_window::display_registers_from)
3409 (tui_data_window::first_data_item_displayed)
3410 (tui_data_window::delete_data_content_windows)
3411 (tui_data_window::rerender, tui_data_window::refresh_window)
3412 (tui_data_window::check_register_values): Update.
3414 2019-08-20 Tom Tromey <tom@tromey.com>
3416 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3417 show_register_group>: Declare.
3418 (tui_show_register_group): Don't declare.
3419 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3421 (tui_data_window::show_register_group): Rename from
3422 tui_show_register_group.
3423 (tui_data_window::check_register_values, tui_reg_command):
3425 * tui/tui-layout.c (tui_set_layout): Update.
3427 2019-08-20 Tom Tromey <tom@tromey.com>
3429 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3431 (tui_check_register_values): Don't declare.
3432 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3433 from tui_check_register_values.
3434 * tui/tui-hooks.c (tui_register_changed): Update.
3436 2019-08-20 Tom Tromey <tom@tromey.com>
3438 * tui/tui-regs.c (tui_reg_layout): Move later.
3439 (tui_show_registers): Don't enable TUI mode or change layout.
3441 2019-08-20 Tom Tromey <tom@tromey.com>
3443 * tui/tui-regs.h (struct tui_data_item_window)
3444 <~tui_data_item_window>: Remove.
3445 <content>: Now a unique_xmalloc_ptr.
3446 * tui/tui-regs.c (tui_register_format): Return a
3448 (tui_get_register): Update.
3449 (~tui_data_item_window): Remove.
3450 (tui_data_window::display_registers_from, tui_display_register):
3452 * tui/tui-io.h (tui_expand_tabs): Update.
3453 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3454 Remove "col" parameter.
3456 2019-08-20 Tom Tromey <tom@tromey.com>
3458 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3460 * tui/tui-regs.c (~tui_data_item_window): Update.
3462 2019-08-20 Tom Tromey <tom@tromey.com>
3464 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3467 2019-08-20 Tom Tromey <tom@tromey.com>
3469 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3471 2019-08-20 Tom Tromey <tom@tromey.com>
3473 * tui/tui-source.h (struct tui_source_window): Update.
3474 * tui/tui-regs.c (tui_show_registers): Update.
3475 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3476 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3477 (NO_REGS_STRING): Remove defines.
3479 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3481 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3482 unnecessary thread walk if remote doesn't support the packet.
3484 2019-08-19 Tom Tromey <tromey@adacore.com>
3486 * python/py-value.c (value_has_field): Fix indentation.
3488 2019-08-19 Tom Tromey <tromey@adacore.com>
3490 * printcmd.c (do_one_display, info_display_command): Update.
3491 * block.h (contained_in): Return bool. Add allow_nested
3493 * block.c (contained_in): Return bool. Add allow_nested
3496 2019-08-19 Tom Tromey <tom@tromey.com>
3498 * configure: Rebuild.
3499 * configure.ac: Disallow the combination of -static-libstdc++ and
3501 * source-cache.c (get_language_name): Handle rust.
3502 (source_cache::get_source_lines): Ignore highlighting exceptions.
3504 2019-08-16 Tom Tromey <tom@tromey.com>
3506 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3507 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3508 (struct tui_source_window_base) <make_visible, refresh_window,
3509 resize>: Remove methods.
3510 <execution_info>: Remove field.
3511 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3512 (tui_show_source_line, tui_source_window_base)
3513 (~tui_source_window_base): Update.
3514 (tui_source_window_base::resize)
3515 (tui_source_window_base::make_visible)
3516 (tui_source_window_base::refresh_window): Remove.
3517 (tui_source_window_base::update_exec_info): Update.
3518 * tui/tui-source.c (tui_source_window::set_contents): Update.
3519 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3521 2019-08-16 Tom Tromey <tom@tromey.com>
3523 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3524 deprecated_query_hook.
3526 2019-08-16 Tom Tromey <tom@tromey.com>
3528 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3529 (tui_update_source_windows_with_line): Update.
3530 * tui/tui-source.h (struct tui_source_window)
3531 <show_symtab_source>: Declare.
3532 (tui_show_symtab_source): Don't declare.
3533 * tui/tui-source.c (tui_show_symtab_source): Rename from
3534 tui_show_symtab_source.
3536 2019-08-16 Tom Tromey <tom@tromey.com>
3538 * tui/tui-winsource.h (struct tui_source_window_base)
3539 <set_contents>: Declare.
3540 * tui/tui-winsource.c
3541 (tui_source_window_base::update_source_window_as_is): Update.
3542 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3544 (tui_set_source_content): Don't declare.
3545 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3546 tui_set_source_content.
3547 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3549 (tui_set_disassem_content): Don't declare.
3550 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3551 tui_set_disassem_content.
3553 2019-08-16 Tom Tromey <tom@tromey.com>
3555 * tui/tui-winsource.h (struct tui_source_window_base)
3556 <update_breakpoint_info>: Declare.
3557 (tui_update_breakpoint_info): Don't declare.
3558 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3559 (tui_update_all_breakpoint_info): Update.
3560 (tui_source_window_base::update_breakpoint_info): Rename from
3561 tui_update_breakpoint_info.
3562 (tui_source_window_base::update_exec_info): Update.
3564 2019-08-16 Tom Tromey <tom@tromey.com>
3566 * tui/tui-winsource.h (struct tui_source_window_base)
3567 <update_source_window>: Declare.
3568 (tui_update_source_window): Don't declare.
3569 * tui/tui-winsource.c
3570 (tui_source_window_base::update_source_window): Rename from
3571 tui_update_source_window.
3572 (tui_source_window_base::rerender): Update.
3573 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3574 * tui/tui-disasm.c (tui_show_disassem)
3575 (tui_show_disassem_and_update_source)
3576 (tui_disasm_window::maybe_update): Update.
3578 2019-08-16 Tom Tromey <tom@tromey.com>
3580 * tui/tui-winsource.h (struct tui_source_window_base)
3581 <update_source_window_as_is>: Declare.
3582 (tui_update_source_window_as_is): Don't declare.
3583 * tui/tui-winsource.c (tui_update_source_window): Update
3584 (tui_source_window_base::update_source_window_as_is): Rename from
3585 tui_update_source_window_as_is.
3586 (tui_source_window_base::refill): Update.
3587 * tui/tui-source.c (tui_show_symtab_source): Update.
3588 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3591 2019-08-16 Tom Tromey <tom@tromey.com>
3593 * tui/tui-winsource.h (tui_update_source_window)
3594 (tui_update_source_window_as_is): Remove "noerror" parameter.
3595 * tui/tui-winsource.c (tui_update_source_window)
3596 (tui_update_source_window_as_is): Remove "noerror" parameter.
3597 (tui_update_source_windows_with_addr)
3598 (tui_update_source_windows_with_line)
3599 (tui_source_window_base::rerender)
3600 (tui_source_window_base::refill): Update.
3601 * tui/tui-source.h (tui_set_source_content)
3602 (tui_show_symtab_source): Remove "noerror" parameter.
3603 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3605 (tui_show_symtab_source): Likewise.
3606 (tui_source_window::maybe_update): Update.
3607 * tui/tui-disasm.c (tui_show_disassem)
3608 (tui_show_disassem_and_update_source)
3609 (tui_disasm_window::do_scroll_vertical)
3610 (tui_disasm_window::maybe_update): Update.
3612 2019-08-16 Tom Tromey <tom@tromey.com>
3614 * tui/tui.c (tui_is_window_visible): Update.
3615 * tui/tui-wingeneral.c (tui_make_window)
3616 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3617 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3618 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3619 (tui_set_win_height_command, parse_scrolling_args): Update.
3620 * tui/tui-source.c (tui_source_window::style_changed): Update.
3621 * tui/tui-regs.c (tui_show_registers)
3622 (tui_data_window::first_data_item_displayed)
3623 (tui_data_window::delete_data_content_windows)
3624 (tui_check_register_values, tui_reg_command): Update.
3625 * tui/tui-disasm.c (tui_show_disassem): Update.
3626 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3628 <is_visible>: Remove field.
3629 * tui/tui-data.c (tui_next_win, tui_prev_win)
3630 (tui_delete_invisible_windows): Update.
3632 2019-08-16 Tom Tromey <tom@tromey.com>
3634 * tui/tui-winsource.h (struct tui_source_window_base)
3635 <m_has_locator>: Remove.
3636 * tui/tui-layout.c (show_source_disasm_command, show_data)
3637 (show_source_or_disasm_and_command): Update.
3639 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3641 * NEWS (Other MI changes): New subsection.
3642 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3643 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3644 * arch-utils.c (default_get_pc_address_flags): New function.
3645 * arch-utils.h (default_get_pc_address_flags): New declaration.
3646 * gdbarch.sh: Add get_pc_address_flags.
3647 * gdbarch.c: Regenerate.
3648 * gdbarch.h: Likewise.
3649 * stack.c (print_pc): New function.
3650 (print_frame_info) (print_frame): Call print_pc.
3652 2019-08-16 Tom de Vries <tdevries@suse.de>
3654 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3655 print_objfile_section_info.
3657 2019-08-15 Tom Tromey <tom@tromey.com>
3659 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3660 calling update_cmdwin_start_line.
3661 * tui/tui-winsource.h (struct tui_source_window_base)
3662 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3663 <rerender>: Declare.
3664 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3666 (tui_source_window_base::set_new_height): Remove.
3667 (tui_source_window_base::rerender): Rename from
3668 do_make_visible_with_new_height.
3669 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3671 (tui_win_info::make_invisible_and_set_new_height)
3672 (tui_win_info::make_visible_with_new_height): Remove.
3673 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3675 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3676 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3677 do_make_visible_with_new_height>: Don't declare.
3678 <rerender>: Declare.
3679 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3681 (tui_data_window::do_make_visible_with_new_height): Remove.
3682 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3683 call tui_show_locator_content.
3684 (tui_gen_win_info::resize): Call rerender.
3685 (show_source_or_disasm_and_command): Don't call
3686 tui_show_locator_content.
3687 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3689 (struct tui_win_info) <rerender>: Declare.
3690 <set_new_height, make_invisible_and_set_new_height,
3691 make_visible_with_new_height>: Don't declare.
3692 * tui/tui-data.c (tui_win_list::rerender): New method.
3693 * tui/tui-command.h (struct tui_cmd_window)
3694 <do_make_visible_with_new_height>: Don't declare.
3696 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3698 2019-08-15 Tom Tromey <tromey@adacore.com>
3700 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3701 * ada-lang.c (ada_enum_name): Likewise.
3703 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3705 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3707 (GdbOutputErrorFile): Likewise.
3708 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3710 (execute_unwinders): Rename to have a leading underscore.
3711 (auto_load_packages): Likewise.
3712 (global scope): Adjust call to auto_load_packages accordingly.
3713 (GdbSetPythonDirectory): Likewise.
3714 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3715 instead of execute_unwinders.
3717 2019-08-15 Tom Tromey <tom@tromey.com>
3719 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3720 (show_data): Don't change window visibility.
3721 (tui_gen_win_info::resize): Remove special case for command
3722 window. Use wresize, when available.
3723 (show_source_or_disasm_and_command): Don't change window
3725 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3726 <make_visible>: New method.
3727 * tui/tui-command.c (tui_cmd_window::resize): New method.
3729 2019-08-15 Tom Tromey <tom@tromey.com>
3731 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3732 (struct tui_source_windows): New.
3733 * tui/tui-winsource.c (tui_display_main): Update.
3734 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3735 (new_height_ok, parse_scrolling_args): Update.
3736 * tui/tui-layout.c (show_layout, show_data): Update.
3737 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3738 (tui_add_to_source_windows): Don't declare.
3739 * tui/tui-data.c (source_windows, tui_source_windows)
3740 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3742 2019-08-15 Tom Tromey <tom@tromey.com>
3744 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3746 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3747 * tui/tui-layout.c (show_source_disasm_command, show_data):
3749 (tui_gen_win_info::resize): Rename.
3750 (show_source_or_disasm_and_command): Update.
3751 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3754 2019-08-15 Tom Tromey <tom@tromey.com>
3756 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3757 * tui/tui-interp.c (tui_interp::init): Don't call
3758 tui_initialize_static_data.
3759 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3761 2019-08-15 Tom Tromey <tom@tromey.com>
3763 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3764 examine tui_win_list.
3766 2019-08-15 Tom Tromey <tom@tromey.com>
3768 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3769 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3770 tui_clear_source_content.
3771 (tui_clear_source_content): Remove.
3772 (tui_source_window_base::do_erase_source_content): Hoist call to
3774 * tui/tui-stack.c (tui_show_frame_info): Don't call
3775 tui_clear_source_content.
3777 2019-08-15 Tom Tromey <tom@tromey.com>
3779 * tui/tui-winsource.h (struct tui_source_window_base)
3780 <do_erase_source_content>: New method.
3781 <erase_source_content>: New method.
3782 (tui_erase_source_content): Don't declare.
3783 * tui/tui-winsource.c (tui_clear_source_content): Update.
3784 (tui_source_window_base::do_erase_source_content): Rename from
3785 tui_erase_source_content.
3786 (tui_source_window_base::show_source_content): Update.
3787 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3788 * tui/tui-source.h (struct tui_source_window)
3789 <erase_source_content>: New method.
3790 * tui/tui-disasm.h (struct tui_disasm_window)
3791 <erase_source_content>: New method.
3793 2019-08-15 Tom Tromey <tom@tromey.com>
3795 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3796 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3798 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3799 * tui/tui-source.c (tui_set_source_content): Update.
3800 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3802 2019-08-15 Tom Tromey <tom@tromey.com>
3804 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3805 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3807 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3809 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3811 (tui_source_window::maybe_update): Update.
3813 2019-08-15 Tom Tromey <tom@tromey.com>
3815 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3816 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3818 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3820 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3822 (tui_disasm_window::maybe_update): Update.
3824 2019-08-15 Tom Tromey <tom@tromey.com>
3826 * tui/tui-winsource.h (struct tui_source_window_base)
3827 <maybe_update>: Declare.
3828 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3830 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3832 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3833 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3835 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3837 2019-08-15 Tom Tromey <tom@tromey.com>
3839 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3841 2019-08-15 Tom Tromey <tom@tromey.com>
3843 * tui/tui-wingeneral.c: Include tui-stack.h.
3844 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3845 (struct tui_locator_window): Move from tui-data.h.
3846 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3847 (tui_initialize_static_data): Move from tui-data.c.
3848 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3849 (struct tui_locator_window): Move to tui-stack.c.
3850 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3851 (tui_initialize_static_data): Move to tui-stack.c.
3853 2019-08-15 Tom Tromey <tom@tromey.com>
3855 * tui/tui-layout.c (show_source_disasm_command)
3856 (show_source_or_disasm_and_command): Use make_visible method, not
3858 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3861 2019-08-15 Tom Tromey <tom@tromey.com>
3863 * tui/tui-wingeneral.h (tui_make_window): Update.
3864 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3866 (tui_gen_win_info::make_visible): Update.
3867 * tui/tui-regs.c (tui_data_window::display_registers_from):
3869 * tui/tui-layout.c (show_source_disasm_command)
3870 (show_source_or_disasm_and_command): Update.
3871 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3872 (enum tui_box): Remove.
3873 (struct tui_win_info) <can_box>: New method.
3874 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3877 2019-08-15 Tom de Vries <tdevries@suse.de>
3879 * linux-nat-trad.c: Include gdbarch.h.
3881 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3883 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3886 2019-08-14 Tom Tromey <tromey@adacore.com>
3888 * darwin-nat.c: Include gdbarch.h.
3889 * darwin-nat-info.c: Include gdbarch.h.
3891 2019-08-13 Tom Tromey <tom@tromey.com>
3893 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3895 * tui/tui-data.c (tui_initialize_static_data): Update.
3897 2019-08-13 Tom Tromey <tom@tromey.com>
3899 * tui/tui-winsource.h (struct tui_exec_info_window)
3900 <~tui_exec_info_window, maybe_allocate_content, get_content,
3902 (struct tui_source_window_base) <set_exec_info_content,
3903 show_exec_info_content>: Don't declare.
3904 * tui/tui-winsource.c
3905 (tui_exec_info_window::maybe_allocate_content): Remove.
3906 (tui_source_window_base::update_exec_info): Rename from
3907 set_exec_info_content.
3908 (tui_source_window_base::show_exec_info_content)
3909 (tui_source_window_base::update_exec_info): Remove.
3911 2019-08-13 Tom Tromey <tom@tromey.com>
3913 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3915 * tui/tui-winsource.c (tui_update_source_window_as_is)
3916 (tui_update_source_windows_with_addr, tui_erase_source_content):
3918 (tui_clear_exec_info_content): Remove.
3920 2019-08-13 Tom Tromey <tom@tromey.com>
3922 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3924 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3925 call tui_erase_exec_info_content.
3926 (tui_clear_exec_info_content): Rename from
3927 tui_erase_exec_info_content.
3928 (tui_clear_exec_info_content): Delete.
3930 2019-08-13 Tom Tromey <tom@tromey.com>
3932 * tui/tui-winsource.h (struct tui_source_window_base)
3933 <show_exec_info_content>: Declare.
3934 (tui_show_exec_info_content): Don't declare.
3935 * tui/tui-winsource.c
3936 (tui_source_window_base::show_exec_info_content): Rename from
3937 tui_show_exec_info_content.
3938 (tui_source_window_base::update_exec_info): Update.
3940 2019-08-13 Tom Tromey <tom@tromey.com>
3942 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3943 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3944 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3945 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3946 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3947 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3950 2019-08-13 Tom Tromey <tom@tromey.com>
3952 * tui/tui-winsource.h (struct tui_source_window_base)
3953 <update_exec_info>: Declare.
3954 (tui_update_exec_info): Don't declare.
3955 * tui/tui-winsource.c (tui_update_source_window_as_is)
3956 (tui_source_window_base::refresh_all)
3957 (tui_update_all_breakpoint_info): Update.
3958 (tui_source_window_base::update_exec_info): Rename from
3959 tui_update_exec_info.
3960 * tui/tui-stack.c (tui_show_frame_info): Update.
3962 2019-08-13 Tom Tromey <tom@tromey.com>
3964 * tui/tui-winsource.h (struct tui_source_window_base)
3965 <set_exec_info_content>: Declare.
3966 (tui_set_exec_info_content): Don't declare.
3967 * tui/tui-winsource.c
3968 (tui_source_window_base::set_exec_info_content): Rename from
3969 tui_set_exec_info_content.
3970 (tui_update_exec_info): Update.
3972 2019-08-13 Tom Tromey <tom@tromey.com>
3974 * tui/tui-winsource.h (struct tui_source_window_base)
3975 <show_source_content>: Declare.
3976 (tui_show_source_content): Don't declare.
3977 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3978 (tui_source_window_base::show_source_content): Rename from
3979 tui_show_source_content.
3980 (tui_source_window_base::refresh_all): Update.
3981 * tui/tui-layout.c (show_source_disasm_command)
3982 (show_source_or_disasm_and_command): Update.
3984 2019-08-13 Tom Tromey <tom@tromey.com>
3986 * tui/tui-winsource.c (tui_erase_source_content)
3987 (tui_show_source_content, tui_source_window_base::refresh_all):
3989 * tui/tui-wingeneral.h
3990 (tui_check_and_display_highlight_if_needed): Don't declare.
3991 * tui/tui-wingeneral.c
3992 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3993 check_and_display_highlight_if_needed.
3994 * tui/tui-win.c (tui_rehighlight_all)
3995 (tui_win_info::make_visible_with_new_height): Update.
3996 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3997 (tui_data_window::erase_data_content)
3998 (tui_data_window::display_all_data): Update.
3999 * tui/tui-data.h (struct tui_win_info)
4000 <check_and_display_highlight_if_needed>: Declare.
4002 2019-08-13 Tom Tromey <tom@tromey.com>
4004 * tui/tui-win.c (tui_resize_all): Call
4005 tui_delete_invisible_windows.
4006 * tui/tui-layout.c (show_layout): Call
4007 tui_delete_invisible_windows.
4008 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4009 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4011 2019-08-13 Tom Tromey <tom@tromey.com>
4013 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4014 tui_add_win_to_layout.
4016 2019-08-13 Tom Tromey <tom@tromey.com>
4018 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4019 * tui/tui-layout.c (tui_default_win_height): Now static.
4021 2019-08-13 Tom Tromey <tom@tromey.com>
4023 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4025 (show_source_disasm_command, show_source_or_disasm_and_command):
4026 Don't check current layout.
4028 2019-08-13 Tom Tromey <tom@tromey.com>
4030 * tui/tui-wingeneral.c (make_all_visible): Remove.
4031 (tui_make_all_invisible): Simplify.
4032 * tui/tui-layout.c (tui_make_all_invisible): Move from
4033 tui-wingeneral.c; simplify.
4034 (show_layout): Hoist call to tui_make_all_invisible.
4035 (show_data): Don't call tui_make_all_invisible.
4037 2019-08-13 Tom Tromey <tom@tromey.com>
4039 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4040 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4042 2019-08-13 Tom Tromey <tom@tromey.com>
4044 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4046 (show_source_disasm_command, show_data)
4047 (show_source_or_disasm_and_command): Don't use
4048 tui_set_current_layout_to.
4049 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4050 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4052 (tui_set_current_layout_to): Remove.
4054 2019-08-13 Tom Tromey <tom@tromey.com>
4056 * tui/tui-layout.c (tui_set_layout): Update.
4057 * tui/tui-data.h (struct tui_layout_def): Remove.
4058 (tui_layout_def): Don't declare.
4059 * tui/tui-data.c (layout_def): Remove.
4060 (tui_layout_def): Remove.
4062 2019-08-13 Tom Tromey <tom@tromey.com>
4064 * tui/tui-winsource.h (struct tui_source_window_base)
4065 <clear_detail>: No longer "override".
4066 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4067 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4068 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4069 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4071 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4073 2019-08-13 Tom Tromey <tromey@adacore.com>
4075 * tracepoint.c: Don't include readline.h or history.h.
4077 2019-08-12 Tom Tromey <tom@tromey.com>
4079 * configure: Rebuild.
4080 * configure.ac: Check for readline 7.
4081 * NEWS: Mention readline 7 requirement.
4084 2019-08-12 Tom Tromey <tom@tromey.com>
4086 * mingw-hdep.c (gdb_select): Remove readline hack.
4088 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4090 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4091 when the function fails.
4093 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4095 * s390-tdep.c (s390_type_align): New function.
4096 (s390_gdbarch_init): Set it as type_align gdbarch method.
4098 2019-08-09 Tom de Vries <tdevries@suse.de>
4101 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4102 pc_low with relocation offset.
4104 2019-08-07 Tom Tromey <tromey@adacore.com>
4106 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4107 (print_frame_args): Update.
4108 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4110 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4111 * frame.h (struct frame_arg): Add initializers.
4112 <error>: Now a unique_xmalloc_ptr.
4114 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4116 * NEWS: Expand the Pointer Authentication entry.
4117 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4118 (aarch64_frame_unmask_lr): ... to this.
4119 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4120 Call aarch64_frame_unmask_lr.
4121 * frame.c (struct frame_info): Add "masked" variable.
4122 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4123 (fprint_frame): Check for masked pc.
4124 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4126 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4127 * stack.c (print_frame): Check for masked pc.
4129 2019-08-06 Tom Tromey <tom@tromey.com>
4131 * stabsread.c (patch_block_stabs, read_one_struct_field)
4132 (read_enum_type): Use obstack_strndup.
4133 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4134 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4135 * dwarf2read.c (guess_full_die_structure_name)
4136 (anonymous_struct_prefix): Use obstack_strndup.
4137 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4138 * c-exp.y (yylex): Use obstack_strndup.
4139 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4140 (write_var_or_type): Use obstack_strndup.
4142 2019-08-06 Tom Tromey <tom@tromey.com>
4144 * symfile.c (reread_symbols): Use obstack_strdup.
4145 * stabsread.c (read_type): Use obstack_strdup.
4146 * gdb_obstack.h (obstack_strdup): New overload.
4147 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4148 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4149 (dwarf2_canonicalize_name): Use obstack_strdup.
4150 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4151 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4154 2019-08-06 Tom Tromey <tom@tromey.com>
4156 * gdb_obstack.h (obstack_strdup): Define.
4157 * gdb_obstack.c (obstack_strdup): Don't define.
4159 2019-08-06 Tom Tromey <tom@tromey.com>
4161 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4163 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4165 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4166 * stabsread.c (common_block_start): Use obstack_strdup.
4167 * objfiles.c (set_objfile_main_name, objfile): Use
4169 * namespace.c (add_using_directive): Use obstack_strdup.
4170 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4171 * jit.c (finalize_symtab): Use obstack_strdup.
4172 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4173 (guess_partial_die_structure_name, partial_die_info::fixup)
4174 (dwarf2_name): Use obstack_strdup.
4175 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4177 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4178 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4180 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4182 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4184 * unittests/help-doc-selftests.c: New file.
4185 * Makefile.in: Add the new file.
4187 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4189 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4190 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4191 the full first line, except when FOR_VALUE_PREFIX. In this case,
4192 the trailing '.' is not output, and the first character is uppercased.
4193 (print_help_for_command): Update call to print_doc_line.
4194 (print_doc_of_command): Likewise.
4195 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4196 * cli/cli-option.c (append_indented_doc): Do not append newline.
4197 (build_help_option): Append newline after first appended_indented_doc
4198 only if a second call is done.
4199 (build_help): Append 2 new lines before each option, except the first
4201 * compile/compile.c (_initialize_compile): Add new lines after
4202 %OPTIONS%, when not at the end of the help.
4203 Change help doc or code
4204 producing the help doc to respect the invariants.
4205 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4206 Also removed the new line after 'Options:', as all other commands
4207 do not put an empty line between 'Options:' and the first option.
4208 * printcmd.c (_initialize_printcmd): Likewise.
4209 * stack.c (_initialize_stack): Likewise.
4210 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4211 incorrectly telling COMMAND is optional.
4212 * ada-lang.c (_initialize_ada_language): Change help doc or code
4213 producing the help doc to respect the invariants.
4214 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4215 * breakpoint.c (_initialize_breakpoint): Likewise.
4216 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4217 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4218 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4219 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4220 _initialize_cli_style): Likewise.
4221 * corelow.c (core_target_info): Likewise.
4222 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4223 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4224 * filesystem.c (_initialize_filesystem): Likewise.
4225 * frame.c (_initialize_frame): Likewise.
4226 * gnu-nat.c (add_task_commands): Likewise.
4227 * infcall.c (_initialize_infcall): Likewise.
4228 * infcmd.c (_initialize_infcmd): Likewise.
4229 * interps.c (_initialize_interpreter): Likewise.
4230 * language.c (_initialize_language): Likewise.
4231 * linux-fork.c (_initialize_linux_fork): Likewise.
4232 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4233 * maint.c (_initialize_maint_cmds): Likewise.
4234 * memattr.c (_initialize_mem): Likewise.
4235 * printcmd.c (_initialize_printcmd): Likewise.
4236 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4238 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4239 * record-btrace.c (_initialize_record_btrace): Likewise.
4240 * record-full.c (_initialize_record_full): Likewise.
4241 * record.c (_initialize_record): Likewise.
4242 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4243 * regcache.c (_initialize_regcache): Likewise.
4244 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4245 _initialize_remote): Likewise.
4246 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4247 * serial.c (_initialize_serial): Likewise.
4248 * skip.c (_initialize_step_skip): Likewise.
4249 * source.c (_initialize_source): Likewise.
4250 * stack.c (_initialize_stack): Likewise.
4251 * symfile.c (_initialize_symfile): Likewise.
4252 * symtab.c (_initialize_symtab): Likewise.
4253 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4254 * top.c (init_main): Likewise.
4255 * tracefile-tfile.c (tfile_target_info): Likewise.
4256 * tracepoint.c (_initialize_tracepoint): Likewise.
4257 * tui/tui-win.c (_initialize_tui_win): Likewise.
4258 * utils.c (add_internal_problem_command): Likewise.
4259 * valprint.c (value_print_option_defs): Likewise.
4261 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4264 * configure.ac: Drop enable-libmcheck support.
4265 * configure, config.in: Rebuild.
4266 * libmcheck.m4: Remove.
4267 * acinclude.m4: Don't include it.
4268 * Makefile.in: Don't distribute it.
4269 * top.c (print_gdb_configuration): Don't mention it.
4271 2019-08-06 Tom Tromey <tom@tromey.com>
4273 * utils.c (set_output_style): Sometimes pass stream to
4275 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4276 * record-btrace.c (btrace_insn_history): Update.
4277 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4279 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4280 Update initializers.
4281 <m_uiout>: New field.
4283 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4284 Remove "uiout" parameter.
4285 (dump_insns): Update.
4286 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4287 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4289 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4291 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4292 (error_in_psymtab_expansion): Likewise.
4293 (lookup_symbol_via_quick_fns): Likewise.
4294 (basic_lookup_transparent_type_quick): Likewise.
4295 (basic_lookup_transparent_type_1): Likewise.
4297 2019-08-06 Tom Tromey <tromey@adacore.com>
4299 * source.c (last_source_error): Now bool.
4300 (print_source_lines_base): Make "noprint" bool. Only open
4301 source file when last_source_visited changes.
4303 2019-08-06 Tom Tromey <tromey@adacore.com>
4305 * annotate.c (annotate_source_line): Use g_source_cache.
4306 * source-cache.c (source_cache::get_plain_source_lines): Change
4307 parameters. Populate m_offset_cache.
4308 (source_cache::ensure): New method.
4309 (source_cache::get_line_charpos): New method.
4310 (extract_lines): Move lower. Change parameters.
4311 (source_cache::get_source_lines): Move lower.
4312 * source-cache.h (class source_cache): Update comment.
4313 <get_line_charpos>: New method.
4314 <get_source_lines>: Update comment.
4315 <clear>: Clear m_offset_cache.
4316 <get_plain_source_lines>: Change parameters.
4317 <ensure>: New method
4318 <m_offset_cache>: New member.
4319 * source.c (forget_cached_source_info_for_objfile): Update.
4320 (info_source_command): Use g_source_cache.
4321 (find_source_lines, open_source_file_with_line_charpos): Remove.
4322 (print_source_lines_base, search_command_helper): Use g_source_cache.
4323 * source.h (open_source_file_with_line_charpos): Don't declare.
4324 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4325 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4328 2019-08-06 Tom Tromey <tromey@adacore.com>
4330 * source-cache.c (source_cache::get_plain_source_lines):
4331 Remove "first_line" and "last_line" parameters.
4332 (source_cache::get_source_lines): Cache plain text.
4333 * source-cache.h (class source_cache)
4334 <get_plain_source_lines>: Update.
4336 2019-08-06 Tom Tromey <tromey@adacore.com>
4338 * source-cache.c (extract_lines): No longer a method.
4339 Changed type of parameter. Include final newline.
4340 (selftests::extract_lines_test): New function.
4341 (_initialize_source_cache): Likewise.
4342 * source-cache.h (class source_cache)
4343 <extract_lines>: Don't declare.
4345 2019-08-06 Tom Tromey <tromey@adacore.com>
4347 * breakpoint.c (init_breakpoint_sal): Update.
4348 (breakpoint): Update.
4349 * breakpoint.h (struct breakpoint) <filter>: Now a
4352 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4354 * NEWS: Mention dictionary access on blocks.
4355 * python/py-block.c (blpy_getitem): New function.
4356 (block_object_as_mapping): New struct.
4357 (block_object_type): Use new struct for tp_as_mapping field.
4359 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4361 * objfiles.h (objfile): Add a comment describing partial symbols.
4363 2019-08-05 Tom Tromey <tromey@adacore.com>
4365 * compile/compile.c (_initialize_compile): Use _(), not N_().
4366 * thread.c (_initialize_thread): Use _(), not N_().
4367 * stack.c (_initialize_stack): Use _(), not N_().
4368 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4370 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4372 * dwarf2read.c (struct dw2_symtab_iterator):
4373 <want_specific_block>: Remove.
4374 <block_index>: Change type to gdb::optional.
4375 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4376 change type of BLOCK_INDEX parameter to gdb::optional.
4377 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4378 (dw2_lookup_symbol): Don't pass argument for
4379 WANT_SPECIFIC_BLOCK.
4380 (dw2_expand_symtabs_for_function): Don't pass argument for
4381 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4382 (class dw2_debug_names_iterator)
4383 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4384 parameter, change BLOCK_INDEX type to gdb::optional.
4385 <m_want_specific_block>: Remove.
4386 <m_block_index>: Change type to gdb::optional.
4387 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4388 gdb::optional. Re-write in function of gdb::optional.
4389 (dw2_debug_names_lookup_symbol): Don't pass argument for
4390 WANT_SPECIFIC_BLOCK.
4391 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4392 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4395 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4397 * NEWS: Mention changes to "info sources" command.
4399 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4401 * symtab.c (filename_partial_match_opts): New struct type.
4402 (struct output_source_filename_data): New members
4403 regexp, c_regexp, partial_match.
4404 (output_source_filename): Use new members to decide to print file.
4405 (info_sources_option_defs): New variable.
4406 (make_info_sources_options_def_group, print_info_sources_header,
4407 info_sources_command_completer):
4409 (info_sources_command): Read new optional arguments.
4410 (_initialize_symtab): Update info sources help.
4412 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4414 * ada-lang.c (exception_support_info_v0): Renamed from...
4415 (default_exception_support_info): ... this. Create new
4417 (ada_has_this_exception_support): Look up catch_handlers_sym.
4418 (ada_exception_support_info_sniffer): Try v0 after default.
4420 2019-08-01 Tom Tromey <tromey@adacore.com>
4422 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4425 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4427 * s12z-tdep.c: Fix include path for s12z-opc.h.
4429 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4431 * NEWS: Require GNU make 3.82.
4433 2019-07-16 Tom Tromey <tom@tromey.com>
4435 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4438 2019-07-30 Tom Tromey <tromey@adacore.com>
4440 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4442 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4444 * printcmd.c (print_address_symbolic): Print negative offsets.
4445 (build_address_symbolic): Force signed arithmetic when computing
4448 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4450 PR/24474: Add a function to lookup static variables.
4451 * NEWS: Mention this new function.
4452 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4453 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4454 * python/python.c (python_GdbMethods): Add new function.
4456 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4458 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4459 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4460 (objfpy_lookup_static_symbol): New function.
4461 (objfile_object_methods): Add new functions.
4463 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4465 * NEWS: Mention 'set|show print frame-info'. Mention new
4466 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4467 backtrace argument. Mention that python frame filtering code
4468 is now consistent with what 'backtrace' command prints.
4470 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4472 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4474 (print_frame_info_auto, print_frame_info_source_line,
4475 print_frame_info_location, print_frame_info_source_and_location,
4476 print_frame_info_location_and_address, print_frame_info_short_location):
4478 (struct frame_print_options): New member print_frame_info.
4479 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4480 * stack.h (get_user_print_what_frame_info): New declaration.
4481 (frame_show_address): New declaration.
4482 * stack.c (print_frame_arguments_choices): New value 'presence'.
4483 (print_frame_info_auto, print_frame_info_source_line,
4484 print_frame_info_location, print_frame_info_source_and_location,
4485 print_frame_info_location_and_address, print_frame_info_short_location,
4486 print_frame_info_choices, print_frame_info_print_what): New definitions.
4487 (print_frame_args): Only print dots for args if print frame-arguments
4489 (frame_print_option_defs): New element for "frame-info".
4490 (get_user_print_what_frame_info): New function.
4491 (frame_show_address): Make non static. Move comment to stack.h.
4492 (print_frame_info_to_print_what): New function.
4493 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4494 to decide what to print.
4495 (backtrace_command_1): Handle the new print_frame_arguments_presence
4497 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4498 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4499 (py_print_frame): In non-mi mode, use LOCATION as default for
4500 print_what, similarly to frame information printed directly by
4501 backtrace command. Handle frame-info user option in non MI mode.
4503 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4505 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4506 Add case for debugging 32-bit target on 64-bit host. Revise
4509 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4511 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4512 instead of find_function_entry_range_from_pc.
4514 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4516 * stack.c (find_frame_funname): Remove code which preferred
4517 minsym over symtab sym in "certain pathological cases".
4519 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4520 parameter. Change type of "do_demangle" to bool.
4521 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4522 Pass suitable "prefer_sym_over_minsym" flag to
4523 build_address_symbolic(). Don't output "+" for negative offsets.
4524 * printcmd.c (print_address_symbolic): Update invocation of
4525 build_address_symbolic to include a "prefer_sym_over_minsym"
4527 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4528 Restrict cases in which use of minimal symbol is preferred to that
4529 of a found symbol. Update comments.
4531 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4532 for entry pc when entry pc is out of range for that FDE.
4534 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4537 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4540 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4542 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4543 this function's Python signature.
4546 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4548 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4549 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4550 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4551 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4552 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4555 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4557 * h8300-tdep.c (h8300_register_name_common): New.
4558 h8300_register_name): Use h8300_register_name_common.
4559 (h8300s_register_name): Likewise.
4560 (h8300sx_register_name): Likewise.
4561 (h8300h_register_nam): New.
4562 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4565 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4567 * arm-tdep.c (arm_skip_cmse_entry): New function.
4568 (arm_is_sgstubs_section): New function.
4569 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4571 2019-07-22 Tom Tromey <tom@tromey.com>
4573 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4576 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4578 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4581 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4583 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4584 so that GDB doesn't match any msymbols when searching in the
4586 (print_symbol_info): Print using typedef_print or type_print based
4587 on the type of the symbol. Add updated FIXME comment moved from...
4588 (_initialize_symtab): ... move and update FIXME comment to above.
4590 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4592 * NEWS: Mention adding -q option to "info types".
4593 * symtab.c (struct info_types_options): New struct.
4594 (info_types_options_defs): New variable.
4595 (make_info_types_options_def_group): New function.
4596 (info_types_command): Use gdb::option framework to parse options.
4597 (info_types_command_completer): New function.
4598 (_initialize_symtab): Extend the help text on "info types" and
4599 register command completer.
4601 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4603 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4604 (lookup_symbol_in_objfile): Change int to block_enum and add a
4605 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4607 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4609 * MAINTAINERS (Write After Approval): Add self.
4611 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4613 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4614 instruction to the dummy code region.
4616 2019-07-19 Tom Tromey <tromey@adacore.com>
4618 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4619 (ARGSUSED, PARAMS, __func__): Remove rules.
4621 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4623 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4624 * features/arm/arm-with-iwmmxt.c: Remove.
4625 * features/arm/arm-with-iwmmxt.xml: Remove.
4626 * features/arm/arm-with-m-fpa-layout.c: Remove.
4627 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4628 * features/arm/arm-with-m-vfp-d16.c: Remove.
4629 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4630 * features/arm/arm-with-m.c: Remove.
4631 * features/arm/arm-with-m.xml: Remove.
4632 * features/arm/arm-with-neon.c: Remove.
4633 * features/arm/arm-with-neon.xml: Remove.
4634 * features/arm/arm-with-vfpv2.c: Remove.
4635 * features/arm/arm-with-vfpv2.xml: Remove.
4636 * features/arm/arm-with-vfpv3.c: Remove.
4637 * features/arm/arm-with-vfpv3.xml: Remove.
4639 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4641 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4643 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4645 * arch/aarch32.c (aarch32_create_target_description): Create
4646 target descriptions using features.
4647 * arch/arm.c (arm_create_target_description)
4648 (arm_create_mprofile_target_description): Likewise.
4649 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4651 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4653 * Makefile.in: Add new files.
4654 * aarch32-tdep.c: New file.
4655 * aarch32-tdep.h: New file.
4656 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4657 Call aarch32_read_description.
4658 * arch/aarch32.c: New file.
4659 * arch/aarch32.h: New file.
4660 * arch/arm.c (arm_create_target_description)
4661 (arm_create_mprofile_target_description): New function.
4662 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4663 (arm_create_target_description)
4664 (arm_create_mprofile_target_description): New declaration.
4665 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4666 read_description functions.
4667 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4669 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4670 * arm-tdep.c (tdesc_arm_list): New variable.
4671 (arm_register_g_packet_guesses): Call create description functions.
4672 (arm_read_description) (arm_read_mprofile_description): New
4674 * arm-tdep.h (arm_read_description)
4675 (arm_read_mprofile_description): Add declaration.
4676 * configure.tgt: Add new files.
4678 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4680 * top.c (new_ui_command): Open specified terminal just once.
4682 2019-07-18 Tom Tromey <tromey@adacore.com>
4684 * symtab.c (main_name): Constify return type.
4685 * symfile.c (set_initial_language): Update.
4686 * symtab.h (main_name): Constify return type.
4688 2019-07-17 Tom Tromey <tom@tromey.com>
4690 * tui/tui-winsource.c (tui_update_source_window)
4691 (tui_update_source_window_as_is)
4692 (tui_update_source_windows_with_line): Remove return.
4693 * tui/tui-disasm.c (tui_show_disassem)
4694 (tui_show_disassem_and_update_source): Remove return.
4695 * tui/tui.c (tui_reset): Remove return.
4696 * tui/tui-wingeneral.c
4697 (tui_check_and_display_highlight_if_needed): Remove return.
4699 2019-07-17 Tom Tromey <tom@tromey.com>
4701 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4703 2019-07-17 Tom Tromey <tom@tromey.com>
4705 * tui/tui-winsource.h (struct tui_exec_info_window)
4706 (struct tui_source_window_base): Move from tui-data.h.
4707 * tui/tui-winsource.c: Move many method definitions from
4708 elsewhere. Remove "structuring" comments.
4709 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4710 (tui_source_window_base::refresh_window): Move to
4712 * tui/tui-win.c (tui_source_window_base::refresh_all)
4713 (tui_source_window_base::update_tab_width)
4714 (tui_source_window_base::set_new_height)
4715 (tui_source_window_base::do_make_visible_with_new_height): Move to
4717 * tui/tui-source.h: Update.
4718 * tui/tui-source.c (tui_source_window_base::reset): Move to
4720 * tui/tui-disasm.h: Update.
4721 * tui/tui-data.h (struct tui_exec_info_window): Move to
4723 (struct tui_source_window_base): Likewise.
4724 * tui/tui-data.c (tui_source_window_base::clear_detail)
4725 (tui_source_window_base, ~tui_source_window_base): Move to
4728 2019-07-17 Tom Tromey <tom@tromey.com>
4730 * tui/tui-win.c (tui_resize_all)
4731 (tui_source_window_base::update_tab_width)
4732 (tui_adjust_win_heights): Update.
4733 (tui_win_info::make_invisible_and_set_new_height): Rename from
4734 make_invisible_and_set_new_height.
4735 * tui/tui-data.h (struct tui_win_info)
4736 <make_invisible_and_set_new_height>: New method.
4738 2019-07-17 Tom Tromey <tom@tromey.com>
4740 * tui/tui.c: Update.
4741 * tui/tui-source.h (struct tui_source_window): Move from
4743 * tui/tui-layout.c: Update.
4744 * tui/tui-disasm.c: Update.
4745 * tui/tui-data.h (struct tui_source_window): Move to
4748 2019-07-17 Tom Tromey <tom@tromey.com>
4750 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4752 * tui/tui-data.h (struct tui_disasm_window): Move to
4755 2019-07-17 Tom Tromey <tom@tromey.com>
4757 * tui/tui-regs.h (struct tui_data_item_window): Move from
4759 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4760 * tui/tui-data.h (struct tui_data_item_window): Move to
4762 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4764 2019-07-17 Tom Tromey <tom@tromey.com>
4766 * tui/tui.c: Update.
4767 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4768 (tui_cmd_window::max_height): Move to tui-command.c.
4769 * tui/tui-layout.c: Update.
4770 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4771 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4773 * tui/tui-command.h (struct tui_cmd_window): Move from
4775 * tui/tui-command.c: Remove "structuring" comments.
4776 (tui_cmd_window::clear_detail)
4777 (tui_cmd_window::do_make_visible_with_new_height)
4778 (tui_cmd_window::max_height): Move from elsewhere.
4780 2019-07-17 Tom Tromey <tom@tromey.com>
4782 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4784 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4785 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4787 2019-07-17 Tom Tromey <tom@tromey.com>
4789 * tui/tui.c: Update.
4790 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4792 * tui/tui-windata.h: Remove file.
4793 * tui/tui-windata.c: Remove file.
4794 * tui/tui-win.c (tui_data_window::set_new_height)
4795 (tui_data_window::do_make_visible_with_new_height): Move to
4797 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4798 * tui/tui-regs.c: Remove "structuring" comments.
4799 (tui_data_window::first_data_item_displayed)
4800 (tui_data_window::delete_data_content_windows)
4801 (tui_data_window::erase_data_content)
4802 (tui_data_window::display_all_data)
4803 (tui_data_window::refresh_all)
4804 (tui_data_window::do_scroll_vertical)
4805 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4806 (tui_data_window::do_make_visible_with_new_height)
4807 (tui_data_window::refresh_window): Move from elsewhere.
4808 (_initialize_tui_regs): Move to end of file.
4809 * tui/tui-layout.c: Update.
4810 * tui/tui-hooks.c: Update.
4811 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4812 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4814 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4816 2019-07-17 Tom Tromey <tom@tromey.com>
4818 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4821 2019-07-17 Tom Tromey <tom@tromey.com>
4823 * tui/tui-win.c (tui_source_window_base::set_new_height)
4824 (tui_source_window_base::do_make_visible_with_new_height): Use
4825 m_has_locator field directly.
4826 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4828 (struct tui_source_window_base) <has_locator>: Likewise.
4830 2019-07-17 Tom Tromey <tom@tromey.com>
4832 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4834 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4836 * tui/tui-win.c (tui_source_window_base::set_new_height)
4837 (tui_source_window_base::set_new_height)
4838 (make_invisible_and_set_new_height)
4839 (tui_source_window_base::do_make_visible_with_new_height)
4840 (tui_source_window_base::do_make_visible_with_new_height):
4842 * tui/tui-layout.c (show_source_disasm_command, show_data)
4843 (show_source_or_disasm_and_command): Update.
4844 * tui/tui-layout.c (show_layout): Update.
4846 2019-07-17 Tom Tromey <tom@tromey.com>
4848 * tui/tui-layout.c (make_data_window): Remove.
4849 (show_data): Unify creation and re-initialization cases.
4851 2019-07-17 Tom Tromey <tom@tromey.com>
4853 * tui/tui-layout.c (make_source_window, make_disasm_window):
4855 (show_data): Unify creation and re-initialization cases.
4857 2019-07-17 Tom Tromey <tom@tromey.com>
4859 * tui/tui-layout.c (make_command_window): Remove.
4860 (show_source_disasm_command, show_source_or_disasm_and_command):
4861 Unify creation and re-initialization cases.
4863 2019-07-17 Tom Tromey <tom@tromey.com>
4865 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4866 creation and re-initialization cases.
4868 2019-07-17 Tom Tromey <tom@tromey.com>
4870 * tui/tui-regs.c (tui_get_register): Return void.
4872 2019-07-17 Tom Tromey <tom@tromey.com>
4874 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4877 2019-07-17 Tom Tromey <tom@tromey.com>
4879 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4882 2019-07-17 Tom Tromey <tom@tromey.com>
4884 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4885 * tui/tui-regs.c (tui_reg_layout): New function.
4886 (tui_show_registers, tui_reg_command): Use it.
4887 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4888 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4890 (tui_layout_command): Remove.
4892 2019-07-17 Tom Tromey <tom@tromey.com>
4894 * tui/tui-layout.h (tui/tui-layout): Return void.
4895 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4897 2019-07-17 Tom Tromey <tom@tromey.com>
4899 * tui/tui-layout.c (show_source_disasm_command, show_data):
4901 (reset_locator): Remove.
4902 (show_source_or_disasm_and_command): Update.
4904 2019-07-17 Tom Tromey <tom@tromey.com>
4906 * tui/tui-source.c (tui_source_window_base::reset): Remove
4908 * tui/tui-layout.c (make_command_window, make_source_window)
4909 (make_disasm_window, make_data_window)
4910 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4911 (reset_locator, show_source_or_disasm_and_command): Update.
4912 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4914 (struct tui_source_window_base) <reset>: Likewise.
4916 2019-07-17 Tom Tromey <tom@tromey.com>
4918 * tui/tui-layout.c (show_source_disasm_command): Use
4920 (reset_locator): New function.
4921 (init_and_make_win): Remove.
4922 (show_source_or_disasm_and_command): Use reset_locator.
4924 2019-07-17 Tom Tromey <tom@tromey.com>
4926 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4928 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4930 * tui/tui-source.c (tui_source_window_base::reset): New method.
4931 * tui/tui-layout.c (make_command_window): Don't call
4933 (make_source_window, make_disasm_window): Don't call
4934 make_source_or_disasm_window.
4935 (make_data_window): Don't call init_and_make_win. Change calling
4937 (show_source_disasm_command, show_data): Simplify.
4938 (make_source_or_disasm_window): Remove.
4939 (show_source_or_disasm_and_command): Simplify.
4940 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4941 (struct tui_source_window_base) <reset>: Likewise.
4942 <execution_info>: Remove initializer.
4943 * tui/tui-data.c (tui_source_window_base): Initialize
4946 2019-07-17 Tom Tromey <tom@tromey.com>
4948 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4951 2019-07-17 Tom Tromey <tom@tromey.com>
4953 * tui/tui.c (tui_rl_other_window): Update.
4954 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4955 superclass method first. Always iterate over regs_content.
4956 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4958 * tui/tui-win.c (tui_set_focus_command): Update.
4960 2019-07-17 Tom Tromey <tom@tromey.com>
4962 * tui/tui-win.c (tui_set_focus_command): Rename from
4963 tui_set_focus. Call tui_enable.
4964 (tui_set_focus_command): Remove.
4966 2019-07-17 Tom Tromey <tom@tromey.com>
4968 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4970 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4972 (tui_data_window::refresh_window): Call refresh_window on data
4973 items. Always call superclass refresh_window.
4974 (tui_win_info::refresh): Remove.
4975 (tui_source_window_base::refresh_window): Update.
4976 (tui_refresh_all): Update.
4977 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4979 (show_source_or_disasm_and_command): Likewise.
4980 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4981 (struct tui_source_window_base) <refresh>: Likewise.
4983 2019-07-17 Tom Tromey <tom@tromey.com>
4985 * tui/tui-winsource.c (tui_clear_source_content)
4986 (tui_show_source_content): Update.
4987 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4988 whether content is empty.
4989 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4992 2019-07-17 Tom Tromey <tom@tromey.com>
4994 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4996 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4997 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4999 2019-07-17 Tom Tromey <tom@tromey.com>
5001 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5002 (struct tui_data_item_window): Update.
5004 2019-07-17 Tom Tromey <tom@tromey.com>
5006 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5007 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5010 2019-07-17 Tom Tromey <tom@tromey.com>
5012 * tui/tui-winsource.h (tui_erase_source_content)
5013 (tui_clear_source_content): Remove "display_prompt" parameter.
5014 * tui/tui-winsource.c (tui_update_source_window_as_is)
5015 (tui_update_source_windows_with_addr): Update.
5016 (tui_clear_source_content): Remove "display_prompt" parameter.
5017 (tui_erase_source_content): Likewise. Simplify.
5018 (tui_show_source_content): Update.
5019 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5020 * tui/tui-stack.c (tui_show_frame_info): Update.
5021 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5024 2019-07-17 Tom Tromey <tom@tromey.com>
5026 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5027 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5029 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5032 2019-07-17 Tom Tromey <tom@tromey.com>
5034 * tui/tui-winsource.c (tui_clear_source_content)
5035 (tui_show_source_content, tui_show_exec_info_content)
5036 (tui_clear_exec_info_content): Update.
5037 * tui/tui-stack.c (tui_show_locator_content): Update.
5038 (tui_show_frame_info): Update.
5039 * tui/tui-source.h (tui_source_window): Don't declare.
5040 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5041 from tui_source_is_displayed.
5042 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5044 (struct tui_source_window_base) <content_in_use>: New field. Now
5046 (struct tui_source_window) <showing_source_p>: New method.
5047 (TUI_SRC_WIN): Change cast.
5048 * tui/tui-data.c (tui_initialize_static_data): Update.
5050 2019-07-17 Tom Tromey <tom@tromey.com>
5052 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5054 * tui/tui-source.c (tui_source_window::location_matches_p): New
5056 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5058 * tui/tui-data.h (struct tui_source_window_base)
5059 <location_matches_p>: New method.
5060 (struct tui_source_window, struct tui_disasm_window)
5061 <location_matches_p>: Likewise.
5063 2019-07-17 Tom Tromey <tom@tromey.com>
5065 * tui/tui-win.c (tui_set_win_height_command): Rename from
5067 (tui_set_win_height_command): Remove.
5069 2019-07-17 Tom Tromey <tom@tromey.com>
5071 * tui/tui-source.c (tui_source_window): New constructor. Add
5073 (~tui_source_window): New destructor.
5074 (tui_source_window::style_changed): New method.
5075 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5076 (tui_attach_detach_observers): Update.
5077 * tui/tui-data.h (struct tui_source_window): Make constructor not
5078 inline. Add destructor.
5079 (struct tui_source_window) <style_changed>: New method.
5080 <m_observable>: New member.
5082 2019-07-17 Tom Tromey <tom@tromey.com>
5084 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5085 * tui/tui-win.c (tui_resize_all): Fix typo.
5087 2019-07-17 Tom Tromey <tom@tromey.com>
5089 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5090 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5091 (tui_refresh_all): Remove "list" parameter. Use foreach.
5092 * tui/tui-win.c (window_name_completer): Use foreach.
5093 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5094 (update_tab_width): Likewise.
5095 * tui/tui-layout.c (show_layout): Update.
5096 * tui/tui-data.h (class tui_window_iterator): New.
5097 (struct all_tui_windows): New.
5098 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5100 2019-07-17 Tom Tromey <tom@tromey.com>
5102 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5103 parameter. Don't reference globals.
5104 (tui_reg_command): Update.
5106 2019-07-17 Tom Tromey <tom@tromey.com>
5108 * tui/tui-regs.c (tui_show_registers): Simplify.
5110 2019-07-17 Tom Tromey <tom@tromey.com>
5112 * tui/tui-regs.c (tui_show_registers): Update.
5113 (tui_show_register_group): Add win_info parameter.
5115 2019-07-17 Tom Tromey <tom@tromey.com>
5117 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5118 Rename from tui_display_reg_element_at_line.
5119 (tui_data_window::display_registers_from_line): Update.
5120 * tui/tui-data.h (struct tui_data_window)
5121 <display_reg_element_at_line>: New method.
5123 2019-07-17 Tom Tromey <tom@tromey.com>
5125 * tui/tui-regs.h (tui_display_registers_from)
5126 (tui_display_registers_from_line): Don't declare.
5127 * tui/tui-windata.c (tui_data_window::display_all_data)
5128 (tui_data_window::refresh_all)
5129 (tui_data_window::do_scroll_vertical): Update.
5130 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5131 from tui_display_registers_from.
5132 (tui_display_reg_element_at_line): Update.
5133 (tui_data_window::display_registers_from_line): Rename from
5134 tui_display_registers_from_line.
5135 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5136 display_registers_from_line>: New methods.
5138 2019-07-17 Tom Tromey <tom@tromey.com>
5140 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5141 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5142 from tui_erase_data_content.
5143 (tui_data_window::display_all_data)
5144 (tui_data_window::refresh_all)
5145 (tui_data_window::do_scroll_vertical): Update.
5146 * tui/tui-regs.c (tui_show_registers): Update.
5147 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5150 2019-07-17 Tom Tromey <tom@tromey.com>
5152 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5155 (tui_data_window::delete_data_content_windows): Rename from
5156 tui_delete_data_content_windows.
5157 (tui_data_window::display_all_data)
5158 (tui_data_window::do_scroll_vertical): Update.
5159 * tui/tui-data.h (struct tui_data_window)
5160 <delete_data_content_windows>: New method.
5162 2019-07-17 Tom Tromey <tom@tromey.com>
5164 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5165 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5167 2019-07-17 Tom Tromey <tom@tromey.com>
5169 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5170 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5171 from tui_display_all_data.
5173 (tui_data_window::do_make_visible_with_new_height): Update.
5174 * tui/tui-regs.c (tui_show_registers): Update.
5175 * tui/tui-layout.c (tui_set_layout): Update.
5176 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5179 2019-07-17 Tom Tromey <tom@tromey.com>
5181 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5182 * tui/tui-windata.c (tui_display_data_from): Remove.
5183 (tui_data_window::refresh_all): Update.
5185 2019-07-17 Tom Tromey <tom@tromey.com>
5187 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5188 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5189 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5190 tui_display_registers_from_line.
5191 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5192 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5193 "force_display" parameter.
5195 2019-07-17 Tom Tromey <tom@tromey.com>
5197 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5199 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5200 Rename from tui_first_reg_element_no_inline.
5201 (tui_display_reg_element_at_line)
5202 (tui_display_registers_from_line): Update.
5203 * tui/tui-data.h (struct tui_data_window)
5204 <first_reg_element_no_inline>: New method.
5206 2019-07-17 Tom Tromey <tom@tromey.com>
5208 * tui/tui-windata.c (tui_display_data_from)
5209 (tui_data_window::do_scroll_vertical): Update.
5210 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5211 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5212 Rename from tui_line_from_reg_element_no.
5213 (tui_display_registers_from_line): Update.
5214 * tui/tui-data.h (struct tui_data_window)
5215 <line_from_reg_element_no>: New method.
5217 2019-07-17 Tom Tromey <tom@tromey.com>
5219 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5220 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5221 tui_last_regs_line_no.
5222 (tui_display_reg_element_at_line)
5223 (tui_display_registers_from_line): Update.
5224 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5227 2019-07-17 Tom Tromey <tom@tromey.com>
5230 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5231 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5232 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5233 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5234 (tui_update_breakpoint_info): Likewise.
5235 * tui/tui-hooks.c (tui_event_create_breakpoint)
5236 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5239 2019-07-17 Tom Tromey <tom@tromey.com>
5241 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5243 2019-07-17 Tom Tromey <tom@tromey.com>
5245 * tui/tui-winsource.c (tui_update_source_window_as_is)
5246 (tui_update_source_windows_with_addr): Update.
5247 * tui/tui-source.h (tui_set_source_content)
5248 (tui_show_symtab_source): Add "win_info" parameter.
5249 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5251 (tui_show_symtab_source): Likewise.
5253 2019-07-17 Tom Tromey <tom@tromey.com>
5255 * tui/tui-wingeneral.c
5256 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5258 2019-07-17 Tom Tromey <tom@tromey.com>
5260 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5261 (struct tui_cmd_window) <can_scroll>: New method.
5262 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5265 2019-07-17 Tom Tromey <tromey@adacore.com>
5267 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5268 do_field_signed>: Rename. Change type of "value".
5269 * ui-out.c (ui_out::field_signed): Rename from field_int.
5270 Change type of "value".
5271 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5273 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5274 do_field_int. Change type of "value".
5275 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5276 do_field_int. Change type of "value".
5277 * tracepoint.c (trace_status_mi, tfind_1)
5278 (print_one_static_tracepoint_marker): Update.
5279 * thread.c (print_thread_info_1, print_selected_thread_frame):
5281 * stack.c (print_frame, print_frame_info): Update.
5282 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5284 * source.c (print_source_lines_base): Update.
5285 * skip.c (info_skip_command): Update.
5286 * record-btrace.c (btrace_ui_out_decode_error)
5287 (btrace_call_history_src_line): Update.
5288 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5290 * progspace.c (print_program_space): Update.
5291 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5292 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5293 do_field_int. Change type of "value".
5294 * mi/mi-out.c (mi_ui_out::do_table_begin)
5295 (mi_ui_out::do_table_header): Update.
5296 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5298 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5299 (mi_cmd_data_list_changed_registers, output_register)
5300 (mi_cmd_data_read_memory, mi_load_progress)
5301 (mi_cmd_trace_frame_collected): Update.
5302 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5304 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5305 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5306 (mi_cmd_var_list_children, varobj_update_one): Update.
5307 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5308 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5309 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5310 * inferior.c (print_inferior): Update.
5311 * gdb_bfd.c (print_one_bfd): Update.
5312 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5314 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5315 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5316 do_field_int. Change type of "value".
5317 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5318 do_field_int. Change type of "value".
5319 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5320 (print_one_breakpoint_location, print_it_catch_fork)
5321 (print_one_catch_fork, print_it_catch_vfork)
5322 (print_one_catch_vfork, print_it_catch_solib)
5323 (print_it_catch_exec, print_it_ranged_breakpoint)
5324 (print_mention_watchpoint, print_mention_masked_watchpoint)
5325 (bkpt_print_it, update_static_tracepoint): Update.
5326 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5327 * break-catch-syscall.c (print_it_catch_syscall): Update.
5328 * ada-tasks.c (print_ada_task_info): Update.
5329 * ada-lang.c (print_it_exception, print_mention_exception):
5332 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5334 PR breakpoints/24541
5335 * gdbarch.c: Regenerate.
5336 * gdbarch.h: Regenerate.
5337 * gdbarch.sh: Adjust return type and parameter types for
5338 'stap_adjust_register'.
5339 (i386_stap_adjust_register): Adjust signature and return new
5341 * stap-probe.c (stap_parse_register_operand): Adjust use of
5342 'gdbarch_stap_adjust_register'.
5344 2019-07-17 Tom Tromey <tromey@adacore.com>
5346 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5348 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5350 (struct s390_process_info): Add initializers.
5351 (s390_add_process): Use new.
5352 (s390_linux_nat_target::low_forget_process): Use delete.
5353 (s390_linux_nat_target::low_new_fork)
5354 (s390_linux_nat_target::stopped_by_watchpoint)
5355 (s390_linux_nat_target::low_prepare_to_resume)
5356 (s390_linux_nat_target::insert_watchpoint)
5357 (s390_linux_nat_target::insert_hw_breakpoint)
5358 (s390_linux_nat_target::remove_watchpoint)
5359 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5361 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5363 * aarch64-fbsd-nat.c: Include regcache.h.
5364 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5366 (aarch64_fbsd_nat_target::fetch_registers)
5367 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5369 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5371 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5373 * fbsd-nat.c: Include gdbarch.h.
5375 2019-07-15 Tom Tromey <tromey@adacore.com>
5377 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5379 2019-07-15 Tom Tromey <tromey@adacore.com>
5381 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5382 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5383 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5384 * cli-out.c (cli_ui_out::do_field_int): New method.
5385 * ui-out.c (ui_out::field_unsigned): New method.
5386 * symfile.c (generic_load): Use field_unsigned.
5387 (print_transfer_performance): Likewise.
5388 * record-btrace.c (ui_out_field_uint): Remove.
5389 (btrace_call_history_insn_range, btrace_call_history): Use
5391 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5393 * ui-out.h (class ui_out) <field_unsigned>: New method.
5394 <do_field_unsigned>: Likewise.
5396 2019-07-15 Tom Tromey <tromey@adacore.com>
5398 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5399 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5400 * target.c (flash_erase_command): Use field_string.
5401 * infrun.c (print_signal_received_reason): Use field_string.
5402 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5403 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5405 * ada-tasks.c (print_ada_task_info): Use field_string.
5407 2019-07-15 Tom Tromey <tromey@adacore.com>
5409 * target.c (flash_erase_command): Use field_core_addr.
5410 * symfile.c (generic_load): Use field_core_addr.
5411 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5412 Use field_core_addr.
5413 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5416 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5418 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5419 value if its desired type is smaller than a CORE_ADDR and signed.
5421 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5423 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5424 of changes to field names, and use new is_reference field to
5425 decide if a property is a reference or not.
5426 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5428 (struct dwarf2_property_baton): Update header comment, rename
5429 'referenced_type' to 'property_type' and update comments.
5430 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5431 default property type, store in property baton, update to take
5432 accound of renamed field.
5433 (read_func_scope): Update call to attr_to_dynamic_prop.
5434 (read_array_type): Likewise.
5435 (dwarf2_per_cu_addr_sized_int_type): New function.
5436 (read_subrange_index_type): Move type finding code to
5437 dwarf2_per_cu_addr_sized_int_type.
5438 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5439 (dwarf2_per_cu_addr_type): New function.
5440 (set_die_type): Update calls to attr_to_dynamic_prop.
5442 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5444 * dwarf2read.c (read_subrange_index_type): New function.
5445 (read_subrange_type): Move code into new function and call it.
5446 * gdbtypes.c (create_range_type): Add some asserts.
5448 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5450 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5451 update return statements.
5452 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5453 declaration, and update comment to match.
5454 * gdbtypes.c (resolve_dynamic_array): Update call to
5455 dwarf2_evaluate_property to match new return type.
5457 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5459 * valarith.c (value_subscripted_rvalue): Change lowerbound
5460 parameter type from int to LONGEST.
5461 * value.h (value_subscripted_rvalue): Likewise in declaration.
5463 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5465 * cli/cli-utils.c (info_print_command_completer): New function.
5466 * cli/cli-utils.h: Add 'completer.h' include, and forward
5467 declaration for 'struct cmd_list_element'.
5468 (info_print_command_completer): Declare.
5469 * stack.c (_initialize_stack): Add completer for 'info locals' and
5471 * symtab.c (_initialize_symtab): Add completer for 'info
5472 variables' and 'info functions'.
5473 * NEWS: Mention completion for additional info commands.
5475 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5477 * cli/cli-utils.c (extract_info_print_args): Delete.
5478 (extract_arg_maybe_quoted): Delete.
5479 (info_print_options_defs): New variable.
5480 (make_info_print_options_def_group): New function.
5481 (extract_info_print_options): Define new function.
5482 * cli/cli-utils.h (extract_info_print_args): Delete.
5483 (struct info_print_options): New structure.
5484 (extract_info_print_options): Declare new function.
5485 * stack.c (info_locals_command): Update to use new
5486 extract_info_print_options, also add a header comment.
5487 (info_args_command): Likewise.
5488 * symtab.c (info_variables_command): Likewise.
5489 (info_functions_command): Likewise.
5491 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5493 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5494 to extract string arguments.
5495 * common/common-utils.c (extract_string_maybe_quoted): New function.
5496 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5498 2019-07-11 Tom Tromey <tromey@adacore.com>
5500 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5501 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5502 * top.h (gdbinit): Don't declare.
5503 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5505 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5506 * top.c (gdb_init): Don't call init_cli_cmds.
5508 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5510 2019-07-11 Tom Tromey <tromey@adacore.com>
5512 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5513 after it has been moved.
5515 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5517 * valops.c (value_must_coerce_to_target): Change return type to
5519 * value.h (value_must_coerce_to_target): Likewise.
5521 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5523 * breakpoint.c (is_hardware_watchpoint): Remove
5524 forward-declaration.
5525 (is_masked_watchpoint): Change return type to bool.
5526 (is_tracepoint): Likewise.
5527 (is_breakpoint): Likewise.
5528 (is_hardware_watchpoint): Likewise.
5529 (is_watchpoint): Likewise.
5530 (is_no_memory_software_watchpoint): Likewise.
5531 (is_catchpoint): Likewise.
5532 (breakpoint_1): Make FILTER parameter's return type bool.
5533 is_masked_watchpoint): Change return type to bool.
5534 (save_breakpoints): Make FILTER parameter's return type bool.
5535 * breakpoint.h (is_breakpoint): Change return type to bool.
5536 (is_watchpoint): Likewise.
5537 (is_catchpoint): Likewise.
5538 (is_tracepoint): Likewise.
5540 2019-07-10 Tom Tromey <tom@tromey.com>
5542 * defs.h: Don't include gdbarch.h.
5543 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5544 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5545 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5546 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5547 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5548 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5549 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5550 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5551 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5552 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5553 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5554 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5555 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5556 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5557 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5558 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5559 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5560 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5561 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5562 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5563 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5564 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5565 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5566 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5567 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5568 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5569 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5571 2019-07-10 Tom Tromey <tromey@adacore.com>
5573 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5574 * breakpoint.c (init_ada_exception_breakpoint): Register as
5576 (print_one_breakpoint_location, print_one_breakpoint): Use
5577 is_ada_exception_catchpoint.
5578 * ada-lang.c (class ada_catchpoint_location): Pass
5579 bp_loc_software_breakpoint to bp_location constructor.
5580 (is_ada_exception_catchpoint): New function.
5582 2019-07-10 Tom Tromey <tromey@adacore.com>
5584 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5586 (struct arm_exidx_entry): New method operator<.
5587 (struct arm_exidx_data) <section_maps>: Change type.
5588 (arm_exidx_data_free): Remove.
5589 (arm_exidx_data_key): Change type. Move lower.
5590 (arm_exidx_new_objfile): Update.
5591 (arm_compare_exidx_entries): Remove.
5592 (arm_find_exidx_entry, _initialize_arm_tdep)
5594 2019-07-10 Tom Tromey <tromey@adacore.com>
5596 * solib-spu.c (ocl_program_data_key): Change type.
5597 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5600 2019-07-10 Tom Tromey <tromey@adacore.com>
5602 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5603 (struct solib_aix_inferior_data) <library_list>: Change type.
5604 (solib_aix_inferior_data_handle): Change type.
5605 (get_solib_aix_inferior_data): Update.
5606 (solib_aix_free_library_list): Remove.
5607 (library_list_start_library): Update.
5608 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5610 (solib_aix_get_library_list)
5611 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5612 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5614 2019-07-10 Tom Tromey <tromey@adacore.com>
5616 * solib-dsbt.c (struct dsbt_info): Add initializers.
5617 (solib_dsbt_pspace_data): Change type.
5618 (dsbt_pspace_data_cleanup): Remove.
5619 (get_dsbt_info, _initialize_dsbt_solib): Update.
5621 2019-07-10 Tom Tromey <tromey@adacore.com>
5623 * spu-tdep.c (spu_overlay_data): Change type.
5624 (spu_get_overlay_table, spu_overlay_new_objfile)
5625 (_initialize_spu_tdep): Update.
5627 2019-07-10 Tom Tromey <tromey@adacore.com>
5629 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5631 (dbx_objfile_data_key): Change type and declare later.
5632 (DBX_SYMFILE_INFO): Rewrite.
5633 * dbxread.c (dbx_objfile_data_key): Change type.
5634 (dbx_symfile_init): Update.
5635 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5636 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5637 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5639 2019-07-10 Tom Tromey <tromey@adacore.com>
5641 * jit.c (jit_program_space_key): Change type. Move lower.
5642 (get_jit_program_space_data): Update.
5643 (jit_program_space_data_cleanup): Remove.
5644 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5646 (struct jit_program_space_data): Add initializers.
5648 2019-07-10 Tom Tromey <tromey@adacore.com>
5650 * solib-darwin.c (struct darwin_info): Add initializers.
5651 (solib_darwin_pspace_data): Change type.
5652 (darwin_pspace_data_cleanup): Remove.
5653 (get_darwin_info, _initialize_darwin_solib): Update.
5655 2019-07-10 Tom Tromey <tromey@adacore.com>
5657 * remote-sim.c (struct sim_inferior_data): Add initializers,
5658 constructor, and destructor.
5659 (sim_inferior_data_key): Change type. Move lower.
5660 (check_for_duplicate_sim_descriptor): Update.
5661 (get_sim_inferior_data): Use new. Update.
5662 (~sim_inferior_data_cleanup): Rename from
5663 sim_inferior_data_cleanup. Simplify.
5664 (gdbsim_close_inferior, simulator_command)
5665 (sim_command_completer, _initialize_remote_sim): Update.
5666 (next_pid, INITIAL_PID): Move earlier.
5668 2019-07-10 Tom Tromey <tromey@adacore.com>
5670 * python/python-internal.h (create_thread_object): Return
5672 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5673 * python/py-inferior.c (struct threadlist_entry): Add
5675 <thread_obj>: Now a gdbpy_ref.
5676 (thread_to_thread_object): Update.
5677 (add_thread_object): Use new.
5678 (delete_thread_object): Use delete.
5679 (infpy_threads): Update.
5680 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5683 2019-07-10 Tom Tromey <tromey@adacore.com>
5685 * valops.c (value_cast): Specialize error message for Ada.
5687 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5689 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5691 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5693 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5694 bpstat_should_step): Return bool, adjust comments.
5695 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5696 bpstat_should_step): Likewise.
5698 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5700 * features/Makefile: Use feature target descriptions for Arm.
5701 * features/arm/arm-core.c: Generate new file.
5702 * features/arm/arm-fpa.c: Likewise.
5703 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5704 * features/arm/arm-m-profile.c: Likewise.
5705 * features/arm/arm-vfpv2.c: Likewise.
5706 * features/arm/arm-vfpv3.c: Likewise.
5707 * features/arm/xscale-iwmmxt.c: Likewise.
5708 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5710 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5712 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5715 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5717 * features/aarch64-pauth.c: Regenerate.
5719 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5721 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5723 (bpstat_what): Use false instead of 0.
5725 2019-07-09 Pedro Alves <palves@redhat.com>
5727 * break-catch-throw.c (is_exception_catchpoint): New.
5728 * breakpoint.c (print_one_breakpoint_location): New parameter
5729 'raw_loc'. Handle it. Use
5730 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5731 looking at the breakpoint's type.
5732 (print_one_breakpoint): If handling "maint info breakpoints", also
5733 print locations of exception catchpoints.
5734 * breakpoint.h (is_exception_catchpoint): Declare.
5736 2019-07-09 Pedro Alves <palves@redhat.com>
5738 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5740 (allocate_location_exception_catchpoint): New.
5741 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5742 (initialize_throw_catchpoint_ops): Install
5743 allocate_location_exception_catchpoint as allocate_location
5745 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5746 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5748 (breakpoint_address_is_meaningful): Delete.
5749 (bl_address_is_meaningful): New.
5750 (breakpoint_locations_match): Adjust comment.
5751 (bp_location_from_bp_type): New, factored out of...
5752 (bp_location::bp_location(breakpoint *)): ... this.
5753 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5755 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5756 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5757 breakpoint_address_is_meaningful.
5758 (bp_locations_compare): Adjust comment.
5759 (update_global_location_list): Use bl_address_is_meaningful
5760 instead of breakpoint_address_is_meaningful.
5761 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5763 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5764 * python/py-breakpoint.c (bppy_get_location): No longer check
5765 whether location is null.
5767 2019-07-09 Pedro Alves <palves@redhat.com>
5770 * breakpoint.c (print_one_breakpoint_location): Remove
5771 single-location assert.
5773 2019-07-09 Tom Tromey <tom@tromey.com>
5775 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5776 * configure: Rebuild.
5777 * configure.ac: Change common to gdbsupport.
5778 * gdbsupport: Rename from common.
5779 * acinclude.m4: Change common to gdbsupport.
5780 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5781 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5783 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5784 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5785 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5786 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5787 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5788 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5789 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5790 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5791 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5792 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5793 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5794 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5795 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5796 coff-pe-read.c, command.h, compile/compile-c-support.c,
5797 compile/compile-c.h, compile/compile-cplus-symbols.c,
5798 compile/compile-cplus-types.c, compile/compile-cplus.h,
5799 compile/compile-loc2c.c, compile/compile.c, completer.c,
5800 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5801 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5802 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5803 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5804 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5805 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5806 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5807 features/aarch64-core.c, features/aarch64-fpu.c,
5808 features/aarch64-pauth.c, features/aarch64-sve.c,
5809 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5810 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5811 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5812 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5813 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5814 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5815 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5816 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5817 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5818 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5819 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5820 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5821 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5822 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5823 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5824 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5825 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5826 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5827 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5828 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5829 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5830 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5831 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5832 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5833 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5834 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5835 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5836 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5837 minsyms.c, mips-linux-tdep.c, namespace.h,
5838 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5839 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5840 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5841 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5842 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5843 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5844 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5845 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5846 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5847 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5848 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5849 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5850 procfs.c, producer.c, progspace.h, psymtab.h,
5851 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5852 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5853 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5854 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5855 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5856 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5857 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5858 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5859 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5860 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5861 target-memory.c, target.c, target.h, target/waitstatus.c,
5862 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5863 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5864 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5865 unittests/array-view-selftests.c,
5866 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5867 unittests/common-utils-selftests.c,
5868 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5869 unittests/format_pieces-selftests.c,
5870 unittests/function-view-selftests.c,
5871 unittests/lookup_name_info-selftests.c,
5872 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5873 unittests/mkdir-recursive-selftests.c,
5874 unittests/observable-selftests.c,
5875 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5876 unittests/parse-connection-spec-selftests.c,
5877 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5878 unittests/scoped_fd-selftests.c,
5879 unittests/scoped_mmap-selftests.c,
5880 unittests/scoped_restore-selftests.c,
5881 unittests/string_view-selftests.c, unittests/style-selftests.c,
5882 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5883 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5884 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5885 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5886 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5887 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5889 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5891 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5893 (decode_digits_ordinary): Set explicit_line field in sal.
5894 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5895 symtab_and_line that was set on an explicit line number in
5896 assembler code. Do always update the recorded symtab and line if
5897 we do skip the prologue.
5899 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5901 * breakpoint.c (set_breakpoint_location_function): Remove
5902 explicit_loc parameter.
5903 (momentary_breakpoint_from_master): Update call to
5904 set_breakpoint_location_function.
5905 (add_location_to_breakpoint): Likewise.
5907 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5909 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5910 required features based on default bfd type when no specific bfd
5913 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5915 * NEWS: Mention that GDB printf and eval commands can now print
5916 C-style and Ada-style convenience var strings without
5917 calling the inferior.
5918 * printcmd.c (printf_c_string): Locally print GDB internal var
5919 instead of transiting via the inferior.
5920 (printf_wide_c_string): Likewise.
5922 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5924 PR breakpoints/25011
5925 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5927 2019-07-04 Tom Tromey <tom@tromey.com>
5930 * tui/tui-winsource.c (tui_clear_source_content): Update.
5931 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5932 (tui_update_breakpoint_info): Update.
5933 (tui_set_exec_info_content): Update.
5934 * tui/tui-source.c (tui_set_source_content_nil): Update.
5935 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5937 * tui/tui-data.h (enum tui_bp_flag): New.
5938 (tui_bp_flags): New enum flags type.
5939 (struct tui_source_element) <break_mode>: Change type. Rename
5941 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5942 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5944 * tui/tui-winsource.h: Fix comment.
5946 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5948 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5949 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5950 (store_fpregs_to_thread)
5951 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5952 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5953 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5954 (IWMMXT_REGS_SIZE): Add define.
5955 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5956 (fetch_vfp_regs, store_vfp_regs)
5957 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5958 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5960 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5962 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5964 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5965 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5966 (ARM_INT_REGISTER_SIZE): ...to this.
5967 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5968 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5969 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5970 (arm_linux_collect_gregset, supply_nwfpe_register)
5971 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5973 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5974 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5975 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5976 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5977 (arm_return_in_memory, arm_store_return_value)
5978 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5979 (arm_record_ld_st_multiple): Likewise.
5980 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5981 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5983 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5985 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5986 AARCH64_DISPLACED_MODIFIED_INSNS.
5987 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5988 (aarch64_displaced_step_copy_insn): Likewise.
5989 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5990 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5991 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5992 ARM_DISPLACED_MODIFIED_INSNS.
5993 * arm-tdep.c (arm_gdbarch_init): Likewise.
5994 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5995 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5996 (struct arm_displaced_step_closure): Use
5997 ARM_DISPLACED_MODIFIED_INSNS.
5999 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6001 * features/Makefile: Remove unused xml files.
6002 * features/aarch64.xml: Remove.
6003 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6004 * features/i386/amd64-avx-avx512.xml: Remove.
6005 * features/i386/amd64-avx-linux.xml: Remove.
6006 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6007 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6008 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6009 * features/i386/amd64-avx-mpx.xml: Remove.
6010 * features/i386/amd64-avx.xml: Remove.
6011 * features/i386/amd64-linux.xml: Remove.
6012 * features/i386/amd64-mpx-linux.xml: Remove.
6013 * features/i386/amd64-mpx.xml: Remove.
6014 * features/i386/amd64.xml: Remove.
6015 * features/i386/i386-avx-avx512-linux.xml: Remove.
6016 * features/i386/i386-avx-avx512.xml: Remove.
6017 * features/i386/i386-avx-linux.xml: Remove.
6018 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6019 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6020 * features/i386/i386-avx-mpx-linux.xml: Remove.
6021 * features/i386/i386-avx-mpx.xml: Remove.
6022 * features/i386/i386-avx.xml: Remove.
6023 * features/i386/i386-linux.xml: Remove.
6024 * features/i386/i386-mmx-linux.xml: Remove.
6025 * features/i386/i386-mmx.xml: Remove.
6026 * features/i386/i386-mpx-linux.xml: Remove.
6027 * features/i386/i386-mpx.xml: Remove.
6028 * features/i386/i386.xml: Remove.
6029 * features/i386/x32-avx-avx512-linux.xml: Remove.
6030 * features/i386/x32-avx-linux.xml: Remove.
6031 * features/i386/x32-linux.xml: Remove.
6033 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6035 * regformats/aarch64.dat: Remove.
6036 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6037 * regformats/i386/amd64-avx-linux.dat: Remove.
6038 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6039 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6040 * regformats/i386/amd64-linux.dat: Remove.
6041 * regformats/i386/amd64-mpx-linux.dat: Remove.
6042 * regformats/i386/amd64.dat: Remove.
6043 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6044 * regformats/i386/i386-avx-linux.dat: Remove.
6045 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6046 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6047 * regformats/i386/i386-linux.dat: Remove.
6048 * regformats/i386/i386-mmx-linux.dat: Remove.
6049 * regformats/i386/i386-mpx-linux.dat: Remove.
6050 * regformats/i386/i386.dat: Remove.
6051 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6052 * regformats/i386/x32-avx-linux.dat: Remove.
6053 * regformats/i386/x32-linux.dat: Remove.
6055 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6057 * aarch64-tdep.c: Remove xml self tests.
6058 * amd64-linux-tdep.c: Likewise.
6059 * amd64-tdep.c: Likewise.
6060 * i386-linux-tdep.c: Likewise.
6061 * i386-tdep.c: Likewise.
6063 2019-07-03 Pedro Alves <palves@redhat.com>
6066 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6067 (pipe_cmd_option_defs): New.
6068 (make_pipe_cmd_options_def_group): New.
6069 (pipe_command): Use gdb::option::process_options.
6070 (pipe_command_completer): New function.
6071 (_initialize_cli_cmds): Install completer for "pipe" command.
6073 2019-07-03 Pedro Alves <palves@redhat.com>
6075 * cli/cli-option.c (union option_value) <string>: New field.
6076 (struct option_def_and_value): Add ctor, move ctor, dtor and
6077 use DISABLE_COPY_AND_ASSIGN.
6078 (option_def_and_value::clear_value): New.
6079 (parse_option, save_option_value_in_ctx, get_val_type_str)
6080 (add_setshow_cmds_for_options): Handle var_string.
6081 * cli-option.h (union option_def::var_address) <string>: New
6083 (struct string_option_def): New.
6084 * maint-test-options.c (struct test_options_opts): Add default
6085 ctor and use DISABLE_COPY_AND_ASSIGN.
6086 <string_opt>: New field.
6087 (test_options_opts::~test_options_opts): New.
6088 (test_options_opts::dump): Also dump "-string".
6089 (test_options_option_defs): Install "string.
6091 2019-07-03 Pedro Alves <palves@redhat.com>
6093 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6094 option_value with a null enumeration.
6095 (complete_options): Save the option values in the context.
6096 (save_option_value_in_ctx): New, factored out from ...
6097 (process_options): ... here.
6098 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6100 * maint-test-options.c (test_options_opts::dump): New, factored
6102 (maintenance_test_options_command_mode): ... here.
6103 (maintenance_test_options_command_completion_result): Delete.
6104 (maintenance_test_options_command_completion_text): Update
6106 (maintenance_show_test_options_completion_result): Change
6107 prototype. Just print
6108 maintenance_test_options_command_completion_text.
6109 (save_completion_result): New.
6110 (maintenance_test_options_completer_mode): Pass options context to
6111 complete_options, and then save a dump.
6112 (_initialize_maint_test_options): Use add_cmd to install "maint
6113 show test-options-completion-result".
6115 2019-07-03 Pedro Alves <palves@redhat.com>
6117 * NEWS (New commands): Mention "with" and "maint with".
6118 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6119 (with_command, with_command_completer): New.
6120 (pipe_command): Adjust to new repeat_previous
6122 (_initialize_cli_cmds): Install the "with" command and its "w"
6124 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6126 * cli/cli-setshow.c (parse_cli_var_uinteger)
6127 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6128 argument strings for all var_types.
6129 (get_setshow_command_value_string): New, factored out from ...
6130 (do_show_command): ... this.
6131 * cli/cli-setshow.h: Include <string>.
6132 (get_setshow_command_value_string): Declare.
6133 * command.h (repeat_previous): Now returns const char *. Adjust
6135 * maint.c: Include "cli/cli-cmds.h".
6136 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6137 (_initialize_maint_cmds): Register the "maintenance with" command.
6138 * top.c (repeat_previous): Move bits from pipe_command here:
6139 Return the saved command line, if any; error out if there's no
6140 command to relaunch.
6142 2019-07-03 Pedro Alves <palves@redhat.com>
6144 * NEWS (New commands): Mention "maint set/show test-settings"
6145 instead of "maint test-settings".
6146 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6147 (maintenance_test_settings_set_list): Rename to ...
6148 (maintenance_set_test_settings_list): ... this.
6149 (maintenance_test_settings_show_list): Rename to ...
6150 (maintenance_show_test_settings_list): ... this.
6151 (maintenance_test_settings_cmd): Delete.
6152 (maintenance_test_settings_set_cmd): ...
6153 (maintenance_set_test_settings_cmd): ... this.
6154 (maintenance_test_settings_show_cmd): ...
6155 (maintenance_show_test_settings_cmd): ... this.
6156 (maintenance_test_settings_show_value_cmd):
6157 (maintenance_show_test_settings_value_cmd): ... this.
6158 (_initialize_maint_test_settings): No longer install the "maint
6159 test-settings" prefix command. Rename "maint test-settings set"
6160 to "maint set test-settings", and "maint test-settings show" to
6161 "maint show test-settings". Adjust all subcommands.
6163 2019-07-03 Pedro Alves <palves@redhat.com>
6165 * maint-test-settings.c: Fix file's intro comment. Replace all
6166 references to "test-options" with references to "test-settings",
6169 2019-07-03 Pedro Alves <palves@redhat.com>
6171 * maint-test-settings.c (maintenance_test_settings_xxx)
6172 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6174 (maintenance_test_settings_enums): Use them.
6175 (maintenance_test_settings_enum): Default to
6176 maintenance_test_settings_xxx.
6177 (_initialize_maint_test_settings): Initialize
6178 MAINTENANCE_TEST_SETTINGS_FILENAME.
6180 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6182 * breakpoint.h (remove_breakpoints_inf): Change return type to
6183 void, move function documentation here.
6184 * breakpoint.c (remove_breakpoints_inf): Change return type to
6185 void, move function documentation to header.
6187 2019-07-02 Pedro Alves <palves@redhat.com>
6189 * NEWS (Completion improvements): Mention "info threads".
6190 * thread.c (struct info_threads_opts, info_threads_option_defs)
6191 (make_info_threads_options_def_group): New.
6192 (info_threads_command): Use gdb::option::process_options.
6193 (info_threads_command_completer): New.
6194 (_initialize_thread): Use gdb::option::build_help to build the
6195 help text for "info threads".
6197 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6199 * defs.h (generic_load): Move from here...
6200 * symfile.h (generic_load): ... to here. Rename name parameter
6202 * symfile.c (generic_load): Add comment.
6204 2019-07-01 Tom Tromey <tromey@adacore.com>
6207 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6208 declaration of without_params. Fix formatting.
6210 2019-07-01 Tom Tromey <tromey@adacore.com>
6212 * ada-exp.y (find_primitive_type): Update.
6213 * ada-lang.h (ada_lookup_symbol): Update.
6214 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6216 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6218 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6220 PR breakpoints/24541
6221 * gdbarch.c: Regenerate.
6222 * gdbarch.h: Regenerate.
6223 * gdbarch.sh: Add 'stap_adjust_register'.
6224 * i386-tdep.c: Include '<unordered_set>'.
6225 (i386_stap_adjust_register): New function.
6226 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6227 * stap-probe.c (stap_parse_register_operand): Call
6228 'gdbarch_stap_adjust_register'.
6230 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6233 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6234 * python/python.c (do_start_initialization): Use 'xmalloc'
6235 instead of 'PyMem_Malloc'.
6237 2019-06-28 Tom Tromey <tromey@adacore.com>
6239 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6242 2019-06-27 Tom Tromey <tromey@adacore.com>
6244 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6246 (arm_find_mapping_symbol, arm_record_special_symbol)
6247 (_initialize_arm_tdep): Update.
6248 (arm_objfile_data_free): Remove.
6250 2019-06-27 Tom Tromey <tromey@adacore.com>
6252 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6253 to cp_print_static_field.
6255 2019-06-26 Tom Tromey <tromey@adacore.com>
6257 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6258 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6261 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6263 * features/aarch64-core.c (create_feature_aarch64_core):
6265 * features/aarch64-core.xml: Add cpsr flags.
6267 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6269 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6270 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6272 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6274 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6276 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6278 (arm_record_special_symbol): Don't insert new symbol in sorted
6279 position, push it at the end.
6281 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6283 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6284 (arm_mapping_symbol_s): Remove.
6285 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6286 (arm_mapping_symbol_vec): New typedef.
6287 (struct arm_per_objfile): Add constructor.
6288 <section_maps>: Change type to
6289 std::unique_ptr<arm_mapping_symbol_vec[]>.
6290 (arm_compare_mapping_symbols): Remove.
6291 (arm_find_mapping_symbol): Adjust to section_maps type change.
6292 (arm_objfile_data_free): Call delete on arm_per_objfile.
6293 (arm_record_special_symbol): Adjust to section_maps type change.
6294 Allocate arm_per_objfile with new.
6296 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6298 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6299 with the command prefix.
6301 2019-06-25 Tom Tromey <tom@tromey.com>
6303 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6304 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6306 2019-06-25 Tom Tromey <tom@tromey.com>
6308 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6310 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6313 2019-06-25 Tom Tromey <tom@tromey.com>
6315 * tui/tui-winsource.c
6316 (tui_source_window_base::set_is_exec_point_at): Add check against
6319 2019-06-25 Tom Tromey <tom@tromey.com>
6321 * tui/tui-source.c (tui_set_source_content): Don't check before
6323 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6325 2019-06-25 Tom Tromey <tom@tromey.com>
6327 * tui/tui-winsource.h (tui_update_source_window_as_is)
6328 (tui_alloc_source_buffer, tui_line_is_displayed)
6329 (tui_addr_is_displayed): Change type of win_info.
6330 * tui/tui-winsource.c (tui_update_source_window_as_is)
6331 (tui_clear_source_content, tui_show_source_line)
6332 (tui_show_source_content, tui_source_window_base::refill)
6333 (tui_source_window_base::set_is_exec_point_at)
6334 (tui_source_window_base::set_is_exec_point_at)
6335 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6336 (tui_alloc_source_buffer, tui_line_is_displayed)
6337 (tui_addr_is_displayed): Change type of win_info. Update.
6338 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6339 (tui_source_window_base::do_make_visible_with_new_height):
6341 * tui/tui-source.c (tui_set_source_content)
6342 (tui_set_source_content_nil)
6343 (tui_source_window::do_scroll_vertical): Update.
6344 * tui/tui-layout.c (show_layout): Update.
6345 * tui/tui-disasm.c (tui_set_disassem_content)
6346 (tui_disasm_window::do_scroll_vertical): Update.
6347 * tui/tui-data.h (tui_win_content): Remove.
6348 (struct tui_gen_win_info) <content, content_size>: Remove.
6349 (struct tui_source_element): Add initializers and destructor.
6350 (union tui_which_element, struct tui_win_element): Remove.
6351 (struct tui_source_window_base) <content>: New field.
6352 (struct tui_data_window): Remove destructor.
6353 (tui_alloc_content, tui_free_win_content)
6354 (tui_free_all_source_wins_content): Don't declare.
6355 * tui/tui-data.c (tui_initialize_static_data): Update.
6356 (init_content_element, tui_alloc_content): Remove.
6357 (~tui_gen_win_info): Update.
6358 (~tui_data_window, tui_free_all_source_wins_content)
6359 (tui_free_win_content, free_content, free_content_elements):
6362 2019-06-25 Tom Tromey <tom@tromey.com>
6364 * tui/tui-winsource.h (tui_clear_source_content)
6365 (tui_erase_source_content, tui_show_source_content): Change type
6367 * tui/tui-winsource.c (tui_clear_source_content)
6368 (tui_erase_source_content, tui_show_source_content): Change type
6370 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6371 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6373 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6375 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6377 2019-06-25 Tom Tromey <tom@tromey.com>
6379 * tui/tui-winsource.c (tui_clear_source_content)
6380 (tui_source_window_base::set_is_exec_point_at): Update.
6381 * tui/tui-source.c (tui_set_source_content_nil): Update.
6382 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6384 * tui/tui-data.c (init_content_element): Update.
6386 2019-06-25 Tom Tromey <tom@tromey.com>
6388 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6389 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6390 * tui/tui-layout.c (init_and_make_win): Update.
6391 * tui/tui.h (enum tui_win_type): Update.
6392 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6393 tui_win_is_auxillary.
6394 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6395 tui_win_is_auxillary.
6397 2019-06-25 Tom Tromey <tom@tromey.com>
6399 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6400 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6401 (tui_delete_data_content_windows, tui_display_all_data)
6402 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6404 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6405 * tui/tui-regs.c (tui_last_regs_line_no)
6406 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6407 (tui_show_registers): Update.
6408 (tui_show_register_group): Return void. Update.
6409 (tui_display_registers_from, tui_display_reg_element_at_line)
6410 (tui_display_registers_from_line, tui_check_register_values):
6412 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6414 (struct tui_data_window) <regs_content>: Now a std::vector.
6415 <regs_content_count>: Remove.
6416 (tui_add_content_elements, tui_free_data_content): Don't declare.
6417 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6418 (init_content_element): Remove DATA_WIN case. Add assert.
6419 (tui_add_content_elements): Remove.
6420 (tui_data_window): Update.
6421 (tui_free_data_content): Remove.
6422 (free_content_elements): Remove DATA_WIN case.
6424 2019-06-25 Tom Tromey <tom@tromey.com>
6426 * tui/tui-data.c (tui_data_item_window): Update.
6427 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6428 * tui/tui-windata.c (tui_display_all_data)
6429 (tui_display_data_from_line): Update.
6430 (tui_check_data_values): Remove.
6431 * tui/tui-regs.c (tui_show_register_group)
6432 (tui_display_reg_element_at_line): Update.
6433 * tui/tui-hooks.c (tui_register_changed)
6434 (tui_refresh_frame_and_register_information): Call
6435 tui_check_register_values.
6436 * tui/tui-data.h (struct tui_data_window) <data_content,
6437 data_content_count, data_type>: Remove.
6438 (enum tui_data_type): Remove.
6440 * tui/tui-data.c (tui_data_window::clear_detail)
6441 (~tui_data_window): Update.
6443 2019-06-25 Tom Tromey <tom@tromey.com>
6445 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6447 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6448 Rename from tui_first_data_item_displayed. Update.
6449 (tui_data_window::refresh_all)
6450 (tui_data_window::do_scroll_vertical): Update.
6451 * tui/tui-data.h (struct tui_data_window)
6452 <first_data_item_displayed>: Declare new method.
6454 2019-06-25 Tom Tromey <tom@tromey.com>
6456 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6457 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6459 (tui_initialize_static_data): ...here.
6461 2019-06-25 Tom Tromey <tom@tromey.com>
6463 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6464 (tui_display_registers_from, tui_check_register_values): Update.
6465 (tui_display_register): Remove win_info parameter; update.
6466 (tui_get_register): Change type of parameters.
6467 * tui/tui-data.h (struct tui_data_element): Remove.
6468 (union tui_which_element) <data>: Remove.
6469 <data_window>: Change type.
6470 (struct tui_data_item_window): New.
6471 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6473 (~tui_data_item_window): New destructor.
6474 (free_content_elements): Remove DATA_ITEM_WIN case.
6476 2019-06-25 Tom Tromey <tom@tromey.com>
6478 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6481 2019-06-25 Tom Tromey <tom@tromey.com>
6483 * tui/tui-data.h (struct tui_command_element): Remove.
6484 (union tui_which_element) <command>: Remove.
6485 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6487 (free_content_elements): Remove CMD_WIN case.
6489 2019-06-25 Tom Tromey <tom@tromey.com>
6491 * tui/tui-layout.c (tui_set_layout): Update.
6492 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6493 * tui/tui-data.c (layout_def): Update.
6495 2019-06-25 Tom Tromey <tom@tromey.com>
6497 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6498 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6499 (tui_source_window_base::set_new_height): Update.
6500 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6502 (tui_set_locator_fullname, tui_set_locator_info)
6503 (tui_show_frame_info): Update.
6504 * tui/tui-source.c (tui_set_source_content)
6505 (tui_source_is_displayed): Update.
6506 * tui/tui-layout.c (show_source_disasm_command, show_data)
6507 (show_source_or_disasm_and_command): Update.
6508 * tui/tui-disasm.c (tui_set_disassem_content)
6509 (tui_get_begin_asm_address): Update.
6510 * tui/tui-data.h (struct tui_locator_element): Remove.
6511 (union tui_which_element) <locator>: Remove.
6512 (struct tui_locator_window): New.
6513 (tui_locator_win_info_ptr): Change return type.
6514 * tui/tui-data.c (_locator): Change type.
6515 (tui_locator_win_info_ptr): Change return type.
6516 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6517 (tui_alloc_content): Add assert.
6519 2019-06-25 Tom Tromey <tom@tromey.com>
6521 * tui/tui-winsource.c
6522 (tui_exec_info_window::maybe_allocate_content): New method.
6523 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6524 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6525 (make_source_or_disasm_window): Add cast.
6526 * tui/tui-data.h (union tui_which_element) <simple_string>:
6528 (struct tui_source_info): New.
6529 (struct tui_source_window_base) <execution_info>: Change type.
6530 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6531 case, and add assert.
6532 (tui_alloc_content): Add assert.
6534 2019-06-25 Tom Tromey <tom@tromey.com>
6536 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6537 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6538 * tui/tui-data.c (tui_alloc_win_info): Remove.
6540 2019-06-25 Tom Tromey <tom@tromey.com>
6542 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6543 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6546 2019-06-25 Tom Tromey <tom@tromey.com>
6548 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6549 make_visible_with_new_height method.
6550 (tui_win_info::make_visible_with_new_height): New method.
6551 (tui_source_window_base::do_make_visible_with_new_height)
6552 (tui_data_window::do_make_visible_with_new_height)
6553 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6554 (make_visible_with_new_height): Remove.
6555 (tui_resize_all, tui_adjust_win_heights): Use
6556 make_visible_with_new_height method.
6557 * tui/tui-data.h (struct tui_win_info)
6558 <do_make_visible_with_new_height, make_visible_with_new_height>:
6560 (struct tui_source_window_base, struct tui_data_window)
6561 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6564 2019-06-25 Tom Tromey <tom@tromey.com>
6566 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6568 (update_tab_width): Call update_tab_width method.
6569 * tui/tui-data.h (struct tui_win_info)
6570 (struct tui_source_window_base) <update_tab_width>: New methods.
6572 2019-06-25 Tom Tromey <tom@tromey.com>
6574 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6576 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6578 (tui_gen_win_info::make_visible): Update.
6579 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6581 * tui/tui-data.h (enum tui_box): New enum.
6582 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6584 2019-06-25 Tom Tromey <tom@tromey.com>
6586 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6587 init_and_make_win for EXEC_INFO_WIN.
6588 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6590 (struct tui_win_info) <~tui_win_info>: Inline.
6591 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6593 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6594 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6596 (tui_initialize_static_data): Update.
6597 (~tui_gen_win_info): Handle more cleanup here.
6598 (~tui_source_window_base): Delete "execution_info".
6599 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6601 2019-06-25 Tom Tromey <tom@tromey.com>
6603 * tui/tui-layout.c (make_command_window): Don't set
6605 (show_source_disasm_command): Call the reset method.
6606 (show_data): Don't set can_highlight. Call the reset method.
6607 (tui_gen_win_info::reset): Rename from init_gen_win_info
6608 (init_and_make_win): Simplify. Return tui_gen_win_info.
6609 (show_source_or_disasm_and_command): Call the reset method.
6610 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6611 (struct tui_cmd_window): Set can_highlight.
6613 2019-06-25 Tom Tromey <tom@tromey.com>
6615 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6617 (tui_make_visible, tui_make_invisible): Rewrite.
6618 (tui_win_info::make_visible): Remove.
6619 (tui_source_window_base::make_visible): Update.
6620 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6621 method. Moved from...
6622 (struct tui_win_info) <make_visible>: ...here.
6624 2019-06-25 Tom Tromey <tom@tromey.com>
6626 * tui/tui-winsource.c
6627 (tui_source_window_base::do_scroll_horizontal): Remove direction
6629 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6630 direction parameter.
6631 * tui/tui-win.c (tui_win_info::forward_scroll)
6632 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6633 (tui_win_info::right_scroll): Update.
6634 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6635 direction parameter.
6636 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6637 direction parameter.
6638 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6639 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6640 Remove direction parameter.
6641 (struct tui_source_window_base, struct tui_source_window)
6642 (struct tui_disasm_window, struct tui_data_window)
6643 (struct tui_cmd_window): Update.
6645 2019-06-25 Tom Tromey <tom@tromey.com>
6647 * tui/tui-winsource.h (tui_set_exec_info_content)
6648 (tui_show_exec_info_content, tui_erase_exec_info_content)
6649 (tui_clear_exec_info_content, tui_update_exec_info): Change
6650 argument to tui_source_window_base.
6651 * tui/tui-winsource.c (tui_set_exec_info_content)
6652 (tui_show_exec_info_content, tui_erase_exec_info_content)
6653 (tui_clear_exec_info_content, tui_update_exec_info): Change
6654 argument to tui_source_window_base.
6656 2019-06-25 Tom Tromey <tom@tromey.com>
6658 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6659 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6661 2019-06-25 Tom Tromey <tom@tromey.com>
6663 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6666 2019-06-25 Tom Tromey <tom@tromey.com>
6668 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6670 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6672 * tui/tui-source.c (tui_set_source_content): Update.
6673 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6675 2019-06-25 Tom Tromey <tom@tromey.com>
6677 * tui/tui-win.c (window_name_completer, tui_set_focus)
6678 (tui_all_windows_info): Use name method.
6679 * tui/tui-data.h (struct tui_gen_win_info)
6680 (struct tui_source_window, struct tui_disasm_window)
6681 (struct tui_data_window, struct tui_cmd_window) <name>: New
6683 (tui_win_name): Don't declare.
6684 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6685 (tui_win_name): Remove.
6687 2019-06-25 Tom Tromey <tom@tromey.com>
6689 * tui/tui-winsource.h (tui_update_source_window)
6690 (tui_update_source_window_as_is): Change parameter type.
6691 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6692 to be a tui_source_window_base.
6693 (tui_update_source_window_as_is): Likewise.
6694 * tui/tui-win.c (make_visible_with_new_height): Update.
6696 2019-06-25 Tom Tromey <tom@tromey.com>
6698 * tui/tui-winsource.c (tui_erase_source_content)
6699 (tui_show_source_content, tui_show_exec_info_content)
6700 (tui_erase_exec_info_content): Use refresh_window method.
6701 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6702 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6703 from tui_refresh_win.
6704 (tui_data_window::refresh_window): New method.
6705 (tui_win_info::refresh, tui_source_window_base::refresh)
6706 (tui_refresh_all): Use refresh_window method.
6707 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6709 * tui/tui-regs.c (tui_display_register): Call refresh_window
6711 * tui/tui-layout.c (show_source_disasm_command)
6712 (show_source_or_disasm_and_command): Call refresh_window method.
6713 * tui/tui-data.h (struct tui_gen_win_info)
6714 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6717 2019-06-25 Tom Tromey <tom@tromey.com>
6719 * tui/tui.c (tui_rl_other_window, tui_enable)
6720 (tui_is_window_visible, tui_get_command_dimension): Update.
6721 * tui/tui-winsource.c (tui_update_source_window_as_is)
6722 (tui_clear_source_content, tui_erase_source_content)
6723 (tui_show_source_line, tui_source_window_base::refill)
6724 (tui_source_window_base::do_scroll_horizontal)
6725 (tui_source_window_base::set_is_exec_point_at)
6726 (tui_update_breakpoint_info, tui_set_exec_info_content)
6727 (tui_alloc_source_buffer, tui_line_is_displayed)
6728 (tui_addr_is_displayed): Update.
6729 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6730 (tui_check_and_display_highlight_if_needed)
6731 (tui_win_info::make_visible, tui_win_info::refresh)
6732 (tui_refresh_all): Update.
6733 * tui/tui-windata.c (tui_first_data_item_displayed)
6734 (tui_delete_data_content_windows, tui_erase_data_content)
6735 (tui_display_all_data, tui_data_window::refresh_all)
6736 (tui_check_data_values): Update.
6737 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6738 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6739 (tui_win_info::backward_scroll, tui_refresh_all_win)
6740 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6741 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6742 (tui_source_window_base::set_new_height)
6743 (tui_data_window::set_new_height)
6744 (make_invisible_and_set_new_height)
6745 (make_visible_with_new_height, new_height_ok)
6746 (parse_scrolling_args): Update.
6747 * tui/tui-stack.c (tui_show_frame_info): Update.
6748 * tui/tui-source.c (tui_set_source_content)
6749 (tui_set_source_content_nil, tui_source_is_displayed)
6750 (tui_source_window::do_scroll_vertical): Update.
6751 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6752 (tui_display_registers_from, tui_display_reg_element_at_line)
6753 (tui_check_register_values, tui_reg_command): Update.
6754 * tui/tui-layout.c (tui_default_win_height)
6755 (show_source_disasm_command, show_data, init_and_make_win)
6756 (show_source_or_disasm_and_command): Update.
6757 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6758 (tui_redisplay_readline, tui_mld_flush)
6759 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6761 * tui/tui-disasm.c (tui_set_disassem_content)
6762 (tui_disasm_window::do_scroll_vertical): Update.
6763 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6765 (struct tui_win_info): Derive from tui_gen_win_info.
6766 <~tui_win_info>: Mark as override.
6767 <generic>: Remove member.
6768 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6769 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6770 (~tui_data_window, ~tui_win_info)
6771 (tui_free_all_source_wins_content): Update.
6772 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6774 2019-06-25 Tom Tromey <tom@tromey.com>
6776 * tui/tui-layout.c (init_and_make_win): Use new.
6777 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6778 destructor, initializers.
6779 (tui_alloc_generic_win_info): Don't declare.
6780 * tui/tui-data.c (_locator): Add argument to constructor.
6781 (source_win, disasm_win): New globals.
6782 (exec_info): Remove.
6783 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6785 (tui_alloc_generic_win_info): Remove.
6786 (init_content_element): Use new.
6787 (tui_win_info::tui_win_info): Update.
6788 (free_content_elements) <case DATA_WIN>: Use delete.
6790 2019-06-25 Tom Tromey <tom@tromey.com>
6792 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6793 * tui/tui-windata.c (tui_first_data_item_displayed)
6794 (tui_delete_data_content_windows): Update.
6795 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6796 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6797 (tui_display_registers_from, tui_check_register_values): Update.
6798 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6800 * tui/tui-data.c (init_content_element): Update. Allocate the new
6802 (tui_free_data_content): Update.
6803 (free_content_elements) <case DATA_WIN>: Free the window.
6805 2019-06-25 Tom Tromey <tom@tromey.com>
6807 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6809 * tui/tui-layout.c (make_command_window)
6810 (show_source_disasm_command, show_data, init_and_make_win)
6811 (show_source_or_disasm_and_command): Update.
6812 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6814 <can_highight, is_highlighted>: Now bool.
6815 (tui_set_win_highlight): Don't declare.
6816 * tui/tui-data.c (tui_set_win_highlight): Remove.
6818 2019-06-25 Tom Tromey <tom@tromey.com>
6820 * tui/tui-wingeneral.c (make_visible): Remove check of window
6823 2019-06-25 Tom Tromey <tom@tromey.com>
6825 * tui/tui-win.c (tui_win_info::max_height)
6826 (tui_cmd_window::max_height): New methods.
6827 (new_height_ok): Call max_height.
6828 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6829 <max_height>: New method.
6831 2019-06-25 Tom Tromey <tom@tromey.com>
6833 * tui/tui-win.c (tui_source_window_base::set_new_height)
6834 (tui_data_window::set_new_height): New methods.
6835 (make_invisible_and_set_new_height): Call set_new_height method.
6836 * tui/tui-data.h (struct tui_win_info)
6837 (struct tui_source_window_base, struct tui_data_window)
6838 <set_new_height>: New method.
6840 2019-06-25 Tom Tromey <tom@tromey.com>
6842 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6843 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6844 tui_refresh_data_win.
6845 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6847 (tui_refresh_all_win): Call the refresh_all method.
6848 (tui_set_focus): Likewise.
6849 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6850 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6853 2019-06-25 Tom Tromey <tom@tromey.com>
6855 * tui/tui-winsource.h (tui_refill_source_window)
6856 (tui_set_is_exec_point_at): Don't declare.
6857 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6858 (tui_source_window_base::refill): Rename from
6859 tui_refill_source_window.
6860 (tui_source_window_base::do_scroll_horizontal): Update.
6861 (tui_source_window_base::set_is_exec_point_at): Rename from
6862 tui_set_is_exec_point_at.
6863 (tui_update_all_breakpoint_info): Update.
6864 * tui/tui-stack.c (tui_show_frame_info): Update.
6865 * tui/tui-layout.c (show_data): Add cast.
6866 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6867 * tui/tui-data.h (struct tui_source_window_base) <refill,
6868 set_is_exec_point_at>: New methods.
6869 (tui_source_windows, tui_add_to_source_windows): Update types.
6870 (tui_add_to_source_windows): Remove redundant declaration.
6871 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6872 (tui_source_windows): Change return type.
6873 (tui_clear_source_windows_detail): Update.
6874 (tui_add_to_source_windows): Change type of parameter.
6875 (tui_free_all_source_wins_content): Update.
6877 2019-06-25 Tom Tromey <tom@tromey.com>
6879 * tui/tui-wingeneral.c (tui_win_info::refresh)
6880 (tui_source_window_base::refresh): New methods.
6881 (tui_refresh_all): Call the refresh method.
6882 * tui/tui-data.h (struct tui_win_info)
6883 (struct tui_source_window_base) <refresh>: New method.
6885 2019-06-25 Tom Tromey <tom@tromey.com>
6887 * tui/tui.h (tui_is_window_visible): Return bool.
6888 * tui/tui.c (tui_is_window_visible): Return bool.
6889 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6890 (tui_make_visible, tui_make_invisible)
6891 (tui_win_info::make_visible)
6892 (tui_source_window_base::make_visible, make_all_visible)
6893 (tui_make_all_visible, tui_make_all_invisible): Update.
6894 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6895 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6897 (struct tui_win_info, struct tui_source_window_base)
6898 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6899 * tui/tui-data.c (tui_init_generic_part): Update.
6901 2019-06-25 Tom Tromey <tom@tromey.com>
6903 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6904 (tui_source_window_base::make_visible): New methods.
6905 (make_all_visible): Make method call.
6906 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6907 (struct tui_source_window_base, struct tui_cmd_window): Override
6909 (tui_win_is_source_type): Don't declare.
6910 * tui/tui-data.c (tui_win_is_source_type): Remove.
6912 2019-06-25 Tom Tromey <tom@tromey.com>
6914 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6917 2019-06-25 Tom Tromey <tom@tromey.com>
6919 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6920 Inline constructor. Add initializers for members.
6921 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6922 constructors; now inline in class.
6924 2019-06-25 Tom Tromey <tom@tromey.com>
6926 * tui/tui-regs.c (tui_show_registers): Update.
6927 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6929 * tui/tui-data.c (tui_data_window::clear_detail)
6930 (tui_data_window): Update.
6932 2019-06-25 Tom Tromey <tom@tromey.com>
6934 * tui/tui-windata.c (tui_display_all_data)
6935 (tui_display_data_from_line, tui_display_data_from)
6936 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6938 * tui/tui-regs.c (tui_last_regs_line_no)
6939 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6940 (tui_show_registers, tui_show_register_group)
6941 (tui_display_registers_from, tui_display_reg_element_at_line)
6942 (tui_display_registers_from_line, tui_check_register_values)
6943 (tui_reg_next, tui_reg_prev): Update.
6944 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6945 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6947 (struct tui_win_info) <detail>: Remove. Add new fields from
6949 (TUI_DATA_WIN): Add cast.
6950 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6951 (~tui_data_window): Simplify.
6953 2019-06-25 Tom Tromey <tom@tromey.com>
6955 * tui/tui-layout.c (show_source_disasm_command)
6956 (show_source_or_disasm_and_command): Update.
6957 * tui/tui-io.c (update_cmdwin_start_line)
6958 (tui_redisplay_readline): Update.
6959 * tui/tui-data.h (struct tui_command_info): Remove.
6960 (struct tui_win_info) <detail>: Remove command_info member.
6961 (struct tui_data_window) <start_line>: New member, from
6963 (TUI_CMD_WIN): Add casts.
6965 2019-06-25 Tom Tromey <tom@tromey.com>
6967 * tui/tui-winsource.c (tui_update_source_window)
6968 (tui_refill_source_window)
6969 (tui_source_window_base::do_scroll_horizontal)
6970 (tui_update_breakpoint_info, tui_set_exec_info_content)
6971 (tui_show_exec_info_content, tui_erase_exec_info_content)
6972 (tui_clear_exec_info_content): Update.
6973 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6975 * tui/tui-win.c (make_invisible_and_set_new_height)
6976 (make_visible_with_new_height): Update.
6977 * tui/tui-source.c (tui_set_source_content)
6978 (tui_show_symtab_source): Update.
6979 * tui/tui-layout.c (extract_display_start_addr)
6980 (show_source_disasm_command, show_data)
6981 (make_source_or_disasm_window)
6982 (show_source_or_disasm_and_command): Update.
6983 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6984 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6986 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6987 to tui_source_window_base.
6988 (struct tui_win_info) <detail>: Remove source_info member.
6989 (struct tui_source_window_base) <has_locator>: Inline.
6990 Move contents from tui_source_info; rename has_locator member to
6992 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6993 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6995 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6997 (tui_free_all_source_wins_content): Cast to
6998 tui_source_window_base.
7000 2019-06-25 Tom Tromey <tom@tromey.com>
7002 * tui/tui-win.c (make_invisible_and_set_new_height)
7003 (make_visible_with_new_height): Call has_locator method.
7004 * tui/tui-layout.c (show_source_disasm_command, show_data)
7005 (show_source_or_disasm_and_command): Update for bool change.
7006 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7007 (tui_win_info) <has_locator>: New method.
7008 (struct tui_source_window_base) <has_locator>: New method.
7009 (tui_win_has_locator): Don't declare.
7010 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7011 from tui_win_has_locator.
7012 (tui_source_window_base): Use false, not FALSE.
7014 2019-06-25 Tom Tromey <tom@tromey.com>
7016 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7017 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7018 clear_detail method directly.
7019 (tui_clear_win_detail): Remove.
7021 2019-06-25 Tom Tromey <tom@tromey.com>
7023 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7024 "this", not TUI_DISASM_WIN.
7026 2019-06-25 Tom Tromey <tom@tromey.com>
7028 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7030 * tui/tui-winsource.c
7031 (tui_source_window_base::do_scroll_horizontal): Rename from
7032 tui_horizontal_source_scroll.
7033 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7034 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7035 from tui_vertical_data_scroll.
7036 * tui/tui-win.h (tui_scroll): Don't declare.
7037 * tui/tui-win.c (tui_win_info::forward_scroll)
7038 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7039 (tui_win_info::right_scroll): Rename and update.
7040 (tui_scroll_forward_command, tui_scroll_backward_command)
7041 (tui_scroll_left_command, tui_scroll_right_command): Update.
7042 (tui_scroll): Remove.
7043 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7044 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7045 from tui_vertical_source_scroll.
7046 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7047 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7048 from tui_vertical_disassem_scroll.
7049 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7050 do_scroll_horizontal>: New methods.
7051 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7053 (struct tui_source_window_base): Add do_scroll_horizontal.
7054 (struct tui_source_window, struct tui_disasm_window): Add
7056 (struct tui_data_window, struct tui_cmd_window): Add
7057 do_scroll_horizontal and do_scroll_vertical.
7058 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7060 2019-06-25 Tom Tromey <tom@tromey.com>
7062 * tui/tui-data.h (struct tui_source_window_base): New struct.
7063 (struct tui_source_window): Derive from tui_source_window_base.
7064 (struct tui_disasm_window): New struct.
7065 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7066 from tui_source_window::clear_detail.
7067 (tui_source_window_base): Rename from tui_source_window.
7068 (~tui_source_window_base): Rename from ~tui_source_window.
7069 (tui_alloc_win_info): Create a tui_disasm_window.
7071 2019-06-25 Tom Tromey <tom@tromey.com>
7073 * tui/tui-data.h (struct tui_source_window)
7074 (struct tui_data_window): Declare destructors.
7075 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7077 (tui_win_info): Simplify.
7079 2019-06-25 Tom Tromey <tom@tromey.com>
7081 * tui/tui-winsource.c (tui_display_main)
7082 (tui_update_source_windows_with_addr)
7083 (tui_update_all_breakpoint_info): Update.
7084 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7085 (new_height_ok, parse_scrolling_args): Update.
7086 * tui/tui-stack.c (tui_show_frame_info): Update.
7087 * tui/tui-data.h (struct tui_list): Remove.
7088 (tui_source_windows): Return a reference to a std::vector.
7089 * tui/tui-data.c (source_windows): Now a std::vector.
7090 (tui_source_windows): Change return type.
7091 (tui_clear_source_windows): Rewrite.
7092 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7093 (tui_free_all_source_wins_content): Rewrite.
7095 2019-06-25 Tom Tromey <tom@tromey.com>
7097 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7098 (struct tui_data_window, struct tui_cmd_window): Declare
7099 clear_detail method.
7100 * tui/tui-data.c (tui_source_window::clear_detail)
7101 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7103 (tui_clear_win_detail): Simplify.
7105 2019-06-25 Tom Tromey <tom@tromey.com>
7107 * tui/tui-layout.c (make_source_window, make_disasm_window)
7108 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7109 Return the new window.
7110 (show_source_disasm_command, show_data)
7111 (show_source_or_disasm_and_command): Update.
7113 2019-06-25 Tom Tromey <tom@tromey.com>
7115 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7116 parameter. Return the new window.
7117 (show_source_disasm_command): Update and remove NULL check.
7118 (show_source_or_disasm_and_command): Update.
7120 2019-06-25 Tom Tromey <tom@tromey.com>
7122 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7124 2019-06-25 Tom Tromey <tom@tromey.com>
7126 * tui/tui-data.h (struct tui_win_info): Make constructor
7127 protected. Make destructor virtual. Add initializers.
7128 (tui_source_window, tui_data_window, tui_cmd_window): New
7130 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7131 constructor. Add "type" parameter.
7132 (tui_source_window, tui_data_window, tui_cmd_window): New
7134 (tui_alloc_win_info): Instantiate the appropriate subclass.
7136 2019-06-25 Tom Tromey <tom@tromey.com>
7138 * tui/tui-win.c (tui_resize_all): Use delete.
7139 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7141 (tui_free_window): Don't declare.
7142 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7145 2019-06-25 Tom Tromey <tom@tromey.com>
7147 * tui/tui-data.h (struct tui_win_info): Add constructor.
7148 * tui/tui-data.c (tui_alloc_win_info): Use new.
7149 (tui_free_window): Use delete.
7151 2019-06-22 Tom Tromey <tom@tromey.com>
7153 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7155 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7157 2019-06-22 Tom Tromey <tom@tromey.com>
7159 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7161 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7163 2019-06-22 Tom de Vries <tdevries@suse.de>
7165 * dwarf2read.c (create_addrmap_from_aranges)
7166 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7169 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7171 * dwarf2read.h (dwarf2_section_info_def): Remove.
7172 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7173 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7174 std::vector<dwarf2_section_info>.
7175 (struct dwo_file) <~dwo_file>: Remove.
7176 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7178 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7179 (dwarf2_read_debug_names): Likewise.
7180 (create_debug_types_hash_table): Change parameter type to
7181 array_view, adjust code accordingly.
7182 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7183 (partial_die_info::fixup): Likewise.
7184 (determine_prefix): Likewise.
7185 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7187 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7189 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7191 <~dwo_file>: Remove call to gdb_bfd_unref.
7192 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7193 gdb_bfd_ref_ptr::get.
7195 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7197 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7199 * dwarf2read.c (struct dwo_file): Initialize fields.
7201 (free_dwo_file): Remove, move content to ~dwo_file.
7202 (struct dwo_file_deleter): Remove.
7203 (dwo_file_up>: Remove custom deleter.
7204 (free_dwo_files): Remove.
7205 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7207 (process_skeletonless_type_units): Call unique_ptr::get.
7208 (allocate_dwo_file_hash_table): Add deleter to created hash
7209 table. Change return type to htab_up.
7210 (lookup_dwo_file_slot): Don't memset dwo_file, call
7212 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7213 (create_dwo_unit_in_dwp_v2): Likewise.
7214 (open_and_init_dwo_file): Likewise.
7215 (free_dwo_file_from_slot): Remove.
7217 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7219 * dwarf2read.h (struct dwarf2_section_info) <readin,
7220 is_virtual>: Change type to bool.
7221 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7224 2019-06-19 Tom Tromey <tom@tromey.com>
7226 * tui/tui-data.h (tui_init_content_element): Don't declare.
7228 2019-06-19 Tom Tromey <tom@tromey.com>
7230 * tui/tui-data.h (tui_init_win_info): Don't declare.
7232 2019-06-19 Tom de Vries <tdevries@suse.de>
7234 * dwarf2read.h (abstract_to_concrete): Change type to
7235 std::unordered_map<sect_offset, std::vector<sect_offset>,
7236 gdb::hash_enum<sect_offset>>.
7238 2019-06-19 Tom Tromey <tromey@adacore.com>
7240 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7241 EVAL_AVOID_SIDE_EFFECTS specially.
7243 2019-06-19 Tom Tromey <tromey@adacore.com>
7245 * source-cache.c (highlighter): New global.
7246 (source_cache::get_source_lines): Create a highlighter on demand.
7248 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7250 * defs.h (deprecated_interactive_hook): Delete declaration.
7251 * interps.c (clear_interpreter_hooks): Remove use of
7252 deprecated_interactive_hook.
7253 * top.c (deprecated_interactive_hook): Delete definition.
7254 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7256 2019-06-18 Tom de Vries <tdevries@suse.de>
7259 * dwarf2read.h (abstract_to_concrete): Change type from
7260 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7261 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7262 * dwarf2read.c (read_variable): Update.
7263 (dwarf2_fetch_die_loc_sect_off): Update.
7265 2019-06-17 Tom de Vries <tdevries@suse.de>
7268 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7269 accessing parent[parent_len - 1].
7271 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7274 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7275 call dtrace_process_dof with NULL dof.
7277 2019-06-16 Tom de Vries <tdevries@suse.de>
7280 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7282 2019-06-16 Tom Tromey <tom@tromey.com>
7284 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7285 (make_all_visible): Use address of member.
7287 2019-06-16 Tom Tromey <tom@tromey.com>
7289 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7290 (tui_free_window, free_content, free_content_elements): Remove
7292 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7294 * tui/tui-regs.c (tui_show_register_group)
7295 (tui_display_registers_from, tui_display_reg_element_at_line):
7296 Remove unnecessary cast.
7298 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7300 * linux-nat.c (normal_mask): Delete.
7301 (_initialize_linux_nat): Don't initialise normal_mask.
7303 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7306 * dwarf-index-write.h (write_psymtabs_to_index): Add
7307 dwz_basename parameter.
7308 * dwarf-index-write.c (write_gdbindex): Move file writing to
7309 write_gdbindex_1. Change return type void.
7310 (assert_file_size): Move up, remove filename parameter.
7311 (write_gdbindex_1): New function.
7312 (write_debug_names): Change return type to void, call
7314 (struct index_wip_file): New struct.
7315 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7316 file logic to index_wip_file. Write index for dwz file if
7318 (save_gdb_index_command): Pass basename of dwz file, if present.
7319 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7320 build-id of dwz file, if present.
7321 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7322 (dwarf2_get_dwz_file): Likewise.
7323 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7324 (dwarf2_get_dwz_file): Likewise.
7326 2019-06-16 Tom Tromey <tom@tromey.com>
7328 * coffread.c (process_coff_symbol): Use xstrdup.
7329 * value.c (create_internalvar): Use xstrdup.
7331 2019-06-16 Tom Tromey <tom@tromey.com>
7333 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7334 * breakpoint.c (stopin_command, stopat_command)
7335 (until_break_command, decode_location_default): Remove unnecessary
7337 * utils.c (subset_compare): Remove unnecessary cast.
7338 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7340 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7342 * infcmd.c (path_command): Remove unnecessary cast.
7343 * coffread.c (decode_type): Remove unnecessary cast.
7344 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7345 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7346 * tui/tui-stack.c (tui_show_locator_content)
7347 (tui_show_frame_info): Remove unnecessary cast.
7348 * tui/tui-win.c (tui_scroll_forward_command)
7349 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7350 (parse_scrolling_args): Remove unnecessary cast.
7351 * tui/tui-data.c (init_win_info, tui_del_window)
7352 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7353 (free_content_elements): Remove unnecessary cast.
7354 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7356 * tui/tui-source.c (tui_set_source_content)
7357 (tui_vertical_source_scroll): Remove unnecessary cast.
7358 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7360 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7361 * tui/tui-regs.c (tui_display_registers_from)
7362 (tui_display_register): Remove unnecessary cast.
7363 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7364 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7365 (make_visible): Remove unnecessary cast.
7366 * tui/tui-winsource.c (tui_erase_source_content)
7367 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7369 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7370 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7371 * stabsread.c (read_type, read_array_type, read_range_type):
7372 Remove unnecessary cast.
7373 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7374 (parse_symbol, parse_type, upgrade_type, parse_external)
7375 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7377 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7379 2019-06-16 Tom Tromey <tom@tromey.com>
7381 * tui/tui-data.c (tui_alloc_generic_win_info)
7382 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7385 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7386 Andrew Burgess <andrew.burgess@embecosm.com>
7388 * f-typeprint.c (f_print_type): Don't return early for not
7389 associated or not allocated types.
7390 (f_type_print_varspec_suffix): Add print_rank parameter and print
7391 ranks of array types in case they dangling.
7392 (f_type_print_base): Add print_rank parameter.
7394 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7396 * NEWS: Mention new MI commands.
7397 * break-catch-throw.c (enum exception_event_kind): Move to
7399 (print_mention_exception_catchpoint): Output text as a single
7401 (catch_exception_command_1): Rename to...
7402 (catch_exception_event): ...this, make non-static, update header
7403 command, and change some parameter types.
7404 (catch_catch_command): Update for changes to
7405 catch_exception_command_1.
7406 (catch_throw_command): Likewise.
7407 (catch_rethrow_command): Likewise.
7408 * breakpoint.c (enum exception_event_kind): Delete.
7409 * breakpoint.h (enum exception_event_kind): Moved here from
7410 break-catch-throw.c.
7411 (catch_exception_event): Declare.
7412 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7413 (mi_cmd_catch_throw): New function.
7414 (mi_cmd_catch_rethrow): New function.
7415 (mi_cmd_catch_catch): New function.
7416 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7417 'catch-catch' entries.
7418 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7419 (mi_cmd_catch_rethrow): Declare.
7420 (mi_cmd_catch_catch): Declare.
7422 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7424 * annotate.c (annotate_source_line): Change return type to void,
7425 update implementation to match.
7426 * annotate.h (annotate_source_line): Change return type to void,
7427 update header comment.
7428 * stack.c (print_frame_info): Don't change what frame information
7429 is printed based on whether annotations are on or not.
7431 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7433 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7434 (annotate_source): Make static.
7435 (annotate_source_line): Moved from source.c and renamed from
7436 identify_source_line. Update the return type.
7437 * annotate.h (annotate_source): Delete declaration.
7438 (annotate_source_line): Declaration moved from source.h, and
7439 renamed from identify_source_line. Return type updated.
7440 * source.c (identify_source_line): Moved to annotate.c and renamed
7441 to annotate_source_line.
7442 (info_line_command): Remove check of annotation_level.
7443 * source.h (identify_source_line): Move declaration to annotate.h
7444 and rename to annotate_source_line.
7445 * stack.c: Add 'annotate.h' include.
7446 (print_frame_info): Remove check of annotation_level before
7447 calling annotate_source_line.
7449 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7451 * source-cache.c (source_cache::get_plain_source_lines): Use
7452 open_source_file_with_line_charpos instead of just
7453 open_source_file, remove call to find_source_lines.
7454 (source_cache::get_source_lines): Likewise.
7455 * source.c (find_source_lines): Make static.
7456 (get_filename_and_charpos): Renamed into...
7457 (open_source_file_with_line_charpos): ..this along with changes to
7458 return a scoped_fd, and some other minor clean ups.
7459 (identify_source_line): Use open_source_file_with_line_charpos.
7460 (search_command_helper): Use open_source_file_with_line_charpos
7461 instead of just open_source_file, remove call to
7463 * source.h (open_source_file_with_line_charpos): Declare new
7465 (find_source_lines): Delete declaration.
7467 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7469 * source.c (get_filename_and_charpos): Remove fullname
7471 (identify_source_line): Update call to get_filename_and_charpos.
7473 2019-06-14 Tom Tromey <tromey@adacore.com>
7476 * ui-style.h (skip_ansi_escape): Update comment.
7477 * ui-file.h (class no_terminal_escape_file): New class.
7478 * ui-file.c (no_terminal_escape_file::write)
7479 (no_terminal_escape_file::puts): New methods.
7480 * cli/cli-logging.c (handle_redirections): Use
7481 no_terminal_escape_file.
7483 2019-06-14 Tom Tromey <tromey@adacore.com>
7485 * NEWS: Move convenience variable news above Python news.
7487 2019-06-14 Tom Tromey <tom@tromey.com>
7489 * gnulib: Move directory to top-level.
7490 * configure.ac: Don't configure gnulib.
7491 * configure: Rebuild.
7492 * common/common-defs.h: Use new path to gnulib.
7493 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7495 (INCGNU): Look in new gnulib location.
7496 (HFILES_NO_SRCDIR): Remove gnulib files.
7497 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7498 (generated_files): Remove GNULIB_H.
7499 ($(LIBGNU), all-lib): Remove targets.
7500 (distclean): Don't mention GNULIB_BUILDDIR.
7501 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7503 2019-06-14 Tom Tromey <tromey@adacore.com>
7505 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7506 Warn if symbol file does not provide any symbols.
7508 2019-06-14 Tom Tromey <tromey@adacore.com>
7510 * source.c (find_and_open_source): Respect basenames_may_differ.
7512 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7514 * annotate.c (annotate_breakpoints_invalid): Make use of
7515 scoped_restore_terminal_state.
7516 (annotate_frames_invalid): Likewise.
7518 2019-06-14 Tom Tromey <tromey@adacore.com>
7520 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7521 allow assignment to an internalvar.
7523 2019-06-14 Tom Tromey <tromey@adacore.com>
7525 * ada-lex.l: Allow "_" in attribute names.
7527 2019-06-14 Tom Tromey <tromey@adacore.com>
7530 * regcache.c (registers_changed): Don't call alloca.
7531 * top.c (execute_command): Don't call alloca.
7533 2019-06-13 Pedro Alves <palves@redhat.com>
7535 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7536 'expression'. When parsing an expression, error out if there's
7537 junk after "unlimited".
7538 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7539 (do_set_command): Adjust calls to is_unlimited_literal.
7541 2019-06-13 Pedro Alves <palves@redhat.com>
7543 * compile/compile.c (make_compile_options_def_group): Add braces
7544 around array_view initializer.
7545 * thread.c (make_thread_apply_all_options_def_group)
7546 (make_thread_apply_all_options_def_group): Likewise.
7548 2019-06-13 Pedro Alves <palves@redhat.com>
7550 * NEWS (New commands): Mention "maint test-options
7551 require-delimiter", "maint test-options unknown-is-error", "maint
7552 test-options unknown-is-operand" and "maint show
7553 test-options-completion-result".
7554 (New command options, command completion): New section.
7555 (Completion improvements): New section.
7556 Mention that you can abbreviate "unlimited".
7558 2019-06-13 Pedro Alves <palves@redhat.com>
7560 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7561 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7562 * unittests/cli-utils-selftests.c (test_parse_flags)
7563 (test_parse_flags_qcs): Delete.
7564 (test_cli_utils): Don't call deleted functions.
7566 2019-06-13 Pedro Alves <palves@redhat.com>
7568 * thread.c: Include "cli/cli-option.h".
7569 (tp_array_compar_ascending): Global.
7570 (tp_array_compar): Delete function.
7571 (tp_array_compar_ascending, tp_array_compar_descending): New
7573 (ascending_option_def, qcs_flag_option_def)
7574 (thr_qcs_flags_option_defs)
7575 (make_thread_apply_all_options_def_group)
7576 (make_thread_apply_options_def_group): New.
7577 (thread_apply_all_command): Use gdb::option::process_options.
7578 (thread_apply_command_completer)
7579 (thread_apply_all_command_completer): New.
7580 (thread_apply_command): Use gdb::option::process_options.
7581 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7582 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7583 to generate help text of "thread apply". Adjust "taas"'s help.
7584 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7585 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7587 2019-06-13 Pedro Alves <palves@redhat.com>
7589 * thread.c (thread_apply_command): Check for invalid TID with
7590 isdigit instead of !isalpha.
7592 2019-06-13 Pedro Alves <palves@redhat.com>
7594 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7595 (validate_flags_qcs): New.
7596 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7597 (validate_flags_qcs): Declare.
7598 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7599 (make_frame_apply_options_def_group): New.
7600 (frame_apply_command_count): Process options with
7601 gdb::option::process_options.
7602 (frame_apply_completer): New.
7603 (frame_apply_level_completer, frame_apply_all_completer)
7604 (frame_apply_completer): New.
7605 (_initialize_stack): Update help of "frame apply", "frame apply
7606 level", "frame apply all" and "faas" to mention supported options
7607 and install command completers.
7608 * stack.h (frame_apply_all_completer): Declare.
7609 * thread.c: Include "stack.h".
7610 (tfaas_command): Add "--".
7611 (_initialize_thread): Update help "tfaas" to mention supported
7612 options and install command completer.
7614 2019-06-13 Pedro Alves <palves@redhat.com>
7616 * completer.c (complete_nested_command_line): New.
7617 (gdb_completion_word_break_characters_throw): Add assertion.
7618 * completer.h (complete_nested_command_line): Declare.
7620 2019-06-13 Pedro Alves <palves@redhat.com>
7622 * stack.c (parse_backtrace_qualifiers): New.
7623 (backtrace_command): Use it.
7624 (backtrace_command_completer): Complete on qualifiers.
7626 2019-06-13 Pedro Alves <palves@redhat.com>
7628 * frame.c: Include "cli/cli-option.h.
7629 (user_set_backtrace_options): New.
7630 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7632 (get_prev_frame): Adjust.
7633 (boolean_option_def, uinteger_option_def)
7634 (set_backtrace_option_defs): New.
7635 (_initialize_frame): Adjust and use
7636 gdb::option::add_setshow_cmds_for_options to install "set
7637 backtrace past-main" and "set backtrace past-entry".
7638 * frame.h: Include "cli/cli-option.h".
7639 (struct frame_print_options): Forward declare.
7640 (print_frame_arguments_all, print_frame_arguments_scalars)
7641 (print_frame_arguments_none): Declare.
7642 (print_entry_values): Delete declaration.
7643 (struct frame_print_options, user_frame_print_options): New.
7644 (struct set_backtrace_options): New.
7645 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7646 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7647 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7648 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7649 (list_args_or_locals): Add frame_print_options parameter.
7650 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7651 * python/py-framefilter.c (enumerate_args): Pass down
7652 USER_FRAME_PRINT_OPTIONS.
7653 * stack.c: Include "cli/cli-option.h".
7654 (print_frame_arguments_all, print_frame_arguments_scalars)
7655 (print_frame_arguments_none): Declare.
7656 (print_raw_frame_arguments, print_entry_values): Delete.
7657 (user_frame_print_options): New.
7658 (boolean_option_def, enum_option_def, frame_print_option_defs):
7660 (struct backtrace_cmd_options): New.
7661 (bt_flag_option_def): New.
7662 (backtrace_command_option_defs): New.
7663 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7664 (print_frame_arg, read_frame_arg, print_frame_args)
7665 (print_frame_info, print_frame): Add frame_print_options parameter
7667 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7668 (backtrace_command_1): Add frame_print_options and
7669 backtrace_cmd_options parameters and use them.
7670 (make_backtrace_options_def_group): New.
7671 (backtrace_command): Process command options with
7672 gdb::option::process_options.
7673 (backtrace_command_completer): New.
7674 (_initialize_stack): Extend "backtrace"'s help to mention
7675 supported options. Install completer for "backtrace".
7676 Install some settings commands with add_setshow_cmds_for_options.
7678 2019-06-13 Pedro Alves <palves@redhat.com>
7680 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7681 and that "set/show print raw frame-arguments" are now deprecated.
7683 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7685 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7686 * stack.c (_initialize_stack): Install "set/show print
7687 raw-frame-arguments", and deprecate "set/show print raw
7689 * valprint.c (_initialize_valprint): Deprecate "set/show print
7692 2019-06-13 Pedro Alves <palves@redhat.com>
7694 * compile/compile.c (struct compile_options): New.
7695 (compile_flag_option_def, compile_command_option_defs)
7696 (make_compile_options_def_group): New.
7697 (compile_file_command): Handle options with
7698 gdb::option::process_options.
7699 (compile_file_command_completer): New function.
7700 (compile_code_command): Handle options with
7701 gdb::option::process_options.
7702 (compile_code_command_completer): New function.
7703 (_initialize_compiler): Install completers for "compile code" and
7704 "compile file". Mention available options in "compile code" and
7705 "compile code"'s help.
7706 * completer.c (advance_to_completion_word): New, factored out from
7708 (advance_to_expression_complete_word_point): ... this.
7709 (advance_to_filename_complete_word_point): New.
7710 * completer.h (advance_to_filename_complete_word_point): New
7713 2019-06-13 Pedro Alves <palves@redhat.com>
7715 * compile/compile.c: Include "cli/cli-option.h".
7716 (compile_print_value): Scope data pointer is now a
7717 value_print_options pointer; adjust.
7718 (compile_print_command): Process options. Scope data pointer is
7719 now a value_print_options pointer; adjust.
7720 (_initialize_compile): Update "compile print"'s help to include
7721 supported options. Install a completer for "compile print".
7722 * cp-valprint.c (show_vtblprint, show_objectprint)
7723 (show_static_field_print): Delete.
7724 (_initialize_cp_valprint): Don't install "set print
7725 static-members", "set print vtbl", "set print object" here.
7726 * printcmd.c: Include "cli/cli-option.h" and
7727 "common/gdb_optional.h".
7728 (print_command_parse_format): Rework to fill in a
7729 value_print_options instead of a format_data.
7730 (print_value): Change parameter type from format_data pointer to
7731 value_print_options reference. Adjust.
7732 (print_command_1): Process options. Adjust to pass down a
7733 value_print_options.
7734 (print_command_completer): New.
7735 (_initialize_printcmd): Install print_command_completer as
7736 handle_brkchars completer for the "print" command. Update
7737 "print"'s help to include supported options.
7738 * valprint.c: Include "cli/cli-option.h".
7739 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7740 here from cp-valprint.c.
7741 (boolean_option_def, uinteger_option_def)
7742 (value_print_option_defs, make_value_print_options_def_group):
7743 New. Use gdb::option::add_setshow_cmds_for_options to install
7744 "set print elements", "set print null-stop", "set print repeats",
7745 "set print pretty", "set print union", "set print array", "set
7746 print address", "set print symbol", "set print array-indexes".
7747 * valprint.h: Include <string> and "cli/cli-option.h".
7748 (make_value_print_options_def_group): Declare.
7749 (print_value): Change parameter type from format_data pointer to
7750 value_print_options reference.
7751 (print_command_completer): Declare.
7753 2019-06-13 Pedro Alves <palves@redhat.com>
7755 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7756 (COMMON_SFILES): Add maint-test-settings.c.
7757 * cli/cli-decode.c (boolean_enums): New global, factored out from
7759 (add_setshow_boolean_cmd): ... here.
7760 * cli/cli-decode.h (boolean_enums): Declare.
7761 * cli/cli-option.c: New file.
7762 * cli/cli-option.h: New file.
7763 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7764 factored out from ...
7765 (parse_cli_boolean_value(const char *)): ... this.
7766 (is_unlimited_literal): Change parameter type to pointer to
7767 pointer. Adjust and advance ARG pointer.
7768 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7769 (parse_cli_var_enum): New, factored out from ...
7770 (do_set_command): ... this. Adjust.
7771 * cli/cli-setshow.h (parse_cli_boolean_value)
7772 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7773 (parse_cli_var_enum): Declare.
7774 * cli/cli-utils.c: Include "cli/cli-option.h".
7775 (get_ulongest): New.
7776 * cli/cli-utils.h (get_ulongest): Declare.
7777 (check_for_argument): New overloads.
7778 * maint-test-options.c: New file.
7780 2019-06-13 Pedro Alves <palves@redhat.com>
7782 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7783 parse a range if "-" is at the end of the string.
7785 2019-06-13 Pedro Alves <palves@redhat.com>
7787 * cli/cli-setshow.c (parse_auto_binary_operation)
7788 (parse_cli_boolean_value): Don't allow "o".
7790 2019-06-13 Pedro Alves <palves@redhat.com>
7792 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7793 * NEWS: Mention maint test-settings KIND.
7794 * maint-test-settings.c: New file.
7796 2019-06-13 Pedro Alves <palves@redhat.com>
7798 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7800 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7803 2019-06-13 Pedro Alves <palves@redhat.com>
7805 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7808 2019-06-13 Pedro Alves <palves@redhat.com>
7810 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7812 2019-06-13 Pedro Alves <palves@redhat.com>
7814 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7815 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7817 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7818 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7820 (check_for_argument): Skip spaces after argument.
7822 2019-06-13 Pedro Alves <palves@redhat.com>
7824 * thread.c (thread_apply_command): Adjust TID parsing.
7825 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7826 detected before end of string.
7827 (tid_is_in_list): Error out if LIST is invalid.
7829 2019-06-13 Pedro Alves <palves@redhat.com>
7831 * completer.c (complete_line_internal_1): Rewind completion word
7833 (completion_tracker::advance_custom_word_point_by): Change
7834 parameter type to int.
7835 * completer.h (completion_tracker::advance_custom_word_point_by):
7838 2019-06-13 Pedro Alves <palves@redhat.com>
7840 * completer.c (advance_to_completion_word): Handle delimiters.
7842 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7844 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7846 2019-06-11 Tom Tromey <tom@tromey.com>
7848 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7849 (xmalloc_failed): Move to alloc.c.
7850 * alloc.c: New file.
7851 * Makefile.in (COMMON_SFILES): Add alloc.c.
7853 2019-06-11 Tom Tromey <tom@tromey.com>
7855 * nat/linux-waitpid.c: Don't include server.h.
7856 (linux_debug): Remove.
7857 (my_waitpid): Update.
7859 2019-06-11 Tom Tromey <tromey@adacore.com>
7861 * infcall.c (_initialize_infcall): Remove trailing newline from
7863 * user-regs.c (_initialize_user_regs): Remove trailing newline
7865 * typeprint.c (_initialize_typeprint): Remove trailing newline
7867 * reverse.c (_initialize_reverse): Remove trailing newlines from
7869 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7871 * language.c (add_set_language_command): Remove trailing newline
7873 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7875 * disasm.c (_initialize_disasm): Remove trailing newline from
7877 * top.c (init_main): Remove trailing newline from help.
7878 * interps.c (_initialize_interpreter): Remove trailing newline
7880 * btrace.c (_initialize_btrace): Remove trailing newlines from
7882 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7884 * python/python.c (_initialize_python): Remove trailing newline
7886 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7888 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7889 from help. Reformat some text.
7890 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7892 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7895 2019-06-11 Tom Tromey <tromey@adacore.com>
7897 * darwin-nat.c (darwin_decode_exception_message)
7898 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7900 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7902 * valops.c (value_slice): Check for not allocated or not
7905 2019-06-10 Tom de Vries <tdevries@suse.de>
7908 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7909 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7912 2019-06-10 Tom de Vries <tdevries@suse.de>
7915 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7916 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7918 2019-06-10 Tom de Vries <tdevries@suse.de>
7921 * symtab.c (struct demangled_name_entry): Add language field.
7922 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7923 static minimal symbol". Set and use language field.
7925 2019-06-10 Tom Tromey <tromey@adacore.com>
7927 * ada-lang.c (_initialize_ada_language): Update help text.
7929 2019-06-10 Tom Tromey <tromey@adacore.com>
7931 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7933 * guile/guile.c (handle_boot_error): Don't end warning with a
7935 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7936 warning with a newline.
7937 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7939 (s12z_frame_cache): Likewise.
7940 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7942 * solib-svr4.c (disable_probes_interface): Don't end warning with
7944 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7946 * python/python.c (do_finish_initialization): Don't end warning
7949 2019-06-10 Tom Tromey <tom@tromey.com>
7951 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7952 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7955 2019-06-10 Tom Tromey <tromey@adacore.com>
7957 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7959 (elf_new_init): Don't call stabsread_new_init.
7960 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7961 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7962 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7964 2019-06-10 Tom de Vries <tdevries@suse.de>
7968 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7970 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7972 * source.c (find_and_open_source): Also rewrite relative file
7975 2019-04-26 Amos Bird <amosbird@gmail.com>
7977 * annotate.c (annotate_thread_exited): Add "thread-exited"
7980 2019-06-06 Tom Tromey <tromey@adacore.com>
7982 * maint.h (class scoped_command_stats): Use
7983 DISABLE_COPY_AND_ASSIGN.
7984 <print_time>: New method.
7985 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7987 (scoped_command_stats::print_time): New method.
7989 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7991 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7992 instructions of lengths 6 or 8 bytes.
7994 2019-06-04 Pedro Alves <palves@redhat.com>
7996 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7998 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7999 * breakpoint.c (condition_completer): Likewise.
8000 * cli/cli-dump.c (scan_expression): Likewise.
8001 * common/filestuff.c (mkdir_recursive): Likewise.
8002 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8003 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8004 (gdb_abspath): Likewise.
8005 * compile/compile-cplus-types.c
8006 (compile_cplus_instance::decl_name): Likewise.
8007 * completer.c (complete_explicit_location):
8008 (signal_completer, reg_or_group_completer_1): Likewise.
8009 * cp-support.c (cp_remove_params_if_any): Likewise.
8010 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8011 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8012 * infcmd.c (strip_bg_char): Likewise.
8013 * linespec.c (copy_token_string): Likewise.
8014 * mi/mi-main.c (output_cores): Likewise.
8015 * psymtab.c (psymtab_search_name):
8016 * symfile.c (test_set_ext_lang_command): Likewise.
8017 * target.c (target_fileio_read_stralloc): Likewise.
8018 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8019 * value.c (complete_internalvar): Likewise.
8021 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8023 Add objfile property to gdb.Type.
8024 * NEWS: Mention Python API addition.
8025 * python/py-type.c (typy_get_objfile): New method.
8027 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8029 * NEWS: Mention the new set|show style [title|highlight].
8030 Mention changes to "show style", "help" and "apropos".
8032 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8034 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8035 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8036 instead of print_help_for_command.
8037 (print_doc_of_command): New function.
8038 (help_list): Add 'apropos -v word' suggestion.
8039 (print_help_for_command): Style the command name using title style.
8040 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8041 (_initialize_cli_cmds): Describe -v in apropos_command help.
8043 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8045 * cli/cli-style.h (cli_style_option): Add name in constructor,
8046 add m_name class member, add constructor with intensity,
8047 add name class function.
8048 (cli_style_option::add_setshow_commands): Remove name argument.
8049 (highlight_style, title_style): New styles.
8050 * cli/cli-style.c (do_show): New function that shows a style
8051 characteristic styling the style name with itself.
8052 (set_style_name): New function.
8053 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8054 Update all callers according to the changes in cli/cli-style.h.
8055 * utils.h (fputs_highlighted): New function.
8056 * utils.c (fputs_highlighted): Likewise.
8058 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8060 * NEWS: Mention new pipe command and new convenience variables.
8062 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8064 * cli/cli-cmds.c (pipe_command): New function.
8065 (_initialize_cli_cmds): Call add_com for pipe_command.
8066 Define | as an alias for pipe.
8067 (exit_status_set_internal_vars): New function.
8068 (shell_escape): Call exit_status_set_internal_vars.
8069 cli/cli-decode.c (find_command_name_length): Recognize | as
8070 a single character command.
8072 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8074 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8075 top.c (execute_command_to_ui_file): New function, mostly a copy
8076 of execute_command_to_string.
8077 (execute_command_to_string): Implement by calling
8078 execute_command_to_ui_file.
8080 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8082 * top.h (saved_command_line): Remove declaration.
8083 * top.c (previous_saved_command_line, previous_repeat_arguments):
8085 (saved_command_line): Make static, define together with other
8087 (dont_repeat): Clear repeat_arguments.
8088 (repeat_previous, get_saved_command_line, save_command_line):
8090 (gdb_init): Initialize saved_command_line
8091 and previous_saved_command_line.
8092 * main.c (captured_main_1): Remove saved_command_line initialization.
8093 * event-top.c (handle_line_of_input): Update to use
8094 the new 'repeat' related functions instead of direct access to
8096 * command.h (repeat_previous, get_saved_command_line,
8097 save_command_line): New declarations.
8098 (dont_repeat): Add comment.
8100 2019-05-30 Tom Tromey <tromey@adacore.com>
8102 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8104 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8106 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8109 * completer.c (complete): Initialize variable word.
8111 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8113 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8114 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8115 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8116 'body' is NULL to the outter 'if', protecting the '!is_define'
8119 2019-05-29 Tom Tromey <tromey@adacore.com>
8121 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8122 (dwarf_unknown): New function.
8123 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8124 (dwarf_type_encoding_name): Use dwarf_unknown.
8126 2019-05-29 Tom Tromey <tromey@adacore.com>
8129 * cp-valprint.c (cp_print_value_fields): Call
8130 cp_print_static_field inside "try".
8132 2019-05-29 Tom Tromey <tromey@adacore.com>
8134 * inflow.c (struct terminal_info): Add default operator=.
8135 * configure: Rebuild.
8136 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8137 -Wdeprecated-copy-dtor, -Wredundant-move.
8139 2019-05-29 Tom Tromey <tromey@adacore.com>
8142 * infcmd.c (print_return_value_1): Handle finish_print
8144 (show_print_finish): New function.
8145 (_initialize_infcmd): Add "set/show print finish" commands.
8146 * valprint.c (user_print_options): Initialize new member.
8147 * valprint.h (struct value_print_options) <finish_print>: New
8150 2019-05-28 Tom Tromey <tromey@adacore.com>
8152 * ada-lang.c (ada_remove_Xbn_suffix)
8153 (find_old_style_renaming_symbol)
8154 (parse_old_style_renaming): Remove.
8155 (ada_find_renaming_symbol): Don't call
8156 find_old_style_renaming_symbol.
8157 (ada_is_renaming_symbol): Rename from
8158 ada_find_renaming_symbol. Remove "block" parameter. Return
8160 (ada_read_var_value): Update and simplify.
8161 * ada-exp.y (write_var_or_type): Remove old code.
8163 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8166 * event-top.c: Remove include comment.
8167 * inflow.c (class scoped_ignore_sigttou): Move from here...
8168 * inflow.h (class scoped_ignore_sigttou): ...to here.
8169 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8170 * top.c: Remove include comment.
8172 2019-05-27 Tom Tromey <tom@tromey.com>
8176 2019-05-22 Tom Tromey <tromey@adacore.com>
8178 * target.c (target_follow_exec): Constify parameter.
8179 * target-delegates.c: Rebuild.
8180 * remote.c (remote_target::follow_exec): Constify parameter.
8181 * infrun.c (follow_exec): Constify parameter.
8182 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8183 (target_follow_exec): Likewise.
8185 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8187 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8188 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8190 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8192 * NEWS: Add debugredirect and testsuite sections.
8194 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8196 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8197 target descriptions using exclusively floating point register name
8200 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8203 * f-lang.c (build_fortran_types): Handle the case where
8204 gdbarch_floatformat_for_type returns a nullptr.
8206 2019-05-21 Tom de Vries <tdevries@suse.de>
8209 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8211 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8214 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8216 * i386-tdep.c (i386_floatformat_for_type): Use
8217 floatformats_ia64_quad for the 16-byte floating point component
8218 within a fortran 32-byte complex number.
8220 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8222 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8223 delete default constructor.
8224 (find_partial_die): Update to return const struct.
8225 (partial_die_parent_scope): Move variable declaration into scope
8226 of its use and change its type to auto.
8227 (guess_partial_die_structure_name): Likewise.
8228 (partial_die_info::fixup): Likewise.
8230 2019-05-17 Tom Tromey <tromey@adacore.com>
8232 * source.c (find_and_open_source): Remove cast.
8234 2019-05-17 Tom Tromey <tromey@adacore.com>
8236 * annotate.c (annotate_source): Make "filename" const.
8237 * annotate.h (annotate_source): Use const.
8239 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8241 * disasm.c (set_disassembler_options): Send errors to stderr.
8243 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8245 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8246 (cli_interp_base::set_logging): Check debug_redirect.
8247 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8248 * cli/cli-logging.c (debug_redirect): Add static variable.
8249 (pop_output_files): Add default param.
8250 (handle_redirections): Print debug setting.
8251 (show_logging_command): Likewise.
8252 (_initialize_cli_logging): Add debugredirect command.
8253 * interps.c (current_interp_set_logging): Add debug_redirect
8255 * interps.h (set_logging): Add debug_redirect parameter.
8256 (current_interp_set_logging): Likewise.
8257 * mi/mi-common.h: Likewise.
8258 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8260 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8261 Tom Tromey <tromey@adacore.com>
8263 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8265 * cli/cli-interp.h (make_logging_output): Remove declaration.
8266 * cli/cli-logging.c (make_logging_output): Remove function.
8267 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8269 * ui-file.c (tee_file::tee_file): Remove bools.
8270 (tee_file::~tee_file): Remove deletes.
8271 * ui-file.h (tee_file): Remove bools.
8273 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8275 * mi/mi-cmds.h (mi_cmd_complete): New function.
8276 * mi/mi-main.c (mi_cmd_complete): Likewise.
8277 * mi/mi-cmds.c: Define new MI command -complete.
8278 * NEWS: Mention new -complete command.
8280 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8282 * completer.h (complete): New function.
8283 * completer.c (complete): Likewise.
8284 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8285 function defined in completer.h.
8287 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8289 * MAINTAINERS (Write After Approval): Add myself.
8291 2019-05-17 Tom de Vries <tdevries@suse.de>
8294 * dwarf2read.c (struct cu_partial_die_info): New struct.
8295 (find_partial_die): Return cu_partial_die_info.
8296 (partial_die_parent_scope, guess_partial_die_structure_name)
8297 (partial_die_info::fixup): Handle new return type of find_partial_die.
8299 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8301 PR breakpoints/24541
8302 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8303 "std::string", simplifying the algorithm.
8305 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8307 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8308 (stap_static_probe_ops::get_probes): Likewise.
8310 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8312 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8313 '-')" and "else if".
8314 (stap_parse_single_operand): Join checks for
8315 "gdbarch_stap_parse_special_token_p" and
8316 "gdbarch_stap_parse_special_token" in the same "if" statement.
8317 Invert check when verifying for operation on register
8320 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8322 * stap-probe.c (stap_get_opcode): Update comment.
8323 (stap_get_expected_argument_type): Likewise.
8324 (handle_stap_probe): Likewise.
8326 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8328 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8329 return type to 'bool'. Adjust comment. Use 'bool' when
8331 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8332 * stap-probe.c (stap_parse_argument_1): Likewise.
8333 (stap_is_operator): Likewise.
8334 (stap_is_generic_prefix): Likewise.
8335 (stap_is_register_prefix): Likewise.
8336 (stap_is_register_indirection_prefix): Likewise.
8337 (stap_is_integer_prefix): Likewise.
8338 (stap_generic_check_suffix): Likewise.
8339 (stap_check_integer_suffix): Likewise.
8340 (stap_check_register_suffix): Likewise.
8341 (stap_check_register_indirection_suffix): Likewise.
8342 (stap_parse_register_operand): Likewise.
8343 (stap_parse_single_operand): Likewise.
8344 (stap_parse_argument_1): Likewise.
8345 (stap_probe::get_argument_count): Likewise.
8346 (stap_is_operator): Likewise.
8348 2019-05-16 Tom Tromey <tromey@adacore.com>
8350 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8353 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8355 * linux-thread-db.c (try_thread_db_load_1): Change return type
8357 (try_thread_db_load): Likewise.
8358 (try_thread_db_load_from_pdir_1): Likewise.
8359 (try_thread_db_load_from_pdir): Likewise.
8360 (try_thread_db_load_from_sdir): Likewise.
8361 (try_thread_db_load_from_dir): Likewise.
8362 (thread_db_load_search): Likewise.
8363 (has_libpthread): Likewise.
8364 (thread_db_load): Likewise.
8366 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8368 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8369 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8370 NULL, and complain/return if that's the case.
8372 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8374 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8375 (advance, posn, abstract_read_memory): New functions.
8376 [struct mem_read_abstraction]: New struct.
8377 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8379 2019-05-14 Tom Tromey <tromey@adacore.com>
8381 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8382 value is not lval_memory.
8384 2019-05-14 Tom Tromey <tromey@adacore.com>
8386 * solib.c (info_sharedlibrary_command): Style the file name.
8388 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8390 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8391 (aarch64_vnv_type): Likewise.
8392 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8393 * common/tdesc.c: Likewise.
8394 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8395 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8396 * features/aarch64-fpu.xml: Add ieee half view.
8397 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8398 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8399 * gdbtypes.h (struct builtin_type): Likewise.
8400 (struct objfile_type): Likewise.
8402 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8404 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8406 * location.h (string_to_event_location): Likewise.
8408 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8412 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8414 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8415 New variable declaration.
8416 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8418 (print_one_breakpoint): Use ui_out::test_flags and new global
8419 variable to compute use_fixed_output.
8420 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8422 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8423 (mi_multi_location_breakpoint_output_fixed): Remove.
8424 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8426 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8427 fix_multi_location_breakpoint_output flag if version >= 3.
8428 * ui-out.h (enum ui_out_flag)
8429 <fix_multi_location_breakpoint_output>: New enumerator.
8431 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8433 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8435 2019-05-10 Tom Tromey <tromey@adacore.com>
8437 * ada-lang.c (catch_ada_completer): New function.
8438 (_initialize_ada_language): Use it.
8440 2019-05-10 Tom Tromey <tromey@adacore.com>
8442 * thread.c (print_thread_info): Make "requested_threads" const.
8443 * gdbthread.h (print_thread_info): Make "requested_threads"
8445 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8446 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8448 2019-05-08 Tom Tromey <tom@tromey.com>
8450 * gdbtypes.c (objfile_type_data): Change type.
8451 (objfile_type, _initialize_gdbtypes): Update.
8453 2019-05-08 Tom Tromey <tom@tromey.com>
8455 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8456 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8457 (_initialize_dwarf2_frame): Update.
8459 2019-05-08 Tom Tromey <tom@tromey.com>
8461 * objc-lang.c (objc_objfile_data): Change type.
8462 (find_methods): Update.
8463 (_initialize_objc_lang): Remove.
8465 2019-05-08 Tom Tromey <tom@tromey.com>
8467 * stabsread.c (rs6000_builtin_type_data): Change type.
8468 (rs6000_builtin_type, _initialize_stabsread): Update.
8470 2019-05-08 Tom Tromey <tom@tromey.com>
8472 * mips-tdep.c (mips_pdr_data): Remove.
8473 (_initialize_mips_tdep): Update.
8475 2019-05-08 Tom Tromey <tom@tromey.com>
8477 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8478 (hppa_init_objfile_priv_data, read_unwind_info)
8479 (find_unwind_entry, _initialize_hppa_tdep): Update.
8481 2019-05-08 Tom Tromey <tom@tromey.com>
8483 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8484 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8486 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8488 2019-05-08 Tom Tromey <tom@tromey.com>
8490 * mdebugread.c (basic_type_data): Change type.
8491 (basic_type, _initialize_mdebugread): Update.
8493 2019-05-08 Tom Tromey <tom@tromey.com>
8495 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8497 2019-05-08 Tom Tromey <tom@tromey.com>
8499 * nto-tdep.c (nto_inferior_data_reg): Change type.
8500 (nto_inferior_data): Update.
8501 (nto_inferior_data_cleanup, nto_new_inferior_data)
8502 (_initialize_nto_tdep): Remove.
8503 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8505 2019-05-08 Tom Tromey <tom@tromey.com>
8507 * ada-lang.c (struct ada_inferior_data): Add initializers.
8508 (ada_inferior_data): Change type.
8509 (ada_inferior_data_cleanup): Remove.
8510 (get_ada_inferior_data, ada_inferior_exit)
8511 (struct ada_pspace_data): Add initializers, destructor.
8512 (ada_pspace_data_handle): Change type.
8513 (get_ada_pspace_data): Update.
8514 (ada_pspace_data_cleanup): Remove.
8516 2019-05-08 Tom Tromey <tom@tromey.com>
8518 * coffread.c (struct coff_symfile_info): Add initializers.
8519 (coff_objfile_data_key): Move lower. Change type.
8520 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8522 (coff_free_info): Remove.
8524 2019-05-08 Tom Tromey <tom@tromey.com>
8526 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8527 (fbsd_pspace_data_handle): Move lower. Change type.
8528 (get_fbsd_pspace_data): Update.
8529 (fbsd_pspace_data_cleanup): Remove.
8530 (_initialize_fbsd_tdep): Update.
8532 2019-05-08 Tom Tromey <tom@tromey.com>
8534 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8535 (get_ada_tasks_pspace_data): Update.
8536 (ada_tasks_pspace_data_cleanup): Remove.
8537 (_initialize_tasks): Update.
8538 (ada_tasks_inferior_data_handle): Change type.
8539 (get_ada_tasks_inferior_data): Update.
8540 (ada_tasks_inferior_data_cleanup): Remove.
8541 (struct ada_tasks_pspace_data): Add initializers.
8543 2019-05-08 Tom Tromey <tom@tromey.com>
8545 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8546 * symfile-debug.c (debug_sym_get_probes): Change type.
8547 * stap-probe.c (handle_stap_probe):
8548 (stap_static_probe_ops::get_probes): Change type.
8549 * probe.h (class static_probe_ops) <get_probes>: Change type.
8550 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8551 (parse_probes_in_pspace): Update.
8552 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8554 (any_static_probe_ops::get_probes): Change type.
8555 * elfread.c (elfread_data): New typedef.
8556 (probe_key): Change type.
8557 (elf_get_probes): Likewise. Update.
8558 (probe_key_free): Remove.
8559 (_initialize_elfread): Update.
8560 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8562 (dtrace_process_dof_probe, dtrace_process_dof)
8563 (dtrace_static_probe_ops::get_probe): Change type.
8565 2019-05-08 Tom Tromey <tom@tromey.com>
8567 * xcoffread.c (struct xcoff_symfile_info): Rename from
8568 coff_symfile_info. Add initializers.
8569 (xcoff_objfile_data_key): Move lower. Change type.
8570 (XCOFF_DATA): Rewrite.
8571 (xcoff_free_info): Remove.
8572 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8573 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8574 (xcoff_initial_scan): Update.
8576 2019-05-08 Tom Tromey <tom@tromey.com>
8578 * solib-svr4.c (struct svr4_info): Add initializers and
8580 <probes_table>: Now an htab_up.
8581 (solib_svr4_pspace_data): Change type.
8582 (free_probes_table): Simplify.
8583 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8584 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8585 (probes_table_remove_objfile_probes, register_solib_event_probe)
8586 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8587 (_initialize_svr4_solib): Update.
8589 2019-05-08 Tom Tromey <tom@tromey.com>
8591 * remote.c (remote_pspace_data): Change type.
8592 (remote_pspace_data_cleanup): Remove.
8593 (get_remote_exec_file, set_pspace_remote_exec_file)
8594 (_initialize_remote): Update.
8596 2019-05-08 Tom Tromey <tom@tromey.com>
8598 * breakpoint.c (breakpoint_objfile_key): Change type.
8599 (get_breakpoint_objfile_data): Update.
8600 (free_breakpoint_objfile_data): Remove.
8601 (_initialize_breakpoint): Update.
8603 2019-05-08 Tom Tromey <tom@tromey.com>
8605 * linux-tdep.c (struct linux_info): Add initializers.
8606 (linux_inferior_data): Move. Change type.
8607 (invalidate_linux_cache_inf): Update.
8608 (linux_inferior_data_cleanup): Remove.
8609 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8611 2019-05-08 Tom Tromey <tom@tromey.com>
8613 * auxv.c (auxv_inferior_data): Move. Change type.
8614 (auxv_inferior_data_cleanup): Remove.
8615 (invalidate_auxv_cache_inf): Rewrite.
8616 (get_auxv_inferior_data, _initialize_auxv): Update.
8618 2019-05-08 Tom Tromey <tom@tromey.com>
8620 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8621 (symfile_debug_objfile_data_key): Change type.
8622 (symfile_debug_installed, debug_qf_has_symbols)
8623 (debug_qf_find_last_source_symtab)
8624 (debug_qf_forget_cached_source_info)
8625 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8626 (debug_qf_print_stats, debug_qf_dump)
8627 (debug_qf_expand_symtabs_for_function)
8628 (debug_qf_expand_all_symtabs)
8629 (debug_qf_expand_symtabs_with_fullname)
8630 (debug_qf_map_matching_symbols)
8631 (debug_qf_expand_symtabs_matching)
8632 (debug_qf_find_pc_sect_compunit_symtab)
8633 (debug_qf_map_symbol_filenames)
8634 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8635 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8636 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8637 (debug_sym_read_linetable, debug_sym_relocate): Update.
8638 (symfile_debug_free_objfile): Remove.
8639 (install_symfile_debug_logging, _initialize_symfile_debug):
8642 2019-05-08 Tom Tromey <tom@tromey.com>
8644 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8645 allocate_on_obstack.
8646 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8647 (get_dwarf2_per_objfile): Update.
8648 (set_dwarf2_per_objfile): Remove.
8649 (dwarf2_has_info, dwarf2_get_section_info): Update.
8650 (dwarf2_free_objfile): Remove.
8651 (_initialize_dwarf2_read): Update.
8653 2019-05-08 Tom Tromey <tom@tromey.com>
8655 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8657 <unsupported_script_warning_printed,
8658 script_not_found_warning_printed>: Now bool.
8659 (auto_load_pspace_data): Change type.
8660 (~auto_load_pspace_info): Rename from
8661 auto_load_pspace_data_cleanup.
8662 (get_auto_load_pspace_data, init_loaded_scripts_info)
8663 (clear_section_scripts, maybe_print_unsupported_script_warning)
8664 (maybe_print_script_not_found_warning, _initialize_auto_load):
8667 2019-05-08 Tom Tromey <tom@tromey.com>
8669 * objfiles.c (objfile_pspace_info): Add destructor and
8671 (objfiles_pspace_data): Change type.
8672 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8673 (get_objfile_pspace_data): Update.
8674 (objfiles_bfd_data): Change type.
8675 (get_objfile_bfd_data): Update.
8676 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8678 2019-05-08 Tom Tromey <tom@tromey.com>
8680 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8682 (get_catch_syscall_inferior_data): Update.
8683 (catch_syscall_inferior_data_cleanup): Remove.
8684 (_initialize_break_catch_syscall): Update.
8686 2019-05-08 Tom Tromey <tom@tromey.com>
8688 * inflow.c (struct terminal_info): Add destructor and
8690 (inflow_inferior_data): Change type.
8691 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8692 (get_inflow_inferior_data, inflow_inferior_exit)
8693 (swap_terminal_info, _initialize_inflow): Update.
8695 2019-05-08 Tom Tromey <tom@tromey.com>
8697 * target-dcache.c (target_dcache_cleanup): Remove.
8698 (target_dcache_aspace_key): Change type.
8699 (target_dcache_init_p, target_dcache_invalidate)
8700 (target_dcache_get, target_dcache_get_or_init)
8701 (_initialize_target_dcache): Update.
8702 * dcache.h (struct dcache_deleter): New.
8704 2019-05-08 Tom Tromey <tom@tromey.com>
8706 * symtab.c (struct symbol_cache): Add destructor and
8708 (symbol_cache_key): Move. Change type.
8709 (make_symbol_cache, free_symbol_cache): Remove.
8710 (get_symbol_cache): Update.
8711 (symbol_cache_cleanup): Remove.
8712 (ALL_PSPACES, symbol_cache_flush)
8713 (maintenance_print_symbol_cache)
8714 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8717 2019-05-08 Tom Tromey <tom@tromey.com>
8719 * symtab.c (struct main_info): Add destructor and initializers.
8720 (main_progspace_key): Move. Change type.
8721 (get_main_info): Update.
8722 (main_info_cleanup): Remove.
8723 (_initialize_symtab): Update.
8725 2019-05-08 Tom Tromey <tom@tromey.com>
8727 * registry.h (DECLARE_REGISTRY): Define the _key class.
8729 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8731 * NEWS: Merge two 'New commands' sections.
8733 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8735 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8736 parameter and use Ada language definition instead.
8737 (ada_val_print_ptr): Remove unused language parameter.
8738 (ada_val_print_num): Remove language parameter and use Ada language
8740 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8742 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8743 parameter and use Ada language definition instead.
8744 (ada_val_print_1): Update all ada_val_print_xxx calls.
8745 Remove language parameter.
8746 (ada_val_print): Update ada_val_print_1 call.
8748 2019-05-08 Tom Tromey <tromey@adacore.com>
8750 * remote.c (remote_hw_watchpoint_limit)
8751 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8754 2019-05-08 Tom Tromey <tromey@adacore.com>
8756 * maint.c (_initialize_maint_cmds): Move initialization code to
8758 (watchdog, show_watchdog): Move to remote.c.
8759 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8761 (_initialize_remote): Move initialization code from maint.c.
8762 * defs.h (watchdog): Don't declare.
8764 2019-05-08 Tom Tromey <tromey@adacore.com>
8766 * tui/tui-interp.c: Include main.h.
8767 * interps.c: Include main.h.
8768 * main.h (interpreter_p): Declare.
8769 * defs.h (interpreter_p): Don't declare.
8771 2019-05-08 Tom Tromey <tromey@adacore.com>
8773 * dwarf2loc.c: Include dwarf2read.h.
8774 * defs.h (read_unsigned_leb128): Don't declare.
8775 * dwarf2read.h (read_unsigned_leb128): Declare.
8777 2019-05-08 Tom Tromey <tromey@adacore.com>
8779 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8782 2019-05-08 Tom Tromey <tromey@adacore.com>
8784 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8785 when no wrap column is set.
8787 2019-05-08 Tom Tromey <tromey@adacore.com>
8789 * c-lang.c (c_get_string): Handle non-C-style arrays.
8791 2019-05-08 Tom Tromey <tromey@adacore.com>
8793 * typeprint.c (print_offset_data::update): Print the bit offset,
8794 not the number of bits remaining.
8796 2019-05-08 Tom Tromey <tromey@adacore.com>
8798 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8799 padding at end of comment.
8801 2019-05-08 Tom Tromey <tromey@adacore.com>
8803 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8806 2019-05-06 Tom Tromey <tom@tromey.com>
8808 * common/scoped_mmap.c: Include common-defs.h.
8809 * common/scoped_mmap.h: Don't include config.h.
8811 2019-05-04 Tom Tromey <tom@tromey.com>
8813 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8814 (struct aarch64_call_info): Add initializers.
8815 <si>: Now a std::vector.
8816 (pass_on_stack, aarch64_push_dummy_call): Update.
8818 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8819 Tom Tromey <tom@tromey.com>
8821 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8822 (ppc_threads): Now a std::vector. Now static.
8823 (hwdebug_find_thread_points_by_tid)
8824 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8827 2019-05-04 Tom Tromey <tom@tromey.com>
8829 * arc-tdep.c (arc_tdesc_init): Return bool.
8831 2019-05-04 Tom Tromey <tom@tromey.com>
8833 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8834 Use gdb_assert_not_reached.
8836 2019-05-04 Tom Tromey <tom@tromey.com>
8838 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8841 2019-05-04 Tom Tromey <tom@tromey.com>
8843 * arc-tdep.c (arc_tdesc_init): Use bool.
8845 2019-05-04 Tom Tromey <tom@tromey.com>
8847 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8849 2019-05-04 Tom Tromey <tom@tromey.com>
8851 * cli/cli-cmds.c (valid_command_p): Return bool.
8853 2019-05-04 Tom Tromey <tom@tromey.com>
8855 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8856 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8858 2019-05-04 Raul Tambre <raul@tambre.ee>
8860 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8861 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8862 operator for comparison.
8864 2019-05-04 Tom Tromey <tom@tromey.com>
8866 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8867 (lookup_partial_symbol, print_partial_symbols)
8868 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8869 (psymbol_compare): Update.
8870 (add_psymbol_to_bcache): Clear the entire psymbol.
8871 (maintenance_check_psymtabs): Update.
8872 * psympriv.h (struct partial_symbol): Don't derive from
8873 general_symbol_info.
8874 <obj_section, unrelocated_address, address,
8875 set_unrelocated_address>: Update.
8876 <ginfo>: New member.
8877 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8878 (debug_names::write_psymbols): Update.
8880 2019-05-04 Tom de Vries <tdevries@suse.de>
8882 * contrib/cc-with-tweaks.sh: Support -n arg.
8884 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8886 * corelow.c (core_target::detach): Ensure frame cache and
8887 register caches are cleared.
8888 inferior.c (exit_inferior_1): Likewise.
8890 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8891 Tom Tromey <tom@tromey.com>
8893 * dictionary.c (collate_pending_symbols_by_language): Remove
8894 "struct" from foreach.
8895 * symtab.c (lookup_global_symbol_from_objfile)
8896 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8898 * ser-tcp.c (net_open): Remove "struct" from foreach.
8899 * objfiles.c (objfile_relocate, objfile_rebase)
8900 (objfile_has_symbols): Remove "struct" from foreach.
8901 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8903 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8905 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8906 "struct" from foreach.
8907 * ada-lang.c (create_excep_cond_exprs)
8908 (ada_exception_catchpoint_cond_string): Remove "struct" from
8911 2019-05-03 Tom Tromey <tromey@adacore.com>
8913 * ada-exp.y (convert_char_literal): Check suffix of each
8916 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8919 * ada-exp.y (yywrap): Don't define.
8920 * ada-lex.l (%option): Add noyywrap
8923 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8925 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8926 _WIN32_WINNT to the XP level, unless already defined to a higher
8929 * unittests/parse-connection-spec-selftests.c:
8931 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8934 * symfile.c (find_separate_debug_file): Remove colon from the
8935 drive spec of DOS/Windows file names of the target, so that the
8936 file name produced from DEBUGDIR and the target's directory will
8937 be valid on DOS/Windows systems.
8939 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8941 * rust-lang.c (val_print_struct): Handle printing structures
8944 2019-05-02 Tom Tromey <tromey@adacore.com>
8946 * valarith.c (_initialize_valarith): Remove.
8948 2019-05-01 Tom Tromey <tromey@adacore.com>
8950 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8953 2019-05-01 Tom Tromey <tromey@adacore.com>
8955 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8956 for big-endian copies.
8958 2019-04-30 Ali Tamur <tamur@google.com>
8959 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8960 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8961 (read_3_bytes): New function.
8963 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8965 * windows-nat.c (main_thread_id): Delete.
8966 (handle_output_debug_string): Replace main_thread_id by
8967 current_event.dwThreadId.
8968 (fake_create_process): Likewise.
8969 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8970 Do not set main_thread_id.
8971 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8972 current_event.dwThreadId.
8973 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8975 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8977 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8978 Use current_event.dwThreadId instead of main_thread_id.
8980 2019-04-30 Tom Tromey <tromey@adacore.com>
8982 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8983 (create_excep_cond_exprs): Iterate over program spaces.
8984 (ada_exception_catchpoint_cond_string): Examine all minimal
8985 symbols for exception types.
8987 2019-04-30 Tom Tromey <tromey@adacore.com>
8990 * dwarf2read.c (process_structure_scope): Handle case where type
8991 has template parameters but no symbol was created.
8993 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8994 Chris January <chris.january@arm.com>
8996 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8998 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9000 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9002 * f-typeprint.c (f_print_type): Update rules for printing
9004 (f_type_print_varspec_suffix): Likewise.
9006 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9007 Chris January <chris.january@arm.com>
9009 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9012 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9014 * f-lang.c (build_fortran_types): Change name of void type to
9016 * f-typeprint.c (f_type_print_base): Print the name of the void
9017 type, rather than a fixed string.
9018 * f-valprint.c (f_decorations): Use lower case void string.
9020 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9021 Chris January <chris.january@arm.com>
9023 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9026 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9027 Chris January <chris.january@arm.com>
9028 David Lecomber <david.lecomber@arm.com>
9030 * f-exp.y (BINOP_INTRINSIC): New token.
9031 (exp): New parser rule handling BINOP_INTRINSIC.
9032 (f77_keywords): Add new builtin procedures.
9033 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9034 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9035 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9036 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9037 (print_unop_subexp_f): New function.
9038 (print_binop_subexp_f): New function.
9039 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9040 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9041 (dump_subexp_body_f): Likewise.
9042 (operator_check_f): Likewise.
9043 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9044 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9046 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9048 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9050 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9051 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9052 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9053 (operator_length_f): New fuction.
9054 (print_subexp_f): New function.
9055 (op_name_f): New function.
9056 (dump_subexp_body_f): New function.
9057 (operator_check_f): New function.
9058 (exp_descriptor_f): Replace standard expression handling functions
9060 * gdb/fortran-operator.def: New file.
9061 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9062 * gdb/std-operator.def: Remove UNOP_KIND.
9064 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9066 * std-operator.def: Remove unbalanced, stray double quote
9069 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9070 Chris January <chris.january@arm.com>
9071 Daniel Everett <daniel.everett@arm.com>
9072 Nick Forrington <nick.forrington@arm.com>
9073 Richard Bunt <richard.bunt@arm.com>
9075 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9076 of depth when printing anonymous structs or unions.
9077 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9078 Don't print either the top-level value, or the children if the
9079 max-depth is exceeded.
9080 (ppscm_print_children): When printing the key of a map, allow one
9081 extra level of depth.
9082 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9083 print either the top-level value, or the children if the max-depth
9085 (print_children): When printing the key of a map, allow one extra
9087 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9088 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9089 (user_print_options): Initialise max_depth field.
9090 (val_print_scalar_or_string_type_p): New function.
9091 (val_print): Check to see if the max depth has been reached.
9092 (val_print_check_max_depth): Define new function.
9093 (show_print_max_depth): New function.
9094 (_initialize_valprint): Add 'print max-depth' option.
9095 * valprint.h (struct value_print_options) <max_depth>: New field.
9096 (val_print_check_max_depth): Declare new function.
9097 * NEWS: Document new feature.
9099 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9101 * ada-lang.c (ada_language_defn): Initialise new field.
9102 * c-lang.c (c_is_string_type_p): New function.
9103 (c_language_defn): Initialise new field.
9104 (cplus_language_defn): Initialise new field.
9105 (asm_language_defn): Initialise new field.
9106 (minimal_language_defn): Initialise new field.
9107 * c-lang.h (c_is_string_type_p): Declare new function.
9108 * d-lang.c (d_language_defn): Initialise new field.
9109 * f-lang.c (f_is_string_type_p): New function.
9110 (f_language_defn): Initialise new field.
9111 * go-lang.c (go_is_string_type_p): New function.
9112 (go_language_defn): Initialise new field.
9113 * language.c (default_is_string_type_p): New function.
9114 (unknown_language_defn): Initialise new field.
9115 (auto_language_defn): Initialise new field.
9116 * language.h (struct language_defn) <la_is_string_type_p>: New
9118 (default_is_string_type_p): Declare new function.
9119 * m2-lang.c (m2_language_defn): Initialise new field.
9120 * objc-lang.c (objc_language_defn): Initialise new field.
9121 * opencl-lang.c (opencl_language_defn): Initialise new field.
9122 * p-lang.c (pascal_is_string_type_p): New function.
9123 (pascal_language_defn): Initialise new field.
9124 * rust-lang.c (rust_is_string_type_p): New function.
9125 (rust_language_defn): Initialise new field.
9127 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9129 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9131 * ada-lang.c (ada_language_defn): Initialise new field.
9132 * c-lang.c (c_language_defn): Likewise.
9133 (cplus_language_defn): Likewise.
9134 (asm_language_defn): Likewise.
9135 (minimal_language_defn): Likewise.
9136 * d-lang.c (d_language_defn): Likewise.
9137 * f-lang.c (f_language_defn): Likewise.
9138 * go-lang.c (go_language_defn): Likewise.
9139 * language.c (unknown_language_defn): Likewise.
9140 (auto_language_defn): Likewise.
9141 * m2-lang.c (m2_language_defn): Likewise.
9142 * objc-lang.c (objc_language_defn): Likewise.
9143 * opencl-lang.c (opencl_language_defn): Likewise.
9144 * p-lang.c (pascal_language_defn): Likewise.
9145 * rust-lang.c (rust_language_defn): Likewise.
9147 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9149 * ada-lang.c (ada_is_character_type): Change return type to bool.
9150 (ada_is_string_type): Likewise.
9151 * ada-lang.h (ada_is_character_type): Update declaration
9152 (ada_is_string_type): Likewise.
9154 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9156 Support style in 'frame|thread apply'
9158 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9159 * record.c (record_start, record_stop): Update callers of
9160 execute_command_to_string with false.
9161 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9162 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9164 (class string_file): New constructor with term_out parameter.
9165 Override methods term_out and can_emit_style_escape. New member
9167 (class stdio_file): Override can_emit_style_escape.
9168 (class tee_file): Override term_out and can_emit_style_escape.
9169 * utils.h (can_emit_style_escape): Remove.
9170 * utils.c (can_emit_style_escape): Likewise.
9171 Update all callers of can_emit_style_escape (SOMESTREAM) to
9172 SOMESTREAM->can_emit_style_escape.
9173 * source-cache.c (source_cache::get_source_lines): Likewise.
9174 * stack.c (frame_apply_command_count): Call execute_command_to_string
9175 passing the term_out characteristic of the current gdb_stdout.
9176 * thread.c (thr_try_catch_cmd): Likewise.
9177 * top.c (execute_command_to_string): pass term_out parameter
9178 to construct the string_file for the command output.
9179 * ui-file.c (term_cli_styling): New function (most code moved
9180 from utils.c can_emit_style_escape).
9181 (string_file::string_file, string_file::can_emit_style_escape,
9182 stdio_file::can_emit_style_escape, tee_file::term_out,
9183 tee_file::can_emit_style_escape): New functions.
9185 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9187 * NEWS: Mention the new set|show may-call-functions.
9188 * infcall.c (may_call_functions_p): New variable.
9189 (show_may_call_functions_p): New function.
9190 (call_function_by_hand_dummy): Throws an error if not
9192 (_initialize_infcall): Call add_setshow_boolean_cmd for
9195 2019-04-25 Keith Seitz <keiths@redhat.com>
9198 * cp-support.c (inspect_type): Don't attempt substitutions
9199 of symbol with the same name.
9201 2019-04-25 Tom Tromey <tromey@adacore.com>
9204 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9207 2019-04-25 Tom Tromey <tromey@adacore.com>
9209 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9211 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9212 (gdb_xml_parser::parse): Use std::move.
9213 * python/python-internal.h (gdbpy_convert_exception): Take a const
9215 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9217 * python/py-utils.c (gdbpy_convert_exception): Take a const
9219 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9221 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9223 * mi/mi-main.c (mi_print_exception): Take a const reference.
9224 * main.c (handle_command_errors): Take a const reference.
9225 * linespec.c (parse_linespec): Use std::move.
9226 * infcall.c (run_inferior_call): Use std::move.
9227 (call_function_by_hand_dummy): Use std::move.
9228 * exec.c (try_open_exec_file): Use std::move.
9229 * exceptions.h (exception_print, exception_fprintf)
9230 (exception_print_same): Update.
9231 * exceptions.c (print_exception, exception_print)
9232 (exception_fprintf, exception_print_same): Change parameters to
9234 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9235 * common/new-op.c: Use std::move.
9236 * common/common-exceptions.h (struct gdb_exception): Add move
9238 (struct gdb_exception_error, struct gdb_exception_quit, struct
9239 gdb_quit_bad_alloc): Change constructor to move constructor.
9240 (throw_exception): Change parameter to rvalue reference.
9241 * common/common-exceptions.c (throw_exception): Take rvalue
9243 * cli/cli-interp.c (safe_execute_command): Use std::move.
9244 * breakpoint.c (insert_bp_location, location_to_sals): Use
9247 2019-04-25 Tom Tromey <tromey@adacore.com>
9249 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9250 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9251 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9252 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9253 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9254 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9255 guile/scm-value.c: Use unpack.
9256 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9257 gdbscm_gdb_exception.
9258 (gdbscm_throw_gdb_exception): Likewise.
9259 (struct gdbscm_gdb_exception): New.
9260 (unpack): New function.
9261 (gdbscm_wrap): Use unpack.
9263 2019-04-25 Tom Tromey <tromey@adacore.com>
9265 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9266 (gdb_rl_callback_handler): Use std::move.
9267 * common/common-exceptions.h (struct gdb_exception): Add move
9268 assignment operator.
9269 (throw_exception_sjlj): Change "exception" to const reference.
9270 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9271 (throw_exception_sjlj): Change "exception" to const reference.
9273 2019-04-25 Tom Tromey <tromey@adacore.com>
9275 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9276 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9277 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9279 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9281 * mi/mi-interp.c (mi_interp::exec): Update.
9282 * linespec.c (parse_linespec): Update.
9283 * infcall.c (run_inferior_call): Update.
9284 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9285 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9286 (gdbscm_lookup_global_symbol): Update.
9287 * guile/scm-param.c (gdbscm_parameter_value): Update.
9288 * guile/scm-frame.c (gdbscm_frame_read_register)
9289 (gdbscm_frame_read_var): Update.
9290 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9291 * exec.c (try_open_exec_file): Update.
9292 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9293 (gdb_rl_callback_handler): Update.
9294 * common/common-exceptions.h (exception_none): Don't declare.
9295 * common/common-exceptions.c (exception_none): Don't define.
9296 (struct catcher) <exception>: Update.
9297 * cli/cli-interp.c (safe_execute_command): Update.
9298 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9300 2019-04-25 Ali Tamur <tamur@google.com>
9302 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9303 (read_attribute_value): Likewise.
9304 (dwarf2_read_addr_index): Update comment.
9305 (read_str_index): Add DW_FORM_strx.
9306 (dwarf2_string_attr): Likewise.
9307 (dwarf2_const_value_attr): Likewise.
9308 (dump_die_shallow): Likewise.
9309 (dwarf2_fetch_constant_bytes): Likewise.
9310 (skip_form_bytes): Likewise.
9311 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9313 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9317 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9318 OFFSET. Verify if current mapping contains an ELF header.
9319 (linux_find_memory_regions_full): Adjust call to
9322 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9323 Kang Li <kanglictf@gmail.com>
9327 * dwarf2-frame.c (read_initial_length): Be consistent about using
9328 unsigned representation of length.
9329 (decode_frame_entry_1): Likewise. Check for wraparound of
9330 end pointer as well as buffer overflow.
9332 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9334 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9337 2019-04-24 Tom Tromey <tromey@adacore.com>
9339 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9341 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9343 * s12z-tdep.c (s12z_unwind_pc): Delete.
9344 (s12z_unwind_sp): Delete.
9345 (s12z_gdbarch_init): Don't register deleted functions with
9348 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9350 * rl78-tdep.c (rl78_unwind_sp): Delete.
9351 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9353 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9355 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9356 (xstormy16_unwind_pc): Delete.
9357 (xstormy16_dummy_id): Delete.
9358 (xstormy16_gdbarch_init): Don't register deleted functions with
9361 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9363 * vax-tdep.c (vax_unwind_pc): Delete.
9364 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9366 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9368 * v850-tdep.c (v850_unwind_sp): Delete.
9369 (v850_unwind_pc): Delete.
9370 (v850_dummy_id): Delete.
9371 (v850_gdbarch_init): Don't register deleted functions with
9374 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9376 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9377 (tilegx_unwind_pc): Delete.
9378 (tilegx_unwind_dummy_id): Delete.
9379 (tilegx_gdbarch_init): Don't register deleted functions with
9382 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9384 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9385 (tic6x_dummy_id): Delete.
9386 (tic6x_gdbarch_init): Don't register deleted functions with
9389 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9391 * sparc-tdep.c (sparc_unwind_pc): Delete.
9392 (sparc32_gdbarch_init): Don't register deleted function with
9395 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9397 * sh-tdep.c (sh_unwind_sp): Delete.
9398 (sh_unwind_pc): Delete.
9399 (sh_dummy_id): Delete.
9400 (sh_gdbarch_init): Don't register deleted functions with
9403 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9405 * score-tdep.c (score_unwind_sp): Delete.
9406 (score_unwind_pc): Delete.
9407 (score_dummy_id): Delete.
9408 (score_gdbarch_init): Don't register deleted functions with
9411 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9413 * rx-tdep.c (rx_unwind_pc): Delete.
9414 (rx_unwind_sp): Delete.
9415 (rx_dummy_id): Delete.
9416 (rx_gdbarch_init): Don't register deleted functions with
9417 gdbarch. Update comment.
9419 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9421 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9422 (rs6000_dummy_id): Delete.
9423 (rs6000_gdbarch_init): Don't register deleted functions with
9426 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9428 * or1k-tdep.c (or1k_dummy_id): Delete.
9429 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9431 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9433 * nios2-tdep.c (nios2_dummy_id): Delete.
9434 (nios2_unwind_sp): Delete.
9435 (nios2_gdbarch_init): Don't register deleted functions with
9438 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9440 * nds32-tdep.c (nds32_dummy_id): Delete.
9441 (nds32_unwind_pc): Delete.
9442 (nds32_unwind_sp): Delete.
9443 (nds32_gdbarch_init): Don't register deleted functions with
9446 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9448 * msp430-tdep.c (msp430_unwind_pc): Delete.
9449 (msp430_unwind_sp): Delete.
9450 (msp430_dummy_id): Delete.
9451 (msp430_gdbarch_init): Don't register deleted functions with
9454 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9456 * moxie-tdep.c (moxie_unwind_sp): Delete.
9457 (moxie_unwind_pc): Delete.
9458 (moxie_dummy_id): Delete.
9459 (moxie_gdbarch_init): Don't register deleted functions with
9462 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9464 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9465 (mn10300_unwind_pc): Delete.
9466 (mn10300_unwind_sp): Delete.
9467 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9469 (mn10300_frame_unwind_init): Don't register deleted functions with
9472 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9474 * mep-tdep.c (mep_unwind_pc): Delete.
9475 (mep_unwind_sp): Delete.
9476 (mep_dummy_id): Delete.
9477 (mep_gdbarch_init): Don't register deleted functions with
9480 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9482 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9483 (m68hc11_unwind_sp): Delete.
9484 (m68hc11_gdbarch_init): Don't register deleted functions with
9487 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9489 * m32r-tdep.c (m32r_unwind_sp): Delete.
9490 (m32r_unwind_pc): Delete.
9491 (m32r_dummy_id): Delete.
9492 (m32r_gdbarch_init): Don't register deleted functions with
9495 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9497 * m32c-tdep.c (m32c_unwind_pc): Delete.
9498 (m32c_unwind_sp): Delete.
9499 (m32c_dummy_id): Delete.
9500 (m32c_gdbarch_init): Don't register deleted functions with
9503 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9505 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9506 (lm32_unwind_pc): Delete.
9507 (lm32_dummy_id): Delete.
9508 (lm32_gdbarch_init): Don't register deleted functions with
9511 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9513 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9514 (iq2000_unwind_pc): Delete.
9515 (iq2000_dummy_id): Delete.
9516 (iq2000_gdbarch_init): Don't register deleted functions with
9519 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9521 * nds32-tdep.c (nds32_type_align): Delete.
9522 (nds32_push_dummy_call): Use type_align instead.
9524 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9526 * arm-tdep.c (arm_type_align): Only handle vector override case.
9527 (arm_push_dummy_call): Use type_align.
9528 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9530 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9532 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9534 (pass_on_stack): Use type_align.
9535 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9538 2019-04-23 Tom Tromey <tromey@adacore.com>
9540 * dwarf2read.c (line_header::file_name_at): Remove unused
9543 2019-04-23 Tom de Vries <tdevries@suse.de>
9546 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9550 2019-03-27 Ali Tamur <tamur@google.com>
9552 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9553 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9554 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9555 (dwarf_expr_context::get_addr_index): Likewise
9556 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9557 (symbol_needs_eval_context::get_addr_index): Likewise
9558 (disassemble_dwarf_expression): Add DW_OP_addrx
9559 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9560 (read_cutu_die_from_dwo): Update comment
9561 (skip_one_die): Add DW_FORM_addrx
9562 (read_attribute_value): Likewise
9563 (var_decode_location): Add DW_OP_addrx
9564 (dwarf2_const_value_attr): Add DW_FORM_addrx
9565 (dump_die_shallow): Likewise
9566 (dwarf2_fetch_constant_bytes): Likewise
9567 (decode_locdesc): Add DW_OP_addrx
9568 (skip_form_bytes): Add DW_FORM_addrx
9570 2019-04-22 Ali Tamur <tamur@google.com>
9572 * MAINTAINERS (Write After Approval): Add self.
9574 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9576 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9577 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9578 (open_symbol_file_object): Likewise.
9579 (svr4_default_sos): Add info parameter.
9580 (svr4_read_so_list): Likewise.
9581 (svr4_current_sos_direct): Adjust functions calls to pass down
9583 (svr4_current_sos_1): Add info parameter.
9584 (svr4_current_sos): Call get_svr4_info, pass info down to
9586 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9588 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9590 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9592 (probes_table_remove_objfile_probes): Likewise.
9593 (register_solib_event_probe): Add info parameter.
9594 (solist_update_incremental): Pass info parameter down to
9596 (disable_probes_interface): Add info parameter.
9597 (svr4_handle_solib_event): Pass current_program_space to
9598 get_svr4_info. Adjust disable_probes_interface cleanup.
9599 (svr4_create_probe_breakpoints): Add info parameter, pass it
9600 down to register_solib_event_probe.
9601 (svr4_create_solib_event_breakpoints): Add info parameter,
9602 pass it down to svr4_create_probe_breakpoints.
9603 (enable_break): Pass info down to
9604 svr4_create_solib_event_breakpoints.
9605 (svr4_solib_create_inferior_hook): Pass current_program_space to
9607 (svr4_clear_solib): Likewise.
9609 2019-04-22 Pedro Alves <palves@redhat.com>
9611 * solib-svr4.c (svr4_free_objfile_observer): New.
9612 (probe_and_action::objfile): New field.
9613 (probes_table_htab_remove_objfile_probes)
9614 (probes_table_remove_objfile_probes): New functions.
9615 (register_solib_event_probe): Add 'objfile' parameter. Store it
9616 in the new probe_and_action. Don't store the probe in 'lookup'.
9617 (svr4_create_probe_breakpoints): Pass objfile to
9618 register_solib_event_probe.
9619 (_initialize_svr4_solib): Register a free_objfile observer.
9621 2019-04-19 Tom Tromey <tom@tromey.com>
9623 * common/queue.h: Remove.
9625 2019-04-19 Tom Tromey <tom@tromey.com>
9627 * event-loop.c: Don't include "common/queue.h".
9629 2019-04-19 Tom Tromey <tom@tromey.com>
9631 * remote.c (remote_target): Use delete.
9632 * remote-notif.h: Include <list>, not "common/queue.h".
9633 (notif_client_p): Remove typedef.
9634 (remote_notif_state): Add constructor, destructor, initializer.
9635 <notif_queue>: Now a std::list.
9636 (remote_notif_state_xfree): Don't declare.
9637 * remote-notif.c (remote_notif_process, handle_notification)
9638 (remote_notif_state_allocate): Update.
9639 (~remote_notif_state): Rename from remote_notif_state_xfree.
9641 2019-04-19 Tom Tromey <tom@tromey.com>
9643 * symfile.c (reread_symbols): Update.
9644 * objfiles.c (objfile_register_static_link)
9645 (objfile_lookup_static_link): Update
9646 (~objfile) Don't delete static_links.
9647 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9649 2019-04-19 Tom Tromey <tom@tromey.com>
9651 * type-stack.h (struct type_stack) <insert>: Constify string.
9652 * type-stack.c (type_stack::insert): Constify string.
9653 * gdbtypes.h (lookup_template_type): Update.
9654 (address_space_name_to_int): Update.
9655 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9657 (lookup_template_type): Make name const.
9658 * c-exp.y: Update rules.
9659 (lex_one_token, classify_name, classify_inner_name)
9660 (c_print_token): Update.
9661 * p-exp.y: Update rules.
9663 * f-exp.y: Update rules.
9665 * d-exp.y: Update rules.
9666 (lex_one_token, classify_name, classify_inner_name): Update.
9667 * parse.c (write_dollar_variable, copy_name): Return std::string.
9668 * parser-defs.h (copy_name): Change return type.
9669 * m2-exp.y: Update rules.
9671 * go-exp.y (lex_one_token): Update.
9673 (classify_unsafe_function, classify_packaged_name)
9674 (classify_name, yylex): Update.
9676 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9678 * configure.ac: add --enable-source-highlight switch.
9679 * configure: Regenerate.
9680 * top.c (print_gdb_version): plumb --enable-source-highlight
9681 status to "show configuration".
9683 2019-04-19 Tom Tromey <tromey@adacore.com>
9685 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9687 (empty_record, ada_template_to_fixed_record_type_1)
9688 (template_to_static_fixed_type)
9689 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9690 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9691 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9694 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9697 * source.c (print_source_lines_base): Advance "iter" when a
9698 control character is seen.
9700 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9702 * inferior.h (struct infcall_suspend_state_deleter):
9703 Catch exception in destructor to avoid crash.
9705 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9707 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9708 close to the add_com "shell".
9710 2019-04-18 Tom Tromey <tromey@adacore.com>
9712 * process-stratum-target.h (class process_stratum_target)
9713 <stratum>: Add "final".
9715 2019-04-17 Tom Tromey <tromey@adacore.com>
9717 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9718 against nullptr before use.
9720 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9722 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9724 2019-04-17 Jim Wilson <jimw@sifive.com>
9725 Andrew Burgess <andrew.burgess@embecosm.com>
9727 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9728 code read might fail, assume 4-byte breakpoint in that case.
9730 2019-04-15 Leszek Swirski <leszeks@google.com>
9732 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9733 rather than a hand-rolled POD check when checking for forced MEMORY
9736 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9738 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9739 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9741 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9742 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9743 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9746 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9748 * aarch64-linux-nat.c
9749 (aarch64_linux_nat_target::thread_architecture): Add override.
9750 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9753 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9755 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9757 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9759 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9760 target types of size 96-bits, add some additional comments, and
9761 check that the builtin type we found was the correct size.
9763 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9765 * utils.c (prompt_for_continue): Don't restore the styling at the
9766 end, as applied_style has the wrong value. This fixes styling in
9767 long lists of file names that are interrupted by the "Continue?"
9770 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9772 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9773 * c-lang.c (c_language_defn): Likewise.
9774 (cplus_language_defn): Likewise.
9775 (asm_language_defn): Likewise.
9776 (minimal_language_defn): Likewise.
9777 * d-lang.c (d_language_defn): Likewise.
9778 * f-lang.c (f_language_defn): Likewise.
9779 * go-lang.c (go_language_defn): Likewise.
9780 * language.c (unknown_language_defn): Likewise.
9781 (auto_language_defn): Likewise.
9782 * language.h (struct language_defn): Remove la_magic field.
9783 (LANG_MAGIC): Delete.
9784 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9785 * objc-lang.c (objc_language_defn): Likewise.
9786 * opencl-lang.c (opencl_language_defn): Likewise.
9787 * p-lang.c (pascal_language_defn): Likewise.
9788 * rust-lang.c (rust_language_defn): Likewise.
9790 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9792 * riscv-tdep.c (riscv_type_align): New function.
9793 (riscv_type_alignment): Delete.
9794 (riscv_arg_location): Use 'type_align'.
9795 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9797 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9799 * gdbtypes.c (type_align): A struct with no non-static fields also
9802 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9804 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9806 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9808 (riscv_struct_info::analyse): New implementation using new
9809 analyse_inner member function.
9810 (riscv_struct_info::field_offset): New member function.
9811 (riscv_struct_info::m_offsets): New member variable.
9812 (riscv_struct_info::analyse_inner): New private member function,
9813 takes the old implementation of riscv_struct_info::analyse but
9814 extended to track field offsets.
9815 (riscv_call_arg_struct): Update the struct folding special cases
9816 to handle cases where empty C++ structs, which are non-zero
9818 (riscv_arg_location): Initialise the length of each location, a
9819 non-zero length now indicates the location is in use.
9820 (riscv_push_dummy_call): Allow for the first location having a
9821 non-zero offset when setting up arguments.
9822 (riscv_return_value): Likewise, but for return values.
9824 2019-04-11 Tom Tromey <tromey@adacore.com>
9826 * utils.c (internal_vproblem): Make "msg" const.
9828 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9830 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9831 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9832 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9833 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9835 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9837 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9839 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9840 of amd64_collect_native_gregset.
9841 (amd64_linux_nat_target::store_registers): Likewise.
9843 2019-04-10 Tom Tromey <tom@tromey.com>
9845 * symtab.c (lookup_global_symbol_from_objfile)
9846 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9847 * objfiles.h (class separate_debug_iterator): New.
9848 (class separate_debug_range): New.
9849 (struct objfile) <separate_debug_objfiles>: New method.
9850 (objfile_separate_debug_iterate): Don't declare.
9851 * objfiles.c (separate_debug_iterator::operator++): Rename from
9852 objfile_separate_debug_iterate.
9853 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9855 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9858 2019-04-10 Tom Tromey <tom@tromey.com>
9860 * symfile.c (reread_symbols): Remove old comment.
9861 * objfiles.c (free_all_objfiles): Fix a typo.
9863 2019-04-10 Tom Tromey <tom@tromey.com>
9865 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9866 * minsyms.c (lookup_minimal_symbol): Use foreach.
9867 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9868 (lookup_minimal_symbol_solib_trampoline): Likewise.
9869 * symfile.c (reread_symbols): Use foreach.
9871 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9872 Tom Tromey <tromey@adacore.com>
9875 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9876 (rust_lex_int_test): Change "value" to be LONGEST.
9877 (rust_lex_tests): Add test for long integer literal.
9879 2019-04-09 Tom Tromey <tromey@adacore.com>
9881 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9883 (extended_remote_target::attach): Update.
9884 (remote_target::remote_notice_new_inferior): Update.
9885 (remote_target::add_current_inferior_and_thread): Update.
9886 * inferior.c (exit_inferior_1): Use "false".
9887 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9889 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9891 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9892 the "start" command.
9894 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9896 * python/py-inferior.c (infpy_thread_from_thread_handle):
9897 Adjust comments to reflect renaming of thread_from_thread_handle
9898 to thread_from_handle. Adjust keywords. Fix type error message.
9899 (inferior_object_methods): Add thread_from_handle. Retain
9900 thread_from_thread_handle, but mark it as deprecated.
9902 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9904 * gdbthread.h (find_thread_by_handle): Revise declaration.
9905 * thread.c (find_thread_by_handle): Likewise. Adjust
9907 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9908 support for buffer objects as handles.
9910 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9912 * python/py-infthread.c (thpy_thread_handle): New function.
9913 (thread_object_methods): Register thpy_thread_handle.
9915 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9917 * gdbthread.h (thread_to_thread_handle): Declare.
9918 * thread.c (gdbtypes.h): Include.
9919 (thread_to_thread_handle): New function.
9921 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9922 (target_thread_info_to_thread_handle): Declare.
9923 * target.c (target_thread_info_to_thread_handle): New function.
9924 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9925 * target-delegates.c: Regenerate.
9927 * linux-thread-db.c (class thread_db_target): Add method
9928 thread_info_to_thread_handle.
9929 (thread_db_target::thread_info_to_thread_handle): Define.
9930 * remote.c (class remote_target): Add new method
9931 thread_info_to_thread_handle.
9932 (remote_target::thread_info_to_thread_handle): Define.
9934 2019-04-08 Pedro Alves <palves@redhat.com>
9936 * common/common-exceptions.c (throw_exception): Don't create
9937 named object to throw; throw directly.
9938 (throw_it): Likewise. Don't initialize gdb_exception::message
9939 here, with new; pass FMT and AP to the ctor instead.
9940 * common/common-exceptions.h: Include <string>.
9941 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9942 const char *, va_list)): New ctor. Use std::make_shared.
9943 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9945 (gdb_exception_error::gdb_exception_error(enum errors, const char
9947 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9949 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9951 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9952 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9955 2019-04-08 Tom Tromey <tom@tromey.com>
9957 * valops.c (value_rtti_indirect_type): Replace throw_exception
9959 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9961 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9963 * target.c (target_translate_tls_address): Replace throw_exception
9965 * stack.c (frame_apply_command_count): Replace throw_exception
9967 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9969 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9971 * rs6000-tdep.c (rs6000_frame_cache)
9972 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9973 * remote.c: Replace throw_exception with throw.
9974 * record-full.c (record_full_message, record_full_wait_1)
9975 (record_full_restore): Replace throw_exception with throw.
9977 (get_thread_current_frame_id, record_btrace_start_replaying)
9978 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9979 (cmd_record_btrace_start): Replace throw_exception with throw.
9980 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9982 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9983 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9985 (find_linespec_symbols): Replace throw_exception with throw.
9986 * infrun.c (displaced_step_prepare, resume): Replace
9987 throw_exception with throw.
9988 * infcmd.c (post_create_inferior): Replace throw_exception with
9990 * inf-loop.c (inferior_event_handler): Replace throw_exception
9992 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9993 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9994 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9995 (get_prev_frame_always, get_frame_pc_if_available)
9996 (get_frame_address_in_block_if_available, get_frame_language):
9997 Replace throw_exception with throw.
9998 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9999 throw_exception with throw.
10000 * eval.c (fetch_subexp_value, evaluate_var_value)
10001 (evaluate_funcall, evaluate_subexp_standard): Replace
10002 throw_exception with throw.
10003 * dwarf2loc.c (call_site_find_chain)
10004 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10005 Replace throw_exception with throw.
10006 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10008 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10010 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10011 * completer.c (complete_line_internal): Replace throw_exception
10013 * compile/compile-object-run.c (compile_object_run): Replace
10014 throw_exception with throw.
10015 * cli/cli-script.c (process_next_line): Replace throw_exception
10017 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10018 (btrace_enable, btrace_maint_update_pt_packets): Replace
10019 throw_exception with throw.
10020 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10021 throw_exception with throw.
10022 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10023 throw_exception with throw.
10024 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10025 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10026 * aarch64-tdep.c (aarch64_make_prologue_cache)
10027 (aarch64_make_stub_cache): Replace throw_exception with throw.
10029 2019-04-08 Tom Tromey <tom@tromey.com>
10031 * common/common-exceptions.c (throw_exception): Rename from
10032 throw_exception_cxx. Remove old copy. Make argument const.
10033 (throw_it): Create and throw exception objects directly.
10034 * common/common-exceptions.h (throw_exception): Make argument
10036 (struct gdb_exception_error): Add constructor.
10037 (struct gdb_exception_quit): Add constructor.
10039 2019-04-08 Tom Tromey <tom@tromey.com>
10041 * common/common-exceptions.h (exception_rethrow): Don't declare.
10042 (TRY_SJLJ): Update comment.
10043 (TRY, CATCH, END_CATCH): Remove.
10044 * common/common-exceptions.c (exception_rethrow): Remove.
10046 2019-04-08 Tom Tromey <tom@tromey.com>
10048 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10050 (gdb_exception_error): Rename from
10051 gdb_exception_RETURN_MASK_ERROR.
10052 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10053 (gdb_quit_bad_alloc): Update.
10054 * aarch64-tdep.c: Update.
10055 * ada-lang.c: Update.
10056 * ada-typeprint.c: Update.
10057 * ada-valprint.c: Update.
10058 * amd64-tdep.c: Update.
10059 * arch-utils.c: Update.
10060 * break-catch-throw.c: Update.
10061 * breakpoint.c: Update.
10062 * btrace.c: Update.
10063 * c-varobj.c: Update.
10064 * cli/cli-cmds.c: Update.
10065 * cli/cli-interp.c: Update.
10066 * cli/cli-script.c: Update.
10067 * common/common-exceptions.c: Update.
10068 * common/new-op.c: Update.
10069 * common/selftest.c: Update.
10070 * compile/compile-c-symbols.c: Update.
10071 * compile/compile-cplus-symbols.c: Update.
10072 * compile/compile-object-load.c: Update.
10073 * compile/compile-object-run.c: Update.
10074 * completer.c: Update.
10075 * corelow.c: Update.
10076 * cp-abi.c: Update.
10077 * cp-support.c: Update.
10078 * cp-valprint.c: Update.
10079 * darwin-nat.c: Update.
10080 * disasm-selftests.c: Update.
10081 * dtrace-probe.c: Update.
10082 * dwarf-index-cache.c: Update.
10083 * dwarf-index-write.c: Update.
10084 * dwarf2-frame-tailcall.c: Update.
10085 * dwarf2-frame.c: Update.
10086 * dwarf2loc.c: Update.
10087 * dwarf2read.c: Update.
10089 * event-loop.c: Update.
10090 * event-top.c: Update.
10092 * f-valprint.c: Update.
10093 * fbsd-tdep.c: Update.
10094 * frame-unwind.c: Update.
10096 * gdbtypes.c: Update.
10097 * gnu-v3-abi.c: Update.
10098 * guile/guile-internal.h: Update.
10099 * guile/scm-block.c: Update.
10100 * guile/scm-breakpoint.c: Update.
10101 * guile/scm-cmd.c: Update.
10102 * guile/scm-disasm.c: Update.
10103 * guile/scm-frame.c: Update.
10104 * guile/scm-lazy-string.c: Update.
10105 * guile/scm-math.c: Update.
10106 * guile/scm-param.c: Update.
10107 * guile/scm-ports.c: Update.
10108 * guile/scm-pretty-print.c: Update.
10109 * guile/scm-symbol.c: Update.
10110 * guile/scm-symtab.c: Update.
10111 * guile/scm-type.c: Update.
10112 * guile/scm-value.c: Update.
10113 * i386-linux-tdep.c: Update.
10114 * i386-tdep.c: Update.
10115 * inf-loop.c: Update.
10116 * infcall.c: Update.
10117 * infcmd.c: Update.
10118 * infrun.c: Update.
10120 * language.c: Update.
10121 * linespec.c: Update.
10122 * linux-fork.c: Update.
10123 * linux-nat.c: Update.
10124 * linux-tdep.c: Update.
10125 * linux-thread-db.c: Update.
10127 * mi/mi-cmd-break.c: Update.
10128 * mi/mi-cmd-stack.c: Update.
10129 * mi/mi-interp.c: Update.
10130 * mi/mi-main.c: Update.
10131 * objc-lang.c: Update.
10132 * p-valprint.c: Update.
10134 * ppc-linux-tdep.c: Update.
10135 * printcmd.c: Update.
10136 * python/py-arch.c: Update.
10137 * python/py-breakpoint.c: Update.
10138 * python/py-cmd.c: Update.
10139 * python/py-finishbreakpoint.c: Update.
10140 * python/py-frame.c: Update.
10141 * python/py-framefilter.c: Update.
10142 * python/py-gdb-readline.c: Update.
10143 * python/py-inferior.c: Update.
10144 * python/py-infthread.c: Update.
10145 * python/py-lazy-string.c: Update.
10146 * python/py-linetable.c: Update.
10147 * python/py-objfile.c: Update.
10148 * python/py-param.c: Update.
10149 * python/py-prettyprint.c: Update.
10150 * python/py-progspace.c: Update.
10151 * python/py-record-btrace.c: Update.
10152 * python/py-record.c: Update.
10153 * python/py-symbol.c: Update.
10154 * python/py-type.c: Update.
10155 * python/py-unwind.c: Update.
10156 * python/py-utils.c: Update.
10157 * python/py-value.c: Update.
10158 * python/python.c: Update.
10159 * record-btrace.c: Update.
10160 * record-full.c: Update.
10161 * remote-fileio.c: Update.
10162 * remote.c: Update.
10163 * riscv-tdep.c: Update.
10164 * rs6000-aix-tdep.c: Update.
10165 * rs6000-tdep.c: Update.
10166 * rust-exp.y: Update.
10167 * rust-lang.c: Update.
10168 * s390-tdep.c: Update.
10169 * selftest-arch.c: Update.
10170 * solib-dsbt.c: Update.
10171 * solib-frv.c: Update.
10172 * solib-spu.c: Update.
10173 * solib-svr4.c: Update.
10175 * sparc64-linux-tdep.c: Update.
10177 * symfile-mem.c: Update.
10178 * symmisc.c: Update.
10179 * target.c: Update.
10180 * thread.c: Update.
10182 * tracefile-tfile.c: Update.
10183 * tui/tui.c: Update.
10184 * typeprint.c: Update.
10185 * unittests/cli-utils-selftests.c: Update.
10186 * unittests/parse-connection-spec-selftests.c: Update.
10187 * valops.c: Update.
10188 * valprint.c: Update.
10190 * varobj.c: Update.
10191 * windows-nat.c: Update.
10192 * x86-linux-nat.c: Update.
10193 * xml-support.c: Update.
10195 2019-04-08 Tom Tromey <tom@tromey.com>
10197 * xml-support.c: Use C++ exception handling.
10198 * x86-linux-nat.c: Use C++ exception handling.
10199 * windows-nat.c: Use C++ exception handling.
10200 * varobj.c: Use C++ exception handling.
10201 * value.c: Use C++ exception handling.
10202 * valprint.c: Use C++ exception handling.
10203 * valops.c: Use C++ exception handling.
10204 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10206 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10207 * typeprint.c: Use C++ exception handling.
10208 * tui/tui.c: Use C++ exception handling.
10209 * tracefile-tfile.c: Use C++ exception handling.
10210 * top.c: Use C++ exception handling.
10211 * thread.c: Use C++ exception handling.
10212 * target.c: Use C++ exception handling.
10213 * symmisc.c: Use C++ exception handling.
10214 * symfile-mem.c: Use C++ exception handling.
10215 * stack.c: Use C++ exception handling.
10216 * sparc64-linux-tdep.c: Use C++ exception handling.
10217 * solib.c: Use C++ exception handling.
10218 * solib-svr4.c: Use C++ exception handling.
10219 * solib-spu.c: Use C++ exception handling.
10220 * solib-frv.c: Use C++ exception handling.
10221 * solib-dsbt.c: Use C++ exception handling.
10222 * selftest-arch.c: Use C++ exception handling.
10223 * s390-tdep.c: Use C++ exception handling.
10224 * rust-lang.c: Use C++ exception handling.
10225 * rust-exp.y: Use C++ exception handling.
10226 * rs6000-tdep.c: Use C++ exception handling.
10227 * rs6000-aix-tdep.c: Use C++ exception handling.
10228 * riscv-tdep.c: Use C++ exception handling.
10229 * remote.c: Use C++ exception handling.
10230 * remote-fileio.c: Use C++ exception handling.
10231 * record-full.c: Use C++ exception handling.
10232 * record-btrace.c: Use C++ exception handling.
10233 * python/python.c: Use C++ exception handling.
10234 * python/py-value.c: Use C++ exception handling.
10235 * python/py-utils.c: Use C++ exception handling.
10236 * python/py-unwind.c: Use C++ exception handling.
10237 * python/py-type.c: Use C++ exception handling.
10238 * python/py-symbol.c: Use C++ exception handling.
10239 * python/py-record.c: Use C++ exception handling.
10240 * python/py-record-btrace.c: Use C++ exception handling.
10241 * python/py-progspace.c: Use C++ exception handling.
10242 * python/py-prettyprint.c: Use C++ exception handling.
10243 * python/py-param.c: Use C++ exception handling.
10244 * python/py-objfile.c: Use C++ exception handling.
10245 * python/py-linetable.c: Use C++ exception handling.
10246 * python/py-lazy-string.c: Use C++ exception handling.
10247 * python/py-infthread.c: Use C++ exception handling.
10248 * python/py-inferior.c: Use C++ exception handling.
10249 * python/py-gdb-readline.c: Use C++ exception handling.
10250 * python/py-framefilter.c: Use C++ exception handling.
10251 * python/py-frame.c: Use C++ exception handling.
10252 * python/py-finishbreakpoint.c: Use C++ exception handling.
10253 * python/py-cmd.c: Use C++ exception handling.
10254 * python/py-breakpoint.c: Use C++ exception handling.
10255 * python/py-arch.c: Use C++ exception handling.
10256 * printcmd.c: Use C++ exception handling.
10257 * ppc-linux-tdep.c: Use C++ exception handling.
10258 * parse.c: Use C++ exception handling.
10259 * p-valprint.c: Use C++ exception handling.
10260 * objc-lang.c: Use C++ exception handling.
10261 * mi/mi-main.c: Use C++ exception handling.
10262 * mi/mi-interp.c: Use C++ exception handling.
10263 * mi/mi-cmd-stack.c: Use C++ exception handling.
10264 * mi/mi-cmd-break.c: Use C++ exception handling.
10265 * main.c: Use C++ exception handling.
10266 * linux-thread-db.c: Use C++ exception handling.
10267 * linux-tdep.c: Use C++ exception handling.
10268 * linux-nat.c: Use C++ exception handling.
10269 * linux-fork.c: Use C++ exception handling.
10270 * linespec.c: Use C++ exception handling.
10271 * language.c: Use C++ exception handling.
10272 * jit.c: Use C++ exception handling.
10273 * infrun.c: Use C++ exception handling.
10274 * infcmd.c: Use C++ exception handling.
10275 * infcall.c: Use C++ exception handling.
10276 * inf-loop.c: Use C++ exception handling.
10277 * i386-tdep.c: Use C++ exception handling.
10278 * i386-linux-tdep.c: Use C++ exception handling.
10279 * guile/scm-value.c: Use C++ exception handling.
10280 * guile/scm-type.c: Use C++ exception handling.
10281 * guile/scm-symtab.c: Use C++ exception handling.
10282 * guile/scm-symbol.c: Use C++ exception handling.
10283 * guile/scm-pretty-print.c: Use C++ exception handling.
10284 * guile/scm-ports.c: Use C++ exception handling.
10285 * guile/scm-param.c: Use C++ exception handling.
10286 * guile/scm-math.c: Use C++ exception handling.
10287 * guile/scm-lazy-string.c: Use C++ exception handling.
10288 * guile/scm-frame.c: Use C++ exception handling.
10289 * guile/scm-disasm.c: Use C++ exception handling.
10290 * guile/scm-cmd.c: Use C++ exception handling.
10291 * guile/scm-breakpoint.c: Use C++ exception handling.
10292 * guile/scm-block.c: Use C++ exception handling.
10293 * guile/guile-internal.h: Use C++ exception handling.
10294 * gnu-v3-abi.c: Use C++ exception handling.
10295 * gdbtypes.c: Use C++ exception handling.
10296 * frame.c: Use C++ exception handling.
10297 * frame-unwind.c: Use C++ exception handling.
10298 * fbsd-tdep.c: Use C++ exception handling.
10299 * f-valprint.c: Use C++ exception handling.
10300 * exec.c: Use C++ exception handling.
10301 * event-top.c: Use C++ exception handling.
10302 * event-loop.c: Use C++ exception handling.
10303 * eval.c: Use C++ exception handling.
10304 * dwarf2read.c: Use C++ exception handling.
10305 * dwarf2loc.c: Use C++ exception handling.
10306 * dwarf2-frame.c: Use C++ exception handling.
10307 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10308 * dwarf-index-write.c: Use C++ exception handling.
10309 * dwarf-index-cache.c: Use C++ exception handling.
10310 * dtrace-probe.c: Use C++ exception handling.
10311 * disasm-selftests.c: Use C++ exception handling.
10312 * darwin-nat.c: Use C++ exception handling.
10313 * cp-valprint.c: Use C++ exception handling.
10314 * cp-support.c: Use C++ exception handling.
10315 * cp-abi.c: Use C++ exception handling.
10316 * corelow.c: Use C++ exception handling.
10317 * completer.c: Use C++ exception handling.
10318 * compile/compile-object-run.c: Use C++ exception handling.
10319 * compile/compile-object-load.c: Use C++ exception handling.
10320 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10321 * compile/compile-c-symbols.c: Use C++ exception handling.
10322 * common/selftest.c: Use C++ exception handling.
10323 * common/new-op.c: Use C++ exception handling.
10324 * cli/cli-script.c: Use C++ exception handling.
10325 * cli/cli-interp.c: Use C++ exception handling.
10326 * cli/cli-cmds.c: Use C++ exception handling.
10327 * c-varobj.c: Use C++ exception handling.
10328 * btrace.c: Use C++ exception handling.
10329 * breakpoint.c: Use C++ exception handling.
10330 * break-catch-throw.c: Use C++ exception handling.
10331 * arch-utils.c: Use C++ exception handling.
10332 * amd64-tdep.c: Use C++ exception handling.
10333 * ada-valprint.c: Use C++ exception handling.
10334 * ada-typeprint.c: Use C++ exception handling.
10335 * ada-lang.c: Use C++ exception handling.
10336 * aarch64-tdep.c: Use C++ exception handling.
10338 2019-04-08 Tom Tromey <tom@tromey.com>
10340 * xml-support.c (gdb_xml_parser::parse): Update.
10341 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10342 * value.c (show_convenience): Update.
10343 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10344 (test_parse_flags_qcs): Update.
10345 * thread.c (thr_try_catch_cmd): Update.
10346 * target.c (target_translate_tls_address): Update.
10347 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10348 (info_frame_command_core, frame_apply_command_count): Update.
10349 * rust-exp.y (rust_lex_exception_test): Update.
10350 * riscv-tdep.c (riscv_print_one_register_info): Update.
10351 * remote.c (remote_target::enable_btrace): Update.
10352 * record-btrace.c (record_btrace_enable_warn): Update.
10353 * python/py-utils.c (gdbpy_convert_exception): Update.
10354 * printcmd.c (do_one_display, print_variable_and_value): Update.
10355 * mi/mi-main.c (mi_print_exception): Update.
10356 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10357 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10358 * linux-nat.c (linux_nat_target::attach): Update.
10359 * linux-fork.c (class scoped_switch_fork_info): Update.
10360 * infrun.c (displaced_step_prepare): Update.
10361 * infcall.c (call_function_by_hand_dummy): Update.
10362 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10363 * gnu-v3-abi.c (print_one_vtable): Update.
10364 * frame.c (get_prev_frame_always): Update.
10365 * f-valprint.c (info_common_command_for_block): Update.
10366 * exec.c (try_open_exec_file): Update.
10367 * exceptions.c (print_exception, exception_print)
10368 (exception_fprintf, exception_print_same): Update.
10369 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10370 * dwarf-index-cache.c (index_cache::store)
10371 (index_cache::lookup_gdb_index): Update.
10372 * darwin-nat.c (maybe_cache_shell): Update.
10373 * cp-valprint.c (cp_print_value_fields): Update.
10374 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10375 (gcc_cplus_symbol_address): Update.
10376 * compile/compile-c-symbols.c (gcc_convert_symbol)
10377 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10378 * common/selftest.c: Update.
10379 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10381 (exception_try_scope_entry, exception_try_scope_exit): Don't
10383 (struct exception_try_scope): Remove.
10384 (TRY): Don't use exception_try_scope.
10385 (struct gdb_exception): Add constructor, operator=.
10386 <what>: New method.
10387 (struct gdb_exception_RETURN_MASK_ALL)
10388 (struct gdb_exception_RETURN_MASK_ERROR)
10389 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10390 (struct gdb_quit_bad_alloc): Update.
10391 * common/common-exceptions.c (exception_none): Change
10393 (struct catcher) <state, exception>: Initialize inline.
10394 <prev>: Remove member.
10395 (current_catcher): Remove.
10396 (catchers): New global.
10397 (exceptions_state_mc_init): Simplify.
10398 (catcher_pop): Remove.
10399 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10400 (try_scope_depth, exception_try_scope_entry)
10401 (exception_try_scope_exit): Remove.
10402 (throw_exception_sjlj): Update.
10403 (exception_messages, exception_messages_size): Remove.
10404 (throw_it): Simplify.
10405 (gdb_exception_sliced_copy): Remove.
10406 (throw_exception_cxx): Update.
10407 * cli/cli-script.c (script_from_file): Update.
10408 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10410 * ada-valprint.c (ada_val_print): Update.
10411 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10412 (create_excep_cond_exprs): Update.
10414 2019-04-08 Tom Tromey <tom@tromey.com>
10416 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10417 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10418 (TRY, CATCH, END_CATCH): Remove some definitions.
10419 * common/common-exceptions.c: Don't use GDB_XCPT.
10420 (catcher_list_size): Remove.
10421 (throw_exception, throw_it): Simplify.
10423 2019-04-05 Tom Tromey <tom@tromey.com>
10425 Revert the header-sorting patch.
10426 * ft32-tdep.c: Revert.
10427 * frv-tdep.c: Revert.
10428 * frv-linux-tdep.c: Revert.
10430 * frame-unwind.c: Revert.
10431 * frame-base.c: Revert.
10432 * fork-child.c: Revert.
10433 * findvar.c: Revert.
10434 * findcmd.c: Revert.
10435 * filesystem.c: Revert.
10436 * filename-seen-cache.h: Revert.
10437 * filename-seen-cache.c: Revert.
10438 * fbsd-tdep.c: Revert.
10439 * fbsd-nat.h: Revert.
10440 * fbsd-nat.c: Revert.
10441 * f-valprint.c: Revert.
10442 * f-typeprint.c: Revert.
10443 * f-lang.c: Revert.
10444 * extension.h: Revert.
10445 * extension.c: Revert.
10446 * extension-priv.h: Revert.
10447 * expprint.c: Revert.
10450 * exceptions.c: Revert.
10451 * event-top.c: Revert.
10452 * event-loop.c: Revert.
10454 * elfread.c: Revert.
10455 * dwarf2read.h: Revert.
10456 * dwarf2read.c: Revert.
10457 * dwarf2loc.c: Revert.
10458 * dwarf2expr.h: Revert.
10459 * dwarf2expr.c: Revert.
10460 * dwarf2-frame.c: Revert.
10461 * dwarf2-frame-tailcall.c: Revert.
10462 * dwarf-index-write.h: Revert.
10463 * dwarf-index-write.c: Revert.
10464 * dwarf-index-common.c: Revert.
10465 * dwarf-index-cache.h: Revert.
10466 * dwarf-index-cache.c: Revert.
10467 * dummy-frame.c: Revert.
10468 * dtrace-probe.c: Revert.
10469 * disasm.h: Revert.
10470 * disasm.c: Revert.
10471 * disasm-selftests.c: Revert.
10472 * dictionary.c: Revert.
10473 * dicos-tdep.c: Revert.
10474 * demangle.c: Revert.
10475 * dcache.h: Revert.
10476 * dcache.c: Revert.
10477 * darwin-nat.h: Revert.
10478 * darwin-nat.c: Revert.
10479 * darwin-nat-info.c: Revert.
10480 * d-valprint.c: Revert.
10481 * d-namespace.c: Revert.
10482 * d-lang.c: Revert.
10484 * csky-tdep.c: Revert.
10485 * csky-linux-tdep.c: Revert.
10486 * cris-tdep.c: Revert.
10487 * cris-linux-tdep.c: Revert.
10488 * cp-valprint.c: Revert.
10489 * cp-support.c: Revert.
10490 * cp-namespace.c: Revert.
10491 * cp-abi.c: Revert.
10492 * corelow.c: Revert.
10493 * corefile.c: Revert.
10494 * continuations.c: Revert.
10495 * completer.h: Revert.
10496 * completer.c: Revert.
10497 * complaints.c: Revert.
10498 * coffread.c: Revert.
10499 * coff-pe-read.c: Revert.
10500 * cli-out.h: Revert.
10501 * cli-out.c: Revert.
10502 * charset.c: Revert.
10503 * c-varobj.c: Revert.
10504 * c-valprint.c: Revert.
10505 * c-typeprint.c: Revert.
10506 * c-lang.c: Revert.
10507 * buildsym.c: Revert.
10508 * buildsym-legacy.c: Revert.
10509 * build-id.h: Revert.
10510 * build-id.c: Revert.
10511 * btrace.c: Revert.
10512 * bsd-uthread.c: Revert.
10513 * breakpoint.h: Revert.
10514 * breakpoint.c: Revert.
10515 * break-catch-throw.c: Revert.
10516 * break-catch-syscall.c: Revert.
10517 * break-catch-sig.c: Revert.
10518 * blockframe.c: Revert.
10520 * bfin-tdep.c: Revert.
10521 * bfin-linux-tdep.c: Revert.
10522 * bfd-target.c: Revert.
10523 * bcache.c: Revert.
10524 * ax-general.c: Revert.
10525 * ax-gdb.h: Revert.
10526 * ax-gdb.c: Revert.
10527 * avr-tdep.c: Revert.
10529 * auto-load.c: Revert.
10530 * arm-wince-tdep.c: Revert.
10531 * arm-tdep.c: Revert.
10532 * arm-symbian-tdep.c: Revert.
10533 * arm-pikeos-tdep.c: Revert.
10534 * arm-obsd-tdep.c: Revert.
10535 * arm-nbsd-tdep.c: Revert.
10536 * arm-nbsd-nat.c: Revert.
10537 * arm-linux-tdep.c: Revert.
10538 * arm-linux-nat.c: Revert.
10539 * arm-fbsd-tdep.c: Revert.
10540 * arm-fbsd-nat.c: Revert.
10541 * arm-bsd-tdep.c: Revert.
10542 * arch-utils.c: Revert.
10543 * arc-tdep.c: Revert.
10544 * arc-newlib-tdep.c: Revert.
10545 * annotate.h: Revert.
10546 * annotate.c: Revert.
10547 * amd64-windows-tdep.c: Revert.
10548 * amd64-windows-nat.c: Revert.
10549 * amd64-tdep.c: Revert.
10550 * amd64-sol2-tdep.c: Revert.
10551 * amd64-obsd-tdep.c: Revert.
10552 * amd64-obsd-nat.c: Revert.
10553 * amd64-nbsd-tdep.c: Revert.
10554 * amd64-nbsd-nat.c: Revert.
10555 * amd64-nat.c: Revert.
10556 * amd64-linux-tdep.c: Revert.
10557 * amd64-linux-nat.c: Revert.
10558 * amd64-fbsd-tdep.c: Revert.
10559 * amd64-fbsd-nat.c: Revert.
10560 * amd64-dicos-tdep.c: Revert.
10561 * amd64-darwin-tdep.c: Revert.
10562 * amd64-bsd-nat.c: Revert.
10563 * alpha-tdep.c: Revert.
10564 * alpha-obsd-tdep.c: Revert.
10565 * alpha-nbsd-tdep.c: Revert.
10566 * alpha-mdebug-tdep.c: Revert.
10567 * alpha-linux-tdep.c: Revert.
10568 * alpha-linux-nat.c: Revert.
10569 * alpha-bsd-tdep.c: Revert.
10570 * alpha-bsd-nat.c: Revert.
10571 * aix-thread.c: Revert.
10573 * addrmap.c: Revert.
10574 * ada-varobj.c: Revert.
10575 * ada-valprint.c: Revert.
10576 * ada-typeprint.c: Revert.
10577 * ada-tasks.c: Revert.
10578 * ada-lang.c: Revert.
10579 * aarch64-tdep.c: Revert.
10580 * aarch64-ravenscar-thread.c: Revert.
10581 * aarch64-newlib-tdep.c: Revert.
10582 * aarch64-linux-tdep.c: Revert.
10583 * aarch64-linux-nat.c: Revert.
10584 * aarch64-fbsd-tdep.c: Revert.
10585 * aarch64-fbsd-nat.c: Revert.
10586 * aarch32-linux-nat.c: Revert.
10588 2019-04-05 Tom Tromey <tom@tromey.com>
10590 * ft32-tdep.c: Sort headers.
10591 * frv-tdep.c: Sort headers.
10592 * frv-linux-tdep.c: Sort headers.
10593 * frame.c: Sort headers.
10594 * frame-unwind.c: Sort headers.
10595 * frame-base.c: Sort headers.
10596 * fork-child.c: Sort headers.
10597 * findvar.c: Sort headers.
10598 * findcmd.c: Sort headers.
10599 * filesystem.c: Sort headers.
10600 * filename-seen-cache.h: Sort headers.
10601 * filename-seen-cache.c: Sort headers.
10602 * fbsd-tdep.c: Sort headers.
10603 * fbsd-nat.h: Sort headers.
10604 * fbsd-nat.c: Sort headers.
10605 * f-valprint.c: Sort headers.
10606 * f-typeprint.c: Sort headers.
10607 * f-lang.c: Sort headers.
10608 * extension.h: Sort headers.
10609 * extension.c: Sort headers.
10610 * extension-priv.h: Sort headers.
10611 * expprint.c: Sort headers.
10612 * exec.h: Sort headers.
10613 * exec.c: Sort headers.
10614 * exceptions.c: Sort headers.
10615 * event-top.c: Sort headers.
10616 * event-loop.c: Sort headers.
10617 * eval.c: Sort headers.
10618 * elfread.c: Sort headers.
10619 * dwarf2read.h: Sort headers.
10620 * dwarf2read.c: Sort headers.
10621 * dwarf2loc.c: Sort headers.
10622 * dwarf2expr.h: Sort headers.
10623 * dwarf2expr.c: Sort headers.
10624 * dwarf2-frame.c: Sort headers.
10625 * dwarf2-frame-tailcall.c: Sort headers.
10626 * dwarf-index-write.h: Sort headers.
10627 * dwarf-index-write.c: Sort headers.
10628 * dwarf-index-common.c: Sort headers.
10629 * dwarf-index-cache.h: Sort headers.
10630 * dwarf-index-cache.c: Sort headers.
10631 * dummy-frame.c: Sort headers.
10632 * dtrace-probe.c: Sort headers.
10633 * disasm.h: Sort headers.
10634 * disasm.c: Sort headers.
10635 * disasm-selftests.c: Sort headers.
10636 * dictionary.c: Sort headers.
10637 * dicos-tdep.c: Sort headers.
10638 * demangle.c: Sort headers.
10639 * dcache.h: Sort headers.
10640 * dcache.c: Sort headers.
10641 * darwin-nat.h: Sort headers.
10642 * darwin-nat.c: Sort headers.
10643 * darwin-nat-info.c: Sort headers.
10644 * d-valprint.c: Sort headers.
10645 * d-namespace.c: Sort headers.
10646 * d-lang.c: Sort headers.
10647 * ctf.c: Sort headers.
10648 * csky-tdep.c: Sort headers.
10649 * csky-linux-tdep.c: Sort headers.
10650 * cris-tdep.c: Sort headers.
10651 * cris-linux-tdep.c: Sort headers.
10652 * cp-valprint.c: Sort headers.
10653 * cp-support.c: Sort headers.
10654 * cp-namespace.c: Sort headers.
10655 * cp-abi.c: Sort headers.
10656 * corelow.c: Sort headers.
10657 * corefile.c: Sort headers.
10658 * continuations.c: Sort headers.
10659 * completer.h: Sort headers.
10660 * completer.c: Sort headers.
10661 * complaints.c: Sort headers.
10662 * coffread.c: Sort headers.
10663 * coff-pe-read.c: Sort headers.
10664 * cli-out.h: Sort headers.
10665 * cli-out.c: Sort headers.
10666 * charset.c: Sort headers.
10667 * c-varobj.c: Sort headers.
10668 * c-valprint.c: Sort headers.
10669 * c-typeprint.c: Sort headers.
10670 * c-lang.c: Sort headers.
10671 * buildsym.c: Sort headers.
10672 * buildsym-legacy.c: Sort headers.
10673 * build-id.h: Sort headers.
10674 * build-id.c: Sort headers.
10675 * btrace.c: Sort headers.
10676 * bsd-uthread.c: Sort headers.
10677 * breakpoint.h: Sort headers.
10678 * breakpoint.c: Sort headers.
10679 * break-catch-throw.c: Sort headers.
10680 * break-catch-syscall.c: Sort headers.
10681 * break-catch-sig.c: Sort headers.
10682 * blockframe.c: Sort headers.
10683 * block.c: Sort headers.
10684 * bfin-tdep.c: Sort headers.
10685 * bfin-linux-tdep.c: Sort headers.
10686 * bfd-target.c: Sort headers.
10687 * bcache.c: Sort headers.
10688 * ax-general.c: Sort headers.
10689 * ax-gdb.h: Sort headers.
10690 * ax-gdb.c: Sort headers.
10691 * avr-tdep.c: Sort headers.
10692 * auxv.c: Sort headers.
10693 * auto-load.c: Sort headers.
10694 * arm-wince-tdep.c: Sort headers.
10695 * arm-tdep.c: Sort headers.
10696 * arm-symbian-tdep.c: Sort headers.
10697 * arm-pikeos-tdep.c: Sort headers.
10698 * arm-obsd-tdep.c: Sort headers.
10699 * arm-nbsd-tdep.c: Sort headers.
10700 * arm-nbsd-nat.c: Sort headers.
10701 * arm-linux-tdep.c: Sort headers.
10702 * arm-linux-nat.c: Sort headers.
10703 * arm-fbsd-tdep.c: Sort headers.
10704 * arm-fbsd-nat.c: Sort headers.
10705 * arm-bsd-tdep.c: Sort headers.
10706 * arch-utils.c: Sort headers.
10707 * arc-tdep.c: Sort headers.
10708 * arc-newlib-tdep.c: Sort headers.
10709 * annotate.h: Sort headers.
10710 * annotate.c: Sort headers.
10711 * amd64-windows-tdep.c: Sort headers.
10712 * amd64-windows-nat.c: Sort headers.
10713 * amd64-tdep.c: Sort headers.
10714 * amd64-sol2-tdep.c: Sort headers.
10715 * amd64-obsd-tdep.c: Sort headers.
10716 * amd64-obsd-nat.c: Sort headers.
10717 * amd64-nbsd-tdep.c: Sort headers.
10718 * amd64-nbsd-nat.c: Sort headers.
10719 * amd64-nat.c: Sort headers.
10720 * amd64-linux-tdep.c: Sort headers.
10721 * amd64-linux-nat.c: Sort headers.
10722 * amd64-fbsd-tdep.c: Sort headers.
10723 * amd64-fbsd-nat.c: Sort headers.
10724 * amd64-dicos-tdep.c: Sort headers.
10725 * amd64-darwin-tdep.c: Sort headers.
10726 * amd64-bsd-nat.c: Sort headers.
10727 * alpha-tdep.c: Sort headers.
10728 * alpha-obsd-tdep.c: Sort headers.
10729 * alpha-nbsd-tdep.c: Sort headers.
10730 * alpha-mdebug-tdep.c: Sort headers.
10731 * alpha-linux-tdep.c: Sort headers.
10732 * alpha-linux-nat.c: Sort headers.
10733 * alpha-bsd-tdep.c: Sort headers.
10734 * alpha-bsd-nat.c: Sort headers.
10735 * aix-thread.c: Sort headers.
10736 * agent.c: Sort headers.
10737 * addrmap.c: Sort headers.
10738 * ada-varobj.c: Sort headers.
10739 * ada-valprint.c: Sort headers.
10740 * ada-typeprint.c: Sort headers.
10741 * ada-tasks.c: Sort headers.
10742 * ada-lang.c: Sort headers.
10743 * aarch64-tdep.c: Sort headers.
10744 * aarch64-ravenscar-thread.c: Sort headers.
10745 * aarch64-newlib-tdep.c: Sort headers.
10746 * aarch64-linux-tdep.c: Sort headers.
10747 * aarch64-linux-nat.c: Sort headers.
10748 * aarch64-fbsd-tdep.c: Sort headers.
10749 * aarch64-fbsd-nat.c: Sort headers.
10750 * aarch32-linux-nat.c: Sort headers.
10752 2019-04-04 Tom Tromey <tom@tromey.com>
10754 * varobj.c (varobj_create): Update.
10755 * rust-exp.y (struct rust_parser) <update_innermost_block,
10756 lookup_symbol>: New methods.
10757 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10759 (rust_parser::rust_lookup_type)
10760 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10761 * printcmd.c (display_command, do_one_display): Update.
10762 * parser-defs.h (struct parser_state) <parser_state>: Add
10763 "tracker" parameter.
10764 (block_tracker): New member.
10765 (class innermost_block_tracker) <innermost_block_tracker>: Add
10767 <reset>: Remove method.
10768 (innermost_block): Don't declare.
10769 (null_post_parser): Update.
10770 * parse.c (innermost_block): Remove global.
10771 (write_dollar_variable): Update.
10772 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10773 Remove "tracker_types" parameter.
10774 (parse_expression): Add "tracker" parameter.
10775 (parse_expression_for_completion): Update.
10776 (null_post_parser): Add "tracker" parameter.
10777 * p-exp.y: Update rules.
10778 * m2-exp.y: Update rules.
10779 * language.h (struct language_defn) <la_post_parser>: Add
10780 "tracker" parameter.
10781 * go-exp.y: Update rules.
10782 * f-exp.y: Update rules.
10783 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10785 * d-exp.y: Update rules.
10786 * c-exp.y: Update rules.
10787 * breakpoint.c (set_breakpoint_condition): Create an
10788 innermost_block_tracker.
10789 (watch_command_1): Likewise.
10790 * ada-lang.c (resolve): Add "tracker" parameter.
10791 (resolve_subexp): Likewise.
10792 * ada-exp.y (write_var_from_sym): Update.
10794 2019-04-04 Tom Tromey <tom@tromey.com>
10796 * type-stack.h: New file.
10797 * type-stack.c: New file.
10798 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10800 (insert_into_type_stack, insert_type, push_type, push_type_int)
10801 (insert_type_address_space, pop_type, pop_type_int)
10802 (pop_typelist, pop_type_stack, append_type_stack)
10803 (push_type_stack, get_type_stack, push_typelist)
10804 (follow_type_instance_flags, follow_types): Don't declare.
10805 * parse.c (type_stack): Remove global.
10806 (parse_exp_in_context): Update.
10807 (insert_into_type_stack, insert_type, push_type, push_type_int)
10808 (insert_type_address_space, pop_type, pop_type_int)
10809 (pop_typelist, pop_type_stack, append_type_stack)
10810 (push_type_stack, get_type_stack, push_typelist)
10811 (follow_type_instance_flags, follow_types): Remove (moved to
10813 * f-exp.y (type_stack): New global.
10815 (push_kind_type, f_parse): Update.
10816 * d-exp.y (type_stack): New global.
10819 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10821 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10822 (HFILES_NO_SRCDIR): Add type-stack.h.
10824 2019-04-04 Tom Tromey <tom@tromey.com>
10826 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10827 (rust_parser::convert_ast_to_expression, rust_parse)
10828 (rust_lex_test_completion, rust_lex_tests): Update.
10829 * parser-defs.h (struct expr_completion_state): New.
10830 (struct parser_state) <parser_state>: Add completion parameter.
10831 <mark_struct_expression, mark_completion_tag>: New methods.
10832 <parse_completion, m_completion_state>: New members.
10833 (prefixify_expression, null_post_parser): Update.
10834 (mark_struct_expression, mark_completion_tag): Don't declare.
10835 * parse.c (parse_completion, expout_last_struct)
10836 (expout_tag_completion_type, expout_completion_name): Remove
10838 (parser_state::mark_struct_expression)
10839 (parser_state::mark_completion_tag): Now methods.
10840 (prefixify_expression): Add last_struct parameter.
10841 (prefixify_subexp): Likewise.
10842 (parse_exp_1): Update.
10843 (parse_exp_in_context): Add cstate parameter. Update.
10844 (parse_expression_for_completion): Create an
10845 expr_completion_state.
10846 (null_post_parser): Add "completion" parameter.
10847 * p-exp.y: Update rules.
10849 * language.h (struct language_defn) <la_post_parser>: Add
10850 "completing" parameter.
10851 * go-exp.y: Update rules.
10852 (lex_one_token): Update.
10853 * expression.h (parse_completion): Don't declare.
10854 * d-exp.y: Update rules.
10855 (lex_one_token): Update rules.
10856 * c-exp.y: Update rules.
10857 (lex_one_token): Update.
10858 * ada-lang.c (resolve): Add "parse_completion" parameter.
10859 (resolve_subexp): Likewise.
10860 (ada_resolve_function): Likewise.
10862 2019-04-04 Tom Tromey <tom@tromey.com>
10864 * parser-defs.h (struct parser_state) <start_arglist,
10865 end_arglist>: New methods.
10866 <arglist_len, m_funcall_chain>: New members.
10867 (arglist_len, start_arglist, end_arglist): Don't declare.
10868 * parse.c (arglist_len, funcall_chain): Remove global.
10869 (start_arglist, end_arglist): Remove functions.
10870 (parse_exp_in_context): Update.
10871 * p-exp.y: Update rules.
10872 * m2-exp.y: Update rules.
10873 * go-exp.y: Update rules.
10874 * f-exp.y: Update rules.
10875 * d-exp.y: Update rules.
10876 * c-exp.y: Update rules.
10878 2019-04-04 Tom Tromey <tom@tromey.com>
10880 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10881 lex_operator, push_back>: New methods.
10883 (rust_parser::lex_hex, lex_escape): Rename and update.
10884 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10885 (rust_parser::lex_operator): Rename and update.
10886 (rust_parser::lex_number, rustyylex, rustyyerror)
10887 (rust_lex_test_init, rust_lex_test_sequence)
10888 (rust_lex_test_push_back, rust_lex_tests): Update.
10889 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10891 <lexptr, prev_lexptr>: New members.
10892 (lexptr, prev_lexptr): Don't declare.
10893 * parse.c (lexptr, prev_lexptr): Remove globals.
10894 (parse_exp_in_context): Update.
10895 * p-exp.y (yylex, yyerror): Update.
10896 * m2-exp.y (parse_number, yylex, yyerror): Update.
10897 * go-exp.y (lex_one_token, yyerror): Update.
10898 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10899 * d-exp.y (lex_one_token, yyerror): Update.
10900 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10901 (lex_one_token, yyerror): Update.
10902 * ada-lex.l (YY_INPUT): Update.
10903 (rewind_to_char): Update.
10904 * ada-exp.y (yyerror): Update.
10906 2019-04-04 Tom Tromey <tom@tromey.com>
10908 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10909 * parser-defs.h (struct parser_state) <parser_state>: Add new
10911 <comma_terminates>: New member.
10912 (comma_terminates): Don't declare global.
10913 * parse.c (comma_terminates): Remove global.
10914 (parse_exp_in_context): Update.
10915 * p-exp.y (yylex): Update.
10916 * m2-exp.y (yylex): Update.
10917 * go-exp.y (lex_one_token): Update.
10918 * f-exp.y (yylex): Update.
10919 * d-exp.y (lex_one_token): Update.
10920 * c-exp.y (lex_one_token): Update.
10921 * ada-lex.l: Update.
10923 2019-04-04 Tom Tromey <tom@tromey.com>
10925 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10926 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10927 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10928 * parser-defs.h (paren_depth): Don't declare.
10929 * parse.c (paren_depth): Remove global.
10930 (parse_exp_in_context): Update.
10931 * p-exp.y (paren_depth): New global.
10932 (pascal_parse): Initialize it.
10933 * m2-exp.y (paren_depth): New global.
10934 (m2_parse): Initialize it.
10935 * go-exp.y (paren_depth): New global.
10936 (go_parse): Initialize it.
10937 * f-exp.y (paren_depth): New global.
10938 (f_parse): Initialize it.
10939 * d-exp.y (paren_depth): New global.
10940 (d_parse): Initialize it.
10941 * c-exp.y (paren_depth): New global.
10942 (c_parse): Initialize it.
10943 * ada-lex.l (paren_depth): New global.
10944 (lexer_init): Initialize it.
10946 2019-04-04 Tom Tromey <tom@tromey.com>
10948 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10949 (rust_parser::convert_ast_to_type)
10950 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10951 * parser-defs.h (struct parser_state) <parser_state>: Add
10952 parameters. Initialize new members.
10953 <expression_context_block, expression_context_pc>: New members.
10954 * parse.c (expression_context_block, expression_context_pc):
10956 (parse_exp_in_context): Update.
10957 * p-exp.y: Update all rules.
10959 * m2-exp.y: Update all rules.
10961 * go-exp.y (yylex): Update.
10962 * f-exp.y (yylex): Update.
10963 * d-exp.y: Update all rules.
10965 * c-exp.y: Update all rules.
10966 (lex_one_token, classify_name, yylex, c_parse): Update.
10967 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10969 2019-04-04 Tom Tromey <tom@tromey.com>
10971 * gdbarch.h, gdbarch.c: Rebuild.
10972 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10974 (struct stap_parse_info): Replace "parser_state" with
10976 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10977 (parser_state): New class.
10978 * parse.c (expr_builder): Rename.
10979 (expr_builder::release): Rename.
10980 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10981 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10982 (write_exp_elt_longcst, write_exp_elt_floatcst)
10983 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10984 (write_exp_string_vector, write_exp_bitstring)
10985 (write_exp_msymbol, mark_struct_expression)
10986 (write_dollar_variable)
10987 (insert_type_address_space, increase_expout_size): Replace
10988 "parser_state" with "expr_builder".
10989 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10990 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10991 "parser_state" with "expr_builder".
10993 2019-04-04 Tom Tromey <tom@tromey.com>
10995 * rust-exp.y: Replace "parse_language" with method call.
10997 (yylex): Replace "parse_language" with method call.
10999 (yylex): Replace "parse_language" with method call.
11000 * go-exp.y (classify_name): Replace "parse_language" with method
11002 * f-exp.y (yylex): Replace "parse_language" with method call.
11003 * d-exp.y (lex_one_token): Replace "parse_language" with method
11006 (lex_one_token, classify_name, yylex): Replace "parse_language"
11008 * ada-exp.y (find_primitive_type, type_char)
11009 (type_system_address): Replace "parse_language" with method call.
11011 2019-04-04 Tom Tromey <tom@tromey.com>
11013 * rust-exp.y: Replace "parse_gdbarch" with method call.
11014 * parse.c (write_dollar_variable, insert_type_address_space):
11015 Replace "parse_gdbarch" with method call.
11016 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11018 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11020 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11021 "parse_gdbarch" with method call.
11022 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11024 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11025 "parse_gdbarch" with method call.
11026 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11027 "parse_gdbarch" with method call.
11028 * c-exp.y (parse_type, parse_number, classify_name): Replace
11029 "parse_gdbarch" with method call.
11030 * ada-lex.l: Replace "parse_gdbarch" with method call.
11031 * ada-exp.y (parse_type, find_primitive_type, type_char)
11032 (type_system_address): Replace "parse_gdbarch" with method call.
11034 2019-04-04 Tom Tromey <tom@tromey.com>
11036 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11037 * stap-probe.c (stap_parse_argument): Update.
11038 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11039 initial_size parameter.
11040 * rust-exp.y (rust_lex_tests): Update.
11041 * parse.c (parser_state): Update.
11042 (parse_exp_in_context): Update.
11043 * parser-defs.h (struct parser_state) <parser_state>: Remove
11044 "initial_size" parameter.
11046 2019-04-04 Tom Tromey <tom@tromey.com>
11048 * parser-defs.h (increase_expout_size): Don't declare.
11049 * parse.c (increase_expout_size): Now static.
11051 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11053 * gnu-nat.c (gnu_nat_target::wait): Fix
11054 target_waitstatus_to_string call.
11056 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11058 * eval.c (evaluate_subexp_standard): Handle internal functions
11059 during Fortran function call handling.
11061 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11063 * NEWS: Mention new internal functions.
11064 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11065 (read_base_type): Use dwarf2_init_complex_target_type.
11066 * value.c (creal_internal_fn): New function.
11067 (cimag_internal_fn): New function.
11068 (_initialize_values): Register new internal functions.
11070 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11072 * infrun.c (stop_all_threads): If debug_infrun, always
11073 trace the wait status after wait_one, using
11074 target_waitstatus_to_string and target_pid_to_str.
11075 (handle_inferior_event): Replace various trace of
11076 wait status kind by a single trace.
11077 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11078 wait status kind image by target_waitstatus_to_string.
11079 * target/waitstatus.c (target_waitstatus_to_string): Fix
11082 2019-04-01 Tom Tromey <tromey@adacore.com>
11085 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11087 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11088 Pedro Alves <palves@redhat.com>
11090 * top.c (quit_force): Call 'finalize_values'.
11091 * value.c (finalize_values): New function.
11092 * value.h (finalize_values): Declare.
11094 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11096 * NEWS: Announce $_gdb_major and $_gdb_minor.
11098 * top.c (init_gdb_version_vars): New function.
11099 (gdb_init): Call init_gdb_version_vars.
11101 2019-03-29 Tom Tromey <tromey@adacore.com>
11103 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11104 help text. Remove dead code.
11106 2019-03-29 Keith Seitz <keiths@redhat.com>
11108 From Siddhesh Poyarekar:
11109 * f-lang.h (f77_get_upperbound): Return LONGEST.
11110 (f77_get_lowerbound): Likewise.
11111 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11112 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11114 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11115 plongest to format print it.
11116 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11117 (f77_get_upperbound): Likewise.
11118 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11119 LOWER_BOUND to LONGEST.
11120 (f77_create_arrayprint_offset_tbl): Likewise.
11122 2019-03-29 Keith Seitz <keiths@redhat.com>
11124 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11125 %s/pulongest for TYPE_LENGTH instead of %d in format
11127 * ada-typerint.c (ada_print_type): Likewise.
11128 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11129 * compile/compile-c-support.c (generate_register_struct): Likewise.
11130 * gdbtypes.c (recursive_dump_type): Likewise.
11131 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11132 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11133 instead of %d in format strings.
11134 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11135 to std::min to ULONGEST.
11136 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11137 instead of %d in format strings.
11138 * tracepoint.c (info_scope_command): Likewise.
11139 * typeprint.c (print_offset_data::update)
11140 (print_offset_data::finish): Likewise.
11141 * xtensa-tdep.c (xtensa_store_return_value)
11142 (xtensa_push_dummy_call): Likewise.
11144 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11146 * windows-nat.c (display_selector): Fixed format specifications
11149 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11151 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11153 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11155 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11156 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11157 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11158 (nios2_linux_init_abi): Install it.
11160 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11162 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11164 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11166 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11168 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11169 Tom Tromey <tromey@adacore.com>
11171 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11173 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11175 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11176 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11177 method to compute the bounds of range types. Also print "[evaluated]"
11178 if the bounds' values come from a dynamic evaluation.
11180 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11182 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11183 whitespace when pretty printing is on.
11185 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11187 * ppc-linux-nat.c: Add include.
11189 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11191 * NEWS: Mention AArch64 Pointer Authentication.
11193 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11195 * arm-linux-nat.c: Add include.
11197 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11199 * source-cache.c (source_cache::get_source_lines): Re-read
11200 fullname after calling open_source_file.
11202 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11204 * NEWS: Mention TLS support for FreeBSD.
11206 2019-03-25 Tom Tromey <tromey@adacore.com>
11208 * minsyms.c (BUNCH_SIZE): Update comment.
11209 (~minimal_symbol_reader): Remove old comment.
11210 (compact_minimal_symbols): Update comment.
11211 (minimal_symbol_reader::install): Remove old comment. Update
11214 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11216 * s390-linux-nat.c: Add include.
11218 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11220 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11221 Call linux_get_hwcap.
11222 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11224 (aarch64_linux_get_hwcap): Remove function.
11225 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11227 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11229 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11230 * linux-tdep.c (linux_get_hwcap): Add function.
11231 (linux_get_hwcap2): Likewise.
11232 * linux-tdep.h (linux_get_hwcap): Add declaration.
11233 (linux_get_hwcap2): Likewise.
11234 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11235 (ppc_linux_get_hwcap2): Likewise.
11236 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11238 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11239 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11240 (ppc_linux_nat_target::read_description): Likewise.
11241 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11242 * s390-linux-nat.c: Likewise.
11243 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11245 2019-03-24 Tom Tromey <tom@tromey.com>
11247 * ada-lang.c (standard_lookup): Simplify initialization.
11248 (ada_lookup_symbol_nonlocal): Simplify return.
11249 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11250 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11251 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11252 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11254 * solib.c (solib_global_lookup): Simplify.
11255 * symtab.c (null_block_symbol): Remove.
11256 (symbol_cache_lookup): Simplify returns.
11257 (lookup_language_this): Simplify returns.
11258 (lookup_symbol_aux): Simplify return.
11259 (lookup_local_symbol): Simplify returns.
11260 (lookup_global_symbol_from_objfile): Simplify return.
11261 (lookup_symbol_in_objfile_symtabs)
11262 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11263 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11264 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11265 * cp-namespace.c (cp_lookup_bare_symbol)
11266 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11267 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11268 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11269 (cp_lookup_symbol_via_imports): Simplify initialization.
11270 (find_symbol_in_baseclass): Likewise.
11271 * symtab.h (null_block_symbol): Remove.
11272 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11273 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11274 (d_lookup_symbol_module): Likewise.
11275 (find_symbol_in_baseclass): Simplify initialization.
11277 2019-03-24 Tom Tromey <tom@tromey.com>
11279 * expression.h: Don't include symtab.h.
11280 (struct block): Forward declare.
11282 2019-03-24 Tom Tromey <tom@tromey.com>
11284 * c-exp.y (typebase): Remove casts.
11285 * gdbtypes.c (lookup_unsigned_typename, )
11286 (lookup_signed_typename): Remove cast.
11287 * eval.c (parse_to_comma_and_eval): Remove cast.
11288 * parse.c (write_dollar_variable): Remove cast.
11289 * block.h (struct block) <superblock>: Now const.
11290 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11291 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11292 (map_block): Make "block" const.
11293 * symfile.h (struct quick_symbol_functions)
11294 <map_matching_symbols>: Constify block argument to "callback".
11295 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11297 (find_pc_sect_compunit_symtab): Make "b" const.
11298 (find_symbol_at_address): Likewise.
11299 (search_symbols): Likewise.
11300 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11301 (dw2_debug_names_lookup_symbol): Likewise.
11302 (dw2_map_matching_symbols): Update.
11303 * p-valprint.c (pascal_val_print): Remove "block".
11304 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11305 (aux_add_nonlocal_symbols): Make "block" const.
11306 (resolve_subexp): Remove cast.
11307 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11309 (iterate_over_file_blocks): Likewise.
11310 * f-exp.y (%union) <bval>: Remove.
11311 * coffread.c (patch_opaque_types): Make "b" const.
11312 * spu-tdep.c (spu_catch_start): Make "block" const.
11313 * c-valprint.c (print_unpacked_pointer): Remove "block".
11314 * symmisc.c (dump_symtab_1): Make "b" const.
11315 (block_depth): Make "block" const.
11316 * d-exp.y (%union) <bval>: Remove.
11317 * cp-support.h (cp_lookup_rtti_type): Update.
11318 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11319 * psymtab.c (psym_lookup_symbol): Make "block" const.
11320 (maintenance_check_psymtabs): Make "b" const.
11321 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11322 (enumerate_locals, enumerate_args): Update.
11323 * python/py-symtab.c (stpy_global_block): Make "block" const.
11324 (stpy_static_block): Likewise.
11325 * inline-frame.c (block_starting_point_at): Make "new_block"
11327 * block.c (find_block_in_blockvector): Make return type const.
11328 (blockvector_for_pc_sect): Make "b" const.
11329 (find_block_in_blockvector): Make "b" const.
11331 2019-03-23 Tom Tromey <tom@tromey.com>
11333 * varobj.c (varobj_create): Update.
11334 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11335 * printcmd.c (display_command, do_one_display): Don't reset
11337 * parser-defs.h (enum innermost_block_tracker_type): Move to
11339 (innermost_block): Update comment.
11340 * parse.c (parse_exp_1): Add tracker_types parameter.
11341 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11342 tracker_types parameter. Reset innermost_block.
11343 (parse_exp_in_context): Remove.
11344 (parse_expression_for_completion): Update.
11345 * objfiles.c (~objfile): Don't reset expression_context_block or
11347 * expression.h (enum innermost_block_tracker_type): Move from
11349 (parse_exp_1): Add tracker_types parameter.
11350 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11351 reset innermost_block.
11353 2019-03-23 Tom Tromey <tom@tromey.com>
11355 * objfiles.h: Include bcache.h.
11357 2019-03-23 Tom Tromey <tom@tromey.com>
11359 * linespec.c (get_current_search_block): Use
11360 scoped_restore_current_language.
11361 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11363 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11364 Jiong Wang <jiong.wang@arm.com>
11366 * aarch64-linux-tdep.c
11367 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11369 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11371 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11372 Jiong Wang <jiong.wang@arm.com>
11374 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11376 (aarch64_analyze_prologue_test): Add PACIASP test.
11377 (aarch64_prologue_prev_register): Unmask PC value.
11379 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11380 Jiong Wang <jiong.wang@arm.com>
11382 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11383 (aarch64_dwarf2_prev_register): Unmask PC value.
11384 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11385 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11386 DW_CFA_AARCH64_negate_ra_state.
11387 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11389 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11390 Jiong Wang <jiong.wang@arm.com>
11392 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11394 (aarch64_pseudo_register_name): Likewise.
11395 (aarch64_pseudo_register_type): Likewise.
11396 (aarch64_pseudo_register_reggroup_p): Likewise.
11397 (aarch64_gdbarch_init): Add pauth registers.
11398 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11399 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11400 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11401 (struct gdbarch_tdep): Add regnum for ra_state.
11403 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11404 Jiong Wang <jiong.wang@arm.com>
11406 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11408 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11409 Jiong Wang <jiong.wang@arm.com>
11411 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11413 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11414 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11415 (aarch64_gdbarch_init): Add puth registers.
11416 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11417 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11418 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11420 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11421 Jiong Wang <jiong.wang@arm.com>
11423 * aarch64-linux-nat.c
11424 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11425 * aarch64-linux-tdep.c
11426 (aarch64_linux_core_read_description): Likewise.
11427 (aarch64_linux_get_hwcap): New function.
11428 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11429 (aarch64_linux_get_hwcap): New declaration.
11431 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11432 Jiong Wang <jiong.wang@arm.com>
11434 * aarch64-linux-nat.c
11435 (aarch64_linux_nat_target::read_description): Add pauth param.
11436 * aarch64-linux-tdep.c
11437 (aarch64_linux_core_read_description): Likewise.
11438 * aarch64-tdep.c (struct target_desc): Add in pauth.
11439 (aarch64_read_description): Add pauth param.
11440 (aarch64_gdbarch_init): Likewise.
11441 * aarch64-tdep.h (aarch64_read_description): Likewise.
11442 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11443 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11444 * features/Makefile: Add new files.
11445 * features/aarch64-pauth.c: New file.
11446 * features/aarch64-pauth.xml: New file.
11448 2019-03-20 Tom Tromey <tromey@adacore.com>
11450 * infrun.c (handle_inferior_event): Rename from
11451 handle_inferior_event_1. Create a scoped_value_mark.
11452 (handle_inferior_event): Remove.
11454 2019-03-19 Tom Tromey <tromey@adacore.com>
11456 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11457 * infrun.h (print_stop_event): Add "displays" parameter.
11458 * infrun.c (print_stop_event): Add "displays" parameter.
11460 2019-03-19 Pedro Alves <palves@redhat.com>
11462 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11463 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11464 to -1. Fix TABs vs spaces.
11465 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11466 * tui/tui-out.h (tui_ui_out) Add intro comments.
11467 <m_line, m_start_of_line>: In-class initialize, and add describing
11470 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11472 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11474 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11476 2019-03-18 Pedro Alves <palves@redhat.com>
11477 Eli Zaretskii <eliz@gnu.org>
11479 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11480 m_line and m_start_of_line.
11482 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11484 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11485 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11486 it returns a newline. This fixes a regression in TU mode, whereby
11487 the next line is output on the same screen line as the user input.
11489 2019-03-18 Tom Tromey <tromey@adacore.com>
11491 * minsyms.c (minimal_symbol_reader::install): Remove call to
11494 2019-03-18 Pedro Alves <palves@redhat.com>
11496 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11498 (apply_style): New, factored out from ...
11499 (apply_ansi_escape): ... this. Handle reverse video mode.
11500 (tui_set_reverse_mode): New function.
11501 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11502 * tui/tui-winsource.c (tui_show_source_line): Use
11503 tui_set_reverse_mode instead of setting A_STANDOUT.
11504 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11505 New setter methods.
11507 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11509 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11512 2019-03-18 Tom Tromey <tromey@adacore.com>
11514 * ada-lang.c (empty_array): Add "high" parameter.
11515 (ada_evaluate_subexp): Update.
11517 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11519 * unittests/string_view-selftests.c: Define
11520 _initialize_string_view_selftests unconditionally.
11522 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11525 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11527 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11530 * windows-nat.c (display_selector): Fix format specifiers.
11532 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11534 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11535 tui_refill_source_window instead of tui_refresh_win, to update the
11536 current execution line. This fixes redisplay of the current line
11537 when stepping through the code with "next" or "step".
11539 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11541 * source-cache.c (source_cache::get_source_lines): Call
11542 find_source_lines to initialize s->nlines. This fixes vertical
11543 scrolling of TUI source window when the DOWN arrow is pressed.
11545 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11547 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11548 linux-thread-db.c (_initialize_thread_db): Likewise.
11550 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11552 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11553 wclrtoeol in tui_show_source_line". This reverts changes made in
11554 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11556 2019-03-15 Tom Tromey <tom@tromey.com>
11558 * symtab.h (struct minimal_symbol): Derive from
11559 general_symbol_info.
11560 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11561 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11562 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11563 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11564 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11565 (MSYMBOL_SEARCH_NAME): Update.
11566 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11567 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11568 * minsyms.c (minimal_symbol_reader::record_full): Update.
11570 2019-03-15 Tom Tromey <tom@tromey.com>
11572 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11574 2019-03-15 Tom Tromey <tom@tromey.com>
11576 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11577 unique_xmalloc_ptr.
11578 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11580 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11581 (build_minimal_symbol_hash_tables)
11582 (minimal_symbol_reader::install): Update.
11584 2019-03-15 Tom Tromey <tom@tromey.com>
11586 * symtab.c (create_demangled_names_hash): Update.
11587 (symbol_set_names): Update.
11588 * objfiles.h (struct objfile_per_bfd_storage)
11589 <demangled_names_hash>: Now an htab_up.
11590 * objfiles.c (objfile_per_bfd_storage): Simplify.
11592 2019-03-15 Tom Tromey <tom@tromey.com>
11594 * objfiles.h (struct objfile_per_bfd_storage): Declare
11596 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11598 (get_objfile_bfd_data): Use new. Don't initialize
11600 (free_objfile_per_bfd_storage): Remove.
11601 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11603 2019-03-15 Tom Tromey <tom@tromey.com>
11605 * symfile.c (reread_symbols): Update.
11606 * objfiles.c (objfile::objfile): Update.
11607 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11608 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11610 (minimal_symbol_reader::install): Update.
11611 (terminate_minimal_symbol_table): Remove.
11612 * jit.c (jit_object_close_impl): Update.
11614 2019-03-15 Tom Tromey <tom@tromey.com>
11616 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11619 2019-03-15 Tom Tromey <tom@tromey.com>
11621 * objfiles.h (struct objfile_per_bfd_storage)
11622 <demangled_hash_languages>: Now a bitset.
11623 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11624 (lookup_minimal_symbol): Update.
11626 2019-03-15 Tom Tromey <tom@tromey.com>
11628 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11629 Don't return the symbol.
11630 * coffread.c (record_minimal_symbol): Use record_full.
11632 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11634 The MS-Windows port of ncurses fails to switch to a color pair if
11635 one or both of the colors are the implicit default colors. This
11636 change records the default colors when TUI is initialized, and
11637 then specifies them explicitly when a color pair uses the default
11638 colors. This allows color styling in TUI mode on MS-Windows.
11640 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11642 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11643 colors in ncurses_norm_attr.
11644 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11645 "none", replace it with the default color recorded in
11648 2019-03-14 Tom Tromey <tromey@adacore.com>
11650 * source-cache.h (class source_cache) <get_source_lines>: Return
11652 * source-cache.c (source_cache::extract_lines): Handle case where
11653 first_pos==npos. Return std::string.
11654 (source_cache::get_source_lines): Update.
11656 2019-03-14 Tom Tromey <tromey@adacore.com>
11658 * NEWS: Add item for "style sources" commands.
11659 * source-cache.c (source_cache::get_source_lines): Check
11661 * cli/cli-style.c (source_styling): New global.
11662 (_initialize_cli_style): Add "style sources" commands.
11663 (show_style_sources): New function.
11664 * cli/cli-style.h (source_styling): Declare.
11666 2019-03-14 Pedro Alves <palves@redhat.com>
11667 Tom Tromey <tromey@adacore.com>
11669 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11670 * tui/tui-winsource.c (tui_refill_source_window): New function,
11672 (tui_horizontal_source_scroll): ... here. Move some logic.
11673 * cli/cli-style.c (set_style_enabled): Notify new observable.
11674 * tui/tui-hooks.c (tui_redisplay_source): New function.
11675 (tui_attach_detach_observers): Attach or detach
11676 tui_redisplay_source.
11677 * observable.h (source_styling_changed): New observable.
11678 * observable.c: Define source_styling_changed observable.
11680 2019-03-13 Tom Tromey <tromey@adacore.com>
11682 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11683 (i386_gnu_nat_target::store_registers): Update.
11684 * target-debug.h (target_debug_print_std_string): New macro.
11685 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11686 * windows-tdep.c (display_one_tib): Update.
11687 * tui/tui-stack.c (tui_make_status_line): Update.
11688 * top.c (print_inferior_quit_action): Update.
11689 * thread.c (thr_try_catch_cmd): Update.
11690 (add_thread_with_info): Update.
11691 (thread_target_id_str): Update.
11692 (thr_try_catch_cmd): Update.
11693 (thread_command): Update.
11694 (thread_find_command): Update.
11695 * record-btrace.c (record_btrace_target::info_record)
11696 (record_btrace_resume_thread, record_btrace_target::resume)
11697 (record_btrace_cancel_resume, record_btrace_step_thread)
11698 (record_btrace_target::wait, record_btrace_target::wait)
11699 (record_btrace_target::wait, record_btrace_target::stop): Update.
11700 * progspace.c (print_program_space): Update.
11701 * process-stratum-target.c
11702 (process_stratum_target::thread_address_space): Update.
11703 * linux-fork.c (linux_fork_mourn_inferior)
11704 (detach_checkpoint_command, info_checkpoints_command)
11705 (linux_fork_context): Update.
11706 (linux_fork_detach): Update.
11707 (class scoped_switch_fork_info): Update.
11708 (delete_checkpoint_command): Update.
11709 * infrun.c (follow_fork_inferior): Update.
11710 (follow_fork_inferior): Update.
11711 (proceed_after_vfork_done): Update.
11712 (handle_vfork_child_exec_or_exit): Update.
11713 (follow_exec): Update.
11714 (displaced_step_prepare_throw): Update.
11715 (displaced_step_restore): Update.
11716 (start_step_over): Update.
11717 (resume_1): Update.
11718 (clear_proceed_status_thread): Update.
11720 (print_target_wait_results): Update.
11721 (do_target_wait): Update.
11722 (context_switch): Update.
11723 (stop_all_threads): Update.
11724 (restart_threads): Update.
11725 (finish_step_over): Update.
11726 (handle_signal_stop): Update.
11727 (switch_back_to_stepped_thread): Update.
11728 (keep_going_pass_signal): Update.
11729 (print_exited_reason): Update.
11730 (normal_stop): Update.
11731 * inferior.c (inferior_pid_to_str): Change return type.
11732 (print_selected_inferior): Update.
11733 (add_inferior): Update.
11734 (detach_inferior): Update.
11735 * dummy-frame.c (fprint_dummy_frames): Update.
11736 * dcache.c (dcache_info_1): Update.
11737 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11738 (btrace_fetch, btrace_clear): Update.
11739 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11740 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11742 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11743 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11744 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11745 * gdbarch.c, gdbarch.h: Rebuild.
11746 * gdbarch.sh (core_pid_to_str): Change return type.
11747 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11749 (windows_nat_target::pid_to_str): Change return type.
11750 (windows_delete_thread): Update.
11751 (windows_nat_target::attach): Update.
11752 (windows_nat_target::files_info): Update.
11753 * target-delegates.c: Rebuild.
11754 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11756 (sol_thread_target::pid_to_str): Change return type.
11757 * remote.c (class remote_target) <pid_to_str>: Change return
11759 (remote_target::pid_to_str): Change return type.
11760 (extended_remote_target::attach, remote_target::remote_stop_ns)
11761 (remote_target::remote_notif_remove_queued_reply)
11762 (remote_target::push_stop_reply, remote_target::disable_btrace):
11764 (extended_remote_target::attach): Update.
11765 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11767 (gdbsim_target::pid_to_str): Change return type.
11768 * ravenscar-thread.c (struct ravenscar_thread_target)
11769 <pid_to_str>: Change return type.
11770 (ravenscar_thread_target::pid_to_str): Change return type.
11771 * procfs.c (class procfs_target) <pid_to_str>: Change return
11773 (procfs_target::pid_to_str): Change return type.
11774 (procfs_target::attach): Update.
11775 (procfs_target::detach): Update.
11776 (procfs_target::fetch_registers): Update.
11777 (procfs_target::store_registers): Update.
11778 (procfs_target::wait): Update.
11779 (procfs_target::files_info): Update.
11780 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11781 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11783 (nto_procfs_target::pid_to_str): Change return type.
11784 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11785 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11787 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11788 (exit_lwp): Update.
11789 (attach_proc_task_lwp_callback, get_detach_signal)
11790 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11791 (linux_nat_target::resume, wait_lwp, stop_callback)
11792 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11793 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11794 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11795 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11796 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11798 (inf_ptrace_target::attach): Update.
11799 (inf_ptrace_target::files_info): Update.
11800 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11802 (go32_nat_target::pid_to_str): Change return type.
11803 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11804 (gnu_nat_target::wait): Update.
11805 (gnu_nat_target::wait): Update.
11806 (gnu_nat_target::resume): Update.
11807 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11808 (fbsd_nat_target::wait): Update.
11809 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11811 (darwin_nat_target::attach): Update.
11812 * corelow.c (class core_target) <pid_to_str>: Change return type.
11813 (core_target::pid_to_str): Change return type.
11814 * target.c (normal_pid_to_str): Change return type.
11815 (default_pid_to_str): Likewise.
11816 (target_pid_to_str): Change return type.
11817 (target_translate_tls_address): Update.
11818 (target_announce_detach): Update.
11819 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11821 (bsd_uthread_target::pid_to_str): Change return type.
11822 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11824 (bsd_kvm_target::pid_to_str): Change return type.
11825 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11827 (aix_thread_target::pid_to_str): Change return type.
11828 * target.h (struct target_ops) <pid_to_str>: Change return type.
11829 (target_pid_to_str, normal_pid_to_str): Likewise.
11830 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11832 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11834 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11836 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11838 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11840 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11843 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11845 * NEWS: Mention that the new default MI version is 3. Mention
11846 changes to the output of commands and events that deal with
11847 multi-location breakpoints.
11848 * breakpoint.c: Include "mi/mi-out.h".
11849 (print_one_breakpoint): Change output syntax if using MI version
11851 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11853 (mi_multi_location_breakpoint_output_fixed): New.
11854 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11855 (mi_cmd_fix_multi_location_breakpoint_output): New.
11856 (mi_multi_location_breakpoint_output_fixed): New.
11857 * mi/mi-cmds.c (mi_cmds): Register command
11858 -fix-multi-location-breakpoint-output.
11859 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11862 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11864 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11865 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11866 instantiate mi_ui_out based on interpreter name.
11867 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11868 * mi/mi-main.c (mi_load_progress): Likewise.
11870 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11872 * NEWS: Combine separate "New targets" sections for 8.3.
11874 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11876 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11877 (ppcfbsd_init_abi): Install gdbarch
11878 "fetch_tls_load_module_address" and "get_thread_local_address"
11881 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11883 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11884 (riscv_fbsd_init_abi): Install gdbarch
11885 "fetch_tls_load_module_address" and "get_thread_local_address"
11888 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11890 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11891 (i386fbsd_init_abi): Install gdbarch
11892 "fetch_tls_load_module_address" and "get_thread_local_address"
11895 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11897 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11898 (amd64fbsd_init_abi): Install gdbarch
11899 "fetch_tls_load_module_address" and "get_thread_local_address"
11902 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11904 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11905 (struct fbsd_pspace_data): New type.
11906 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11907 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11908 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11909 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11910 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11912 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11914 * gdbtypes.c (lookup_struct_elt): New function.
11915 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11916 * gdbtypes.h (struct struct_elt): New type.
11917 (lookup_struct_elt): New prototype.
11919 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11921 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11922 remove disabled code block.
11924 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11926 * gdbarch.sh (get_thread_local_address): New method.
11927 * gdbarch.h, gdbarch.c: Regenerate.
11928 * target.c (target_translate_tls_address): Use
11929 gdbarch_get_thread_local_address if present instead of
11930 target::get_thread_local_address.
11932 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11934 * target.h (target::get_thread_local_address): Update comment.
11936 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11938 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11939 objfile->separate_debug_objfile_backlink if not NULL.
11941 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11943 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11944 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11945 (amd64bsd_store_inferior_registers): Likewise.
11946 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11947 Enable segment base registers.
11948 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11949 PT_GETFSBASE and PT_GETGSBASE.
11950 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11952 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11953 segment base registers.
11954 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11956 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11958 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11959 Update calls to i386_target_description to add 'segments'
11961 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11962 add segment base registers.
11963 * arch/i386.c (i386_create_target_description): Add 'segments'
11964 parameter to enable segment base registers.
11965 * arch/i386.h (i386_create_target_description): Likewise.
11966 * features/i386/32bit-segments.xml: New file.
11967 * features/i386/32bit-segments.c: Generate.
11968 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11969 call to i386_target_description to add 'segments' parameter.
11970 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11971 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11972 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11973 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11974 if feature is present.
11975 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11976 Add 'segments' parameter to call to i386_target_description.
11977 (i386_target_description): Add 'segments' parameter to enable
11978 segment base registers.
11979 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11980 to call to i386_target_description.
11981 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11982 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11983 Define I386_NUM_REGS.
11984 (i386_target_description): Add 'segments' parameter to enable
11985 segment base registers.
11987 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11990 * source-cache.c: #undef open and close, to avoid unresolved
11991 externals during linking.
11993 2019-03-12 Tom Tromey <tromey@adacore.com>
11995 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11996 const. Add initializers.
11997 (_initialize_remote): Don't initialize ptid globals.
11999 2019-03-12 Pedro Alves <palves@redhat.com>
12001 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12003 2019-03-12 Pedro Alves <palves@redhat.com>
12005 * cp-name-parser.y (main): Remove unused 'len' variable.
12007 2019-03-12 Tom Tromey <tromey@adacore.com>
12009 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12010 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12012 2019-03-12 Tom Tromey <tromey@adacore.com>
12014 * linux-nat.c (iterate_over_lwps): Update.
12015 (stop_callback): Remove parameter.
12016 (stop_wait_callback, detach_callback, resume_set_callback)
12017 (select_singlestep_lwp_callback, set_ignore_sigint)
12018 (status_callback, resumed_callback, resume_clear_callback)
12019 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12021 (linux_nat_target::detach, linux_nat_target::resume)
12022 (linux_stop_and_wait_all_lwps, select_event_lwp)
12023 (linux_nat_filter_event, linux_nat_wait_1)
12024 (linux_nat_target::kill, linux_nat_target::stop)
12025 (linux_nat_target::stop): Update.
12026 (linux_nat_resume_callback): Change type.
12027 (resume_stopped_resumed_lwps, count_events_callback)
12028 (select_event_lwp_callback): Likewise.
12029 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12030 * arm-linux-nat.c (struct update_registers_data): Remove.
12031 (update_registers_callback): Change type.
12032 (arm_linux_insert_hw_breakpoint1): Update.
12033 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12035 (x86_linux_dr_set_addr): Update.
12036 (x86_linux_dr_set_control): Update.
12037 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12038 (iterate_over_lwps): Use gdb::function_view.
12039 * nat/aarch64-linux-hw-point.c (struct
12040 aarch64_dr_update_callback_param): Remove.
12041 (debug_reg_change_callback): Change type.
12042 (aarch64_notify_debug_reg_change): Update.
12043 * s390-linux-nat.c (s390_refresh_per_info): Update.
12045 2019-03-11 Tom Tromey <tromey@adacore.com>
12047 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12048 redundant assignment to "this_cu".
12050 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12052 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12054 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12056 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12058 (rank_one_type): ... this.
12060 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12062 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12064 (rank_one_type): ... this.
12066 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12068 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12070 (rank_one_type): ... this.
12072 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12074 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12076 (rank_one_type): ... this.
12078 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12080 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12082 (rank_one_type): ... this.
12084 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12086 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12088 (rank_one_type): ... this.
12090 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12092 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12094 (rank_one_type): ... this.
12096 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12098 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12100 (rank_one_type): ... this.
12102 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12104 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12106 (rank_one_type): ... this.
12108 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12110 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12112 (rank_one_type): ... this.
12114 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12116 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12118 (rank_one_type): ... this.
12120 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12122 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12124 (rank_one_type): ... this.
12126 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12128 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12129 inferior-events' shows the example events.
12131 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12133 Support styling on native MS-Windows console
12136 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12137 on MS-Windows if $TERM is not defined.
12139 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12141 * posix-hdep.c (gdb_console_fputs):
12142 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12144 * ui-file.h (gdb_console_fputs): Add prototype.
12146 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12147 back to fputs only if the former returns zero.
12149 2019-03-07 Tom Tromey <tom@tromey.com>
12151 * symmisc.c (print_symbol_bcache_statistics): Update.
12152 (print_objfile_statistics): Update.
12153 * symfile.c (allocate_symtab): Update.
12154 * stabsread.c: Don't include bcache.h.
12155 * psymtab.h (struct psymbol_bcache): Don't declare.
12156 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12157 (psymbol_bcache_init, psymbol_bcache_free)
12158 (psymbol_bcache_get_bcache): Don't declare.
12159 * psymtab.c (struct psymbol_bcache): Remove.
12160 (psymtab_storage::psymtab_storage): Update.
12161 (psymtab_storage::~psymtab_storage): Update.
12162 (psymbol_bcache_init, psymbol_bcache_free)
12163 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12164 (add_psymbol_to_bcache): Update.
12165 (allocate_psymtab): Update.
12166 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12167 macro_cache>: No longer pointers.
12168 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12169 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12170 * macrotab.c (macro_bcache): Update.
12171 * macroexp.c: Don't include bcache.h.
12172 * gdbtypes.c (check_types_worklist): Update.
12173 (types_deeply_equal): Remove TRY/CATCH. Update.
12174 * elfread.c (elf_symtab_read): Update.
12175 * dwarf2read.c: Don't include bcache.h.
12176 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12177 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12178 (print_bcache_statistics, bcache_memory_used): Don't declare.
12179 (struct bcache): Move from bcache.c. Add constructor, destructor,
12180 methods. Rename all data members.
12181 * bcache.c (struct bcache): Move to bcache.h.
12182 (bcache::expand_hash_table): Rename from expand_hash_table.
12184 (bcache::insert): Rename from bcache_full.
12185 (bcache::compare): Rename from bcache_compare.
12186 (bcache_xmalloc): Remove.
12187 (bcache::~bcache): Rename from bcache_xfree.
12188 (bcache::print_statistics): Rename from print_bcache_statistics.
12189 (bcache::memory_used): Rename from bcache_memory_used.
12191 2019-03-07 Pedro Alves <palves@redhat.com>
12193 * infrun.c (normal_stop): Also check for
12194 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12196 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12198 * f-lang.c (value_from_host_double): Moved to...
12199 * value.c (value_from_host_double): ...here.
12200 * value.h (value_from_host_double): Declare.
12201 * guile/scm-math.c (vlscm_convert_typed_number): Use
12202 value_from_host_double.
12203 (vlscm_convert_number): Likewise.
12204 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12205 * python/py-value.c (convert_value_from_python): Likewise.
12207 2019-03-06 Tom Tromey <tom@tromey.com>
12209 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12211 2019-03-06 Tom Tromey <tom@tromey.com>
12213 * utils.h (free_current_contents): Don't declare.
12214 * utils.c (free_current_contents): Remove.
12216 2019-03-06 Tom Tromey <tom@tromey.com>
12218 * top.c (quit_force): Update.
12219 * main.c (captured_command_loop): Update.
12220 * common/new-op.c (operator new): Update.
12221 * common/common-exceptions.c (struct catcher)
12222 <save_cleanup_chain>: Remove member.
12223 (exceptions_state_mc_init): Update.
12224 (exception_try_scope_entry): Return nullptr.
12225 (exception_try_scope_exit, exception_rethrow)
12226 (throw_exception_sjlj, throw_exception_cxx): Update.
12227 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12228 (all_cleanups, do_cleanups, discard_cleanups)
12229 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12230 (restore_cleanups, restore_final_cleanups): Don't declare.
12231 (do_final_cleanups): Remove parameter.
12232 * common/cleanups.c (cleanup_chain, make_cleanup)
12233 (make_cleanup_dtor, all_cleanups, do_cleanups)
12234 (discard_my_cleanups, discard_cleanups)
12235 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12236 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12237 (null_cleanup): Remove.
12238 (do_final_cleanups): Remove parameter.
12240 2019-03-06 Tom Tromey <tom@tromey.com>
12242 * remote.c (remote_target::remote_parse_stop_reply): Use
12243 unique_xmalloc_ptr.
12245 2019-03-06 Tom Tromey <tom@tromey.com>
12247 * stabsread.c (struct stabs_field_info): Rename from field_info.
12248 <list, fnlist>: Add initializers.
12249 <obstack>: New member.
12250 (read_member_functions, read_struct_fields, read_baseclasses):
12251 Allocate on obstack. Don't use cleanups.
12252 (read_one_struct_field, read_member_functions, read_struct_fields)
12253 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12254 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12255 (read_struct_type): Update.
12257 2019-03-06 Tom Tromey <tom@tromey.com>
12259 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12260 * common/filestuff.h (make_cleanup_close): Don't declare.
12261 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12264 2019-03-06 Tom Tromey <tom@tromey.com>
12266 * solib-aix.c: Use make_scope_exit.
12268 2019-03-06 Tom Tromey <tom@tromey.com>
12270 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12271 Use make_scope_exit.
12273 2019-03-06 Tom Tromey <tom@tromey.com>
12275 * solib-svr4.c (disable_probes_interface): Remove parameter.
12276 (svr4_handle_solib_event): Use make_scope_exit.
12278 2019-03-06 Tom Tromey <tom@tromey.com>
12280 * remote.c (struct stop_reply_deleter): Remove.
12281 (stop_reply_up): Update.
12282 (struct stop_reply): Derive from notif_event. Don't typedef.
12283 <regcache>: Now a std::vector.
12284 (stop_reply_xfree): Remove.
12285 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12286 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12287 (remote_target::discard_pending_stop_replies): Use delete.
12288 (remote_target::remote_parse_stop_reply): Update.
12289 (remote_target::process_stop_reply): Update.
12290 * remote-notif.h (struct notif_event): Add virtual destructor.
12291 Remove "dtr" member.
12292 (struct notif_client) <alloc_event>: Return a unique_ptr.
12293 (notif_event_xfree): Don't declare.
12294 (notif_event_up): New typedef.
12295 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12296 (notif_event_xfree, do_notif_event_xfree): Remove.
12297 (remote_notif_state_xfree): Update.
12299 2019-03-06 Tom Tromey <tom@tromey.com>
12301 * infrun.c (displaced_step_clear_cleanup): Now a
12302 forward_scope_exit type.
12303 (displaced_step_prepare_throw): Update.
12304 (displaced_step_fixup): Update.
12306 2019-03-06 Tom Tromey <tom@tromey.com>
12308 * inferior.h (class inferior): Update comment.
12309 * gdbthread.h (class thread_info): Update comment.
12311 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12312 Tom Tromey <tom@tromey.com>
12314 * stabsread.h (struct stab_section_list): Remove.
12315 (coffstab_build_psymtabs): Update.
12316 * dbxread.c (symbuf_sections): Now a std::vector.
12317 (sect_idx): New global.
12318 (fill_symbuf): Update.
12319 (coffstab_build_psymtabs): Change type of stabsects parameter.
12321 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12323 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12324 (coff_locate_sections): Update.
12325 (coff_symfile_read): Remove cleanups. Update.
12326 (init_stringtab): Add storage parameter.
12327 (free_stringtab, free_stringtab_cleanup): Remove.
12328 (init_lineno): Add storage parameter.
12329 (free_linetab, free_linetab_cleanup): Remove.
12331 2019-03-06 Pedro Alves <palves@redhat.com>
12333 * linux-fork.c (fork_info::clobber_regs): Delete.
12334 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12335 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12337 (scoped_switch_fork_info::scoped_switch_fork_info)
12338 (checkpoint_command, linux_fork_context): Adjust
12339 fork_save_infrun_state calls.
12341 2019-03-06 Pedro Alves <palves@redhat.com>
12343 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12344 (inf_has_multiple_threads): Return 'bool' and rewrite using
12345 inferior_info::threads().
12347 2019-03-06 Pedro Alves <palves@redhat.com>
12349 * linux-fork.c: Include <list>.
12350 (fork_list): Now a std::list instance.
12351 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12352 (forks_exist_p, find_last_fork): Adjust.
12353 (new_fork): Delete.
12355 (add_fork): Adjust.
12356 (free_fork): Delete, folded into fork_info::~fork_info().
12357 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12359 (init_fork_list): Delete.
12360 (linux_fork_killall, linux_fork_mourn_inferior)
12361 (linux_fork_detach, info_checkpoints_command): Adjust.
12362 (_initialize_linux_fork): No longer call init_fork_list.
12364 2019-03-06 Pedro Alves <palves@redhat.com>
12366 * linux-fork.c (new_fork): New, split out of ...
12367 (add_fork): ... this. Return void. Move "first fork" special
12368 case from here, to ...
12369 (checkpoint_command): ... here.
12370 * linux-linux.h (add_fork): Return void.
12372 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12374 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12376 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12377 Chris January <chris.january@arm.com>
12378 David Lecomber <david.lecomber@arm.com>
12380 * f-exp.y: New token, UNOP_INTRINSIC.
12381 (exp): New pattern using UNOP_INTRINSIC token.
12382 (f77_keywords): Add 'abs' keyword.
12383 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12384 (value_from_host_double): New function.
12385 (evaluate_subexp_f): Support UNOP_ABS.
12387 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12389 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12392 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12394 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12395 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12396 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12398 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12400 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12402 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12403 Chris January <chris.january@arm.com>
12405 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12406 * f-exp.y: Define 'KIND' token.
12407 (exp): New pattern for KIND expressions.
12408 (ptype): Handle types with a kind extension.
12409 (direct_abs_decl): Extend to spot kind extensions.
12410 (f77_keywords): Add 'kind' to the list.
12411 (push_kind_type): New function.
12412 (convert_to_kind_type): New function.
12413 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12414 * parse.c (operator_length_standard): Likewise.
12415 * parser-defs.h (enum type_pieces): Add tp_kind.
12416 * std-operator.def: Add UNOP_KIND.
12418 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12420 * f-exp.y (f_parse): Set yydebug.
12422 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12424 * f-lang.c (evaluate_subexp_f): New function.
12425 (exp_descriptor_f): New global.
12426 (f_language_defn): Use exp_descriptor_f instead of
12427 exp_descriptor_standard.
12429 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12431 * f-exp.y (struct token): Add comments.
12432 (dot_ops): Remove uppercase versions and the end marker.
12433 (f77_keywords): Likewise.
12434 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12435 entries in the dot_ops array are case insensitive, and use
12436 strncasecmp to compare strings. Also some whitespace cleanup in
12437 this area. Similar for the f77_keywords array, except entries in
12438 this list might be case sensitive.
12440 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12442 * f-exp.y (struct f77_boolean_val): Add comments.
12443 (boolean_values): Remove uppercase versions, and end marker.
12444 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12445 and use strncasecmp to achieve case insensitivity. Additionally,
12446 perform whitespace cleanup around this code.
12448 2019-03-06 Tom Tromey <tromey@adacore.com>
12450 * remote-sim.c (gdbsim_target_open): Use result of
12453 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12454 Dirk Schubert <dirk.schubert@arm.com>
12455 Chris January <chris.january@arm.com>
12457 * eval.c (evaluate_subexp_standard): Call Fortran argument
12459 * f-lang.c (struct value): A value which can be passed into a
12460 Fortran function call.
12461 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12463 (struct type): Value ready for a Fortran function call.
12464 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12466 * f-lang.h (fortran_argument_convert): Declaration.
12467 (fortran_preserve_arg_pointer): Declaration.
12468 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12470 2019-03-05 Tom Tromey <tromey@adacore.com>
12472 * python/py-prettyprint.c (print_string_repr): Remove #if.
12473 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12475 2019-03-05 Tom Tromey <tromey@adacore.com>
12477 * target.c (the_dummy_target): Move later. Change type to
12479 (initialize_targets): Don't initialize the_dummy_target.
12481 2019-03-05 Tom Tromey <tromey@adacore.com>
12483 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12484 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12486 2019-03-05 Tom Tromey <tromey@adacore.com>
12488 * windows-nat.c (windows_nat_target::attach)
12489 (windows_nat_target::detach): Don't call gdb_flush.
12490 * valprint.c (generic_val_print, val_print, val_print_string):
12491 Don't call gdb_flush.
12492 * utils.c (defaulted_query): Don't call gdb_flush.
12493 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12494 * target.c (target_announce_detach): Don't call gdb_flush.
12495 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12496 * remote.c (extended_remote_target::attach): Don't call
12498 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12499 * printcmd.c (do_examine): Don't call gdb_flush.
12500 (info_display_command): Don't call gdb_flush.
12501 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12502 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12503 * memattr.c (info_mem_command): Don't call gdb_flush.
12504 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12505 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12506 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12507 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12508 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12509 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12510 (gnu_nat_target::detach): Don't call gdb_flush.
12511 * f-valprint.c (f_val_print): Don't call gdb_flush.
12512 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12513 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12514 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12516 * c-valprint.c (c_val_print): Don't call gdb_flush.
12517 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12519 2019-03-05 Tom Tromey <tromey@adacore.com>
12521 * varobj.c (update_dynamic_varobj_children): Update.
12522 (install_default_visualizer): Use reset, not release.
12523 * value.c (set_internalvar): Update.
12524 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12525 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12526 ATTRIBUTE_UNUSED_RESULT.
12528 2019-03-05 Tom Tromey <tromey@adacore.com>
12530 * remote.c (class scoped_remote_fd) <release>: Add
12531 ATTRIBUTE_UNUSED_RESULT.
12533 2019-03-05 Tom Tromey <tromey@adacore.com>
12535 * macroexp.c (struct macro_buffer) <release>: Add
12536 ATTRIBUTE_UNUSED_RESULT.
12538 2019-03-05 Tom Tromey <tromey@adacore.com>
12540 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12541 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12542 ATTRIBUTE_UNUSED_RESULT.
12544 2019-03-05 Tom Tromey <tromey@adacore.com>
12546 * common/scoped_fd.h (class scoped_fd) <release>: Add
12547 ATTRIBUTE_UNUSED_RESULT.
12549 2019-03-05 Tom Tromey <tromey@adacore.com>
12551 * parser-defs.h (struct parser_state) <release>: Add
12552 ATTRIBUTE_UNUSED_RESULT.
12554 2019-03-05 Tom Tromey <tromey@adacore.com>
12556 * utils.h (class gdb_argv) <release>: Add
12557 ATTRIBUTE_UNUSED_RESULT.
12558 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12560 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12562 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12563 for-loop range, to avoid compiler warnings.
12565 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12566 avoid compiler warnings about unused variables.
12568 * NEWS: Mention end of support for native debugging on MS-Windows
12572 * common/netstuff.c:
12573 * gdbserver/gdbreplay.c
12574 * gdbserver/remote-utils.c:
12576 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12577 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12578 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12579 'getaddrinfo' and 'freeaddrinfo' were not available before
12580 Windows XP, and mingw.org's MinGW headers by default define
12581 _WIN32_WINNT to 0x500.
12583 2019-03-01 Gary Benson <gbenson@redhat.com>
12585 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12587 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12588 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12591 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12592 set_sigint_trap, clear_sigint_trap.
12594 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12596 * target.c (target_detach): Clear the regcache and the
12599 2019-02-27 Pedro Alves <palves@redhat.com>
12601 * utils.c (set_screen_size): When we cap the height/width sizes,
12602 tweak the corresponding command variable to show "unlimited":
12604 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12605 Pedro Alves <palves@redhat.com>
12607 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12608 before calling rl_set_screen_size.
12610 2019-02-27 Tom Tromey <tromey@adacore.com>
12612 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12614 * python/py-value.c: Remove Python 2.4 workaround.
12615 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12617 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12618 Python 2.4 workaround.
12619 * python/python-internal.h: Remove Python 2.4 comment.
12620 (Py_ssize_t): Don't define.
12621 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12622 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12623 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12624 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12625 * python/python.c (do_start_initialization): Remove Python 2.4
12627 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12628 (print_children): Remove Python 2.4 workaround.
12629 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12631 (CHARBUFFERPROC_NAME): Remove.
12632 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12633 Python 2.4 workaround.
12635 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12637 * NEWS: Note minimum Python version.
12639 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12641 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12642 code from these functions. Remove corresponding ifdefs. Use
12643 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12644 Remove gotos and target of gotos.
12645 (infpy_search_memory): Likewise.
12647 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12649 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12650 (hppa_gdbarch_init): Don't register deleted functions with
12653 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12655 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12656 (h8300_unwind_sp): Delete.
12657 (h8300_dummy_id): Delete.
12658 (h8300_gdbarch_init): Don't register deleted functions with
12661 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12663 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12664 (ft32_unwind_pc): Delete.
12665 (ft32_unwind_sp): Delete.
12666 (ft32_gdbarch_init): Don't register deleted functions with
12669 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12671 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12672 (frv_unwind_pc): Delete.
12673 (frv_unwind_sp): Delete.
12674 (frv_gdbarch_init): Don't register deleted functions with
12677 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12679 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12680 (riscv_unwind_pc): Delete.
12681 (riscv_unwind_sp): Delete.
12682 (riscv_gdbarch_init): Don't register deleted functions with
12685 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12687 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12688 (csky_unwind_pc): Delete.
12689 (csky_unwind_sp): Delete.
12690 (csky_gdbarch_init): Don't register deleted functions with
12693 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12695 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12696 (cris_unwind_pc): Delete.
12697 (cris_unwind_sp): Delete.
12698 (cris_gdbarch_init): Don't register deleted functions with
12701 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12703 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12704 (bfin_unwind_pc): Delete.
12705 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12707 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12709 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12710 (arm_unwind_pc): Delete.
12711 (arm_unwind_sp): Delete.
12712 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12714 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12716 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12717 (arc_unwind_pc): Delete.
12718 (arc_unwind_sp): Delete.
12719 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12721 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12723 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12724 (alpha_unwind_pc): Delete.
12725 (alpha_gdbarch_init): Don't register deleted functions with
12728 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12730 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12731 (aarch64_unwind_pc): Delete.
12732 (aarch64_unwind_sp): Delete.
12733 (aarch64_gdbarch_init): Don't register deleted functions with
12736 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12738 * gdbtypes.c (type_align): Don't consider static members when
12739 computing structure alignment.
12741 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12743 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12744 return 0 for other types.
12745 * arch-utils.c (default_type_align): Always return 0.
12746 * gdbarch.h: Regenerate.
12747 * gdbarch.sh (type_align): Extend comment.
12748 * gdbtypes.c (type_align): Add additional comments, always call
12749 gdbarch_type_align before applying the default rules.
12750 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12751 generic code will then apply a suitable default.
12752 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12753 types, return 0 for other types.
12755 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12757 * NEWS: Create a new section for the next release branch.
12758 Rename the section of the current branch, now that it has
12761 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12763 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12764 * version.in: Bump version to 8.3.50.DATE-git.
12766 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12768 * aix-thread.c (ptid_cmp): Remove unused variable.
12769 (get_signaled_thread): Likewise.
12770 (store_regs_user_thread): Likewise.
12771 (store_regs_kernel_thread): Likewise.
12772 (fetch_regs_kernel_thread): Remove shadowed variable.
12774 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12776 * features/riscv/32bit-cpu.xml: Add register numbers.
12777 * features/riscv/32bit-fpu.c: Regenerate.
12778 * features/riscv/32bit-fpu.xml: Add register numbers.
12779 * features/riscv/64bit-cpu.xml: Add register numbers.
12780 * features/riscv/64bit-fpu.c: Regenerate.
12781 * features/riscv/64bit-fpu.xml: Add register numbers.
12783 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12785 * NEWS: Mention two argument form of gdb.Value constructor.
12786 * python/py-value.c (convert_buffer_and_type_to_value): New
12788 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12789 Add support for handling an optional second argument. Call
12790 convert_buffer_and_type_to_value as appropriate.
12791 * python/python-internal.h (Py_buffer_deleter): New struct.
12792 (Py_buffer_up): New typedef.
12794 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12796 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12797 instead of releasing ownership.
12799 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12801 * dwarf2read.c (open_and_init_dwp_file): Call
12802 elf_numsections instead of bfd_count_sections to initialize
12803 dwp_file->num_sections.
12805 2019-02-25 Tom Tromey <tromey@adacore.com>
12807 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12809 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12811 * gcore.in: Add '--readnever' option when invoking GDB.
12813 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12815 * MAINTAINERS: Update my email address.
12817 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12819 * build-id.c (build_id_to_debug_bfd_1): New function.
12820 (build_id_to_debug_bfd): Look for separate debug file in
12823 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12825 * gdbarch.sh: Update the copyright year range that is placed into
12828 2019-02-22 Keith Seitz <keiths@redhat.com>
12831 * linespec.c (create_sals_line_offset): Search for the default
12832 symtab's filename instead of its fullname.
12834 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12836 * NEWS: Update style defaults.
12838 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12840 * main.c (captured_main_1): Disable styling in batch mode.
12842 2019-02-20 Tom Tromey <tom@tromey.com>
12844 * symtab.c (symtab_symbol_info): Fix typos.
12846 2019-02-20 Tom Tromey <tromey@adacore.com>
12848 * findcmd.c (_initialize_mem_search): Use upper case for
12849 metasyntactic variables.
12851 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12853 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12854 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12856 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12858 * top.h (source_file_name): Change to std::string.
12859 * top.c (source_file_name): Likewise.
12860 (command_line_input): Adjust.
12861 * cli/cli-script.c (script_from_file): Adjust.
12863 2019-02-19 Tom Tromey <tromey@adacore.com>
12865 * ravenscar-thread.c
12866 (ravenscar_thread_target::update_thread_list): Don't call
12867 ada_build_task_list.
12868 * ada-lang.h (ada_build_task_list): Don't declare.
12869 * ada-tasks.c (struct ada_tasks_inferior_data)
12870 <task_list_valid_p>: Now bool.
12871 (read_known_tasks, ada_task_list_changed)
12872 (ada_tasks_invalidate_inferior_data): Update.
12873 (read_known_tasks_array): Return bool.
12874 (read_known_tasks_list): Likewise.
12875 (read_known_tasks): Return void.
12876 (ada_build_task_list): Now static.
12878 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12880 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12881 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12883 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12885 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12886 variant for ada_tasks_pspace_data_handle and
12887 ada_tasks_inferior_data_handle.
12888 (ada_tasks_pspace_data_cleanup): New function.
12889 (ada_tasks_inferior_data_cleanup): New function.
12891 2019-02-17 Tom Tromey <tom@tromey.com>
12893 * macrotab.h (macro_source_fullname): Return a std::string.
12894 * macrotab.c (macro_include, check_for_redefinition)
12895 (macro_undef, macro_lookup_definition, foreach_macro)
12896 (foreach_macro_in_scope): Update.
12897 (macro_source_fullname): Return a std::string.
12898 * macrocmd.c (show_pp_source_pos): Update.
12900 2019-02-17 Tom Tromey <tom@tromey.com>
12902 * macrocmd.c (show_pp_source_pos): Style the file names.
12904 2019-02-17 Tom Tromey <tom@tromey.com>
12907 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12909 2019-02-17 Tom Tromey <tom@tromey.com>
12911 * ada-lang.c (user_select_syms): Use filtered printing.
12912 * utils.c (wrap_style): New global.
12913 (desired_style): Remove.
12914 (emit_style_escape): Add stream parameter.
12915 (set_output_style, reset_terminal_style, prompt_for_continue):
12917 (flush_wrap_buffer): Only flush gdb_stdout.
12918 (wrap_here): Set wrap_style.
12919 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12920 treat escape sequences as a character. Change when wrap buffer is
12922 (fputs_styled): Do not set the output style when the default is
12924 * ui-style.h (struct ui_file_style) <is_default>: New method.
12925 * source.c (print_source_lines_base): Emit escape sequences in one
12928 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12930 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12931 integers and enumeration types.
12933 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12935 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12936 instead of lookup_symbol_in_language
12937 (do_exact_match): New function.
12938 (ada_get_symbol_name_matcher): Return do_exact_match when
12939 doing a verbatim match.
12941 2019-02-15 Tom Tromey <tromey@adacore.com>
12943 * ravenscar-thread.c (ravenscar_thread_target::resume)
12944 (ravenscar_thread_target::wait): Special case wildcard requests.
12946 2019-02-15 Tom Tromey <tromey@adacore.com>
12948 * ravenscar-thread.c (base_ptid): Remove.
12949 (struct ravenscar_thread_target) <close>: New method.
12950 <m_base_ptid>: New member.
12951 <update_inferior_ptid, active_task, task_is_currently_active,
12952 runtime_initialized>: Declare methods.
12953 <ravenscar_thread_target>: Add constructor.
12954 (ravenscar_thread_target::task_is_currently_active)
12955 (ravenscar_thread_target::update_inferior_ptid)
12956 (ravenscar_runtime_initialized): Rename. Now methods.
12957 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12958 (ravenscar_thread_target::update_thread_list): Update.
12959 (ravenscar_thread_target::active_task): Now method.
12960 (ravenscar_thread_target::store_registers)
12961 (ravenscar_thread_target::prepare_to_store)
12962 (ravenscar_thread_target::prepare_to_store)
12963 (ravenscar_thread_target::mourn_inferior): Update.
12964 (ravenscar_inferior_created): Use "new" to create target.
12965 (ravenscar_thread_target::get_ada_task_ptid): Update.
12966 (_initialize_ravenscar): Don't initialize base_ptid.
12967 (ravenscar_ops): Remove global.
12969 2019-02-15 Tom Tromey <tromey@adacore.com>
12971 * target.h (push_target): Declare new overload.
12972 * target.c (push_target): New overload, taking an rvalue reference.
12973 * remote.c (remote_target::open_1): Use push_target overload.
12974 * corelow.c (core_target_open): Use push_target overload.
12976 2019-02-15 Tom Tromey <tromey@adacore.com>
12978 * ravenscar-thread.c (is_ravenscar_task)
12979 (ravenscar_task_is_currently_active): Return bool.
12980 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12981 (_initialize_ravenscar): Remove "(void)".
12982 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12985 2019-02-15 Tom Tromey <tromey@adacore.com>
12987 * ravenscar-thread.c (ravenscar_runtime_initializer)
12988 (has_ravenscar_runtime, get_running_thread_id)
12989 (ravenscar_thread_target::resume): Fix indentation.
12991 2019-02-15 Tom Tromey <tromey@adacore.com>
12993 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12994 from ravenscar_arch_ops.
12995 (sparc_ravenscar_ops::fetch_registers)
12996 (sparc_ravenscar_ops::store_registers): Now methods.
12997 (sparc_ravenscar_prepare_to_store): Remove.
12998 (sparc_ravenscar_ops): Redefine.
12999 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13000 methods and destructor. Remove members.
13001 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13002 (ravenscar_thread_target::store_registers)
13003 (ravenscar_thread_target::prepare_to_store): Update.
13004 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13006 (struct ppc_ravenscar_powerpc_ops): Derive from
13007 ravenscar_arch_ops.
13008 (ppc_ravenscar_powerpc_ops::fetch_registers)
13009 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13010 (ppc_ravenscar_powerpc_ops): Redefine.
13011 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13012 (ppc_ravenscar_e500_ops::fetch_registers)
13013 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13014 (ppc_ravenscar_e500_ops): Redefine.
13015 * aarch64-ravenscar-thread.c
13016 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13017 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13018 (aarch64_ravenscar_fetch_registers)
13019 (aarch64_ravenscar_store_registers): Now methods.
13020 (aarch64_ravenscar_ops): Redefine.
13022 2019-02-15 Tom Tromey <tromey@adacore.com>
13024 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13025 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13026 (ravenscar_thread_target::stopped_by_watchpoint)
13027 (ravenscar_thread_target::stopped_data_address)
13028 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13030 2019-02-15 Tom Tromey <tromey@adacore.com>
13032 * ravenscar-thread.c: Fix some typos.
13034 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13035 Tom Tromey <tromey@adacore.com>
13037 * ada-lang.c (ada_exception_sal): Change addr_string to a
13039 (create_ada_exception_catchpoint): Update.
13041 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13042 Tom Tromey <tromey@adacore.com>
13044 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13045 (bp_location_ops): Remove.
13046 (base_breakpoint_allocate_location): Update.
13047 (free_bp_location): Update.
13048 * ada-lang.c (class ada_catchpoint_location)
13049 <ada_catchpoint_location>: Remove ops parameter.
13050 (ada_catchpoint_location_dtor): Remove.
13051 (ada_catchpoint_location_ops): Remove.
13052 (allocate_location_exception): Update.
13053 * breakpoint.h (struct bp_location_ops): Remove.
13054 (class bp_location) <bp_location>: Remove bp_location_ops
13056 <~bp_location>: Add destructor.
13059 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13060 Pedro Alves <palves@redhat.com>
13062 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13065 2019-02-14 David Michael <fedora.dm0@gmail.com>
13066 Samuel Thibault <samuel.thibault@gnu.org>
13067 Thomas Schwinge <thomas@codesourcery.com>
13069 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13070 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13072 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13074 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13075 (check_empty): Use "const char *".
13077 * gnu-nat.c (gnu_nat_target::detach): Instead of
13078 'detach_inferior (pid)' call
13079 'detach_inferior (find_inferior_pid (pid))'.
13081 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13082 'nat/fork-inferior.o'.
13083 * gnu-nat.c: #include "nat/fork-inferior.h".
13085 * gnu-nat.c (gnu_nat_target::detach): Instead of
13086 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13087 * gnu-nat.h: #include "inf-child.h".
13088 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13089 'i386_gnu_nat_target::fetch_registers'.
13090 (gnu_store_registers): Rename/move to
13091 'i386_gnu_nat_target::store_registers'.
13093 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13094 * gnu-nat.h (mach_thread_info): New function.
13095 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13097 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13099 2019-02-14 Frederic Konrad <konrad@adacore.com>
13101 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13103 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13105 * windows-nat.c (windows_add_thread): Add new parameter
13106 "main_thread_p" with default value set to false. Update
13107 function documentation as well as all callers.
13108 (windows_delete_thread): Likewise.
13109 (fake_create_process): Update call to windows_add_thread.
13110 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13111 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13112 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13113 call to windows_delete_thread.
13115 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13117 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13119 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13121 * symfile.c (find_separate_debug_file): Use canonical path of
13122 sysroot with child_path instead of gdb_sysroot if it is valid.
13124 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13126 * symfile.c (find_separate_debug_file): Use child_path to
13127 determine if an object file is under a sysroot.
13129 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13131 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13132 unittests/child-path-selftests.c.
13133 * common/pathstuff.c (child_path): New function.
13134 * common/pathstuff.h (child_path): New prototype.
13135 * unittests/child-path-selftests.c: New file.
13137 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13139 * symfile.c (find_separate_debug_file): Look for separate debug
13140 files in debug directories under the sysroot.
13142 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13144 * symtab.h (struct minimal_symbol data_p): New const method.
13145 (struct minimal_symbol text_p): Likewise.
13146 * symtab.c (output_source_filename): Use file name style
13147 to print file name.
13148 (print_symbol_info): Likewise.
13149 (print_msymbol_info): Use address style to print addresses.
13150 Use function name style to print executable text symbols.
13151 (expand_symtab_containing_pc): Use data_p.
13152 (find_pc_sect_compunit_symtab): Likewise.
13154 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13156 * breakpoint.c (describe_other_breakpoints): Use address style
13157 to print addresses.
13158 (say_where): Likewise.
13160 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13162 * ada-typeprint.c (print_func_type): Print function name
13163 style to print function name.
13164 * c-typeprint.c (c_print_type_1): Likewise.
13166 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13168 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13171 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13173 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13176 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13178 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13179 TYPE_CODE_REF types.
13181 2019-02-08 Jim Wilson <jimw@sifive.com>
13183 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13184 (riscv_linux_fregset): New.
13185 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13187 2019-02-07 Tom Tromey <tom@tromey.com>
13189 * thread.c (thread_cancel_execution_command): Update.
13190 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13192 (struct thread_fsm_ops): Remove.
13193 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13194 (thread_fsm_should_stop, thread_fsm_return_value)
13195 (thread_fsm_set_finished, thread_fsm_finished_p)
13196 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13198 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13199 * infrun.c (clear_proceed_status_thread)
13200 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13201 (print_stop_event): Update.
13202 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13204 (step_command_fsm_ops): Remove.
13205 (new_step_command_fsm): Remove.
13207 (step_command_fsm::should_stop): Rename from
13208 step_command_fsm_should_stop.
13209 (step_command_fsm::clean_up): Rename from
13210 step_command_fsm_clean_up.
13211 (step_command_fsm::do_async_reply_reason): Rename from
13212 step_command_fsm_async_reply_reason.
13213 (struct until_next_fsm): Inherit from thread_fsm. Add
13215 (until_next_fsm_ops): Remove.
13216 (new_until_next_fsm): Remove.
13217 (until_next_fsm::should_stop): Rename from
13218 until_next_fsm_should_stop.
13219 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13220 (until_next_fsm::do_async_reply_reason): Rename from
13221 until_next_fsm_async_reply_reason.
13222 (struct finish_command_fsm): Inherit from thread_fsm. Add
13223 constructor. Change type of breakpoint.
13224 (finish_command_fsm_ops): Remove.
13225 (new_finish_command_fsm): Remove.
13226 (finish_command_fsm::should_stop): Rename from
13227 finish_command_fsm_should_stop.
13228 (finish_command_fsm::clean_up): Rename from
13229 finish_command_fsm_clean_up.
13230 (finish_command_fsm::return_value): Rename from
13231 finish_command_fsm_return_value.
13232 (finish_command_fsm::do_async_reply_reason): Rename from
13233 finish_command_fsm_async_reply_reason.
13234 (finish_command): Update.
13235 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13237 (call_thread_fsm_ops): Remove.
13238 (call_thread_fsm::call_thread_fsm): Rename from
13239 new_call_thread_fsm.
13240 (call_thread_fsm::should_stop): Rename from
13241 call_thread_fsm_should_stop.
13242 (call_thread_fsm::should_notify_stop): Rename from
13243 call_thread_fsm_should_notify_stop.
13244 (run_inferior_call, call_function_by_hand_dummy): Update.
13245 * cli/cli-interp.c (should_print_stop_to_console): Update.
13246 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13247 Add constructor. Change type of location_breakpoint,
13249 (until_break_fsm_ops): Remove.
13250 (new_until_break_fsm): Remove.
13251 (until_break_fsm::should_stop): Rename from
13252 until_break_fsm_should_stop.
13253 (until_break_fsm::clean_up): Rename from
13254 until_break_fsm_clean_up.
13255 (until_break_fsm::do_async_reply_reason): Rename from
13256 until_break_fsm_async_reply_reason.
13257 (until_break_command): Update.
13258 * thread-fsm.c: Remove.
13259 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13261 2019-02-07 Tom Tromey <tom@tromey.com>
13263 * yy-remap.h: Add include guard.
13264 * xtensa-tdep.h: Add include guard.
13265 * xcoffread.h: Rename include guard.
13266 * varobj-iter.h: Add include guard.
13267 * tui/tui.h: Rename include guard.
13268 * tui/tui-winsource.h: Rename include guard.
13269 * tui/tui-wingeneral.h: Rename include guard.
13270 * tui/tui-windata.h: Rename include guard.
13271 * tui/tui-win.h: Rename include guard.
13272 * tui/tui-stack.h: Rename include guard.
13273 * tui/tui-source.h: Rename include guard.
13274 * tui/tui-regs.h: Rename include guard.
13275 * tui/tui-out.h: Rename include guard.
13276 * tui/tui-layout.h: Rename include guard.
13277 * tui/tui-io.h: Rename include guard.
13278 * tui/tui-hooks.h: Rename include guard.
13279 * tui/tui-file.h: Rename include guard.
13280 * tui/tui-disasm.h: Rename include guard.
13281 * tui/tui-data.h: Rename include guard.
13282 * tui/tui-command.h: Rename include guard.
13283 * tic6x-tdep.h: Add include guard.
13284 * target/waitstatus.h: Rename include guard.
13285 * target/wait.h: Rename include guard.
13286 * target/target.h: Rename include guard.
13287 * target/resume.h: Rename include guard.
13288 * target-float.h: Rename include guard.
13289 * stabsread.h: Add include guard.
13290 * rs6000-tdep.h: Add include guard.
13291 * riscv-fbsd-tdep.h: Add include guard.
13292 * regformats/regdef.h: Rename include guard.
13293 * record.h: Rename include guard.
13294 * python/python.h: Rename include guard.
13295 * python/python-internal.h: Rename include guard.
13296 * python/py-stopevent.h: Rename include guard.
13297 * python/py-ref.h: Rename include guard.
13298 * python/py-record.h: Rename include guard.
13299 * python/py-record-full.h: Rename include guard.
13300 * python/py-record-btrace.h: Rename include guard.
13301 * python/py-instruction.h: Rename include guard.
13302 * python/py-events.h: Rename include guard.
13303 * python/py-event.h: Rename include guard.
13304 * procfs.h: Add include guard.
13305 * proc-utils.h: Add include guard.
13306 * p-lang.h: Add include guard.
13307 * or1k-tdep.h: Rename include guard.
13308 * observable.h: Rename include guard.
13309 * nto-tdep.h: Rename include guard.
13310 * nat/x86-linux.h: Rename include guard.
13311 * nat/x86-linux-dregs.h: Rename include guard.
13312 * nat/x86-gcc-cpuid.h: Add include guard.
13313 * nat/x86-dregs.h: Rename include guard.
13314 * nat/x86-cpuid.h: Rename include guard.
13315 * nat/ppc-linux.h: Rename include guard.
13316 * nat/mips-linux-watch.h: Rename include guard.
13317 * nat/linux-waitpid.h: Rename include guard.
13318 * nat/linux-ptrace.h: Rename include guard.
13319 * nat/linux-procfs.h: Rename include guard.
13320 * nat/linux-osdata.h: Rename include guard.
13321 * nat/linux-nat.h: Rename include guard.
13322 * nat/linux-namespaces.h: Rename include guard.
13323 * nat/linux-btrace.h: Rename include guard.
13324 * nat/glibc_thread_db.h: Rename include guard.
13325 * nat/gdb_thread_db.h: Rename include guard.
13326 * nat/gdb_ptrace.h: Rename include guard.
13327 * nat/fork-inferior.h: Rename include guard.
13328 * nat/amd64-linux-siginfo.h: Rename include guard.
13329 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13330 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13331 * nat/aarch64-linux.h: Rename include guard.
13332 * nat/aarch64-linux-hw-point.h: Rename include guard.
13333 * mn10300-tdep.h: Add include guard.
13334 * mips-linux-tdep.h: Add include guard.
13335 * mi/mi-parse.h: Rename include guard.
13336 * mi/mi-out.h: Rename include guard.
13337 * mi/mi-main.h: Rename include guard.
13338 * mi/mi-interp.h: Rename include guard.
13339 * mi/mi-getopt.h: Rename include guard.
13340 * mi/mi-console.h: Rename include guard.
13341 * mi/mi-common.h: Rename include guard.
13342 * mi/mi-cmds.h: Rename include guard.
13343 * mi/mi-cmd-break.h: Rename include guard.
13344 * m2-lang.h: Add include guard.
13345 * location.h: Rename include guard.
13346 * linux-record.h: Rename include guard.
13347 * linux-nat.h: Add include guard.
13348 * linux-fork.h: Add include guard.
13349 * i386-darwin-tdep.h: Rename include guard.
13350 * hppa-linux-offsets.h: Add include guard.
13351 * guile/guile.h: Rename include guard.
13352 * guile/guile-internal.h: Rename include guard.
13353 * gnu-nat.h: Rename include guard.
13354 * gdb-stabs.h: Rename include guard.
13355 * frv-tdep.h: Add include guard.
13356 * f-lang.h: Add include guard.
13357 * event-loop.h: Add include guard.
13358 * darwin-nat.h: Rename include guard.
13359 * cp-abi.h: Rename include guard.
13360 * config/sparc/nm-sol2.h: Rename include guard.
13361 * config/nm-nto.h: Rename include guard.
13362 * config/nm-linux.h: Add include guard.
13363 * config/i386/nm-i386gnu.h: Rename include guard.
13364 * config/djgpp/nl_types.h: Rename include guard.
13365 * config/djgpp/langinfo.h: Rename include guard.
13366 * compile/gcc-cp-plugin.h: Add include guard.
13367 * compile/gcc-c-plugin.h: Add include guard.
13368 * compile/compile.h: Rename include guard.
13369 * compile/compile-object-run.h: Rename include guard.
13370 * compile/compile-object-load.h: Rename include guard.
13371 * compile/compile-internal.h: Rename include guard.
13372 * compile/compile-cplus.h: Rename include guard.
13373 * compile/compile-c.h: Rename include guard.
13374 * common/xml-utils.h: Rename include guard.
13375 * common/x86-xstate.h: Rename include guard.
13376 * common/version.h: Rename include guard.
13377 * common/vec.h: Rename include guard.
13378 * common/tdesc.h: Rename include guard.
13379 * common/selftest.h: Rename include guard.
13380 * common/scoped_restore.h: Rename include guard.
13381 * common/scoped_mmap.h: Rename include guard.
13382 * common/scoped_fd.h: Rename include guard.
13383 * common/safe-iterator.h: Rename include guard.
13384 * common/run-time-clock.h: Rename include guard.
13385 * common/refcounted-object.h: Rename include guard.
13386 * common/queue.h: Rename include guard.
13387 * common/ptid.h: Rename include guard.
13388 * common/print-utils.h: Rename include guard.
13389 * common/preprocessor.h: Rename include guard.
13390 * common/pathstuff.h: Rename include guard.
13391 * common/observable.h: Rename include guard.
13392 * common/netstuff.h: Rename include guard.
13393 * common/job-control.h: Rename include guard.
13394 * common/host-defs.h: Rename include guard.
13395 * common/gdb_wait.h: Rename include guard.
13396 * common/gdb_vecs.h: Rename include guard.
13397 * common/gdb_unlinker.h: Rename include guard.
13398 * common/gdb_unique_ptr.h: Rename include guard.
13399 * common/gdb_tilde_expand.h: Rename include guard.
13400 * common/gdb_sys_time.h: Rename include guard.
13401 * common/gdb_string_view.h: Rename include guard.
13402 * common/gdb_splay_tree.h: Rename include guard.
13403 * common/gdb_setjmp.h: Rename include guard.
13404 * common/gdb_ref_ptr.h: Rename include guard.
13405 * common/gdb_optional.h: Rename include guard.
13406 * common/gdb_locale.h: Rename include guard.
13407 * common/gdb_assert.h: Rename include guard.
13408 * common/filtered-iterator.h: Rename include guard.
13409 * common/filestuff.h: Rename include guard.
13410 * common/fileio.h: Rename include guard.
13411 * common/environ.h: Rename include guard.
13412 * common/common-utils.h: Rename include guard.
13413 * common/common-types.h: Rename include guard.
13414 * common/common-regcache.h: Rename include guard.
13415 * common/common-inferior.h: Rename include guard.
13416 * common/common-gdbthread.h: Rename include guard.
13417 * common/common-exceptions.h: Rename include guard.
13418 * common/common-defs.h: Rename include guard.
13419 * common/common-debug.h: Rename include guard.
13420 * common/cleanups.h: Rename include guard.
13421 * common/buffer.h: Rename include guard.
13422 * common/btrace-common.h: Rename include guard.
13423 * common/break-common.h: Rename include guard.
13424 * cli/cli-utils.h: Rename include guard.
13425 * cli/cli-style.h: Rename include guard.
13426 * cli/cli-setshow.h: Rename include guard.
13427 * cli/cli-script.h: Rename include guard.
13428 * cli/cli-interp.h: Rename include guard.
13429 * cli/cli-decode.h: Rename include guard.
13430 * cli/cli-cmds.h: Rename include guard.
13431 * charset-list.h: Add include guard.
13432 * buildsym-legacy.h: Rename include guard.
13433 * bfin-tdep.h: Add include guard.
13434 * ax.h: Rename include guard.
13435 * arm-linux-tdep.h: Add include guard.
13436 * arm-fbsd-tdep.h: Add include guard.
13437 * arch/xtensa.h: Rename include guard.
13438 * arch/tic6x.h: Add include guard.
13439 * arch/i386.h: Add include guard.
13440 * arch/arm.h: Rename include guard.
13441 * arch/arm-linux.h: Rename include guard.
13442 * arch/arm-get-next-pcs.h: Rename include guard.
13443 * arch/amd64.h: Add include guard.
13444 * arch/aarch64-insn.h: Rename include guard.
13445 * arch-utils.h: Rename include guard.
13446 * annotate.h: Add include guard.
13447 * amd64-darwin-tdep.h: Rename include guard.
13448 * aarch64-linux-tdep.h: Add include guard.
13449 * aarch64-fbsd-tdep.h: Add include guard.
13450 * aarch32-linux-nat.h: Add include guard.
13452 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13454 * macrotab.c (macro_define_internal): New function that
13455 factorizes macro_define_object_internal and macro_define_function
13457 (macro_define_object_internal): Use macro_define_internal.
13458 (macro_define_function): Likewise.
13460 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13462 * macrocmd.c (extract_identifier): Return
13463 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13466 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13468 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13470 2019-02-05 Tom Tromey <tom@tromey.com>
13472 * target.c (target_stack::unpush): Move assertion earlier.
13474 2019-01-30 Tom Tromey <tom@tromey.com>
13477 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13478 (gdbpy_parse_and_eval): Likewise.
13479 * python/python-internal.h (gdbpy_allow_threads): New class.
13481 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13483 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13484 (aarch64_fbsd_fpregmap): Move earlier.
13485 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13486 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13487 instead of individual calls to trad_frame_set_reg_addr.
13488 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13490 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13491 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13492 instead of individual calls to trad_frame_set_reg_addr.
13494 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13496 * CONTRIBUTE: Replace contribution list with wiki link.
13498 2019-01-25 Tom Tromey <tom@tromey.com>
13500 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13502 2019-01-25 Tom Tromey <tom@tromey.com>
13504 * xtensa-linux-nat.c: Fix common/ includes.
13505 * xml-support.h: Fix common/ includes.
13506 * xml-support.c: Fix common/ includes.
13507 * x86-linux-nat.c: Fix common/ includes.
13508 * windows-nat.c: Fix common/ includes.
13509 * varobj.h: Fix common/ includes.
13510 * varobj.c: Fix common/ includes.
13511 * value.c: Fix common/ includes.
13512 * valops.c: Fix common/ includes.
13513 * utils.c: Fix common/ includes.
13514 * unittests/xml-utils-selftests.c: Fix common/ includes.
13515 * unittests/utils-selftests.c: Fix common/ includes.
13516 * unittests/unpack-selftests.c: Fix common/ includes.
13517 * unittests/tracepoint-selftests.c: Fix common/ includes.
13518 * unittests/style-selftests.c: Fix common/ includes.
13519 * unittests/string_view-selftests.c: Fix common/ includes.
13520 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13521 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13522 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13523 * unittests/rsp-low-selftests.c: Fix common/ includes.
13524 * unittests/parse-connection-spec-selftests.c: Fix common/
13526 * unittests/optional-selftests.c: Fix common/ includes.
13527 * unittests/offset-type-selftests.c: Fix common/ includes.
13528 * unittests/observable-selftests.c: Fix common/ includes.
13529 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13530 * unittests/memrange-selftests.c: Fix common/ includes.
13531 * unittests/memory-map-selftests.c: Fix common/ includes.
13532 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13533 * unittests/function-view-selftests.c: Fix common/ includes.
13534 * unittests/environ-selftests.c: Fix common/ includes.
13535 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13536 * unittests/common-utils-selftests.c: Fix common/ includes.
13537 * unittests/cli-utils-selftests.c: Fix common/ includes.
13538 * unittests/array-view-selftests.c: Fix common/ includes.
13539 * ui-file.c: Fix common/ includes.
13540 * tui/tui-io.c: Fix common/ includes.
13541 * tracepoint.h: Fix common/ includes.
13542 * tracepoint.c: Fix common/ includes.
13543 * tracefile-tfile.c: Fix common/ includes.
13544 * top.h: Fix common/ includes.
13545 * top.c: Fix common/ includes.
13546 * thread.c: Fix common/ includes.
13547 * target/waitstatus.h: Fix common/ includes.
13548 * target/waitstatus.c: Fix common/ includes.
13549 * target.h: Fix common/ includes.
13550 * target.c: Fix common/ includes.
13551 * target-memory.c: Fix common/ includes.
13552 * target-descriptions.c: Fix common/ includes.
13553 * symtab.h: Fix common/ includes.
13554 * symfile.c: Fix common/ includes.
13555 * stap-probe.c: Fix common/ includes.
13556 * spu-linux-nat.c: Fix common/ includes.
13557 * sparc-nat.c: Fix common/ includes.
13558 * source.c: Fix common/ includes.
13559 * solib.c: Fix common/ includes.
13560 * solib-target.c: Fix common/ includes.
13561 * ser-unix.c: Fix common/ includes.
13562 * ser-tcp.c: Fix common/ includes.
13563 * ser-pipe.c: Fix common/ includes.
13564 * ser-base.c: Fix common/ includes.
13565 * selftest-arch.c: Fix common/ includes.
13566 * s12z-tdep.c: Fix common/ includes.
13567 * rust-exp.y: Fix common/ includes.
13568 * rs6000-aix-tdep.c: Fix common/ includes.
13569 * riscv-tdep.c: Fix common/ includes.
13570 * remote.c: Fix common/ includes.
13571 * remote-notif.h: Fix common/ includes.
13572 * remote-fileio.h: Fix common/ includes.
13573 * remote-fileio.c: Fix common/ includes.
13574 * regcache.h: Fix common/ includes.
13575 * regcache.c: Fix common/ includes.
13576 * record-btrace.c: Fix common/ includes.
13577 * python/python.c: Fix common/ includes.
13578 * python/py-type.c: Fix common/ includes.
13579 * python/py-inferior.c: Fix common/ includes.
13580 * progspace.h: Fix common/ includes.
13581 * producer.c: Fix common/ includes.
13582 * procfs.c: Fix common/ includes.
13583 * proc-api.c: Fix common/ includes.
13584 * printcmd.c: Fix common/ includes.
13585 * ppc-linux-nat.c: Fix common/ includes.
13586 * parser-defs.h: Fix common/ includes.
13587 * osdata.c: Fix common/ includes.
13588 * obsd-nat.c: Fix common/ includes.
13589 * nat/x86-linux.c: Fix common/ includes.
13590 * nat/x86-linux-dregs.c: Fix common/ includes.
13591 * nat/x86-dregs.h: Fix common/ includes.
13592 * nat/x86-dregs.c: Fix common/ includes.
13593 * nat/ppc-linux.c: Fix common/ includes.
13594 * nat/mips-linux-watch.h: Fix common/ includes.
13595 * nat/mips-linux-watch.c: Fix common/ includes.
13596 * nat/linux-waitpid.c: Fix common/ includes.
13597 * nat/linux-ptrace.h: Fix common/ includes.
13598 * nat/linux-ptrace.c: Fix common/ includes.
13599 * nat/linux-procfs.c: Fix common/ includes.
13600 * nat/linux-personality.c: Fix common/ includes.
13601 * nat/linux-osdata.c: Fix common/ includes.
13602 * nat/linux-namespaces.c: Fix common/ includes.
13603 * nat/linux-btrace.h: Fix common/ includes.
13604 * nat/linux-btrace.c: Fix common/ includes.
13605 * nat/fork-inferior.c: Fix common/ includes.
13606 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13607 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13608 * nat/aarch64-linux.c: Fix common/ includes.
13609 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13610 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13611 * namespace.h: Fix common/ includes.
13612 * mips-linux-tdep.c: Fix common/ includes.
13613 * minsyms.c: Fix common/ includes.
13614 * mi/mi-parse.h: Fix common/ includes.
13615 * mi/mi-main.c: Fix common/ includes.
13616 * mi/mi-cmd-env.c: Fix common/ includes.
13617 * memrange.h: Fix common/ includes.
13618 * memattr.c: Fix common/ includes.
13619 * maint.h: Fix common/ includes.
13620 * maint.c: Fix common/ includes.
13621 * main.c: Fix common/ includes.
13622 * machoread.c: Fix common/ includes.
13623 * location.c: Fix common/ includes.
13624 * linux-thread-db.c: Fix common/ includes.
13625 * linux-nat.c: Fix common/ includes.
13626 * linux-fork.c: Fix common/ includes.
13627 * inline-frame.c: Fix common/ includes.
13628 * infrun.c: Fix common/ includes.
13629 * inflow.c: Fix common/ includes.
13630 * inferior.h: Fix common/ includes.
13631 * inferior.c: Fix common/ includes.
13632 * infcmd.c: Fix common/ includes.
13633 * inf-ptrace.c: Fix common/ includes.
13634 * inf-child.c: Fix common/ includes.
13635 * ia64-linux-nat.c: Fix common/ includes.
13636 * i387-tdep.c: Fix common/ includes.
13637 * i386-tdep.c: Fix common/ includes.
13638 * i386-linux-tdep.c: Fix common/ includes.
13639 * i386-linux-nat.c: Fix common/ includes.
13640 * i386-go32-tdep.c: Fix common/ includes.
13641 * i386-fbsd-tdep.c: Fix common/ includes.
13642 * i386-fbsd-nat.c: Fix common/ includes.
13643 * guile/scm-type.c: Fix common/ includes.
13644 * guile/guile.c: Fix common/ includes.
13645 * go32-nat.c: Fix common/ includes.
13646 * gnu-nat.c: Fix common/ includes.
13647 * gdbthread.h: Fix common/ includes.
13648 * gdbarch-selftests.c: Fix common/ includes.
13649 * gdb_usleep.c: Fix common/ includes.
13650 * gdb_select.h: Fix common/ includes.
13651 * gdb_bfd.c: Fix common/ includes.
13652 * gcore.c: Fix common/ includes.
13653 * fork-child.c: Fix common/ includes.
13654 * findvar.c: Fix common/ includes.
13655 * fbsd-nat.c: Fix common/ includes.
13656 * event-top.c: Fix common/ includes.
13657 * event-loop.c: Fix common/ includes.
13658 * dwarf2read.c: Fix common/ includes.
13659 * dwarf2loc.c: Fix common/ includes.
13660 * dwarf2-frame.c: Fix common/ includes.
13661 * dwarf-index-cache.c: Fix common/ includes.
13662 * dtrace-probe.c: Fix common/ includes.
13663 * disasm-selftests.c: Fix common/ includes.
13664 * defs.h: Fix common/ includes.
13665 * csky-tdep.c: Fix common/ includes.
13666 * cp-valprint.c: Fix common/ includes.
13667 * cp-support.h: Fix common/ includes.
13668 * cp-support.c: Fix common/ includes.
13669 * corelow.c: Fix common/ includes.
13670 * completer.h: Fix common/ includes.
13671 * completer.c: Fix common/ includes.
13672 * compile/compile.c: Fix common/ includes.
13673 * compile/compile-loc2c.c: Fix common/ includes.
13674 * compile/compile-cplus-types.c: Fix common/ includes.
13675 * compile/compile-cplus-symbols.c: Fix common/ includes.
13676 * command.h: Fix common/ includes.
13677 * cli/cli-dump.c: Fix common/ includes.
13678 * cli/cli-cmds.c: Fix common/ includes.
13679 * charset.c: Fix common/ includes.
13680 * build-id.c: Fix common/ includes.
13681 * btrace.h: Fix common/ includes.
13682 * btrace.c: Fix common/ includes.
13683 * breakpoint.h: Fix common/ includes.
13684 * breakpoint.c: Fix common/ includes.
13686 (enum agent_op): Fix common/ includes.
13687 * ax-general.c (struct aop_map): Fix common/ includes.
13688 * ax-gdb.c: Fix common/ includes.
13689 * auxv.c: Fix common/ includes.
13690 * auto-load.c: Fix common/ includes.
13691 * arm-tdep.c: Fix common/ includes.
13692 * arch/riscv.c: Fix common/ includes.
13693 * arch/ppc-linux-common.c: Fix common/ includes.
13694 * arch/i386.c: Fix common/ includes.
13695 * arch/arm.c: Fix common/ includes.
13696 * arch/arm-linux.c: Fix common/ includes.
13697 * arch/arm-get-next-pcs.c: Fix common/ includes.
13698 * arch/amd64.c: Fix common/ includes.
13699 * arch/aarch64.c: Fix common/ includes.
13700 * arch/aarch64-insn.c: Fix common/ includes.
13701 * arch-utils.c: Fix common/ includes.
13702 * amd64-windows-tdep.c: Fix common/ includes.
13703 * amd64-tdep.c: Fix common/ includes.
13704 * amd64-sol2-tdep.c: Fix common/ includes.
13705 * amd64-obsd-tdep.c: Fix common/ includes.
13706 * amd64-nbsd-tdep.c: Fix common/ includes.
13707 * amd64-linux-tdep.c: Fix common/ includes.
13708 * amd64-linux-nat.c: Fix common/ includes.
13709 * amd64-fbsd-tdep.c: Fix common/ includes.
13710 * amd64-fbsd-nat.c: Fix common/ includes.
13711 * amd64-dicos-tdep.c: Fix common/ includes.
13712 * amd64-darwin-tdep.c: Fix common/ includes.
13713 * agent.c: Fix common/ includes.
13714 * ada-lang.h: Fix common/ includes.
13715 * ada-lang.c: Fix common/ includes.
13716 * aarch64-tdep.c: Fix common/ includes.
13718 2019-01-25 Tom Tromey <tom@tromey.com>
13720 * common/create-version.sh: Use common/version.h.
13722 2019-01-24 Pedro Alves <palves@redhat.com>
13724 * infrun.c (signal_stop, signal_print, signal_program)
13725 (signal_catch, signal_pass): Now arrays instead of pointers.
13726 (update_signals_program_target, do_target_resume)
13727 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13728 * linux-nat.c (linux_nat_target::pass_signals)
13729 (linux_nat_target::create_inferior, linux_nat_target::attach):
13731 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13732 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13733 * procfs.c (procfs_target::pass_signals): Adjust.
13734 * record-full.c (record_full_target::resume): Adjust.
13735 * remote.c (remote_target::pass_signals)
13736 (remote_target::program_signals): Adjust.
13737 * target-debug.h (target_debug_print_signals): Now takes a
13738 gdb::array_view as parameter. Adjust.
13739 * target.h (target_ops) <pass_signals, program_signals>: Replace
13740 pointer and length parameters with gdb::array_view.
13741 (target_pass_signals, target_program_signals): Likewise.
13742 * target-delegates.c: Regenerate.
13744 2019-01-24 Pedro Alves <palves@redhat.com>
13746 * common/forward-scope-exit.h
13747 (forward_scope_exit::forward_scope_exit): Pass arguments to
13748 m_bind_function directly, instead of creating a std::bind and
13751 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13753 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13754 for static members.
13755 (pass_in_v_vfp_candidate): Likewise.
13757 2019-01-23 Tom Tromey <tom@tromey.com>
13758 Pedro Alves <palves@redhat.com>
13760 * regcache.c (class regcache_invalidator): Remove.
13761 (regcache::raw_write): Use make_scope_exit.
13763 2019-01-23 Tom Tromey <tom@tromey.com>
13765 * ui-out.h (class ui_out_emit_type): Update comment.
13767 2019-01-23 Tom Tromey <tom@tromey.com>
13769 * infrun.c (fetch_inferior_event): Update comment.
13771 2019-01-23 Tom Tromey <tom@tromey.com>
13772 Pedro Alves <palves@redhat.com>
13774 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13776 (fetch_inferior_event): Use SCOPE_EXIT.
13779 2019-01-23 Tom Tromey <tom@tromey.com>
13780 Pedro Alves <palves@redhat.com>
13782 * infrun.c (disable_thread_events): Delete.
13783 (stop_all_threads): Use SCOPE_EXIT.
13785 2019-01-23 Tom Tromey <tom@tromey.com>
13786 Pedro Alves <palves@redhat.com>
13788 * symfile.c: Include forward-scope-exit.h.
13789 (clear_symtab_users_cleanup): Replace forward declaration with
13790 a FORWARD_SCOPE_EXIT.
13791 (syms_from_objfile_1): Use the forward_scope_exit and
13792 gdb::optional instead of cleanup_function.
13793 (reread_symbols): Use the forward_scope_exit instead of
13795 (clear_symtab_users_cleanup): Remove function.
13797 2019-01-23 Tom Tromey <tom@tromey.com>
13798 Pedro Alves <palves@redhat.com>
13800 * linux-nat.c: Include scope-exit.h.
13801 (cleanup_target_stop): Remove.
13802 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13805 2019-01-23 Tom Tromey <tom@tromey.com>
13806 Pedro Alves <palves@redhat.com>
13808 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13809 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13811 2019-01-23 Tom Tromey <tom@tromey.com>
13812 Andrew Burgess <andrew.burgess@embecosm.com>
13813 Pedro Alves <palves@redhat.com>
13815 * infrun.c (fetch_inferior_event): Use scope_exit.
13816 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13817 * top.c (execute_command): Use scope_exit.
13818 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13819 * utils.c (do_bpstat_clear_actions_cleanup)
13820 (make_bpstat_clear_actions_cleanup): Remove.
13822 2019-01-23 Tom Tromey <tom@tromey.com>
13823 Pedro Alves <palves@redhat.com>
13825 * infrun.c: Include "common/scope-exit.h"
13826 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13827 (wait_for_inferior): Use SCOPE_EXIT.
13828 (fetch_inferior_event): Use scope_exit.
13830 2019-01-23 Tom Tromey <tom@tromey.com>
13831 Pedro Alves <palves@redhat.com>
13833 * breakpoint.c (create_breakpoint): Remove cleanup.
13835 2019-01-23 Tom Tromey <tom@tromey.com>
13836 Andrew Burgess <andrew.burgess@embecosm.com>
13837 Pedro Alves <palves@redhat.com>
13839 2019-01-23 Pedro Alves <palves@redhat.com>
13841 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13843 2019-01-23 Pedro Alves <palves@redhat.com>
13844 Andrew Burgess <andrew.burgess@embecosm.com>
13846 * gdbthread.h: Include "common/forward-scope-exit.h".
13847 (scoped_finish_thread_state): Redefine custom class in terms of
13848 forward_scope_exit.
13850 2019-01-23 Pedro Alves <palves@redhat.com>
13851 Andrew Burgess <andrew.burgess@embecosm.com>
13853 * common/forward-scope-exit.h: New file.
13855 2019-01-23 Pedro Alves <palves@redhat.com>
13856 Andrew Burgess <andrew.burgess@embecosm.com>
13857 Tom Tromey <tom@tromey.com>
13859 * common/scope-exit.h: New file.
13861 2019-01-23 Pedro Alves <palves@redhat.com>
13863 * common/preprocessor.h (ESC): Rename to ...
13864 (ESC_PARENS): ... this.
13865 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13866 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13868 2019-01-23 Tom Tromey <tom@tromey.com>
13870 * language.h (class scoped_switch_to_sym_language_if_auto):
13871 Initialize m_lang in both cases.
13873 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13875 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13878 2019-01-22 Tom Tromey <tom@tromey.com>
13880 * corelow.c: Do not include sys/file.h.
13882 2019-01-22 Tom Tromey <tom@tromey.com>
13884 * tui/tui-wingeneral.h: Include gdb_curses.h.
13886 2019-01-22 Tom Tromey <tom@tromey.com>
13888 * source-cache.h (class source_cache) <get_source_lines,
13889 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13891 2019-01-22 Tom Tromey <tom@tromey.com>
13893 * remote-fileio.h (struct remote_target): Declare.
13895 2019-01-22 Tom Tromey <tom@tromey.com>
13897 * python/py-arch.c: Do not include py-ref.h.
13898 * python/py-bpevent.c: Do not include py-ref.h.
13899 * python/py-cmd.c: Do not include py-ref.h.
13900 * python/py-continueevent.c: Do not include py-ref.h.
13901 * python/py-event.h: Do not include py-ref.h.
13902 * python/py-evtregistry.c: Do not include py-ref.h.
13903 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13904 * python/py-frame.c: Do not include py-ref.h.
13905 * python/py-framefilter.c: Do not include py-ref.h.
13906 * python/py-function.c: Do not include py-ref.h.
13907 * python/py-infevents.c: Do not include py-ref.h.
13908 * python/py-linetable.c: Do not include py-ref.h.
13909 * python/py-objfile.c: Do not include py-ref.h.
13910 * python/py-param.c: Do not include py-ref.h.
13911 * python/py-prettyprint.c: Do not include py-ref.h.
13912 * python/py-progspace.c: Do not include py-ref.h.
13913 * python/py-symbol.c: Do not include py-ref.h.
13914 * python/py-symtab.c: Do not include py-ref.h.
13915 * python/py-type.c: Do not include py-ref.h.
13916 * python/py-unwind.c: Do not include py-ref.h.
13917 * python/py-utils.c: Do not include py-ref.h.
13918 * python/py-value.c: Do not include py-ref.h.
13919 * python/py-varobj.c: Do not include py-ref.h.
13920 * python/py-xmethods.c: Do not include py-ref.h.
13921 * python/python.c: Do not include py-ref.h.
13922 * varobj.c: Do not include py-ref.h.
13924 2019-01-22 Tom Tromey <tom@tromey.com>
13926 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13927 keyword for bcache.
13929 2019-01-22 Tom Tromey <tom@tromey.com>
13931 * compile/compile-cplus-types.c: Remove a comment by #include.
13933 2019-01-22 Tom Tromey <tom@tromey.com>
13935 * compile/gcc-c-plugin.h: Include compile-internal.h.
13937 2019-01-22 Tom Tromey <tom@tromey.com>
13939 * stabsread.c (EXTERN): Do not define.
13940 (symnum, next_symbol_text_func, processing_gcc_compilation)
13941 (within_function, global_sym_chain, global_stabs)
13942 (previous_stab_code, this_object_header_files)
13943 (n_this_object_header_files)
13944 (n_allocated_this_object_header_files): Define.
13945 * stabsread.h (EXTERN): Never define. Use "extern".
13947 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13949 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13952 2019-01-21 Tom Tromey <tom@tromey.com>
13954 * ui-out.c: Fix includes.
13955 * tui/tui-source.c: Fix includes.
13956 * target.c: Fix includes.
13957 * remote.c: Fix includes.
13958 * regcache.c: Fix includes.
13959 * python/py-block.c: Fix includes.
13960 * printcmd.c: Fix includes.
13961 * or1k-tdep.c: Fix includes.
13962 * mi/mi-main.c: Fix includes.
13963 * m32r-tdep.c: Fix includes.
13964 * csky-tdep.c: Fix includes.
13965 * compile/compile-cplus-types.c: Fix includes.
13966 * cli/cli-interp.c: Fix includes.
13968 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13970 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13973 2019-01-16 Tom Tromey <tom@tromey.com>
13975 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13977 (struct objfile) <msymbols_range>: Move from top level.
13978 <msymbols>: New method.
13979 (class objfile_msymbols): Remove.
13980 * symtab.c (default_collect_symbol_completion_matches_break_on):
13982 * symmisc.c (dump_msymbols): Update.
13983 * stabsread.c (scan_file_globals): Update.
13984 * objc-lang.c (info_selectors_command, info_classes_command)
13985 (find_methods): Update.
13986 * minsyms.c (find_solib_trampoline_target): Update.
13987 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13988 * coffread.c (coff_symfile_read): Update.
13989 * ada-lang.c (ada_lookup_simple_minsym)
13990 (ada_collect_symbol_completion_matches): Update.
13992 2019-01-16 Tom Tromey <tom@tromey.com>
13994 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13995 type. Remove no-argument constructor.
13996 <iterator::operator++>: Simplify.
13998 <end>: Use minimal_symbol_count.
14000 2019-01-16 Tom Tromey <tom@tromey.com>
14002 * objfiles.h (struct objfile) <psymtabs>: New method.
14003 (class objfile_psymtabs): Remove.
14004 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14006 <range>: New method.
14007 (require_partial_symbols): Change return type.
14008 * psymtab.c (require_partial_symbols)
14009 (psym_expand_symtabs_matching): Update.
14010 * mdebugread.c (parse_partial_symbols): Update.
14011 * dbxread.c (dbx_end_psymtab): Update.
14013 2019-01-15 Tom Tromey <tom@tromey.com>
14015 * symtab.c (lookup_objfile_from_block)
14016 (lookup_symbol_in_objfile_symtabs)
14017 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14018 (find_line_symtab, info_sources_command)
14019 (default_collect_symbol_completion_matches_break_on)
14020 (make_source_files_completion_list): Update.
14021 * symmisc.c (print_objfile_statistics, dump_objfile)
14022 (maintenance_print_symbols, maintenance_info_symtabs)
14023 (maintenance_check_symtabs, maintenance_info_line_tables):
14025 * source.c (select_source_symtab)
14026 (forget_cached_source_info_for_objfile): Update.
14027 * objfiles.h (class objfile_compunits): Remove.
14028 (struct objfile) <compunits_range>: New typedef.
14029 (compunits): New method.
14030 * objfiles.c (objfile_relocate1): Update.
14031 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14032 * maint.c (count_symtabs_and_blocks): Update.
14033 * linespec.c (iterate_over_all_matching_symtabs): Update.
14034 * cp-support.c (add_symbol_overload_list_qualified): Update.
14035 * coffread.c (coff_symtab_read): Update.
14036 * ada-lang.c (add_nonlocal_symbols)
14037 (ada_collect_symbol_completion_matches)
14038 (ada_add_global_exceptions): Update.
14040 2019-01-15 Tom Tromey <tom@tromey.com>
14042 * progspace.h (program_space) <objfiles_safe_range>: New
14044 <objfiles_safe>: New method.
14045 * objfiles.h (class all_objfiles_safe): Remove.
14046 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14047 * jit.c (jit_inferior_exit_hook): Update.
14049 2019-01-17 Tom Tromey <tom@tromey.com>
14051 * progspace.h (program_space) <objfiles_range>: New typedef.
14052 <objfiles>: New method.
14053 <objfiles_head>: Rename from objfiles.
14054 (object_files): Update.
14055 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14056 * guile/scm-pretty-print.c
14057 (ppscm_find_pretty_printer_from_objfiles): Update.
14058 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14059 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14061 * python/py-progspace.c (pspy_get_objfiles): Update.
14062 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14064 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14065 (objfpy_lookup_objfile_by_build_id): Update.
14066 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14067 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14069 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14070 (expand_symtab_containing_pc, lookup_objfile_from_block)
14071 (lookup_static_symbol, basic_lookup_transparent_type)
14072 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14073 (find_line_symtab, info_sources_command)
14074 (default_collect_symbol_completion_matches_break_on)
14075 (make_source_files_completion_list, find_main_name): Update.
14076 * symmisc.c (print_symbol_bcache_statistics)
14077 (print_objfile_statistics, maintenance_print_symbols)
14078 (maintenance_print_msymbols, maintenance_print_objfiles)
14079 (maintenance_info_symtabs, maintenance_check_symtabs)
14080 (maintenance_expand_symtabs, maintenance_info_line_tables):
14082 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14083 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14084 (map_overlay_command, unmap_overlay_command)
14085 (simple_overlay_update, expand_symtabs_matching)
14086 (map_symbol_filenames): Update.
14087 * symfile-debug.c (set_debug_symfile): Update.
14088 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14090 * source.c (select_source_symtab, forget_cached_source_info):
14092 * solib.c (solib_read_symbols): Update.
14093 * solib-spu.c (append_ocl_sos): Update.
14094 * psymtab.c (maintenance_print_psymbols)
14095 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14096 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14097 * printcmd.c (info_symbol_command): Update.
14098 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14100 * objfiles.h (class all_objfiles): Remove.
14101 * objfiles.c (have_partial_symbols, have_full_symbols)
14102 (have_minimal_symbols, qsort_cmp, update_section_map)
14103 (shared_objfile_contains_address_p)
14104 (default_iterate_over_objfiles_in_search_order): Update.
14105 * objc-lang.c (info_selectors_command, info_classes_command)
14106 (find_methods): Update.
14107 * minsyms.c (find_solib_trampoline_target): Update.
14108 * maint.c (maintenance_info_sections)
14109 (maintenance_translate_address, count_symtabs_and_blocks):
14111 * main.c (captured_main_1): Update.
14112 * linux-thread-db.c (try_thread_db_load_from_pdir)
14113 (has_libpthread): Update.
14114 * linespec.c (iterate_over_all_matching_symtabs)
14115 (search_minsyms_for_name): Update.
14116 * jit.c (jit_find_objf_with_entry_addr): Update.
14117 * hppa-tdep.c (find_unwind_entry)
14118 (hppa_lookup_stub_minimal_symbol): Update.
14119 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14121 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14122 (elf_gnu_ifunc_resolve_by_got): Update.
14123 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14124 * dwarf-index-write.c (save_gdb_index_command): Update.
14125 * cp-support.c (add_symbol_overload_list_qualified): Update.
14126 * breakpoint.c (create_overlay_event_breakpoint)
14127 (create_longjmp_master_breakpoint)
14128 (create_std_terminate_master_breakpoint)
14129 (create_exception_master_breakpoint): Update.
14130 * blockframe.c (find_pc_partial_function): Update.
14131 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14132 (ada_collect_symbol_completion_matches)
14133 (ada_add_global_exceptions): Update.
14135 2019-01-17 Tom Tromey <tom@tromey.com>
14137 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14139 (solib_target_parse_libraries): Change return type.
14140 (library_list_start_segment, library_list_start_section)
14141 (library_list_end_library, library_list_start_library); Update.
14142 (solib_target_free_library_list): Remove.
14143 (solib_target_parse_libraries): Remove cleanup. Change return
14145 (solib_target_current_sos): Update.
14147 2019-01-17 Tom Tromey <tromey@bapiya>
14149 * valprint.c: Replace "the the" with "the".
14150 * symtab.c: Replace "the the" with "the".
14151 * solib.c: Replace "the the" with "the".
14152 * solib-dsbt.c: Replace "the the" with "the".
14153 * linespec.c: Replace "the the" with "the".
14154 * dwarf2loc.h: Replace "the the" with "the".
14155 * amd64-windows-tdep.c: Replace "the the" with "the".
14156 * aarch64-tdep.c: Replace "the the" with "the".
14158 2019-01-16 Keith Seitz <keiths@redhat.com>
14161 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14162 <builder>: Rename to ..
14163 <m_builder>: ... this and make private.
14164 (dwarf2_cu::get_builder): New method. Change all users of
14165 `builder' to use this method.
14166 (dwarf2_start_symtab): Move to ...
14167 (dwarf2_cu::start_symtab): ... here. Update all callers
14168 (setup_type_unit_groups): Move to ...
14169 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14171 (dwarf2_cu::reset_builder): New method.
14172 (process_full_compunit, process_full_type_unit): Use
14173 dwarf2_cu::reset_builder.
14174 (follow_die_offset): Record the ancestor CU if it is different
14175 from the followed DIE's CU.
14176 (follow_die_sig_1): Likewise.
14178 2019-01-15 Tom Tromey <tom@tromey.com>
14180 * remote.c (class remote_state) <buf>: Now a char_vector.
14181 <buf_size>: Remove.
14182 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14184 (remote_target::getpkt_or_notif_sane_1)
14185 (remote_target::getpkt_sane)
14186 (remote_target::getpkt_or_notif_sane): Likewise.
14187 (class remote_target) <putpkt>: New overload.
14188 (remote_target::read_frame): Change type of "buf_p". Remove
14189 sizeof_p parameter.
14190 (packet_ok): New overload.
14191 (packet_check_result): New overload.
14194 2019-01-14 Tom Tromey <tom@tromey.com>
14196 * remote-notif.c (handle_notification, remote_notif_ack)
14197 (remote_notif_parse): Make "buf" const.
14198 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14200 (remote_notif_parse, remote_notif_ack, handle_notification):
14202 * remote.c (remote_notif_stop_parse): Make "buf" const.
14203 (remote_target::remote_parse_stop_reply): Make "buf" const.
14204 (remote_notif_stop_ack): Make "buf" const.
14206 2019-01-14 Tom Tromey <tom@tromey.com>
14208 * remote.c (remote_console_output): Make parameter const.
14210 2019-01-14 Tom Tromey <tom@tromey.com>
14212 * target-debug.h (target_debug_print_signals): Constify.
14213 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14214 * procfs.c (procfs_target::pass_signals): Update.
14215 * linux-nat.c (linux_nat_target::pass_signals): Update.
14216 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14217 * target-delegates.c: Rebuild.
14218 * remote.c (remote_target::program_signals): Update.
14219 (remote_target::pass_signals): Update.
14220 * target.c (target_pass_signals): Constify argument.
14221 (target_program_signals): Likewise.
14222 * target.h (struct target_ops) <pass_signals, program_signals>:
14224 (target_pass_signals, target_program_signals): Constify argument.
14226 2019-01-14 Tom Tromey <tom@tromey.com>
14229 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14231 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14233 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14235 * rs6000-tdep.c: Include reggroups.h.
14236 (IS_V_ALIAS_PSEUDOREG): Define.
14237 (rs6000_register_name): Return names for the "vX" aliases.
14238 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14239 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14240 aliases. Call default_register_reggroup_p for all other
14242 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14244 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14245 Handle "vX" aliases.
14246 (v_alias_pseudo_register_collect): New function.
14247 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14248 (rs6000_gdbarch_init): Initialize "vX" aliases as
14249 pseudo-registers. Restore registration of
14250 rs6000_pseudo_register_reggroup_p with
14251 set_tdesc_pseudo_register_reggroup_p.
14253 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14255 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14256 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14257 set_gdbarch_num_pseudo_regs.
14259 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14261 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14262 Remove arg prefixname, add do_set and do_show.
14263 Add member functions set_list and show_list.
14264 * cli/cli-style.c (class cli_style_option): Update accordingly.
14265 (style_set_list): Move to file scope.
14266 (style_show_list): Likewise.
14267 (set_style): Call help_list.
14268 (show_style): Call cmd_show_list.
14269 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14270 Update to use the new macro.
14272 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14274 * ada-lang.c (_initialize_ada_language): Expand the help text
14275 for the "catch exception" command.
14277 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14279 * symtab.c (matching_obj_sections): Initialize obj,
14280 declare it closer to its usage.
14282 2019-01-10 Tom Tromey <tom@tromey.com>
14284 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14285 (basic_inf_threads_range): Remove.
14286 (inf_threads_range, inf_non_exited_threads_range)
14287 (safe_inf_threads_range): Use next_adapter.
14289 2019-01-10 Keith Seitz <keiths@redhat.com>
14293 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14294 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14296 2019-01-10 Keith Seitz <keiths@redhat.com>
14300 * dictionary.c (pending_to_vector): Remove.
14301 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14302 Remove _1 suffix, replacing functions of the same name. Update
14304 (dict_create_hashed, dict_create_hashed_expandable)
14305 (dict_create_linear, dict_create_linear_expandable, dict_free)
14306 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14307 Make functions static.
14309 2019-01-10 Keith Seitz <keiths@redhat.com>
14313 * dictionary.h (struct dictionary): Replace declaration with
14315 (dict_create_hashed, dict_create_hashed_expandable)
14316 (dict_create_linear, dict_create_linear_expandable)
14317 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14318 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14319 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14320 taking multidictionary argument.
14321 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14322 * block.h (struct block) <dict>: Change to multidictionary
14323 and rename `multidict'.
14324 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14325 symmisc.c: Update all dictionary references to multidictionary.
14327 2019-01-10 Keith Seitz <keiths@redhat.com>
14331 * dictionary.c: Include unordered_map.
14332 (pending_to_vector): New function.
14333 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14334 Rewrite the non-"_1" functions to take vector instead
14336 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14337 "new" _1 versions of the same name.
14338 (multidictionary): Define.
14339 (std::hash<enum language): New definition.
14340 (collate_pending_symbols_by_language, mdict_create_hashed)
14341 (mdict_create_hashed_expandable, mdict_create_linear)
14342 (mdict_create_linear_expandable, mdict_free)
14343 (find_language_dictionary, create_new_language_dictionary)
14344 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14345 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14346 (mdict_size, mdict_empty): New functions.
14347 * dictionary.h (mdict_iterator): Define.
14349 2019-01-10 Pedro Alves <palves@redhat.com>
14351 * breakpoint.c (read_uploaded_action)
14352 (create_tracepoint_from_upload): Adjust to use
14353 gdb::unique_xmalloc_ptr.
14354 * ctf.c (ctf_write_uploaded_tp):
14355 (SET_ARRAY_FIELD): Use emplace_back.
14356 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14357 * tracefile-tfile.c (tfile_write_uploaded_tp):
14358 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14359 gdb::unique_xmalloc_ptr.
14360 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14361 at_string, cond_string, cmd_strings>: Replace char pointers
14362 with gdb::unique_xmalloc_ptr.
14364 2019-01-10 Pedro Alves <palves@redhat.com>
14366 * solib-target.c (library_list_start_library): Don't xstrdup name.
14368 2019-01-10 Pedro Alves <palves@redhat.com>
14370 * mdebugread.c (parse_partial_symbols): Use
14371 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14373 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14375 * linux-fork.c (scoped_switch_fork_info)
14376 <~scoped_switch_fork_info>: Fix incorrect variable name.
14378 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14380 * linux-fork.c (scoped_switch_fork_info)
14381 <scoped_switch_fork_info>: Make explicit.
14382 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14384 2019-01-10 Tom Tromey <tom@tromey.com>
14386 * objfiles.h (objfile::reset_psymtabs): Update.
14387 * objfiles.c (objfile::objfile): Update.
14388 * psymtab.h (psymtab_storage::obstack): Update.
14389 (psymtab_storage::m_obstack): Use gdb::optional.
14390 (class psymtab_storage): Update comment. Remove objfile
14392 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14394 2019-01-10 Tom Tromey <tom@tromey.com>
14396 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14397 <free_psymtabs>: Now private.
14398 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14399 (allocate_psymtab): Use new method.
14401 2019-01-10 Tom Tromey <tom@tromey.com>
14403 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14404 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14405 * mdebugread.c (parse_partial_symbols): Use
14406 allocate_dependencies.
14407 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14408 allocate_dependencies.
14409 (process_psymtab_comp_unit_reader)
14410 (build_type_psymtab_dependencies): Likewise.
14411 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14413 2019-01-10 Tom Tromey <tom@tromey.com>
14415 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14416 PSYMBOL_SET_LANGUAGE.
14417 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14419 2019-01-10 Tom Tromey <tom@tromey.com>
14421 * psymtab.h (psymtab_storage::obstack): New method.
14422 <m_obstack>: Rename from obstack; now private.
14423 * psymtab.c (psymtab_storage): Update.
14424 * dwarf2read.c (create_addrmap_from_index)
14425 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14428 2019-01-10 Tom Tromey <tom@tromey.com>
14430 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14431 * objfiles.h (objfile::reset_psymtabs): New method.
14433 2019-01-10 Tom Tromey <tom@tromey.com>
14435 * symmisc.c (print_symbol_bcache_statistics): Update.
14436 (print_objfile_statistics): Update.
14437 * symfile.c (reread_symbols): Update.
14438 * psymtab.h (class psymtab_storage): New.
14439 * psymtab.c (psymtab_storage): New constructor.
14440 (~psymtab_storage): New destructor.
14441 (require_partial_symbols): Update.
14442 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14443 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14444 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14445 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14446 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14447 (start_psymtab_common, end_psymtab_common)
14448 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14449 (allocate_psymtab): Update.
14450 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14452 (dump_psymtab_addrmap, maintenance_print_psymbols)
14453 (maintenance_check_psymtabs): Update.
14454 (class objfile_psymtabs): Move to objfiles.h.
14455 * psympriv.h (discard_psymtab): Now inline.
14456 (psymtab_discarder::psymtab_discarder): Update.
14457 (psymtab_discarder::~psymtab_discarder): Update.
14458 (ALL_OBJFILE_PSYMTABS): Rewrite.
14459 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14460 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14462 <partial_symtabs>: New field.
14463 (class objfile_psymtabs): Move from psymtab.h. Update.
14464 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14466 (objfile::~objfile): Don't destroy psymbol_cache.
14467 * mdebugread.c (parse_partial_symbols): Update.
14468 * dwarf2read.c (create_addrmap_from_index)
14469 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14470 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14471 (add_partial_subprogram, dwarf2_ranges_read): Update.
14472 * dwarf-index-write.c (write_address_map)
14473 (write_one_signatured_type, recursively_write_psymbols)
14474 (class debug_names, class debug_names, write_psymtabs_to_index):
14477 2019-01-10 Tom Tromey <tom@tromey.com>
14479 * symtab.h (SYMBOL_SET_NAMES): Update.
14480 (symbol_set_names): Update.
14481 (MSYMBOL_SET_NAMES): Update.
14482 * symtab.c (symbol_set_names): Change argument to be an
14483 objfile_per_bfd_storage.
14484 * psymtab.c (add_psymbol_to_bcache): Update.
14485 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14487 2019-01-10 Tom Tromey <tom@tromey.com>
14489 * symtab.c (create_demangled_names_hash): Change argument to be an
14490 objfile_per_bfd_storage.
14491 (symbol_set_names): Update.
14493 2019-01-10 Tom Tromey <tom@tromey.com>
14495 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14497 * psymtab.c (init_psymbol_list): Do nothing if already called.
14498 * psympriv.h (init_psymbol_list): Add comment.
14499 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14501 * dbxread.c (dbx_symfile_read): Unconditionally call
14504 2019-01-10 Tom Tromey <tom@tromey.com>
14506 * xcoffread.c (scan_xcoff_symtab): Update.
14507 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14509 * mdebugread.c (parse_partial_symbols)
14510 (handle_psymbol_enumerators): Update.
14511 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14512 * dbxread.c (read_dbx_symtab): Update.
14513 * psympriv.h (psymbol_placement): New enum.
14514 (add_psymbol_to_list): Update.
14516 2019-01-10 Tom Tromey <tom@tromey.com>
14518 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14519 static_psymbols parameters.
14520 (scan_xcoff_symtab): Update.
14521 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14522 static_psymbols parameters.
14523 * psympriv.h (start_psymtab_common): Update.
14524 * mdebugread.c (parse_partial_symbols): Update.
14525 * dwarf2read.c (create_partial_symtab): Update.
14526 * dbxread.c (read_dbx_symtab): Update.
14527 (start_psymtab): Remove global_psymbols and static_psymbols
14530 2019-01-10 Tom Tromey <tom@tromey.com>
14532 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14533 * psymtab.c (allocate_psymtab): Add comment.
14534 * psympriv.h (allocate_psymtab): Add comment.
14535 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14537 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14539 2019-01-10 Tom Tromey <tom@tromey.com>
14541 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14543 * mipsread.c: Include mdebugread.h.
14544 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14546 * elfread.c: Include mdebugread.h.
14548 2019-01-09 Tom Tromey <tom@tromey.com>
14550 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14551 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14552 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14553 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14554 (psym_lookup_symbol, psym_find_last_source_symtab)
14555 (psym_forget_cached_source_info, psym_print_stats)
14556 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14557 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14558 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14559 (psym_find_compunit_symtab_by_address)
14560 (maintenance_print_psymbols, maintenance_info_psymtabs)
14561 (maintenance_check_psymtabs): Use ranged for.
14562 * psymtab.h (class objfile_psymtabs): New.
14563 (require_partial_symbols): Return objfile_psymtabs.
14564 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14566 2019-01-09 Tom Tromey <tom@tromey.com>
14568 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14569 (find_pc_mapped_section, list_overlays_command)
14570 (map_overlay_command, unmap_overlay_command)
14571 (simple_overlay_update): Use all_objfiles.
14572 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14573 * printcmd.c (info_symbol_command): Use all_objfiles.
14574 * objfiles.h (ALL_OBJSECTIONS): Remove.
14575 * maint.c (maintenance_translate_address): Use all_objfiles.
14576 * gcore.c (gcore_create_callback): Use all_objfiles.
14577 (objfile_find_memory_regions): Likewise.
14579 2019-01-09 Tom Tromey <tom@tromey.com>
14581 * symtab.c (find_line_symtab, info_sources_command)
14582 (make_source_files_completion_list): Use objfile_compunits.
14583 * source.c (select_source_symtab): Use objfile_compunits.
14584 * objfiles.h (struct objfile): Update comment.
14585 (ALL_OBJFILES): Remove.
14586 (ALL_FILETABS): Remove.
14587 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14590 2019-01-09 Tom Tromey <tom@tromey.com>
14592 * symmisc.c (print_objfile_statistics, dump_objfile)
14593 (maintenance_print_symbols): Use compunit_filetabs.
14594 * source.c (forget_cached_source_info_for_objfile): Use
14596 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14597 (ALL_FILETABS): Use compunit_filetabs.
14598 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14599 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14601 2019-01-09 Tom Tromey <tom@tromey.com>
14603 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14604 (compunit_filetabs): New.
14605 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14607 (info_sources_command, make_source_files_completion_list): Remove
14609 * symmisc.c (print_objfile_statistics, dump_objfile)
14610 (maintenance_print_symbols): Remove declaration.
14611 (maintenance_info_symtabs): Use compunit_filetabs.
14612 (maintenance_info_line_tables): Likewise.
14613 * source.c (select_source_symtab): Change local variable name.
14614 (forget_cached_source_info_for_objfile): Remove declaration.
14615 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14616 * objfiles.c (objfile_relocate1): Remove declaration.
14617 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14619 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14620 * coffread.c (coff_symtab_read): Remove declaration.
14621 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14624 2019-01-09 Tom Tromey <tom@tromey.com>
14626 * symtab.c (lookup_objfile_from_block)
14627 (find_pc_sect_compunit_symtab, search_symbols)
14628 (default_collect_symbol_completion_matches_break_on): Use
14630 * objfiles.h (ALL_COMPUNITS): Remove.
14631 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14632 * cp-support.c (add_symbol_overload_list_qualified): Use
14634 * ada-lang.c (ada_collect_symbol_completion_matches)
14635 (ada_add_global_exceptions): Use objfile_compunits.
14637 2019-01-09 Tom Tromey <tom@tromey.com>
14639 * source.c (select_source_symtab)
14640 (forget_cached_source_info_for_objfile): Remove declaration.
14641 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14643 * maint.c (count_symtabs_and_blocks): Remove declaration.
14644 * cp-support.c (add_symbol_overload_list_qualified): Remove
14646 * coffread.c (coff_symtab_read): Remove declaration.
14647 * symtab.c (lookup_symbol_in_objfile_symtabs)
14648 (basic_lookup_transparent_type_1): Use objfile_compunits.
14649 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14650 (info_sources_command, search_symbols)
14651 (default_collect_symbol_completion_matches_break_on)
14652 (make_source_files_completion_list): Remove declaration.
14653 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14654 (ada_collect_symbol_completion_matches)
14655 (ada_add_global_exceptions): Remove declaration.
14656 * linespec.c (iterate_over_all_matching_symtabs): Use
14658 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14659 (class objfile_compunits): New.
14660 (ALL_COMPUNITS): Use objfile_compunits.
14661 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14662 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14664 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14666 2019-01-09 Tom Tromey <tom@tromey.com>
14668 * symtab.c (search_symbols)
14669 (default_collect_symbol_completion_matches_break_on): Use
14671 * ada-lang.c (ada_lookup_simple_minsym)
14672 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14673 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14674 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14676 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14677 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14678 * objc-lang.c (find_methods): Use objfile_msymbols.
14679 (info_selectors_command, info_classes_command): Likewise.
14680 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14681 * objfiles.h (class objfile_msymbols): New.
14682 (ALL_OBJFILE_MSYMBOLS): Remove.
14683 (ALL_MSYMBOLS): Remove.
14685 2019-01-09 Tom Tromey <tom@tromey.com>
14687 * common/next-iterator.h (next_adapter): Add Iterator template
14689 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14690 (class all_objfiles_safe): New.
14691 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14692 * objfiles.c (put_objfile_before): Update comment.
14693 (add_separate_debug_objfile): Likewise.
14694 (free_all_objfiles): Use all_objfiles_safe.
14695 (objfile_purge_solibs): Likewise.
14697 2019-01-09 Tom Tromey <tom@tromey.com>
14699 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14700 (expand_symtab_containing_pc, lookup_static_symbol)
14701 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14702 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14704 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14705 * breakpoint.c (create_overlay_event_breakpoint)
14706 (create_longjmp_master_breakpoint)
14707 (create_std_terminate_master_breakpoint)
14708 (create_exception_master_breakpoint): Use all_objfiles.
14709 * linux-thread-db.c (try_thread_db_load_from_pdir)
14710 (has_libpthread): Use all_objfiles.
14711 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14712 * linespec.c (iterate_over_all_matching_symtabs)
14713 (search_minsyms_for_name): Use all_objfiles.
14714 * maint.c (maintenance_info_sections): Use all_objfiles.
14715 * main.c (captured_main_1): Use all_objfiles.
14716 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14717 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14718 * guile/scm-pretty-print.c
14719 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14720 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14721 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14722 (maintenance_print_msymbols): Use all_objfiles.
14723 * source.c (select_source_symtab): Use all_objfiles.
14724 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14725 * symfile.c (remove_symbol_file_command)
14726 (expand_symtabs_matching, map_symbol_filenames): Use
14728 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14730 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14731 * objc-lang.c (find_methods): Use all_objfiles.
14732 * objfiles.c (have_partial_symbols, have_full_symbols)
14733 (have_minimal_symbols, qsort_cmp)
14734 (default_iterate_over_objfiles_in_search_order): Use
14736 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14737 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14738 (maintenance_check_psymtabs): Use all_objfiles.
14739 (ALL_PSYMTABS): Remove.
14740 * compile/compile-object-run.c (do_module_cleanup): Use
14742 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14743 * cp-support.c (add_symbol_overload_list_qualified): Use
14745 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14747 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14748 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14750 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14751 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14752 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14754 * solib.c (solib_read_symbols): Use all_objfiles
14756 2019-01-09 Tom Tromey <tom@tromey.com>
14758 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14759 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14761 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14762 * symmisc.c (print_symbol_bcache_statistics)
14763 (print_objfile_statistics, maintenance_print_objfiles)
14764 (maintenance_info_symtabs, maintenance_check_symtabs)
14765 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14767 * source.c (forget_cached_source_info): Use all_objfiles.
14768 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14769 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14770 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14771 * objfiles.c (update_section_map): Use all_objfiles.
14772 (shared_objfile_contains_address_p): Likewise.
14773 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14774 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14776 2019-01-09 Tom Tromey <tom@tromey.com>
14778 * common/next-iterator.h: New file.
14779 * objfiles.h (class all_objfiles): New.
14780 (struct objfile_iterator): New.
14782 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14784 * NEWS: Move the description of the changed "frame", "select-frame",
14785 and "info frame" commands to the Changed commands section.
14787 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14789 * gdbtypes.c (check_stub_method_group): Remove handling of old
14791 * linespec.c (find_methods): Likewise.
14792 * stabsread.c (read_member_functions): Likewise.
14793 * valops.c (search_struct_method): Likewise.
14794 (value_struct_elt_for_reference): Likewise.
14795 * NEWS: Mention this change.
14797 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14799 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14800 print_source_lines.
14801 * source.c (print_source_lines_base): Update line number check.
14802 (print_source_lines): New function.
14803 (source_lines_range::source_lines_range): New function.
14804 * source.h (class source_lines_range): New class.
14805 (print_source_lines): New declaration.
14807 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14809 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14811 2019-01-08 Tom Tromey <tom@tromey.com>
14812 Simon Marchi <simon.marchi@ericsson.com>
14815 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14816 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14817 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14818 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14819 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14820 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14822 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14824 * source.c (select_source_symtab): Move header comment to
14825 declaration in source.h.
14826 (forget_cached_source_info_for_objfile): Likewise.
14827 (forget_cached_source_info): Likewise.
14828 (identify_source_line): Likewise.
14829 * source.h (identify_source_line): Move declaration from symtab.h
14830 and add comment from source.c
14831 (print_source_lines): Likewise.
14832 (forget_cached_source_info_for_objfile): Likewise.
14833 (forget_cached_source_info): Likewise.
14834 (select_source_symtab): Likewise.
14835 (enum print_source_lines_flag): Move definition from symtab.h.
14836 * symtab.h (identify_source_line): Move declaration to source.h.
14837 (print_source_lines): Likewise.
14838 (forget_cached_source_info_for_objfile): Likewise.
14839 (forget_cached_source_info): Likewise.
14840 (select_source_symtab): Likewise.
14841 (enum print_source_lines_flag): Move definition to source.h.
14842 * tui/tui-hooks.c: Add 'source.h' include.
14844 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14846 * source.c (print_source_lines_base): Handle requests to print
14847 reverse line number sequences, and guard against empty lines
14850 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14852 * source.c (print_source_lines_base): Fix skip of '\r' if next
14855 2019-01-06 Tom Tromey <tom@tromey.com>
14857 * c-exp.y (struct c_parse_state) <macro_original_text,
14858 expansion_obstack>: New member.
14859 (macro_original_text, expansion_obstack): Remove globals.
14860 (scan_macro_expansion, scanning_macro_expansion)
14861 (finished_macro_expansion): Update.
14862 (scan_macro_cleanup): Remove.
14863 (yylex, c_parse): Update.
14865 2019-01-06 Tom Tromey <tom@tromey.com>
14867 * c-exp.y (struct c_parse_state) <strings>: New member.
14868 (operator_stoken): Update.
14870 2019-01-06 Tom Tromey <tom@tromey.com>
14872 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14873 (union type_stack_elt) <typelist_val>: Now a pointer to
14875 (type_stack_cleanup): Don't declare.
14876 (push_typelist): Update.
14877 * parse.c (pop_typelist): Return a std::vector.
14878 (push_typelist): Take a std::vector.
14879 (follow_types): Update. Do not free args.
14880 (type_stack_cleanup): Remove.
14881 * c-exp.y (struct c_parse_state): New.
14882 (cpstate): New global.
14883 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14884 (nonempty_typelist): Update.
14885 (func_mod): Create a new vector.
14886 (c_parse): Create a c_parse_state.
14887 (check_parameter_typelist): Do not delete params.
14888 (function_method): Update. Do not delete type_list.
14890 2019-01-06 Tom Tromey <tom@tromey.com>
14893 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14895 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14896 (print_return_value): Likewise.
14898 2019-01-05 Tom Tromey <tom@tromey.com>
14900 * contrib/cleanup_check.py: Remove.
14901 * contrib/gcc-with-excheck: Remove.
14902 * contrib/exsummary.py: Remove.
14903 * contrib/excheck.py: Remove.
14905 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14907 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14908 NULL. Initialize tpprev to NULL instead of assigning it
14909 to NULL on the next statement.
14910 * windows-nat.c (windows_delete_thread): Remove check for
14911 main_thread_id before printing thread exit notifications.
14912 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14913 Remove thread ID check against main_thread_id.
14914 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14915 windows_delete_thread.
14916 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14918 2019-01-04 Tom Tromey <tom@tromey.com>
14920 * compile/compile.c (_initialize_compile): Use upper case for
14921 metasyntactic variables.
14922 * symmisc.c (_initialize_symmisc): Use upper case for
14923 metasyntactic variables.
14924 * psymtab.c (_initialize_psymtab): Use upper case for
14925 metasyntactic variables.
14926 * demangle.c (demangle_command): Use upper case for metasyntactic
14928 (_initialize_demangler): Likewise.
14929 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14932 2019-01-03 Tom Tromey <tom@tromey.com>
14934 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14936 2019-01-03 Tom Tromey <tom@tromey.com>
14938 * python/py-symtab.c (salpy_str): Update.
14939 (struct salpy_sal_object) <symtab>: Now a PyObject.
14940 (salpy_dealloc): Update.
14941 (del_objfile_sal): Use gdbpy_ref.
14943 2019-01-03 Tom Tromey <tom@tromey.com>
14945 * python/py-type.c (convert_field): Use new_reference. Return
14947 (make_fielditem): Return gdbpy_ref.
14948 (typy_fields): Update.
14949 (typy_getitem): Update.
14950 (field_name): Return gdbpy_ref. Use new_reference.
14951 (typy_iterator_iternext): Update.
14953 2019-01-03 Tom Tromey <tom@tromey.com>
14955 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14957 2019-01-03 Tom Tromey <tom@tromey.com>
14959 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14960 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14961 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14962 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14963 (pspy_set_type_printers): Likewise.
14964 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14965 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14966 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14967 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14968 (objfpy_set_type_printers): Likewise.
14970 2019-01-03 Tom Tromey <tom@tromey.com>
14972 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14973 (gdbpy_print_stack): Use gdbpy_err_fetch.
14974 * python/python-internal.h (class gdbpy_err_fetch): New class.
14975 (class gdbpy_enter) <m_error_type, m_error_value,
14976 m_error_traceback>: Remove.
14977 <m_error>: New member.
14978 (gdbpy_exception_to_string): Don't declare.
14979 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14980 * python/py-value.c (convert_value_from_python): Use
14982 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14983 gdbpy_exception_to_string.
14984 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14985 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14988 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14990 * linux-nat.c (delete_lwp_cleanup): Delete.
14991 (struct lwp_deleter): New struct.
14992 (lwp_info_up): New typedef.
14993 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14996 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14998 * linux-fork.c (class scoped_switch_fork_info): New class.
14999 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15001 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15003 * valops.c (find_overload_match): Remove use of null_cleanup, and
15004 calls to do_cleanups.
15006 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15008 * compile/compile-cplus-types.c
15009 (compile_cplus_instance::decl_name): Handle changes to
15011 * cp-support.c (cp_func_name): Update header comment, update
15013 * cp-support.h (cp_func_name): Update return type in declaration.
15014 * valops.c (find_overload_match): Move temp_func local to top
15015 level of function and change its type. Use temp_func to hold and
15016 delete temporary string obtained from cp_func_name.
15018 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15020 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15021 gdb::char_vector, remove cleanup, and update uses of `msg`.
15023 2019-01-03 Jim Wilson <jimw@sifive.com>
15025 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15027 2019-01-02 Tom Tromey <tom@tromey.com>
15029 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15030 (tdesc_parse_xml): Remove cleanups.
15031 * target-descriptions.h (make_cleanup_free_target_description):
15033 (target_desc_deleter): New struct.
15034 (target_desc_up): New typedef.
15035 * target-descriptions.c (target_desc_deleter::operator()): Rename
15036 from free_target_description.
15037 (make_cleanup_free_target_description): Remove.
15039 2019-01-02 Tom Tromey <tom@tromey.com>
15041 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15042 constructor, destructor.
15043 (linespec_parser): Remove typedef.
15044 (~linespec_parser): Rename from linespec_parser_delete.
15045 (linespec_lex_to_end, linespec_complete_label)
15046 (linespec_complete): Update.
15047 (decode_line_full): Remove cleanups.
15048 (decode_line_1): Update.
15050 2019-01-02 Tom Tromey <tom@tromey.com>
15052 * python/python-internal.h (inferior_to_inferior_object): Change
15054 * python/py-exitedevent.c (create_exited_event_object): Update.
15055 * python/py-inferior.c (inferior_to_inferior_object): Return
15057 (python_new_inferior, python_inferior_deleted)
15058 (thread_to_thread_object, delete_thread_object)
15059 (build_inferior_list, gdbpy_selected_inferior): Update.
15060 * python/py-infthread.c (create_thread_object): Update. Also fail
15061 if inferior_to_inferior_object fails.
15063 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15065 * inferior.h (class inferior) <displaced_step_state>: New field.
15066 * infrun.h (struct displaced_step_state): Move here from
15067 infrun.c. Initialize fields, add constructor.
15068 <inf>: Remove field.
15069 <reset>: New method.
15070 * infrun.c (struct displaced_step_inferior_state): Move to
15072 (displaced_step_inferior_states): Remove.
15073 (get_displaced_stepping_state): Adust.
15074 (displaced_step_in_progress_any_inferior): Adjust.
15075 (displaced_step_in_progress_thread): Adjust.
15076 (displaced_step_in_progress): Adjust.
15077 (add_displaced_stepping_state): Remove.
15078 (get_displaced_step_closure_by_addr): Adjust.
15079 (remove_displaced_stepping_state): Remove.
15080 (infrun_inferior_exit): Call displaced_step_state.reset.
15081 (use_displaced_stepping): Don't check for NULL.
15082 (displaced_step_prepare_throw): Call
15083 get_displaced_stepping_state.
15084 (displaced_step_fixup): Don't check for NULL.
15085 (prepare_for_detach): Don't check for NULL.
15087 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15089 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15090 in case of call that did not complete.
15092 2019-01-02 Andrey Utkin <autkin@undo.io>
15094 * symfile.c (find_separate_debug_file): Fix search of debug files for
15097 2019-01-02 Tom Tromey <tom@tromey.com>
15099 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15101 * python/py-frame.c (frapy_older): Remove cast.
15102 (frapy_newer): Likewise.
15103 * python/py-breakpoint.c (local_setattro): Remove cast.
15104 * python/py-arch.c (archpy_name): Remove local variable.
15105 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15107 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15109 * unittests/basic_string_view/element_access/char/empty.cc:
15110 Fix year range in copyright header.
15112 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15114 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15116 <operator==>: Update with for removed field.
15118 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15119 <isa_features>: ...this.
15120 <abi_features>: New field.
15121 (riscv_isa_flen): Update comment.
15122 (riscv_abi_xlen): New declaration.
15123 (riscv_abi_flen): New declaration.
15124 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15126 (riscv_abi_xlen): New function.
15127 (riscv_isa_flen): Update to get answer from isa_features.
15128 (riscv_abi_flen): New function.
15129 (riscv_has_fp_abi): Update to get answer from abi_features.
15130 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15132 (riscv_call_info) <xlen, flen>: Update comment.
15133 (riscv_call_arg_struct): Remove invalid assertions
15134 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15136 (riscv_gdbarch_init): Gather isa features and abi features
15137 separately, ensure both match on the gdbarch when reusing an old
15138 gdbarch. Relax an error check to allow 32-bit abi float to run on
15139 a target with 64-bit float hardware.
15141 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15143 * source.c (search_command_helper): Stop reverse search
15144 when line 1 has been searched.
15146 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15148 * record-full.c (record_full_base_target::close): Rewrite
15149 record_full_core_buf_list free logic.
15151 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15153 * break-catch-syscall.c (print_one_catch_syscall): xfree
15156 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15158 * top.c (print_gdb_version): Update Copyright year in version
15161 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15163 Update copyright year range in all GDB files.
15165 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15167 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15169 For older changes see ChangeLog-2018.
15175 version-control: never