1 2019-11-19 Ali Tamur <tamur@google.com>
3 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
4 "if (attr != nullptr)".
5 (dwarf2_find_base_address): Likewise.
6 (dwarf2_build_include_psymtabs): Likewise.
7 (read_cutu_die_from_dwo): Likewise.
8 (read_func_scope): Likewise.
9 (read_call_site_scope): Likewise.
10 (dwarf2_get_pc_bounds): Likewise.
11 (dwarf2_record_block_ranges): Likewise.
12 (dwarf2_add_field): Likewise.
13 (dwarf2_add_member_fn): Likewise.
14 (read_structure_type): Likewise.
15 (read_enumeration_type): Likewise.
16 (read_array_type): Likewise.
17 (read_array_order): Likewise.
18 (read_set_type): Likewise.
19 (read_common_block): Likewise.
20 (read_tag_reference_type): Likewise.
21 (read_tag_string_type): Likewise.
22 (read_subroutine_type): Likewise.
23 (read_base_type): Likewise.
24 (read_subrange_type): Likewise.
25 (new_symbol): Likewise.
26 (prepare_one_comp_unit): Likewise.
28 2019-11-19 Tom Tromey <tromey@adacore.com>
30 * windows-nat.c (windows_nat_target::attach): Include GetLastError
31 result in error when DebugActiveProcess fails.
33 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
34 Pedro Alves <palves@redhat.com>
36 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
37 * target.c (target_stack::push): Call 'unpush' if there's a
38 target on top of the stack.
40 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
42 * python/py-block.c (blpy_dealloc): Call tp_free.
43 (blpy_block_syms_dealloc): Likewise.
44 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
45 * python/py-inferior.c (infpy_dealloc): Likewise.
46 * python/py-lazy-string.c (stpy_dealloc): Likewise.
47 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
48 * python/py-symbol.c (sympy_dealloc): Likewise.
49 * python/py-symtab.c (stpy_dealloc): Likewise.
50 * python/py-type.c (typy_iterator_dealloc): Likewise.
52 2019-11-18 Christian Biesinger <cbiesinger@google.com>
54 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
55 constructor instead of using a class initializer.
57 2019-11-15 Christian Biesinger <cbiesinger@google.com>
59 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
60 * configure: Regenerate.
61 * configure.ac: Don't source common.host.
62 * gdbsupport/common.host: Remove.
63 * gdbsupport/mingw-strerror.c: Remove.
64 * gdbsupport/posix-strerror.c: Rename to...
65 * gdbsupport/safe-strerror.c: ...this.
67 2019-11-15 Christian Biesinger <cbiesinger@google.com>
69 * maint.c (scoped_command_stats::print_time): Use localtime_r
70 instead of localtime (provided through gnulib if necessary).
71 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
74 2019-11-15 Christian Biesinger <cbiesinger@google.com>
76 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
79 2019-11-15 Christian Biesinger <cbiesinger@google.com>
81 * config.in: Regenerate.
82 * configure: Regenerate.
83 * gdbsupport/common.m4: No longer check for strerror_r.
84 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
85 POSIX version of strerror_r, now that gnulib provides it if
88 2019-11-14 Christian Biesinger <cbiesinger@google.com>
90 * README (`configure' options): Update.
92 2019-11-14 Tom Tromey <tromey@adacore.com>
94 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
95 expected type for the RHS if the LHS is a convenience variable.
97 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
99 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
100 Provide explicit default and copy constructor.
102 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
104 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
105 only call Py_INCREF (newbp) in the bppy_pending_object case.
107 2019-11-13 Tom Tromey <tromey@adacore.com>
110 * psympriv.h (partial_symbol): Remove static assert.
111 * symtab.h (general_symbol_info, symbol): Remove static assert.
113 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
115 * gdbsupport/format.c (format_pieces::format_pieces): Support
116 printf 'z' size modifier.
117 * gdbsupport/format.h (enum argclass): Add size_t_arg.
118 * printcmd.c (ui_printf): Handle size_t_arg.
119 * ui-out.c (ui_out::vmessage): Likewise.
120 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
122 (run_tests): Call test_format_int_sizes.
124 2019-11-12 Christian Biesinger <cbiesinger@google.com>
126 * ada-exp.y (write_ambiguous_var): Update.
127 * buildsym.c (add_symbol_to_list): Update.
128 * dwarf2read.c (read_variable): Update.
129 (new_symbol): Update.
130 * jit.c (finalize_symtab): Update.
131 * language.c (language_alloc_type_symbol): Update.
132 * symtab.c (fixup_symbol_section): Update.
133 (initialize_objfile_symbol_1): Move code to...
134 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
135 (allocate_symbol): Update.
136 (allocate_template_symbol): Update.
137 (get_symbol_address): Update.
138 * symtab.h (struct symbol): Inherit from general_symbol_info instead
139 of having as a field, and add a constructor.
140 (SYMBOL_VALUE): Update.
141 (SYMBOL_VALUE_ADDRESS): Update.
142 (SET_SYMBOL_VALUE_ADDRESS): Update.
143 (SYMBOL_VALUE_BYTES): Update.
144 (SYMBOL_VALUE_COMMON_BLOCK): Update.
145 (SYMBOL_BLOCK_VALUE): Update.
146 (SYMBOL_VALUE_CHAIN): Update.
147 (SYMBOL_LANGUAGE): Update.
148 (SYMBOL_SECTION): Update.
149 (SYMBOL_OBJ_SECTION): Update.
150 (SYMBOL_SET_LANGUAGE): Update.
151 (SYMBOL_SET_LINKAGE_NAME): Update.
152 (SYMBOL_SET_NAMES): Update.
153 (SYMBOL_NATURAL_NAME): Update.
154 (SYMBOL_LINKAGE_NAME): Update.
155 (SYMBOL_DEMANGLED_NAME): Update.
156 (SYMBOL_SEARCH_NAME): Update.
157 (SYMBOL_MATCHES_SEARCH_NAME): Update.
158 (struct symbol): Update.
159 (struct template_symbol): Update.
160 (struct rust_vtable_symbol): Update.
161 * xcoffread.c (SYMBOL_DUP): Update.
163 2019-11-12 Tom Tromey <tom@tromey.com>
165 * tui/tui-layout.c (show_layout): Set current_layout.
166 (show_source_disasm_command, show_data)
167 (show_source_or_disasm_and_command): Don't set current_layout.
169 2019-11-12 Tom Tromey <tom@tromey.com>
171 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
173 2019-11-12 Tom Tromey <tom@tromey.com>
175 * tui/tui-win.c (resize_message): New global.
176 (show_tui_resize_message): New function.
177 (tui_async_resize_screen): Print message if requested.
178 (_initialize_tui_win): Add tui-resize-message setting.
179 * NEWS: Add entry for new commands.
181 2019-11-11 Tom Tromey <tom@tromey.com>
183 * tui/tui.c (tui_initialize_readline): Add new bindable readline
186 2019-11-11 Christian Biesinger <cbiesinger@google.com>
188 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
190 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
192 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
194 * python/python-internal.h (gdbpy_lookup_static_symbols):
195 Declare new function.
196 * python/python.c (python_GdbMethods): Add
197 gdb.lookup_static_symbols method.
198 * NEWS: Mention gdb.lookup_static_symbols.
200 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
202 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
203 static block of current object file first. Also fix typo in
206 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
208 * stack.c (set_last_displayed_sal): Delete.
209 (last_displayed_sal_valid): Delete.
210 (last_displayed_pspace): Delete.
211 (last_displayed_addr): Delete.
212 (last_displayed_symtab): Delete.
213 (last_displayed_line): Delete.
214 (class last_displayed_symtab_info_type): New.
215 (last_displayed_symtab_info): New static global variable.
216 (print_frame_info): Call methods on last_displayed_symtab_info.
217 (clear_last_displayed_sal): Update header comment, and make use of
218 last_displayed_symtab_info.
219 (last_displayed_sal_is_valid): Likewise.
220 (get_last_displayed_pspace): Likewise.
221 (get_last_displayed_addr): Likewise.
222 (get_last_displayed_symtab): Likewise.
223 (get_last_displayed_line): Likewise.
224 (get_last_displayed_sal): Likewise.
225 * stack.h (clear_last_displayed_sal): Update header comment.
226 (last_displayed_sal_is_valid): Likewise.
227 (get_last_displayed_pspace): Likewise.
228 (get_last_displayed_addr): Likewise.
229 (get_last_displayed_symtab): Likewise.
230 (get_last_displayed_line): Likewise.
231 (get_last_displayed_sal): Likewise.
233 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
235 * stack.c (frame_show_address): Convert return type to bool.
236 * stack.h (frame_show_address): Likewise, and update header
239 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
241 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
242 * unittests/vec-utils-selftests.c: New file.
243 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
245 2019-11-10 Tom Tromey <tom@tromey.com>
247 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
248 (tui_highlight_win): Likewise.
249 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
250 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
251 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
252 Don't set can_highlight.
254 2019-11-10 Tom Tromey <tom@tromey.com>
256 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
257 Remove unused declaration.
259 2019-11-08 Tom Tromey <tromey@adacore.com>
261 * top.c (read_command_file): Update.
262 (command_line_input): Make return type const.
263 * python/py-gdb-readline.c: Update.
264 * linespec.c (decode_line_2): Update.
265 * defs.h (command_line_input): Make return type const.
266 * cli/cli-script.c (read_next_line): Make return type const.
267 * ada-lang.c (get_selections): Update.
269 2019-11-06 Christian Biesinger <cbiesinger@google.com>
271 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
272 * mi/mi-main.c (output_cores): Likewise.
273 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
274 (linux_xfer_osdata_modules): Likewise.
275 * remote.c (register_remote_support_xml): Likewise.
276 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
277 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
279 2019-11-06 Tom Tromey <tom@tromey.com>
281 * tui/tui-interp.c: Don't include readline.h.
282 * tui/tui-hooks.c: Don't include readline.h.
283 * symmisc.c: Include tilde.h, not readline.h.
284 * symfile.c: Include tilde.h, not readline.h.
285 * source.c: Include tilde.h, not readline.h.
286 * solib.c: Include tilde.h, not readline.h.
287 * psymtab.c: Include tilde.h, not readline.h.
288 * exec.c: Include tilde.h, not readline.h.
289 * corelow.c: Include tilde.h, not readline.h.
290 * cli/cli-dump.c: Include tilde.h, not readline.h.
291 * cli/cli-cmds.c: Don't include readline.h.
293 2019-11-05 Tom Tromey <tom@tromey.com>
295 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
296 (tui_disassemble): Set addr_size.
297 (tui_disasm_window::set_contents): Use addr_size.
299 2019-11-05 Tom Tromey <tom@tromey.com>
301 * rust-lang.c (rust_language_defn): Update.
302 * python/py-value.c (valpy_string): Call c_get_string.
303 * p-lang.c (pascal_language_defn): Update.
304 * opencl-lang.c (opencl_language_defn): Update.
305 * objc-lang.c (objc_language_defn): Update.
306 * m2-lang.c (m2_language_defn): Update.
307 * language.c (unknown_language_defn, auto_language_defn): Update.
308 (default_get_string): Remove.
309 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
310 * go-lang.c (go_language_defn): Update.
311 * f-lang.c (f_language_defn): Update.
312 * d-lang.c (d_language_defn): Update.
313 * c-lang.c (c_language_defn, cplus_language_defn)
314 (asm_language_defn, minimal_language_defn): Update.
315 * ada-lang.c (ada_language_defn): Update.
316 * language.h (struct language_defn) <la_get_string>: Remove.
317 (LA_GET_STRING): Remove.
318 (default_get_string): Don't declare.
320 2019-11-05 Tom Tromey <tom@tromey.com>
322 * tui/tui-source.h (struct tui_source_window): Inline
323 constructor. Remove destructor.
324 <style_changed, m_observable>: Move to superclass.
325 * tui/tui-winsource.h (tui_copy_source_line): Declare.
326 (struct tui_source_window_base): Move private members to end.
327 <style_changed, m_observable>: Move from tui_source_window.
328 * tui/tui-winsource.c (tui_copy_source_line): Move from
329 tui-source.c. Rename from copy_source_line. Add special handling
330 for negative line number.
331 (tui_source_window_base::style_changed): Move from
333 (tui_source_window_base): Register observer.
334 (~tui_source_window_base): New.
335 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
337 (tui_source_window::set_contents): Use tui_copy_source_line.
338 (tui_source_window::tui_source_window): Move to tui-source.h.
339 (tui_source_window::~tui_source_window): Remove.
340 (tui_source_window::style_changed): Move to superclass.
341 * tui/tui-disasm.c (tui_disassemble): Create string file with
342 styling, when possible. Add "addr_size" parameter.
343 (tui_disasm_window::set_contents): Use tui_copy_source_line.
344 Don't compute maximum size.
345 (len_without_escapes): New function
347 2019-11-05 Tom Tromey <tom@tromey.com>
349 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
351 * tui/tui-winsource.c (tui_show_source_line): Update.
352 * tui/tui-source.c (tui_source_window::set_contents): Update.
353 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
355 2019-11-05 Christian Biesinger <cbiesinger@google.com>
357 * symtab.h (gdb_static_assert): Put && operator at the beginning
358 of the line instead of the end.
360 2019-11-04 Christian Biesinger <cbiesinger@google.com>
362 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
364 * symtab.h: Add a static_assert for sizeof (partial_symbol).
366 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
368 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
369 * configure.host: Mark *-*-solaris2.10* obsolete.
370 * configure.tgt: Mark Solaris < 11 obsolete.
371 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
372 Update target triplet.
374 2019-11-01 Tom Tromey <tromey@adacore.com>
376 * utils.c (print_sys_errmsg): Simplify.
378 2019-11-01 Tom Tromey <tromey@adacore.com>
380 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
382 2019-11-01 Christian Biesinger <cbiesinger@google.com>
384 * configure: Regenerate.
385 * configure.ac: Remove check for strerror_r.
386 * gdbsupport/common.m4: Check for strerror_r.
388 2019-11-01 Luis Machado <luis.machado@linaro.org>
392 * arm-tdep.c (arm_per_objfile): Rename to ...
393 (arm_per_bfd): ... this.
394 (arm_objfile_data_key): Rename to ...
395 (arm_bfd_data_key): ... this.
396 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
398 (arm_record_special_symbol): Likewise.
400 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
402 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
404 * c-typeprint.c (c_print_typedef): Likewise.
405 * f-typeprint.c (f_print_typedef): Likewise.
406 * m2-typeprint.c (m2_print_typedef): Likewise.
407 * p-typeprint.c (pascal_print_typedef): Likewise.
408 * rust-lang.c (rust_print_typedef): Likewise.
409 * symtab.c (print_symbol_info): Print a newline after calling
412 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
414 * symtab.c (info_module_cmdlist): New variable.
415 (info_module_command): New function.
416 (search_module_symbols): New function.
417 (info_module_subcommand): New function.
418 (struct info_modules_var_func_options): New struct.
419 (info_modules_var_func_options_defs): New variable.
420 (make_info_modules_var_func_options_def_group): New function.
421 (info_module_functions_command): New function.
422 (info_module_variables_command): New function.
423 (info_module_var_func_command_completer): New function.
424 (_initialize_symtab): Register new 'info module functions' and
425 'info module variables' commands.
426 * symtab.h (typedef symbol_search_in_module): New typedef.
427 (search_module_symbols): Declare new function.
428 * NEWS: Mention new commands.
430 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
432 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
433 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
434 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
436 (scan_partial_symbols): Only create partial module symbols for non
438 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
440 * symtab.c (search_domain_name): Likewise.
441 (search_symbols): Likewise.
442 (print_symbol_info): Likewise.
443 (symtab_symbol_info): Likewise.
444 (info_modules_command): New function.
445 (_initialize_symtab): Register 'info modules' command.
446 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
447 * NEWS: Mention new 'info modules' command.
449 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
451 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
452 and $_gdb_maint_setting_str.
454 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
456 * cli/cli-cmds.c (setting_cmd, value_from_setting)
457 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
458 (str_value_from_setting, gdb_setting_str_internal_fn)
459 (gdb_maint_setting_str_internal_fn): New functions.
460 (_initialize_cli_cmds): Define the new convenience functions.
461 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
462 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
464 2019-10-31 Christian Biesinger <cbiesinger@google.com>
466 * agent.c (set_can_use_agent): When the setting is turned on,
467 look up agent symbols if we don't have them yet.
468 (agent_new_objfile): Don't look up agent symbols when the agent
471 2019-10-31 Christian Biesinger <cbiesinger@google.com>
473 * config.in: Regenerate.
475 2019-10-31 Christian Biesinger <cbiesinger@google.com>
477 * configure: Regenerate.
478 * configure.ac: Check for strerror_r.
479 * gdbsupport/common-utils.h (safe_strerror): Change return value
480 to const char * and document that this function is now threadsafe.
481 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
482 thread_local and call strerror_r, if available.
483 * utils.c (perror_string): Update.
484 (print_sys_errmsg): Update.
486 2019-10-31 Luis Machado <luis.machado@linaro.org>
488 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
490 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
491 objfile to fetch per-bfd data.
492 (arm_find_exidx_entry): Likewise.
494 2019-10-31 Christian Biesinger <cbiesinger@google.com>
496 * gdbsupport/agent.c (debug_agent): Change type to bool.
497 (use_agent): Likewise.
498 (all_agent_symbols_look_up): Likewise.
499 (agent_loaded_p): Change return value to bool.
500 (agent_look_up_symbols): Update.
501 (agent_capability_check): Change return value to bool.
502 * gdbsupport/agent.h (agent_loaded_p): Likewise.
503 (debug_agent): Change type to bool.
504 (use_agent): Likewise.
505 (agent_capability_check): Change return value to bool.
507 2019-10-30 Christian Biesinger <cbiesinger@google.com>
509 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
510 (build_minimal_symbol_hash_tables): Code to clear the table moved
511 to clear_minimal_symbol_hash_tables.
512 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
515 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
517 * infcmd.c: Remove includes.
518 * infrun.c: Remove includes.
520 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
522 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
523 (grow_vect): Remove declaration.
524 (ada_type_of_array): Remove declaration.
525 (ada_update_initial_language): Remove declaration.
526 (ada_fold_name): Remove declaration.
527 (ada_fill_in_ada_prototype): Remove declaration.
528 (user_select_syms): Remove declaration.
529 (get_selections): Remove declaration.
530 (ada_tag_type): Remove declaration.
531 (ada_value_tag): Remove declaration.
532 (ada_is_others_clause): Remove declaration.
533 (ada_in_variant): Remove declaration.
534 (ada_value_struct_elt): Remove declaration.
535 (ada_attribute_name): Remove declaration.
536 (ada_system_address_type): Remove declaration.
537 * ada-lang.c (ada_watch_location_expression): Make static.
538 (GROW_VECT): Move here from ada-lang.h.
539 (grow_vect): Make static.
540 (ada_update_initial_language): Make static.
541 (ada_fold_name): Make static.
542 (ada_type_of_array): Make static.
543 (encoded_ordered_before): Move up.
544 (sort_choices): Move up.
545 (print_signatures): Move up.
546 (ada_print_symbol_signature): Move up.
547 (get_selections): Move up and make static.
548 (user_select_syms): Move up and make static.
549 (ada_value_struct_elt): Move up and make static.
550 (ada_tag_type): Make static.
551 (ada_value_tag): Make static.
552 (ada_is_others_clause): Make static.
553 (ada_in_variant): Make static.
554 (ada_attribute_name): Make static.
556 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
558 * ada-lang.c: Remove includes.
559 * ada-typeprint.c: Remove includes.
560 * ada-valprint.c: Remove includes.
562 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
564 * addrmap.c: Add static assertions of type size, moved from
566 (_initialize_addrmap): Remove.
568 2019-10-29 Christian Biesinger <cbiesinger@google.com>
570 * coffread.c (record_minimal_symbol): Update.
571 (process_coff_symbol): Update.
572 * dbxread.c (read_dbx_symtab): Update.
573 * dwarf2read.c (add_partial_symbol): Update.
574 (fixup_go_packaging): Update.
575 (load_partial_dies): Update.
576 (new_symbol): Update.
577 * elfread.c (record_minimal_symbol): Change signature to use
578 gdb::string_view instead of name+len.
579 (elf_symtab_read): Update.
580 (elf_rel_plt_read): Update.
581 * mdebugread.c (parse_partial_symbols): Update.
582 (handle_psymbol_enumerators): Update.
583 (new_symbol): Update.
584 * minsyms.c (minimal_symbol_reader::record_full): Change signature
585 to use gdb::string_view instead of name+len.
586 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
587 * psympriv.h (add_psymbol_to_list): Likewise.
588 * psymtab.c (add_psymbol_to_bcache): Likewise.
589 (add_psymbol_to_list): Likewise.
590 * stabsread.c (define_symbol): Update.
591 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
592 * symtab.h (SYMBOL_SET_NAMES): Likewise.
593 (symbol_set_names): Likewise.
594 * xcoffread.c (scan_xcoff_symtab): Update.
596 2019-10-29 Christian Biesinger <cbiesinger@google.com>
598 * symtab.h (symbol_set_names): Document that copy_name must be
599 set to true for non-nullterminated strings.
600 * symtab.c (symbol_set_names): Only make a nullterminated copy of
601 linkage_name if the entry was not found and we need to demangle.
603 2019-10-29 Christian Biesinger <cbiesinger@google.com>
605 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
606 * dwarf2-frame.c (bsearch_fde_cmp): Update.
607 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
608 * gdbsupport/gdb_binary_search.h: New file.
610 2019-10-29 Christian Biesinger <cbiesinger@google.com>
612 * NEWS: Mention new --with-system-gdbinit-dir option.
613 * config.in: Regenerate.
614 * configure: Regenerate.
615 * configure.ac: Add new option --with-system-gdbinit-dir.
616 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
618 * main.c (get_init_files): Change system_gdbinit argument to
619 a vector and return the files in SYSTEM_GDBINIT_DIR in
620 addition to SYSTEM_GDBINIT.
621 (captured_main_1): Update.
622 (print_gdb_help): Update.
623 * top.c (print_gdb_configuration): Also print the value of
626 2019-10-28 Christian Biesinger <cbiesinger@google.com>
628 * gdbsupport/common-utils.h (startswith): Add an overloaded version
629 that takes gdb::string_view arguments.
631 2019-10-26 Tom de Vries <tdevries@suse.de>
633 * aarch64-linux-tdep.c: Fix typos in comments.
634 * aarch64-tdep.c: Same.
638 * arch/aarch64-insn.c: Same.
640 * breakpoint.h: Same.
643 * cli/cli-decode.c: Same.
644 * cli/cli-script.c: Same.
645 * cli/cli-utils.h: Same.
646 * coff-pe-read.c: Same.
648 * compile/compile-cplus-symbols.c: Same.
649 * compile/compile-object-run.c: Same.
652 * cp-support.c: Same.
654 * dwarf-index-write.c: Same.
655 * dwarf2-frame.c: Same.
656 * dwarf2-frame.h: Same.
658 * frame-base.h: Same.
663 * guile/scm-objfile.c: Same.
672 * mi/mi-cmd-disas.c: Same.
673 * mi/mi-getopt.h: Same.
674 * mi/mi-main.c: Same.
676 * nat/aarch64-sve-linux-sigcontext.h: Same.
678 * ppc-linux-nat.c: Same.
679 * ppc-linux-tdep.c: Same.
682 * prologue-value.h: Same.
683 * python/py-evtregistry.c: Same.
684 * python/py-instruction.h: Same.
685 * record-btrace.c: Same.
686 * record-full.c: Same.
688 * rs6000-tdep.c: Same.
690 * sol-thread.c: Same.
691 * sparc-sol2-tdep.c: Same.
692 * sparc64-tdep.c: Same.
697 * tracepoint.c: Same.
698 * tui/tui-data.h: Same.
699 * tui/tui-io.c: Same.
700 * tui/tui-win.c: Same.
702 * unittests/rsp-low-selftests.c: Same.
714 * xtensa-tdep.c: Same.
716 2019-10-25 Ali Tamur <tamur@google.com>
718 * charset.c (find_charset_names): Reflect API change.
720 2019-10-25 Christian Biesinger <cbiesinger@google.com>
722 * symtab.c (struct demangled_name_entry): Change demangled name
723 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
724 part of the struct anymore.
725 (symbol_set_names): No longer obstack allocate + copy the demangled
726 name, just store the allocated name from bfd.
728 2019-10-25 Tom Tromey <tromey@adacore.com>
730 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
731 (bsearch_cie_cmp, add_cie): Remove.
732 (find_cie): Reimplement.
733 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
734 (dwarf2_build_frame_info): Update.
736 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
739 * symfile.c (reread_symbols): Call forget_cached_source_info to
740 clear the stale source cache.
742 2019-10-24 Christian Biesinger <cbiesinger@google.com>
744 * configure: Regenerate.
745 * configure.ac: Remove code that sets python_has_threads.
747 2019-10-24 Christian Biesinger <cbiesinger@google.com>
749 * config.in: Regenerate.
750 * configure: Regenerate.
751 * configure.ac: Remove the code that uses sed to get the python
752 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
754 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
756 * python/py-progspace.c (pspy_block_for_pc): Return None for all
759 2019-10-23 Tom Tromey <tom@tromey.com>
761 * arc-tdep.c: Remove ".." from include.
762 * frv-tdep.c: Remove ".." from include.
763 * lm32-tdep.c: Remove ".." from include.
764 * microblaze-tdep.c: Remove ".." from include.
765 * or1k-tdep.h: Remove ".." from include.
766 * s12z-tdep.c: Remove ".." from include.
767 * Makefile.in (OPCODES_CFLAGS): Add comment.
768 (TOP_CFLAGS): New variable.
769 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
771 2019-10-23 Tom Tromey <tom@tromey.com>
773 * Makefile.in (READLINE_DIR): Update.
775 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
777 * infcall.c (call_function_by_hand_dummy): Fix the function
778 comment. And extract out a code section into...
779 (reserve_stack_space): ...this new function.
781 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
783 * infcall.c (value_arg_coerce): Remove an unused parameter.
784 (call_function_by_hand_dummy): Update the call to
787 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
789 * infcall.c (call_function_by_hand_dummy): Refactor.
791 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
793 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
795 2019-10-23 Tom Tromey <tom@tromey.com>
797 * configure: Rebuild.
798 * configure.ac: Don't check for sigprocmask.
799 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
801 2019-10-23 Tom Tromey <tom@tromey.com>
803 * configure: Rebuild.
804 * acinclude.m4: Use m4_include, not sinclude.
806 2019-10-23 Tom de Vries <tdevries@suse.de>
809 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
811 2019-10-22 Christian Biesinger <cbiesinger@google.com>
813 * symtab.c (struct demangled_name_entry) <language>: Change from
814 bitfield to regular variable.
816 2019-10-22 Christian Biesinger <cbiesinger@google.com>
818 * symtab.c (struct demangled_name_entry): Add a constructor.
819 (free_demangled_name_entry): New function to call the destructor
820 for demangled_name_entry.
821 (create_demangled_names_hash): Pass free_demangled_name_entry to
823 (symbol_set_names): Call placement new for demangled_name_entry.
824 * utils.c: No longer include xxhash.h here, now that fast_hash
825 is inlined in the header.
826 * utils.h: Instead, include it here.
828 2019-10-22 Christian Biesinger <cbiesinger@google.com>
830 * Makefile.in: Link with libxxhash.
831 * config.in: Regenerate.
832 * configure: Regenerate.
833 * configure.ac: Search for libxxhash.
834 * utils.c (fast_hash): Use xxhash if present.
836 2019-10-22 Christian Biesinger <cbiesinger@google.com>
838 * utils.h (fast_hash): New function.
839 * symtab.c (hash_demangled_name_entry): Call new function
842 2019-10-22 Christian Biesinger <cbiesinger@google.com>
844 * symtab.c (struct demangled_name_entry): Change type of mangled
845 to gdb::string_view. Also adds a constructor that takes the
847 (hash_demangled_name_entry): Update.
848 (eq_demangled_name_entry): Update.
849 (free_demangled_name_entry): New function to call the destructor
850 now that this is not a POD anymore.
851 (create_demangled_names_hash): Pass free_demangled_name_entry to
853 (symbol_set_names): Update.
855 2019-10-21 Ali Tamur <tamu@google.com>
857 * dwarf2read.c (dir_index): Change type.
858 (file_name_index): Likewise.
859 (line_header::include_dir_at): Change comment and implementation on
860 whether it is DWARF 5.
861 (line_header::is_valid_file_index): New function.
862 (line_header::file_name_at): Change comment and implementation on
863 whether it is DWARF 5.
864 (line_header::file_names): Change to private field renamed as
865 m_file_names and introduce a new accessor method.
866 (line_header::file_names_size): New method.
867 (line_header::include_dirs): Change to private field and rename as
869 (dw2_get_file_names_reader): Define local var at a smaller scope and
871 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
872 (process_structure_scope): Likewise.
873 (line_header::add_include_dir): Change message and reflect renaming.
874 (line_header::add_file_name): Likewise.
875 (read_formatted_entries): Handle DW_FORM_data16.
876 (dwarf_decode_line_header): Fix line header length calculation.
877 (psymtab_include_file_name): Change comment and API.
878 (lnp_state_machine::m_file): Update comment and reflect type change.
879 (lnp_state_machine::record_line): Reflect type change.
880 (dwarf_decode_lines): Reflect API change.
881 (file_file_name): Likewise.
882 (file_full_name): Likewise.
884 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
886 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
888 2019-10-21 Tom Tromey <tom@tromey.com>
890 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
892 2019-10-21 Tom Tromey <tom@tromey.com>
894 * configure.ac (nm.h): Conditionally create nm.h link. Subst
895 NM_H. Use AC_CONFIG_LINKS.
896 * configure: Rebuild.
897 * Makefile.in (NM_H): New variable.
898 (generated_files): Add NM_H. Remove gcore.
899 (nm.h, stamp-nmh): New targets.
901 2019-10-20 Tom Tromey <tom@tromey.com>
903 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
904 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
906 (put_objfile_before): Now static.
908 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
910 * gdbsupport/common-utils.h (startswith): Change return type to
913 2019-10-19 Christian Biesinger <cbiesinger@google.com>
915 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
916 * breakpoint.c (bp_locations_compare): Rename to...
917 (bp_location_is_less_than): ...this, and change to std::sort semantics.
918 (update_global_location_list): Use std::sort instead of qsort.
919 * buildsym.c (compare_line_numbers): Rename to...
920 (lte_is_less_than): ...this, and change to std::sort semantics.
921 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
923 * disasm.c (compare_lines): Rename to...
924 (line_is_less_than): ...this, and change to std::sort semantics.
925 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
927 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
928 (fde_is_less_than): ...this, and change to std::sort semantics.
929 (dwarf2_build_frame_info): Call std::sort instead of qsort.
930 * mdebugread.c (compare_blocks):
931 (block_is_less_than): ...this, and change to std::sort semantics.
932 (sort_blocks): Call std::sort instead of qsort.
933 * objfiles.c (qsort_cmp): Rename to...
934 (sort_cmp): ...this, and change to std::sort semantics.
935 (update_section_map): Call std::sort instead of qsort.
936 * remote.c (compare_pnums): Remove.
937 (map_regcache_remote_table): Call std::sort instead of qsort.
938 * utils.c (compare_positive_ints): Remove.
939 * utils.h (compare_positive_ints): Remove.
940 * xcoffread.c (compare_lte): Remove.
941 (arrange_linetable): Call std::sort instead of qsort.
943 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
945 * symfile.c (init_entry_point_info): Fix typo.
946 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
948 2019-10-18 Tom de Vries <tdevries@suse.de>
950 * aarch64-tdep.c: Fix typos in comments.
953 * alpha-tdep.c: Same.
954 * alpha-tdep.h: Same.
956 * amd64-windows-tdep.c: Same.
959 * arch-utils.c: Same.
960 * arm-nbsd-tdep.c: Same.
963 * blockframe.c: Same.
966 * coff-pe-read.c: Same.
969 * darwin-nat.c: Same.
973 * dtrace-probe.c: Same.
974 * dwarf-index-write.c: Same.
975 * dwarf2-frame-tailcall.c: Same.
976 * dwarf2-frame.c: Same.
977 * dwarf2read.c: Same.
979 * exceptions.c: Same.
984 * gnu-v3-abi.c: Same.
986 * h8300-tdep.c: Same.
988 * i386-linux-tdep.c: Same.
990 * ia64-libunwind-tdep.c: Same.
996 * linux-thread-db.c: Same.
998 * mdebugread.c: Same.
1000 * mn10300-tdep.c: Same.
1001 * namespace.c: Same.
1003 * opencl-lang.c: Same.
1004 * or1k-tdep.c: Same.
1006 * ppc-linux-nat.c: Same.
1007 * ppc-linux-tdep.c: Same.
1008 * ppc-sysv-tdep.c: Same.
1011 * record-btrace.c: Same.
1012 * record-full.c: Same.
1013 * remote-fileio.c: Same.
1015 * rs6000-tdep.c: Same.
1016 * s12z-tdep.c: Same.
1017 * score-tdep.c: Same.
1021 * sol-thread.c: Same.
1022 * solib-svr4.c: Same.
1025 * sparc-nat.c: Same.
1026 * sparc-sol2-tdep.c: Same.
1027 * sparc-tdep.c: Same.
1028 * sparc64-tdep.c: Same.
1029 * stabsread.c: Same.
1033 * target-descriptions.c: Same.
1034 * target-float.c: Same.
1041 * windows-nat.c: Same.
1042 * xcoffread.c: Same.
1043 * xstormy16-tdep.c: Same.
1044 * xtensa-tdep.c: Same.
1046 2019-10-17 Tom Tromey <tromey@adacore.com>
1048 * configure: Rebuild.
1049 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1050 in AC_CONFIG_FILES invocation.
1051 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1052 new-style config.status invocation.
1054 2019-10-17 Tom de Vries <tdevries@suse.de>
1056 * arm-nbsd-nat.c: Fix typos in comments.
1058 * darwin-nat-info.c: Same.
1059 * dwarf2read.c: Same.
1061 * event-top.c: Same.
1064 * hppa-tdep.c: Same.
1065 * i386-tdep.c: Same.
1068 * mdebugread.c: Same.
1069 * moxie-tdep.c: Same.
1070 * nto-procfs.c: Same.
1072 * ppc-linux-tdep.c: Same.
1074 * riscv-tdep.c: Same.
1075 * s390-tdep.c: Same.
1077 * sparc-linux-tdep.c: Same.
1078 * sparc-nat.c: Same.
1080 * target-descriptions.c: Same.
1084 2019-10-16 Tom Tromey <tom@tromey.com>
1086 * objfiles.h (struct objfile) <original_name>: Now const.
1088 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1090 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1091 pass on to sigsetjmp's second argument.
1092 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1094 2019-10-16 Keith Seitz <keiths@redhat.com>
1097 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1098 sections whose size is greater than the file size.
1100 2019-10-16 Jim Wilson <jimw@sifive.com>
1102 * riscv-tdep.c (riscv_gcc_target_options): New.
1103 (riscv_gnu_triplet_regexp): New.
1104 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1105 set_gdbarch_gnu_triplet_regexp.
1107 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1109 * Makefile.in: Add xml-builtin.h.
1110 * features/feature_to_c.sh: Add an include for xml-builtin.h
1111 to ensure that the compiler checks that the types match.
1112 * xml-builtin.h: New file.
1113 * xml-support.c (fetch_xml_builtin): Add missing const.
1114 * xml-support.h: Remove declaration of xml_builtins.
1116 2019-10-16 Tom de Vries <tdevries@suse.de>
1119 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1120 (amd64_classify_aggregate): ... here.
1121 (amd64_classify_aggregate_field): Handled fiels of nested structs
1124 2019-10-16 Tom de Vries <tdevries@suse.de>
1127 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1128 that handles 'theclass'.
1130 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1132 * linespec.c (decode_digits_ordinary): Update comment.
1133 * make-target-delegates: No longer need to handle VEC case.
1134 * memrange.c (normalize_mem_ranges): Update comment.
1135 * namespace.c (add_using_directive): Update comment.
1136 * objc-lang.c (uniquify_strings): Update comment.
1137 * ppc-linux-nat.c (struct thread_points): Update comment.
1138 * probe.h (find_probes_in_objfile): Update comment.
1139 * target.h (enum flash_preserve_mode): Update comment.
1140 * varobj.c (varobj_restrict_range): Update comment.
1141 * varobj.h (varobj_list_children): Update comment.
1143 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1145 * Makefile.in: Remove references to vec.h and vec.c.
1146 * aarch64-tdep.c: No longer include vec.h.
1147 * ada-lang.c: Likewise.
1148 * ada-lang.h: Likewise.
1149 * arm-tdep.c: Likewise.
1151 * breakpoint.h: Likewise.
1152 * charset.c: Likewise.
1153 * cp-support.h: Likewise.
1154 * dtrace-probe.c: Likewise.
1155 * dwarf2read.c: Likewise.
1156 * extension.h: Likewise.
1157 * gdb_bfd.c: Likewise.
1158 * gdbsupport/gdb_vecs.h: Likewise.
1159 * gdbsupport/vec.c: Remove.
1160 * gdbsupport/vec.h: Remove.
1161 * gdbthread.h: Likewise.
1162 * guile/scm-type.c: Likewise.
1163 * inline-frame.c: Likewise.
1164 * machoread.c: Likewise.
1165 * memattr.c: Likewise.
1166 * memrange.h: Likewise.
1167 * namespace.h: Likewise.
1168 * nat/linux-btrace.h: Likewise.
1169 * osdata.c: Likewise.
1170 * parser-defs.h: Likewise.
1171 * progspace.h: Likewise.
1172 * python/py-type.c: Likewise.
1173 * record-btrace.c: Likewise.
1174 * rust-exp.y: Likewise.
1175 * solib-target.c: Likewise.
1176 * stap-probe.c: Likewise.
1177 * target-descriptions.c: Likewise.
1178 * target-memory.c: Likewise.
1179 * target.h: Likewise.
1180 * varobj.c: Likewise.
1181 * varobj.h: Likewise.
1182 * xml-support.h: Likewise.
1184 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1186 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1187 Update for new std::vector based implementation.
1188 (process_psymtab_comp_unit_reader): Likewise.
1189 (scan_partial_symbols): Likewise.
1190 (recursively_compute_inclusions): Likewise.
1191 (compute_compunit_symtab_includes): Likewise.
1192 (process_imported_unit_die): Likewise.
1193 (queue_and_load_dwo_tu): Likewise.
1194 (follow_die_sig_1): Likewise.
1195 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1196 (typedef dwarf2_per_cu_ptr): Remove.
1197 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1199 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1200 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1201 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1202 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1205 2019-10-15 Tom Tromey <tromey@adacore.com>
1207 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1210 2019-10-15 Tom Tromey <tromey@adacore.com>
1212 * windows-nat.c (windows_nat_target::fetch_registers)
1213 (windows_nat_target::store_registers): Rename "pid" to "tid".
1215 2019-10-15 Tom Tromey <tromey@adacore.com>
1217 * gdbarch.h, gdbarch.c: Rebuild.
1218 * gdbarch.sh (gcc_target_options): Change return type to
1220 * compile/compile.c (get_args): Update.
1221 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1222 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1224 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1226 * arch-utils.c (default_gcc_target_options): Return std::string.
1227 * arch-utils.h (default_gcc_target_options): Return std::string.
1228 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1230 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1232 * breakpoint.c (breakpoint_chain): Make static.
1233 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1234 of accessing breakpoint_chain.
1236 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1238 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1239 to a gdb::function_view and return value to bool.
1240 * breakpoint.h (iterate_over_breakpoints): Likewise.
1241 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1242 (pop_dummy_frame): Update.
1243 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1244 (gdbscm_breakpoints): Update.
1245 * python/py-breakpoint.c (build_bp_list): Update.
1246 (gdbpy_breakpoints): Update.
1247 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1249 (bpfinishpy_handle_stop): Update.
1250 (bpfinishpy_handle_exit): Update.
1251 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1252 (svr4_update_solib_event_breakpoints): Update.
1254 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1256 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1257 when unwrapping single-field structs.
1259 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1261 * dwarf2read.c: Remove includes.
1263 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1265 * ui-out.c (ui_out::call_do_message): Silence
1266 -Wformat-nonliteral warning.
1268 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1270 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1271 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1272 include: readline/tilde.h.
1274 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1276 * remote.c (remote_target::get_trace_status): Remove declaration of
1277 trace_regblock_size.
1279 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1281 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1282 (show_user): Remove declaration of cmdlist.
1283 * cli/cli-cmds.h (max_user_call_depth): Declare.
1284 * cli/cli-script.c (execute_user_command): Remove declaration
1285 of max_user_call_depth.
1287 2019-10-11 Jim Wilson <jimw@sifive.com>
1289 * gdbsupport/print-utils.h (pulongest): Fix comment.
1290 (plongest): Likewise.
1291 (phex): Add missing comment, mention leading zeros.
1292 (phex_nz): Add mention of no leading zeros to comment.
1294 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1295 plongest instead of unsigned long long cast.
1297 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1299 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1300 for external_editor_command and gdbtk_test.
1302 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1304 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1305 * varobj.c (varobjdebug): Move comment to...
1306 * varobj.h (varobjdebug): ...here, and declare.
1308 2019-10-09 Tom Tromey <tom@tromey.com>
1310 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1313 2019-10-09 Tom Tromey <tom@tromey.com>
1315 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1316 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1317 * tui/tui-command.c (tui_cmd_window::resize)
1318 (tui_refresh_cmd_win): Update.
1319 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1320 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1321 * tui/tui-data.c (~tui_gen_win_info): Remove.
1322 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1323 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1324 (tui_redisplay_readline, tui_mld_flush)
1325 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1326 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1327 (tui_data_window::erase_data_content)
1328 (tui_data_item_window::rerender)
1329 (tui_data_item_window::refresh_window): Update.
1330 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1331 (box_win, tui_gen_win_info::make_window)
1332 (tui_gen_win_info::make_visible): Update.
1333 (tui_delete_win): Remove.
1334 * tui/tui-winsource.c
1335 (tui_source_window_base::do_erase_source_content): Update.
1336 (tui_show_source_line, tui_source_window_base::update_tab_width)
1337 (tui_source_window_base::update_exec_info): Update.
1338 * tui/tui-data.h (struct curses_deleter): New.
1339 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1340 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1342 2019-10-09 Tom Tromey <tom@tromey.com>
1344 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1346 2019-10-09 Tom Tromey <tom@tromey.com>
1348 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1349 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1351 2019-10-09 Tom Tromey <tom@tromey.com>
1353 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1354 window height directly.
1355 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1357 * tui/tui-layout.c (tui_default_win_height): Remove.
1358 (tui_default_win_viewport_height): Remove.
1360 2019-10-09 Tom Tromey <tom@tromey.com>
1362 * tui/tui.h: Remove comments.
1364 2019-10-09 Tom de Vries <tdevries@suse.de>
1366 * python/lib/gdb/printer/bound_registers.py: Use
1367 '^builtin_type_bound128' as regexp argument for
1368 add_builtin_pretty_printer.
1370 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1372 * guile/guile.c (guile_extension_script_ops): Remove forward
1373 declaration and mark as static.
1374 (guile_script_ops): Likewise.
1375 (extension_language_guile): Move further down in the file so
1376 it can reference the definitions for guile_{extension_,}script_ops.
1378 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1380 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1381 except SORTL, DFLTCC, and KDSA.
1383 2019-10-08 Tom Tromey <tromey@adacore.com>
1385 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1386 (struct safe_symbol_file_add_args): Remove.
1388 2019-10-08 Tom Tromey <tromey@adacore.com>
1390 * windows-nat.c: Don't include buildsym-legacy.h.
1392 2019-10-08 Tom Tromey <tromey@adacore.com>
1394 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1396 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1398 * gdbtypes.c (overload_debug): Move comment to header.
1399 * gdbtypes.h (overload_debug): Declare.
1400 * valops.c: Remove declaration of overload_debug, instead
1403 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1405 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1407 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1409 * language.h (lang_frame_mismatch_warn): ... here. Also add
1411 * top.c (lang_frame_mismatch_warn): Remove declaration.
1412 (check_frame_language_change): Pass lang_frame_mismatch_warn
1415 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1417 * c-lang.h (vtbl_ptr_name): Declare.
1418 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1420 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1422 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1424 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1427 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1429 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1430 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1431 * ctfread.c: New file.
1432 * ctfread.h: New file.
1433 * elfread.c: Include ctfread.h.
1434 (struct elfinfo text_p): New member ctfsect.
1435 (elf_locate_sections): Mark CTF section.
1436 (elf_symfile_read): Call elfctf_build_psymtabs.
1437 * Makefile.in (LIBCTF): Add.
1440 (DIST): Add ctfread.c.
1442 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1444 * ctfread.c (struct nextfield): Renamed to ...
1445 (struct ctf_nextfield): ... this.
1446 (struct field_info): Renamed to ...
1447 (strut ctf_field_info): ... this.
1448 (attach_fields_to_type): Update for renamed structures.
1449 (ctf_add_member_cb): Likewise.
1450 (ctf_add_enum_member_cb): Likewise.
1451 (process_struct_members): Likewise.
1452 (process_enum_type): Likewise.
1454 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1456 * tracectf.h: Rename, was ctf.h.
1457 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1458 * tracefile.c: Likewise.
1459 * tracepoint.c: Remove unused include ctf.h.
1460 * mi/mi-main.c: Likewise.
1461 * Makefile.in Replace ctf.c with tracectf.c.
1463 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1465 * version.in: Change version number to "9.0.50.DATE-git".
1467 2019-10-03 Tom Tromey <tom@tromey.com>
1470 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1472 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1474 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1475 cp_search_name_hash.
1476 * NEWS: Add entry about nested function support.
1478 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1479 Andrew Burgess <andrew.burgess@embecosm.com>
1481 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1482 for nested static variables when searchin VAR_DOMAIN.
1483 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1484 global scope, update comment.
1485 (add_partial_subprogram): Call add_partial_subprogram recursively
1486 for nested subroutines when processinng Fortran.
1487 (load_partial_dies): Process the child entities of a subprogram
1488 when processing Fortran.
1489 (partial_die_parent_scope): Handle building scope
1490 for Fortran nested functions.
1491 (process_die): Record that nested functions have a scope.
1492 (new_symbol): Always record Fortran subprograms on the global
1494 (determine_prefix): How to build the prefix for Fortran
1497 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1499 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1500 have just sent the thread a SIGSTOP and are waiting for it to
1503 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1505 * btrace.c (btrace_add_pc): Remove whitespace before the template
1506 parameter in 'std::vector <...>'.
1507 (parse_xml_btrace_block): Likewise.
1508 (btrace_maint_decode_pt): Likewise.
1509 (btrace_maint_update_packets): Likewise.
1510 (btrace_maint_print_packets): Likewise.
1511 * btrace.h (struct btrace_maint_info): Likewise.
1512 * dwarf2read.c (struct type_unit_group): Likewise.
1513 (build_type_psymtabs_reader): Likewise.
1514 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1515 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1516 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1518 2019-10-03 Tom de Vries <tdevries@suse.de>
1520 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1521 the first line of the help text for set/show style metadata.
1523 2019-10-02 Tom Tromey <tromey@adacore.com>
1525 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1526 * gdbsupport/common-inferior.c: New file.
1527 * infcmd.c (startup_with_shell): Don't define.
1528 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1529 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1530 * inferior.h (startup_with_shell): Don't declare.
1532 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1534 * gdbsupport/gdb_assert.h: Include errors.h.
1535 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1537 2019-10-02 Tom Tromey <tromey@adacore.com>
1539 * NEWS: Add $_ada_exception entry.
1540 * ada-lang.c (struct ada_catchpoint): Add constructor.
1541 <m_kind>: New member.
1542 (allocate_location_exception, re_set_exception): Remove
1544 (should_stop_exception): Compute $_ada_exception.
1545 (check_status_exception, print_it_exception)
1546 (print_one_exception, print_mention_exception): Remove
1548 (allocate_location_catch_exception, re_set_catch_exception)
1549 (check_status_exception, print_it_catch_exception)
1550 (print_one_catch_exception, print_mention_catch_exception)
1551 (print_recreate_catch_exception)
1552 (allocate_location_catch_exception_unhandled)
1553 (re_set_catch_exception_unhandled)
1554 (check_status_exception, print_it_catch_exception_unhandled)
1555 (print_one_catch_exception_unhandled)
1556 (print_mention_catch_exception_unhandled)
1557 (print_recreate_catch_exception_unhandled)
1558 (allocate_location_catch_assert, re_set_catch_assert)
1559 (check_status_assert, print_it_catch_assert)
1560 (print_one_catch_assert, print_mention_catch_assert)
1561 (print_recreate_catch_assert)
1562 (allocate_location_catch_handlers, re_set_catch_handlers)
1563 (check_status_handlers, print_it_catch_handlers)
1564 (print_one_catch_handlers, print_mention_catch_handlers)
1565 (print_recreate_catch_handlers): Remove.
1566 (create_ada_exception_catchpoint): Update.
1567 (initialize_ada_catchpoint_ops): Update.
1569 2019-10-02 Tom Tromey <tromey@adacore.com>
1571 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1572 (create_excep_cond_exprs): Simplify exception string computation.
1573 (ada_exception_catchpoint_cond_string): Likewise.
1575 2019-10-02 Tom Tromey <tromey@adacore.com>
1577 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1578 * ada-lang.c (lesseq_defined_than): Handle
1580 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1582 (dwarf2_has_info): Likewise.
1583 (new_symbol): Set maybe_copied on symbol when
1585 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1587 <can_copy>: New member.
1588 * elfread.c (record_minimal_symbol): Set maybe_copied
1589 on symbol when appropriate.
1590 (elf_symfile_read): Update call to dwarf2_has_info.
1591 * minsyms.c (lookup_minimal_symbol_linkage): New
1593 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1594 * symtab.c (get_symbol_address, get_msymbol_address):
1596 * symtab.h (get_symbol_address, get_msymbol_address):
1598 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1600 (struct symbol, struct minimal_symbol) <maybe_copied>:
1603 2019-10-02 Tom Tromey <tromey@adacore.com>
1605 * source.c (struct current_source_location): New.
1606 (current_source_key): New global.
1607 (current_source_symtab, current_source_line)
1608 (current_source_pspace): Remove.
1609 (get_source_location): New function.
1610 (get_current_source_symtab_and_line)
1611 (set_default_source_symtab_and_line)
1612 (set_current_source_symtab_and_line)
1613 (clear_current_source_symtab_and_line, select_source_symtab)
1614 (info_source_command, print_source_lines_base)
1615 (info_line_command, search_command_helper, _initialize_source):
1618 2019-10-02 Tom Tromey <tromey@adacore.com>
1620 * source.c (select_source_symtab): Don't call
1621 decode_line_with_current_source.
1623 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1625 * symtab.c (lookup_global_symbol): Search global block.
1627 2019-10-02 Tom Tromey <tromey@adacore.com>
1629 * coffread.c (process_coff_symbol): Update.
1630 * dwarf2read.c (var_decode_location, new_symbol): Update.
1631 * mdebugread.c (parse_symbol): Update.
1632 * objfiles.c (relocate_one_symbol): Update.
1633 * stabsread.c (define_symbol, fix_common_block)
1634 (scan_file_globals): Update.
1635 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1636 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1637 * xcoffread.c (process_xcoff_symbol): Update.
1639 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1641 * MAINTAINERS: Update my email address.
1643 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1645 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1647 (build_type_psymtabs_reader): Update for std::vector.
1648 (build_type_psymtab_dependencies): Likewise.
1649 * dwarf2read.h: Remove use of DEF_VEC_P.
1650 (typedef sig_type_ptr): Delete.
1652 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1654 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1656 (btrace_maint_decode_pt): Likewise, and move allocation of the
1657 vector outside of the loop.
1658 (btrace_maint_update_packets): Update to handle change from VEC to
1660 (btrace_maint_print_packets): Likewise.
1661 (maint_info_btrace_cmd): Likewise.
1662 * btrace.h: Remove use of DEF_VEC_O.
1663 (typedef btrace_pt_packet_s): Delete.
1664 (struct btrace_maint_info) <packets>: Change fromm VEC to
1666 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1668 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1670 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1671 make accesses into the vector constant references.
1672 (btrace_add_pc): Update for std::vector.
1673 (btrace_stitch_bts): Likewise.
1674 (parse_xml_btrace_block): Likewise.
1675 (btrace_maint_update_packets): Likewise.
1676 (btrace_maint_print_packets): Likewise.
1677 (maint_info_btrace_cmd): Likewise.
1678 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1680 (btrace_data::empty): Likewise.
1681 (btrace_data_append): Likewise.
1682 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1683 (typedef btrace_block_s): Delete.
1684 (struct btrace_block): Add constructor.
1685 (struct btrace_data_bts) <blocks>: Change to std::vector.
1686 * nat/linux-btrace.c (perf_event_read_bts): Update for
1688 (linux_read_bts): Likewise.
1690 2019-10-01 Tom Tromey <tom@tromey.com>
1692 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1694 2019-10-01 Tom Tromey <tom@tromey.com>
1696 * stack.c (print_frame, info_frame_command_core): Use
1698 * linux-thread-db.c (try_thread_db_load_1)
1699 (try_thread_db_load_from_pdir_1): Use styled_string.
1700 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1701 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1702 (maybe_print_unsupported_script_warning)
1703 (maybe_print_script_not_found_warning): Use styled_string.
1704 * ada-lang.c (user_select_syms): Use styled_string.
1706 2019-10-01 Tom Tromey <tom@tromey.com>
1708 * p-lang.c (pascal_printstr): Use metadata style.
1709 * value.c (show_convenience): Use metadata style.
1710 * valprint.c (valprint_check_validity, val_print_optimized_out)
1711 (val_print_not_saved, val_print_unavailable)
1712 (val_print_invalid_address, generic_val_print, val_print)
1713 (value_check_printable, val_print_array_elements): Use metadata
1715 * ui-out.h (class ui_out) <field_fmt>: New overload.
1716 <do_field_fmt>: Add style parameter.
1717 * ui-out.c (ui_out::field_fmt): New overload.
1718 * typeprint.c (type_print_unknown_return_type)
1719 (val_print_not_allocated, val_print_not_associated): Use metadata
1721 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1723 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1724 * tracepoint.c (tvariables_info_1): Use metadata style.
1725 * stack.c (print_frame_arg, print_frame_info, print_frame)
1726 (info_frame_command_core): Use metadata style.
1727 * skip.c (info_skip_command): Use metadata style.
1728 * rust-lang.c (rust_print_enum): Use metadata style.
1729 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1731 * python/py-framefilter.c (py_print_single_arg): Use metadata
1733 * printcmd.c (do_one_display, print_variable_and_value): Use
1735 * p-valprint.c (pascal_val_print)
1736 (pascal_object_print_value_fields): Use metadata style.
1737 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1738 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1740 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1741 * m2-valprint.c (m2_print_long_set): Use metadata style.
1742 * m2-typeprint.c (m2_print_type): Use metadata style.
1743 * infcmd.c (print_return_value_1): Use metadata style.
1744 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1745 * f-valprint.c (info_common_command_for_block): Use metadata
1747 * f-typeprint.c (f_type_print_base): Use metadata style.
1748 * expprint.c (print_subexp_standard): Use metadata style.
1749 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1750 * cli/cli-style.h (class cli_style_option): Add constructor.
1751 (metadata_style): Declare.
1752 * cli/cli-style.c (metadata_style): New global.
1753 (_initialize_cli_style): Register metadata style.
1754 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1756 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1757 * c-typeprint.c (c_type_print_base_struct_union)
1758 (c_type_print_base_1): Use metadata style.
1759 * breakpoint.c (watchpoint_value_print)
1760 (print_one_breakpoint_location): Use metadata style.
1761 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1763 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1765 * ada-valprint.c (val_print_packed_array_elements, printstr)
1766 (print_field_values, ada_val_print_ref, ada_val_print): Use
1768 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1770 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1772 * ada-lang.c (user_select_syms): Use metadata style.
1774 2019-10-01 Tom Tromey <tom@tromey.com>
1776 * cli/cli-cmds.c (pwd_command): Style output.
1778 2019-10-01 Pedro Alves <palves@redhat.com>
1779 Tom Tromey <tom@tromey.com>
1781 * symtab.c (print_symbol_info): Use %ps.
1782 (print_msymbol_info): Use %ps.
1783 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1784 * printcmd.c (print_variable_and_value): Use %ps.
1785 * macrocmd.c (show_pp_source_pos): Use %ps.
1786 * infrun.c (print_exited_reason): Use ui_out::message.
1787 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1788 (describe_other_breakpoints): Use ui_out::message and new
1790 (say_where): Use new formats.
1791 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1794 2019-10-01 Pedro Alves <palves@redhat.com>
1795 Tom Tromey <tom@tromey.com>
1797 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1798 (test_gdb_formats): New function.
1799 (run_tests): Call it.
1800 (test_format_specifier): Update.
1801 * utils.h (fputs_filtered): Update comment.
1802 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1803 (fputs_styled_unfiltered): Declare.
1804 * utils.c (fputs_styled_unfiltered): New function.
1805 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1806 (vfprintf_filtered): Update.
1807 (vfprintf_unfiltered, vprintf_filtered): Update.
1808 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1809 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1810 disallow_ui_out_field>: New constants.
1811 (enum class field_kind): New.
1812 (struct base_field_s, struct signed_field_s): New.
1813 (signed_field): New function.
1814 (struct string_field_s): New.
1815 (string_field): New function.
1816 (struct styled_string_s): New.
1817 (styled_string): New function.
1818 (class ui_out) <message>: Add comment.
1819 <vmessage, call_do_message>: New methods.
1820 <do_message>: Add style parameter.
1821 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1823 (ui_out::message): Rewrite.
1824 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1826 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1827 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1828 gdb_extensions parameter.
1829 (class format_piece): Add parameter to constructor.
1830 (n_int_args): New field.
1831 * gdbsupport/format.c (format_pieces::format_pieces): Add
1832 gdb_extensions parameter. Handle '*'.
1833 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1834 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1835 vfprintf_styled_no_gdbfmt.
1836 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1837 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1839 * ui-style.h (struct ui_file_style) <ptr>: New method.
1841 2019-10-01 Tom Tromey <tom@tromey.com>
1843 * unittests/format_pieces-selftests.c: Update. Add final format.
1844 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1845 empty literal pieces.
1847 2019-10-01 Tom Tromey <tom@tromey.com>
1849 * ui-out.h (enum class ui_out_style_kind): Remove.
1850 (class ui_out) <field_string, field_stsream, do_field_string>:
1851 Change type of "style".
1852 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1853 (ui_out::field_string): Update.
1854 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1856 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1857 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1858 * stack.c (print_frame_arg, print_frame_info, print_frame):
1860 * source.c (print_source_lines_base): Update.
1861 * solib.c (info_sharedlibrary_command): Update.
1862 * skip.c (info_skip_command): Update.
1863 * record-btrace.c (btrace_call_history_src_line)
1864 (btrace_call_history): Update.
1865 * python/py-framefilter.c (py_print_frame): Update.
1866 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1868 * mi/mi-out.c (mi_ui_out::do_table_header)
1869 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1870 (mi_ui_out::do_field_string): Update.
1871 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1873 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1875 * cli-out.c (cli_ui_out::do_table_header)
1876 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1877 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1878 (cli_ui_out::do_field_fmt): Update.
1879 * breakpoint.c (print_breakpoint_location): Update.
1880 (update_static_tracepoint): Update.
1882 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1884 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1885 conversion of gdb_datadir.
1886 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1887 remove not needed c_str ().
1889 2019-09-30 Ali Tamur <tamur@google.com>
1891 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1892 (dwarf2_string_attr): Likewise.
1894 2019-09-30 Ali Tamur <tamur@google.com>
1896 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1897 (process_full_type_unit): Likewise.
1898 (dump_die_shallow): Likewise.
1899 (cu_debug_loc_section): Likewise.
1901 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1903 * minsyms.c (compare_minimal_symbols): Rename to...
1904 (minimal_symbol_is_less_than): ...this, and adjust to STL
1905 conventions (return bool, take arguments as references)
1906 (minimal_symbol_reader::install): Call std::sort instead
1909 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1911 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1913 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1914 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1916 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1918 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1919 * psympriv.h (add_psymbol_to_list): Move comment here and update
1922 2019-09-29 Tom de Vries <tdevries@suse.de>
1924 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1925 Use $tmpdir/$(basename "$output_file").dwz instead of
1926 "${output_file}.dwz".
1928 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1931 * hppa-linux-nat.c: Include gdbarch.h.
1933 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1935 * blockframe.c (find_pc_partial_function): Change return type to bool.
1936 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1937 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1938 (stub_gnu_ifunc_resolve_name): Likewise.
1939 * symtab.c (compare_filenames_for_search): Likewise.
1940 (compare_glob_filenames_for_search): Likewise.
1941 (matching_obj_sections): Likewise.
1942 (symbol_matches_domain): Likewise.
1943 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1944 (find_line_pc): Change return type to bool.
1945 (find_line_pc_range): Likewise.
1946 (producer_is_realview): Likewise.
1947 * symtab.h (symbol_matches_domain): Likewise.
1948 (find_pc_partial_function): Likewise.
1949 (find_pc_line_pc_range): Likewise.
1950 (in_gnu_ifunc_stub): Likewise.
1951 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1952 (find_line_pc): Likewise.
1953 (find_line_pc_range): Likewise.
1954 (matching_obj_sections): Likewise.
1955 (find_line_symtab): Change out parameter to bool.
1956 (producer_is_realview): Change return type to bool.
1957 (compare_filenames_for_search): Likewise.
1958 (compare_glob_filenames_for_search): Likewise.
1960 2019-09-26 Tom Tromey <tom@tromey.com>
1962 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1963 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1964 * gdb_usleep.h: Remove.
1965 * gdb_usleep.c: Remove.
1966 * utils.c: Don't include gdb_usleep.h.
1968 2019-09-26 Tom Tromey <tromey@adacore.com>
1970 * python/py-type.c (type_to_type_object): Call check_typedef
1973 2019-09-26 Tom Tromey <tom@tromey.com>
1975 * utils.h (initialize_utils): Don't declare.
1976 * top.c (gdb_init): Don't call initialize_utils.
1977 * utils.c (initialize_utils): Remove. Move contents...
1978 (_initialize_utils): ... here.
1980 2019-09-25 Tom Tromey <tom@tromey.com>
1982 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1983 * utils.h (make_hex_string): Don't declare.
1984 * utils.c (make_hex_string): Remove.
1986 2019-09-24 Tom de Vries <tdevries@suse.de>
1989 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1990 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1992 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1994 * NEWS: Mention new simulator port for PRU.
1996 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1998 * ada-exp.y (write_object_remaining): Update.
1999 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2000 and eliminate the static buffer.
2001 (ada_decode_symbol): Update.
2002 (ada_la_decode): Update.
2003 (ada_sniff_from_mangled_name): Update.
2004 (is_valid_name_for_wild_match): Update.
2005 (ada_lookup_name_info::matches): Update and simplify.
2006 (name_matches_regex): Update.
2007 (ada_add_global_exceptions): Update.
2008 * ada-lang.h (ada_decode): Update signature.
2009 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2010 * dwarf-index-write.c (debug_names::insert): Update.
2012 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2014 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2017 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2019 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2020 Change "nonzero" to "true" in documentation.
2022 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2024 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2025 (_initialize_darwin_solib): Don't set
2026 darwin_so_ops.lookup_lib_global_symbol.
2027 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2028 set_gdbarch_iterate_over_objfiles_in_search_order.
2029 (elf_lookup_lib_symbol): Rename to...
2030 (svr4_iterate_over_objfiles_in_search_order): this, and update
2031 to iterate semantics.
2032 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2033 * solib.c (solib_global_lookup): Remove.
2034 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2035 (solib_global_lookup): Remove.
2036 * symtab.c (lookup_global_or_static_symbol): Remove call to
2037 solib_global_lookup.
2039 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2041 * NEWS: Move entries about default MI version now being
2042 version 3, and about the GDB/MI fix for multi-location
2043 breakpoints to the "since GDB 8.3" section.
2045 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2049 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2051 * NEWS: Mention that Cell/B.E. debugging support was removed.
2052 * MAINTAINERS: Remove spu target.
2054 * config/djgpp/fnchange.lst: Remove entries for removed files.
2056 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2057 spu-multiarch.o, and spu-tdep.o.
2058 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2059 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2060 spu-multiarch.c, and spu-tdep.c.
2061 * spu-linux-nat.c: Remove file.
2062 * spu-multiarch.c: Remove file.
2063 * spu-tdep.c: Remove file.
2064 * spu-tdep.h: Remove file.
2065 * solib-spu.c: Remove file.
2066 * solib-spu.h: Remove file.
2068 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2069 * configure.nat (spu-linux): Remove.
2070 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2071 solib-multiarch.o from gdb_target_obs.
2074 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2076 (ppc_linux_no_features): Update.
2077 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2079 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2080 (tdesc_powerpc_cell64l): Likewise.
2081 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2082 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2084 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2085 Do not include "features/rs6000/powerpc-cell32l.c" or
2086 "features/rs6000/powerpc-cell64l.c".
2087 (ppc_linux_spu_section): Remove.
2088 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2089 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2090 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2091 (ppc_linux_spe_context_lookup): Remove.
2092 (ppc_linux_spe_context_inferior_created): Remove.
2093 (ppc_linux_spe_context_solib_loaded): Remove.
2094 (ppc_linux_spe_context_solib_unloaded): Remove.
2095 (ppc_linux_spe_context): Remove.
2096 (struct ppu2spu_cache): Remove.
2097 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2098 (struct ppu2spu_data): Remove.
2099 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2100 ppu2spu_unwind): Remove.
2101 (ppc_linux_init_abi): Remove Cell/B.E. support.
2102 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2104 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2105 (rs6000/powerpc-cell64l-expedite): Likewise
2106 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2107 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2108 rs6000/powerpc-cell64l.xml.
2109 * features/rs6000/powerpc-cell32l.xml: Remove.
2110 * features/rs6000/powerpc-cell64l.xml: Likewise.
2111 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2112 * features/rs6000/powerpc-cell64l.c: Likewise.
2113 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2114 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2115 * regformats/reg-spu.dat: Remove.
2117 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2118 * corelow.c (struct spuid_list): Remove.
2119 (add_to_spuid_list): Remove.
2120 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2121 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2122 (remote_protocol_features): Remove associated entries.
2123 (_initialize_remote): No longer initialize them.
2124 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2125 * linux-nat.c (SPUFS_MAGIC): Remove.
2126 (linux_proc_xfer_spu): Remove.
2127 (spu_enumerate_spu_ids): Remove.
2128 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2129 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2130 (linux_make_corefile_notes): No longer call it.
2132 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2133 (cooked_write_test): Likewise.
2135 2019-09-20 Tom Tromey <tom@tromey.com>
2137 * NEWS: Mention case-sensitivity of TUI commands.
2138 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2139 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2140 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2142 2019-09-20 Tom Tromey <tom@tromey.com>
2144 * tui/tui-source.c (tui_source_window::set_contents): Use
2145 make_unique_xstrdup.
2146 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2147 make_unique_xstrdup.
2149 2019-09-20 Tom Tromey <tom@tromey.com>
2151 * tui/tui-data.c: Remove separator comments.
2152 * tui/tui-layout.c: Remove separator comments.
2153 * tui/tui-win.c: Remove separator comments.
2154 * tui/tui-wingeneral.c: Remove separator comments.
2156 2019-09-20 Tom Tromey <tom@tromey.com>
2158 * tui/tui.h (strcat_to_buf): Don't declare.
2159 * tui/tui.c (strcat_to_buf): Remove.
2161 2019-09-20 Tom Tromey <tom@tromey.com>
2163 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2165 * tui/tui-source.c (tui_source_window::set_contents)
2166 (tui_source_window::location_matches_p)
2167 (tui_source_window::maybe_update): Update.
2169 2019-09-20 Tom Tromey <tom@tromey.com>
2171 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2173 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2175 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2176 (tui_data_window::line_from_reg_element_no)
2177 (tui_data_window::first_reg_element_no_inline)
2178 (tui_data_window::show_registers)
2179 (tui_data_window::show_register_group)
2180 (tui_data_window::display_registers_from)
2181 (tui_data_window::display_registers_from_line)
2182 (tui_data_window::first_data_item_displayed)
2183 (tui_data_window::delete_data_content_windows)
2184 (tui_data_window::erase_data_content)
2185 (tui_data_window::do_scroll_vertical)
2186 (tui_data_window::refresh_window)
2187 (tui_data_window::check_register_values): Update.
2189 2019-09-20 Tom Tromey <tom@tromey.com>
2191 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2192 (struct tui_locator_window) <full_name, proc_name>: Now
2194 * tui/tui-stack.c (tui_locator_window::make_status_line)
2195 (tui_locator_window::set_locator_fullname)
2196 (tui_locator_window::set_locator_info): Update.
2197 * tui/tui-source.c (tui_source_window::set_contents)
2198 (tui_source_window::showing_source_p): Update.
2200 2019-09-20 Tom Tromey <tom@tromey.com>
2202 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2203 Don't call tui_locator_win_info_ptr.
2205 2019-09-20 Tom Tromey <tom@tromey.com>
2207 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2209 2019-09-20 Tom Tromey <tom@tromey.com>
2211 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2213 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2214 * tui/tui-layout.c (show_source_disasm_command, show_data)
2215 (show_source_or_disasm_and_command): Use 1 as height for locator.
2217 2019-09-20 Tom Tromey <tom@tromey.com>
2219 * tui/tui.c (tui_enable): Update.
2220 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2222 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2224 * tui/tui-data.c (win_resized): Now bool.
2225 (tui_win_resized): Return bool.
2226 (tui_set_win_resized_to): Accept a bool.
2228 2019-09-20 Tom Tromey <tom@tromey.com>
2230 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2231 Change type of "refresh_values_only".
2232 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2233 type of "refresh_values_only".
2235 2019-09-20 Tom Tromey <tom@tromey.com>
2237 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2239 (tui_disassemble): Add "pos" parameter.
2240 (tui_disasm_window::set_contents): Simplify.
2242 2019-09-20 Tom Tromey <tom@tromey.com>
2244 * tui/tui-winsource.h (struct tui_source_window_base)
2245 <show_source_content>: Now private.
2246 * tui/tui-winsource.c
2247 (tui_source_window_base::show_source_content): Don't handle empty
2250 2019-09-20 Tom Tromey <tom@tromey.com>
2252 * tui/tui-layout.c (show_source_disasm_command)
2253 (show_source_or_disasm_and_command): Don't call
2254 show_source_content.
2256 2019-09-20 Tom Tromey <tom@tromey.com>
2258 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2260 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2261 from tui_make_status_line.
2262 (tui_locator_window::rerender): Update.
2264 2019-09-20 Tom Tromey <tom@tromey.com>
2266 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2267 (tui_locator_window::rerender): Update.
2269 2019-09-20 Tom Tromey <tom@tromey.com>
2271 * tui/tui-winsource.h (struct tui_source_window_base)
2272 <~tui_source_window_base>: Don't declare.
2274 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2275 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2277 * tui/tui-source.c (tui_source_window::set_contents): Update.
2278 (tui_source_window::location_matches_p)
2279 (tui_source_window::maybe_update): Update.
2281 2019-09-20 Tom Tromey <tom@tromey.com>
2283 * tui/tui-winsource.h (~tui_source_element): Remove.
2284 (tui_source_element): Update.
2285 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2286 * tui/tui-winsource.c (tui_show_source_line): Update.
2287 * tui/tui-source.c (tui_source_window::set_contents): Update.
2288 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2290 2019-09-20 Tom Tromey <tom@tromey.com>
2292 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2294 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2295 tui_clear_source_windows_detail.
2296 * tui/tui-winsource.h (struct tui_source_window_base)
2297 <clear_detail>: Don't declare.
2298 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2300 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2302 2019-09-20 Tom Tromey <tromey@adacore.com>
2305 * block.c (contained_in): Fix final return value.
2307 2019-09-20 Alan Modra <amodra@gmail.com>
2309 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2310 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2311 (read_indirect_string_from_dwz): Use bfd accessor.
2312 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2313 * machoread.c (macho_symfile_read_all_oso): Likewise.
2314 * solib.c (solib_bfd_open): Likewise.
2316 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2318 * eval.c: Move declaration of overload_resolution to...
2321 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2323 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2324 * arm-linux-tdep.c: Likewise.
2325 * arm-nbsd-nat.c: Likewise.
2326 * arm-tdep.h: Declare arm_apcs_32.
2327 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2329 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2331 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2332 * dwarf2read.h: Declare dwarf_always_disassemble.
2334 2019-09-19 Tom de Vries <tdevries@suse.de>
2337 * source-cache.c (source_cache::ensure): Catch exception thrown during
2338 construction of the highlighter.
2340 2019-09-18 Alan Modra <amodra@gmail.com>
2342 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2343 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2344 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2345 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2346 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2347 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2348 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2349 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2350 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2351 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2352 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2353 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2354 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2355 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2356 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2357 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2358 * mi/mi-interp.c: Update throughout for bfd section macro and
2360 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2361 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2363 2019-09-18 Tom Tromey <tom@tromey.com>
2366 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2368 (tui_enable): Do not call rl_initialize.
2370 2019-09-18 Christian Groessler <chris@groessler.org>
2372 * alpha-linux-nat.c: Include gdbarch.h.
2374 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2376 * ui-file.c: Include cli/cli-style.h.
2377 (term_cli_styling): Remove cli_styling declaration.
2379 2019-09-18 Alan Modra <amodra@gmail.com>
2381 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2382 to bfd_asymbol_section.
2384 2019-09-18 Alan Modra <amodra@gmail.com>
2386 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2387 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2388 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2390 2019-09-18 Alan Modra <amodra@gmail.com>
2392 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2393 * spu-linux-nat.c (spu_bfd_open): Likewise.
2395 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2397 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2398 to bool to match definition in dwarf2read.c.
2400 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2402 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2403 (print_signatures): Likewise.
2404 (trust_pad_over_xvs): Likewise.
2405 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2406 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2407 * arm-linux-nat.c (arm_apcs_32): Likewise.
2408 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2409 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2410 * arm-tdep.c (arm_debug): Likewise.
2411 (arm_apcs_32): Likewise.
2412 * auto-load.c (debug_auto_load): Likewise.
2413 (auto_load_gdb_scripts): Likewise.
2414 (global_auto_load): Likewise.
2415 (auto_load_local_gdbinit): Likewise.
2416 (auto_load_local_gdbinit_loaded): Likewise.
2417 * auto-load.h (global_auto_load): Likewise.
2418 (auto_load_local_gdbinit): Likewise.
2419 (auto_load_local_gdbinit_loaded): Likewise.
2420 * breakpoint.c (disconnected_dprintf): Likewise.
2421 (breakpoint_proceeded): Likewise.
2422 (automatic_hardware_breakpoints): Likewise.
2423 (always_inserted_mode): Likewise.
2424 (target_exact_watchpoints): Likewise.
2425 (_initialize_breakpoint): Update.
2426 * breakpoint.h (target_exact_watchpoints): Change to bool.
2427 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2428 * cli/cli-cmds.c (trace_commands): Likewise.
2429 * cli/cli-cmds.h (trace_commands): Likewise.
2430 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2432 * cli/cli-logging.c (logging_overwrite): Change to bool.
2433 (logging_redirect): Likewise.
2434 (debug_redirect): Likewise.
2435 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2436 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2438 <boolean_option_def>: Update.
2439 (struct flag_option_def): Change default type of Context to bool
2441 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2442 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2443 (get_setshow_command_value_string): Likewise.
2444 * cli/cli-style.c (cli_styling): Change to bool.
2445 (source_styling): Likewise.
2446 * cli/cli-style.h (source_styling): Likewise.
2447 (cli_styling): Likewise.
2448 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2450 * command.h (var_types): Update comment.
2451 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2452 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2454 (debug_compile_cplus_scopes): Likewise.
2455 * compile/compile-internal.h (compile_debug): Likewise.
2456 * compile/compile.c (compile_debug): Likewise.
2457 (struct compile_options) <raw>: Likewise.
2458 * cp-support.c (catch_demangler_crashes): Likewise.
2459 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2460 (usr_cmd_cris_dwarf2_cfi): Likewise.
2461 * csky-tdep.c (csky_debug): Likewise.
2462 * darwin-nat.c (enable_mach_exceptions): Likewise.
2463 * dcache.c (dcache_enabled_p): Likewise.
2464 * defs.h (info_verbose): Likewise.
2465 * demangle.c (demangle): Likewise.
2466 (asm_demangle): Likewise.
2467 * dwarf-index-cache.c (debug_index_cache): Likewise.
2468 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2469 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2470 * dwarf2read.c (check_physname): Likewise.
2471 (use_deprecated_index_sections): Likewise.
2472 (dwarf_always_disassemble): Likewise.
2473 * eval.c (overload_resolution): Likewise.
2474 * event-top.c (set_editing_cmd_var): Likewise.
2475 (exec_done_display_p): Likewise.
2476 * event-top.h (set_editing_cmd_var): Likewise.
2477 (exec_done_display_p): Likewise.
2478 * exec.c (write_files): Likewise.
2479 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2480 (debug_fbsd_nat): Likewise.
2481 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2483 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2484 <backtrace_past_entry> Likewise.
2485 * gdb-demangle.h (demangle): Likewise.
2486 (asm_demangle): Likewise.
2487 * gdb_bfd.c (bfd_sharing): Likewise.
2488 * gdbcore.h (write_files): Likewise.
2489 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2490 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2491 * gdbthread.h (print_thread_events): Likewise.
2492 * gdbtypes.c (opaque_type_resolution): Likewise.
2493 (strict_type_checking): Likewise.
2494 * gnu-nat.c (gnu_debug_flag): Likewise.
2495 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2496 * guile/scm-param.c (pascm_variable): Add boolval.
2497 (add_setshow_generic): Update.
2498 (pascm_param_value): Update.
2499 (pascm_set_param_value_x): Update.
2500 * hppa-tdep.c (hppa_debug): Change to bool..
2501 * infcall.c (may_call_functions_p): Likewise.
2502 (coerce_float_to_double_p): Likewise.
2503 (unwind_on_signal_p): Likewise.
2504 (unwind_on_terminating_exception_p): Likewise.
2505 * infcmd.c (startup_with_shell): Likewise.
2506 * inferior.c (print_inferior_events): Likewise.
2507 * inferior.h (startup_with_shell): Likewise.
2508 (print_inferior_events): Likewise.
2509 * infrun.c (step_stop_if_no_debug): Likewise.
2510 (detach_fork): Likewise.
2511 (debug_displaced): Likewise.
2512 (disable_randomization): Likewise.
2513 (non_stop): Likewise.
2514 (non_stop_1): Likewise.
2515 (observer_mode): Likewise.
2516 (observer_mode_1): Likewise.
2517 (set_observer_mode): Update.
2518 (sched_multi): Change to bool.
2519 * infrun.h (debug_displaced): Likewise.
2520 (sched_multi): Likewise.
2521 (step_stop_if_no_debug): Likewise.
2522 (non_stop): Likewise.
2523 (disable_randomization): Likewise.
2524 * linux-tdep.c (use_coredump_filter): Likewise.
2525 (dump_excluded_mappings): Likewise.
2526 * linux-thread-db.c (auto_load_thread_db): Likewise.
2527 (check_thread_db_on_load): Likewise.
2528 * main.c (captured_main_1): Update.
2529 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2530 xx2_opt, boolean_opt>: Change to bool.
2531 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2532 * maint.c (maintenance_profile_p): Likewise.
2533 (per_command_time): Likewise.
2534 (per_command_space): Likewise.
2535 (per_command_symtab): Likewise.
2536 * memattr.c (inaccessible_by_default): Likewise.
2537 * mi/mi-main.c (mi_async): Likewise.
2538 (mi_async_1): Likewise.
2539 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2540 * nat/fork-inferior.h (startup_with_shell): Likewise.
2541 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2542 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2543 * nios2-tdep.c (nios2_debug): Likewise.
2544 * or1k-tdep.c (or1k_debug): Likewise.
2545 * parse.c (parser_debug): Likewise.
2546 * parser-defs.h (parser_debug): Likewise.
2547 * printcmd.c (print_symbol_filename): Likewise.
2548 * proc-api.c (procfs_trace): Likewise.
2549 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2550 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2551 (set_parameter_value): Update.
2552 (add_setshow_generic): Update.
2553 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2555 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2557 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2558 * record-btrace.c (record_btrace_target::store_registers): Update.
2559 * record-full.c (record_full_memory_query): Change to bool.
2560 (record_full_stop_at_limit): Likewise.
2561 * record-full.h (record_full_memory_query): Likewise.
2562 * remote-notif.c (notif_debug): Likewise.
2563 * remote-notif.h (notif_debug): Likewise.
2564 * remote.c (use_range_stepping): Likewise.
2565 (interrupt_on_connect): Likewise.
2566 (remote_break): Likewise.
2567 * ser-tcp.c (tcp_auto_retry): Likewise.
2568 * ser-unix.c (serial_hwflow): Likewise.
2569 * skip.c (debug_skip): Likewise.
2570 * solib-aix.c (solib_aix_debug): Likewise.
2571 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2572 (spu_auto_flush_cache_p): Likewise.
2573 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2575 (struct info_print_options) <quiet>: Likewise.
2576 * symfile-debug.c (debug_symfile): Likewise.
2577 * symfile.c (auto_solib_add): Likewise.
2578 (separate_debug_file_debug): Likewise.
2579 * symfile.h (auto_solib_add): Likewise.
2580 (separate_debug_file_debug): Likewise.
2581 * symtab.c (basenames_may_differ): Likewise.
2582 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2583 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2584 (struct info_types_options) <quiet>: Likewise.
2585 * symtab.h (demangle): Likewise.
2586 (basenames_may_differ): Likewise.
2587 * target-dcache.c (stack_cache_enabled_1): Likewise.
2588 (code_cache_enabled_1): Likewise.
2589 * target.c (trust_readonly): Likewise.
2590 (may_write_registers): Likewise.
2591 (may_write_memory): Likewise.
2592 (may_insert_breakpoints): Likewise.
2593 (may_insert_tracepoints): Likewise.
2594 (may_insert_fast_tracepoints): Likewise.
2595 (may_stop): Likewise.
2596 (auto_connect_native_target): Likewise.
2597 (target_stop_and_wait): Update.
2598 (target_async_permitted): Change to bool.
2599 (target_async_permitted_1): Likewise.
2600 (may_write_registers_1): Likewise.
2601 (may_write_memory_1): Likewise.
2602 (may_insert_breakpoints_1): Likewise.
2603 (may_insert_tracepoints_1): Likewise.
2604 (may_insert_fast_tracepoints_1): Likewise.
2605 (may_stop_1): Likewise.
2606 * target.h (target_async_permitted): Likewise.
2607 (may_write_registers): Likewise.
2608 (may_write_memory): Likewise.
2609 (may_insert_breakpoints): Likewise.
2610 (may_insert_tracepoints): Likewise.
2611 (may_insert_fast_tracepoints): Likewise.
2612 (may_stop): Likewise.
2613 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2614 (make_thread_apply_all_options_def_group): Change argument from int*
2616 (thread_apply_all_command): Update.
2617 (print_thread_events): Change to bool.
2618 * top.c (confirm): Likewise.
2619 (command_editing_p): Likewise.
2620 (history_expansion_p): Likewise.
2621 (write_history_p): Likewise.
2622 (info_verbose): Likewise.
2623 * top.h (confirm): Likewise.
2624 (history_expansion_p): Likewise.
2625 * tracepoint.c (disconnected_tracing): Likewise.
2626 (circular_trace_buffer): Likewise.
2627 * typeprint.c (print_methods): Likewise.
2628 (print_typedefs): Likewise.
2629 * utils.c (debug_timestamp): Likewise.
2630 (sevenbit_strings): Likewise.
2631 (pagination_enabled): Likewise.
2632 * utils.h (sevenbit_strings): Likewise.
2633 (pagination_enabled): Likewise.
2634 * valops.c (overload_resolution): Likewise.
2635 * valprint.h (struct value_print_options) <prettyformat_arrays,
2636 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2637 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2638 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2640 * windows-nat.c (new_console): Likewise.
2641 (cygwin_exceptions): Likewise.
2642 (new_group): Likewise.
2643 (debug_exec): Likewise.
2644 (debug_events): Likewise.
2645 (debug_memory): Likewise.
2646 (debug_exceptions): Likewise.
2647 (useshell): Likewise.
2648 * windows-tdep.c (maint_display_all_tib): Likewise.
2649 * xml-support.c (debug_xml): Likewise.
2651 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2653 * source.c (prepare_path_for_appending): New function.
2654 (openp): Make use of new function.
2655 (find_and_open_source): Search for the compilation directory and
2656 source file as a relative path beneath the directory search path.
2658 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2660 * source-cache.c (source_cache::get_line_charpos): Catch
2661 exceptions and return false, this matches the behaviour documented
2664 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2666 * ada-tasks.c (info_task): Remove quoting of the task's name.
2668 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2670 * symfile.c (auto_solib_add): Replace comment with a reference
2673 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2675 * NEWS: Mention that gdb can now be compiled with Python 3
2678 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2680 * maint.c (maint_print_section_data::maint_print_section_data):
2681 Force use of 'float log10 (float)' by casting the argument to
2684 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2686 * maint.c: Add 'cmath' include.
2687 (struct maint_print_section_data): New structure.
2688 (print_section_index): New function.
2689 (print_bfd_section_info): Add header comment, small whitespace
2690 cleanup, and update to call new print_section_index function.
2691 (print_objfile_section_info): Likewise.
2692 (maint_obj_section_from_bfd_section): New function.
2693 (print_bfd_section_info_maybe_relocated): New function.
2694 (maintenance_info_sections): Add header comment, always use
2695 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2697 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2699 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2700 inner scope, add check that the objfile has psymtabs before
2701 checking psymtabs_addrmap.
2702 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2704 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2706 * NEWS: Announce that Ada task names are now shown at more places,
2707 and between quotes (except in info task output).
2708 * gdb/ada-tasks.c (task_to_str): New function.
2709 (display_current_task_id): Call task_to_str.
2710 (task_command_1): Likewise.
2711 (print_ada_task_info): In non-mi mode, Properly align headers and data
2712 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2714 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2716 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2717 prstatus.pr_lwp.pr_info instead of making it up.
2719 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2721 * auto-load.c (auto_load_expand_dir_vars): Update.
2722 * defs.h (gdb_datadir): Change to std::string.
2723 (python_libdir): Likewise.
2724 (relocate_gdb_directory): Change return type to std::string.
2725 * guile/guile.c (gdbscm_data_directory): Update.
2726 (initialize_scheme_side): Update.
2727 * jit.c (jit_reader_dir): Change to std::string.
2728 (jit_reader_load_command): Update.
2729 * main.c (gdb_datadir): Change to std::string.
2730 (python_libdir): Likewise.
2731 (set_gdb_data_directory): Update.
2732 (relocate_path): Change to return std::string.
2733 (relocate_gdb_directory): Change to return std::string.
2734 (relocate_gdbinit_path_maybe_in_datadir): Update.
2735 (captured_main_1): Update.
2736 * python/python.c (do_start_initialization): Update.
2737 * top.c (show_gdb_datadir): Update.
2738 * xml-syscall.c (xml_init_syscalls_info): Update.
2739 (init_syscalls_info): Update.
2741 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2743 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2744 out of get_init_files.
2745 (get_init_files): Update.
2747 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2749 * main.c (get_init_files): Change to use std::string.
2750 (captured_main_1): Update.
2751 (print_gdb_help): Update.
2753 2019-09-11 Ali Tamur <tamur@google.com>
2755 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2758 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2760 * dbxread.c (read_dbx_symtab): Update.
2761 * dwarf2read.c (load_partial_dies): Update.
2762 * mdebugread.c (parse_partial_symbols): Update.
2763 (handle_psymbol_enumerators): Update.
2764 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2765 * psymtab.c (add_psymbol_to_bcache): Likewise.
2766 (add_psymbol_to_list): Likewise.
2767 * symtab.c (symbol_set_names): Likewise.
2768 * symtab.h (symbol_set_names): Likewise.
2769 * xcoffread.c (scan_xcoff_symtab): Update.
2771 2019-09-11 Tom Tromey <tom@tromey.com>
2773 * symfile-mem.c (symbol_file_add_from_memory): Use
2775 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2776 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2778 2019-09-10 Tom Tromey <tromey@adacore.com>
2780 * dwarf-index-write.c (write_psymbols): Extend error message.
2781 (debug_names::insert): Add Ada code.
2782 (debug_names::write_psymbols): Remove Ada check.
2783 (debug_names) <m_string_obstack>: New member.
2784 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2785 (gdb_index_symbol_name_matcher::matches): Remove.
2786 (mapped_index_base::find_name_components_bounds): Add "lang"
2788 (mapped_index_base::build_name_components): Also split names
2789 according to Ada syntax.
2790 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2791 type of "match_callback".
2792 (check_match, check_find_bounds_finds)
2793 (dw2_expand_symtabs_matching): Update.
2794 (dw2_debug_names_iterator): Add new constructor.
2795 (dw2_debug_names_map_matching_symbols): New function.
2796 (dw2_debug_names_expand_symtabs_matching): Update.
2797 (dwarf2_debug_names_functions): Use
2798 dw2_debug_names_map_matching_symbols.
2800 2019-09-10 Tom Tromey <tromey@adacore.com>
2802 * dwarf2read.c (dw2_get_file_names_reader): Add the
2803 CU's file name to the results.
2805 2019-09-10 Tom Tromey <tromey@adacore.com>
2807 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2808 map_matching_symbols. Update.
2809 * dwarf2read.c (dw2_map_matching_symbols): Update.
2810 * psymtab.c (match_partial_symbol): Change type; update.
2811 (psym_map_matching_symbols): Likewise.
2812 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2814 * symfile.h (struct quick_symbol_functions)
2815 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2818 2019-09-10 Tom Tromey <tromey@adacore.com>
2820 * psymtab.c (map_block): Remove.
2821 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2822 * symtab.c (iterate_over_symbols_terminated): New function.
2823 * symtab.c (iterate_over_symbols_terminated): Declare.
2825 2019-09-10 Tom Tromey <tromey@adacore.com>
2827 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2828 * language.h (struct language_defn) <la_iterate_over_symbols>:
2830 * symtab.c (iterate_over_symbols): Return bool.
2831 * symtab.h (iterate_over_symbols): Return bool.
2833 2019-09-10 Tom Tromey <tromey@adacore.com>
2835 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2836 (add_nonlocal_symbols): Update.
2837 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2838 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2839 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2840 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2841 Change type of "callback". Remove "data".
2844 2019-09-09 Ali Tamur <tamur@google.com>
2846 * dwarf2read.c (comp_unit_head): Update comment.
2847 (dwarf2_dwo_name): New function declaration.
2848 (dwarf_unit_type_name): New function declaration.
2849 (read_comp_unit_head): Add support for new compilation units,
2850 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2851 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2852 (currently named as "signature") in their header. Also clarify error
2854 (lookup_dwo_id): New function. Returns the dwo id of the given
2856 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2857 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2859 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2860 (dwarf2_dwo_name): Get the dwo name if present.
2861 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2864 2019-09-09 Tom Tromey <tom@tromey.com>
2866 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2868 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2870 * python/python.c (do_start_initialization): Make progname_copy static,
2871 to avoid a leak report.
2873 2019-09-08 Tom Tromey <tom@tromey.com>
2875 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2877 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2879 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2880 Change type to gdb::optional<block_enum>.
2881 (dw2_symtab_iter_init): Change block_index parameter type
2882 to gdb::optional<block_enum>.
2883 (dw2_lookup_symbol): Change block_index parameter
2884 type to block_enum.c
2885 (dw2_debug_names_lookup_symbol): Likewise.
2886 * psymtab.c (psym_lookup_symbol): Likewise.
2887 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2888 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2891 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2893 * defs.h (relocate_gdb_directory): Change int to bool in
2894 signature and rename flag to relocatable.
2895 * main.c (relocate_path): Likewise.
2896 (relocate_gdb_directory): Likewise.
2898 2019-09-06 Alan Modra <amodra@gmail.com>
2900 * coffread.c (coff_symfile_read): Constify filename variable.
2901 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2902 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2903 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2904 * solib.c (reload_shared_libraries_1): Likewise.
2905 * symfile.c (reread_symbols): Likewise.
2906 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2907 * solib-darwin.c (darwin_bfd_open): Likewise.
2908 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2910 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2912 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2913 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2915 2019-09-03 Tom Tromey <tromey@adacore.com>
2917 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2919 (has_negatives): Unbias a range type bound.
2920 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2921 * gdbtypes.c (operator==): Handle new field.
2922 (create_range_type): Add "bias" parameter.
2923 (create_static_range_type, resolve_dynamic_range): Update.
2924 * gdbtypes.h (struct range_bounds) <bias>: New member.
2925 (create_range_type): Add bias parameter.
2926 * printcmd.c (print_scalar_formatted): Unbias range types.
2927 * value.c (unpack_long): Unbias range types.
2928 (pack_long): Bias range types.
2930 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2932 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2935 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2937 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2938 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2939 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2940 (compile_probe_arg): Likewise.
2941 * probe.h (get_argument_count): Likewise.
2942 * solib-svr4.c (solib_event_probe_action): Likewise.
2943 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2945 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2947 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2949 (svr4_create_solib_event_breakpoints): ...from here.
2951 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2953 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2954 suffix from warning message.
2956 2019-08-30 Tom Tromey <tom@tromey.com>
2958 * tui/tui-winsource.h (struct tui_source_window_base)
2959 <refresh_all>: Don't declare.
2960 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2962 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2963 tui_show_locator_content.
2964 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2966 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2967 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2970 2019-08-30 Tom Tromey <tom@tromey.com>
2972 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2974 2019-08-30 Tom Tromey <tom@tromey.com>
2976 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2977 Remove unnecessary forward declarations.
2979 2019-08-30 Tom Tromey <tom@tromey.com>
2981 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2983 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2984 tui_show_locator_content.
2986 2019-08-30 Tom Tromey <tom@tromey.com>
2988 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2989 (tui_locator_window::rerender): Rewrite using body of previous
2990 tui_show_locator_content.
2992 2019-08-30 Tom Tromey <tom@tromey.com>
2994 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2995 set_locator_fullname>: New methods.
2996 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2997 Rename from tui_set_locator_fullname.
2998 (tui_locator_window::set_locator_info): Rename from
2999 tui_set_locator_info. Return bool.
3000 (tui_update_locator_fullname, tui_show_frame_info): Update.
3002 2019-08-30 Tom Tromey <tom@tromey.com>
3004 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3006 2019-08-30 Tom Tromey <tom@tromey.com>
3008 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3011 2019-08-30 Tom Tromey <tom@tromey.com>
3013 * tui/tui-wingeneral.c (box_win): Assume win_info and
3014 win_info->handle cannot be NULL.
3016 2019-08-30 Tom Tromey <tom@tromey.com>
3018 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3019 refresh_window>: Declare.
3020 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3022 (tui_data_item_window::rerender): Rename from
3023 tui_display_register.
3024 (tui_data_item_window::refresh_window): New method.
3025 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3028 2019-08-30 Tom Tromey <tom@tromey.com>
3030 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3031 regs_column_count, current_group>: Move later. Now private.
3032 <get_current_group>: New method.
3033 * tui/tui-regs.c (tui_reg_command): Update.
3034 * tui/tui-layout.c (tui_set_layout): Update.
3036 2019-08-30 Tom Tromey <tom@tromey.com>
3038 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3039 (tui_data_window::rerender): Don't call
3040 check_and_display_highlight_if_needed.
3041 (tui_data_window::refresh_all): Remove call to
3044 2019-08-30 Tom Tromey <tom@tromey.com>
3046 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3047 (tui_data_window::display_registers_from)
3048 (tui_data_window::display_reg_element_at_line)
3049 (tui_data_window::display_registers_from_line): Remove checks of
3052 2019-08-30 Tom Tromey <tom@tromey.com>
3054 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3056 * tui/tui-regs.c (tui_data_window::show_registers): Call
3058 (tui_data_window::rerender): Rename from display_all_data.
3059 (tui_data_window::rerender): Remove old implementation.
3061 2019-08-30 Tom Tromey <tom@tromey.com>
3063 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3065 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3067 2019-08-29 Bernhard Wodok <barto@gmx.net>
3068 Sergio Durigan Junior <sergiodj@redhat.com>
3071 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3073 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3075 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3076 when searching for types.
3078 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3080 * f-lang.c (f_language_defn): Use f_print_typedef.
3081 * f-lang.h (f_print_typedef): Declare.
3082 * f-typeprint.c (f_print_typedef): Define.
3084 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3086 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3088 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3090 * cli/cli-utils.c (info_print_options_defs): Delete.
3091 (make_info_print_options_def_group): Delete.
3092 (extract_info_print_options): Delete.
3093 (info_print_command_completer): Delete.
3094 (info_print_args_help): Add extra parameter, and optionally
3095 include text about -n flag.
3096 * cli/cli-utils.h (struct info_print_options): Delete.
3097 (extract_info_print_options): Delete declaration.
3098 (info_print_command_completer): Delete declaration.
3099 (info_print_args_help): Add extra parameter, extend header
3101 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3103 * stack.c (struct info_print_options): New type.
3104 (info_print_options_defs): New file scoped variable.
3105 (make_info_print_options_def_group): New static function.
3106 (info_print_command_completer): New static function.
3107 (info_locals_command): Update to use new local functions.
3108 (info_args_command): Likewise.
3109 (_initialize_stack): Add extra parameter to calls to
3110 info_print_args_help.
3111 * symtab.c (search_symbols): Add extra parameter, use this to
3112 possibly excluse non-debug symbols.
3113 (symtab_symbol_info): Add extra parameter, which is passed on to
3115 (struct info_print_options): New type.
3116 (info_print_options_defs): New file scoped variable.
3117 (make_info_print_options_def_group): New static function.
3118 (info_print_command_completer): New static function.
3119 (info_variables_command): Update to use local functions, and pass
3120 extra parameter through to symtab_symbol_info.
3121 (info_functions_command): Likewise.
3122 (info_types_command): Pass additional argument through to
3124 (rbreak_command): Pass extra argument to search_symbols.
3125 (_initialize_symtab): Add extra arguments for calls to
3126 info_print_args_help, and update help text for 'info variables',
3127 'whereis', and 'info functions' commands.
3128 * symtab.h (search_symbols): Add extra argument to declaration.
3129 * NEWS: Mention new flags.
3131 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3133 * symtab.c (lookup_static_symbol): Call the new function (and move
3134 it down to be next to lookup_global_symbol).
3135 (struct global_sym_lookup_data): Add block_enum member and rename to...
3136 (struct global_or_static_sym_lookup_data): ...this.
3137 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3138 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3139 (lookup_symbol_global_or_static_iterator_cb): ...this.
3140 (lookup_global_or_static_symbol): New function.
3141 (lookup_global_symbol): Call new function.
3143 2019-08-26 Tom de Vries <tdevries@suse.de>
3146 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3147 when pc_probe.prob == NULL.
3149 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3151 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3152 variable symbol_linkage to symbol_linkage_.
3154 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3156 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3157 represent whether the symbol is static, dynamic, or we don't
3160 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3162 * gdb/rx-tdep.c (rx_register_names): New.
3163 (rx_register_name): Delete.
3164 (rx_psw_type): Delete.
3165 (rx_fpsw_type): Delete.
3166 (rx_register_type): Delete.
3167 (rx_gdbarch_init): Convert target-descriptions.
3168 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3169 * gdb/features/Makefile: Add rx.xml.
3170 * gdb/features/rx.xml: New.
3171 * gdb/features/rx.c: Generated.
3172 * gdb/NEWS: Mention target description support.
3174 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3176 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3179 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3181 * configure.ac: Don't check for 'dlfcn.h' (moved to
3182 gdbsupport/common.m4).
3183 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3185 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3186 * compile/compile-c-support.c: Include
3187 'gdbsupport/gdb-dlfcn.h'.
3188 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3189 * gdb-dlfcn.c: Move to...
3190 * gdbsupport/gdb-dlfcn.c: ... here.
3191 * gdb-dlfcn.h: Move to...
3192 * gdbsupport/gdb-dlfcn.h: ... here.
3194 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3196 * nios2-tdep.c (struct reg_value): Improve comments. Make
3197 the offset field signed.
3199 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3201 * python/lib/gdb/__init__.py (_execute_file): New function.
3202 * python/python.c (python_run_simple_file): Call gdb._execute_file
3205 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3207 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3208 all uses as this was never set to anything but a zero value.
3210 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3212 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3214 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3216 * tui/tui-data.h (tui_gen_win_info): Add an =default
3217 move constructor, required by some GCC versions.
3219 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3221 * go32-nat.c (go32_sysinfo): Add hygon_p.
3223 2019-08-20 Tom Tromey <tom@tromey.com>
3225 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3226 line_from_reg_element_no, first_reg_element_no_inline,
3227 display_all_data, delete_data_content_windows,
3228 erase_data_content>: Now private.
3230 2019-08-20 Tom Tromey <tom@tromey.com>
3232 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3233 (tui_unhighlight_win, tui_highlight_win)
3234 (tui_win_info::make_window): Update.
3235 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3237 2019-08-20 Tom Tromey <tom@tromey.com>
3239 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3240 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3241 (MAX_PID_WIDTH): Move to tui-stack.c.
3242 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3243 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3244 (MAX_PID_WIDTH): Move from tui-data.h.
3246 2019-08-20 Tom Tromey <tom@tromey.com>
3248 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3249 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3251 (tui_gen_win_info::make_window): Rename from tui_make_window.
3252 (tui_win_info::make_window): New method.
3253 (tui_gen_win_info::make_visible): Update.
3254 * tui/tui-source.c (tui_source_window::set_contents): Update.
3255 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3256 (tui_data_window::display_registers_from): Update.
3257 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3258 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3262 (struct tui_win_info) <make_window>: Declare.
3263 <can_box>: Now virtual.
3264 <title>: New member.
3265 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3266 * tui/tui-command.c (tui_cmd_window::resize): Update.
3268 2019-08-20 Tom Tromey <tom@tromey.com>
3270 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3271 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3272 (tui_data_window::check_register_values): Update.
3274 2019-08-20 Tom Tromey <tom@tromey.com>
3276 * tui/tui-regs.h (struct tui_data_window): Use
3277 DISABLE_COPY_AND_ASSIGN.
3278 <regs_content>: Change type, removing unique_ptr.
3279 <tui_data_window>: Add move constructor.
3280 * tui/tui-regs.c (tui_data_window::show_registers)
3281 (tui_data_window::show_register_group)
3282 (tui_data_window::display_registers_from)
3283 (tui_data_window::display_registers_from)
3284 (tui_data_window::first_data_item_displayed)
3285 (tui_data_window::delete_data_content_windows)
3286 (tui_data_window::rerender, tui_data_window::refresh_window)
3287 (tui_data_window::check_register_values): Update.
3289 2019-08-20 Tom Tromey <tom@tromey.com>
3291 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3292 show_register_group>: Declare.
3293 (tui_show_register_group): Don't declare.
3294 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3296 (tui_data_window::show_register_group): Rename from
3297 tui_show_register_group.
3298 (tui_data_window::check_register_values, tui_reg_command):
3300 * tui/tui-layout.c (tui_set_layout): Update.
3302 2019-08-20 Tom Tromey <tom@tromey.com>
3304 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3306 (tui_check_register_values): Don't declare.
3307 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3308 from tui_check_register_values.
3309 * tui/tui-hooks.c (tui_register_changed): Update.
3311 2019-08-20 Tom Tromey <tom@tromey.com>
3313 * tui/tui-regs.c (tui_reg_layout): Move later.
3314 (tui_show_registers): Don't enable TUI mode or change layout.
3316 2019-08-20 Tom Tromey <tom@tromey.com>
3318 * tui/tui-regs.h (struct tui_data_item_window)
3319 <~tui_data_item_window>: Remove.
3320 <content>: Now a unique_xmalloc_ptr.
3321 * tui/tui-regs.c (tui_register_format): Return a
3323 (tui_get_register): Update.
3324 (~tui_data_item_window): Remove.
3325 (tui_data_window::display_registers_from, tui_display_register):
3327 * tui/tui-io.h (tui_expand_tabs): Update.
3328 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3329 Remove "col" parameter.
3331 2019-08-20 Tom Tromey <tom@tromey.com>
3333 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3335 * tui/tui-regs.c (~tui_data_item_window): Update.
3337 2019-08-20 Tom Tromey <tom@tromey.com>
3339 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3342 2019-08-20 Tom Tromey <tom@tromey.com>
3344 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3346 2019-08-20 Tom Tromey <tom@tromey.com>
3348 * tui/tui-source.h (struct tui_source_window): Update.
3349 * tui/tui-regs.c (tui_show_registers): Update.
3350 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3351 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3352 (NO_REGS_STRING): Remove defines.
3354 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3356 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3357 unnecessary thread walk if remote doesn't support the packet.
3359 2019-08-19 Tom Tromey <tromey@adacore.com>
3361 * python/py-value.c (value_has_field): Fix indentation.
3363 2019-08-19 Tom Tromey <tromey@adacore.com>
3365 * printcmd.c (do_one_display, info_display_command): Update.
3366 * block.h (contained_in): Return bool. Add allow_nested
3368 * block.c (contained_in): Return bool. Add allow_nested
3371 2019-08-19 Tom Tromey <tom@tromey.com>
3373 * configure: Rebuild.
3374 * configure.ac: Disallow the combination of -static-libstdc++ and
3376 * source-cache.c (get_language_name): Handle rust.
3377 (source_cache::get_source_lines): Ignore highlighting exceptions.
3379 2019-08-16 Tom Tromey <tom@tromey.com>
3381 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3382 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3383 (struct tui_source_window_base) <make_visible, refresh_window,
3384 resize>: Remove methods.
3385 <execution_info>: Remove field.
3386 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3387 (tui_show_source_line, tui_source_window_base)
3388 (~tui_source_window_base): Update.
3389 (tui_source_window_base::resize)
3390 (tui_source_window_base::make_visible)
3391 (tui_source_window_base::refresh_window): Remove.
3392 (tui_source_window_base::update_exec_info): Update.
3393 * tui/tui-source.c (tui_source_window::set_contents): Update.
3394 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3396 2019-08-16 Tom Tromey <tom@tromey.com>
3398 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3399 deprecated_query_hook.
3401 2019-08-16 Tom Tromey <tom@tromey.com>
3403 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3404 (tui_update_source_windows_with_line): Update.
3405 * tui/tui-source.h (struct tui_source_window)
3406 <show_symtab_source>: Declare.
3407 (tui_show_symtab_source): Don't declare.
3408 * tui/tui-source.c (tui_show_symtab_source): Rename from
3409 tui_show_symtab_source.
3411 2019-08-16 Tom Tromey <tom@tromey.com>
3413 * tui/tui-winsource.h (struct tui_source_window_base)
3414 <set_contents>: Declare.
3415 * tui/tui-winsource.c
3416 (tui_source_window_base::update_source_window_as_is): Update.
3417 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3419 (tui_set_source_content): Don't declare.
3420 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3421 tui_set_source_content.
3422 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3424 (tui_set_disassem_content): Don't declare.
3425 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3426 tui_set_disassem_content.
3428 2019-08-16 Tom Tromey <tom@tromey.com>
3430 * tui/tui-winsource.h (struct tui_source_window_base)
3431 <update_breakpoint_info>: Declare.
3432 (tui_update_breakpoint_info): Don't declare.
3433 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3434 (tui_update_all_breakpoint_info): Update.
3435 (tui_source_window_base::update_breakpoint_info): Rename from
3436 tui_update_breakpoint_info.
3437 (tui_source_window_base::update_exec_info): Update.
3439 2019-08-16 Tom Tromey <tom@tromey.com>
3441 * tui/tui-winsource.h (struct tui_source_window_base)
3442 <update_source_window>: Declare.
3443 (tui_update_source_window): Don't declare.
3444 * tui/tui-winsource.c
3445 (tui_source_window_base::update_source_window): Rename from
3446 tui_update_source_window.
3447 (tui_source_window_base::rerender): Update.
3448 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3449 * tui/tui-disasm.c (tui_show_disassem)
3450 (tui_show_disassem_and_update_source)
3451 (tui_disasm_window::maybe_update): Update.
3453 2019-08-16 Tom Tromey <tom@tromey.com>
3455 * tui/tui-winsource.h (struct tui_source_window_base)
3456 <update_source_window_as_is>: Declare.
3457 (tui_update_source_window_as_is): Don't declare.
3458 * tui/tui-winsource.c (tui_update_source_window): Update
3459 (tui_source_window_base::update_source_window_as_is): Rename from
3460 tui_update_source_window_as_is.
3461 (tui_source_window_base::refill): Update.
3462 * tui/tui-source.c (tui_show_symtab_source): Update.
3463 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3466 2019-08-16 Tom Tromey <tom@tromey.com>
3468 * tui/tui-winsource.h (tui_update_source_window)
3469 (tui_update_source_window_as_is): Remove "noerror" parameter.
3470 * tui/tui-winsource.c (tui_update_source_window)
3471 (tui_update_source_window_as_is): Remove "noerror" parameter.
3472 (tui_update_source_windows_with_addr)
3473 (tui_update_source_windows_with_line)
3474 (tui_source_window_base::rerender)
3475 (tui_source_window_base::refill): Update.
3476 * tui/tui-source.h (tui_set_source_content)
3477 (tui_show_symtab_source): Remove "noerror" parameter.
3478 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3480 (tui_show_symtab_source): Likewise.
3481 (tui_source_window::maybe_update): Update.
3482 * tui/tui-disasm.c (tui_show_disassem)
3483 (tui_show_disassem_and_update_source)
3484 (tui_disasm_window::do_scroll_vertical)
3485 (tui_disasm_window::maybe_update): Update.
3487 2019-08-16 Tom Tromey <tom@tromey.com>
3489 * tui/tui.c (tui_is_window_visible): Update.
3490 * tui/tui-wingeneral.c (tui_make_window)
3491 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3492 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3493 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3494 (tui_set_win_height_command, parse_scrolling_args): Update.
3495 * tui/tui-source.c (tui_source_window::style_changed): Update.
3496 * tui/tui-regs.c (tui_show_registers)
3497 (tui_data_window::first_data_item_displayed)
3498 (tui_data_window::delete_data_content_windows)
3499 (tui_check_register_values, tui_reg_command): Update.
3500 * tui/tui-disasm.c (tui_show_disassem): Update.
3501 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3503 <is_visible>: Remove field.
3504 * tui/tui-data.c (tui_next_win, tui_prev_win)
3505 (tui_delete_invisible_windows): Update.
3507 2019-08-16 Tom Tromey <tom@tromey.com>
3509 * tui/tui-winsource.h (struct tui_source_window_base)
3510 <m_has_locator>: Remove.
3511 * tui/tui-layout.c (show_source_disasm_command, show_data)
3512 (show_source_or_disasm_and_command): Update.
3514 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3516 * NEWS (Other MI changes): New subsection.
3517 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3518 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3519 * arch-utils.c (default_get_pc_address_flags): New function.
3520 * arch-utils.h (default_get_pc_address_flags): New declaration.
3521 * gdbarch.sh: Add get_pc_address_flags.
3522 * gdbarch.c: Regenerate.
3523 * gdbarch.h: Likewise.
3524 * stack.c (print_pc): New function.
3525 (print_frame_info) (print_frame): Call print_pc.
3527 2019-08-16 Tom de Vries <tdevries@suse.de>
3529 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3530 print_objfile_section_info.
3532 2019-08-15 Tom Tromey <tom@tromey.com>
3534 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3535 calling update_cmdwin_start_line.
3536 * tui/tui-winsource.h (struct tui_source_window_base)
3537 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3538 <rerender>: Declare.
3539 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3541 (tui_source_window_base::set_new_height): Remove.
3542 (tui_source_window_base::rerender): Rename from
3543 do_make_visible_with_new_height.
3544 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3546 (tui_win_info::make_invisible_and_set_new_height)
3547 (tui_win_info::make_visible_with_new_height): Remove.
3548 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3550 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3551 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3552 do_make_visible_with_new_height>: Don't declare.
3553 <rerender>: Declare.
3554 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3556 (tui_data_window::do_make_visible_with_new_height): Remove.
3557 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3558 call tui_show_locator_content.
3559 (tui_gen_win_info::resize): Call rerender.
3560 (show_source_or_disasm_and_command): Don't call
3561 tui_show_locator_content.
3562 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3564 (struct tui_win_info) <rerender>: Declare.
3565 <set_new_height, make_invisible_and_set_new_height,
3566 make_visible_with_new_height>: Don't declare.
3567 * tui/tui-data.c (tui_win_list::rerender): New method.
3568 * tui/tui-command.h (struct tui_cmd_window)
3569 <do_make_visible_with_new_height>: Don't declare.
3571 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3573 2019-08-15 Tom Tromey <tromey@adacore.com>
3575 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3576 * ada-lang.c (ada_enum_name): Likewise.
3578 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3580 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3582 (GdbOutputErrorFile): Likewise.
3583 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3585 (execute_unwinders): Rename to have a leading underscore.
3586 (auto_load_packages): Likewise.
3587 (global scope): Adjust call to auto_load_packages accordingly.
3588 (GdbSetPythonDirectory): Likewise.
3589 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3590 instead of execute_unwinders.
3592 2019-08-15 Tom Tromey <tom@tromey.com>
3594 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3595 (show_data): Don't change window visibility.
3596 (tui_gen_win_info::resize): Remove special case for command
3597 window. Use wresize, when available.
3598 (show_source_or_disasm_and_command): Don't change window
3600 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3601 <make_visible>: New method.
3602 * tui/tui-command.c (tui_cmd_window::resize): New method.
3604 2019-08-15 Tom Tromey <tom@tromey.com>
3606 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3607 (struct tui_source_windows): New.
3608 * tui/tui-winsource.c (tui_display_main): Update.
3609 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3610 (new_height_ok, parse_scrolling_args): Update.
3611 * tui/tui-layout.c (show_layout, show_data): Update.
3612 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3613 (tui_add_to_source_windows): Don't declare.
3614 * tui/tui-data.c (source_windows, tui_source_windows)
3615 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3617 2019-08-15 Tom Tromey <tom@tromey.com>
3619 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3621 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3622 * tui/tui-layout.c (show_source_disasm_command, show_data):
3624 (tui_gen_win_info::resize): Rename.
3625 (show_source_or_disasm_and_command): Update.
3626 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3629 2019-08-15 Tom Tromey <tom@tromey.com>
3631 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3632 * tui/tui-interp.c (tui_interp::init): Don't call
3633 tui_initialize_static_data.
3634 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3636 2019-08-15 Tom Tromey <tom@tromey.com>
3638 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3639 examine tui_win_list.
3641 2019-08-15 Tom Tromey <tom@tromey.com>
3643 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3644 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3645 tui_clear_source_content.
3646 (tui_clear_source_content): Remove.
3647 (tui_source_window_base::do_erase_source_content): Hoist call to
3649 * tui/tui-stack.c (tui_show_frame_info): Don't call
3650 tui_clear_source_content.
3652 2019-08-15 Tom Tromey <tom@tromey.com>
3654 * tui/tui-winsource.h (struct tui_source_window_base)
3655 <do_erase_source_content>: New method.
3656 <erase_source_content>: New method.
3657 (tui_erase_source_content): Don't declare.
3658 * tui/tui-winsource.c (tui_clear_source_content): Update.
3659 (tui_source_window_base::do_erase_source_content): Rename from
3660 tui_erase_source_content.
3661 (tui_source_window_base::show_source_content): Update.
3662 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3663 * tui/tui-source.h (struct tui_source_window)
3664 <erase_source_content>: New method.
3665 * tui/tui-disasm.h (struct tui_disasm_window)
3666 <erase_source_content>: New method.
3668 2019-08-15 Tom Tromey <tom@tromey.com>
3670 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3671 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3673 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3674 * tui/tui-source.c (tui_set_source_content): Update.
3675 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3677 2019-08-15 Tom Tromey <tom@tromey.com>
3679 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3680 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3682 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3684 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3686 (tui_source_window::maybe_update): Update.
3688 2019-08-15 Tom Tromey <tom@tromey.com>
3690 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3691 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3693 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3695 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3697 (tui_disasm_window::maybe_update): Update.
3699 2019-08-15 Tom Tromey <tom@tromey.com>
3701 * tui/tui-winsource.h (struct tui_source_window_base)
3702 <maybe_update>: Declare.
3703 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3705 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3707 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3708 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3710 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3712 2019-08-15 Tom Tromey <tom@tromey.com>
3714 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3716 2019-08-15 Tom Tromey <tom@tromey.com>
3718 * tui/tui-wingeneral.c: Include tui-stack.h.
3719 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3720 (struct tui_locator_window): Move from tui-data.h.
3721 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3722 (tui_initialize_static_data): Move from tui-data.c.
3723 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3724 (struct tui_locator_window): Move to tui-stack.c.
3725 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3726 (tui_initialize_static_data): Move to tui-stack.c.
3728 2019-08-15 Tom Tromey <tom@tromey.com>
3730 * tui/tui-layout.c (show_source_disasm_command)
3731 (show_source_or_disasm_and_command): Use make_visible method, not
3733 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3736 2019-08-15 Tom Tromey <tom@tromey.com>
3738 * tui/tui-wingeneral.h (tui_make_window): Update.
3739 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3741 (tui_gen_win_info::make_visible): Update.
3742 * tui/tui-regs.c (tui_data_window::display_registers_from):
3744 * tui/tui-layout.c (show_source_disasm_command)
3745 (show_source_or_disasm_and_command): Update.
3746 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3747 (enum tui_box): Remove.
3748 (struct tui_win_info) <can_box>: New method.
3749 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3752 2019-08-15 Tom de Vries <tdevries@suse.de>
3754 * linux-nat-trad.c: Include gdbarch.h.
3756 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3758 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3761 2019-08-14 Tom Tromey <tromey@adacore.com>
3763 * darwin-nat.c: Include gdbarch.h.
3764 * darwin-nat-info.c: Include gdbarch.h.
3766 2019-08-13 Tom Tromey <tom@tromey.com>
3768 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3770 * tui/tui-data.c (tui_initialize_static_data): Update.
3772 2019-08-13 Tom Tromey <tom@tromey.com>
3774 * tui/tui-winsource.h (struct tui_exec_info_window)
3775 <~tui_exec_info_window, maybe_allocate_content, get_content,
3777 (struct tui_source_window_base) <set_exec_info_content,
3778 show_exec_info_content>: Don't declare.
3779 * tui/tui-winsource.c
3780 (tui_exec_info_window::maybe_allocate_content): Remove.
3781 (tui_source_window_base::update_exec_info): Rename from
3782 set_exec_info_content.
3783 (tui_source_window_base::show_exec_info_content)
3784 (tui_source_window_base::update_exec_info): Remove.
3786 2019-08-13 Tom Tromey <tom@tromey.com>
3788 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3790 * tui/tui-winsource.c (tui_update_source_window_as_is)
3791 (tui_update_source_windows_with_addr, tui_erase_source_content):
3793 (tui_clear_exec_info_content): Remove.
3795 2019-08-13 Tom Tromey <tom@tromey.com>
3797 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3799 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3800 call tui_erase_exec_info_content.
3801 (tui_clear_exec_info_content): Rename from
3802 tui_erase_exec_info_content.
3803 (tui_clear_exec_info_content): Delete.
3805 2019-08-13 Tom Tromey <tom@tromey.com>
3807 * tui/tui-winsource.h (struct tui_source_window_base)
3808 <show_exec_info_content>: Declare.
3809 (tui_show_exec_info_content): Don't declare.
3810 * tui/tui-winsource.c
3811 (tui_source_window_base::show_exec_info_content): Rename from
3812 tui_show_exec_info_content.
3813 (tui_source_window_base::update_exec_info): Update.
3815 2019-08-13 Tom Tromey <tom@tromey.com>
3817 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3818 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3819 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3820 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3821 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3822 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3825 2019-08-13 Tom Tromey <tom@tromey.com>
3827 * tui/tui-winsource.h (struct tui_source_window_base)
3828 <update_exec_info>: Declare.
3829 (tui_update_exec_info): Don't declare.
3830 * tui/tui-winsource.c (tui_update_source_window_as_is)
3831 (tui_source_window_base::refresh_all)
3832 (tui_update_all_breakpoint_info): Update.
3833 (tui_source_window_base::update_exec_info): Rename from
3834 tui_update_exec_info.
3835 * tui/tui-stack.c (tui_show_frame_info): Update.
3837 2019-08-13 Tom Tromey <tom@tromey.com>
3839 * tui/tui-winsource.h (struct tui_source_window_base)
3840 <set_exec_info_content>: Declare.
3841 (tui_set_exec_info_content): Don't declare.
3842 * tui/tui-winsource.c
3843 (tui_source_window_base::set_exec_info_content): Rename from
3844 tui_set_exec_info_content.
3845 (tui_update_exec_info): Update.
3847 2019-08-13 Tom Tromey <tom@tromey.com>
3849 * tui/tui-winsource.h (struct tui_source_window_base)
3850 <show_source_content>: Declare.
3851 (tui_show_source_content): Don't declare.
3852 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3853 (tui_source_window_base::show_source_content): Rename from
3854 tui_show_source_content.
3855 (tui_source_window_base::refresh_all): Update.
3856 * tui/tui-layout.c (show_source_disasm_command)
3857 (show_source_or_disasm_and_command): Update.
3859 2019-08-13 Tom Tromey <tom@tromey.com>
3861 * tui/tui-winsource.c (tui_erase_source_content)
3862 (tui_show_source_content, tui_source_window_base::refresh_all):
3864 * tui/tui-wingeneral.h
3865 (tui_check_and_display_highlight_if_needed): Don't declare.
3866 * tui/tui-wingeneral.c
3867 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3868 check_and_display_highlight_if_needed.
3869 * tui/tui-win.c (tui_rehighlight_all)
3870 (tui_win_info::make_visible_with_new_height): Update.
3871 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3872 (tui_data_window::erase_data_content)
3873 (tui_data_window::display_all_data): Update.
3874 * tui/tui-data.h (struct tui_win_info)
3875 <check_and_display_highlight_if_needed>: Declare.
3877 2019-08-13 Tom Tromey <tom@tromey.com>
3879 * tui/tui-win.c (tui_resize_all): Call
3880 tui_delete_invisible_windows.
3881 * tui/tui-layout.c (show_layout): Call
3882 tui_delete_invisible_windows.
3883 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3884 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3886 2019-08-13 Tom Tromey <tom@tromey.com>
3888 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3889 tui_add_win_to_layout.
3891 2019-08-13 Tom Tromey <tom@tromey.com>
3893 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3894 * tui/tui-layout.c (tui_default_win_height): Now static.
3896 2019-08-13 Tom Tromey <tom@tromey.com>
3898 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3900 (show_source_disasm_command, show_source_or_disasm_and_command):
3901 Don't check current layout.
3903 2019-08-13 Tom Tromey <tom@tromey.com>
3905 * tui/tui-wingeneral.c (make_all_visible): Remove.
3906 (tui_make_all_invisible): Simplify.
3907 * tui/tui-layout.c (tui_make_all_invisible): Move from
3908 tui-wingeneral.c; simplify.
3909 (show_layout): Hoist call to tui_make_all_invisible.
3910 (show_data): Don't call tui_make_all_invisible.
3912 2019-08-13 Tom Tromey <tom@tromey.com>
3914 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3915 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3917 2019-08-13 Tom Tromey <tom@tromey.com>
3919 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3921 (show_source_disasm_command, show_data)
3922 (show_source_or_disasm_and_command): Don't use
3923 tui_set_current_layout_to.
3924 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3925 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3927 (tui_set_current_layout_to): Remove.
3929 2019-08-13 Tom Tromey <tom@tromey.com>
3931 * tui/tui-layout.c (tui_set_layout): Update.
3932 * tui/tui-data.h (struct tui_layout_def): Remove.
3933 (tui_layout_def): Don't declare.
3934 * tui/tui-data.c (layout_def): Remove.
3935 (tui_layout_def): Remove.
3937 2019-08-13 Tom Tromey <tom@tromey.com>
3939 * tui/tui-winsource.h (struct tui_source_window_base)
3940 <clear_detail>: No longer "override".
3941 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3942 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3943 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3944 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3946 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3948 2019-08-13 Tom Tromey <tromey@adacore.com>
3950 * tracepoint.c: Don't include readline.h or history.h.
3952 2019-08-12 Tom Tromey <tom@tromey.com>
3954 * configure: Rebuild.
3955 * configure.ac: Check for readline 7.
3956 * NEWS: Mention readline 7 requirement.
3959 2019-08-12 Tom Tromey <tom@tromey.com>
3961 * mingw-hdep.c (gdb_select): Remove readline hack.
3963 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3965 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3966 when the function fails.
3968 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3970 * s390-tdep.c (s390_type_align): New function.
3971 (s390_gdbarch_init): Set it as type_align gdbarch method.
3973 2019-08-09 Tom de Vries <tdevries@suse.de>
3976 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3977 pc_low with relocation offset.
3979 2019-08-07 Tom Tromey <tromey@adacore.com>
3981 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3982 (print_frame_args): Update.
3983 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3985 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3986 * frame.h (struct frame_arg): Add initializers.
3987 <error>: Now a unique_xmalloc_ptr.
3989 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3991 * NEWS: Expand the Pointer Authentication entry.
3992 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3993 (aarch64_frame_unmask_lr): ... to this.
3994 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3995 Call aarch64_frame_unmask_lr.
3996 * frame.c (struct frame_info): Add "masked" variable.
3997 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3998 (fprint_frame): Check for masked pc.
3999 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4001 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4002 * stack.c (print_frame): Check for masked pc.
4004 2019-08-06 Tom Tromey <tom@tromey.com>
4006 * stabsread.c (patch_block_stabs, read_one_struct_field)
4007 (read_enum_type): Use obstack_strndup.
4008 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4009 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4010 * dwarf2read.c (guess_full_die_structure_name)
4011 (anonymous_struct_prefix): Use obstack_strndup.
4012 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4013 * c-exp.y (yylex): Use obstack_strndup.
4014 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4015 (write_var_or_type): Use obstack_strndup.
4017 2019-08-06 Tom Tromey <tom@tromey.com>
4019 * symfile.c (reread_symbols): Use obstack_strdup.
4020 * stabsread.c (read_type): Use obstack_strdup.
4021 * gdb_obstack.h (obstack_strdup): New overload.
4022 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4023 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4024 (dwarf2_canonicalize_name): Use obstack_strdup.
4025 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4026 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4029 2019-08-06 Tom Tromey <tom@tromey.com>
4031 * gdb_obstack.h (obstack_strdup): Define.
4032 * gdb_obstack.c (obstack_strdup): Don't define.
4034 2019-08-06 Tom Tromey <tom@tromey.com>
4036 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4038 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4040 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4041 * stabsread.c (common_block_start): Use obstack_strdup.
4042 * objfiles.c (set_objfile_main_name, objfile): Use
4044 * namespace.c (add_using_directive): Use obstack_strdup.
4045 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4046 * jit.c (finalize_symtab): Use obstack_strdup.
4047 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4048 (guess_partial_die_structure_name, partial_die_info::fixup)
4049 (dwarf2_name): Use obstack_strdup.
4050 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4052 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4053 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4055 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4057 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4059 * unittests/help-doc-selftests.c: New file.
4060 * Makefile.in: Add the new file.
4062 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4064 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4065 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4066 the full first line, except when FOR_VALUE_PREFIX. In this case,
4067 the trailing '.' is not output, and the first character is uppercased.
4068 (print_help_for_command): Update call to print_doc_line.
4069 (print_doc_of_command): Likewise.
4070 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4071 * cli/cli-option.c (append_indented_doc): Do not append newline.
4072 (build_help_option): Append newline after first appended_indented_doc
4073 only if a second call is done.
4074 (build_help): Append 2 new lines before each option, except the first
4076 * compile/compile.c (_initialize_compile): Add new lines after
4077 %OPTIONS%, when not at the end of the help.
4078 Change help doc or code
4079 producing the help doc to respect the invariants.
4080 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4081 Also removed the new line after 'Options:', as all other commands
4082 do not put an empty line between 'Options:' and the first option.
4083 * printcmd.c (_initialize_printcmd): Likewise.
4084 * stack.c (_initialize_stack): Likewise.
4085 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4086 incorrectly telling COMMAND is optional.
4087 * ada-lang.c (_initialize_ada_language): Change help doc or code
4088 producing the help doc to respect the invariants.
4089 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4090 * breakpoint.c (_initialize_breakpoint): Likewise.
4091 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4092 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4093 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4094 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4095 _initialize_cli_style): Likewise.
4096 * corelow.c (core_target_info): Likewise.
4097 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4098 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4099 * filesystem.c (_initialize_filesystem): Likewise.
4100 * frame.c (_initialize_frame): Likewise.
4101 * gnu-nat.c (add_task_commands): Likewise.
4102 * infcall.c (_initialize_infcall): Likewise.
4103 * infcmd.c (_initialize_infcmd): Likewise.
4104 * interps.c (_initialize_interpreter): Likewise.
4105 * language.c (_initialize_language): Likewise.
4106 * linux-fork.c (_initialize_linux_fork): Likewise.
4107 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4108 * maint.c (_initialize_maint_cmds): Likewise.
4109 * memattr.c (_initialize_mem): Likewise.
4110 * printcmd.c (_initialize_printcmd): Likewise.
4111 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4113 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4114 * record-btrace.c (_initialize_record_btrace): Likewise.
4115 * record-full.c (_initialize_record_full): Likewise.
4116 * record.c (_initialize_record): Likewise.
4117 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4118 * regcache.c (_initialize_regcache): Likewise.
4119 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4120 _initialize_remote): Likewise.
4121 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4122 * serial.c (_initialize_serial): Likewise.
4123 * skip.c (_initialize_step_skip): Likewise.
4124 * source.c (_initialize_source): Likewise.
4125 * stack.c (_initialize_stack): Likewise.
4126 * symfile.c (_initialize_symfile): Likewise.
4127 * symtab.c (_initialize_symtab): Likewise.
4128 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4129 * top.c (init_main): Likewise.
4130 * tracefile-tfile.c (tfile_target_info): Likewise.
4131 * tracepoint.c (_initialize_tracepoint): Likewise.
4132 * tui/tui-win.c (_initialize_tui_win): Likewise.
4133 * utils.c (add_internal_problem_command): Likewise.
4134 * valprint.c (value_print_option_defs): Likewise.
4136 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4139 * configure.ac: Drop enable-libmcheck support.
4140 * configure, config.in: Rebuild.
4141 * libmcheck.m4: Remove.
4142 * acinclude.m4: Don't include it.
4143 * Makefile.in: Don't distribute it.
4144 * top.c (print_gdb_configuration): Don't mention it.
4146 2019-08-06 Tom Tromey <tom@tromey.com>
4148 * utils.c (set_output_style): Sometimes pass stream to
4150 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4151 * record-btrace.c (btrace_insn_history): Update.
4152 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4154 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4155 Update initializers.
4156 <m_uiout>: New field.
4158 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4159 Remove "uiout" parameter.
4160 (dump_insns): Update.
4161 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4162 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4164 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4166 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4167 (error_in_psymtab_expansion): Likewise.
4168 (lookup_symbol_via_quick_fns): Likewise.
4169 (basic_lookup_transparent_type_quick): Likewise.
4170 (basic_lookup_transparent_type_1): Likewise.
4172 2019-08-06 Tom Tromey <tromey@adacore.com>
4174 * source.c (last_source_error): Now bool.
4175 (print_source_lines_base): Make "noprint" bool. Only open
4176 source file when last_source_visited changes.
4178 2019-08-06 Tom Tromey <tromey@adacore.com>
4180 * annotate.c (annotate_source_line): Use g_source_cache.
4181 * source-cache.c (source_cache::get_plain_source_lines): Change
4182 parameters. Populate m_offset_cache.
4183 (source_cache::ensure): New method.
4184 (source_cache::get_line_charpos): New method.
4185 (extract_lines): Move lower. Change parameters.
4186 (source_cache::get_source_lines): Move lower.
4187 * source-cache.h (class source_cache): Update comment.
4188 <get_line_charpos>: New method.
4189 <get_source_lines>: Update comment.
4190 <clear>: Clear m_offset_cache.
4191 <get_plain_source_lines>: Change parameters.
4192 <ensure>: New method
4193 <m_offset_cache>: New member.
4194 * source.c (forget_cached_source_info_for_objfile): Update.
4195 (info_source_command): Use g_source_cache.
4196 (find_source_lines, open_source_file_with_line_charpos): Remove.
4197 (print_source_lines_base, search_command_helper): Use g_source_cache.
4198 * source.h (open_source_file_with_line_charpos): Don't declare.
4199 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4200 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4203 2019-08-06 Tom Tromey <tromey@adacore.com>
4205 * source-cache.c (source_cache::get_plain_source_lines):
4206 Remove "first_line" and "last_line" parameters.
4207 (source_cache::get_source_lines): Cache plain text.
4208 * source-cache.h (class source_cache)
4209 <get_plain_source_lines>: Update.
4211 2019-08-06 Tom Tromey <tromey@adacore.com>
4213 * source-cache.c (extract_lines): No longer a method.
4214 Changed type of parameter. Include final newline.
4215 (selftests::extract_lines_test): New function.
4216 (_initialize_source_cache): Likewise.
4217 * source-cache.h (class source_cache)
4218 <extract_lines>: Don't declare.
4220 2019-08-06 Tom Tromey <tromey@adacore.com>
4222 * breakpoint.c (init_breakpoint_sal): Update.
4223 (breakpoint): Update.
4224 * breakpoint.h (struct breakpoint) <filter>: Now a
4227 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4229 * NEWS: Mention dictionary access on blocks.
4230 * python/py-block.c (blpy_getitem): New function.
4231 (block_object_as_mapping): New struct.
4232 (block_object_type): Use new struct for tp_as_mapping field.
4234 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4236 * objfiles.h (objfile): Add a comment describing partial symbols.
4238 2019-08-05 Tom Tromey <tromey@adacore.com>
4240 * compile/compile.c (_initialize_compile): Use _(), not N_().
4241 * thread.c (_initialize_thread): Use _(), not N_().
4242 * stack.c (_initialize_stack): Use _(), not N_().
4243 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4245 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4247 * dwarf2read.c (struct dw2_symtab_iterator):
4248 <want_specific_block>: Remove.
4249 <block_index>: Change type to gdb::optional.
4250 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4251 change type of BLOCK_INDEX parameter to gdb::optional.
4252 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4253 (dw2_lookup_symbol): Don't pass argument for
4254 WANT_SPECIFIC_BLOCK.
4255 (dw2_expand_symtabs_for_function): Don't pass argument for
4256 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4257 (class dw2_debug_names_iterator)
4258 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4259 parameter, change BLOCK_INDEX type to gdb::optional.
4260 <m_want_specific_block>: Remove.
4261 <m_block_index>: Change type to gdb::optional.
4262 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4263 gdb::optional. Re-write in function of gdb::optional.
4264 (dw2_debug_names_lookup_symbol): Don't pass argument for
4265 WANT_SPECIFIC_BLOCK.
4266 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4267 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4270 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4272 * NEWS: Mention changes to "info sources" command.
4274 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4276 * symtab.c (filename_partial_match_opts): New struct type.
4277 (struct output_source_filename_data): New members
4278 regexp, c_regexp, partial_match.
4279 (output_source_filename): Use new members to decide to print file.
4280 (info_sources_option_defs): New variable.
4281 (make_info_sources_options_def_group, print_info_sources_header,
4282 info_sources_command_completer):
4284 (info_sources_command): Read new optional arguments.
4285 (_initialize_symtab): Update info sources help.
4287 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4289 * ada-lang.c (exception_support_info_v0): Renamed from...
4290 (default_exception_support_info): ... this. Create new
4292 (ada_has_this_exception_support): Look up catch_handlers_sym.
4293 (ada_exception_support_info_sniffer): Try v0 after default.
4295 2019-08-01 Tom Tromey <tromey@adacore.com>
4297 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4300 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4302 * s12z-tdep.c: Fix include path for s12z-opc.h.
4304 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4306 * NEWS: Require GNU make 3.82.
4308 2019-07-16 Tom Tromey <tom@tromey.com>
4310 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4313 2019-07-30 Tom Tromey <tromey@adacore.com>
4315 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4317 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4319 * printcmd.c (print_address_symbolic): Print negative offsets.
4320 (build_address_symbolic): Force signed arithmetic when computing
4323 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4325 PR/24474: Add a function to lookup static variables.
4326 * NEWS: Mention this new function.
4327 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4328 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4329 * python/python.c (python_GdbMethods): Add new function.
4331 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4333 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4334 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4335 (objfpy_lookup_static_symbol): New function.
4336 (objfile_object_methods): Add new functions.
4338 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4340 * NEWS: Mention 'set|show print frame-info'. Mention new
4341 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4342 backtrace argument. Mention that python frame filtering code
4343 is now consistent with what 'backtrace' command prints.
4345 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4347 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4349 (print_frame_info_auto, print_frame_info_source_line,
4350 print_frame_info_location, print_frame_info_source_and_location,
4351 print_frame_info_location_and_address, print_frame_info_short_location):
4353 (struct frame_print_options): New member print_frame_info.
4354 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4355 * stack.h (get_user_print_what_frame_info): New declaration.
4356 (frame_show_address): New declaration.
4357 * stack.c (print_frame_arguments_choices): New value 'presence'.
4358 (print_frame_info_auto, print_frame_info_source_line,
4359 print_frame_info_location, print_frame_info_source_and_location,
4360 print_frame_info_location_and_address, print_frame_info_short_location,
4361 print_frame_info_choices, print_frame_info_print_what): New definitions.
4362 (print_frame_args): Only print dots for args if print frame-arguments
4364 (frame_print_option_defs): New element for "frame-info".
4365 (get_user_print_what_frame_info): New function.
4366 (frame_show_address): Make non static. Move comment to stack.h.
4367 (print_frame_info_to_print_what): New function.
4368 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4369 to decide what to print.
4370 (backtrace_command_1): Handle the new print_frame_arguments_presence
4372 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4373 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4374 (py_print_frame): In non-mi mode, use LOCATION as default for
4375 print_what, similarly to frame information printed directly by
4376 backtrace command. Handle frame-info user option in non MI mode.
4378 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4380 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4381 Add case for debugging 32-bit target on 64-bit host. Revise
4384 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4386 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4387 instead of find_function_entry_range_from_pc.
4389 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4391 * stack.c (find_frame_funname): Remove code which preferred
4392 minsym over symtab sym in "certain pathological cases".
4394 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4395 parameter. Change type of "do_demangle" to bool.
4396 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4397 Pass suitable "prefer_sym_over_minsym" flag to
4398 build_address_symbolic(). Don't output "+" for negative offsets.
4399 * printcmd.c (print_address_symbolic): Update invocation of
4400 build_address_symbolic to include a "prefer_sym_over_minsym"
4402 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4403 Restrict cases in which use of minimal symbol is preferred to that
4404 of a found symbol. Update comments.
4406 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4407 for entry pc when entry pc is out of range for that FDE.
4409 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4412 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4415 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4417 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4418 this function's Python signature.
4421 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4423 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4424 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4425 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4426 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4427 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4430 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4432 * h8300-tdep.c (h8300_register_name_common): New.
4433 h8300_register_name): Use h8300_register_name_common.
4434 (h8300s_register_name): Likewise.
4435 (h8300sx_register_name): Likewise.
4436 (h8300h_register_nam): New.
4437 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4440 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4442 * arm-tdep.c (arm_skip_cmse_entry): New function.
4443 (arm_is_sgstubs_section): New function.
4444 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4446 2019-07-22 Tom Tromey <tom@tromey.com>
4448 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4451 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4453 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4456 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4458 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4459 so that GDB doesn't match any msymbols when searching in the
4461 (print_symbol_info): Print using typedef_print or type_print based
4462 on the type of the symbol. Add updated FIXME comment moved from...
4463 (_initialize_symtab): ... move and update FIXME comment to above.
4465 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4467 * NEWS: Mention adding -q option to "info types".
4468 * symtab.c (struct info_types_options): New struct.
4469 (info_types_options_defs): New variable.
4470 (make_info_types_options_def_group): New function.
4471 (info_types_command): Use gdb::option framework to parse options.
4472 (info_types_command_completer): New function.
4473 (_initialize_symtab): Extend the help text on "info types" and
4474 register command completer.
4476 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4478 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4479 (lookup_symbol_in_objfile): Change int to block_enum and add a
4480 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4482 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4484 * MAINTAINERS (Write After Approval): Add self.
4486 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4488 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4489 instruction to the dummy code region.
4491 2019-07-19 Tom Tromey <tromey@adacore.com>
4493 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4494 (ARGSUSED, PARAMS, __func__): Remove rules.
4496 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4498 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4499 * features/arm/arm-with-iwmmxt.c: Remove.
4500 * features/arm/arm-with-iwmmxt.xml: Remove.
4501 * features/arm/arm-with-m-fpa-layout.c: Remove.
4502 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4503 * features/arm/arm-with-m-vfp-d16.c: Remove.
4504 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4505 * features/arm/arm-with-m.c: Remove.
4506 * features/arm/arm-with-m.xml: Remove.
4507 * features/arm/arm-with-neon.c: Remove.
4508 * features/arm/arm-with-neon.xml: Remove.
4509 * features/arm/arm-with-vfpv2.c: Remove.
4510 * features/arm/arm-with-vfpv2.xml: Remove.
4511 * features/arm/arm-with-vfpv3.c: Remove.
4512 * features/arm/arm-with-vfpv3.xml: Remove.
4514 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4516 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4518 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4520 * arch/aarch32.c (aarch32_create_target_description): Create
4521 target descriptions using features.
4522 * arch/arm.c (arm_create_target_description)
4523 (arm_create_mprofile_target_description): Likewise.
4524 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4526 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4528 * Makefile.in: Add new files.
4529 * aarch32-tdep.c: New file.
4530 * aarch32-tdep.h: New file.
4531 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4532 Call aarch32_read_description.
4533 * arch/aarch32.c: New file.
4534 * arch/aarch32.h: New file.
4535 * arch/arm.c (arm_create_target_description)
4536 (arm_create_mprofile_target_description): New function.
4537 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4538 (arm_create_target_description)
4539 (arm_create_mprofile_target_description): New declaration.
4540 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4541 read_description functions.
4542 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4544 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4545 * arm-tdep.c (tdesc_arm_list): New variable.
4546 (arm_register_g_packet_guesses): Call create description functions.
4547 (arm_read_description) (arm_read_mprofile_description): New
4549 * arm-tdep.h (arm_read_description)
4550 (arm_read_mprofile_description): Add declaration.
4551 * configure.tgt: Add new files.
4553 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4555 * top.c (new_ui_command): Open specified terminal just once.
4557 2019-07-18 Tom Tromey <tromey@adacore.com>
4559 * symtab.c (main_name): Constify return type.
4560 * symfile.c (set_initial_language): Update.
4561 * symtab.h (main_name): Constify return type.
4563 2019-07-17 Tom Tromey <tom@tromey.com>
4565 * tui/tui-winsource.c (tui_update_source_window)
4566 (tui_update_source_window_as_is)
4567 (tui_update_source_windows_with_line): Remove return.
4568 * tui/tui-disasm.c (tui_show_disassem)
4569 (tui_show_disassem_and_update_source): Remove return.
4570 * tui/tui.c (tui_reset): Remove return.
4571 * tui/tui-wingeneral.c
4572 (tui_check_and_display_highlight_if_needed): Remove return.
4574 2019-07-17 Tom Tromey <tom@tromey.com>
4576 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4578 2019-07-17 Tom Tromey <tom@tromey.com>
4580 * tui/tui-winsource.h (struct tui_exec_info_window)
4581 (struct tui_source_window_base): Move from tui-data.h.
4582 * tui/tui-winsource.c: Move many method definitions from
4583 elsewhere. Remove "structuring" comments.
4584 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4585 (tui_source_window_base::refresh_window): Move to
4587 * tui/tui-win.c (tui_source_window_base::refresh_all)
4588 (tui_source_window_base::update_tab_width)
4589 (tui_source_window_base::set_new_height)
4590 (tui_source_window_base::do_make_visible_with_new_height): Move to
4592 * tui/tui-source.h: Update.
4593 * tui/tui-source.c (tui_source_window_base::reset): Move to
4595 * tui/tui-disasm.h: Update.
4596 * tui/tui-data.h (struct tui_exec_info_window): Move to
4598 (struct tui_source_window_base): Likewise.
4599 * tui/tui-data.c (tui_source_window_base::clear_detail)
4600 (tui_source_window_base, ~tui_source_window_base): Move to
4603 2019-07-17 Tom Tromey <tom@tromey.com>
4605 * tui/tui-win.c (tui_resize_all)
4606 (tui_source_window_base::update_tab_width)
4607 (tui_adjust_win_heights): Update.
4608 (tui_win_info::make_invisible_and_set_new_height): Rename from
4609 make_invisible_and_set_new_height.
4610 * tui/tui-data.h (struct tui_win_info)
4611 <make_invisible_and_set_new_height>: New method.
4613 2019-07-17 Tom Tromey <tom@tromey.com>
4615 * tui/tui.c: Update.
4616 * tui/tui-source.h (struct tui_source_window): Move from
4618 * tui/tui-layout.c: Update.
4619 * tui/tui-disasm.c: Update.
4620 * tui/tui-data.h (struct tui_source_window): Move to
4623 2019-07-17 Tom Tromey <tom@tromey.com>
4625 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4627 * tui/tui-data.h (struct tui_disasm_window): Move to
4630 2019-07-17 Tom Tromey <tom@tromey.com>
4632 * tui/tui-regs.h (struct tui_data_item_window): Move from
4634 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4635 * tui/tui-data.h (struct tui_data_item_window): Move to
4637 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4639 2019-07-17 Tom Tromey <tom@tromey.com>
4641 * tui/tui.c: Update.
4642 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4643 (tui_cmd_window::max_height): Move to tui-command.c.
4644 * tui/tui-layout.c: Update.
4645 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4646 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4648 * tui/tui-command.h (struct tui_cmd_window): Move from
4650 * tui/tui-command.c: Remove "structuring" comments.
4651 (tui_cmd_window::clear_detail)
4652 (tui_cmd_window::do_make_visible_with_new_height)
4653 (tui_cmd_window::max_height): Move from elsewhere.
4655 2019-07-17 Tom Tromey <tom@tromey.com>
4657 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4659 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4660 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4662 2019-07-17 Tom Tromey <tom@tromey.com>
4664 * tui/tui.c: Update.
4665 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4667 * tui/tui-windata.h: Remove file.
4668 * tui/tui-windata.c: Remove file.
4669 * tui/tui-win.c (tui_data_window::set_new_height)
4670 (tui_data_window::do_make_visible_with_new_height): Move to
4672 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4673 * tui/tui-regs.c: Remove "structuring" comments.
4674 (tui_data_window::first_data_item_displayed)
4675 (tui_data_window::delete_data_content_windows)
4676 (tui_data_window::erase_data_content)
4677 (tui_data_window::display_all_data)
4678 (tui_data_window::refresh_all)
4679 (tui_data_window::do_scroll_vertical)
4680 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4681 (tui_data_window::do_make_visible_with_new_height)
4682 (tui_data_window::refresh_window): Move from elsewhere.
4683 (_initialize_tui_regs): Move to end of file.
4684 * tui/tui-layout.c: Update.
4685 * tui/tui-hooks.c: Update.
4686 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4687 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4689 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4691 2019-07-17 Tom Tromey <tom@tromey.com>
4693 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4696 2019-07-17 Tom Tromey <tom@tromey.com>
4698 * tui/tui-win.c (tui_source_window_base::set_new_height)
4699 (tui_source_window_base::do_make_visible_with_new_height): Use
4700 m_has_locator field directly.
4701 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4703 (struct tui_source_window_base) <has_locator>: Likewise.
4705 2019-07-17 Tom Tromey <tom@tromey.com>
4707 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4709 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4711 * tui/tui-win.c (tui_source_window_base::set_new_height)
4712 (tui_source_window_base::set_new_height)
4713 (make_invisible_and_set_new_height)
4714 (tui_source_window_base::do_make_visible_with_new_height)
4715 (tui_source_window_base::do_make_visible_with_new_height):
4717 * tui/tui-layout.c (show_source_disasm_command, show_data)
4718 (show_source_or_disasm_and_command): Update.
4719 * tui/tui-layout.c (show_layout): Update.
4721 2019-07-17 Tom Tromey <tom@tromey.com>
4723 * tui/tui-layout.c (make_data_window): Remove.
4724 (show_data): Unify creation and re-initialization cases.
4726 2019-07-17 Tom Tromey <tom@tromey.com>
4728 * tui/tui-layout.c (make_source_window, make_disasm_window):
4730 (show_data): Unify creation and re-initialization cases.
4732 2019-07-17 Tom Tromey <tom@tromey.com>
4734 * tui/tui-layout.c (make_command_window): Remove.
4735 (show_source_disasm_command, show_source_or_disasm_and_command):
4736 Unify creation and re-initialization cases.
4738 2019-07-17 Tom Tromey <tom@tromey.com>
4740 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4741 creation and re-initialization cases.
4743 2019-07-17 Tom Tromey <tom@tromey.com>
4745 * tui/tui-regs.c (tui_get_register): Return void.
4747 2019-07-17 Tom Tromey <tom@tromey.com>
4749 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4752 2019-07-17 Tom Tromey <tom@tromey.com>
4754 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4757 2019-07-17 Tom Tromey <tom@tromey.com>
4759 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4760 * tui/tui-regs.c (tui_reg_layout): New function.
4761 (tui_show_registers, tui_reg_command): Use it.
4762 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4763 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4765 (tui_layout_command): Remove.
4767 2019-07-17 Tom Tromey <tom@tromey.com>
4769 * tui/tui-layout.h (tui/tui-layout): Return void.
4770 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4772 2019-07-17 Tom Tromey <tom@tromey.com>
4774 * tui/tui-layout.c (show_source_disasm_command, show_data):
4776 (reset_locator): Remove.
4777 (show_source_or_disasm_and_command): Update.
4779 2019-07-17 Tom Tromey <tom@tromey.com>
4781 * tui/tui-source.c (tui_source_window_base::reset): Remove
4783 * tui/tui-layout.c (make_command_window, make_source_window)
4784 (make_disasm_window, make_data_window)
4785 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4786 (reset_locator, show_source_or_disasm_and_command): Update.
4787 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4789 (struct tui_source_window_base) <reset>: Likewise.
4791 2019-07-17 Tom Tromey <tom@tromey.com>
4793 * tui/tui-layout.c (show_source_disasm_command): Use
4795 (reset_locator): New function.
4796 (init_and_make_win): Remove.
4797 (show_source_or_disasm_and_command): Use reset_locator.
4799 2019-07-17 Tom Tromey <tom@tromey.com>
4801 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4803 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4805 * tui/tui-source.c (tui_source_window_base::reset): New method.
4806 * tui/tui-layout.c (make_command_window): Don't call
4808 (make_source_window, make_disasm_window): Don't call
4809 make_source_or_disasm_window.
4810 (make_data_window): Don't call init_and_make_win. Change calling
4812 (show_source_disasm_command, show_data): Simplify.
4813 (make_source_or_disasm_window): Remove.
4814 (show_source_or_disasm_and_command): Simplify.
4815 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4816 (struct tui_source_window_base) <reset>: Likewise.
4817 <execution_info>: Remove initializer.
4818 * tui/tui-data.c (tui_source_window_base): Initialize
4821 2019-07-17 Tom Tromey <tom@tromey.com>
4823 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4826 2019-07-17 Tom Tromey <tom@tromey.com>
4828 * tui/tui.c (tui_rl_other_window): Update.
4829 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4830 superclass method first. Always iterate over regs_content.
4831 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4833 * tui/tui-win.c (tui_set_focus_command): Update.
4835 2019-07-17 Tom Tromey <tom@tromey.com>
4837 * tui/tui-win.c (tui_set_focus_command): Rename from
4838 tui_set_focus. Call tui_enable.
4839 (tui_set_focus_command): Remove.
4841 2019-07-17 Tom Tromey <tom@tromey.com>
4843 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4845 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4847 (tui_data_window::refresh_window): Call refresh_window on data
4848 items. Always call superclass refresh_window.
4849 (tui_win_info::refresh): Remove.
4850 (tui_source_window_base::refresh_window): Update.
4851 (tui_refresh_all): Update.
4852 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4854 (show_source_or_disasm_and_command): Likewise.
4855 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4856 (struct tui_source_window_base) <refresh>: Likewise.
4858 2019-07-17 Tom Tromey <tom@tromey.com>
4860 * tui/tui-winsource.c (tui_clear_source_content)
4861 (tui_show_source_content): Update.
4862 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4863 whether content is empty.
4864 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4867 2019-07-17 Tom Tromey <tom@tromey.com>
4869 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4871 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4872 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4874 2019-07-17 Tom Tromey <tom@tromey.com>
4876 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4877 (struct tui_data_item_window): Update.
4879 2019-07-17 Tom Tromey <tom@tromey.com>
4881 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4882 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4885 2019-07-17 Tom Tromey <tom@tromey.com>
4887 * tui/tui-winsource.h (tui_erase_source_content)
4888 (tui_clear_source_content): Remove "display_prompt" parameter.
4889 * tui/tui-winsource.c (tui_update_source_window_as_is)
4890 (tui_update_source_windows_with_addr): Update.
4891 (tui_clear_source_content): Remove "display_prompt" parameter.
4892 (tui_erase_source_content): Likewise. Simplify.
4893 (tui_show_source_content): Update.
4894 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4895 * tui/tui-stack.c (tui_show_frame_info): Update.
4896 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4899 2019-07-17 Tom Tromey <tom@tromey.com>
4901 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4902 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4904 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4907 2019-07-17 Tom Tromey <tom@tromey.com>
4909 * tui/tui-winsource.c (tui_clear_source_content)
4910 (tui_show_source_content, tui_show_exec_info_content)
4911 (tui_clear_exec_info_content): Update.
4912 * tui/tui-stack.c (tui_show_locator_content): Update.
4913 (tui_show_frame_info): Update.
4914 * tui/tui-source.h (tui_source_window): Don't declare.
4915 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4916 from tui_source_is_displayed.
4917 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4919 (struct tui_source_window_base) <content_in_use>: New field. Now
4921 (struct tui_source_window) <showing_source_p>: New method.
4922 (TUI_SRC_WIN): Change cast.
4923 * tui/tui-data.c (tui_initialize_static_data): Update.
4925 2019-07-17 Tom Tromey <tom@tromey.com>
4927 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4929 * tui/tui-source.c (tui_source_window::location_matches_p): New
4931 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4933 * tui/tui-data.h (struct tui_source_window_base)
4934 <location_matches_p>: New method.
4935 (struct tui_source_window, struct tui_disasm_window)
4936 <location_matches_p>: Likewise.
4938 2019-07-17 Tom Tromey <tom@tromey.com>
4940 * tui/tui-win.c (tui_set_win_height_command): Rename from
4942 (tui_set_win_height_command): Remove.
4944 2019-07-17 Tom Tromey <tom@tromey.com>
4946 * tui/tui-source.c (tui_source_window): New constructor. Add
4948 (~tui_source_window): New destructor.
4949 (tui_source_window::style_changed): New method.
4950 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4951 (tui_attach_detach_observers): Update.
4952 * tui/tui-data.h (struct tui_source_window): Make constructor not
4953 inline. Add destructor.
4954 (struct tui_source_window) <style_changed>: New method.
4955 <m_observable>: New member.
4957 2019-07-17 Tom Tromey <tom@tromey.com>
4959 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4960 * tui/tui-win.c (tui_resize_all): Fix typo.
4962 2019-07-17 Tom Tromey <tom@tromey.com>
4964 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4965 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4966 (tui_refresh_all): Remove "list" parameter. Use foreach.
4967 * tui/tui-win.c (window_name_completer): Use foreach.
4968 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4969 (update_tab_width): Likewise.
4970 * tui/tui-layout.c (show_layout): Update.
4971 * tui/tui-data.h (class tui_window_iterator): New.
4972 (struct all_tui_windows): New.
4973 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4975 2019-07-17 Tom Tromey <tom@tromey.com>
4977 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4978 parameter. Don't reference globals.
4979 (tui_reg_command): Update.
4981 2019-07-17 Tom Tromey <tom@tromey.com>
4983 * tui/tui-regs.c (tui_show_registers): Simplify.
4985 2019-07-17 Tom Tromey <tom@tromey.com>
4987 * tui/tui-regs.c (tui_show_registers): Update.
4988 (tui_show_register_group): Add win_info parameter.
4990 2019-07-17 Tom Tromey <tom@tromey.com>
4992 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4993 Rename from tui_display_reg_element_at_line.
4994 (tui_data_window::display_registers_from_line): Update.
4995 * tui/tui-data.h (struct tui_data_window)
4996 <display_reg_element_at_line>: New method.
4998 2019-07-17 Tom Tromey <tom@tromey.com>
5000 * tui/tui-regs.h (tui_display_registers_from)
5001 (tui_display_registers_from_line): Don't declare.
5002 * tui/tui-windata.c (tui_data_window::display_all_data)
5003 (tui_data_window::refresh_all)
5004 (tui_data_window::do_scroll_vertical): Update.
5005 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5006 from tui_display_registers_from.
5007 (tui_display_reg_element_at_line): Update.
5008 (tui_data_window::display_registers_from_line): Rename from
5009 tui_display_registers_from_line.
5010 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5011 display_registers_from_line>: New methods.
5013 2019-07-17 Tom Tromey <tom@tromey.com>
5015 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5016 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5017 from tui_erase_data_content.
5018 (tui_data_window::display_all_data)
5019 (tui_data_window::refresh_all)
5020 (tui_data_window::do_scroll_vertical): Update.
5021 * tui/tui-regs.c (tui_show_registers): Update.
5022 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5025 2019-07-17 Tom Tromey <tom@tromey.com>
5027 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5030 (tui_data_window::delete_data_content_windows): Rename from
5031 tui_delete_data_content_windows.
5032 (tui_data_window::display_all_data)
5033 (tui_data_window::do_scroll_vertical): Update.
5034 * tui/tui-data.h (struct tui_data_window)
5035 <delete_data_content_windows>: New method.
5037 2019-07-17 Tom Tromey <tom@tromey.com>
5039 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5040 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5042 2019-07-17 Tom Tromey <tom@tromey.com>
5044 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5045 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5046 from tui_display_all_data.
5048 (tui_data_window::do_make_visible_with_new_height): Update.
5049 * tui/tui-regs.c (tui_show_registers): Update.
5050 * tui/tui-layout.c (tui_set_layout): Update.
5051 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5054 2019-07-17 Tom Tromey <tom@tromey.com>
5056 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5057 * tui/tui-windata.c (tui_display_data_from): Remove.
5058 (tui_data_window::refresh_all): Update.
5060 2019-07-17 Tom Tromey <tom@tromey.com>
5062 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5063 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5064 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5065 tui_display_registers_from_line.
5066 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5067 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5068 "force_display" parameter.
5070 2019-07-17 Tom Tromey <tom@tromey.com>
5072 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5074 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5075 Rename from tui_first_reg_element_no_inline.
5076 (tui_display_reg_element_at_line)
5077 (tui_display_registers_from_line): Update.
5078 * tui/tui-data.h (struct tui_data_window)
5079 <first_reg_element_no_inline>: New method.
5081 2019-07-17 Tom Tromey <tom@tromey.com>
5083 * tui/tui-windata.c (tui_display_data_from)
5084 (tui_data_window::do_scroll_vertical): Update.
5085 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5086 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5087 Rename from tui_line_from_reg_element_no.
5088 (tui_display_registers_from_line): Update.
5089 * tui/tui-data.h (struct tui_data_window)
5090 <line_from_reg_element_no>: New method.
5092 2019-07-17 Tom Tromey <tom@tromey.com>
5094 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5095 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5096 tui_last_regs_line_no.
5097 (tui_display_reg_element_at_line)
5098 (tui_display_registers_from_line): Update.
5099 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5102 2019-07-17 Tom Tromey <tom@tromey.com>
5105 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5106 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5107 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5108 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5109 (tui_update_breakpoint_info): Likewise.
5110 * tui/tui-hooks.c (tui_event_create_breakpoint)
5111 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5114 2019-07-17 Tom Tromey <tom@tromey.com>
5116 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5118 2019-07-17 Tom Tromey <tom@tromey.com>
5120 * tui/tui-winsource.c (tui_update_source_window_as_is)
5121 (tui_update_source_windows_with_addr): Update.
5122 * tui/tui-source.h (tui_set_source_content)
5123 (tui_show_symtab_source): Add "win_info" parameter.
5124 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5126 (tui_show_symtab_source): Likewise.
5128 2019-07-17 Tom Tromey <tom@tromey.com>
5130 * tui/tui-wingeneral.c
5131 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5133 2019-07-17 Tom Tromey <tom@tromey.com>
5135 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5136 (struct tui_cmd_window) <can_scroll>: New method.
5137 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5140 2019-07-17 Tom Tromey <tromey@adacore.com>
5142 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5143 do_field_signed>: Rename. Change type of "value".
5144 * ui-out.c (ui_out::field_signed): Rename from field_int.
5145 Change type of "value".
5146 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5148 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5149 do_field_int. Change type of "value".
5150 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5151 do_field_int. Change type of "value".
5152 * tracepoint.c (trace_status_mi, tfind_1)
5153 (print_one_static_tracepoint_marker): Update.
5154 * thread.c (print_thread_info_1, print_selected_thread_frame):
5156 * stack.c (print_frame, print_frame_info): Update.
5157 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5159 * source.c (print_source_lines_base): Update.
5160 * skip.c (info_skip_command): Update.
5161 * record-btrace.c (btrace_ui_out_decode_error)
5162 (btrace_call_history_src_line): Update.
5163 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5165 * progspace.c (print_program_space): Update.
5166 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5167 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5168 do_field_int. Change type of "value".
5169 * mi/mi-out.c (mi_ui_out::do_table_begin)
5170 (mi_ui_out::do_table_header): Update.
5171 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5173 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5174 (mi_cmd_data_list_changed_registers, output_register)
5175 (mi_cmd_data_read_memory, mi_load_progress)
5176 (mi_cmd_trace_frame_collected): Update.
5177 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5179 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5180 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5181 (mi_cmd_var_list_children, varobj_update_one): Update.
5182 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5183 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5185 * inferior.c (print_inferior): Update.
5186 * gdb_bfd.c (print_one_bfd): Update.
5187 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5189 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5190 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5191 do_field_int. Change type of "value".
5192 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5193 do_field_int. Change type of "value".
5194 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5195 (print_one_breakpoint_location, print_it_catch_fork)
5196 (print_one_catch_fork, print_it_catch_vfork)
5197 (print_one_catch_vfork, print_it_catch_solib)
5198 (print_it_catch_exec, print_it_ranged_breakpoint)
5199 (print_mention_watchpoint, print_mention_masked_watchpoint)
5200 (bkpt_print_it, update_static_tracepoint): Update.
5201 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5202 * break-catch-syscall.c (print_it_catch_syscall): Update.
5203 * ada-tasks.c (print_ada_task_info): Update.
5204 * ada-lang.c (print_it_exception, print_mention_exception):
5207 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5209 PR breakpoints/24541
5210 * gdbarch.c: Regenerate.
5211 * gdbarch.h: Regenerate.
5212 * gdbarch.sh: Adjust return type and parameter types for
5213 'stap_adjust_register'.
5214 (i386_stap_adjust_register): Adjust signature and return new
5216 * stap-probe.c (stap_parse_register_operand): Adjust use of
5217 'gdbarch_stap_adjust_register'.
5219 2019-07-17 Tom Tromey <tromey@adacore.com>
5221 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5223 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5225 (struct s390_process_info): Add initializers.
5226 (s390_add_process): Use new.
5227 (s390_linux_nat_target::low_forget_process): Use delete.
5228 (s390_linux_nat_target::low_new_fork)
5229 (s390_linux_nat_target::stopped_by_watchpoint)
5230 (s390_linux_nat_target::low_prepare_to_resume)
5231 (s390_linux_nat_target::insert_watchpoint)
5232 (s390_linux_nat_target::insert_hw_breakpoint)
5233 (s390_linux_nat_target::remove_watchpoint)
5234 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5236 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5238 * aarch64-fbsd-nat.c: Include regcache.h.
5239 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5241 (aarch64_fbsd_nat_target::fetch_registers)
5242 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5244 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5246 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5248 * fbsd-nat.c: Include gdbarch.h.
5250 2019-07-15 Tom Tromey <tromey@adacore.com>
5252 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5254 2019-07-15 Tom Tromey <tromey@adacore.com>
5256 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5257 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5258 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5259 * cli-out.c (cli_ui_out::do_field_int): New method.
5260 * ui-out.c (ui_out::field_unsigned): New method.
5261 * symfile.c (generic_load): Use field_unsigned.
5262 (print_transfer_performance): Likewise.
5263 * record-btrace.c (ui_out_field_uint): Remove.
5264 (btrace_call_history_insn_range, btrace_call_history): Use
5266 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5268 * ui-out.h (class ui_out) <field_unsigned>: New method.
5269 <do_field_unsigned>: Likewise.
5271 2019-07-15 Tom Tromey <tromey@adacore.com>
5273 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5274 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5275 * target.c (flash_erase_command): Use field_string.
5276 * infrun.c (print_signal_received_reason): Use field_string.
5277 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5278 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5280 * ada-tasks.c (print_ada_task_info): Use field_string.
5282 2019-07-15 Tom Tromey <tromey@adacore.com>
5284 * target.c (flash_erase_command): Use field_core_addr.
5285 * symfile.c (generic_load): Use field_core_addr.
5286 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5287 Use field_core_addr.
5288 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5291 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5293 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5294 value if its desired type is smaller than a CORE_ADDR and signed.
5296 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5298 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5299 of changes to field names, and use new is_reference field to
5300 decide if a property is a reference or not.
5301 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5303 (struct dwarf2_property_baton): Update header comment, rename
5304 'referenced_type' to 'property_type' and update comments.
5305 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5306 default property type, store in property baton, update to take
5307 accound of renamed field.
5308 (read_func_scope): Update call to attr_to_dynamic_prop.
5309 (read_array_type): Likewise.
5310 (dwarf2_per_cu_addr_sized_int_type): New function.
5311 (read_subrange_index_type): Move type finding code to
5312 dwarf2_per_cu_addr_sized_int_type.
5313 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5314 (dwarf2_per_cu_addr_type): New function.
5315 (set_die_type): Update calls to attr_to_dynamic_prop.
5317 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5319 * dwarf2read.c (read_subrange_index_type): New function.
5320 (read_subrange_type): Move code into new function and call it.
5321 * gdbtypes.c (create_range_type): Add some asserts.
5323 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5325 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5326 update return statements.
5327 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5328 declaration, and update comment to match.
5329 * gdbtypes.c (resolve_dynamic_array): Update call to
5330 dwarf2_evaluate_property to match new return type.
5332 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5334 * valarith.c (value_subscripted_rvalue): Change lowerbound
5335 parameter type from int to LONGEST.
5336 * value.h (value_subscripted_rvalue): Likewise in declaration.
5338 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5340 * cli/cli-utils.c (info_print_command_completer): New function.
5341 * cli/cli-utils.h: Add 'completer.h' include, and forward
5342 declaration for 'struct cmd_list_element'.
5343 (info_print_command_completer): Declare.
5344 * stack.c (_initialize_stack): Add completer for 'info locals' and
5346 * symtab.c (_initialize_symtab): Add completer for 'info
5347 variables' and 'info functions'.
5348 * NEWS: Mention completion for additional info commands.
5350 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5352 * cli/cli-utils.c (extract_info_print_args): Delete.
5353 (extract_arg_maybe_quoted): Delete.
5354 (info_print_options_defs): New variable.
5355 (make_info_print_options_def_group): New function.
5356 (extract_info_print_options): Define new function.
5357 * cli/cli-utils.h (extract_info_print_args): Delete.
5358 (struct info_print_options): New structure.
5359 (extract_info_print_options): Declare new function.
5360 * stack.c (info_locals_command): Update to use new
5361 extract_info_print_options, also add a header comment.
5362 (info_args_command): Likewise.
5363 * symtab.c (info_variables_command): Likewise.
5364 (info_functions_command): Likewise.
5366 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5368 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5369 to extract string arguments.
5370 * common/common-utils.c (extract_string_maybe_quoted): New function.
5371 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5373 2019-07-11 Tom Tromey <tromey@adacore.com>
5375 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5376 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5377 * top.h (gdbinit): Don't declare.
5378 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5380 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5381 * top.c (gdb_init): Don't call init_cli_cmds.
5383 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5385 2019-07-11 Tom Tromey <tromey@adacore.com>
5387 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5388 after it has been moved.
5390 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5392 * valops.c (value_must_coerce_to_target): Change return type to
5394 * value.h (value_must_coerce_to_target): Likewise.
5396 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5398 * breakpoint.c (is_hardware_watchpoint): Remove
5399 forward-declaration.
5400 (is_masked_watchpoint): Change return type to bool.
5401 (is_tracepoint): Likewise.
5402 (is_breakpoint): Likewise.
5403 (is_hardware_watchpoint): Likewise.
5404 (is_watchpoint): Likewise.
5405 (is_no_memory_software_watchpoint): Likewise.
5406 (is_catchpoint): Likewise.
5407 (breakpoint_1): Make FILTER parameter's return type bool.
5408 is_masked_watchpoint): Change return type to bool.
5409 (save_breakpoints): Make FILTER parameter's return type bool.
5410 * breakpoint.h (is_breakpoint): Change return type to bool.
5411 (is_watchpoint): Likewise.
5412 (is_catchpoint): Likewise.
5413 (is_tracepoint): Likewise.
5415 2019-07-10 Tom Tromey <tom@tromey.com>
5417 * defs.h: Don't include gdbarch.h.
5418 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5419 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5420 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5421 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5422 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5423 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5424 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5425 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5426 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5427 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5428 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5429 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5430 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5431 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5432 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5433 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5434 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5435 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5436 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5437 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5438 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5439 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5440 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5441 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5442 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5443 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5444 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5446 2019-07-10 Tom Tromey <tromey@adacore.com>
5448 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5449 * breakpoint.c (init_ada_exception_breakpoint): Register as
5451 (print_one_breakpoint_location, print_one_breakpoint): Use
5452 is_ada_exception_catchpoint.
5453 * ada-lang.c (class ada_catchpoint_location): Pass
5454 bp_loc_software_breakpoint to bp_location constructor.
5455 (is_ada_exception_catchpoint): New function.
5457 2019-07-10 Tom Tromey <tromey@adacore.com>
5459 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5461 (struct arm_exidx_entry): New method operator<.
5462 (struct arm_exidx_data) <section_maps>: Change type.
5463 (arm_exidx_data_free): Remove.
5464 (arm_exidx_data_key): Change type. Move lower.
5465 (arm_exidx_new_objfile): Update.
5466 (arm_compare_exidx_entries): Remove.
5467 (arm_find_exidx_entry, _initialize_arm_tdep)
5469 2019-07-10 Tom Tromey <tromey@adacore.com>
5471 * solib-spu.c (ocl_program_data_key): Change type.
5472 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5475 2019-07-10 Tom Tromey <tromey@adacore.com>
5477 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5478 (struct solib_aix_inferior_data) <library_list>: Change type.
5479 (solib_aix_inferior_data_handle): Change type.
5480 (get_solib_aix_inferior_data): Update.
5481 (solib_aix_free_library_list): Remove.
5482 (library_list_start_library): Update.
5483 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5485 (solib_aix_get_library_list)
5486 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5487 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5489 2019-07-10 Tom Tromey <tromey@adacore.com>
5491 * solib-dsbt.c (struct dsbt_info): Add initializers.
5492 (solib_dsbt_pspace_data): Change type.
5493 (dsbt_pspace_data_cleanup): Remove.
5494 (get_dsbt_info, _initialize_dsbt_solib): Update.
5496 2019-07-10 Tom Tromey <tromey@adacore.com>
5498 * spu-tdep.c (spu_overlay_data): Change type.
5499 (spu_get_overlay_table, spu_overlay_new_objfile)
5500 (_initialize_spu_tdep): Update.
5502 2019-07-10 Tom Tromey <tromey@adacore.com>
5504 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5506 (dbx_objfile_data_key): Change type and declare later.
5507 (DBX_SYMFILE_INFO): Rewrite.
5508 * dbxread.c (dbx_objfile_data_key): Change type.
5509 (dbx_symfile_init): Update.
5510 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5511 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5512 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5514 2019-07-10 Tom Tromey <tromey@adacore.com>
5516 * jit.c (jit_program_space_key): Change type. Move lower.
5517 (get_jit_program_space_data): Update.
5518 (jit_program_space_data_cleanup): Remove.
5519 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5521 (struct jit_program_space_data): Add initializers.
5523 2019-07-10 Tom Tromey <tromey@adacore.com>
5525 * solib-darwin.c (struct darwin_info): Add initializers.
5526 (solib_darwin_pspace_data): Change type.
5527 (darwin_pspace_data_cleanup): Remove.
5528 (get_darwin_info, _initialize_darwin_solib): Update.
5530 2019-07-10 Tom Tromey <tromey@adacore.com>
5532 * remote-sim.c (struct sim_inferior_data): Add initializers,
5533 constructor, and destructor.
5534 (sim_inferior_data_key): Change type. Move lower.
5535 (check_for_duplicate_sim_descriptor): Update.
5536 (get_sim_inferior_data): Use new. Update.
5537 (~sim_inferior_data_cleanup): Rename from
5538 sim_inferior_data_cleanup. Simplify.
5539 (gdbsim_close_inferior, simulator_command)
5540 (sim_command_completer, _initialize_remote_sim): Update.
5541 (next_pid, INITIAL_PID): Move earlier.
5543 2019-07-10 Tom Tromey <tromey@adacore.com>
5545 * python/python-internal.h (create_thread_object): Return
5547 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5548 * python/py-inferior.c (struct threadlist_entry): Add
5550 <thread_obj>: Now a gdbpy_ref.
5551 (thread_to_thread_object): Update.
5552 (add_thread_object): Use new.
5553 (delete_thread_object): Use delete.
5554 (infpy_threads): Update.
5555 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5558 2019-07-10 Tom Tromey <tromey@adacore.com>
5560 * valops.c (value_cast): Specialize error message for Ada.
5562 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5564 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5566 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5568 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5569 bpstat_should_step): Return bool, adjust comments.
5570 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5571 bpstat_should_step): Likewise.
5573 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5575 * features/Makefile: Use feature target descriptions for Arm.
5576 * features/arm/arm-core.c: Generate new file.
5577 * features/arm/arm-fpa.c: Likewise.
5578 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5579 * features/arm/arm-m-profile.c: Likewise.
5580 * features/arm/arm-vfpv2.c: Likewise.
5581 * features/arm/arm-vfpv3.c: Likewise.
5582 * features/arm/xscale-iwmmxt.c: Likewise.
5583 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5585 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5587 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5590 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5592 * features/aarch64-pauth.c: Regenerate.
5594 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5596 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5598 (bpstat_what): Use false instead of 0.
5600 2019-07-09 Pedro Alves <palves@redhat.com>
5602 * break-catch-throw.c (is_exception_catchpoint): New.
5603 * breakpoint.c (print_one_breakpoint_location): New parameter
5604 'raw_loc'. Handle it. Use
5605 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5606 looking at the breakpoint's type.
5607 (print_one_breakpoint): If handling "maint info breakpoints", also
5608 print locations of exception catchpoints.
5609 * breakpoint.h (is_exception_catchpoint): Declare.
5611 2019-07-09 Pedro Alves <palves@redhat.com>
5613 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5615 (allocate_location_exception_catchpoint): New.
5616 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5617 (initialize_throw_catchpoint_ops): Install
5618 allocate_location_exception_catchpoint as allocate_location
5620 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5621 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5623 (breakpoint_address_is_meaningful): Delete.
5624 (bl_address_is_meaningful): New.
5625 (breakpoint_locations_match): Adjust comment.
5626 (bp_location_from_bp_type): New, factored out of...
5627 (bp_location::bp_location(breakpoint *)): ... this.
5628 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5630 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5631 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5632 breakpoint_address_is_meaningful.
5633 (bp_locations_compare): Adjust comment.
5634 (update_global_location_list): Use bl_address_is_meaningful
5635 instead of breakpoint_address_is_meaningful.
5636 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5638 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5639 * python/py-breakpoint.c (bppy_get_location): No longer check
5640 whether location is null.
5642 2019-07-09 Pedro Alves <palves@redhat.com>
5645 * breakpoint.c (print_one_breakpoint_location): Remove
5646 single-location assert.
5648 2019-07-09 Tom Tromey <tom@tromey.com>
5650 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5651 * configure: Rebuild.
5652 * configure.ac: Change common to gdbsupport.
5653 * gdbsupport: Rename from common.
5654 * acinclude.m4: Change common to gdbsupport.
5655 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5656 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5658 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5659 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5660 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5661 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5662 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5663 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5664 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5665 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5666 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5667 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5668 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5669 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5670 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5671 coff-pe-read.c, command.h, compile/compile-c-support.c,
5672 compile/compile-c.h, compile/compile-cplus-symbols.c,
5673 compile/compile-cplus-types.c, compile/compile-cplus.h,
5674 compile/compile-loc2c.c, compile/compile.c, completer.c,
5675 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5676 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5677 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5678 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5679 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5680 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5681 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5682 features/aarch64-core.c, features/aarch64-fpu.c,
5683 features/aarch64-pauth.c, features/aarch64-sve.c,
5684 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5685 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5686 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5687 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5688 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5689 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5690 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5691 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5692 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5693 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5694 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5695 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5696 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5697 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5698 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5699 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5700 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5701 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5702 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5703 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5704 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5705 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5706 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5707 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5708 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5709 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5710 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5711 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5712 minsyms.c, mips-linux-tdep.c, namespace.h,
5713 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5714 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5715 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5716 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5717 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5718 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5719 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5720 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5721 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5722 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5723 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5724 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5725 procfs.c, producer.c, progspace.h, psymtab.h,
5726 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5727 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5728 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5729 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5730 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5731 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5732 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5733 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5734 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5735 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5736 target-memory.c, target.c, target.h, target/waitstatus.c,
5737 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5738 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5739 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5740 unittests/array-view-selftests.c,
5741 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5742 unittests/common-utils-selftests.c,
5743 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5744 unittests/format_pieces-selftests.c,
5745 unittests/function-view-selftests.c,
5746 unittests/lookup_name_info-selftests.c,
5747 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5748 unittests/mkdir-recursive-selftests.c,
5749 unittests/observable-selftests.c,
5750 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5751 unittests/parse-connection-spec-selftests.c,
5752 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5753 unittests/scoped_fd-selftests.c,
5754 unittests/scoped_mmap-selftests.c,
5755 unittests/scoped_restore-selftests.c,
5756 unittests/string_view-selftests.c, unittests/style-selftests.c,
5757 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5758 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5759 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5760 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5761 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5762 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5764 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5766 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5768 (decode_digits_ordinary): Set explicit_line field in sal.
5769 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5770 symtab_and_line that was set on an explicit line number in
5771 assembler code. Do always update the recorded symtab and line if
5772 we do skip the prologue.
5774 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5776 * breakpoint.c (set_breakpoint_location_function): Remove
5777 explicit_loc parameter.
5778 (momentary_breakpoint_from_master): Update call to
5779 set_breakpoint_location_function.
5780 (add_location_to_breakpoint): Likewise.
5782 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5784 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5785 required features based on default bfd type when no specific bfd
5788 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5790 * NEWS: Mention that GDB printf and eval commands can now print
5791 C-style and Ada-style convenience var strings without
5792 calling the inferior.
5793 * printcmd.c (printf_c_string): Locally print GDB internal var
5794 instead of transiting via the inferior.
5795 (printf_wide_c_string): Likewise.
5797 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5799 PR breakpoints/25011
5800 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5802 2019-07-04 Tom Tromey <tom@tromey.com>
5805 * tui/tui-winsource.c (tui_clear_source_content): Update.
5806 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5807 (tui_update_breakpoint_info): Update.
5808 (tui_set_exec_info_content): Update.
5809 * tui/tui-source.c (tui_set_source_content_nil): Update.
5810 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5812 * tui/tui-data.h (enum tui_bp_flag): New.
5813 (tui_bp_flags): New enum flags type.
5814 (struct tui_source_element) <break_mode>: Change type. Rename
5816 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5817 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5819 * tui/tui-winsource.h: Fix comment.
5821 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5823 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5824 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5825 (store_fpregs_to_thread)
5826 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5827 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5828 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5829 (IWMMXT_REGS_SIZE): Add define.
5830 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5831 (fetch_vfp_regs, store_vfp_regs)
5832 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5833 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5835 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5837 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5839 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5840 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5841 (ARM_INT_REGISTER_SIZE): ...to this.
5842 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5843 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5844 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5845 (arm_linux_collect_gregset, supply_nwfpe_register)
5846 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5848 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5849 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5850 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5851 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5852 (arm_return_in_memory, arm_store_return_value)
5853 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5854 (arm_record_ld_st_multiple): Likewise.
5855 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5856 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5858 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5860 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5861 AARCH64_DISPLACED_MODIFIED_INSNS.
5862 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5863 (aarch64_displaced_step_copy_insn): Likewise.
5864 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5865 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5866 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5867 ARM_DISPLACED_MODIFIED_INSNS.
5868 * arm-tdep.c (arm_gdbarch_init): Likewise.
5869 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5870 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5871 (struct arm_displaced_step_closure): Use
5872 ARM_DISPLACED_MODIFIED_INSNS.
5874 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5876 * features/Makefile: Remove unused xml files.
5877 * features/aarch64.xml: Remove.
5878 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5879 * features/i386/amd64-avx-avx512.xml: Remove.
5880 * features/i386/amd64-avx-linux.xml: Remove.
5881 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5882 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5883 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5884 * features/i386/amd64-avx-mpx.xml: Remove.
5885 * features/i386/amd64-avx.xml: Remove.
5886 * features/i386/amd64-linux.xml: Remove.
5887 * features/i386/amd64-mpx-linux.xml: Remove.
5888 * features/i386/amd64-mpx.xml: Remove.
5889 * features/i386/amd64.xml: Remove.
5890 * features/i386/i386-avx-avx512-linux.xml: Remove.
5891 * features/i386/i386-avx-avx512.xml: Remove.
5892 * features/i386/i386-avx-linux.xml: Remove.
5893 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5894 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5895 * features/i386/i386-avx-mpx-linux.xml: Remove.
5896 * features/i386/i386-avx-mpx.xml: Remove.
5897 * features/i386/i386-avx.xml: Remove.
5898 * features/i386/i386-linux.xml: Remove.
5899 * features/i386/i386-mmx-linux.xml: Remove.
5900 * features/i386/i386-mmx.xml: Remove.
5901 * features/i386/i386-mpx-linux.xml: Remove.
5902 * features/i386/i386-mpx.xml: Remove.
5903 * features/i386/i386.xml: Remove.
5904 * features/i386/x32-avx-avx512-linux.xml: Remove.
5905 * features/i386/x32-avx-linux.xml: Remove.
5906 * features/i386/x32-linux.xml: Remove.
5908 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5910 * regformats/aarch64.dat: Remove.
5911 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5912 * regformats/i386/amd64-avx-linux.dat: Remove.
5913 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5914 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5915 * regformats/i386/amd64-linux.dat: Remove.
5916 * regformats/i386/amd64-mpx-linux.dat: Remove.
5917 * regformats/i386/amd64.dat: Remove.
5918 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5919 * regformats/i386/i386-avx-linux.dat: Remove.
5920 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5921 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5922 * regformats/i386/i386-linux.dat: Remove.
5923 * regformats/i386/i386-mmx-linux.dat: Remove.
5924 * regformats/i386/i386-mpx-linux.dat: Remove.
5925 * regformats/i386/i386.dat: Remove.
5926 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5927 * regformats/i386/x32-avx-linux.dat: Remove.
5928 * regformats/i386/x32-linux.dat: Remove.
5930 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5932 * aarch64-tdep.c: Remove xml self tests.
5933 * amd64-linux-tdep.c: Likewise.
5934 * amd64-tdep.c: Likewise.
5935 * i386-linux-tdep.c: Likewise.
5936 * i386-tdep.c: Likewise.
5938 2019-07-03 Pedro Alves <palves@redhat.com>
5941 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5942 (pipe_cmd_option_defs): New.
5943 (make_pipe_cmd_options_def_group): New.
5944 (pipe_command): Use gdb::option::process_options.
5945 (pipe_command_completer): New function.
5946 (_initialize_cli_cmds): Install completer for "pipe" command.
5948 2019-07-03 Pedro Alves <palves@redhat.com>
5950 * cli/cli-option.c (union option_value) <string>: New field.
5951 (struct option_def_and_value): Add ctor, move ctor, dtor and
5952 use DISABLE_COPY_AND_ASSIGN.
5953 (option_def_and_value::clear_value): New.
5954 (parse_option, save_option_value_in_ctx, get_val_type_str)
5955 (add_setshow_cmds_for_options): Handle var_string.
5956 * cli-option.h (union option_def::var_address) <string>: New
5958 (struct string_option_def): New.
5959 * maint-test-options.c (struct test_options_opts): Add default
5960 ctor and use DISABLE_COPY_AND_ASSIGN.
5961 <string_opt>: New field.
5962 (test_options_opts::~test_options_opts): New.
5963 (test_options_opts::dump): Also dump "-string".
5964 (test_options_option_defs): Install "string.
5966 2019-07-03 Pedro Alves <palves@redhat.com>
5968 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5969 option_value with a null enumeration.
5970 (complete_options): Save the option values in the context.
5971 (save_option_value_in_ctx): New, factored out from ...
5972 (process_options): ... here.
5973 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5975 * maint-test-options.c (test_options_opts::dump): New, factored
5977 (maintenance_test_options_command_mode): ... here.
5978 (maintenance_test_options_command_completion_result): Delete.
5979 (maintenance_test_options_command_completion_text): Update
5981 (maintenance_show_test_options_completion_result): Change
5982 prototype. Just print
5983 maintenance_test_options_command_completion_text.
5984 (save_completion_result): New.
5985 (maintenance_test_options_completer_mode): Pass options context to
5986 complete_options, and then save a dump.
5987 (_initialize_maint_test_options): Use add_cmd to install "maint
5988 show test-options-completion-result".
5990 2019-07-03 Pedro Alves <palves@redhat.com>
5992 * NEWS (New commands): Mention "with" and "maint with".
5993 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5994 (with_command, with_command_completer): New.
5995 (pipe_command): Adjust to new repeat_previous
5997 (_initialize_cli_cmds): Install the "with" command and its "w"
5999 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6001 * cli/cli-setshow.c (parse_cli_var_uinteger)
6002 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6003 argument strings for all var_types.
6004 (get_setshow_command_value_string): New, factored out from ...
6005 (do_show_command): ... this.
6006 * cli/cli-setshow.h: Include <string>.
6007 (get_setshow_command_value_string): Declare.
6008 * command.h (repeat_previous): Now returns const char *. Adjust
6010 * maint.c: Include "cli/cli-cmds.h".
6011 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6012 (_initialize_maint_cmds): Register the "maintenance with" command.
6013 * top.c (repeat_previous): Move bits from pipe_command here:
6014 Return the saved command line, if any; error out if there's no
6015 command to relaunch.
6017 2019-07-03 Pedro Alves <palves@redhat.com>
6019 * NEWS (New commands): Mention "maint set/show test-settings"
6020 instead of "maint test-settings".
6021 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6022 (maintenance_test_settings_set_list): Rename to ...
6023 (maintenance_set_test_settings_list): ... this.
6024 (maintenance_test_settings_show_list): Rename to ...
6025 (maintenance_show_test_settings_list): ... this.
6026 (maintenance_test_settings_cmd): Delete.
6027 (maintenance_test_settings_set_cmd): ...
6028 (maintenance_set_test_settings_cmd): ... this.
6029 (maintenance_test_settings_show_cmd): ...
6030 (maintenance_show_test_settings_cmd): ... this.
6031 (maintenance_test_settings_show_value_cmd):
6032 (maintenance_show_test_settings_value_cmd): ... this.
6033 (_initialize_maint_test_settings): No longer install the "maint
6034 test-settings" prefix command. Rename "maint test-settings set"
6035 to "maint set test-settings", and "maint test-settings show" to
6036 "maint show test-settings". Adjust all subcommands.
6038 2019-07-03 Pedro Alves <palves@redhat.com>
6040 * maint-test-settings.c: Fix file's intro comment. Replace all
6041 references to "test-options" with references to "test-settings",
6044 2019-07-03 Pedro Alves <palves@redhat.com>
6046 * maint-test-settings.c (maintenance_test_settings_xxx)
6047 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6049 (maintenance_test_settings_enums): Use them.
6050 (maintenance_test_settings_enum): Default to
6051 maintenance_test_settings_xxx.
6052 (_initialize_maint_test_settings): Initialize
6053 MAINTENANCE_TEST_SETTINGS_FILENAME.
6055 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6057 * breakpoint.h (remove_breakpoints_inf): Change return type to
6058 void, move function documentation here.
6059 * breakpoint.c (remove_breakpoints_inf): Change return type to
6060 void, move function documentation to header.
6062 2019-07-02 Pedro Alves <palves@redhat.com>
6064 * NEWS (Completion improvements): Mention "info threads".
6065 * thread.c (struct info_threads_opts, info_threads_option_defs)
6066 (make_info_threads_options_def_group): New.
6067 (info_threads_command): Use gdb::option::process_options.
6068 (info_threads_command_completer): New.
6069 (_initialize_thread): Use gdb::option::build_help to build the
6070 help text for "info threads".
6072 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6074 * defs.h (generic_load): Move from here...
6075 * symfile.h (generic_load): ... to here. Rename name parameter
6077 * symfile.c (generic_load): Add comment.
6079 2019-07-01 Tom Tromey <tromey@adacore.com>
6082 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6083 declaration of without_params. Fix formatting.
6085 2019-07-01 Tom Tromey <tromey@adacore.com>
6087 * ada-exp.y (find_primitive_type): Update.
6088 * ada-lang.h (ada_lookup_symbol): Update.
6089 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6091 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6093 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6095 PR breakpoints/24541
6096 * gdbarch.c: Regenerate.
6097 * gdbarch.h: Regenerate.
6098 * gdbarch.sh: Add 'stap_adjust_register'.
6099 * i386-tdep.c: Include '<unordered_set>'.
6100 (i386_stap_adjust_register): New function.
6101 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6102 * stap-probe.c (stap_parse_register_operand): Call
6103 'gdbarch_stap_adjust_register'.
6105 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6108 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6109 * python/python.c (do_start_initialization): Use 'xmalloc'
6110 instead of 'PyMem_Malloc'.
6112 2019-06-28 Tom Tromey <tromey@adacore.com>
6114 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6117 2019-06-27 Tom Tromey <tromey@adacore.com>
6119 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6121 (arm_find_mapping_symbol, arm_record_special_symbol)
6122 (_initialize_arm_tdep): Update.
6123 (arm_objfile_data_free): Remove.
6125 2019-06-27 Tom Tromey <tromey@adacore.com>
6127 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6128 to cp_print_static_field.
6130 2019-06-26 Tom Tromey <tromey@adacore.com>
6132 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6133 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6136 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6138 * features/aarch64-core.c (create_feature_aarch64_core):
6140 * features/aarch64-core.xml: Add cpsr flags.
6142 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6144 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6145 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6147 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6149 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6151 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6153 (arm_record_special_symbol): Don't insert new symbol in sorted
6154 position, push it at the end.
6156 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6158 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6159 (arm_mapping_symbol_s): Remove.
6160 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6161 (arm_mapping_symbol_vec): New typedef.
6162 (struct arm_per_objfile): Add constructor.
6163 <section_maps>: Change type to
6164 std::unique_ptr<arm_mapping_symbol_vec[]>.
6165 (arm_compare_mapping_symbols): Remove.
6166 (arm_find_mapping_symbol): Adjust to section_maps type change.
6167 (arm_objfile_data_free): Call delete on arm_per_objfile.
6168 (arm_record_special_symbol): Adjust to section_maps type change.
6169 Allocate arm_per_objfile with new.
6171 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6173 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6174 with the command prefix.
6176 2019-06-25 Tom Tromey <tom@tromey.com>
6178 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6179 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6181 2019-06-25 Tom Tromey <tom@tromey.com>
6183 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6185 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6188 2019-06-25 Tom Tromey <tom@tromey.com>
6190 * tui/tui-winsource.c
6191 (tui_source_window_base::set_is_exec_point_at): Add check against
6194 2019-06-25 Tom Tromey <tom@tromey.com>
6196 * tui/tui-source.c (tui_set_source_content): Don't check before
6198 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6200 2019-06-25 Tom Tromey <tom@tromey.com>
6202 * tui/tui-winsource.h (tui_update_source_window_as_is)
6203 (tui_alloc_source_buffer, tui_line_is_displayed)
6204 (tui_addr_is_displayed): Change type of win_info.
6205 * tui/tui-winsource.c (tui_update_source_window_as_is)
6206 (tui_clear_source_content, tui_show_source_line)
6207 (tui_show_source_content, tui_source_window_base::refill)
6208 (tui_source_window_base::set_is_exec_point_at)
6209 (tui_source_window_base::set_is_exec_point_at)
6210 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6211 (tui_alloc_source_buffer, tui_line_is_displayed)
6212 (tui_addr_is_displayed): Change type of win_info. Update.
6213 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6214 (tui_source_window_base::do_make_visible_with_new_height):
6216 * tui/tui-source.c (tui_set_source_content)
6217 (tui_set_source_content_nil)
6218 (tui_source_window::do_scroll_vertical): Update.
6219 * tui/tui-layout.c (show_layout): Update.
6220 * tui/tui-disasm.c (tui_set_disassem_content)
6221 (tui_disasm_window::do_scroll_vertical): Update.
6222 * tui/tui-data.h (tui_win_content): Remove.
6223 (struct tui_gen_win_info) <content, content_size>: Remove.
6224 (struct tui_source_element): Add initializers and destructor.
6225 (union tui_which_element, struct tui_win_element): Remove.
6226 (struct tui_source_window_base) <content>: New field.
6227 (struct tui_data_window): Remove destructor.
6228 (tui_alloc_content, tui_free_win_content)
6229 (tui_free_all_source_wins_content): Don't declare.
6230 * tui/tui-data.c (tui_initialize_static_data): Update.
6231 (init_content_element, tui_alloc_content): Remove.
6232 (~tui_gen_win_info): Update.
6233 (~tui_data_window, tui_free_all_source_wins_content)
6234 (tui_free_win_content, free_content, free_content_elements):
6237 2019-06-25 Tom Tromey <tom@tromey.com>
6239 * tui/tui-winsource.h (tui_clear_source_content)
6240 (tui_erase_source_content, tui_show_source_content): Change type
6242 * tui/tui-winsource.c (tui_clear_source_content)
6243 (tui_erase_source_content, tui_show_source_content): Change type
6245 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6246 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6248 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6250 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6252 2019-06-25 Tom Tromey <tom@tromey.com>
6254 * tui/tui-winsource.c (tui_clear_source_content)
6255 (tui_source_window_base::set_is_exec_point_at): Update.
6256 * tui/tui-source.c (tui_set_source_content_nil): Update.
6257 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6259 * tui/tui-data.c (init_content_element): Update.
6261 2019-06-25 Tom Tromey <tom@tromey.com>
6263 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6264 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6265 * tui/tui-layout.c (init_and_make_win): Update.
6266 * tui/tui.h (enum tui_win_type): Update.
6267 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6268 tui_win_is_auxillary.
6269 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6270 tui_win_is_auxillary.
6272 2019-06-25 Tom Tromey <tom@tromey.com>
6274 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6275 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6276 (tui_delete_data_content_windows, tui_display_all_data)
6277 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6279 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6280 * tui/tui-regs.c (tui_last_regs_line_no)
6281 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6282 (tui_show_registers): Update.
6283 (tui_show_register_group): Return void. Update.
6284 (tui_display_registers_from, tui_display_reg_element_at_line)
6285 (tui_display_registers_from_line, tui_check_register_values):
6287 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6289 (struct tui_data_window) <regs_content>: Now a std::vector.
6290 <regs_content_count>: Remove.
6291 (tui_add_content_elements, tui_free_data_content): Don't declare.
6292 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6293 (init_content_element): Remove DATA_WIN case. Add assert.
6294 (tui_add_content_elements): Remove.
6295 (tui_data_window): Update.
6296 (tui_free_data_content): Remove.
6297 (free_content_elements): Remove DATA_WIN case.
6299 2019-06-25 Tom Tromey <tom@tromey.com>
6301 * tui/tui-data.c (tui_data_item_window): Update.
6302 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6303 * tui/tui-windata.c (tui_display_all_data)
6304 (tui_display_data_from_line): Update.
6305 (tui_check_data_values): Remove.
6306 * tui/tui-regs.c (tui_show_register_group)
6307 (tui_display_reg_element_at_line): Update.
6308 * tui/tui-hooks.c (tui_register_changed)
6309 (tui_refresh_frame_and_register_information): Call
6310 tui_check_register_values.
6311 * tui/tui-data.h (struct tui_data_window) <data_content,
6312 data_content_count, data_type>: Remove.
6313 (enum tui_data_type): Remove.
6315 * tui/tui-data.c (tui_data_window::clear_detail)
6316 (~tui_data_window): Update.
6318 2019-06-25 Tom Tromey <tom@tromey.com>
6320 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6322 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6323 Rename from tui_first_data_item_displayed. Update.
6324 (tui_data_window::refresh_all)
6325 (tui_data_window::do_scroll_vertical): Update.
6326 * tui/tui-data.h (struct tui_data_window)
6327 <first_data_item_displayed>: Declare new method.
6329 2019-06-25 Tom Tromey <tom@tromey.com>
6331 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6332 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6334 (tui_initialize_static_data): ...here.
6336 2019-06-25 Tom Tromey <tom@tromey.com>
6338 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6339 (tui_display_registers_from, tui_check_register_values): Update.
6340 (tui_display_register): Remove win_info parameter; update.
6341 (tui_get_register): Change type of parameters.
6342 * tui/tui-data.h (struct tui_data_element): Remove.
6343 (union tui_which_element) <data>: Remove.
6344 <data_window>: Change type.
6345 (struct tui_data_item_window): New.
6346 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6348 (~tui_data_item_window): New destructor.
6349 (free_content_elements): Remove DATA_ITEM_WIN case.
6351 2019-06-25 Tom Tromey <tom@tromey.com>
6353 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6356 2019-06-25 Tom Tromey <tom@tromey.com>
6358 * tui/tui-data.h (struct tui_command_element): Remove.
6359 (union tui_which_element) <command>: Remove.
6360 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6362 (free_content_elements): Remove CMD_WIN case.
6364 2019-06-25 Tom Tromey <tom@tromey.com>
6366 * tui/tui-layout.c (tui_set_layout): Update.
6367 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6368 * tui/tui-data.c (layout_def): Update.
6370 2019-06-25 Tom Tromey <tom@tromey.com>
6372 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6373 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6374 (tui_source_window_base::set_new_height): Update.
6375 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6377 (tui_set_locator_fullname, tui_set_locator_info)
6378 (tui_show_frame_info): Update.
6379 * tui/tui-source.c (tui_set_source_content)
6380 (tui_source_is_displayed): Update.
6381 * tui/tui-layout.c (show_source_disasm_command, show_data)
6382 (show_source_or_disasm_and_command): Update.
6383 * tui/tui-disasm.c (tui_set_disassem_content)
6384 (tui_get_begin_asm_address): Update.
6385 * tui/tui-data.h (struct tui_locator_element): Remove.
6386 (union tui_which_element) <locator>: Remove.
6387 (struct tui_locator_window): New.
6388 (tui_locator_win_info_ptr): Change return type.
6389 * tui/tui-data.c (_locator): Change type.
6390 (tui_locator_win_info_ptr): Change return type.
6391 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6392 (tui_alloc_content): Add assert.
6394 2019-06-25 Tom Tromey <tom@tromey.com>
6396 * tui/tui-winsource.c
6397 (tui_exec_info_window::maybe_allocate_content): New method.
6398 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6399 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6400 (make_source_or_disasm_window): Add cast.
6401 * tui/tui-data.h (union tui_which_element) <simple_string>:
6403 (struct tui_source_info): New.
6404 (struct tui_source_window_base) <execution_info>: Change type.
6405 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6406 case, and add assert.
6407 (tui_alloc_content): Add assert.
6409 2019-06-25 Tom Tromey <tom@tromey.com>
6411 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6412 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6413 * tui/tui-data.c (tui_alloc_win_info): Remove.
6415 2019-06-25 Tom Tromey <tom@tromey.com>
6417 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6418 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6421 2019-06-25 Tom Tromey <tom@tromey.com>
6423 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6424 make_visible_with_new_height method.
6425 (tui_win_info::make_visible_with_new_height): New method.
6426 (tui_source_window_base::do_make_visible_with_new_height)
6427 (tui_data_window::do_make_visible_with_new_height)
6428 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6429 (make_visible_with_new_height): Remove.
6430 (tui_resize_all, tui_adjust_win_heights): Use
6431 make_visible_with_new_height method.
6432 * tui/tui-data.h (struct tui_win_info)
6433 <do_make_visible_with_new_height, make_visible_with_new_height>:
6435 (struct tui_source_window_base, struct tui_data_window)
6436 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6439 2019-06-25 Tom Tromey <tom@tromey.com>
6441 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6443 (update_tab_width): Call update_tab_width method.
6444 * tui/tui-data.h (struct tui_win_info)
6445 (struct tui_source_window_base) <update_tab_width>: New methods.
6447 2019-06-25 Tom Tromey <tom@tromey.com>
6449 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6451 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6453 (tui_gen_win_info::make_visible): Update.
6454 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6456 * tui/tui-data.h (enum tui_box): New enum.
6457 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6459 2019-06-25 Tom Tromey <tom@tromey.com>
6461 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6462 init_and_make_win for EXEC_INFO_WIN.
6463 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6465 (struct tui_win_info) <~tui_win_info>: Inline.
6466 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6468 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6469 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6471 (tui_initialize_static_data): Update.
6472 (~tui_gen_win_info): Handle more cleanup here.
6473 (~tui_source_window_base): Delete "execution_info".
6474 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6476 2019-06-25 Tom Tromey <tom@tromey.com>
6478 * tui/tui-layout.c (make_command_window): Don't set
6480 (show_source_disasm_command): Call the reset method.
6481 (show_data): Don't set can_highlight. Call the reset method.
6482 (tui_gen_win_info::reset): Rename from init_gen_win_info
6483 (init_and_make_win): Simplify. Return tui_gen_win_info.
6484 (show_source_or_disasm_and_command): Call the reset method.
6485 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6486 (struct tui_cmd_window): Set can_highlight.
6488 2019-06-25 Tom Tromey <tom@tromey.com>
6490 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6492 (tui_make_visible, tui_make_invisible): Rewrite.
6493 (tui_win_info::make_visible): Remove.
6494 (tui_source_window_base::make_visible): Update.
6495 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6496 method. Moved from...
6497 (struct tui_win_info) <make_visible>: ...here.
6499 2019-06-25 Tom Tromey <tom@tromey.com>
6501 * tui/tui-winsource.c
6502 (tui_source_window_base::do_scroll_horizontal): Remove direction
6504 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6505 direction parameter.
6506 * tui/tui-win.c (tui_win_info::forward_scroll)
6507 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6508 (tui_win_info::right_scroll): Update.
6509 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6510 direction parameter.
6511 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6512 direction parameter.
6513 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6514 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6515 Remove direction parameter.
6516 (struct tui_source_window_base, struct tui_source_window)
6517 (struct tui_disasm_window, struct tui_data_window)
6518 (struct tui_cmd_window): Update.
6520 2019-06-25 Tom Tromey <tom@tromey.com>
6522 * tui/tui-winsource.h (tui_set_exec_info_content)
6523 (tui_show_exec_info_content, tui_erase_exec_info_content)
6524 (tui_clear_exec_info_content, tui_update_exec_info): Change
6525 argument to tui_source_window_base.
6526 * tui/tui-winsource.c (tui_set_exec_info_content)
6527 (tui_show_exec_info_content, tui_erase_exec_info_content)
6528 (tui_clear_exec_info_content, tui_update_exec_info): Change
6529 argument to tui_source_window_base.
6531 2019-06-25 Tom Tromey <tom@tromey.com>
6533 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6534 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6536 2019-06-25 Tom Tromey <tom@tromey.com>
6538 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6541 2019-06-25 Tom Tromey <tom@tromey.com>
6543 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6545 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6547 * tui/tui-source.c (tui_set_source_content): Update.
6548 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6550 2019-06-25 Tom Tromey <tom@tromey.com>
6552 * tui/tui-win.c (window_name_completer, tui_set_focus)
6553 (tui_all_windows_info): Use name method.
6554 * tui/tui-data.h (struct tui_gen_win_info)
6555 (struct tui_source_window, struct tui_disasm_window)
6556 (struct tui_data_window, struct tui_cmd_window) <name>: New
6558 (tui_win_name): Don't declare.
6559 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6560 (tui_win_name): Remove.
6562 2019-06-25 Tom Tromey <tom@tromey.com>
6564 * tui/tui-winsource.h (tui_update_source_window)
6565 (tui_update_source_window_as_is): Change parameter type.
6566 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6567 to be a tui_source_window_base.
6568 (tui_update_source_window_as_is): Likewise.
6569 * tui/tui-win.c (make_visible_with_new_height): Update.
6571 2019-06-25 Tom Tromey <tom@tromey.com>
6573 * tui/tui-winsource.c (tui_erase_source_content)
6574 (tui_show_source_content, tui_show_exec_info_content)
6575 (tui_erase_exec_info_content): Use refresh_window method.
6576 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6577 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6578 from tui_refresh_win.
6579 (tui_data_window::refresh_window): New method.
6580 (tui_win_info::refresh, tui_source_window_base::refresh)
6581 (tui_refresh_all): Use refresh_window method.
6582 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6584 * tui/tui-regs.c (tui_display_register): Call refresh_window
6586 * tui/tui-layout.c (show_source_disasm_command)
6587 (show_source_or_disasm_and_command): Call refresh_window method.
6588 * tui/tui-data.h (struct tui_gen_win_info)
6589 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6592 2019-06-25 Tom Tromey <tom@tromey.com>
6594 * tui/tui.c (tui_rl_other_window, tui_enable)
6595 (tui_is_window_visible, tui_get_command_dimension): Update.
6596 * tui/tui-winsource.c (tui_update_source_window_as_is)
6597 (tui_clear_source_content, tui_erase_source_content)
6598 (tui_show_source_line, tui_source_window_base::refill)
6599 (tui_source_window_base::do_scroll_horizontal)
6600 (tui_source_window_base::set_is_exec_point_at)
6601 (tui_update_breakpoint_info, tui_set_exec_info_content)
6602 (tui_alloc_source_buffer, tui_line_is_displayed)
6603 (tui_addr_is_displayed): Update.
6604 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6605 (tui_check_and_display_highlight_if_needed)
6606 (tui_win_info::make_visible, tui_win_info::refresh)
6607 (tui_refresh_all): Update.
6608 * tui/tui-windata.c (tui_first_data_item_displayed)
6609 (tui_delete_data_content_windows, tui_erase_data_content)
6610 (tui_display_all_data, tui_data_window::refresh_all)
6611 (tui_check_data_values): Update.
6612 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6613 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6614 (tui_win_info::backward_scroll, tui_refresh_all_win)
6615 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6616 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6617 (tui_source_window_base::set_new_height)
6618 (tui_data_window::set_new_height)
6619 (make_invisible_and_set_new_height)
6620 (make_visible_with_new_height, new_height_ok)
6621 (parse_scrolling_args): Update.
6622 * tui/tui-stack.c (tui_show_frame_info): Update.
6623 * tui/tui-source.c (tui_set_source_content)
6624 (tui_set_source_content_nil, tui_source_is_displayed)
6625 (tui_source_window::do_scroll_vertical): Update.
6626 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6627 (tui_display_registers_from, tui_display_reg_element_at_line)
6628 (tui_check_register_values, tui_reg_command): Update.
6629 * tui/tui-layout.c (tui_default_win_height)
6630 (show_source_disasm_command, show_data, init_and_make_win)
6631 (show_source_or_disasm_and_command): Update.
6632 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6633 (tui_redisplay_readline, tui_mld_flush)
6634 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6636 * tui/tui-disasm.c (tui_set_disassem_content)
6637 (tui_disasm_window::do_scroll_vertical): Update.
6638 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6640 (struct tui_win_info): Derive from tui_gen_win_info.
6641 <~tui_win_info>: Mark as override.
6642 <generic>: Remove member.
6643 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6644 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6645 (~tui_data_window, ~tui_win_info)
6646 (tui_free_all_source_wins_content): Update.
6647 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6649 2019-06-25 Tom Tromey <tom@tromey.com>
6651 * tui/tui-layout.c (init_and_make_win): Use new.
6652 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6653 destructor, initializers.
6654 (tui_alloc_generic_win_info): Don't declare.
6655 * tui/tui-data.c (_locator): Add argument to constructor.
6656 (source_win, disasm_win): New globals.
6657 (exec_info): Remove.
6658 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6660 (tui_alloc_generic_win_info): Remove.
6661 (init_content_element): Use new.
6662 (tui_win_info::tui_win_info): Update.
6663 (free_content_elements) <case DATA_WIN>: Use delete.
6665 2019-06-25 Tom Tromey <tom@tromey.com>
6667 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6668 * tui/tui-windata.c (tui_first_data_item_displayed)
6669 (tui_delete_data_content_windows): Update.
6670 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6671 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6672 (tui_display_registers_from, tui_check_register_values): Update.
6673 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6675 * tui/tui-data.c (init_content_element): Update. Allocate the new
6677 (tui_free_data_content): Update.
6678 (free_content_elements) <case DATA_WIN>: Free the window.
6680 2019-06-25 Tom Tromey <tom@tromey.com>
6682 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6684 * tui/tui-layout.c (make_command_window)
6685 (show_source_disasm_command, show_data, init_and_make_win)
6686 (show_source_or_disasm_and_command): Update.
6687 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6689 <can_highight, is_highlighted>: Now bool.
6690 (tui_set_win_highlight): Don't declare.
6691 * tui/tui-data.c (tui_set_win_highlight): Remove.
6693 2019-06-25 Tom Tromey <tom@tromey.com>
6695 * tui/tui-wingeneral.c (make_visible): Remove check of window
6698 2019-06-25 Tom Tromey <tom@tromey.com>
6700 * tui/tui-win.c (tui_win_info::max_height)
6701 (tui_cmd_window::max_height): New methods.
6702 (new_height_ok): Call max_height.
6703 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6704 <max_height>: New method.
6706 2019-06-25 Tom Tromey <tom@tromey.com>
6708 * tui/tui-win.c (tui_source_window_base::set_new_height)
6709 (tui_data_window::set_new_height): New methods.
6710 (make_invisible_and_set_new_height): Call set_new_height method.
6711 * tui/tui-data.h (struct tui_win_info)
6712 (struct tui_source_window_base, struct tui_data_window)
6713 <set_new_height>: New method.
6715 2019-06-25 Tom Tromey <tom@tromey.com>
6717 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6718 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6719 tui_refresh_data_win.
6720 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6722 (tui_refresh_all_win): Call the refresh_all method.
6723 (tui_set_focus): Likewise.
6724 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6725 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6728 2019-06-25 Tom Tromey <tom@tromey.com>
6730 * tui/tui-winsource.h (tui_refill_source_window)
6731 (tui_set_is_exec_point_at): Don't declare.
6732 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6733 (tui_source_window_base::refill): Rename from
6734 tui_refill_source_window.
6735 (tui_source_window_base::do_scroll_horizontal): Update.
6736 (tui_source_window_base::set_is_exec_point_at): Rename from
6737 tui_set_is_exec_point_at.
6738 (tui_update_all_breakpoint_info): Update.
6739 * tui/tui-stack.c (tui_show_frame_info): Update.
6740 * tui/tui-layout.c (show_data): Add cast.
6741 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6742 * tui/tui-data.h (struct tui_source_window_base) <refill,
6743 set_is_exec_point_at>: New methods.
6744 (tui_source_windows, tui_add_to_source_windows): Update types.
6745 (tui_add_to_source_windows): Remove redundant declaration.
6746 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6747 (tui_source_windows): Change return type.
6748 (tui_clear_source_windows_detail): Update.
6749 (tui_add_to_source_windows): Change type of parameter.
6750 (tui_free_all_source_wins_content): Update.
6752 2019-06-25 Tom Tromey <tom@tromey.com>
6754 * tui/tui-wingeneral.c (tui_win_info::refresh)
6755 (tui_source_window_base::refresh): New methods.
6756 (tui_refresh_all): Call the refresh method.
6757 * tui/tui-data.h (struct tui_win_info)
6758 (struct tui_source_window_base) <refresh>: New method.
6760 2019-06-25 Tom Tromey <tom@tromey.com>
6762 * tui/tui.h (tui_is_window_visible): Return bool.
6763 * tui/tui.c (tui_is_window_visible): Return bool.
6764 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6765 (tui_make_visible, tui_make_invisible)
6766 (tui_win_info::make_visible)
6767 (tui_source_window_base::make_visible, make_all_visible)
6768 (tui_make_all_visible, tui_make_all_invisible): Update.
6769 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6770 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6772 (struct tui_win_info, struct tui_source_window_base)
6773 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6774 * tui/tui-data.c (tui_init_generic_part): Update.
6776 2019-06-25 Tom Tromey <tom@tromey.com>
6778 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6779 (tui_source_window_base::make_visible): New methods.
6780 (make_all_visible): Make method call.
6781 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6782 (struct tui_source_window_base, struct tui_cmd_window): Override
6784 (tui_win_is_source_type): Don't declare.
6785 * tui/tui-data.c (tui_win_is_source_type): Remove.
6787 2019-06-25 Tom Tromey <tom@tromey.com>
6789 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6792 2019-06-25 Tom Tromey <tom@tromey.com>
6794 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6795 Inline constructor. Add initializers for members.
6796 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6797 constructors; now inline in class.
6799 2019-06-25 Tom Tromey <tom@tromey.com>
6801 * tui/tui-regs.c (tui_show_registers): Update.
6802 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6804 * tui/tui-data.c (tui_data_window::clear_detail)
6805 (tui_data_window): Update.
6807 2019-06-25 Tom Tromey <tom@tromey.com>
6809 * tui/tui-windata.c (tui_display_all_data)
6810 (tui_display_data_from_line, tui_display_data_from)
6811 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6813 * tui/tui-regs.c (tui_last_regs_line_no)
6814 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6815 (tui_show_registers, tui_show_register_group)
6816 (tui_display_registers_from, tui_display_reg_element_at_line)
6817 (tui_display_registers_from_line, tui_check_register_values)
6818 (tui_reg_next, tui_reg_prev): Update.
6819 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6820 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6822 (struct tui_win_info) <detail>: Remove. Add new fields from
6824 (TUI_DATA_WIN): Add cast.
6825 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6826 (~tui_data_window): Simplify.
6828 2019-06-25 Tom Tromey <tom@tromey.com>
6830 * tui/tui-layout.c (show_source_disasm_command)
6831 (show_source_or_disasm_and_command): Update.
6832 * tui/tui-io.c (update_cmdwin_start_line)
6833 (tui_redisplay_readline): Update.
6834 * tui/tui-data.h (struct tui_command_info): Remove.
6835 (struct tui_win_info) <detail>: Remove command_info member.
6836 (struct tui_data_window) <start_line>: New member, from
6838 (TUI_CMD_WIN): Add casts.
6840 2019-06-25 Tom Tromey <tom@tromey.com>
6842 * tui/tui-winsource.c (tui_update_source_window)
6843 (tui_refill_source_window)
6844 (tui_source_window_base::do_scroll_horizontal)
6845 (tui_update_breakpoint_info, tui_set_exec_info_content)
6846 (tui_show_exec_info_content, tui_erase_exec_info_content)
6847 (tui_clear_exec_info_content): Update.
6848 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6850 * tui/tui-win.c (make_invisible_and_set_new_height)
6851 (make_visible_with_new_height): Update.
6852 * tui/tui-source.c (tui_set_source_content)
6853 (tui_show_symtab_source): Update.
6854 * tui/tui-layout.c (extract_display_start_addr)
6855 (show_source_disasm_command, show_data)
6856 (make_source_or_disasm_window)
6857 (show_source_or_disasm_and_command): Update.
6858 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6859 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6861 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6862 to tui_source_window_base.
6863 (struct tui_win_info) <detail>: Remove source_info member.
6864 (struct tui_source_window_base) <has_locator>: Inline.
6865 Move contents from tui_source_info; rename has_locator member to
6867 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6868 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6870 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6872 (tui_free_all_source_wins_content): Cast to
6873 tui_source_window_base.
6875 2019-06-25 Tom Tromey <tom@tromey.com>
6877 * tui/tui-win.c (make_invisible_and_set_new_height)
6878 (make_visible_with_new_height): Call has_locator method.
6879 * tui/tui-layout.c (show_source_disasm_command, show_data)
6880 (show_source_or_disasm_and_command): Update for bool change.
6881 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6882 (tui_win_info) <has_locator>: New method.
6883 (struct tui_source_window_base) <has_locator>: New method.
6884 (tui_win_has_locator): Don't declare.
6885 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6886 from tui_win_has_locator.
6887 (tui_source_window_base): Use false, not FALSE.
6889 2019-06-25 Tom Tromey <tom@tromey.com>
6891 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6892 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6893 clear_detail method directly.
6894 (tui_clear_win_detail): Remove.
6896 2019-06-25 Tom Tromey <tom@tromey.com>
6898 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6899 "this", not TUI_DISASM_WIN.
6901 2019-06-25 Tom Tromey <tom@tromey.com>
6903 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6905 * tui/tui-winsource.c
6906 (tui_source_window_base::do_scroll_horizontal): Rename from
6907 tui_horizontal_source_scroll.
6908 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6909 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6910 from tui_vertical_data_scroll.
6911 * tui/tui-win.h (tui_scroll): Don't declare.
6912 * tui/tui-win.c (tui_win_info::forward_scroll)
6913 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6914 (tui_win_info::right_scroll): Rename and update.
6915 (tui_scroll_forward_command, tui_scroll_backward_command)
6916 (tui_scroll_left_command, tui_scroll_right_command): Update.
6917 (tui_scroll): Remove.
6918 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6919 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6920 from tui_vertical_source_scroll.
6921 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6922 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6923 from tui_vertical_disassem_scroll.
6924 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6925 do_scroll_horizontal>: New methods.
6926 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6928 (struct tui_source_window_base): Add do_scroll_horizontal.
6929 (struct tui_source_window, struct tui_disasm_window): Add
6931 (struct tui_data_window, struct tui_cmd_window): Add
6932 do_scroll_horizontal and do_scroll_vertical.
6933 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6935 2019-06-25 Tom Tromey <tom@tromey.com>
6937 * tui/tui-data.h (struct tui_source_window_base): New struct.
6938 (struct tui_source_window): Derive from tui_source_window_base.
6939 (struct tui_disasm_window): New struct.
6940 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6941 from tui_source_window::clear_detail.
6942 (tui_source_window_base): Rename from tui_source_window.
6943 (~tui_source_window_base): Rename from ~tui_source_window.
6944 (tui_alloc_win_info): Create a tui_disasm_window.
6946 2019-06-25 Tom Tromey <tom@tromey.com>
6948 * tui/tui-data.h (struct tui_source_window)
6949 (struct tui_data_window): Declare destructors.
6950 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6952 (tui_win_info): Simplify.
6954 2019-06-25 Tom Tromey <tom@tromey.com>
6956 * tui/tui-winsource.c (tui_display_main)
6957 (tui_update_source_windows_with_addr)
6958 (tui_update_all_breakpoint_info): Update.
6959 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6960 (new_height_ok, parse_scrolling_args): Update.
6961 * tui/tui-stack.c (tui_show_frame_info): Update.
6962 * tui/tui-data.h (struct tui_list): Remove.
6963 (tui_source_windows): Return a reference to a std::vector.
6964 * tui/tui-data.c (source_windows): Now a std::vector.
6965 (tui_source_windows): Change return type.
6966 (tui_clear_source_windows): Rewrite.
6967 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6968 (tui_free_all_source_wins_content): Rewrite.
6970 2019-06-25 Tom Tromey <tom@tromey.com>
6972 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6973 (struct tui_data_window, struct tui_cmd_window): Declare
6974 clear_detail method.
6975 * tui/tui-data.c (tui_source_window::clear_detail)
6976 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6978 (tui_clear_win_detail): Simplify.
6980 2019-06-25 Tom Tromey <tom@tromey.com>
6982 * tui/tui-layout.c (make_source_window, make_disasm_window)
6983 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6984 Return the new window.
6985 (show_source_disasm_command, show_data)
6986 (show_source_or_disasm_and_command): Update.
6988 2019-06-25 Tom Tromey <tom@tromey.com>
6990 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6991 parameter. Return the new window.
6992 (show_source_disasm_command): Update and remove NULL check.
6993 (show_source_or_disasm_and_command): Update.
6995 2019-06-25 Tom Tromey <tom@tromey.com>
6997 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6999 2019-06-25 Tom Tromey <tom@tromey.com>
7001 * tui/tui-data.h (struct tui_win_info): Make constructor
7002 protected. Make destructor virtual. Add initializers.
7003 (tui_source_window, tui_data_window, tui_cmd_window): New
7005 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7006 constructor. Add "type" parameter.
7007 (tui_source_window, tui_data_window, tui_cmd_window): New
7009 (tui_alloc_win_info): Instantiate the appropriate subclass.
7011 2019-06-25 Tom Tromey <tom@tromey.com>
7013 * tui/tui-win.c (tui_resize_all): Use delete.
7014 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7016 (tui_free_window): Don't declare.
7017 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7020 2019-06-25 Tom Tromey <tom@tromey.com>
7022 * tui/tui-data.h (struct tui_win_info): Add constructor.
7023 * tui/tui-data.c (tui_alloc_win_info): Use new.
7024 (tui_free_window): Use delete.
7026 2019-06-22 Tom Tromey <tom@tromey.com>
7028 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7030 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7032 2019-06-22 Tom Tromey <tom@tromey.com>
7034 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7036 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7038 2019-06-22 Tom de Vries <tdevries@suse.de>
7040 * dwarf2read.c (create_addrmap_from_aranges)
7041 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7044 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7046 * dwarf2read.h (dwarf2_section_info_def): Remove.
7047 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7048 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7049 std::vector<dwarf2_section_info>.
7050 (struct dwo_file) <~dwo_file>: Remove.
7051 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7053 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7054 (dwarf2_read_debug_names): Likewise.
7055 (create_debug_types_hash_table): Change parameter type to
7056 array_view, adjust code accordingly.
7057 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7058 (partial_die_info::fixup): Likewise.
7059 (determine_prefix): Likewise.
7060 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7062 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7064 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7066 <~dwo_file>: Remove call to gdb_bfd_unref.
7067 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7068 gdb_bfd_ref_ptr::get.
7070 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7072 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7074 * dwarf2read.c (struct dwo_file): Initialize fields.
7076 (free_dwo_file): Remove, move content to ~dwo_file.
7077 (struct dwo_file_deleter): Remove.
7078 (dwo_file_up>: Remove custom deleter.
7079 (free_dwo_files): Remove.
7080 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7082 (process_skeletonless_type_units): Call unique_ptr::get.
7083 (allocate_dwo_file_hash_table): Add deleter to created hash
7084 table. Change return type to htab_up.
7085 (lookup_dwo_file_slot): Don't memset dwo_file, call
7087 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7088 (create_dwo_unit_in_dwp_v2): Likewise.
7089 (open_and_init_dwo_file): Likewise.
7090 (free_dwo_file_from_slot): Remove.
7092 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7094 * dwarf2read.h (struct dwarf2_section_info) <readin,
7095 is_virtual>: Change type to bool.
7096 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7099 2019-06-19 Tom Tromey <tom@tromey.com>
7101 * tui/tui-data.h (tui_init_content_element): Don't declare.
7103 2019-06-19 Tom Tromey <tom@tromey.com>
7105 * tui/tui-data.h (tui_init_win_info): Don't declare.
7107 2019-06-19 Tom de Vries <tdevries@suse.de>
7109 * dwarf2read.h (abstract_to_concrete): Change type to
7110 std::unordered_map<sect_offset, std::vector<sect_offset>,
7111 gdb::hash_enum<sect_offset>>.
7113 2019-06-19 Tom Tromey <tromey@adacore.com>
7115 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7116 EVAL_AVOID_SIDE_EFFECTS specially.
7118 2019-06-19 Tom Tromey <tromey@adacore.com>
7120 * source-cache.c (highlighter): New global.
7121 (source_cache::get_source_lines): Create a highlighter on demand.
7123 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7125 * defs.h (deprecated_interactive_hook): Delete declaration.
7126 * interps.c (clear_interpreter_hooks): Remove use of
7127 deprecated_interactive_hook.
7128 * top.c (deprecated_interactive_hook): Delete definition.
7129 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7131 2019-06-18 Tom de Vries <tdevries@suse.de>
7134 * dwarf2read.h (abstract_to_concrete): Change type from
7135 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7136 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7137 * dwarf2read.c (read_variable): Update.
7138 (dwarf2_fetch_die_loc_sect_off): Update.
7140 2019-06-17 Tom de Vries <tdevries@suse.de>
7143 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7144 accessing parent[parent_len - 1].
7146 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7149 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7150 call dtrace_process_dof with NULL dof.
7152 2019-06-16 Tom de Vries <tdevries@suse.de>
7155 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7157 2019-06-16 Tom Tromey <tom@tromey.com>
7159 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7160 (make_all_visible): Use address of member.
7162 2019-06-16 Tom Tromey <tom@tromey.com>
7164 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7165 (tui_free_window, free_content, free_content_elements): Remove
7167 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7169 * tui/tui-regs.c (tui_show_register_group)
7170 (tui_display_registers_from, tui_display_reg_element_at_line):
7171 Remove unnecessary cast.
7173 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7175 * linux-nat.c (normal_mask): Delete.
7176 (_initialize_linux_nat): Don't initialise normal_mask.
7178 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7181 * dwarf-index-write.h (write_psymtabs_to_index): Add
7182 dwz_basename parameter.
7183 * dwarf-index-write.c (write_gdbindex): Move file writing to
7184 write_gdbindex_1. Change return type void.
7185 (assert_file_size): Move up, remove filename parameter.
7186 (write_gdbindex_1): New function.
7187 (write_debug_names): Change return type to void, call
7189 (struct index_wip_file): New struct.
7190 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7191 file logic to index_wip_file. Write index for dwz file if
7193 (save_gdb_index_command): Pass basename of dwz file, if present.
7194 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7195 build-id of dwz file, if present.
7196 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7197 (dwarf2_get_dwz_file): Likewise.
7198 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7199 (dwarf2_get_dwz_file): Likewise.
7201 2019-06-16 Tom Tromey <tom@tromey.com>
7203 * coffread.c (process_coff_symbol): Use xstrdup.
7204 * value.c (create_internalvar): Use xstrdup.
7206 2019-06-16 Tom Tromey <tom@tromey.com>
7208 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7209 * breakpoint.c (stopin_command, stopat_command)
7210 (until_break_command, decode_location_default): Remove unnecessary
7212 * utils.c (subset_compare): Remove unnecessary cast.
7213 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7215 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7217 * infcmd.c (path_command): Remove unnecessary cast.
7218 * coffread.c (decode_type): Remove unnecessary cast.
7219 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7220 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7221 * tui/tui-stack.c (tui_show_locator_content)
7222 (tui_show_frame_info): Remove unnecessary cast.
7223 * tui/tui-win.c (tui_scroll_forward_command)
7224 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7225 (parse_scrolling_args): Remove unnecessary cast.
7226 * tui/tui-data.c (init_win_info, tui_del_window)
7227 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7228 (free_content_elements): Remove unnecessary cast.
7229 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7231 * tui/tui-source.c (tui_set_source_content)
7232 (tui_vertical_source_scroll): Remove unnecessary cast.
7233 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7235 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7236 * tui/tui-regs.c (tui_display_registers_from)
7237 (tui_display_register): Remove unnecessary cast.
7238 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7239 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7240 (make_visible): Remove unnecessary cast.
7241 * tui/tui-winsource.c (tui_erase_source_content)
7242 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7244 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7245 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7246 * stabsread.c (read_type, read_array_type, read_range_type):
7247 Remove unnecessary cast.
7248 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7249 (parse_symbol, parse_type, upgrade_type, parse_external)
7250 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7252 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7254 2019-06-16 Tom Tromey <tom@tromey.com>
7256 * tui/tui-data.c (tui_alloc_generic_win_info)
7257 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7260 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7261 Andrew Burgess <andrew.burgess@embecosm.com>
7263 * f-typeprint.c (f_print_type): Don't return early for not
7264 associated or not allocated types.
7265 (f_type_print_varspec_suffix): Add print_rank parameter and print
7266 ranks of array types in case they dangling.
7267 (f_type_print_base): Add print_rank parameter.
7269 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7271 * NEWS: Mention new MI commands.
7272 * break-catch-throw.c (enum exception_event_kind): Move to
7274 (print_mention_exception_catchpoint): Output text as a single
7276 (catch_exception_command_1): Rename to...
7277 (catch_exception_event): ...this, make non-static, update header
7278 command, and change some parameter types.
7279 (catch_catch_command): Update for changes to
7280 catch_exception_command_1.
7281 (catch_throw_command): Likewise.
7282 (catch_rethrow_command): Likewise.
7283 * breakpoint.c (enum exception_event_kind): Delete.
7284 * breakpoint.h (enum exception_event_kind): Moved here from
7285 break-catch-throw.c.
7286 (catch_exception_event): Declare.
7287 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7288 (mi_cmd_catch_throw): New function.
7289 (mi_cmd_catch_rethrow): New function.
7290 (mi_cmd_catch_catch): New function.
7291 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7292 'catch-catch' entries.
7293 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7294 (mi_cmd_catch_rethrow): Declare.
7295 (mi_cmd_catch_catch): Declare.
7297 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7299 * annotate.c (annotate_source_line): Change return type to void,
7300 update implementation to match.
7301 * annotate.h (annotate_source_line): Change return type to void,
7302 update header comment.
7303 * stack.c (print_frame_info): Don't change what frame information
7304 is printed based on whether annotations are on or not.
7306 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7308 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7309 (annotate_source): Make static.
7310 (annotate_source_line): Moved from source.c and renamed from
7311 identify_source_line. Update the return type.
7312 * annotate.h (annotate_source): Delete declaration.
7313 (annotate_source_line): Declaration moved from source.h, and
7314 renamed from identify_source_line. Return type updated.
7315 * source.c (identify_source_line): Moved to annotate.c and renamed
7316 to annotate_source_line.
7317 (info_line_command): Remove check of annotation_level.
7318 * source.h (identify_source_line): Move declaration to annotate.h
7319 and rename to annotate_source_line.
7320 * stack.c: Add 'annotate.h' include.
7321 (print_frame_info): Remove check of annotation_level before
7322 calling annotate_source_line.
7324 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7326 * source-cache.c (source_cache::get_plain_source_lines): Use
7327 open_source_file_with_line_charpos instead of just
7328 open_source_file, remove call to find_source_lines.
7329 (source_cache::get_source_lines): Likewise.
7330 * source.c (find_source_lines): Make static.
7331 (get_filename_and_charpos): Renamed into...
7332 (open_source_file_with_line_charpos): ..this along with changes to
7333 return a scoped_fd, and some other minor clean ups.
7334 (identify_source_line): Use open_source_file_with_line_charpos.
7335 (search_command_helper): Use open_source_file_with_line_charpos
7336 instead of just open_source_file, remove call to
7338 * source.h (open_source_file_with_line_charpos): Declare new
7340 (find_source_lines): Delete declaration.
7342 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7344 * source.c (get_filename_and_charpos): Remove fullname
7346 (identify_source_line): Update call to get_filename_and_charpos.
7348 2019-06-14 Tom Tromey <tromey@adacore.com>
7351 * ui-style.h (skip_ansi_escape): Update comment.
7352 * ui-file.h (class no_terminal_escape_file): New class.
7353 * ui-file.c (no_terminal_escape_file::write)
7354 (no_terminal_escape_file::puts): New methods.
7355 * cli/cli-logging.c (handle_redirections): Use
7356 no_terminal_escape_file.
7358 2019-06-14 Tom Tromey <tromey@adacore.com>
7360 * NEWS: Move convenience variable news above Python news.
7362 2019-06-14 Tom Tromey <tom@tromey.com>
7364 * gnulib: Move directory to top-level.
7365 * configure.ac: Don't configure gnulib.
7366 * configure: Rebuild.
7367 * common/common-defs.h: Use new path to gnulib.
7368 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7370 (INCGNU): Look in new gnulib location.
7371 (HFILES_NO_SRCDIR): Remove gnulib files.
7372 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7373 (generated_files): Remove GNULIB_H.
7374 ($(LIBGNU), all-lib): Remove targets.
7375 (distclean): Don't mention GNULIB_BUILDDIR.
7376 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7378 2019-06-14 Tom Tromey <tromey@adacore.com>
7380 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7381 Warn if symbol file does not provide any symbols.
7383 2019-06-14 Tom Tromey <tromey@adacore.com>
7385 * source.c (find_and_open_source): Respect basenames_may_differ.
7387 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7389 * annotate.c (annotate_breakpoints_invalid): Make use of
7390 scoped_restore_terminal_state.
7391 (annotate_frames_invalid): Likewise.
7393 2019-06-14 Tom Tromey <tromey@adacore.com>
7395 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7396 allow assignment to an internalvar.
7398 2019-06-14 Tom Tromey <tromey@adacore.com>
7400 * ada-lex.l: Allow "_" in attribute names.
7402 2019-06-14 Tom Tromey <tromey@adacore.com>
7405 * regcache.c (registers_changed): Don't call alloca.
7406 * top.c (execute_command): Don't call alloca.
7408 2019-06-13 Pedro Alves <palves@redhat.com>
7410 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7411 'expression'. When parsing an expression, error out if there's
7412 junk after "unlimited".
7413 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7414 (do_set_command): Adjust calls to is_unlimited_literal.
7416 2019-06-13 Pedro Alves <palves@redhat.com>
7418 * compile/compile.c (make_compile_options_def_group): Add braces
7419 around array_view initializer.
7420 * thread.c (make_thread_apply_all_options_def_group)
7421 (make_thread_apply_all_options_def_group): Likewise.
7423 2019-06-13 Pedro Alves <palves@redhat.com>
7425 * NEWS (New commands): Mention "maint test-options
7426 require-delimiter", "maint test-options unknown-is-error", "maint
7427 test-options unknown-is-operand" and "maint show
7428 test-options-completion-result".
7429 (New command options, command completion): New section.
7430 (Completion improvements): New section.
7431 Mention that you can abbreviate "unlimited".
7433 2019-06-13 Pedro Alves <palves@redhat.com>
7435 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7436 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7437 * unittests/cli-utils-selftests.c (test_parse_flags)
7438 (test_parse_flags_qcs): Delete.
7439 (test_cli_utils): Don't call deleted functions.
7441 2019-06-13 Pedro Alves <palves@redhat.com>
7443 * thread.c: Include "cli/cli-option.h".
7444 (tp_array_compar_ascending): Global.
7445 (tp_array_compar): Delete function.
7446 (tp_array_compar_ascending, tp_array_compar_descending): New
7448 (ascending_option_def, qcs_flag_option_def)
7449 (thr_qcs_flags_option_defs)
7450 (make_thread_apply_all_options_def_group)
7451 (make_thread_apply_options_def_group): New.
7452 (thread_apply_all_command): Use gdb::option::process_options.
7453 (thread_apply_command_completer)
7454 (thread_apply_all_command_completer): New.
7455 (thread_apply_command): Use gdb::option::process_options.
7456 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7457 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7458 to generate help text of "thread apply". Adjust "taas"'s help.
7459 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7460 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7462 2019-06-13 Pedro Alves <palves@redhat.com>
7464 * thread.c (thread_apply_command): Check for invalid TID with
7465 isdigit instead of !isalpha.
7467 2019-06-13 Pedro Alves <palves@redhat.com>
7469 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7470 (validate_flags_qcs): New.
7471 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7472 (validate_flags_qcs): Declare.
7473 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7474 (make_frame_apply_options_def_group): New.
7475 (frame_apply_command_count): Process options with
7476 gdb::option::process_options.
7477 (frame_apply_completer): New.
7478 (frame_apply_level_completer, frame_apply_all_completer)
7479 (frame_apply_completer): New.
7480 (_initialize_stack): Update help of "frame apply", "frame apply
7481 level", "frame apply all" and "faas" to mention supported options
7482 and install command completers.
7483 * stack.h (frame_apply_all_completer): Declare.
7484 * thread.c: Include "stack.h".
7485 (tfaas_command): Add "--".
7486 (_initialize_thread): Update help "tfaas" to mention supported
7487 options and install command completer.
7489 2019-06-13 Pedro Alves <palves@redhat.com>
7491 * completer.c (complete_nested_command_line): New.
7492 (gdb_completion_word_break_characters_throw): Add assertion.
7493 * completer.h (complete_nested_command_line): Declare.
7495 2019-06-13 Pedro Alves <palves@redhat.com>
7497 * stack.c (parse_backtrace_qualifiers): New.
7498 (backtrace_command): Use it.
7499 (backtrace_command_completer): Complete on qualifiers.
7501 2019-06-13 Pedro Alves <palves@redhat.com>
7503 * frame.c: Include "cli/cli-option.h.
7504 (user_set_backtrace_options): New.
7505 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7507 (get_prev_frame): Adjust.
7508 (boolean_option_def, uinteger_option_def)
7509 (set_backtrace_option_defs): New.
7510 (_initialize_frame): Adjust and use
7511 gdb::option::add_setshow_cmds_for_options to install "set
7512 backtrace past-main" and "set backtrace past-entry".
7513 * frame.h: Include "cli/cli-option.h".
7514 (struct frame_print_options): Forward declare.
7515 (print_frame_arguments_all, print_frame_arguments_scalars)
7516 (print_frame_arguments_none): Declare.
7517 (print_entry_values): Delete declaration.
7518 (struct frame_print_options, user_frame_print_options): New.
7519 (struct set_backtrace_options): New.
7520 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7521 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7522 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7523 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7524 (list_args_or_locals): Add frame_print_options parameter.
7525 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7526 * python/py-framefilter.c (enumerate_args): Pass down
7527 USER_FRAME_PRINT_OPTIONS.
7528 * stack.c: Include "cli/cli-option.h".
7529 (print_frame_arguments_all, print_frame_arguments_scalars)
7530 (print_frame_arguments_none): Declare.
7531 (print_raw_frame_arguments, print_entry_values): Delete.
7532 (user_frame_print_options): New.
7533 (boolean_option_def, enum_option_def, frame_print_option_defs):
7535 (struct backtrace_cmd_options): New.
7536 (bt_flag_option_def): New.
7537 (backtrace_command_option_defs): New.
7538 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7539 (print_frame_arg, read_frame_arg, print_frame_args)
7540 (print_frame_info, print_frame): Add frame_print_options parameter
7542 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7543 (backtrace_command_1): Add frame_print_options and
7544 backtrace_cmd_options parameters and use them.
7545 (make_backtrace_options_def_group): New.
7546 (backtrace_command): Process command options with
7547 gdb::option::process_options.
7548 (backtrace_command_completer): New.
7549 (_initialize_stack): Extend "backtrace"'s help to mention
7550 supported options. Install completer for "backtrace".
7551 Install some settings commands with add_setshow_cmds_for_options.
7553 2019-06-13 Pedro Alves <palves@redhat.com>
7555 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7556 and that "set/show print raw frame-arguments" are now deprecated.
7558 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7560 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7561 * stack.c (_initialize_stack): Install "set/show print
7562 raw-frame-arguments", and deprecate "set/show print raw
7564 * valprint.c (_initialize_valprint): Deprecate "set/show print
7567 2019-06-13 Pedro Alves <palves@redhat.com>
7569 * compile/compile.c (struct compile_options): New.
7570 (compile_flag_option_def, compile_command_option_defs)
7571 (make_compile_options_def_group): New.
7572 (compile_file_command): Handle options with
7573 gdb::option::process_options.
7574 (compile_file_command_completer): New function.
7575 (compile_code_command): Handle options with
7576 gdb::option::process_options.
7577 (compile_code_command_completer): New function.
7578 (_initialize_compiler): Install completers for "compile code" and
7579 "compile file". Mention available options in "compile code" and
7580 "compile code"'s help.
7581 * completer.c (advance_to_completion_word): New, factored out from
7583 (advance_to_expression_complete_word_point): ... this.
7584 (advance_to_filename_complete_word_point): New.
7585 * completer.h (advance_to_filename_complete_word_point): New
7588 2019-06-13 Pedro Alves <palves@redhat.com>
7590 * compile/compile.c: Include "cli/cli-option.h".
7591 (compile_print_value): Scope data pointer is now a
7592 value_print_options pointer; adjust.
7593 (compile_print_command): Process options. Scope data pointer is
7594 now a value_print_options pointer; adjust.
7595 (_initialize_compile): Update "compile print"'s help to include
7596 supported options. Install a completer for "compile print".
7597 * cp-valprint.c (show_vtblprint, show_objectprint)
7598 (show_static_field_print): Delete.
7599 (_initialize_cp_valprint): Don't install "set print
7600 static-members", "set print vtbl", "set print object" here.
7601 * printcmd.c: Include "cli/cli-option.h" and
7602 "common/gdb_optional.h".
7603 (print_command_parse_format): Rework to fill in a
7604 value_print_options instead of a format_data.
7605 (print_value): Change parameter type from format_data pointer to
7606 value_print_options reference. Adjust.
7607 (print_command_1): Process options. Adjust to pass down a
7608 value_print_options.
7609 (print_command_completer): New.
7610 (_initialize_printcmd): Install print_command_completer as
7611 handle_brkchars completer for the "print" command. Update
7612 "print"'s help to include supported options.
7613 * valprint.c: Include "cli/cli-option.h".
7614 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7615 here from cp-valprint.c.
7616 (boolean_option_def, uinteger_option_def)
7617 (value_print_option_defs, make_value_print_options_def_group):
7618 New. Use gdb::option::add_setshow_cmds_for_options to install
7619 "set print elements", "set print null-stop", "set print repeats",
7620 "set print pretty", "set print union", "set print array", "set
7621 print address", "set print symbol", "set print array-indexes".
7622 * valprint.h: Include <string> and "cli/cli-option.h".
7623 (make_value_print_options_def_group): Declare.
7624 (print_value): Change parameter type from format_data pointer to
7625 value_print_options reference.
7626 (print_command_completer): Declare.
7628 2019-06-13 Pedro Alves <palves@redhat.com>
7630 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7631 (COMMON_SFILES): Add maint-test-settings.c.
7632 * cli/cli-decode.c (boolean_enums): New global, factored out from
7634 (add_setshow_boolean_cmd): ... here.
7635 * cli/cli-decode.h (boolean_enums): Declare.
7636 * cli/cli-option.c: New file.
7637 * cli/cli-option.h: New file.
7638 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7639 factored out from ...
7640 (parse_cli_boolean_value(const char *)): ... this.
7641 (is_unlimited_literal): Change parameter type to pointer to
7642 pointer. Adjust and advance ARG pointer.
7643 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7644 (parse_cli_var_enum): New, factored out from ...
7645 (do_set_command): ... this. Adjust.
7646 * cli/cli-setshow.h (parse_cli_boolean_value)
7647 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7648 (parse_cli_var_enum): Declare.
7649 * cli/cli-utils.c: Include "cli/cli-option.h".
7650 (get_ulongest): New.
7651 * cli/cli-utils.h (get_ulongest): Declare.
7652 (check_for_argument): New overloads.
7653 * maint-test-options.c: New file.
7655 2019-06-13 Pedro Alves <palves@redhat.com>
7657 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7658 parse a range if "-" is at the end of the string.
7660 2019-06-13 Pedro Alves <palves@redhat.com>
7662 * cli/cli-setshow.c (parse_auto_binary_operation)
7663 (parse_cli_boolean_value): Don't allow "o".
7665 2019-06-13 Pedro Alves <palves@redhat.com>
7667 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7668 * NEWS: Mention maint test-settings KIND.
7669 * maint-test-settings.c: New file.
7671 2019-06-13 Pedro Alves <palves@redhat.com>
7673 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7675 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7678 2019-06-13 Pedro Alves <palves@redhat.com>
7680 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7683 2019-06-13 Pedro Alves <palves@redhat.com>
7685 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7687 2019-06-13 Pedro Alves <palves@redhat.com>
7689 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7690 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7692 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7693 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7695 (check_for_argument): Skip spaces after argument.
7697 2019-06-13 Pedro Alves <palves@redhat.com>
7699 * thread.c (thread_apply_command): Adjust TID parsing.
7700 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7701 detected before end of string.
7702 (tid_is_in_list): Error out if LIST is invalid.
7704 2019-06-13 Pedro Alves <palves@redhat.com>
7706 * completer.c (complete_line_internal_1): Rewind completion word
7708 (completion_tracker::advance_custom_word_point_by): Change
7709 parameter type to int.
7710 * completer.h (completion_tracker::advance_custom_word_point_by):
7713 2019-06-13 Pedro Alves <palves@redhat.com>
7715 * completer.c (advance_to_completion_word): Handle delimiters.
7717 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7719 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7721 2019-06-11 Tom Tromey <tom@tromey.com>
7723 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7724 (xmalloc_failed): Move to alloc.c.
7725 * alloc.c: New file.
7726 * Makefile.in (COMMON_SFILES): Add alloc.c.
7728 2019-06-11 Tom Tromey <tom@tromey.com>
7730 * nat/linux-waitpid.c: Don't include server.h.
7731 (linux_debug): Remove.
7732 (my_waitpid): Update.
7734 2019-06-11 Tom Tromey <tromey@adacore.com>
7736 * infcall.c (_initialize_infcall): Remove trailing newline from
7738 * user-regs.c (_initialize_user_regs): Remove trailing newline
7740 * typeprint.c (_initialize_typeprint): Remove trailing newline
7742 * reverse.c (_initialize_reverse): Remove trailing newlines from
7744 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7746 * language.c (add_set_language_command): Remove trailing newline
7748 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7750 * disasm.c (_initialize_disasm): Remove trailing newline from
7752 * top.c (init_main): Remove trailing newline from help.
7753 * interps.c (_initialize_interpreter): Remove trailing newline
7755 * btrace.c (_initialize_btrace): Remove trailing newlines from
7757 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7759 * python/python.c (_initialize_python): Remove trailing newline
7761 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7763 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7764 from help. Reformat some text.
7765 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7767 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7770 2019-06-11 Tom Tromey <tromey@adacore.com>
7772 * darwin-nat.c (darwin_decode_exception_message)
7773 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7775 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7777 * valops.c (value_slice): Check for not allocated or not
7780 2019-06-10 Tom de Vries <tdevries@suse.de>
7783 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7784 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7787 2019-06-10 Tom de Vries <tdevries@suse.de>
7790 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7791 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7793 2019-06-10 Tom de Vries <tdevries@suse.de>
7796 * symtab.c (struct demangled_name_entry): Add language field.
7797 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7798 static minimal symbol". Set and use language field.
7800 2019-06-10 Tom Tromey <tromey@adacore.com>
7802 * ada-lang.c (_initialize_ada_language): Update help text.
7804 2019-06-10 Tom Tromey <tromey@adacore.com>
7806 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7808 * guile/guile.c (handle_boot_error): Don't end warning with a
7810 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7811 warning with a newline.
7812 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7814 (s12z_frame_cache): Likewise.
7815 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7817 * solib-svr4.c (disable_probes_interface): Don't end warning with
7819 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7821 * python/python.c (do_finish_initialization): Don't end warning
7824 2019-06-10 Tom Tromey <tom@tromey.com>
7826 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7827 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7830 2019-06-10 Tom Tromey <tromey@adacore.com>
7832 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7834 (elf_new_init): Don't call stabsread_new_init.
7835 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7836 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7837 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7839 2019-06-10 Tom de Vries <tdevries@suse.de>
7843 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7845 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7847 * source.c (find_and_open_source): Also rewrite relative file
7850 2019-04-26 Amos Bird <amosbird@gmail.com>
7852 * annotate.c (annotate_thread_exited): Add "thread-exited"
7855 2019-06-06 Tom Tromey <tromey@adacore.com>
7857 * maint.h (class scoped_command_stats): Use
7858 DISABLE_COPY_AND_ASSIGN.
7859 <print_time>: New method.
7860 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7862 (scoped_command_stats::print_time): New method.
7864 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7866 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7867 instructions of lengths 6 or 8 bytes.
7869 2019-06-04 Pedro Alves <palves@redhat.com>
7871 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7873 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7874 * breakpoint.c (condition_completer): Likewise.
7875 * cli/cli-dump.c (scan_expression): Likewise.
7876 * common/filestuff.c (mkdir_recursive): Likewise.
7877 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7878 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7879 (gdb_abspath): Likewise.
7880 * compile/compile-cplus-types.c
7881 (compile_cplus_instance::decl_name): Likewise.
7882 * completer.c (complete_explicit_location):
7883 (signal_completer, reg_or_group_completer_1): Likewise.
7884 * cp-support.c (cp_remove_params_if_any): Likewise.
7885 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7886 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7887 * infcmd.c (strip_bg_char): Likewise.
7888 * linespec.c (copy_token_string): Likewise.
7889 * mi/mi-main.c (output_cores): Likewise.
7890 * psymtab.c (psymtab_search_name):
7891 * symfile.c (test_set_ext_lang_command): Likewise.
7892 * target.c (target_fileio_read_stralloc): Likewise.
7893 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7894 * value.c (complete_internalvar): Likewise.
7896 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7898 Add objfile property to gdb.Type.
7899 * NEWS: Mention Python API addition.
7900 * python/py-type.c (typy_get_objfile): New method.
7902 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7904 * NEWS: Mention the new set|show style [title|highlight].
7905 Mention changes to "show style", "help" and "apropos".
7907 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7909 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7910 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7911 instead of print_help_for_command.
7912 (print_doc_of_command): New function.
7913 (help_list): Add 'apropos -v word' suggestion.
7914 (print_help_for_command): Style the command name using title style.
7915 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7916 (_initialize_cli_cmds): Describe -v in apropos_command help.
7918 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7920 * cli/cli-style.h (cli_style_option): Add name in constructor,
7921 add m_name class member, add constructor with intensity,
7922 add name class function.
7923 (cli_style_option::add_setshow_commands): Remove name argument.
7924 (highlight_style, title_style): New styles.
7925 * cli/cli-style.c (do_show): New function that shows a style
7926 characteristic styling the style name with itself.
7927 (set_style_name): New function.
7928 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7929 Update all callers according to the changes in cli/cli-style.h.
7930 * utils.h (fputs_highlighted): New function.
7931 * utils.c (fputs_highlighted): Likewise.
7933 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7935 * NEWS: Mention new pipe command and new convenience variables.
7937 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7939 * cli/cli-cmds.c (pipe_command): New function.
7940 (_initialize_cli_cmds): Call add_com for pipe_command.
7941 Define | as an alias for pipe.
7942 (exit_status_set_internal_vars): New function.
7943 (shell_escape): Call exit_status_set_internal_vars.
7944 cli/cli-decode.c (find_command_name_length): Recognize | as
7945 a single character command.
7947 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7949 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7950 top.c (execute_command_to_ui_file): New function, mostly a copy
7951 of execute_command_to_string.
7952 (execute_command_to_string): Implement by calling
7953 execute_command_to_ui_file.
7955 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7957 * top.h (saved_command_line): Remove declaration.
7958 * top.c (previous_saved_command_line, previous_repeat_arguments):
7960 (saved_command_line): Make static, define together with other
7962 (dont_repeat): Clear repeat_arguments.
7963 (repeat_previous, get_saved_command_line, save_command_line):
7965 (gdb_init): Initialize saved_command_line
7966 and previous_saved_command_line.
7967 * main.c (captured_main_1): Remove saved_command_line initialization.
7968 * event-top.c (handle_line_of_input): Update to use
7969 the new 'repeat' related functions instead of direct access to
7971 * command.h (repeat_previous, get_saved_command_line,
7972 save_command_line): New declarations.
7973 (dont_repeat): Add comment.
7975 2019-05-30 Tom Tromey <tromey@adacore.com>
7977 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7979 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7981 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7984 * completer.c (complete): Initialize variable word.
7986 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7988 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7989 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7990 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7991 'body' is NULL to the outter 'if', protecting the '!is_define'
7994 2019-05-29 Tom Tromey <tromey@adacore.com>
7996 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7997 (dwarf_unknown): New function.
7998 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7999 (dwarf_type_encoding_name): Use dwarf_unknown.
8001 2019-05-29 Tom Tromey <tromey@adacore.com>
8004 * cp-valprint.c (cp_print_value_fields): Call
8005 cp_print_static_field inside "try".
8007 2019-05-29 Tom Tromey <tromey@adacore.com>
8009 * inflow.c (struct terminal_info): Add default operator=.
8010 * configure: Rebuild.
8011 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8012 -Wdeprecated-copy-dtor, -Wredundant-move.
8014 2019-05-29 Tom Tromey <tromey@adacore.com>
8017 * infcmd.c (print_return_value_1): Handle finish_print
8019 (show_print_finish): New function.
8020 (_initialize_infcmd): Add "set/show print finish" commands.
8021 * valprint.c (user_print_options): Initialize new member.
8022 * valprint.h (struct value_print_options) <finish_print>: New
8025 2019-05-28 Tom Tromey <tromey@adacore.com>
8027 * ada-lang.c (ada_remove_Xbn_suffix)
8028 (find_old_style_renaming_symbol)
8029 (parse_old_style_renaming): Remove.
8030 (ada_find_renaming_symbol): Don't call
8031 find_old_style_renaming_symbol.
8032 (ada_is_renaming_symbol): Rename from
8033 ada_find_renaming_symbol. Remove "block" parameter. Return
8035 (ada_read_var_value): Update and simplify.
8036 * ada-exp.y (write_var_or_type): Remove old code.
8038 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8041 * event-top.c: Remove include comment.
8042 * inflow.c (class scoped_ignore_sigttou): Move from here...
8043 * inflow.h (class scoped_ignore_sigttou): ...to here.
8044 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8045 * top.c: Remove include comment.
8047 2019-05-27 Tom Tromey <tom@tromey.com>
8051 2019-05-22 Tom Tromey <tromey@adacore.com>
8053 * target.c (target_follow_exec): Constify parameter.
8054 * target-delegates.c: Rebuild.
8055 * remote.c (remote_target::follow_exec): Constify parameter.
8056 * infrun.c (follow_exec): Constify parameter.
8057 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8058 (target_follow_exec): Likewise.
8060 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8062 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8063 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8065 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8067 * NEWS: Add debugredirect and testsuite sections.
8069 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8071 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8072 target descriptions using exclusively floating point register name
8075 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8078 * f-lang.c (build_fortran_types): Handle the case where
8079 gdbarch_floatformat_for_type returns a nullptr.
8081 2019-05-21 Tom de Vries <tdevries@suse.de>
8084 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8086 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8089 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8091 * i386-tdep.c (i386_floatformat_for_type): Use
8092 floatformats_ia64_quad for the 16-byte floating point component
8093 within a fortran 32-byte complex number.
8095 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8097 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8098 delete default constructor.
8099 (find_partial_die): Update to return const struct.
8100 (partial_die_parent_scope): Move variable declaration into scope
8101 of its use and change its type to auto.
8102 (guess_partial_die_structure_name): Likewise.
8103 (partial_die_info::fixup): Likewise.
8105 2019-05-17 Tom Tromey <tromey@adacore.com>
8107 * source.c (find_and_open_source): Remove cast.
8109 2019-05-17 Tom Tromey <tromey@adacore.com>
8111 * annotate.c (annotate_source): Make "filename" const.
8112 * annotate.h (annotate_source): Use const.
8114 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8116 * disasm.c (set_disassembler_options): Send errors to stderr.
8118 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8120 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8121 (cli_interp_base::set_logging): Check debug_redirect.
8122 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8123 * cli/cli-logging.c (debug_redirect): Add static variable.
8124 (pop_output_files): Add default param.
8125 (handle_redirections): Print debug setting.
8126 (show_logging_command): Likewise.
8127 (_initialize_cli_logging): Add debugredirect command.
8128 * interps.c (current_interp_set_logging): Add debug_redirect
8130 * interps.h (set_logging): Add debug_redirect parameter.
8131 (current_interp_set_logging): Likewise.
8132 * mi/mi-common.h: Likewise.
8133 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8135 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8136 Tom Tromey <tromey@adacore.com>
8138 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8140 * cli/cli-interp.h (make_logging_output): Remove declaration.
8141 * cli/cli-logging.c (make_logging_output): Remove function.
8142 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8144 * ui-file.c (tee_file::tee_file): Remove bools.
8145 (tee_file::~tee_file): Remove deletes.
8146 * ui-file.h (tee_file): Remove bools.
8148 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8150 * mi/mi-cmds.h (mi_cmd_complete): New function.
8151 * mi/mi-main.c (mi_cmd_complete): Likewise.
8152 * mi/mi-cmds.c: Define new MI command -complete.
8153 * NEWS: Mention new -complete command.
8155 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8157 * completer.h (complete): New function.
8158 * completer.c (complete): Likewise.
8159 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8160 function defined in completer.h.
8162 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8164 * MAINTAINERS (Write After Approval): Add myself.
8166 2019-05-17 Tom de Vries <tdevries@suse.de>
8169 * dwarf2read.c (struct cu_partial_die_info): New struct.
8170 (find_partial_die): Return cu_partial_die_info.
8171 (partial_die_parent_scope, guess_partial_die_structure_name)
8172 (partial_die_info::fixup): Handle new return type of find_partial_die.
8174 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8176 PR breakpoints/24541
8177 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8178 "std::string", simplifying the algorithm.
8180 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8182 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8183 (stap_static_probe_ops::get_probes): Likewise.
8185 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8187 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8188 '-')" and "else if".
8189 (stap_parse_single_operand): Join checks for
8190 "gdbarch_stap_parse_special_token_p" and
8191 "gdbarch_stap_parse_special_token" in the same "if" statement.
8192 Invert check when verifying for operation on register
8195 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8197 * stap-probe.c (stap_get_opcode): Update comment.
8198 (stap_get_expected_argument_type): Likewise.
8199 (handle_stap_probe): Likewise.
8201 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8203 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8204 return type to 'bool'. Adjust comment. Use 'bool' when
8206 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8207 * stap-probe.c (stap_parse_argument_1): Likewise.
8208 (stap_is_operator): Likewise.
8209 (stap_is_generic_prefix): Likewise.
8210 (stap_is_register_prefix): Likewise.
8211 (stap_is_register_indirection_prefix): Likewise.
8212 (stap_is_integer_prefix): Likewise.
8213 (stap_generic_check_suffix): Likewise.
8214 (stap_check_integer_suffix): Likewise.
8215 (stap_check_register_suffix): Likewise.
8216 (stap_check_register_indirection_suffix): Likewise.
8217 (stap_parse_register_operand): Likewise.
8218 (stap_parse_single_operand): Likewise.
8219 (stap_parse_argument_1): Likewise.
8220 (stap_probe::get_argument_count): Likewise.
8221 (stap_is_operator): Likewise.
8223 2019-05-16 Tom Tromey <tromey@adacore.com>
8225 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8228 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8230 * linux-thread-db.c (try_thread_db_load_1): Change return type
8232 (try_thread_db_load): Likewise.
8233 (try_thread_db_load_from_pdir_1): Likewise.
8234 (try_thread_db_load_from_pdir): Likewise.
8235 (try_thread_db_load_from_sdir): Likewise.
8236 (try_thread_db_load_from_dir): Likewise.
8237 (thread_db_load_search): Likewise.
8238 (has_libpthread): Likewise.
8239 (thread_db_load): Likewise.
8241 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8243 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8244 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8245 NULL, and complain/return if that's the case.
8247 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8249 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8250 (advance, posn, abstract_read_memory): New functions.
8251 [struct mem_read_abstraction]: New struct.
8252 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8254 2019-05-14 Tom Tromey <tromey@adacore.com>
8256 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8257 value is not lval_memory.
8259 2019-05-14 Tom Tromey <tromey@adacore.com>
8261 * solib.c (info_sharedlibrary_command): Style the file name.
8263 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8265 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8266 (aarch64_vnv_type): Likewise.
8267 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8268 * common/tdesc.c: Likewise.
8269 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8270 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8271 * features/aarch64-fpu.xml: Add ieee half view.
8272 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8273 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8274 * gdbtypes.h (struct builtin_type): Likewise.
8275 (struct objfile_type): Likewise.
8277 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8279 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8281 * location.h (string_to_event_location): Likewise.
8283 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8287 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8289 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8290 New variable declaration.
8291 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8293 (print_one_breakpoint): Use ui_out::test_flags and new global
8294 variable to compute use_fixed_output.
8295 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8297 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8298 (mi_multi_location_breakpoint_output_fixed): Remove.
8299 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8301 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8302 fix_multi_location_breakpoint_output flag if version >= 3.
8303 * ui-out.h (enum ui_out_flag)
8304 <fix_multi_location_breakpoint_output>: New enumerator.
8306 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8308 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8310 2019-05-10 Tom Tromey <tromey@adacore.com>
8312 * ada-lang.c (catch_ada_completer): New function.
8313 (_initialize_ada_language): Use it.
8315 2019-05-10 Tom Tromey <tromey@adacore.com>
8317 * thread.c (print_thread_info): Make "requested_threads" const.
8318 * gdbthread.h (print_thread_info): Make "requested_threads"
8320 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8321 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8323 2019-05-08 Tom Tromey <tom@tromey.com>
8325 * gdbtypes.c (objfile_type_data): Change type.
8326 (objfile_type, _initialize_gdbtypes): Update.
8328 2019-05-08 Tom Tromey <tom@tromey.com>
8330 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8331 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8332 (_initialize_dwarf2_frame): Update.
8334 2019-05-08 Tom Tromey <tom@tromey.com>
8336 * objc-lang.c (objc_objfile_data): Change type.
8337 (find_methods): Update.
8338 (_initialize_objc_lang): Remove.
8340 2019-05-08 Tom Tromey <tom@tromey.com>
8342 * stabsread.c (rs6000_builtin_type_data): Change type.
8343 (rs6000_builtin_type, _initialize_stabsread): Update.
8345 2019-05-08 Tom Tromey <tom@tromey.com>
8347 * mips-tdep.c (mips_pdr_data): Remove.
8348 (_initialize_mips_tdep): Update.
8350 2019-05-08 Tom Tromey <tom@tromey.com>
8352 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8353 (hppa_init_objfile_priv_data, read_unwind_info)
8354 (find_unwind_entry, _initialize_hppa_tdep): Update.
8356 2019-05-08 Tom Tromey <tom@tromey.com>
8358 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8359 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8361 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8363 2019-05-08 Tom Tromey <tom@tromey.com>
8365 * mdebugread.c (basic_type_data): Change type.
8366 (basic_type, _initialize_mdebugread): Update.
8368 2019-05-08 Tom Tromey <tom@tromey.com>
8370 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8372 2019-05-08 Tom Tromey <tom@tromey.com>
8374 * nto-tdep.c (nto_inferior_data_reg): Change type.
8375 (nto_inferior_data): Update.
8376 (nto_inferior_data_cleanup, nto_new_inferior_data)
8377 (_initialize_nto_tdep): Remove.
8378 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8380 2019-05-08 Tom Tromey <tom@tromey.com>
8382 * ada-lang.c (struct ada_inferior_data): Add initializers.
8383 (ada_inferior_data): Change type.
8384 (ada_inferior_data_cleanup): Remove.
8385 (get_ada_inferior_data, ada_inferior_exit)
8386 (struct ada_pspace_data): Add initializers, destructor.
8387 (ada_pspace_data_handle): Change type.
8388 (get_ada_pspace_data): Update.
8389 (ada_pspace_data_cleanup): Remove.
8391 2019-05-08 Tom Tromey <tom@tromey.com>
8393 * coffread.c (struct coff_symfile_info): Add initializers.
8394 (coff_objfile_data_key): Move lower. Change type.
8395 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8397 (coff_free_info): Remove.
8399 2019-05-08 Tom Tromey <tom@tromey.com>
8401 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8402 (fbsd_pspace_data_handle): Move lower. Change type.
8403 (get_fbsd_pspace_data): Update.
8404 (fbsd_pspace_data_cleanup): Remove.
8405 (_initialize_fbsd_tdep): Update.
8407 2019-05-08 Tom Tromey <tom@tromey.com>
8409 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8410 (get_ada_tasks_pspace_data): Update.
8411 (ada_tasks_pspace_data_cleanup): Remove.
8412 (_initialize_tasks): Update.
8413 (ada_tasks_inferior_data_handle): Change type.
8414 (get_ada_tasks_inferior_data): Update.
8415 (ada_tasks_inferior_data_cleanup): Remove.
8416 (struct ada_tasks_pspace_data): Add initializers.
8418 2019-05-08 Tom Tromey <tom@tromey.com>
8420 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8421 * symfile-debug.c (debug_sym_get_probes): Change type.
8422 * stap-probe.c (handle_stap_probe):
8423 (stap_static_probe_ops::get_probes): Change type.
8424 * probe.h (class static_probe_ops) <get_probes>: Change type.
8425 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8426 (parse_probes_in_pspace): Update.
8427 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8429 (any_static_probe_ops::get_probes): Change type.
8430 * elfread.c (elfread_data): New typedef.
8431 (probe_key): Change type.
8432 (elf_get_probes): Likewise. Update.
8433 (probe_key_free): Remove.
8434 (_initialize_elfread): Update.
8435 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8437 (dtrace_process_dof_probe, dtrace_process_dof)
8438 (dtrace_static_probe_ops::get_probe): Change type.
8440 2019-05-08 Tom Tromey <tom@tromey.com>
8442 * xcoffread.c (struct xcoff_symfile_info): Rename from
8443 coff_symfile_info. Add initializers.
8444 (xcoff_objfile_data_key): Move lower. Change type.
8445 (XCOFF_DATA): Rewrite.
8446 (xcoff_free_info): Remove.
8447 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8448 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8449 (xcoff_initial_scan): Update.
8451 2019-05-08 Tom Tromey <tom@tromey.com>
8453 * solib-svr4.c (struct svr4_info): Add initializers and
8455 <probes_table>: Now an htab_up.
8456 (solib_svr4_pspace_data): Change type.
8457 (free_probes_table): Simplify.
8458 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8459 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8460 (probes_table_remove_objfile_probes, register_solib_event_probe)
8461 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8462 (_initialize_svr4_solib): Update.
8464 2019-05-08 Tom Tromey <tom@tromey.com>
8466 * remote.c (remote_pspace_data): Change type.
8467 (remote_pspace_data_cleanup): Remove.
8468 (get_remote_exec_file, set_pspace_remote_exec_file)
8469 (_initialize_remote): Update.
8471 2019-05-08 Tom Tromey <tom@tromey.com>
8473 * breakpoint.c (breakpoint_objfile_key): Change type.
8474 (get_breakpoint_objfile_data): Update.
8475 (free_breakpoint_objfile_data): Remove.
8476 (_initialize_breakpoint): Update.
8478 2019-05-08 Tom Tromey <tom@tromey.com>
8480 * linux-tdep.c (struct linux_info): Add initializers.
8481 (linux_inferior_data): Move. Change type.
8482 (invalidate_linux_cache_inf): Update.
8483 (linux_inferior_data_cleanup): Remove.
8484 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8486 2019-05-08 Tom Tromey <tom@tromey.com>
8488 * auxv.c (auxv_inferior_data): Move. Change type.
8489 (auxv_inferior_data_cleanup): Remove.
8490 (invalidate_auxv_cache_inf): Rewrite.
8491 (get_auxv_inferior_data, _initialize_auxv): Update.
8493 2019-05-08 Tom Tromey <tom@tromey.com>
8495 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8496 (symfile_debug_objfile_data_key): Change type.
8497 (symfile_debug_installed, debug_qf_has_symbols)
8498 (debug_qf_find_last_source_symtab)
8499 (debug_qf_forget_cached_source_info)
8500 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8501 (debug_qf_print_stats, debug_qf_dump)
8502 (debug_qf_expand_symtabs_for_function)
8503 (debug_qf_expand_all_symtabs)
8504 (debug_qf_expand_symtabs_with_fullname)
8505 (debug_qf_map_matching_symbols)
8506 (debug_qf_expand_symtabs_matching)
8507 (debug_qf_find_pc_sect_compunit_symtab)
8508 (debug_qf_map_symbol_filenames)
8509 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8510 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8511 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8512 (debug_sym_read_linetable, debug_sym_relocate): Update.
8513 (symfile_debug_free_objfile): Remove.
8514 (install_symfile_debug_logging, _initialize_symfile_debug):
8517 2019-05-08 Tom Tromey <tom@tromey.com>
8519 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8520 allocate_on_obstack.
8521 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8522 (get_dwarf2_per_objfile): Update.
8523 (set_dwarf2_per_objfile): Remove.
8524 (dwarf2_has_info, dwarf2_get_section_info): Update.
8525 (dwarf2_free_objfile): Remove.
8526 (_initialize_dwarf2_read): Update.
8528 2019-05-08 Tom Tromey <tom@tromey.com>
8530 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8532 <unsupported_script_warning_printed,
8533 script_not_found_warning_printed>: Now bool.
8534 (auto_load_pspace_data): Change type.
8535 (~auto_load_pspace_info): Rename from
8536 auto_load_pspace_data_cleanup.
8537 (get_auto_load_pspace_data, init_loaded_scripts_info)
8538 (clear_section_scripts, maybe_print_unsupported_script_warning)
8539 (maybe_print_script_not_found_warning, _initialize_auto_load):
8542 2019-05-08 Tom Tromey <tom@tromey.com>
8544 * objfiles.c (objfile_pspace_info): Add destructor and
8546 (objfiles_pspace_data): Change type.
8547 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8548 (get_objfile_pspace_data): Update.
8549 (objfiles_bfd_data): Change type.
8550 (get_objfile_bfd_data): Update.
8551 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8553 2019-05-08 Tom Tromey <tom@tromey.com>
8555 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8557 (get_catch_syscall_inferior_data): Update.
8558 (catch_syscall_inferior_data_cleanup): Remove.
8559 (_initialize_break_catch_syscall): Update.
8561 2019-05-08 Tom Tromey <tom@tromey.com>
8563 * inflow.c (struct terminal_info): Add destructor and
8565 (inflow_inferior_data): Change type.
8566 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8567 (get_inflow_inferior_data, inflow_inferior_exit)
8568 (swap_terminal_info, _initialize_inflow): Update.
8570 2019-05-08 Tom Tromey <tom@tromey.com>
8572 * target-dcache.c (target_dcache_cleanup): Remove.
8573 (target_dcache_aspace_key): Change type.
8574 (target_dcache_init_p, target_dcache_invalidate)
8575 (target_dcache_get, target_dcache_get_or_init)
8576 (_initialize_target_dcache): Update.
8577 * dcache.h (struct dcache_deleter): New.
8579 2019-05-08 Tom Tromey <tom@tromey.com>
8581 * symtab.c (struct symbol_cache): Add destructor and
8583 (symbol_cache_key): Move. Change type.
8584 (make_symbol_cache, free_symbol_cache): Remove.
8585 (get_symbol_cache): Update.
8586 (symbol_cache_cleanup): Remove.
8587 (ALL_PSPACES, symbol_cache_flush)
8588 (maintenance_print_symbol_cache)
8589 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8592 2019-05-08 Tom Tromey <tom@tromey.com>
8594 * symtab.c (struct main_info): Add destructor and initializers.
8595 (main_progspace_key): Move. Change type.
8596 (get_main_info): Update.
8597 (main_info_cleanup): Remove.
8598 (_initialize_symtab): Update.
8600 2019-05-08 Tom Tromey <tom@tromey.com>
8602 * registry.h (DECLARE_REGISTRY): Define the _key class.
8604 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8606 * NEWS: Merge two 'New commands' sections.
8608 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8610 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8611 parameter and use Ada language definition instead.
8612 (ada_val_print_ptr): Remove unused language parameter.
8613 (ada_val_print_num): Remove language parameter and use Ada language
8615 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8617 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8618 parameter and use Ada language definition instead.
8619 (ada_val_print_1): Update all ada_val_print_xxx calls.
8620 Remove language parameter.
8621 (ada_val_print): Update ada_val_print_1 call.
8623 2019-05-08 Tom Tromey <tromey@adacore.com>
8625 * remote.c (remote_hw_watchpoint_limit)
8626 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8629 2019-05-08 Tom Tromey <tromey@adacore.com>
8631 * maint.c (_initialize_maint_cmds): Move initialization code to
8633 (watchdog, show_watchdog): Move to remote.c.
8634 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8636 (_initialize_remote): Move initialization code from maint.c.
8637 * defs.h (watchdog): Don't declare.
8639 2019-05-08 Tom Tromey <tromey@adacore.com>
8641 * tui/tui-interp.c: Include main.h.
8642 * interps.c: Include main.h.
8643 * main.h (interpreter_p): Declare.
8644 * defs.h (interpreter_p): Don't declare.
8646 2019-05-08 Tom Tromey <tromey@adacore.com>
8648 * dwarf2loc.c: Include dwarf2read.h.
8649 * defs.h (read_unsigned_leb128): Don't declare.
8650 * dwarf2read.h (read_unsigned_leb128): Declare.
8652 2019-05-08 Tom Tromey <tromey@adacore.com>
8654 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8657 2019-05-08 Tom Tromey <tromey@adacore.com>
8659 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8660 when no wrap column is set.
8662 2019-05-08 Tom Tromey <tromey@adacore.com>
8664 * c-lang.c (c_get_string): Handle non-C-style arrays.
8666 2019-05-08 Tom Tromey <tromey@adacore.com>
8668 * typeprint.c (print_offset_data::update): Print the bit offset,
8669 not the number of bits remaining.
8671 2019-05-08 Tom Tromey <tromey@adacore.com>
8673 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8674 padding at end of comment.
8676 2019-05-08 Tom Tromey <tromey@adacore.com>
8678 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8681 2019-05-06 Tom Tromey <tom@tromey.com>
8683 * common/scoped_mmap.c: Include common-defs.h.
8684 * common/scoped_mmap.h: Don't include config.h.
8686 2019-05-04 Tom Tromey <tom@tromey.com>
8688 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8689 (struct aarch64_call_info): Add initializers.
8690 <si>: Now a std::vector.
8691 (pass_on_stack, aarch64_push_dummy_call): Update.
8693 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8694 Tom Tromey <tom@tromey.com>
8696 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8697 (ppc_threads): Now a std::vector. Now static.
8698 (hwdebug_find_thread_points_by_tid)
8699 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8702 2019-05-04 Tom Tromey <tom@tromey.com>
8704 * arc-tdep.c (arc_tdesc_init): Return bool.
8706 2019-05-04 Tom Tromey <tom@tromey.com>
8708 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8709 Use gdb_assert_not_reached.
8711 2019-05-04 Tom Tromey <tom@tromey.com>
8713 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8716 2019-05-04 Tom Tromey <tom@tromey.com>
8718 * arc-tdep.c (arc_tdesc_init): Use bool.
8720 2019-05-04 Tom Tromey <tom@tromey.com>
8722 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8724 2019-05-04 Tom Tromey <tom@tromey.com>
8726 * cli/cli-cmds.c (valid_command_p): Return bool.
8728 2019-05-04 Tom Tromey <tom@tromey.com>
8730 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8731 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8733 2019-05-04 Raul Tambre <raul@tambre.ee>
8735 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8736 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8737 operator for comparison.
8739 2019-05-04 Tom Tromey <tom@tromey.com>
8741 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8742 (lookup_partial_symbol, print_partial_symbols)
8743 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8744 (psymbol_compare): Update.
8745 (add_psymbol_to_bcache): Clear the entire psymbol.
8746 (maintenance_check_psymtabs): Update.
8747 * psympriv.h (struct partial_symbol): Don't derive from
8748 general_symbol_info.
8749 <obj_section, unrelocated_address, address,
8750 set_unrelocated_address>: Update.
8751 <ginfo>: New member.
8752 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8753 (debug_names::write_psymbols): Update.
8755 2019-05-04 Tom de Vries <tdevries@suse.de>
8757 * contrib/cc-with-tweaks.sh: Support -n arg.
8759 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8761 * corelow.c (core_target::detach): Ensure frame cache and
8762 register caches are cleared.
8763 inferior.c (exit_inferior_1): Likewise.
8765 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8766 Tom Tromey <tom@tromey.com>
8768 * dictionary.c (collate_pending_symbols_by_language): Remove
8769 "struct" from foreach.
8770 * symtab.c (lookup_global_symbol_from_objfile)
8771 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8773 * ser-tcp.c (net_open): Remove "struct" from foreach.
8774 * objfiles.c (objfile_relocate, objfile_rebase)
8775 (objfile_has_symbols): Remove "struct" from foreach.
8776 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8778 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8780 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8781 "struct" from foreach.
8782 * ada-lang.c (create_excep_cond_exprs)
8783 (ada_exception_catchpoint_cond_string): Remove "struct" from
8786 2019-05-03 Tom Tromey <tromey@adacore.com>
8788 * ada-exp.y (convert_char_literal): Check suffix of each
8791 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8794 * ada-exp.y (yywrap): Don't define.
8795 * ada-lex.l (%option): Add noyywrap
8798 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8800 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8801 _WIN32_WINNT to the XP level, unless already defined to a higher
8804 * unittests/parse-connection-spec-selftests.c:
8806 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8809 * symfile.c (find_separate_debug_file): Remove colon from the
8810 drive spec of DOS/Windows file names of the target, so that the
8811 file name produced from DEBUGDIR and the target's directory will
8812 be valid on DOS/Windows systems.
8814 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8816 * rust-lang.c (val_print_struct): Handle printing structures
8819 2019-05-02 Tom Tromey <tromey@adacore.com>
8821 * valarith.c (_initialize_valarith): Remove.
8823 2019-05-01 Tom Tromey <tromey@adacore.com>
8825 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8828 2019-05-01 Tom Tromey <tromey@adacore.com>
8830 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8831 for big-endian copies.
8833 2019-04-30 Ali Tamur <tamur@google.com>
8834 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8835 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8836 (read_3_bytes): New function.
8838 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8840 * windows-nat.c (main_thread_id): Delete.
8841 (handle_output_debug_string): Replace main_thread_id by
8842 current_event.dwThreadId.
8843 (fake_create_process): Likewise.
8844 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8845 Do not set main_thread_id.
8846 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8847 current_event.dwThreadId.
8848 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8850 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8852 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8853 Use current_event.dwThreadId instead of main_thread_id.
8855 2019-04-30 Tom Tromey <tromey@adacore.com>
8857 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8858 (create_excep_cond_exprs): Iterate over program spaces.
8859 (ada_exception_catchpoint_cond_string): Examine all minimal
8860 symbols for exception types.
8862 2019-04-30 Tom Tromey <tromey@adacore.com>
8865 * dwarf2read.c (process_structure_scope): Handle case where type
8866 has template parameters but no symbol was created.
8868 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8869 Chris January <chris.january@arm.com>
8871 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8873 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8875 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8877 * f-typeprint.c (f_print_type): Update rules for printing
8879 (f_type_print_varspec_suffix): Likewise.
8881 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8882 Chris January <chris.january@arm.com>
8884 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8887 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8889 * f-lang.c (build_fortran_types): Change name of void type to
8891 * f-typeprint.c (f_type_print_base): Print the name of the void
8892 type, rather than a fixed string.
8893 * f-valprint.c (f_decorations): Use lower case void string.
8895 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8896 Chris January <chris.january@arm.com>
8898 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8901 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8902 Chris January <chris.january@arm.com>
8903 David Lecomber <david.lecomber@arm.com>
8905 * f-exp.y (BINOP_INTRINSIC): New token.
8906 (exp): New parser rule handling BINOP_INTRINSIC.
8907 (f77_keywords): Add new builtin procedures.
8908 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8909 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8910 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8911 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8912 (print_unop_subexp_f): New function.
8913 (print_binop_subexp_f): New function.
8914 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8915 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8916 (dump_subexp_body_f): Likewise.
8917 (operator_check_f): Likewise.
8918 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8919 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8921 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8923 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8925 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8926 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8927 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8928 (operator_length_f): New fuction.
8929 (print_subexp_f): New function.
8930 (op_name_f): New function.
8931 (dump_subexp_body_f): New function.
8932 (operator_check_f): New function.
8933 (exp_descriptor_f): Replace standard expression handling functions
8935 * gdb/fortran-operator.def: New file.
8936 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8937 * gdb/std-operator.def: Remove UNOP_KIND.
8939 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8941 * std-operator.def: Remove unbalanced, stray double quote
8944 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8945 Chris January <chris.january@arm.com>
8946 Daniel Everett <daniel.everett@arm.com>
8947 Nick Forrington <nick.forrington@arm.com>
8948 Richard Bunt <richard.bunt@arm.com>
8950 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8951 of depth when printing anonymous structs or unions.
8952 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8953 Don't print either the top-level value, or the children if the
8954 max-depth is exceeded.
8955 (ppscm_print_children): When printing the key of a map, allow one
8956 extra level of depth.
8957 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8958 print either the top-level value, or the children if the max-depth
8960 (print_children): When printing the key of a map, allow one extra
8962 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8963 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8964 (user_print_options): Initialise max_depth field.
8965 (val_print_scalar_or_string_type_p): New function.
8966 (val_print): Check to see if the max depth has been reached.
8967 (val_print_check_max_depth): Define new function.
8968 (show_print_max_depth): New function.
8969 (_initialize_valprint): Add 'print max-depth' option.
8970 * valprint.h (struct value_print_options) <max_depth>: New field.
8971 (val_print_check_max_depth): Declare new function.
8972 * NEWS: Document new feature.
8974 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8976 * ada-lang.c (ada_language_defn): Initialise new field.
8977 * c-lang.c (c_is_string_type_p): New function.
8978 (c_language_defn): Initialise new field.
8979 (cplus_language_defn): Initialise new field.
8980 (asm_language_defn): Initialise new field.
8981 (minimal_language_defn): Initialise new field.
8982 * c-lang.h (c_is_string_type_p): Declare new function.
8983 * d-lang.c (d_language_defn): Initialise new field.
8984 * f-lang.c (f_is_string_type_p): New function.
8985 (f_language_defn): Initialise new field.
8986 * go-lang.c (go_is_string_type_p): New function.
8987 (go_language_defn): Initialise new field.
8988 * language.c (default_is_string_type_p): New function.
8989 (unknown_language_defn): Initialise new field.
8990 (auto_language_defn): Initialise new field.
8991 * language.h (struct language_defn) <la_is_string_type_p>: New
8993 (default_is_string_type_p): Declare new function.
8994 * m2-lang.c (m2_language_defn): Initialise new field.
8995 * objc-lang.c (objc_language_defn): Initialise new field.
8996 * opencl-lang.c (opencl_language_defn): Initialise new field.
8997 * p-lang.c (pascal_is_string_type_p): New function.
8998 (pascal_language_defn): Initialise new field.
8999 * rust-lang.c (rust_is_string_type_p): New function.
9000 (rust_language_defn): Initialise new field.
9002 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9004 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9006 * ada-lang.c (ada_language_defn): Initialise new field.
9007 * c-lang.c (c_language_defn): Likewise.
9008 (cplus_language_defn): Likewise.
9009 (asm_language_defn): Likewise.
9010 (minimal_language_defn): Likewise.
9011 * d-lang.c (d_language_defn): Likewise.
9012 * f-lang.c (f_language_defn): Likewise.
9013 * go-lang.c (go_language_defn): Likewise.
9014 * language.c (unknown_language_defn): Likewise.
9015 (auto_language_defn): Likewise.
9016 * m2-lang.c (m2_language_defn): Likewise.
9017 * objc-lang.c (objc_language_defn): Likewise.
9018 * opencl-lang.c (opencl_language_defn): Likewise.
9019 * p-lang.c (pascal_language_defn): Likewise.
9020 * rust-lang.c (rust_language_defn): Likewise.
9022 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9024 * ada-lang.c (ada_is_character_type): Change return type to bool.
9025 (ada_is_string_type): Likewise.
9026 * ada-lang.h (ada_is_character_type): Update declaration
9027 (ada_is_string_type): Likewise.
9029 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9031 Support style in 'frame|thread apply'
9033 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9034 * record.c (record_start, record_stop): Update callers of
9035 execute_command_to_string with false.
9036 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9037 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9039 (class string_file): New constructor with term_out parameter.
9040 Override methods term_out and can_emit_style_escape. New member
9042 (class stdio_file): Override can_emit_style_escape.
9043 (class tee_file): Override term_out and can_emit_style_escape.
9044 * utils.h (can_emit_style_escape): Remove.
9045 * utils.c (can_emit_style_escape): Likewise.
9046 Update all callers of can_emit_style_escape (SOMESTREAM) to
9047 SOMESTREAM->can_emit_style_escape.
9048 * source-cache.c (source_cache::get_source_lines): Likewise.
9049 * stack.c (frame_apply_command_count): Call execute_command_to_string
9050 passing the term_out characteristic of the current gdb_stdout.
9051 * thread.c (thr_try_catch_cmd): Likewise.
9052 * top.c (execute_command_to_string): pass term_out parameter
9053 to construct the string_file for the command output.
9054 * ui-file.c (term_cli_styling): New function (most code moved
9055 from utils.c can_emit_style_escape).
9056 (string_file::string_file, string_file::can_emit_style_escape,
9057 stdio_file::can_emit_style_escape, tee_file::term_out,
9058 tee_file::can_emit_style_escape): New functions.
9060 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9062 * NEWS: Mention the new set|show may-call-functions.
9063 * infcall.c (may_call_functions_p): New variable.
9064 (show_may_call_functions_p): New function.
9065 (call_function_by_hand_dummy): Throws an error if not
9067 (_initialize_infcall): Call add_setshow_boolean_cmd for
9070 2019-04-25 Keith Seitz <keiths@redhat.com>
9073 * cp-support.c (inspect_type): Don't attempt substitutions
9074 of symbol with the same name.
9076 2019-04-25 Tom Tromey <tromey@adacore.com>
9079 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9082 2019-04-25 Tom Tromey <tromey@adacore.com>
9084 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9086 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9087 (gdb_xml_parser::parse): Use std::move.
9088 * python/python-internal.h (gdbpy_convert_exception): Take a const
9090 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9092 * python/py-utils.c (gdbpy_convert_exception): Take a const
9094 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9096 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9098 * mi/mi-main.c (mi_print_exception): Take a const reference.
9099 * main.c (handle_command_errors): Take a const reference.
9100 * linespec.c (parse_linespec): Use std::move.
9101 * infcall.c (run_inferior_call): Use std::move.
9102 (call_function_by_hand_dummy): Use std::move.
9103 * exec.c (try_open_exec_file): Use std::move.
9104 * exceptions.h (exception_print, exception_fprintf)
9105 (exception_print_same): Update.
9106 * exceptions.c (print_exception, exception_print)
9107 (exception_fprintf, exception_print_same): Change parameters to
9109 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9110 * common/new-op.c: Use std::move.
9111 * common/common-exceptions.h (struct gdb_exception): Add move
9113 (struct gdb_exception_error, struct gdb_exception_quit, struct
9114 gdb_quit_bad_alloc): Change constructor to move constructor.
9115 (throw_exception): Change parameter to rvalue reference.
9116 * common/common-exceptions.c (throw_exception): Take rvalue
9118 * cli/cli-interp.c (safe_execute_command): Use std::move.
9119 * breakpoint.c (insert_bp_location, location_to_sals): Use
9122 2019-04-25 Tom Tromey <tromey@adacore.com>
9124 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9125 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9126 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9127 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9128 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9129 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9130 guile/scm-value.c: Use unpack.
9131 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9132 gdbscm_gdb_exception.
9133 (gdbscm_throw_gdb_exception): Likewise.
9134 (struct gdbscm_gdb_exception): New.
9135 (unpack): New function.
9136 (gdbscm_wrap): Use unpack.
9138 2019-04-25 Tom Tromey <tromey@adacore.com>
9140 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9141 (gdb_rl_callback_handler): Use std::move.
9142 * common/common-exceptions.h (struct gdb_exception): Add move
9143 assignment operator.
9144 (throw_exception_sjlj): Change "exception" to const reference.
9145 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9146 (throw_exception_sjlj): Change "exception" to const reference.
9148 2019-04-25 Tom Tromey <tromey@adacore.com>
9150 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9151 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9152 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9154 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9156 * mi/mi-interp.c (mi_interp::exec): Update.
9157 * linespec.c (parse_linespec): Update.
9158 * infcall.c (run_inferior_call): Update.
9159 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9160 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9161 (gdbscm_lookup_global_symbol): Update.
9162 * guile/scm-param.c (gdbscm_parameter_value): Update.
9163 * guile/scm-frame.c (gdbscm_frame_read_register)
9164 (gdbscm_frame_read_var): Update.
9165 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9166 * exec.c (try_open_exec_file): Update.
9167 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9168 (gdb_rl_callback_handler): Update.
9169 * common/common-exceptions.h (exception_none): Don't declare.
9170 * common/common-exceptions.c (exception_none): Don't define.
9171 (struct catcher) <exception>: Update.
9172 * cli/cli-interp.c (safe_execute_command): Update.
9173 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9175 2019-04-25 Ali Tamur <tamur@google.com>
9177 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9178 (read_attribute_value): Likewise.
9179 (dwarf2_read_addr_index): Update comment.
9180 (read_str_index): Add DW_FORM_strx.
9181 (dwarf2_string_attr): Likewise.
9182 (dwarf2_const_value_attr): Likewise.
9183 (dump_die_shallow): Likewise.
9184 (dwarf2_fetch_constant_bytes): Likewise.
9185 (skip_form_bytes): Likewise.
9186 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9188 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9192 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9193 OFFSET. Verify if current mapping contains an ELF header.
9194 (linux_find_memory_regions_full): Adjust call to
9197 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9198 Kang Li <kanglictf@gmail.com>
9202 * dwarf2-frame.c (read_initial_length): Be consistent about using
9203 unsigned representation of length.
9204 (decode_frame_entry_1): Likewise. Check for wraparound of
9205 end pointer as well as buffer overflow.
9207 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9209 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9212 2019-04-24 Tom Tromey <tromey@adacore.com>
9214 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9216 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9218 * s12z-tdep.c (s12z_unwind_pc): Delete.
9219 (s12z_unwind_sp): Delete.
9220 (s12z_gdbarch_init): Don't register deleted functions with
9223 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9225 * rl78-tdep.c (rl78_unwind_sp): Delete.
9226 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9228 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9230 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9231 (xstormy16_unwind_pc): Delete.
9232 (xstormy16_dummy_id): Delete.
9233 (xstormy16_gdbarch_init): Don't register deleted functions with
9236 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9238 * vax-tdep.c (vax_unwind_pc): Delete.
9239 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9241 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9243 * v850-tdep.c (v850_unwind_sp): Delete.
9244 (v850_unwind_pc): Delete.
9245 (v850_dummy_id): Delete.
9246 (v850_gdbarch_init): Don't register deleted functions with
9249 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9251 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9252 (tilegx_unwind_pc): Delete.
9253 (tilegx_unwind_dummy_id): Delete.
9254 (tilegx_gdbarch_init): Don't register deleted functions with
9257 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9259 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9260 (tic6x_dummy_id): Delete.
9261 (tic6x_gdbarch_init): Don't register deleted functions with
9264 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9266 * sparc-tdep.c (sparc_unwind_pc): Delete.
9267 (sparc32_gdbarch_init): Don't register deleted function with
9270 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9272 * sh-tdep.c (sh_unwind_sp): Delete.
9273 (sh_unwind_pc): Delete.
9274 (sh_dummy_id): Delete.
9275 (sh_gdbarch_init): Don't register deleted functions with
9278 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9280 * score-tdep.c (score_unwind_sp): Delete.
9281 (score_unwind_pc): Delete.
9282 (score_dummy_id): Delete.
9283 (score_gdbarch_init): Don't register deleted functions with
9286 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9288 * rx-tdep.c (rx_unwind_pc): Delete.
9289 (rx_unwind_sp): Delete.
9290 (rx_dummy_id): Delete.
9291 (rx_gdbarch_init): Don't register deleted functions with
9292 gdbarch. Update comment.
9294 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9296 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9297 (rs6000_dummy_id): Delete.
9298 (rs6000_gdbarch_init): Don't register deleted functions with
9301 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9303 * or1k-tdep.c (or1k_dummy_id): Delete.
9304 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9306 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9308 * nios2-tdep.c (nios2_dummy_id): Delete.
9309 (nios2_unwind_sp): Delete.
9310 (nios2_gdbarch_init): Don't register deleted functions with
9313 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9315 * nds32-tdep.c (nds32_dummy_id): Delete.
9316 (nds32_unwind_pc): Delete.
9317 (nds32_unwind_sp): Delete.
9318 (nds32_gdbarch_init): Don't register deleted functions with
9321 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9323 * msp430-tdep.c (msp430_unwind_pc): Delete.
9324 (msp430_unwind_sp): Delete.
9325 (msp430_dummy_id): Delete.
9326 (msp430_gdbarch_init): Don't register deleted functions with
9329 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9331 * moxie-tdep.c (moxie_unwind_sp): Delete.
9332 (moxie_unwind_pc): Delete.
9333 (moxie_dummy_id): Delete.
9334 (moxie_gdbarch_init): Don't register deleted functions with
9337 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9339 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9340 (mn10300_unwind_pc): Delete.
9341 (mn10300_unwind_sp): Delete.
9342 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9344 (mn10300_frame_unwind_init): Don't register deleted functions with
9347 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9349 * mep-tdep.c (mep_unwind_pc): Delete.
9350 (mep_unwind_sp): Delete.
9351 (mep_dummy_id): Delete.
9352 (mep_gdbarch_init): Don't register deleted functions with
9355 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9357 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9358 (m68hc11_unwind_sp): Delete.
9359 (m68hc11_gdbarch_init): Don't register deleted functions with
9362 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9364 * m32r-tdep.c (m32r_unwind_sp): Delete.
9365 (m32r_unwind_pc): Delete.
9366 (m32r_dummy_id): Delete.
9367 (m32r_gdbarch_init): Don't register deleted functions with
9370 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9372 * m32c-tdep.c (m32c_unwind_pc): Delete.
9373 (m32c_unwind_sp): Delete.
9374 (m32c_dummy_id): Delete.
9375 (m32c_gdbarch_init): Don't register deleted functions with
9378 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9380 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9381 (lm32_unwind_pc): Delete.
9382 (lm32_dummy_id): Delete.
9383 (lm32_gdbarch_init): Don't register deleted functions with
9386 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9388 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9389 (iq2000_unwind_pc): Delete.
9390 (iq2000_dummy_id): Delete.
9391 (iq2000_gdbarch_init): Don't register deleted functions with
9394 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9396 * nds32-tdep.c (nds32_type_align): Delete.
9397 (nds32_push_dummy_call): Use type_align instead.
9399 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9401 * arm-tdep.c (arm_type_align): Only handle vector override case.
9402 (arm_push_dummy_call): Use type_align.
9403 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9405 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9407 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9409 (pass_on_stack): Use type_align.
9410 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9413 2019-04-23 Tom Tromey <tromey@adacore.com>
9415 * dwarf2read.c (line_header::file_name_at): Remove unused
9418 2019-04-23 Tom de Vries <tdevries@suse.de>
9421 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9425 2019-03-27 Ali Tamur <tamur@google.com>
9427 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9428 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9429 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9430 (dwarf_expr_context::get_addr_index): Likewise
9431 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9432 (symbol_needs_eval_context::get_addr_index): Likewise
9433 (disassemble_dwarf_expression): Add DW_OP_addrx
9434 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9435 (read_cutu_die_from_dwo): Update comment
9436 (skip_one_die): Add DW_FORM_addrx
9437 (read_attribute_value): Likewise
9438 (var_decode_location): Add DW_OP_addrx
9439 (dwarf2_const_value_attr): Add DW_FORM_addrx
9440 (dump_die_shallow): Likewise
9441 (dwarf2_fetch_constant_bytes): Likewise
9442 (decode_locdesc): Add DW_OP_addrx
9443 (skip_form_bytes): Add DW_FORM_addrx
9445 2019-04-22 Ali Tamur <tamur@google.com>
9447 * MAINTAINERS (Write After Approval): Add self.
9449 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9451 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9452 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9453 (open_symbol_file_object): Likewise.
9454 (svr4_default_sos): Add info parameter.
9455 (svr4_read_so_list): Likewise.
9456 (svr4_current_sos_direct): Adjust functions calls to pass down
9458 (svr4_current_sos_1): Add info parameter.
9459 (svr4_current_sos): Call get_svr4_info, pass info down to
9461 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9463 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9465 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9467 (probes_table_remove_objfile_probes): Likewise.
9468 (register_solib_event_probe): Add info parameter.
9469 (solist_update_incremental): Pass info parameter down to
9471 (disable_probes_interface): Add info parameter.
9472 (svr4_handle_solib_event): Pass current_program_space to
9473 get_svr4_info. Adjust disable_probes_interface cleanup.
9474 (svr4_create_probe_breakpoints): Add info parameter, pass it
9475 down to register_solib_event_probe.
9476 (svr4_create_solib_event_breakpoints): Add info parameter,
9477 pass it down to svr4_create_probe_breakpoints.
9478 (enable_break): Pass info down to
9479 svr4_create_solib_event_breakpoints.
9480 (svr4_solib_create_inferior_hook): Pass current_program_space to
9482 (svr4_clear_solib): Likewise.
9484 2019-04-22 Pedro Alves <palves@redhat.com>
9486 * solib-svr4.c (svr4_free_objfile_observer): New.
9487 (probe_and_action::objfile): New field.
9488 (probes_table_htab_remove_objfile_probes)
9489 (probes_table_remove_objfile_probes): New functions.
9490 (register_solib_event_probe): Add 'objfile' parameter. Store it
9491 in the new probe_and_action. Don't store the probe in 'lookup'.
9492 (svr4_create_probe_breakpoints): Pass objfile to
9493 register_solib_event_probe.
9494 (_initialize_svr4_solib): Register a free_objfile observer.
9496 2019-04-19 Tom Tromey <tom@tromey.com>
9498 * common/queue.h: Remove.
9500 2019-04-19 Tom Tromey <tom@tromey.com>
9502 * event-loop.c: Don't include "common/queue.h".
9504 2019-04-19 Tom Tromey <tom@tromey.com>
9506 * remote.c (remote_target): Use delete.
9507 * remote-notif.h: Include <list>, not "common/queue.h".
9508 (notif_client_p): Remove typedef.
9509 (remote_notif_state): Add constructor, destructor, initializer.
9510 <notif_queue>: Now a std::list.
9511 (remote_notif_state_xfree): Don't declare.
9512 * remote-notif.c (remote_notif_process, handle_notification)
9513 (remote_notif_state_allocate): Update.
9514 (~remote_notif_state): Rename from remote_notif_state_xfree.
9516 2019-04-19 Tom Tromey <tom@tromey.com>
9518 * symfile.c (reread_symbols): Update.
9519 * objfiles.c (objfile_register_static_link)
9520 (objfile_lookup_static_link): Update
9521 (~objfile) Don't delete static_links.
9522 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9524 2019-04-19 Tom Tromey <tom@tromey.com>
9526 * type-stack.h (struct type_stack) <insert>: Constify string.
9527 * type-stack.c (type_stack::insert): Constify string.
9528 * gdbtypes.h (lookup_template_type): Update.
9529 (address_space_name_to_int): Update.
9530 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9532 (lookup_template_type): Make name const.
9533 * c-exp.y: Update rules.
9534 (lex_one_token, classify_name, classify_inner_name)
9535 (c_print_token): Update.
9536 * p-exp.y: Update rules.
9538 * f-exp.y: Update rules.
9540 * d-exp.y: Update rules.
9541 (lex_one_token, classify_name, classify_inner_name): Update.
9542 * parse.c (write_dollar_variable, copy_name): Return std::string.
9543 * parser-defs.h (copy_name): Change return type.
9544 * m2-exp.y: Update rules.
9546 * go-exp.y (lex_one_token): Update.
9548 (classify_unsafe_function, classify_packaged_name)
9549 (classify_name, yylex): Update.
9551 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9553 * configure.ac: add --enable-source-highlight switch.
9554 * configure: Regenerate.
9555 * top.c (print_gdb_version): plumb --enable-source-highlight
9556 status to "show configuration".
9558 2019-04-19 Tom Tromey <tromey@adacore.com>
9560 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9562 (empty_record, ada_template_to_fixed_record_type_1)
9563 (template_to_static_fixed_type)
9564 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9565 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9566 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9569 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9572 * source.c (print_source_lines_base): Advance "iter" when a
9573 control character is seen.
9575 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9577 * inferior.h (struct infcall_suspend_state_deleter):
9578 Catch exception in destructor to avoid crash.
9580 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9582 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9583 close to the add_com "shell".
9585 2019-04-18 Tom Tromey <tromey@adacore.com>
9587 * process-stratum-target.h (class process_stratum_target)
9588 <stratum>: Add "final".
9590 2019-04-17 Tom Tromey <tromey@adacore.com>
9592 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9593 against nullptr before use.
9595 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9597 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9599 2019-04-17 Jim Wilson <jimw@sifive.com>
9600 Andrew Burgess <andrew.burgess@embecosm.com>
9602 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9603 code read might fail, assume 4-byte breakpoint in that case.
9605 2019-04-15 Leszek Swirski <leszeks@google.com>
9607 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9608 rather than a hand-rolled POD check when checking for forced MEMORY
9611 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9613 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9614 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9616 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9617 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9618 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9621 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9623 * aarch64-linux-nat.c
9624 (aarch64_linux_nat_target::thread_architecture): Add override.
9625 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9628 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9630 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9632 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9634 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9635 target types of size 96-bits, add some additional comments, and
9636 check that the builtin type we found was the correct size.
9638 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9640 * utils.c (prompt_for_continue): Don't restore the styling at the
9641 end, as applied_style has the wrong value. This fixes styling in
9642 long lists of file names that are interrupted by the "Continue?"
9645 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9647 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9648 * c-lang.c (c_language_defn): Likewise.
9649 (cplus_language_defn): Likewise.
9650 (asm_language_defn): Likewise.
9651 (minimal_language_defn): Likewise.
9652 * d-lang.c (d_language_defn): Likewise.
9653 * f-lang.c (f_language_defn): Likewise.
9654 * go-lang.c (go_language_defn): Likewise.
9655 * language.c (unknown_language_defn): Likewise.
9656 (auto_language_defn): Likewise.
9657 * language.h (struct language_defn): Remove la_magic field.
9658 (LANG_MAGIC): Delete.
9659 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9660 * objc-lang.c (objc_language_defn): Likewise.
9661 * opencl-lang.c (opencl_language_defn): Likewise.
9662 * p-lang.c (pascal_language_defn): Likewise.
9663 * rust-lang.c (rust_language_defn): Likewise.
9665 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9667 * riscv-tdep.c (riscv_type_align): New function.
9668 (riscv_type_alignment): Delete.
9669 (riscv_arg_location): Use 'type_align'.
9670 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9672 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9674 * gdbtypes.c (type_align): A struct with no non-static fields also
9677 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9679 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9681 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9683 (riscv_struct_info::analyse): New implementation using new
9684 analyse_inner member function.
9685 (riscv_struct_info::field_offset): New member function.
9686 (riscv_struct_info::m_offsets): New member variable.
9687 (riscv_struct_info::analyse_inner): New private member function,
9688 takes the old implementation of riscv_struct_info::analyse but
9689 extended to track field offsets.
9690 (riscv_call_arg_struct): Update the struct folding special cases
9691 to handle cases where empty C++ structs, which are non-zero
9693 (riscv_arg_location): Initialise the length of each location, a
9694 non-zero length now indicates the location is in use.
9695 (riscv_push_dummy_call): Allow for the first location having a
9696 non-zero offset when setting up arguments.
9697 (riscv_return_value): Likewise, but for return values.
9699 2019-04-11 Tom Tromey <tromey@adacore.com>
9701 * utils.c (internal_vproblem): Make "msg" const.
9703 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9705 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9706 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9707 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9708 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9710 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9712 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9714 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9715 of amd64_collect_native_gregset.
9716 (amd64_linux_nat_target::store_registers): Likewise.
9718 2019-04-10 Tom Tromey <tom@tromey.com>
9720 * symtab.c (lookup_global_symbol_from_objfile)
9721 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9722 * objfiles.h (class separate_debug_iterator): New.
9723 (class separate_debug_range): New.
9724 (struct objfile) <separate_debug_objfiles>: New method.
9725 (objfile_separate_debug_iterate): Don't declare.
9726 * objfiles.c (separate_debug_iterator::operator++): Rename from
9727 objfile_separate_debug_iterate.
9728 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9730 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9733 2019-04-10 Tom Tromey <tom@tromey.com>
9735 * symfile.c (reread_symbols): Remove old comment.
9736 * objfiles.c (free_all_objfiles): Fix a typo.
9738 2019-04-10 Tom Tromey <tom@tromey.com>
9740 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9741 * minsyms.c (lookup_minimal_symbol): Use foreach.
9742 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9743 (lookup_minimal_symbol_solib_trampoline): Likewise.
9744 * symfile.c (reread_symbols): Use foreach.
9746 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9747 Tom Tromey <tromey@adacore.com>
9750 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9751 (rust_lex_int_test): Change "value" to be LONGEST.
9752 (rust_lex_tests): Add test for long integer literal.
9754 2019-04-09 Tom Tromey <tromey@adacore.com>
9756 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9758 (extended_remote_target::attach): Update.
9759 (remote_target::remote_notice_new_inferior): Update.
9760 (remote_target::add_current_inferior_and_thread): Update.
9761 * inferior.c (exit_inferior_1): Use "false".
9762 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9764 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9766 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9767 the "start" command.
9769 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9771 * python/py-inferior.c (infpy_thread_from_thread_handle):
9772 Adjust comments to reflect renaming of thread_from_thread_handle
9773 to thread_from_handle. Adjust keywords. Fix type error message.
9774 (inferior_object_methods): Add thread_from_handle. Retain
9775 thread_from_thread_handle, but mark it as deprecated.
9777 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9779 * gdbthread.h (find_thread_by_handle): Revise declaration.
9780 * thread.c (find_thread_by_handle): Likewise. Adjust
9782 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9783 support for buffer objects as handles.
9785 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9787 * python/py-infthread.c (thpy_thread_handle): New function.
9788 (thread_object_methods): Register thpy_thread_handle.
9790 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9792 * gdbthread.h (thread_to_thread_handle): Declare.
9793 * thread.c (gdbtypes.h): Include.
9794 (thread_to_thread_handle): New function.
9796 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9797 (target_thread_info_to_thread_handle): Declare.
9798 * target.c (target_thread_info_to_thread_handle): New function.
9799 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9800 * target-delegates.c: Regenerate.
9802 * linux-thread-db.c (class thread_db_target): Add method
9803 thread_info_to_thread_handle.
9804 (thread_db_target::thread_info_to_thread_handle): Define.
9805 * remote.c (class remote_target): Add new method
9806 thread_info_to_thread_handle.
9807 (remote_target::thread_info_to_thread_handle): Define.
9809 2019-04-08 Pedro Alves <palves@redhat.com>
9811 * common/common-exceptions.c (throw_exception): Don't create
9812 named object to throw; throw directly.
9813 (throw_it): Likewise. Don't initialize gdb_exception::message
9814 here, with new; pass FMT and AP to the ctor instead.
9815 * common/common-exceptions.h: Include <string>.
9816 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9817 const char *, va_list)): New ctor. Use std::make_shared.
9818 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9820 (gdb_exception_error::gdb_exception_error(enum errors, const char
9822 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9824 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9826 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9827 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9830 2019-04-08 Tom Tromey <tom@tromey.com>
9832 * valops.c (value_rtti_indirect_type): Replace throw_exception
9834 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9836 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9838 * target.c (target_translate_tls_address): Replace throw_exception
9840 * stack.c (frame_apply_command_count): Replace throw_exception
9842 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9844 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9846 * rs6000-tdep.c (rs6000_frame_cache)
9847 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9848 * remote.c: Replace throw_exception with throw.
9849 * record-full.c (record_full_message, record_full_wait_1)
9850 (record_full_restore): Replace throw_exception with throw.
9852 (get_thread_current_frame_id, record_btrace_start_replaying)
9853 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9854 (cmd_record_btrace_start): Replace throw_exception with throw.
9855 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9857 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9858 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9860 (find_linespec_symbols): Replace throw_exception with throw.
9861 * infrun.c (displaced_step_prepare, resume): Replace
9862 throw_exception with throw.
9863 * infcmd.c (post_create_inferior): Replace throw_exception with
9865 * inf-loop.c (inferior_event_handler): Replace throw_exception
9867 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9868 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9869 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9870 (get_prev_frame_always, get_frame_pc_if_available)
9871 (get_frame_address_in_block_if_available, get_frame_language):
9872 Replace throw_exception with throw.
9873 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9874 throw_exception with throw.
9875 * eval.c (fetch_subexp_value, evaluate_var_value)
9876 (evaluate_funcall, evaluate_subexp_standard): Replace
9877 throw_exception with throw.
9878 * dwarf2loc.c (call_site_find_chain)
9879 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9880 Replace throw_exception with throw.
9881 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9883 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9885 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9886 * completer.c (complete_line_internal): Replace throw_exception
9888 * compile/compile-object-run.c (compile_object_run): Replace
9889 throw_exception with throw.
9890 * cli/cli-script.c (process_next_line): Replace throw_exception
9892 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9893 (btrace_enable, btrace_maint_update_pt_packets): Replace
9894 throw_exception with throw.
9895 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9896 throw_exception with throw.
9897 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9898 throw_exception with throw.
9899 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9900 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9901 * aarch64-tdep.c (aarch64_make_prologue_cache)
9902 (aarch64_make_stub_cache): Replace throw_exception with throw.
9904 2019-04-08 Tom Tromey <tom@tromey.com>
9906 * common/common-exceptions.c (throw_exception): Rename from
9907 throw_exception_cxx. Remove old copy. Make argument const.
9908 (throw_it): Create and throw exception objects directly.
9909 * common/common-exceptions.h (throw_exception): Make argument
9911 (struct gdb_exception_error): Add constructor.
9912 (struct gdb_exception_quit): Add constructor.
9914 2019-04-08 Tom Tromey <tom@tromey.com>
9916 * common/common-exceptions.h (exception_rethrow): Don't declare.
9917 (TRY_SJLJ): Update comment.
9918 (TRY, CATCH, END_CATCH): Remove.
9919 * common/common-exceptions.c (exception_rethrow): Remove.
9921 2019-04-08 Tom Tromey <tom@tromey.com>
9923 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9925 (gdb_exception_error): Rename from
9926 gdb_exception_RETURN_MASK_ERROR.
9927 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9928 (gdb_quit_bad_alloc): Update.
9929 * aarch64-tdep.c: Update.
9930 * ada-lang.c: Update.
9931 * ada-typeprint.c: Update.
9932 * ada-valprint.c: Update.
9933 * amd64-tdep.c: Update.
9934 * arch-utils.c: Update.
9935 * break-catch-throw.c: Update.
9936 * breakpoint.c: Update.
9938 * c-varobj.c: Update.
9939 * cli/cli-cmds.c: Update.
9940 * cli/cli-interp.c: Update.
9941 * cli/cli-script.c: Update.
9942 * common/common-exceptions.c: Update.
9943 * common/new-op.c: Update.
9944 * common/selftest.c: Update.
9945 * compile/compile-c-symbols.c: Update.
9946 * compile/compile-cplus-symbols.c: Update.
9947 * compile/compile-object-load.c: Update.
9948 * compile/compile-object-run.c: Update.
9949 * completer.c: Update.
9950 * corelow.c: Update.
9952 * cp-support.c: Update.
9953 * cp-valprint.c: Update.
9954 * darwin-nat.c: Update.
9955 * disasm-selftests.c: Update.
9956 * dtrace-probe.c: Update.
9957 * dwarf-index-cache.c: Update.
9958 * dwarf-index-write.c: Update.
9959 * dwarf2-frame-tailcall.c: Update.
9960 * dwarf2-frame.c: Update.
9961 * dwarf2loc.c: Update.
9962 * dwarf2read.c: Update.
9964 * event-loop.c: Update.
9965 * event-top.c: Update.
9967 * f-valprint.c: Update.
9968 * fbsd-tdep.c: Update.
9969 * frame-unwind.c: Update.
9971 * gdbtypes.c: Update.
9972 * gnu-v3-abi.c: Update.
9973 * guile/guile-internal.h: Update.
9974 * guile/scm-block.c: Update.
9975 * guile/scm-breakpoint.c: Update.
9976 * guile/scm-cmd.c: Update.
9977 * guile/scm-disasm.c: Update.
9978 * guile/scm-frame.c: Update.
9979 * guile/scm-lazy-string.c: Update.
9980 * guile/scm-math.c: Update.
9981 * guile/scm-param.c: Update.
9982 * guile/scm-ports.c: Update.
9983 * guile/scm-pretty-print.c: Update.
9984 * guile/scm-symbol.c: Update.
9985 * guile/scm-symtab.c: Update.
9986 * guile/scm-type.c: Update.
9987 * guile/scm-value.c: Update.
9988 * i386-linux-tdep.c: Update.
9989 * i386-tdep.c: Update.
9990 * inf-loop.c: Update.
9991 * infcall.c: Update.
9995 * language.c: Update.
9996 * linespec.c: Update.
9997 * linux-fork.c: Update.
9998 * linux-nat.c: Update.
9999 * linux-tdep.c: Update.
10000 * linux-thread-db.c: Update.
10002 * mi/mi-cmd-break.c: Update.
10003 * mi/mi-cmd-stack.c: Update.
10004 * mi/mi-interp.c: Update.
10005 * mi/mi-main.c: Update.
10006 * objc-lang.c: Update.
10007 * p-valprint.c: Update.
10009 * ppc-linux-tdep.c: Update.
10010 * printcmd.c: Update.
10011 * python/py-arch.c: Update.
10012 * python/py-breakpoint.c: Update.
10013 * python/py-cmd.c: Update.
10014 * python/py-finishbreakpoint.c: Update.
10015 * python/py-frame.c: Update.
10016 * python/py-framefilter.c: Update.
10017 * python/py-gdb-readline.c: Update.
10018 * python/py-inferior.c: Update.
10019 * python/py-infthread.c: Update.
10020 * python/py-lazy-string.c: Update.
10021 * python/py-linetable.c: Update.
10022 * python/py-objfile.c: Update.
10023 * python/py-param.c: Update.
10024 * python/py-prettyprint.c: Update.
10025 * python/py-progspace.c: Update.
10026 * python/py-record-btrace.c: Update.
10027 * python/py-record.c: Update.
10028 * python/py-symbol.c: Update.
10029 * python/py-type.c: Update.
10030 * python/py-unwind.c: Update.
10031 * python/py-utils.c: Update.
10032 * python/py-value.c: Update.
10033 * python/python.c: Update.
10034 * record-btrace.c: Update.
10035 * record-full.c: Update.
10036 * remote-fileio.c: Update.
10037 * remote.c: Update.
10038 * riscv-tdep.c: Update.
10039 * rs6000-aix-tdep.c: Update.
10040 * rs6000-tdep.c: Update.
10041 * rust-exp.y: Update.
10042 * rust-lang.c: Update.
10043 * s390-tdep.c: Update.
10044 * selftest-arch.c: Update.
10045 * solib-dsbt.c: Update.
10046 * solib-frv.c: Update.
10047 * solib-spu.c: Update.
10048 * solib-svr4.c: Update.
10050 * sparc64-linux-tdep.c: Update.
10052 * symfile-mem.c: Update.
10053 * symmisc.c: Update.
10054 * target.c: Update.
10055 * thread.c: Update.
10057 * tracefile-tfile.c: Update.
10058 * tui/tui.c: Update.
10059 * typeprint.c: Update.
10060 * unittests/cli-utils-selftests.c: Update.
10061 * unittests/parse-connection-spec-selftests.c: Update.
10062 * valops.c: Update.
10063 * valprint.c: Update.
10065 * varobj.c: Update.
10066 * windows-nat.c: Update.
10067 * x86-linux-nat.c: Update.
10068 * xml-support.c: Update.
10070 2019-04-08 Tom Tromey <tom@tromey.com>
10072 * xml-support.c: Use C++ exception handling.
10073 * x86-linux-nat.c: Use C++ exception handling.
10074 * windows-nat.c: Use C++ exception handling.
10075 * varobj.c: Use C++ exception handling.
10076 * value.c: Use C++ exception handling.
10077 * valprint.c: Use C++ exception handling.
10078 * valops.c: Use C++ exception handling.
10079 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10081 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10082 * typeprint.c: Use C++ exception handling.
10083 * tui/tui.c: Use C++ exception handling.
10084 * tracefile-tfile.c: Use C++ exception handling.
10085 * top.c: Use C++ exception handling.
10086 * thread.c: Use C++ exception handling.
10087 * target.c: Use C++ exception handling.
10088 * symmisc.c: Use C++ exception handling.
10089 * symfile-mem.c: Use C++ exception handling.
10090 * stack.c: Use C++ exception handling.
10091 * sparc64-linux-tdep.c: Use C++ exception handling.
10092 * solib.c: Use C++ exception handling.
10093 * solib-svr4.c: Use C++ exception handling.
10094 * solib-spu.c: Use C++ exception handling.
10095 * solib-frv.c: Use C++ exception handling.
10096 * solib-dsbt.c: Use C++ exception handling.
10097 * selftest-arch.c: Use C++ exception handling.
10098 * s390-tdep.c: Use C++ exception handling.
10099 * rust-lang.c: Use C++ exception handling.
10100 * rust-exp.y: Use C++ exception handling.
10101 * rs6000-tdep.c: Use C++ exception handling.
10102 * rs6000-aix-tdep.c: Use C++ exception handling.
10103 * riscv-tdep.c: Use C++ exception handling.
10104 * remote.c: Use C++ exception handling.
10105 * remote-fileio.c: Use C++ exception handling.
10106 * record-full.c: Use C++ exception handling.
10107 * record-btrace.c: Use C++ exception handling.
10108 * python/python.c: Use C++ exception handling.
10109 * python/py-value.c: Use C++ exception handling.
10110 * python/py-utils.c: Use C++ exception handling.
10111 * python/py-unwind.c: Use C++ exception handling.
10112 * python/py-type.c: Use C++ exception handling.
10113 * python/py-symbol.c: Use C++ exception handling.
10114 * python/py-record.c: Use C++ exception handling.
10115 * python/py-record-btrace.c: Use C++ exception handling.
10116 * python/py-progspace.c: Use C++ exception handling.
10117 * python/py-prettyprint.c: Use C++ exception handling.
10118 * python/py-param.c: Use C++ exception handling.
10119 * python/py-objfile.c: Use C++ exception handling.
10120 * python/py-linetable.c: Use C++ exception handling.
10121 * python/py-lazy-string.c: Use C++ exception handling.
10122 * python/py-infthread.c: Use C++ exception handling.
10123 * python/py-inferior.c: Use C++ exception handling.
10124 * python/py-gdb-readline.c: Use C++ exception handling.
10125 * python/py-framefilter.c: Use C++ exception handling.
10126 * python/py-frame.c: Use C++ exception handling.
10127 * python/py-finishbreakpoint.c: Use C++ exception handling.
10128 * python/py-cmd.c: Use C++ exception handling.
10129 * python/py-breakpoint.c: Use C++ exception handling.
10130 * python/py-arch.c: Use C++ exception handling.
10131 * printcmd.c: Use C++ exception handling.
10132 * ppc-linux-tdep.c: Use C++ exception handling.
10133 * parse.c: Use C++ exception handling.
10134 * p-valprint.c: Use C++ exception handling.
10135 * objc-lang.c: Use C++ exception handling.
10136 * mi/mi-main.c: Use C++ exception handling.
10137 * mi/mi-interp.c: Use C++ exception handling.
10138 * mi/mi-cmd-stack.c: Use C++ exception handling.
10139 * mi/mi-cmd-break.c: Use C++ exception handling.
10140 * main.c: Use C++ exception handling.
10141 * linux-thread-db.c: Use C++ exception handling.
10142 * linux-tdep.c: Use C++ exception handling.
10143 * linux-nat.c: Use C++ exception handling.
10144 * linux-fork.c: Use C++ exception handling.
10145 * linespec.c: Use C++ exception handling.
10146 * language.c: Use C++ exception handling.
10147 * jit.c: Use C++ exception handling.
10148 * infrun.c: Use C++ exception handling.
10149 * infcmd.c: Use C++ exception handling.
10150 * infcall.c: Use C++ exception handling.
10151 * inf-loop.c: Use C++ exception handling.
10152 * i386-tdep.c: Use C++ exception handling.
10153 * i386-linux-tdep.c: Use C++ exception handling.
10154 * guile/scm-value.c: Use C++ exception handling.
10155 * guile/scm-type.c: Use C++ exception handling.
10156 * guile/scm-symtab.c: Use C++ exception handling.
10157 * guile/scm-symbol.c: Use C++ exception handling.
10158 * guile/scm-pretty-print.c: Use C++ exception handling.
10159 * guile/scm-ports.c: Use C++ exception handling.
10160 * guile/scm-param.c: Use C++ exception handling.
10161 * guile/scm-math.c: Use C++ exception handling.
10162 * guile/scm-lazy-string.c: Use C++ exception handling.
10163 * guile/scm-frame.c: Use C++ exception handling.
10164 * guile/scm-disasm.c: Use C++ exception handling.
10165 * guile/scm-cmd.c: Use C++ exception handling.
10166 * guile/scm-breakpoint.c: Use C++ exception handling.
10167 * guile/scm-block.c: Use C++ exception handling.
10168 * guile/guile-internal.h: Use C++ exception handling.
10169 * gnu-v3-abi.c: Use C++ exception handling.
10170 * gdbtypes.c: Use C++ exception handling.
10171 * frame.c: Use C++ exception handling.
10172 * frame-unwind.c: Use C++ exception handling.
10173 * fbsd-tdep.c: Use C++ exception handling.
10174 * f-valprint.c: Use C++ exception handling.
10175 * exec.c: Use C++ exception handling.
10176 * event-top.c: Use C++ exception handling.
10177 * event-loop.c: Use C++ exception handling.
10178 * eval.c: Use C++ exception handling.
10179 * dwarf2read.c: Use C++ exception handling.
10180 * dwarf2loc.c: Use C++ exception handling.
10181 * dwarf2-frame.c: Use C++ exception handling.
10182 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10183 * dwarf-index-write.c: Use C++ exception handling.
10184 * dwarf-index-cache.c: Use C++ exception handling.
10185 * dtrace-probe.c: Use C++ exception handling.
10186 * disasm-selftests.c: Use C++ exception handling.
10187 * darwin-nat.c: Use C++ exception handling.
10188 * cp-valprint.c: Use C++ exception handling.
10189 * cp-support.c: Use C++ exception handling.
10190 * cp-abi.c: Use C++ exception handling.
10191 * corelow.c: Use C++ exception handling.
10192 * completer.c: Use C++ exception handling.
10193 * compile/compile-object-run.c: Use C++ exception handling.
10194 * compile/compile-object-load.c: Use C++ exception handling.
10195 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10196 * compile/compile-c-symbols.c: Use C++ exception handling.
10197 * common/selftest.c: Use C++ exception handling.
10198 * common/new-op.c: Use C++ exception handling.
10199 * cli/cli-script.c: Use C++ exception handling.
10200 * cli/cli-interp.c: Use C++ exception handling.
10201 * cli/cli-cmds.c: Use C++ exception handling.
10202 * c-varobj.c: Use C++ exception handling.
10203 * btrace.c: Use C++ exception handling.
10204 * breakpoint.c: Use C++ exception handling.
10205 * break-catch-throw.c: Use C++ exception handling.
10206 * arch-utils.c: Use C++ exception handling.
10207 * amd64-tdep.c: Use C++ exception handling.
10208 * ada-valprint.c: Use C++ exception handling.
10209 * ada-typeprint.c: Use C++ exception handling.
10210 * ada-lang.c: Use C++ exception handling.
10211 * aarch64-tdep.c: Use C++ exception handling.
10213 2019-04-08 Tom Tromey <tom@tromey.com>
10215 * xml-support.c (gdb_xml_parser::parse): Update.
10216 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10217 * value.c (show_convenience): Update.
10218 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10219 (test_parse_flags_qcs): Update.
10220 * thread.c (thr_try_catch_cmd): Update.
10221 * target.c (target_translate_tls_address): Update.
10222 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10223 (info_frame_command_core, frame_apply_command_count): Update.
10224 * rust-exp.y (rust_lex_exception_test): Update.
10225 * riscv-tdep.c (riscv_print_one_register_info): Update.
10226 * remote.c (remote_target::enable_btrace): Update.
10227 * record-btrace.c (record_btrace_enable_warn): Update.
10228 * python/py-utils.c (gdbpy_convert_exception): Update.
10229 * printcmd.c (do_one_display, print_variable_and_value): Update.
10230 * mi/mi-main.c (mi_print_exception): Update.
10231 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10232 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10233 * linux-nat.c (linux_nat_target::attach): Update.
10234 * linux-fork.c (class scoped_switch_fork_info): Update.
10235 * infrun.c (displaced_step_prepare): Update.
10236 * infcall.c (call_function_by_hand_dummy): Update.
10237 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10238 * gnu-v3-abi.c (print_one_vtable): Update.
10239 * frame.c (get_prev_frame_always): Update.
10240 * f-valprint.c (info_common_command_for_block): Update.
10241 * exec.c (try_open_exec_file): Update.
10242 * exceptions.c (print_exception, exception_print)
10243 (exception_fprintf, exception_print_same): Update.
10244 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10245 * dwarf-index-cache.c (index_cache::store)
10246 (index_cache::lookup_gdb_index): Update.
10247 * darwin-nat.c (maybe_cache_shell): Update.
10248 * cp-valprint.c (cp_print_value_fields): Update.
10249 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10250 (gcc_cplus_symbol_address): Update.
10251 * compile/compile-c-symbols.c (gcc_convert_symbol)
10252 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10253 * common/selftest.c: Update.
10254 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10256 (exception_try_scope_entry, exception_try_scope_exit): Don't
10258 (struct exception_try_scope): Remove.
10259 (TRY): Don't use exception_try_scope.
10260 (struct gdb_exception): Add constructor, operator=.
10261 <what>: New method.
10262 (struct gdb_exception_RETURN_MASK_ALL)
10263 (struct gdb_exception_RETURN_MASK_ERROR)
10264 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10265 (struct gdb_quit_bad_alloc): Update.
10266 * common/common-exceptions.c (exception_none): Change
10268 (struct catcher) <state, exception>: Initialize inline.
10269 <prev>: Remove member.
10270 (current_catcher): Remove.
10271 (catchers): New global.
10272 (exceptions_state_mc_init): Simplify.
10273 (catcher_pop): Remove.
10274 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10275 (try_scope_depth, exception_try_scope_entry)
10276 (exception_try_scope_exit): Remove.
10277 (throw_exception_sjlj): Update.
10278 (exception_messages, exception_messages_size): Remove.
10279 (throw_it): Simplify.
10280 (gdb_exception_sliced_copy): Remove.
10281 (throw_exception_cxx): Update.
10282 * cli/cli-script.c (script_from_file): Update.
10283 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10285 * ada-valprint.c (ada_val_print): Update.
10286 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10287 (create_excep_cond_exprs): Update.
10289 2019-04-08 Tom Tromey <tom@tromey.com>
10291 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10292 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10293 (TRY, CATCH, END_CATCH): Remove some definitions.
10294 * common/common-exceptions.c: Don't use GDB_XCPT.
10295 (catcher_list_size): Remove.
10296 (throw_exception, throw_it): Simplify.
10298 2019-04-05 Tom Tromey <tom@tromey.com>
10300 Revert the header-sorting patch.
10301 * ft32-tdep.c: Revert.
10302 * frv-tdep.c: Revert.
10303 * frv-linux-tdep.c: Revert.
10305 * frame-unwind.c: Revert.
10306 * frame-base.c: Revert.
10307 * fork-child.c: Revert.
10308 * findvar.c: Revert.
10309 * findcmd.c: Revert.
10310 * filesystem.c: Revert.
10311 * filename-seen-cache.h: Revert.
10312 * filename-seen-cache.c: Revert.
10313 * fbsd-tdep.c: Revert.
10314 * fbsd-nat.h: Revert.
10315 * fbsd-nat.c: Revert.
10316 * f-valprint.c: Revert.
10317 * f-typeprint.c: Revert.
10318 * f-lang.c: Revert.
10319 * extension.h: Revert.
10320 * extension.c: Revert.
10321 * extension-priv.h: Revert.
10322 * expprint.c: Revert.
10325 * exceptions.c: Revert.
10326 * event-top.c: Revert.
10327 * event-loop.c: Revert.
10329 * elfread.c: Revert.
10330 * dwarf2read.h: Revert.
10331 * dwarf2read.c: Revert.
10332 * dwarf2loc.c: Revert.
10333 * dwarf2expr.h: Revert.
10334 * dwarf2expr.c: Revert.
10335 * dwarf2-frame.c: Revert.
10336 * dwarf2-frame-tailcall.c: Revert.
10337 * dwarf-index-write.h: Revert.
10338 * dwarf-index-write.c: Revert.
10339 * dwarf-index-common.c: Revert.
10340 * dwarf-index-cache.h: Revert.
10341 * dwarf-index-cache.c: Revert.
10342 * dummy-frame.c: Revert.
10343 * dtrace-probe.c: Revert.
10344 * disasm.h: Revert.
10345 * disasm.c: Revert.
10346 * disasm-selftests.c: Revert.
10347 * dictionary.c: Revert.
10348 * dicos-tdep.c: Revert.
10349 * demangle.c: Revert.
10350 * dcache.h: Revert.
10351 * dcache.c: Revert.
10352 * darwin-nat.h: Revert.
10353 * darwin-nat.c: Revert.
10354 * darwin-nat-info.c: Revert.
10355 * d-valprint.c: Revert.
10356 * d-namespace.c: Revert.
10357 * d-lang.c: Revert.
10359 * csky-tdep.c: Revert.
10360 * csky-linux-tdep.c: Revert.
10361 * cris-tdep.c: Revert.
10362 * cris-linux-tdep.c: Revert.
10363 * cp-valprint.c: Revert.
10364 * cp-support.c: Revert.
10365 * cp-namespace.c: Revert.
10366 * cp-abi.c: Revert.
10367 * corelow.c: Revert.
10368 * corefile.c: Revert.
10369 * continuations.c: Revert.
10370 * completer.h: Revert.
10371 * completer.c: Revert.
10372 * complaints.c: Revert.
10373 * coffread.c: Revert.
10374 * coff-pe-read.c: Revert.
10375 * cli-out.h: Revert.
10376 * cli-out.c: Revert.
10377 * charset.c: Revert.
10378 * c-varobj.c: Revert.
10379 * c-valprint.c: Revert.
10380 * c-typeprint.c: Revert.
10381 * c-lang.c: Revert.
10382 * buildsym.c: Revert.
10383 * buildsym-legacy.c: Revert.
10384 * build-id.h: Revert.
10385 * build-id.c: Revert.
10386 * btrace.c: Revert.
10387 * bsd-uthread.c: Revert.
10388 * breakpoint.h: Revert.
10389 * breakpoint.c: Revert.
10390 * break-catch-throw.c: Revert.
10391 * break-catch-syscall.c: Revert.
10392 * break-catch-sig.c: Revert.
10393 * blockframe.c: Revert.
10395 * bfin-tdep.c: Revert.
10396 * bfin-linux-tdep.c: Revert.
10397 * bfd-target.c: Revert.
10398 * bcache.c: Revert.
10399 * ax-general.c: Revert.
10400 * ax-gdb.h: Revert.
10401 * ax-gdb.c: Revert.
10402 * avr-tdep.c: Revert.
10404 * auto-load.c: Revert.
10405 * arm-wince-tdep.c: Revert.
10406 * arm-tdep.c: Revert.
10407 * arm-symbian-tdep.c: Revert.
10408 * arm-pikeos-tdep.c: Revert.
10409 * arm-obsd-tdep.c: Revert.
10410 * arm-nbsd-tdep.c: Revert.
10411 * arm-nbsd-nat.c: Revert.
10412 * arm-linux-tdep.c: Revert.
10413 * arm-linux-nat.c: Revert.
10414 * arm-fbsd-tdep.c: Revert.
10415 * arm-fbsd-nat.c: Revert.
10416 * arm-bsd-tdep.c: Revert.
10417 * arch-utils.c: Revert.
10418 * arc-tdep.c: Revert.
10419 * arc-newlib-tdep.c: Revert.
10420 * annotate.h: Revert.
10421 * annotate.c: Revert.
10422 * amd64-windows-tdep.c: Revert.
10423 * amd64-windows-nat.c: Revert.
10424 * amd64-tdep.c: Revert.
10425 * amd64-sol2-tdep.c: Revert.
10426 * amd64-obsd-tdep.c: Revert.
10427 * amd64-obsd-nat.c: Revert.
10428 * amd64-nbsd-tdep.c: Revert.
10429 * amd64-nbsd-nat.c: Revert.
10430 * amd64-nat.c: Revert.
10431 * amd64-linux-tdep.c: Revert.
10432 * amd64-linux-nat.c: Revert.
10433 * amd64-fbsd-tdep.c: Revert.
10434 * amd64-fbsd-nat.c: Revert.
10435 * amd64-dicos-tdep.c: Revert.
10436 * amd64-darwin-tdep.c: Revert.
10437 * amd64-bsd-nat.c: Revert.
10438 * alpha-tdep.c: Revert.
10439 * alpha-obsd-tdep.c: Revert.
10440 * alpha-nbsd-tdep.c: Revert.
10441 * alpha-mdebug-tdep.c: Revert.
10442 * alpha-linux-tdep.c: Revert.
10443 * alpha-linux-nat.c: Revert.
10444 * alpha-bsd-tdep.c: Revert.
10445 * alpha-bsd-nat.c: Revert.
10446 * aix-thread.c: Revert.
10448 * addrmap.c: Revert.
10449 * ada-varobj.c: Revert.
10450 * ada-valprint.c: Revert.
10451 * ada-typeprint.c: Revert.
10452 * ada-tasks.c: Revert.
10453 * ada-lang.c: Revert.
10454 * aarch64-tdep.c: Revert.
10455 * aarch64-ravenscar-thread.c: Revert.
10456 * aarch64-newlib-tdep.c: Revert.
10457 * aarch64-linux-tdep.c: Revert.
10458 * aarch64-linux-nat.c: Revert.
10459 * aarch64-fbsd-tdep.c: Revert.
10460 * aarch64-fbsd-nat.c: Revert.
10461 * aarch32-linux-nat.c: Revert.
10463 2019-04-05 Tom Tromey <tom@tromey.com>
10465 * ft32-tdep.c: Sort headers.
10466 * frv-tdep.c: Sort headers.
10467 * frv-linux-tdep.c: Sort headers.
10468 * frame.c: Sort headers.
10469 * frame-unwind.c: Sort headers.
10470 * frame-base.c: Sort headers.
10471 * fork-child.c: Sort headers.
10472 * findvar.c: Sort headers.
10473 * findcmd.c: Sort headers.
10474 * filesystem.c: Sort headers.
10475 * filename-seen-cache.h: Sort headers.
10476 * filename-seen-cache.c: Sort headers.
10477 * fbsd-tdep.c: Sort headers.
10478 * fbsd-nat.h: Sort headers.
10479 * fbsd-nat.c: Sort headers.
10480 * f-valprint.c: Sort headers.
10481 * f-typeprint.c: Sort headers.
10482 * f-lang.c: Sort headers.
10483 * extension.h: Sort headers.
10484 * extension.c: Sort headers.
10485 * extension-priv.h: Sort headers.
10486 * expprint.c: Sort headers.
10487 * exec.h: Sort headers.
10488 * exec.c: Sort headers.
10489 * exceptions.c: Sort headers.
10490 * event-top.c: Sort headers.
10491 * event-loop.c: Sort headers.
10492 * eval.c: Sort headers.
10493 * elfread.c: Sort headers.
10494 * dwarf2read.h: Sort headers.
10495 * dwarf2read.c: Sort headers.
10496 * dwarf2loc.c: Sort headers.
10497 * dwarf2expr.h: Sort headers.
10498 * dwarf2expr.c: Sort headers.
10499 * dwarf2-frame.c: Sort headers.
10500 * dwarf2-frame-tailcall.c: Sort headers.
10501 * dwarf-index-write.h: Sort headers.
10502 * dwarf-index-write.c: Sort headers.
10503 * dwarf-index-common.c: Sort headers.
10504 * dwarf-index-cache.h: Sort headers.
10505 * dwarf-index-cache.c: Sort headers.
10506 * dummy-frame.c: Sort headers.
10507 * dtrace-probe.c: Sort headers.
10508 * disasm.h: Sort headers.
10509 * disasm.c: Sort headers.
10510 * disasm-selftests.c: Sort headers.
10511 * dictionary.c: Sort headers.
10512 * dicos-tdep.c: Sort headers.
10513 * demangle.c: Sort headers.
10514 * dcache.h: Sort headers.
10515 * dcache.c: Sort headers.
10516 * darwin-nat.h: Sort headers.
10517 * darwin-nat.c: Sort headers.
10518 * darwin-nat-info.c: Sort headers.
10519 * d-valprint.c: Sort headers.
10520 * d-namespace.c: Sort headers.
10521 * d-lang.c: Sort headers.
10522 * ctf.c: Sort headers.
10523 * csky-tdep.c: Sort headers.
10524 * csky-linux-tdep.c: Sort headers.
10525 * cris-tdep.c: Sort headers.
10526 * cris-linux-tdep.c: Sort headers.
10527 * cp-valprint.c: Sort headers.
10528 * cp-support.c: Sort headers.
10529 * cp-namespace.c: Sort headers.
10530 * cp-abi.c: Sort headers.
10531 * corelow.c: Sort headers.
10532 * corefile.c: Sort headers.
10533 * continuations.c: Sort headers.
10534 * completer.h: Sort headers.
10535 * completer.c: Sort headers.
10536 * complaints.c: Sort headers.
10537 * coffread.c: Sort headers.
10538 * coff-pe-read.c: Sort headers.
10539 * cli-out.h: Sort headers.
10540 * cli-out.c: Sort headers.
10541 * charset.c: Sort headers.
10542 * c-varobj.c: Sort headers.
10543 * c-valprint.c: Sort headers.
10544 * c-typeprint.c: Sort headers.
10545 * c-lang.c: Sort headers.
10546 * buildsym.c: Sort headers.
10547 * buildsym-legacy.c: Sort headers.
10548 * build-id.h: Sort headers.
10549 * build-id.c: Sort headers.
10550 * btrace.c: Sort headers.
10551 * bsd-uthread.c: Sort headers.
10552 * breakpoint.h: Sort headers.
10553 * breakpoint.c: Sort headers.
10554 * break-catch-throw.c: Sort headers.
10555 * break-catch-syscall.c: Sort headers.
10556 * break-catch-sig.c: Sort headers.
10557 * blockframe.c: Sort headers.
10558 * block.c: Sort headers.
10559 * bfin-tdep.c: Sort headers.
10560 * bfin-linux-tdep.c: Sort headers.
10561 * bfd-target.c: Sort headers.
10562 * bcache.c: Sort headers.
10563 * ax-general.c: Sort headers.
10564 * ax-gdb.h: Sort headers.
10565 * ax-gdb.c: Sort headers.
10566 * avr-tdep.c: Sort headers.
10567 * auxv.c: Sort headers.
10568 * auto-load.c: Sort headers.
10569 * arm-wince-tdep.c: Sort headers.
10570 * arm-tdep.c: Sort headers.
10571 * arm-symbian-tdep.c: Sort headers.
10572 * arm-pikeos-tdep.c: Sort headers.
10573 * arm-obsd-tdep.c: Sort headers.
10574 * arm-nbsd-tdep.c: Sort headers.
10575 * arm-nbsd-nat.c: Sort headers.
10576 * arm-linux-tdep.c: Sort headers.
10577 * arm-linux-nat.c: Sort headers.
10578 * arm-fbsd-tdep.c: Sort headers.
10579 * arm-fbsd-nat.c: Sort headers.
10580 * arm-bsd-tdep.c: Sort headers.
10581 * arch-utils.c: Sort headers.
10582 * arc-tdep.c: Sort headers.
10583 * arc-newlib-tdep.c: Sort headers.
10584 * annotate.h: Sort headers.
10585 * annotate.c: Sort headers.
10586 * amd64-windows-tdep.c: Sort headers.
10587 * amd64-windows-nat.c: Sort headers.
10588 * amd64-tdep.c: Sort headers.
10589 * amd64-sol2-tdep.c: Sort headers.
10590 * amd64-obsd-tdep.c: Sort headers.
10591 * amd64-obsd-nat.c: Sort headers.
10592 * amd64-nbsd-tdep.c: Sort headers.
10593 * amd64-nbsd-nat.c: Sort headers.
10594 * amd64-nat.c: Sort headers.
10595 * amd64-linux-tdep.c: Sort headers.
10596 * amd64-linux-nat.c: Sort headers.
10597 * amd64-fbsd-tdep.c: Sort headers.
10598 * amd64-fbsd-nat.c: Sort headers.
10599 * amd64-dicos-tdep.c: Sort headers.
10600 * amd64-darwin-tdep.c: Sort headers.
10601 * amd64-bsd-nat.c: Sort headers.
10602 * alpha-tdep.c: Sort headers.
10603 * alpha-obsd-tdep.c: Sort headers.
10604 * alpha-nbsd-tdep.c: Sort headers.
10605 * alpha-mdebug-tdep.c: Sort headers.
10606 * alpha-linux-tdep.c: Sort headers.
10607 * alpha-linux-nat.c: Sort headers.
10608 * alpha-bsd-tdep.c: Sort headers.
10609 * alpha-bsd-nat.c: Sort headers.
10610 * aix-thread.c: Sort headers.
10611 * agent.c: Sort headers.
10612 * addrmap.c: Sort headers.
10613 * ada-varobj.c: Sort headers.
10614 * ada-valprint.c: Sort headers.
10615 * ada-typeprint.c: Sort headers.
10616 * ada-tasks.c: Sort headers.
10617 * ada-lang.c: Sort headers.
10618 * aarch64-tdep.c: Sort headers.
10619 * aarch64-ravenscar-thread.c: Sort headers.
10620 * aarch64-newlib-tdep.c: Sort headers.
10621 * aarch64-linux-tdep.c: Sort headers.
10622 * aarch64-linux-nat.c: Sort headers.
10623 * aarch64-fbsd-tdep.c: Sort headers.
10624 * aarch64-fbsd-nat.c: Sort headers.
10625 * aarch32-linux-nat.c: Sort headers.
10627 2019-04-04 Tom Tromey <tom@tromey.com>
10629 * varobj.c (varobj_create): Update.
10630 * rust-exp.y (struct rust_parser) <update_innermost_block,
10631 lookup_symbol>: New methods.
10632 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10634 (rust_parser::rust_lookup_type)
10635 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10636 * printcmd.c (display_command, do_one_display): Update.
10637 * parser-defs.h (struct parser_state) <parser_state>: Add
10638 "tracker" parameter.
10639 (block_tracker): New member.
10640 (class innermost_block_tracker) <innermost_block_tracker>: Add
10642 <reset>: Remove method.
10643 (innermost_block): Don't declare.
10644 (null_post_parser): Update.
10645 * parse.c (innermost_block): Remove global.
10646 (write_dollar_variable): Update.
10647 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10648 Remove "tracker_types" parameter.
10649 (parse_expression): Add "tracker" parameter.
10650 (parse_expression_for_completion): Update.
10651 (null_post_parser): Add "tracker" parameter.
10652 * p-exp.y: Update rules.
10653 * m2-exp.y: Update rules.
10654 * language.h (struct language_defn) <la_post_parser>: Add
10655 "tracker" parameter.
10656 * go-exp.y: Update rules.
10657 * f-exp.y: Update rules.
10658 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10660 * d-exp.y: Update rules.
10661 * c-exp.y: Update rules.
10662 * breakpoint.c (set_breakpoint_condition): Create an
10663 innermost_block_tracker.
10664 (watch_command_1): Likewise.
10665 * ada-lang.c (resolve): Add "tracker" parameter.
10666 (resolve_subexp): Likewise.
10667 * ada-exp.y (write_var_from_sym): Update.
10669 2019-04-04 Tom Tromey <tom@tromey.com>
10671 * type-stack.h: New file.
10672 * type-stack.c: New file.
10673 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10675 (insert_into_type_stack, insert_type, push_type, push_type_int)
10676 (insert_type_address_space, pop_type, pop_type_int)
10677 (pop_typelist, pop_type_stack, append_type_stack)
10678 (push_type_stack, get_type_stack, push_typelist)
10679 (follow_type_instance_flags, follow_types): Don't declare.
10680 * parse.c (type_stack): Remove global.
10681 (parse_exp_in_context): Update.
10682 (insert_into_type_stack, insert_type, push_type, push_type_int)
10683 (insert_type_address_space, pop_type, pop_type_int)
10684 (pop_typelist, pop_type_stack, append_type_stack)
10685 (push_type_stack, get_type_stack, push_typelist)
10686 (follow_type_instance_flags, follow_types): Remove (moved to
10688 * f-exp.y (type_stack): New global.
10690 (push_kind_type, f_parse): Update.
10691 * d-exp.y (type_stack): New global.
10694 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10696 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10697 (HFILES_NO_SRCDIR): Add type-stack.h.
10699 2019-04-04 Tom Tromey <tom@tromey.com>
10701 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10702 (rust_parser::convert_ast_to_expression, rust_parse)
10703 (rust_lex_test_completion, rust_lex_tests): Update.
10704 * parser-defs.h (struct expr_completion_state): New.
10705 (struct parser_state) <parser_state>: Add completion parameter.
10706 <mark_struct_expression, mark_completion_tag>: New methods.
10707 <parse_completion, m_completion_state>: New members.
10708 (prefixify_expression, null_post_parser): Update.
10709 (mark_struct_expression, mark_completion_tag): Don't declare.
10710 * parse.c (parse_completion, expout_last_struct)
10711 (expout_tag_completion_type, expout_completion_name): Remove
10713 (parser_state::mark_struct_expression)
10714 (parser_state::mark_completion_tag): Now methods.
10715 (prefixify_expression): Add last_struct parameter.
10716 (prefixify_subexp): Likewise.
10717 (parse_exp_1): Update.
10718 (parse_exp_in_context): Add cstate parameter. Update.
10719 (parse_expression_for_completion): Create an
10720 expr_completion_state.
10721 (null_post_parser): Add "completion" parameter.
10722 * p-exp.y: Update rules.
10724 * language.h (struct language_defn) <la_post_parser>: Add
10725 "completing" parameter.
10726 * go-exp.y: Update rules.
10727 (lex_one_token): Update.
10728 * expression.h (parse_completion): Don't declare.
10729 * d-exp.y: Update rules.
10730 (lex_one_token): Update rules.
10731 * c-exp.y: Update rules.
10732 (lex_one_token): Update.
10733 * ada-lang.c (resolve): Add "parse_completion" parameter.
10734 (resolve_subexp): Likewise.
10735 (ada_resolve_function): Likewise.
10737 2019-04-04 Tom Tromey <tom@tromey.com>
10739 * parser-defs.h (struct parser_state) <start_arglist,
10740 end_arglist>: New methods.
10741 <arglist_len, m_funcall_chain>: New members.
10742 (arglist_len, start_arglist, end_arglist): Don't declare.
10743 * parse.c (arglist_len, funcall_chain): Remove global.
10744 (start_arglist, end_arglist): Remove functions.
10745 (parse_exp_in_context): Update.
10746 * p-exp.y: Update rules.
10747 * m2-exp.y: Update rules.
10748 * go-exp.y: Update rules.
10749 * f-exp.y: Update rules.
10750 * d-exp.y: Update rules.
10751 * c-exp.y: Update rules.
10753 2019-04-04 Tom Tromey <tom@tromey.com>
10755 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10756 lex_operator, push_back>: New methods.
10758 (rust_parser::lex_hex, lex_escape): Rename and update.
10759 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10760 (rust_parser::lex_operator): Rename and update.
10761 (rust_parser::lex_number, rustyylex, rustyyerror)
10762 (rust_lex_test_init, rust_lex_test_sequence)
10763 (rust_lex_test_push_back, rust_lex_tests): Update.
10764 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10766 <lexptr, prev_lexptr>: New members.
10767 (lexptr, prev_lexptr): Don't declare.
10768 * parse.c (lexptr, prev_lexptr): Remove globals.
10769 (parse_exp_in_context): Update.
10770 * p-exp.y (yylex, yyerror): Update.
10771 * m2-exp.y (parse_number, yylex, yyerror): Update.
10772 * go-exp.y (lex_one_token, yyerror): Update.
10773 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10774 * d-exp.y (lex_one_token, yyerror): Update.
10775 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10776 (lex_one_token, yyerror): Update.
10777 * ada-lex.l (YY_INPUT): Update.
10778 (rewind_to_char): Update.
10779 * ada-exp.y (yyerror): Update.
10781 2019-04-04 Tom Tromey <tom@tromey.com>
10783 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10784 * parser-defs.h (struct parser_state) <parser_state>: Add new
10786 <comma_terminates>: New member.
10787 (comma_terminates): Don't declare global.
10788 * parse.c (comma_terminates): Remove global.
10789 (parse_exp_in_context): Update.
10790 * p-exp.y (yylex): Update.
10791 * m2-exp.y (yylex): Update.
10792 * go-exp.y (lex_one_token): Update.
10793 * f-exp.y (yylex): Update.
10794 * d-exp.y (lex_one_token): Update.
10795 * c-exp.y (lex_one_token): Update.
10796 * ada-lex.l: Update.
10798 2019-04-04 Tom Tromey <tom@tromey.com>
10800 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10801 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10802 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10803 * parser-defs.h (paren_depth): Don't declare.
10804 * parse.c (paren_depth): Remove global.
10805 (parse_exp_in_context): Update.
10806 * p-exp.y (paren_depth): New global.
10807 (pascal_parse): Initialize it.
10808 * m2-exp.y (paren_depth): New global.
10809 (m2_parse): Initialize it.
10810 * go-exp.y (paren_depth): New global.
10811 (go_parse): Initialize it.
10812 * f-exp.y (paren_depth): New global.
10813 (f_parse): Initialize it.
10814 * d-exp.y (paren_depth): New global.
10815 (d_parse): Initialize it.
10816 * c-exp.y (paren_depth): New global.
10817 (c_parse): Initialize it.
10818 * ada-lex.l (paren_depth): New global.
10819 (lexer_init): Initialize it.
10821 2019-04-04 Tom Tromey <tom@tromey.com>
10823 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10824 (rust_parser::convert_ast_to_type)
10825 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10826 * parser-defs.h (struct parser_state) <parser_state>: Add
10827 parameters. Initialize new members.
10828 <expression_context_block, expression_context_pc>: New members.
10829 * parse.c (expression_context_block, expression_context_pc):
10831 (parse_exp_in_context): Update.
10832 * p-exp.y: Update all rules.
10834 * m2-exp.y: Update all rules.
10836 * go-exp.y (yylex): Update.
10837 * f-exp.y (yylex): Update.
10838 * d-exp.y: Update all rules.
10840 * c-exp.y: Update all rules.
10841 (lex_one_token, classify_name, yylex, c_parse): Update.
10842 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10844 2019-04-04 Tom Tromey <tom@tromey.com>
10846 * gdbarch.h, gdbarch.c: Rebuild.
10847 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10849 (struct stap_parse_info): Replace "parser_state" with
10851 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10852 (parser_state): New class.
10853 * parse.c (expr_builder): Rename.
10854 (expr_builder::release): Rename.
10855 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10856 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10857 (write_exp_elt_longcst, write_exp_elt_floatcst)
10858 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10859 (write_exp_string_vector, write_exp_bitstring)
10860 (write_exp_msymbol, mark_struct_expression)
10861 (write_dollar_variable)
10862 (insert_type_address_space, increase_expout_size): Replace
10863 "parser_state" with "expr_builder".
10864 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10865 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10866 "parser_state" with "expr_builder".
10868 2019-04-04 Tom Tromey <tom@tromey.com>
10870 * rust-exp.y: Replace "parse_language" with method call.
10872 (yylex): Replace "parse_language" with method call.
10874 (yylex): Replace "parse_language" with method call.
10875 * go-exp.y (classify_name): Replace "parse_language" with method
10877 * f-exp.y (yylex): Replace "parse_language" with method call.
10878 * d-exp.y (lex_one_token): Replace "parse_language" with method
10881 (lex_one_token, classify_name, yylex): Replace "parse_language"
10883 * ada-exp.y (find_primitive_type, type_char)
10884 (type_system_address): Replace "parse_language" with method call.
10886 2019-04-04 Tom Tromey <tom@tromey.com>
10888 * rust-exp.y: Replace "parse_gdbarch" with method call.
10889 * parse.c (write_dollar_variable, insert_type_address_space):
10890 Replace "parse_gdbarch" with method call.
10891 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10893 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10895 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10896 "parse_gdbarch" with method call.
10897 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10899 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10900 "parse_gdbarch" with method call.
10901 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10902 "parse_gdbarch" with method call.
10903 * c-exp.y (parse_type, parse_number, classify_name): Replace
10904 "parse_gdbarch" with method call.
10905 * ada-lex.l: Replace "parse_gdbarch" with method call.
10906 * ada-exp.y (parse_type, find_primitive_type, type_char)
10907 (type_system_address): Replace "parse_gdbarch" with method call.
10909 2019-04-04 Tom Tromey <tom@tromey.com>
10911 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10912 * stap-probe.c (stap_parse_argument): Update.
10913 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10914 initial_size parameter.
10915 * rust-exp.y (rust_lex_tests): Update.
10916 * parse.c (parser_state): Update.
10917 (parse_exp_in_context): Update.
10918 * parser-defs.h (struct parser_state) <parser_state>: Remove
10919 "initial_size" parameter.
10921 2019-04-04 Tom Tromey <tom@tromey.com>
10923 * parser-defs.h (increase_expout_size): Don't declare.
10924 * parse.c (increase_expout_size): Now static.
10926 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10928 * gnu-nat.c (gnu_nat_target::wait): Fix
10929 target_waitstatus_to_string call.
10931 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10933 * eval.c (evaluate_subexp_standard): Handle internal functions
10934 during Fortran function call handling.
10936 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10938 * NEWS: Mention new internal functions.
10939 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10940 (read_base_type): Use dwarf2_init_complex_target_type.
10941 * value.c (creal_internal_fn): New function.
10942 (cimag_internal_fn): New function.
10943 (_initialize_values): Register new internal functions.
10945 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10947 * infrun.c (stop_all_threads): If debug_infrun, always
10948 trace the wait status after wait_one, using
10949 target_waitstatus_to_string and target_pid_to_str.
10950 (handle_inferior_event): Replace various trace of
10951 wait status kind by a single trace.
10952 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10953 wait status kind image by target_waitstatus_to_string.
10954 * target/waitstatus.c (target_waitstatus_to_string): Fix
10957 2019-04-01 Tom Tromey <tromey@adacore.com>
10960 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10962 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10963 Pedro Alves <palves@redhat.com>
10965 * top.c (quit_force): Call 'finalize_values'.
10966 * value.c (finalize_values): New function.
10967 * value.h (finalize_values): Declare.
10969 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10971 * NEWS: Announce $_gdb_major and $_gdb_minor.
10973 * top.c (init_gdb_version_vars): New function.
10974 (gdb_init): Call init_gdb_version_vars.
10976 2019-03-29 Tom Tromey <tromey@adacore.com>
10978 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10979 help text. Remove dead code.
10981 2019-03-29 Keith Seitz <keiths@redhat.com>
10983 From Siddhesh Poyarekar:
10984 * f-lang.h (f77_get_upperbound): Return LONGEST.
10985 (f77_get_lowerbound): Likewise.
10986 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10987 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10989 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10990 plongest to format print it.
10991 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10992 (f77_get_upperbound): Likewise.
10993 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10994 LOWER_BOUND to LONGEST.
10995 (f77_create_arrayprint_offset_tbl): Likewise.
10997 2019-03-29 Keith Seitz <keiths@redhat.com>
10999 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11000 %s/pulongest for TYPE_LENGTH instead of %d in format
11002 * ada-typerint.c (ada_print_type): Likewise.
11003 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11004 * compile/compile-c-support.c (generate_register_struct): Likewise.
11005 * gdbtypes.c (recursive_dump_type): Likewise.
11006 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11007 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11008 instead of %d in format strings.
11009 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11010 to std::min to ULONGEST.
11011 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11012 instead of %d in format strings.
11013 * tracepoint.c (info_scope_command): Likewise.
11014 * typeprint.c (print_offset_data::update)
11015 (print_offset_data::finish): Likewise.
11016 * xtensa-tdep.c (xtensa_store_return_value)
11017 (xtensa_push_dummy_call): Likewise.
11019 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11021 * windows-nat.c (display_selector): Fixed format specifications
11024 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11026 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11028 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11030 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11031 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11032 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11033 (nios2_linux_init_abi): Install it.
11035 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11037 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11039 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11041 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11043 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11044 Tom Tromey <tromey@adacore.com>
11046 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11048 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11050 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11051 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11052 method to compute the bounds of range types. Also print "[evaluated]"
11053 if the bounds' values come from a dynamic evaluation.
11055 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11057 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11058 whitespace when pretty printing is on.
11060 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11062 * ppc-linux-nat.c: Add include.
11064 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11066 * NEWS: Mention AArch64 Pointer Authentication.
11068 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11070 * arm-linux-nat.c: Add include.
11072 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11074 * source-cache.c (source_cache::get_source_lines): Re-read
11075 fullname after calling open_source_file.
11077 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11079 * NEWS: Mention TLS support for FreeBSD.
11081 2019-03-25 Tom Tromey <tromey@adacore.com>
11083 * minsyms.c (BUNCH_SIZE): Update comment.
11084 (~minimal_symbol_reader): Remove old comment.
11085 (compact_minimal_symbols): Update comment.
11086 (minimal_symbol_reader::install): Remove old comment. Update
11089 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11091 * s390-linux-nat.c: Add include.
11093 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11095 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11096 Call linux_get_hwcap.
11097 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11099 (aarch64_linux_get_hwcap): Remove function.
11100 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11102 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11104 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11105 * linux-tdep.c (linux_get_hwcap): Add function.
11106 (linux_get_hwcap2): Likewise.
11107 * linux-tdep.h (linux_get_hwcap): Add declaration.
11108 (linux_get_hwcap2): Likewise.
11109 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11110 (ppc_linux_get_hwcap2): Likewise.
11111 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11113 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11114 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11115 (ppc_linux_nat_target::read_description): Likewise.
11116 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11117 * s390-linux-nat.c: Likewise.
11118 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11120 2019-03-24 Tom Tromey <tom@tromey.com>
11122 * ada-lang.c (standard_lookup): Simplify initialization.
11123 (ada_lookup_symbol_nonlocal): Simplify return.
11124 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11125 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11126 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11127 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11129 * solib.c (solib_global_lookup): Simplify.
11130 * symtab.c (null_block_symbol): Remove.
11131 (symbol_cache_lookup): Simplify returns.
11132 (lookup_language_this): Simplify returns.
11133 (lookup_symbol_aux): Simplify return.
11134 (lookup_local_symbol): Simplify returns.
11135 (lookup_global_symbol_from_objfile): Simplify return.
11136 (lookup_symbol_in_objfile_symtabs)
11137 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11138 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11139 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11140 * cp-namespace.c (cp_lookup_bare_symbol)
11141 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11142 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11143 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11144 (cp_lookup_symbol_via_imports): Simplify initialization.
11145 (find_symbol_in_baseclass): Likewise.
11146 * symtab.h (null_block_symbol): Remove.
11147 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11148 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11149 (d_lookup_symbol_module): Likewise.
11150 (find_symbol_in_baseclass): Simplify initialization.
11152 2019-03-24 Tom Tromey <tom@tromey.com>
11154 * expression.h: Don't include symtab.h.
11155 (struct block): Forward declare.
11157 2019-03-24 Tom Tromey <tom@tromey.com>
11159 * c-exp.y (typebase): Remove casts.
11160 * gdbtypes.c (lookup_unsigned_typename, )
11161 (lookup_signed_typename): Remove cast.
11162 * eval.c (parse_to_comma_and_eval): Remove cast.
11163 * parse.c (write_dollar_variable): Remove cast.
11164 * block.h (struct block) <superblock>: Now const.
11165 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11166 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11167 (map_block): Make "block" const.
11168 * symfile.h (struct quick_symbol_functions)
11169 <map_matching_symbols>: Constify block argument to "callback".
11170 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11172 (find_pc_sect_compunit_symtab): Make "b" const.
11173 (find_symbol_at_address): Likewise.
11174 (search_symbols): Likewise.
11175 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11176 (dw2_debug_names_lookup_symbol): Likewise.
11177 (dw2_map_matching_symbols): Update.
11178 * p-valprint.c (pascal_val_print): Remove "block".
11179 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11180 (aux_add_nonlocal_symbols): Make "block" const.
11181 (resolve_subexp): Remove cast.
11182 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11184 (iterate_over_file_blocks): Likewise.
11185 * f-exp.y (%union) <bval>: Remove.
11186 * coffread.c (patch_opaque_types): Make "b" const.
11187 * spu-tdep.c (spu_catch_start): Make "block" const.
11188 * c-valprint.c (print_unpacked_pointer): Remove "block".
11189 * symmisc.c (dump_symtab_1): Make "b" const.
11190 (block_depth): Make "block" const.
11191 * d-exp.y (%union) <bval>: Remove.
11192 * cp-support.h (cp_lookup_rtti_type): Update.
11193 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11194 * psymtab.c (psym_lookup_symbol): Make "block" const.
11195 (maintenance_check_psymtabs): Make "b" const.
11196 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11197 (enumerate_locals, enumerate_args): Update.
11198 * python/py-symtab.c (stpy_global_block): Make "block" const.
11199 (stpy_static_block): Likewise.
11200 * inline-frame.c (block_starting_point_at): Make "new_block"
11202 * block.c (find_block_in_blockvector): Make return type const.
11203 (blockvector_for_pc_sect): Make "b" const.
11204 (find_block_in_blockvector): Make "b" const.
11206 2019-03-23 Tom Tromey <tom@tromey.com>
11208 * varobj.c (varobj_create): Update.
11209 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11210 * printcmd.c (display_command, do_one_display): Don't reset
11212 * parser-defs.h (enum innermost_block_tracker_type): Move to
11214 (innermost_block): Update comment.
11215 * parse.c (parse_exp_1): Add tracker_types parameter.
11216 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11217 tracker_types parameter. Reset innermost_block.
11218 (parse_exp_in_context): Remove.
11219 (parse_expression_for_completion): Update.
11220 * objfiles.c (~objfile): Don't reset expression_context_block or
11222 * expression.h (enum innermost_block_tracker_type): Move from
11224 (parse_exp_1): Add tracker_types parameter.
11225 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11226 reset innermost_block.
11228 2019-03-23 Tom Tromey <tom@tromey.com>
11230 * objfiles.h: Include bcache.h.
11232 2019-03-23 Tom Tromey <tom@tromey.com>
11234 * linespec.c (get_current_search_block): Use
11235 scoped_restore_current_language.
11236 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11238 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11239 Jiong Wang <jiong.wang@arm.com>
11241 * aarch64-linux-tdep.c
11242 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11244 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11246 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11247 Jiong Wang <jiong.wang@arm.com>
11249 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11251 (aarch64_analyze_prologue_test): Add PACIASP test.
11252 (aarch64_prologue_prev_register): Unmask PC value.
11254 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11255 Jiong Wang <jiong.wang@arm.com>
11257 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11258 (aarch64_dwarf2_prev_register): Unmask PC value.
11259 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11260 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11261 DW_CFA_AARCH64_negate_ra_state.
11262 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11264 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11265 Jiong Wang <jiong.wang@arm.com>
11267 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11269 (aarch64_pseudo_register_name): Likewise.
11270 (aarch64_pseudo_register_type): Likewise.
11271 (aarch64_pseudo_register_reggroup_p): Likewise.
11272 (aarch64_gdbarch_init): Add pauth registers.
11273 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11274 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11275 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11276 (struct gdbarch_tdep): Add regnum for ra_state.
11278 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11279 Jiong Wang <jiong.wang@arm.com>
11281 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11283 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11284 Jiong Wang <jiong.wang@arm.com>
11286 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11288 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11289 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11290 (aarch64_gdbarch_init): Add puth registers.
11291 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11292 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11293 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11295 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11296 Jiong Wang <jiong.wang@arm.com>
11298 * aarch64-linux-nat.c
11299 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11300 * aarch64-linux-tdep.c
11301 (aarch64_linux_core_read_description): Likewise.
11302 (aarch64_linux_get_hwcap): New function.
11303 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11304 (aarch64_linux_get_hwcap): New declaration.
11306 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11307 Jiong Wang <jiong.wang@arm.com>
11309 * aarch64-linux-nat.c
11310 (aarch64_linux_nat_target::read_description): Add pauth param.
11311 * aarch64-linux-tdep.c
11312 (aarch64_linux_core_read_description): Likewise.
11313 * aarch64-tdep.c (struct target_desc): Add in pauth.
11314 (aarch64_read_description): Add pauth param.
11315 (aarch64_gdbarch_init): Likewise.
11316 * aarch64-tdep.h (aarch64_read_description): Likewise.
11317 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11318 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11319 * features/Makefile: Add new files.
11320 * features/aarch64-pauth.c: New file.
11321 * features/aarch64-pauth.xml: New file.
11323 2019-03-20 Tom Tromey <tromey@adacore.com>
11325 * infrun.c (handle_inferior_event): Rename from
11326 handle_inferior_event_1. Create a scoped_value_mark.
11327 (handle_inferior_event): Remove.
11329 2019-03-19 Tom Tromey <tromey@adacore.com>
11331 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11332 * infrun.h (print_stop_event): Add "displays" parameter.
11333 * infrun.c (print_stop_event): Add "displays" parameter.
11335 2019-03-19 Pedro Alves <palves@redhat.com>
11337 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11338 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11339 to -1. Fix TABs vs spaces.
11340 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11341 * tui/tui-out.h (tui_ui_out) Add intro comments.
11342 <m_line, m_start_of_line>: In-class initialize, and add describing
11345 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11347 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11349 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11351 2019-03-18 Pedro Alves <palves@redhat.com>
11352 Eli Zaretskii <eliz@gnu.org>
11354 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11355 m_line and m_start_of_line.
11357 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11359 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11360 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11361 it returns a newline. This fixes a regression in TU mode, whereby
11362 the next line is output on the same screen line as the user input.
11364 2019-03-18 Tom Tromey <tromey@adacore.com>
11366 * minsyms.c (minimal_symbol_reader::install): Remove call to
11369 2019-03-18 Pedro Alves <palves@redhat.com>
11371 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11373 (apply_style): New, factored out from ...
11374 (apply_ansi_escape): ... this. Handle reverse video mode.
11375 (tui_set_reverse_mode): New function.
11376 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11377 * tui/tui-winsource.c (tui_show_source_line): Use
11378 tui_set_reverse_mode instead of setting A_STANDOUT.
11379 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11380 New setter methods.
11382 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11384 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11387 2019-03-18 Tom Tromey <tromey@adacore.com>
11389 * ada-lang.c (empty_array): Add "high" parameter.
11390 (ada_evaluate_subexp): Update.
11392 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11394 * unittests/string_view-selftests.c: Define
11395 _initialize_string_view_selftests unconditionally.
11397 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11400 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11402 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11405 * windows-nat.c (display_selector): Fix format specifiers.
11407 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11409 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11410 tui_refill_source_window instead of tui_refresh_win, to update the
11411 current execution line. This fixes redisplay of the current line
11412 when stepping through the code with "next" or "step".
11414 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11416 * source-cache.c (source_cache::get_source_lines): Call
11417 find_source_lines to initialize s->nlines. This fixes vertical
11418 scrolling of TUI source window when the DOWN arrow is pressed.
11420 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11422 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11423 linux-thread-db.c (_initialize_thread_db): Likewise.
11425 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11427 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11428 wclrtoeol in tui_show_source_line". This reverts changes made in
11429 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11431 2019-03-15 Tom Tromey <tom@tromey.com>
11433 * symtab.h (struct minimal_symbol): Derive from
11434 general_symbol_info.
11435 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11436 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11437 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11438 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11439 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11440 (MSYMBOL_SEARCH_NAME): Update.
11441 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11442 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11443 * minsyms.c (minimal_symbol_reader::record_full): Update.
11445 2019-03-15 Tom Tromey <tom@tromey.com>
11447 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11449 2019-03-15 Tom Tromey <tom@tromey.com>
11451 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11452 unique_xmalloc_ptr.
11453 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11455 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11456 (build_minimal_symbol_hash_tables)
11457 (minimal_symbol_reader::install): Update.
11459 2019-03-15 Tom Tromey <tom@tromey.com>
11461 * symtab.c (create_demangled_names_hash): Update.
11462 (symbol_set_names): Update.
11463 * objfiles.h (struct objfile_per_bfd_storage)
11464 <demangled_names_hash>: Now an htab_up.
11465 * objfiles.c (objfile_per_bfd_storage): Simplify.
11467 2019-03-15 Tom Tromey <tom@tromey.com>
11469 * objfiles.h (struct objfile_per_bfd_storage): Declare
11471 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11473 (get_objfile_bfd_data): Use new. Don't initialize
11475 (free_objfile_per_bfd_storage): Remove.
11476 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11478 2019-03-15 Tom Tromey <tom@tromey.com>
11480 * symfile.c (reread_symbols): Update.
11481 * objfiles.c (objfile::objfile): Update.
11482 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11483 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11485 (minimal_symbol_reader::install): Update.
11486 (terminate_minimal_symbol_table): Remove.
11487 * jit.c (jit_object_close_impl): Update.
11489 2019-03-15 Tom Tromey <tom@tromey.com>
11491 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11494 2019-03-15 Tom Tromey <tom@tromey.com>
11496 * objfiles.h (struct objfile_per_bfd_storage)
11497 <demangled_hash_languages>: Now a bitset.
11498 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11499 (lookup_minimal_symbol): Update.
11501 2019-03-15 Tom Tromey <tom@tromey.com>
11503 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11504 Don't return the symbol.
11505 * coffread.c (record_minimal_symbol): Use record_full.
11507 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11509 The MS-Windows port of ncurses fails to switch to a color pair if
11510 one or both of the colors are the implicit default colors. This
11511 change records the default colors when TUI is initialized, and
11512 then specifies them explicitly when a color pair uses the default
11513 colors. This allows color styling in TUI mode on MS-Windows.
11515 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11517 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11518 colors in ncurses_norm_attr.
11519 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11520 "none", replace it with the default color recorded in
11523 2019-03-14 Tom Tromey <tromey@adacore.com>
11525 * source-cache.h (class source_cache) <get_source_lines>: Return
11527 * source-cache.c (source_cache::extract_lines): Handle case where
11528 first_pos==npos. Return std::string.
11529 (source_cache::get_source_lines): Update.
11531 2019-03-14 Tom Tromey <tromey@adacore.com>
11533 * NEWS: Add item for "style sources" commands.
11534 * source-cache.c (source_cache::get_source_lines): Check
11536 * cli/cli-style.c (source_styling): New global.
11537 (_initialize_cli_style): Add "style sources" commands.
11538 (show_style_sources): New function.
11539 * cli/cli-style.h (source_styling): Declare.
11541 2019-03-14 Pedro Alves <palves@redhat.com>
11542 Tom Tromey <tromey@adacore.com>
11544 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11545 * tui/tui-winsource.c (tui_refill_source_window): New function,
11547 (tui_horizontal_source_scroll): ... here. Move some logic.
11548 * cli/cli-style.c (set_style_enabled): Notify new observable.
11549 * tui/tui-hooks.c (tui_redisplay_source): New function.
11550 (tui_attach_detach_observers): Attach or detach
11551 tui_redisplay_source.
11552 * observable.h (source_styling_changed): New observable.
11553 * observable.c: Define source_styling_changed observable.
11555 2019-03-13 Tom Tromey <tromey@adacore.com>
11557 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11558 (i386_gnu_nat_target::store_registers): Update.
11559 * target-debug.h (target_debug_print_std_string): New macro.
11560 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11561 * windows-tdep.c (display_one_tib): Update.
11562 * tui/tui-stack.c (tui_make_status_line): Update.
11563 * top.c (print_inferior_quit_action): Update.
11564 * thread.c (thr_try_catch_cmd): Update.
11565 (add_thread_with_info): Update.
11566 (thread_target_id_str): Update.
11567 (thr_try_catch_cmd): Update.
11568 (thread_command): Update.
11569 (thread_find_command): Update.
11570 * record-btrace.c (record_btrace_target::info_record)
11571 (record_btrace_resume_thread, record_btrace_target::resume)
11572 (record_btrace_cancel_resume, record_btrace_step_thread)
11573 (record_btrace_target::wait, record_btrace_target::wait)
11574 (record_btrace_target::wait, record_btrace_target::stop): Update.
11575 * progspace.c (print_program_space): Update.
11576 * process-stratum-target.c
11577 (process_stratum_target::thread_address_space): Update.
11578 * linux-fork.c (linux_fork_mourn_inferior)
11579 (detach_checkpoint_command, info_checkpoints_command)
11580 (linux_fork_context): Update.
11581 (linux_fork_detach): Update.
11582 (class scoped_switch_fork_info): Update.
11583 (delete_checkpoint_command): Update.
11584 * infrun.c (follow_fork_inferior): Update.
11585 (follow_fork_inferior): Update.
11586 (proceed_after_vfork_done): Update.
11587 (handle_vfork_child_exec_or_exit): Update.
11588 (follow_exec): Update.
11589 (displaced_step_prepare_throw): Update.
11590 (displaced_step_restore): Update.
11591 (start_step_over): Update.
11592 (resume_1): Update.
11593 (clear_proceed_status_thread): Update.
11595 (print_target_wait_results): Update.
11596 (do_target_wait): Update.
11597 (context_switch): Update.
11598 (stop_all_threads): Update.
11599 (restart_threads): Update.
11600 (finish_step_over): Update.
11601 (handle_signal_stop): Update.
11602 (switch_back_to_stepped_thread): Update.
11603 (keep_going_pass_signal): Update.
11604 (print_exited_reason): Update.
11605 (normal_stop): Update.
11606 * inferior.c (inferior_pid_to_str): Change return type.
11607 (print_selected_inferior): Update.
11608 (add_inferior): Update.
11609 (detach_inferior): Update.
11610 * dummy-frame.c (fprint_dummy_frames): Update.
11611 * dcache.c (dcache_info_1): Update.
11612 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11613 (btrace_fetch, btrace_clear): Update.
11614 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11615 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11617 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11618 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11619 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11620 * gdbarch.c, gdbarch.h: Rebuild.
11621 * gdbarch.sh (core_pid_to_str): Change return type.
11622 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11624 (windows_nat_target::pid_to_str): Change return type.
11625 (windows_delete_thread): Update.
11626 (windows_nat_target::attach): Update.
11627 (windows_nat_target::files_info): Update.
11628 * target-delegates.c: Rebuild.
11629 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11631 (sol_thread_target::pid_to_str): Change return type.
11632 * remote.c (class remote_target) <pid_to_str>: Change return
11634 (remote_target::pid_to_str): Change return type.
11635 (extended_remote_target::attach, remote_target::remote_stop_ns)
11636 (remote_target::remote_notif_remove_queued_reply)
11637 (remote_target::push_stop_reply, remote_target::disable_btrace):
11639 (extended_remote_target::attach): Update.
11640 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11642 (gdbsim_target::pid_to_str): Change return type.
11643 * ravenscar-thread.c (struct ravenscar_thread_target)
11644 <pid_to_str>: Change return type.
11645 (ravenscar_thread_target::pid_to_str): Change return type.
11646 * procfs.c (class procfs_target) <pid_to_str>: Change return
11648 (procfs_target::pid_to_str): Change return type.
11649 (procfs_target::attach): Update.
11650 (procfs_target::detach): Update.
11651 (procfs_target::fetch_registers): Update.
11652 (procfs_target::store_registers): Update.
11653 (procfs_target::wait): Update.
11654 (procfs_target::files_info): Update.
11655 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11656 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11658 (nto_procfs_target::pid_to_str): Change return type.
11659 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11660 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11662 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11663 (exit_lwp): Update.
11664 (attach_proc_task_lwp_callback, get_detach_signal)
11665 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11666 (linux_nat_target::resume, wait_lwp, stop_callback)
11667 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11668 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11669 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11670 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11671 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11673 (inf_ptrace_target::attach): Update.
11674 (inf_ptrace_target::files_info): Update.
11675 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11677 (go32_nat_target::pid_to_str): Change return type.
11678 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11679 (gnu_nat_target::wait): Update.
11680 (gnu_nat_target::wait): Update.
11681 (gnu_nat_target::resume): Update.
11682 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11683 (fbsd_nat_target::wait): Update.
11684 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11686 (darwin_nat_target::attach): Update.
11687 * corelow.c (class core_target) <pid_to_str>: Change return type.
11688 (core_target::pid_to_str): Change return type.
11689 * target.c (normal_pid_to_str): Change return type.
11690 (default_pid_to_str): Likewise.
11691 (target_pid_to_str): Change return type.
11692 (target_translate_tls_address): Update.
11693 (target_announce_detach): Update.
11694 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11696 (bsd_uthread_target::pid_to_str): Change return type.
11697 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11699 (bsd_kvm_target::pid_to_str): Change return type.
11700 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11702 (aix_thread_target::pid_to_str): Change return type.
11703 * target.h (struct target_ops) <pid_to_str>: Change return type.
11704 (target_pid_to_str, normal_pid_to_str): Likewise.
11705 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11707 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11709 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11711 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11713 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11715 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11718 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11720 * NEWS: Mention that the new default MI version is 3. Mention
11721 changes to the output of commands and events that deal with
11722 multi-location breakpoints.
11723 * breakpoint.c: Include "mi/mi-out.h".
11724 (print_one_breakpoint): Change output syntax if using MI version
11726 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11728 (mi_multi_location_breakpoint_output_fixed): New.
11729 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11730 (mi_cmd_fix_multi_location_breakpoint_output): New.
11731 (mi_multi_location_breakpoint_output_fixed): New.
11732 * mi/mi-cmds.c (mi_cmds): Register command
11733 -fix-multi-location-breakpoint-output.
11734 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11737 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11739 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11740 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11741 instantiate mi_ui_out based on interpreter name.
11742 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11743 * mi/mi-main.c (mi_load_progress): Likewise.
11745 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11747 * NEWS: Combine separate "New targets" sections for 8.3.
11749 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11751 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11752 (ppcfbsd_init_abi): Install gdbarch
11753 "fetch_tls_load_module_address" and "get_thread_local_address"
11756 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11758 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11759 (riscv_fbsd_init_abi): Install gdbarch
11760 "fetch_tls_load_module_address" and "get_thread_local_address"
11763 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11765 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11766 (i386fbsd_init_abi): Install gdbarch
11767 "fetch_tls_load_module_address" and "get_thread_local_address"
11770 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11772 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11773 (amd64fbsd_init_abi): Install gdbarch
11774 "fetch_tls_load_module_address" and "get_thread_local_address"
11777 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11779 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11780 (struct fbsd_pspace_data): New type.
11781 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11782 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11783 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11784 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11785 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11787 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11789 * gdbtypes.c (lookup_struct_elt): New function.
11790 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11791 * gdbtypes.h (struct struct_elt): New type.
11792 (lookup_struct_elt): New prototype.
11794 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11796 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11797 remove disabled code block.
11799 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11801 * gdbarch.sh (get_thread_local_address): New method.
11802 * gdbarch.h, gdbarch.c: Regenerate.
11803 * target.c (target_translate_tls_address): Use
11804 gdbarch_get_thread_local_address if present instead of
11805 target::get_thread_local_address.
11807 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11809 * target.h (target::get_thread_local_address): Update comment.
11811 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11813 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11814 objfile->separate_debug_objfile_backlink if not NULL.
11816 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11818 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11819 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11820 (amd64bsd_store_inferior_registers): Likewise.
11821 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11822 Enable segment base registers.
11823 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11824 PT_GETFSBASE and PT_GETGSBASE.
11825 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11827 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11828 segment base registers.
11829 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11831 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11833 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11834 Update calls to i386_target_description to add 'segments'
11836 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11837 add segment base registers.
11838 * arch/i386.c (i386_create_target_description): Add 'segments'
11839 parameter to enable segment base registers.
11840 * arch/i386.h (i386_create_target_description): Likewise.
11841 * features/i386/32bit-segments.xml: New file.
11842 * features/i386/32bit-segments.c: Generate.
11843 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11844 call to i386_target_description to add 'segments' parameter.
11845 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11846 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11847 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11848 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11849 if feature is present.
11850 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11851 Add 'segments' parameter to call to i386_target_description.
11852 (i386_target_description): Add 'segments' parameter to enable
11853 segment base registers.
11854 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11855 to call to i386_target_description.
11856 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11857 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11858 Define I386_NUM_REGS.
11859 (i386_target_description): Add 'segments' parameter to enable
11860 segment base registers.
11862 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11865 * source-cache.c: #undef open and close, to avoid unresolved
11866 externals during linking.
11868 2019-03-12 Tom Tromey <tromey@adacore.com>
11870 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11871 const. Add initializers.
11872 (_initialize_remote): Don't initialize ptid globals.
11874 2019-03-12 Pedro Alves <palves@redhat.com>
11876 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11878 2019-03-12 Pedro Alves <palves@redhat.com>
11880 * cp-name-parser.y (main): Remove unused 'len' variable.
11882 2019-03-12 Tom Tromey <tromey@adacore.com>
11884 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11885 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11887 2019-03-12 Tom Tromey <tromey@adacore.com>
11889 * linux-nat.c (iterate_over_lwps): Update.
11890 (stop_callback): Remove parameter.
11891 (stop_wait_callback, detach_callback, resume_set_callback)
11892 (select_singlestep_lwp_callback, set_ignore_sigint)
11893 (status_callback, resumed_callback, resume_clear_callback)
11894 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11896 (linux_nat_target::detach, linux_nat_target::resume)
11897 (linux_stop_and_wait_all_lwps, select_event_lwp)
11898 (linux_nat_filter_event, linux_nat_wait_1)
11899 (linux_nat_target::kill, linux_nat_target::stop)
11900 (linux_nat_target::stop): Update.
11901 (linux_nat_resume_callback): Change type.
11902 (resume_stopped_resumed_lwps, count_events_callback)
11903 (select_event_lwp_callback): Likewise.
11904 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11905 * arm-linux-nat.c (struct update_registers_data): Remove.
11906 (update_registers_callback): Change type.
11907 (arm_linux_insert_hw_breakpoint1): Update.
11908 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11910 (x86_linux_dr_set_addr): Update.
11911 (x86_linux_dr_set_control): Update.
11912 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11913 (iterate_over_lwps): Use gdb::function_view.
11914 * nat/aarch64-linux-hw-point.c (struct
11915 aarch64_dr_update_callback_param): Remove.
11916 (debug_reg_change_callback): Change type.
11917 (aarch64_notify_debug_reg_change): Update.
11918 * s390-linux-nat.c (s390_refresh_per_info): Update.
11920 2019-03-11 Tom Tromey <tromey@adacore.com>
11922 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11923 redundant assignment to "this_cu".
11925 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11927 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11929 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11931 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11933 (rank_one_type): ... this.
11935 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11937 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11939 (rank_one_type): ... this.
11941 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11943 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11945 (rank_one_type): ... this.
11947 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11949 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11951 (rank_one_type): ... this.
11953 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11955 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11957 (rank_one_type): ... this.
11959 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11961 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11963 (rank_one_type): ... this.
11965 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11967 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11969 (rank_one_type): ... this.
11971 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11973 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11975 (rank_one_type): ... this.
11977 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11979 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11981 (rank_one_type): ... this.
11983 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11985 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11987 (rank_one_type): ... this.
11989 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11991 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11993 (rank_one_type): ... this.
11995 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11997 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11999 (rank_one_type): ... this.
12001 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12003 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12004 inferior-events' shows the example events.
12006 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12008 Support styling on native MS-Windows console
12011 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12012 on MS-Windows if $TERM is not defined.
12014 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12016 * posix-hdep.c (gdb_console_fputs):
12017 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12019 * ui-file.h (gdb_console_fputs): Add prototype.
12021 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12022 back to fputs only if the former returns zero.
12024 2019-03-07 Tom Tromey <tom@tromey.com>
12026 * symmisc.c (print_symbol_bcache_statistics): Update.
12027 (print_objfile_statistics): Update.
12028 * symfile.c (allocate_symtab): Update.
12029 * stabsread.c: Don't include bcache.h.
12030 * psymtab.h (struct psymbol_bcache): Don't declare.
12031 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12032 (psymbol_bcache_init, psymbol_bcache_free)
12033 (psymbol_bcache_get_bcache): Don't declare.
12034 * psymtab.c (struct psymbol_bcache): Remove.
12035 (psymtab_storage::psymtab_storage): Update.
12036 (psymtab_storage::~psymtab_storage): Update.
12037 (psymbol_bcache_init, psymbol_bcache_free)
12038 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12039 (add_psymbol_to_bcache): Update.
12040 (allocate_psymtab): Update.
12041 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12042 macro_cache>: No longer pointers.
12043 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12044 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12045 * macrotab.c (macro_bcache): Update.
12046 * macroexp.c: Don't include bcache.h.
12047 * gdbtypes.c (check_types_worklist): Update.
12048 (types_deeply_equal): Remove TRY/CATCH. Update.
12049 * elfread.c (elf_symtab_read): Update.
12050 * dwarf2read.c: Don't include bcache.h.
12051 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12052 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12053 (print_bcache_statistics, bcache_memory_used): Don't declare.
12054 (struct bcache): Move from bcache.c. Add constructor, destructor,
12055 methods. Rename all data members.
12056 * bcache.c (struct bcache): Move to bcache.h.
12057 (bcache::expand_hash_table): Rename from expand_hash_table.
12059 (bcache::insert): Rename from bcache_full.
12060 (bcache::compare): Rename from bcache_compare.
12061 (bcache_xmalloc): Remove.
12062 (bcache::~bcache): Rename from bcache_xfree.
12063 (bcache::print_statistics): Rename from print_bcache_statistics.
12064 (bcache::memory_used): Rename from bcache_memory_used.
12066 2019-03-07 Pedro Alves <palves@redhat.com>
12068 * infrun.c (normal_stop): Also check for
12069 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12071 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12073 * f-lang.c (value_from_host_double): Moved to...
12074 * value.c (value_from_host_double): ...here.
12075 * value.h (value_from_host_double): Declare.
12076 * guile/scm-math.c (vlscm_convert_typed_number): Use
12077 value_from_host_double.
12078 (vlscm_convert_number): Likewise.
12079 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12080 * python/py-value.c (convert_value_from_python): Likewise.
12082 2019-03-06 Tom Tromey <tom@tromey.com>
12084 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12086 2019-03-06 Tom Tromey <tom@tromey.com>
12088 * utils.h (free_current_contents): Don't declare.
12089 * utils.c (free_current_contents): Remove.
12091 2019-03-06 Tom Tromey <tom@tromey.com>
12093 * top.c (quit_force): Update.
12094 * main.c (captured_command_loop): Update.
12095 * common/new-op.c (operator new): Update.
12096 * common/common-exceptions.c (struct catcher)
12097 <save_cleanup_chain>: Remove member.
12098 (exceptions_state_mc_init): Update.
12099 (exception_try_scope_entry): Return nullptr.
12100 (exception_try_scope_exit, exception_rethrow)
12101 (throw_exception_sjlj, throw_exception_cxx): Update.
12102 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12103 (all_cleanups, do_cleanups, discard_cleanups)
12104 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12105 (restore_cleanups, restore_final_cleanups): Don't declare.
12106 (do_final_cleanups): Remove parameter.
12107 * common/cleanups.c (cleanup_chain, make_cleanup)
12108 (make_cleanup_dtor, all_cleanups, do_cleanups)
12109 (discard_my_cleanups, discard_cleanups)
12110 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12111 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12112 (null_cleanup): Remove.
12113 (do_final_cleanups): Remove parameter.
12115 2019-03-06 Tom Tromey <tom@tromey.com>
12117 * remote.c (remote_target::remote_parse_stop_reply): Use
12118 unique_xmalloc_ptr.
12120 2019-03-06 Tom Tromey <tom@tromey.com>
12122 * stabsread.c (struct stabs_field_info): Rename from field_info.
12123 <list, fnlist>: Add initializers.
12124 <obstack>: New member.
12125 (read_member_functions, read_struct_fields, read_baseclasses):
12126 Allocate on obstack. Don't use cleanups.
12127 (read_one_struct_field, read_member_functions, read_struct_fields)
12128 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12129 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12130 (read_struct_type): Update.
12132 2019-03-06 Tom Tromey <tom@tromey.com>
12134 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12135 * common/filestuff.h (make_cleanup_close): Don't declare.
12136 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12139 2019-03-06 Tom Tromey <tom@tromey.com>
12141 * solib-aix.c: Use make_scope_exit.
12143 2019-03-06 Tom Tromey <tom@tromey.com>
12145 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12146 Use make_scope_exit.
12148 2019-03-06 Tom Tromey <tom@tromey.com>
12150 * solib-svr4.c (disable_probes_interface): Remove parameter.
12151 (svr4_handle_solib_event): Use make_scope_exit.
12153 2019-03-06 Tom Tromey <tom@tromey.com>
12155 * remote.c (struct stop_reply_deleter): Remove.
12156 (stop_reply_up): Update.
12157 (struct stop_reply): Derive from notif_event. Don't typedef.
12158 <regcache>: Now a std::vector.
12159 (stop_reply_xfree): Remove.
12160 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12161 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12162 (remote_target::discard_pending_stop_replies): Use delete.
12163 (remote_target::remote_parse_stop_reply): Update.
12164 (remote_target::process_stop_reply): Update.
12165 * remote-notif.h (struct notif_event): Add virtual destructor.
12166 Remove "dtr" member.
12167 (struct notif_client) <alloc_event>: Return a unique_ptr.
12168 (notif_event_xfree): Don't declare.
12169 (notif_event_up): New typedef.
12170 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12171 (notif_event_xfree, do_notif_event_xfree): Remove.
12172 (remote_notif_state_xfree): Update.
12174 2019-03-06 Tom Tromey <tom@tromey.com>
12176 * infrun.c (displaced_step_clear_cleanup): Now a
12177 forward_scope_exit type.
12178 (displaced_step_prepare_throw): Update.
12179 (displaced_step_fixup): Update.
12181 2019-03-06 Tom Tromey <tom@tromey.com>
12183 * inferior.h (class inferior): Update comment.
12184 * gdbthread.h (class thread_info): Update comment.
12186 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12187 Tom Tromey <tom@tromey.com>
12189 * stabsread.h (struct stab_section_list): Remove.
12190 (coffstab_build_psymtabs): Update.
12191 * dbxread.c (symbuf_sections): Now a std::vector.
12192 (sect_idx): New global.
12193 (fill_symbuf): Update.
12194 (coffstab_build_psymtabs): Change type of stabsects parameter.
12196 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12198 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12199 (coff_locate_sections): Update.
12200 (coff_symfile_read): Remove cleanups. Update.
12201 (init_stringtab): Add storage parameter.
12202 (free_stringtab, free_stringtab_cleanup): Remove.
12203 (init_lineno): Add storage parameter.
12204 (free_linetab, free_linetab_cleanup): Remove.
12206 2019-03-06 Pedro Alves <palves@redhat.com>
12208 * linux-fork.c (fork_info::clobber_regs): Delete.
12209 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12210 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12212 (scoped_switch_fork_info::scoped_switch_fork_info)
12213 (checkpoint_command, linux_fork_context): Adjust
12214 fork_save_infrun_state calls.
12216 2019-03-06 Pedro Alves <palves@redhat.com>
12218 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12219 (inf_has_multiple_threads): Return 'bool' and rewrite using
12220 inferior_info::threads().
12222 2019-03-06 Pedro Alves <palves@redhat.com>
12224 * linux-fork.c: Include <list>.
12225 (fork_list): Now a std::list instance.
12226 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12227 (forks_exist_p, find_last_fork): Adjust.
12228 (new_fork): Delete.
12230 (add_fork): Adjust.
12231 (free_fork): Delete, folded into fork_info::~fork_info().
12232 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12234 (init_fork_list): Delete.
12235 (linux_fork_killall, linux_fork_mourn_inferior)
12236 (linux_fork_detach, info_checkpoints_command): Adjust.
12237 (_initialize_linux_fork): No longer call init_fork_list.
12239 2019-03-06 Pedro Alves <palves@redhat.com>
12241 * linux-fork.c (new_fork): New, split out of ...
12242 (add_fork): ... this. Return void. Move "first fork" special
12243 case from here, to ...
12244 (checkpoint_command): ... here.
12245 * linux-linux.h (add_fork): Return void.
12247 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12249 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12251 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12252 Chris January <chris.january@arm.com>
12253 David Lecomber <david.lecomber@arm.com>
12255 * f-exp.y: New token, UNOP_INTRINSIC.
12256 (exp): New pattern using UNOP_INTRINSIC token.
12257 (f77_keywords): Add 'abs' keyword.
12258 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12259 (value_from_host_double): New function.
12260 (evaluate_subexp_f): Support UNOP_ABS.
12262 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12264 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12267 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12269 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12270 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12271 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12273 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12275 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12277 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12278 Chris January <chris.january@arm.com>
12280 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12281 * f-exp.y: Define 'KIND' token.
12282 (exp): New pattern for KIND expressions.
12283 (ptype): Handle types with a kind extension.
12284 (direct_abs_decl): Extend to spot kind extensions.
12285 (f77_keywords): Add 'kind' to the list.
12286 (push_kind_type): New function.
12287 (convert_to_kind_type): New function.
12288 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12289 * parse.c (operator_length_standard): Likewise.
12290 * parser-defs.h (enum type_pieces): Add tp_kind.
12291 * std-operator.def: Add UNOP_KIND.
12293 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12295 * f-exp.y (f_parse): Set yydebug.
12297 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12299 * f-lang.c (evaluate_subexp_f): New function.
12300 (exp_descriptor_f): New global.
12301 (f_language_defn): Use exp_descriptor_f instead of
12302 exp_descriptor_standard.
12304 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12306 * f-exp.y (struct token): Add comments.
12307 (dot_ops): Remove uppercase versions and the end marker.
12308 (f77_keywords): Likewise.
12309 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12310 entries in the dot_ops array are case insensitive, and use
12311 strncasecmp to compare strings. Also some whitespace cleanup in
12312 this area. Similar for the f77_keywords array, except entries in
12313 this list might be case sensitive.
12315 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12317 * f-exp.y (struct f77_boolean_val): Add comments.
12318 (boolean_values): Remove uppercase versions, and end marker.
12319 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12320 and use strncasecmp to achieve case insensitivity. Additionally,
12321 perform whitespace cleanup around this code.
12323 2019-03-06 Tom Tromey <tromey@adacore.com>
12325 * remote-sim.c (gdbsim_target_open): Use result of
12328 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12329 Dirk Schubert <dirk.schubert@arm.com>
12330 Chris January <chris.january@arm.com>
12332 * eval.c (evaluate_subexp_standard): Call Fortran argument
12334 * f-lang.c (struct value): A value which can be passed into a
12335 Fortran function call.
12336 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12338 (struct type): Value ready for a Fortran function call.
12339 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12341 * f-lang.h (fortran_argument_convert): Declaration.
12342 (fortran_preserve_arg_pointer): Declaration.
12343 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12345 2019-03-05 Tom Tromey <tromey@adacore.com>
12347 * python/py-prettyprint.c (print_string_repr): Remove #if.
12348 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12350 2019-03-05 Tom Tromey <tromey@adacore.com>
12352 * target.c (the_dummy_target): Move later. Change type to
12354 (initialize_targets): Don't initialize the_dummy_target.
12356 2019-03-05 Tom Tromey <tromey@adacore.com>
12358 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12359 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12361 2019-03-05 Tom Tromey <tromey@adacore.com>
12363 * windows-nat.c (windows_nat_target::attach)
12364 (windows_nat_target::detach): Don't call gdb_flush.
12365 * valprint.c (generic_val_print, val_print, val_print_string):
12366 Don't call gdb_flush.
12367 * utils.c (defaulted_query): Don't call gdb_flush.
12368 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12369 * target.c (target_announce_detach): Don't call gdb_flush.
12370 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12371 * remote.c (extended_remote_target::attach): Don't call
12373 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12374 * printcmd.c (do_examine): Don't call gdb_flush.
12375 (info_display_command): Don't call gdb_flush.
12376 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12377 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12378 * memattr.c (info_mem_command): Don't call gdb_flush.
12379 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12380 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12381 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12382 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12383 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12384 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12385 (gnu_nat_target::detach): Don't call gdb_flush.
12386 * f-valprint.c (f_val_print): Don't call gdb_flush.
12387 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12388 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12389 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12391 * c-valprint.c (c_val_print): Don't call gdb_flush.
12392 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12394 2019-03-05 Tom Tromey <tromey@adacore.com>
12396 * varobj.c (update_dynamic_varobj_children): Update.
12397 (install_default_visualizer): Use reset, not release.
12398 * value.c (set_internalvar): Update.
12399 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12400 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12401 ATTRIBUTE_UNUSED_RESULT.
12403 2019-03-05 Tom Tromey <tromey@adacore.com>
12405 * remote.c (class scoped_remote_fd) <release>: Add
12406 ATTRIBUTE_UNUSED_RESULT.
12408 2019-03-05 Tom Tromey <tromey@adacore.com>
12410 * macroexp.c (struct macro_buffer) <release>: Add
12411 ATTRIBUTE_UNUSED_RESULT.
12413 2019-03-05 Tom Tromey <tromey@adacore.com>
12415 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12416 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12417 ATTRIBUTE_UNUSED_RESULT.
12419 2019-03-05 Tom Tromey <tromey@adacore.com>
12421 * common/scoped_fd.h (class scoped_fd) <release>: Add
12422 ATTRIBUTE_UNUSED_RESULT.
12424 2019-03-05 Tom Tromey <tromey@adacore.com>
12426 * parser-defs.h (struct parser_state) <release>: Add
12427 ATTRIBUTE_UNUSED_RESULT.
12429 2019-03-05 Tom Tromey <tromey@adacore.com>
12431 * utils.h (class gdb_argv) <release>: Add
12432 ATTRIBUTE_UNUSED_RESULT.
12433 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12435 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12437 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12438 for-loop range, to avoid compiler warnings.
12440 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12441 avoid compiler warnings about unused variables.
12443 * NEWS: Mention end of support for native debugging on MS-Windows
12447 * common/netstuff.c:
12448 * gdbserver/gdbreplay.c
12449 * gdbserver/remote-utils.c:
12451 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12452 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12453 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12454 'getaddrinfo' and 'freeaddrinfo' were not available before
12455 Windows XP, and mingw.org's MinGW headers by default define
12456 _WIN32_WINNT to 0x500.
12458 2019-03-01 Gary Benson <gbenson@redhat.com>
12460 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12462 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12463 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12466 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12467 set_sigint_trap, clear_sigint_trap.
12469 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12471 * target.c (target_detach): Clear the regcache and the
12474 2019-02-27 Pedro Alves <palves@redhat.com>
12476 * utils.c (set_screen_size): When we cap the height/width sizes,
12477 tweak the corresponding command variable to show "unlimited":
12479 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12480 Pedro Alves <palves@redhat.com>
12482 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12483 before calling rl_set_screen_size.
12485 2019-02-27 Tom Tromey <tromey@adacore.com>
12487 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12489 * python/py-value.c: Remove Python 2.4 workaround.
12490 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12492 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12493 Python 2.4 workaround.
12494 * python/python-internal.h: Remove Python 2.4 comment.
12495 (Py_ssize_t): Don't define.
12496 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12497 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12498 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12499 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12500 * python/python.c (do_start_initialization): Remove Python 2.4
12502 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12503 (print_children): Remove Python 2.4 workaround.
12504 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12506 (CHARBUFFERPROC_NAME): Remove.
12507 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12508 Python 2.4 workaround.
12510 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12512 * NEWS: Note minimum Python version.
12514 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12516 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12517 code from these functions. Remove corresponding ifdefs. Use
12518 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12519 Remove gotos and target of gotos.
12520 (infpy_search_memory): Likewise.
12522 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12524 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12525 (hppa_gdbarch_init): Don't register deleted functions with
12528 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12530 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12531 (h8300_unwind_sp): Delete.
12532 (h8300_dummy_id): Delete.
12533 (h8300_gdbarch_init): Don't register deleted functions with
12536 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12538 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12539 (ft32_unwind_pc): Delete.
12540 (ft32_unwind_sp): Delete.
12541 (ft32_gdbarch_init): Don't register deleted functions with
12544 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12546 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12547 (frv_unwind_pc): Delete.
12548 (frv_unwind_sp): Delete.
12549 (frv_gdbarch_init): Don't register deleted functions with
12552 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12554 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12555 (riscv_unwind_pc): Delete.
12556 (riscv_unwind_sp): Delete.
12557 (riscv_gdbarch_init): Don't register deleted functions with
12560 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12562 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12563 (csky_unwind_pc): Delete.
12564 (csky_unwind_sp): Delete.
12565 (csky_gdbarch_init): Don't register deleted functions with
12568 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12570 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12571 (cris_unwind_pc): Delete.
12572 (cris_unwind_sp): Delete.
12573 (cris_gdbarch_init): Don't register deleted functions with
12576 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12578 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12579 (bfin_unwind_pc): Delete.
12580 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12582 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12584 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12585 (arm_unwind_pc): Delete.
12586 (arm_unwind_sp): Delete.
12587 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12589 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12591 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12592 (arc_unwind_pc): Delete.
12593 (arc_unwind_sp): Delete.
12594 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12596 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12598 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12599 (alpha_unwind_pc): Delete.
12600 (alpha_gdbarch_init): Don't register deleted functions with
12603 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12605 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12606 (aarch64_unwind_pc): Delete.
12607 (aarch64_unwind_sp): Delete.
12608 (aarch64_gdbarch_init): Don't register deleted functions with
12611 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12613 * gdbtypes.c (type_align): Don't consider static members when
12614 computing structure alignment.
12616 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12618 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12619 return 0 for other types.
12620 * arch-utils.c (default_type_align): Always return 0.
12621 * gdbarch.h: Regenerate.
12622 * gdbarch.sh (type_align): Extend comment.
12623 * gdbtypes.c (type_align): Add additional comments, always call
12624 gdbarch_type_align before applying the default rules.
12625 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12626 generic code will then apply a suitable default.
12627 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12628 types, return 0 for other types.
12630 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12632 * NEWS: Create a new section for the next release branch.
12633 Rename the section of the current branch, now that it has
12636 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12638 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12639 * version.in: Bump version to 8.3.50.DATE-git.
12641 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12643 * aix-thread.c (ptid_cmp): Remove unused variable.
12644 (get_signaled_thread): Likewise.
12645 (store_regs_user_thread): Likewise.
12646 (store_regs_kernel_thread): Likewise.
12647 (fetch_regs_kernel_thread): Remove shadowed variable.
12649 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12651 * features/riscv/32bit-cpu.xml: Add register numbers.
12652 * features/riscv/32bit-fpu.c: Regenerate.
12653 * features/riscv/32bit-fpu.xml: Add register numbers.
12654 * features/riscv/64bit-cpu.xml: Add register numbers.
12655 * features/riscv/64bit-fpu.c: Regenerate.
12656 * features/riscv/64bit-fpu.xml: Add register numbers.
12658 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12660 * NEWS: Mention two argument form of gdb.Value constructor.
12661 * python/py-value.c (convert_buffer_and_type_to_value): New
12663 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12664 Add support for handling an optional second argument. Call
12665 convert_buffer_and_type_to_value as appropriate.
12666 * python/python-internal.h (Py_buffer_deleter): New struct.
12667 (Py_buffer_up): New typedef.
12669 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12671 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12672 instead of releasing ownership.
12674 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12676 * dwarf2read.c (open_and_init_dwp_file): Call
12677 elf_numsections instead of bfd_count_sections to initialize
12678 dwp_file->num_sections.
12680 2019-02-25 Tom Tromey <tromey@adacore.com>
12682 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12684 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12686 * gcore.in: Add '--readnever' option when invoking GDB.
12688 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12690 * MAINTAINERS: Update my email address.
12692 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12694 * build-id.c (build_id_to_debug_bfd_1): New function.
12695 (build_id_to_debug_bfd): Look for separate debug file in
12698 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12700 * gdbarch.sh: Update the copyright year range that is placed into
12703 2019-02-22 Keith Seitz <keiths@redhat.com>
12706 * linespec.c (create_sals_line_offset): Search for the default
12707 symtab's filename instead of its fullname.
12709 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12711 * NEWS: Update style defaults.
12713 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12715 * main.c (captured_main_1): Disable styling in batch mode.
12717 2019-02-20 Tom Tromey <tom@tromey.com>
12719 * symtab.c (symtab_symbol_info): Fix typos.
12721 2019-02-20 Tom Tromey <tromey@adacore.com>
12723 * findcmd.c (_initialize_mem_search): Use upper case for
12724 metasyntactic variables.
12726 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12728 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12729 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12731 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12733 * top.h (source_file_name): Change to std::string.
12734 * top.c (source_file_name): Likewise.
12735 (command_line_input): Adjust.
12736 * cli/cli-script.c (script_from_file): Adjust.
12738 2019-02-19 Tom Tromey <tromey@adacore.com>
12740 * ravenscar-thread.c
12741 (ravenscar_thread_target::update_thread_list): Don't call
12742 ada_build_task_list.
12743 * ada-lang.h (ada_build_task_list): Don't declare.
12744 * ada-tasks.c (struct ada_tasks_inferior_data)
12745 <task_list_valid_p>: Now bool.
12746 (read_known_tasks, ada_task_list_changed)
12747 (ada_tasks_invalidate_inferior_data): Update.
12748 (read_known_tasks_array): Return bool.
12749 (read_known_tasks_list): Likewise.
12750 (read_known_tasks): Return void.
12751 (ada_build_task_list): Now static.
12753 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12755 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12756 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12758 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12760 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12761 variant for ada_tasks_pspace_data_handle and
12762 ada_tasks_inferior_data_handle.
12763 (ada_tasks_pspace_data_cleanup): New function.
12764 (ada_tasks_inferior_data_cleanup): New function.
12766 2019-02-17 Tom Tromey <tom@tromey.com>
12768 * macrotab.h (macro_source_fullname): Return a std::string.
12769 * macrotab.c (macro_include, check_for_redefinition)
12770 (macro_undef, macro_lookup_definition, foreach_macro)
12771 (foreach_macro_in_scope): Update.
12772 (macro_source_fullname): Return a std::string.
12773 * macrocmd.c (show_pp_source_pos): Update.
12775 2019-02-17 Tom Tromey <tom@tromey.com>
12777 * macrocmd.c (show_pp_source_pos): Style the file names.
12779 2019-02-17 Tom Tromey <tom@tromey.com>
12782 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12784 2019-02-17 Tom Tromey <tom@tromey.com>
12786 * ada-lang.c (user_select_syms): Use filtered printing.
12787 * utils.c (wrap_style): New global.
12788 (desired_style): Remove.
12789 (emit_style_escape): Add stream parameter.
12790 (set_output_style, reset_terminal_style, prompt_for_continue):
12792 (flush_wrap_buffer): Only flush gdb_stdout.
12793 (wrap_here): Set wrap_style.
12794 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12795 treat escape sequences as a character. Change when wrap buffer is
12797 (fputs_styled): Do not set the output style when the default is
12799 * ui-style.h (struct ui_file_style) <is_default>: New method.
12800 * source.c (print_source_lines_base): Emit escape sequences in one
12803 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12805 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12806 integers and enumeration types.
12808 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12810 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12811 instead of lookup_symbol_in_language
12812 (do_exact_match): New function.
12813 (ada_get_symbol_name_matcher): Return do_exact_match when
12814 doing a verbatim match.
12816 2019-02-15 Tom Tromey <tromey@adacore.com>
12818 * ravenscar-thread.c (ravenscar_thread_target::resume)
12819 (ravenscar_thread_target::wait): Special case wildcard requests.
12821 2019-02-15 Tom Tromey <tromey@adacore.com>
12823 * ravenscar-thread.c (base_ptid): Remove.
12824 (struct ravenscar_thread_target) <close>: New method.
12825 <m_base_ptid>: New member.
12826 <update_inferior_ptid, active_task, task_is_currently_active,
12827 runtime_initialized>: Declare methods.
12828 <ravenscar_thread_target>: Add constructor.
12829 (ravenscar_thread_target::task_is_currently_active)
12830 (ravenscar_thread_target::update_inferior_ptid)
12831 (ravenscar_runtime_initialized): Rename. Now methods.
12832 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12833 (ravenscar_thread_target::update_thread_list): Update.
12834 (ravenscar_thread_target::active_task): Now method.
12835 (ravenscar_thread_target::store_registers)
12836 (ravenscar_thread_target::prepare_to_store)
12837 (ravenscar_thread_target::prepare_to_store)
12838 (ravenscar_thread_target::mourn_inferior): Update.
12839 (ravenscar_inferior_created): Use "new" to create target.
12840 (ravenscar_thread_target::get_ada_task_ptid): Update.
12841 (_initialize_ravenscar): Don't initialize base_ptid.
12842 (ravenscar_ops): Remove global.
12844 2019-02-15 Tom Tromey <tromey@adacore.com>
12846 * target.h (push_target): Declare new overload.
12847 * target.c (push_target): New overload, taking an rvalue reference.
12848 * remote.c (remote_target::open_1): Use push_target overload.
12849 * corelow.c (core_target_open): Use push_target overload.
12851 2019-02-15 Tom Tromey <tromey@adacore.com>
12853 * ravenscar-thread.c (is_ravenscar_task)
12854 (ravenscar_task_is_currently_active): Return bool.
12855 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12856 (_initialize_ravenscar): Remove "(void)".
12857 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12860 2019-02-15 Tom Tromey <tromey@adacore.com>
12862 * ravenscar-thread.c (ravenscar_runtime_initializer)
12863 (has_ravenscar_runtime, get_running_thread_id)
12864 (ravenscar_thread_target::resume): Fix indentation.
12866 2019-02-15 Tom Tromey <tromey@adacore.com>
12868 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12869 from ravenscar_arch_ops.
12870 (sparc_ravenscar_ops::fetch_registers)
12871 (sparc_ravenscar_ops::store_registers): Now methods.
12872 (sparc_ravenscar_prepare_to_store): Remove.
12873 (sparc_ravenscar_ops): Redefine.
12874 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12875 methods and destructor. Remove members.
12876 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12877 (ravenscar_thread_target::store_registers)
12878 (ravenscar_thread_target::prepare_to_store): Update.
12879 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12881 (struct ppc_ravenscar_powerpc_ops): Derive from
12882 ravenscar_arch_ops.
12883 (ppc_ravenscar_powerpc_ops::fetch_registers)
12884 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12885 (ppc_ravenscar_powerpc_ops): Redefine.
12886 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12887 (ppc_ravenscar_e500_ops::fetch_registers)
12888 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12889 (ppc_ravenscar_e500_ops): Redefine.
12890 * aarch64-ravenscar-thread.c
12891 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12892 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12893 (aarch64_ravenscar_fetch_registers)
12894 (aarch64_ravenscar_store_registers): Now methods.
12895 (aarch64_ravenscar_ops): Redefine.
12897 2019-02-15 Tom Tromey <tromey@adacore.com>
12899 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12900 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12901 (ravenscar_thread_target::stopped_by_watchpoint)
12902 (ravenscar_thread_target::stopped_data_address)
12903 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12905 2019-02-15 Tom Tromey <tromey@adacore.com>
12907 * ravenscar-thread.c: Fix some typos.
12909 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12910 Tom Tromey <tromey@adacore.com>
12912 * ada-lang.c (ada_exception_sal): Change addr_string to a
12914 (create_ada_exception_catchpoint): Update.
12916 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12917 Tom Tromey <tromey@adacore.com>
12919 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12920 (bp_location_ops): Remove.
12921 (base_breakpoint_allocate_location): Update.
12922 (free_bp_location): Update.
12923 * ada-lang.c (class ada_catchpoint_location)
12924 <ada_catchpoint_location>: Remove ops parameter.
12925 (ada_catchpoint_location_dtor): Remove.
12926 (ada_catchpoint_location_ops): Remove.
12927 (allocate_location_exception): Update.
12928 * breakpoint.h (struct bp_location_ops): Remove.
12929 (class bp_location) <bp_location>: Remove bp_location_ops
12931 <~bp_location>: Add destructor.
12934 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12935 Pedro Alves <palves@redhat.com>
12937 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12940 2019-02-14 David Michael <fedora.dm0@gmail.com>
12941 Samuel Thibault <samuel.thibault@gnu.org>
12942 Thomas Schwinge <thomas@codesourcery.com>
12944 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12945 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12947 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12949 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12950 (check_empty): Use "const char *".
12952 * gnu-nat.c (gnu_nat_target::detach): Instead of
12953 'detach_inferior (pid)' call
12954 'detach_inferior (find_inferior_pid (pid))'.
12956 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12957 'nat/fork-inferior.o'.
12958 * gnu-nat.c: #include "nat/fork-inferior.h".
12960 * gnu-nat.c (gnu_nat_target::detach): Instead of
12961 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12962 * gnu-nat.h: #include "inf-child.h".
12963 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12964 'i386_gnu_nat_target::fetch_registers'.
12965 (gnu_store_registers): Rename/move to
12966 'i386_gnu_nat_target::store_registers'.
12968 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12969 * gnu-nat.h (mach_thread_info): New function.
12970 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12972 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12974 2019-02-14 Frederic Konrad <konrad@adacore.com>
12976 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12978 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12980 * windows-nat.c (windows_add_thread): Add new parameter
12981 "main_thread_p" with default value set to false. Update
12982 function documentation as well as all callers.
12983 (windows_delete_thread): Likewise.
12984 (fake_create_process): Update call to windows_add_thread.
12985 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12986 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12987 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12988 call to windows_delete_thread.
12990 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12992 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12994 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12996 * symfile.c (find_separate_debug_file): Use canonical path of
12997 sysroot with child_path instead of gdb_sysroot if it is valid.
12999 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13001 * symfile.c (find_separate_debug_file): Use child_path to
13002 determine if an object file is under a sysroot.
13004 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13006 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13007 unittests/child-path-selftests.c.
13008 * common/pathstuff.c (child_path): New function.
13009 * common/pathstuff.h (child_path): New prototype.
13010 * unittests/child-path-selftests.c: New file.
13012 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13014 * symfile.c (find_separate_debug_file): Look for separate debug
13015 files in debug directories under the sysroot.
13017 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13019 * symtab.h (struct minimal_symbol data_p): New const method.
13020 (struct minimal_symbol text_p): Likewise.
13021 * symtab.c (output_source_filename): Use file name style
13022 to print file name.
13023 (print_symbol_info): Likewise.
13024 (print_msymbol_info): Use address style to print addresses.
13025 Use function name style to print executable text symbols.
13026 (expand_symtab_containing_pc): Use data_p.
13027 (find_pc_sect_compunit_symtab): Likewise.
13029 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13031 * breakpoint.c (describe_other_breakpoints): Use address style
13032 to print addresses.
13033 (say_where): Likewise.
13035 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13037 * ada-typeprint.c (print_func_type): Print function name
13038 style to print function name.
13039 * c-typeprint.c (c_print_type_1): Likewise.
13041 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13043 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13046 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13048 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13051 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13053 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13054 TYPE_CODE_REF types.
13056 2019-02-08 Jim Wilson <jimw@sifive.com>
13058 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13059 (riscv_linux_fregset): New.
13060 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13062 2019-02-07 Tom Tromey <tom@tromey.com>
13064 * thread.c (thread_cancel_execution_command): Update.
13065 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13067 (struct thread_fsm_ops): Remove.
13068 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13069 (thread_fsm_should_stop, thread_fsm_return_value)
13070 (thread_fsm_set_finished, thread_fsm_finished_p)
13071 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13073 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13074 * infrun.c (clear_proceed_status_thread)
13075 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13076 (print_stop_event): Update.
13077 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13079 (step_command_fsm_ops): Remove.
13080 (new_step_command_fsm): Remove.
13082 (step_command_fsm::should_stop): Rename from
13083 step_command_fsm_should_stop.
13084 (step_command_fsm::clean_up): Rename from
13085 step_command_fsm_clean_up.
13086 (step_command_fsm::do_async_reply_reason): Rename from
13087 step_command_fsm_async_reply_reason.
13088 (struct until_next_fsm): Inherit from thread_fsm. Add
13090 (until_next_fsm_ops): Remove.
13091 (new_until_next_fsm): Remove.
13092 (until_next_fsm::should_stop): Rename from
13093 until_next_fsm_should_stop.
13094 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13095 (until_next_fsm::do_async_reply_reason): Rename from
13096 until_next_fsm_async_reply_reason.
13097 (struct finish_command_fsm): Inherit from thread_fsm. Add
13098 constructor. Change type of breakpoint.
13099 (finish_command_fsm_ops): Remove.
13100 (new_finish_command_fsm): Remove.
13101 (finish_command_fsm::should_stop): Rename from
13102 finish_command_fsm_should_stop.
13103 (finish_command_fsm::clean_up): Rename from
13104 finish_command_fsm_clean_up.
13105 (finish_command_fsm::return_value): Rename from
13106 finish_command_fsm_return_value.
13107 (finish_command_fsm::do_async_reply_reason): Rename from
13108 finish_command_fsm_async_reply_reason.
13109 (finish_command): Update.
13110 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13112 (call_thread_fsm_ops): Remove.
13113 (call_thread_fsm::call_thread_fsm): Rename from
13114 new_call_thread_fsm.
13115 (call_thread_fsm::should_stop): Rename from
13116 call_thread_fsm_should_stop.
13117 (call_thread_fsm::should_notify_stop): Rename from
13118 call_thread_fsm_should_notify_stop.
13119 (run_inferior_call, call_function_by_hand_dummy): Update.
13120 * cli/cli-interp.c (should_print_stop_to_console): Update.
13121 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13122 Add constructor. Change type of location_breakpoint,
13124 (until_break_fsm_ops): Remove.
13125 (new_until_break_fsm): Remove.
13126 (until_break_fsm::should_stop): Rename from
13127 until_break_fsm_should_stop.
13128 (until_break_fsm::clean_up): Rename from
13129 until_break_fsm_clean_up.
13130 (until_break_fsm::do_async_reply_reason): Rename from
13131 until_break_fsm_async_reply_reason.
13132 (until_break_command): Update.
13133 * thread-fsm.c: Remove.
13134 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13136 2019-02-07 Tom Tromey <tom@tromey.com>
13138 * yy-remap.h: Add include guard.
13139 * xtensa-tdep.h: Add include guard.
13140 * xcoffread.h: Rename include guard.
13141 * varobj-iter.h: Add include guard.
13142 * tui/tui.h: Rename include guard.
13143 * tui/tui-winsource.h: Rename include guard.
13144 * tui/tui-wingeneral.h: Rename include guard.
13145 * tui/tui-windata.h: Rename include guard.
13146 * tui/tui-win.h: Rename include guard.
13147 * tui/tui-stack.h: Rename include guard.
13148 * tui/tui-source.h: Rename include guard.
13149 * tui/tui-regs.h: Rename include guard.
13150 * tui/tui-out.h: Rename include guard.
13151 * tui/tui-layout.h: Rename include guard.
13152 * tui/tui-io.h: Rename include guard.
13153 * tui/tui-hooks.h: Rename include guard.
13154 * tui/tui-file.h: Rename include guard.
13155 * tui/tui-disasm.h: Rename include guard.
13156 * tui/tui-data.h: Rename include guard.
13157 * tui/tui-command.h: Rename include guard.
13158 * tic6x-tdep.h: Add include guard.
13159 * target/waitstatus.h: Rename include guard.
13160 * target/wait.h: Rename include guard.
13161 * target/target.h: Rename include guard.
13162 * target/resume.h: Rename include guard.
13163 * target-float.h: Rename include guard.
13164 * stabsread.h: Add include guard.
13165 * rs6000-tdep.h: Add include guard.
13166 * riscv-fbsd-tdep.h: Add include guard.
13167 * regformats/regdef.h: Rename include guard.
13168 * record.h: Rename include guard.
13169 * python/python.h: Rename include guard.
13170 * python/python-internal.h: Rename include guard.
13171 * python/py-stopevent.h: Rename include guard.
13172 * python/py-ref.h: Rename include guard.
13173 * python/py-record.h: Rename include guard.
13174 * python/py-record-full.h: Rename include guard.
13175 * python/py-record-btrace.h: Rename include guard.
13176 * python/py-instruction.h: Rename include guard.
13177 * python/py-events.h: Rename include guard.
13178 * python/py-event.h: Rename include guard.
13179 * procfs.h: Add include guard.
13180 * proc-utils.h: Add include guard.
13181 * p-lang.h: Add include guard.
13182 * or1k-tdep.h: Rename include guard.
13183 * observable.h: Rename include guard.
13184 * nto-tdep.h: Rename include guard.
13185 * nat/x86-linux.h: Rename include guard.
13186 * nat/x86-linux-dregs.h: Rename include guard.
13187 * nat/x86-gcc-cpuid.h: Add include guard.
13188 * nat/x86-dregs.h: Rename include guard.
13189 * nat/x86-cpuid.h: Rename include guard.
13190 * nat/ppc-linux.h: Rename include guard.
13191 * nat/mips-linux-watch.h: Rename include guard.
13192 * nat/linux-waitpid.h: Rename include guard.
13193 * nat/linux-ptrace.h: Rename include guard.
13194 * nat/linux-procfs.h: Rename include guard.
13195 * nat/linux-osdata.h: Rename include guard.
13196 * nat/linux-nat.h: Rename include guard.
13197 * nat/linux-namespaces.h: Rename include guard.
13198 * nat/linux-btrace.h: Rename include guard.
13199 * nat/glibc_thread_db.h: Rename include guard.
13200 * nat/gdb_thread_db.h: Rename include guard.
13201 * nat/gdb_ptrace.h: Rename include guard.
13202 * nat/fork-inferior.h: Rename include guard.
13203 * nat/amd64-linux-siginfo.h: Rename include guard.
13204 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13205 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13206 * nat/aarch64-linux.h: Rename include guard.
13207 * nat/aarch64-linux-hw-point.h: Rename include guard.
13208 * mn10300-tdep.h: Add include guard.
13209 * mips-linux-tdep.h: Add include guard.
13210 * mi/mi-parse.h: Rename include guard.
13211 * mi/mi-out.h: Rename include guard.
13212 * mi/mi-main.h: Rename include guard.
13213 * mi/mi-interp.h: Rename include guard.
13214 * mi/mi-getopt.h: Rename include guard.
13215 * mi/mi-console.h: Rename include guard.
13216 * mi/mi-common.h: Rename include guard.
13217 * mi/mi-cmds.h: Rename include guard.
13218 * mi/mi-cmd-break.h: Rename include guard.
13219 * m2-lang.h: Add include guard.
13220 * location.h: Rename include guard.
13221 * linux-record.h: Rename include guard.
13222 * linux-nat.h: Add include guard.
13223 * linux-fork.h: Add include guard.
13224 * i386-darwin-tdep.h: Rename include guard.
13225 * hppa-linux-offsets.h: Add include guard.
13226 * guile/guile.h: Rename include guard.
13227 * guile/guile-internal.h: Rename include guard.
13228 * gnu-nat.h: Rename include guard.
13229 * gdb-stabs.h: Rename include guard.
13230 * frv-tdep.h: Add include guard.
13231 * f-lang.h: Add include guard.
13232 * event-loop.h: Add include guard.
13233 * darwin-nat.h: Rename include guard.
13234 * cp-abi.h: Rename include guard.
13235 * config/sparc/nm-sol2.h: Rename include guard.
13236 * config/nm-nto.h: Rename include guard.
13237 * config/nm-linux.h: Add include guard.
13238 * config/i386/nm-i386gnu.h: Rename include guard.
13239 * config/djgpp/nl_types.h: Rename include guard.
13240 * config/djgpp/langinfo.h: Rename include guard.
13241 * compile/gcc-cp-plugin.h: Add include guard.
13242 * compile/gcc-c-plugin.h: Add include guard.
13243 * compile/compile.h: Rename include guard.
13244 * compile/compile-object-run.h: Rename include guard.
13245 * compile/compile-object-load.h: Rename include guard.
13246 * compile/compile-internal.h: Rename include guard.
13247 * compile/compile-cplus.h: Rename include guard.
13248 * compile/compile-c.h: Rename include guard.
13249 * common/xml-utils.h: Rename include guard.
13250 * common/x86-xstate.h: Rename include guard.
13251 * common/version.h: Rename include guard.
13252 * common/vec.h: Rename include guard.
13253 * common/tdesc.h: Rename include guard.
13254 * common/selftest.h: Rename include guard.
13255 * common/scoped_restore.h: Rename include guard.
13256 * common/scoped_mmap.h: Rename include guard.
13257 * common/scoped_fd.h: Rename include guard.
13258 * common/safe-iterator.h: Rename include guard.
13259 * common/run-time-clock.h: Rename include guard.
13260 * common/refcounted-object.h: Rename include guard.
13261 * common/queue.h: Rename include guard.
13262 * common/ptid.h: Rename include guard.
13263 * common/print-utils.h: Rename include guard.
13264 * common/preprocessor.h: Rename include guard.
13265 * common/pathstuff.h: Rename include guard.
13266 * common/observable.h: Rename include guard.
13267 * common/netstuff.h: Rename include guard.
13268 * common/job-control.h: Rename include guard.
13269 * common/host-defs.h: Rename include guard.
13270 * common/gdb_wait.h: Rename include guard.
13271 * common/gdb_vecs.h: Rename include guard.
13272 * common/gdb_unlinker.h: Rename include guard.
13273 * common/gdb_unique_ptr.h: Rename include guard.
13274 * common/gdb_tilde_expand.h: Rename include guard.
13275 * common/gdb_sys_time.h: Rename include guard.
13276 * common/gdb_string_view.h: Rename include guard.
13277 * common/gdb_splay_tree.h: Rename include guard.
13278 * common/gdb_setjmp.h: Rename include guard.
13279 * common/gdb_ref_ptr.h: Rename include guard.
13280 * common/gdb_optional.h: Rename include guard.
13281 * common/gdb_locale.h: Rename include guard.
13282 * common/gdb_assert.h: Rename include guard.
13283 * common/filtered-iterator.h: Rename include guard.
13284 * common/filestuff.h: Rename include guard.
13285 * common/fileio.h: Rename include guard.
13286 * common/environ.h: Rename include guard.
13287 * common/common-utils.h: Rename include guard.
13288 * common/common-types.h: Rename include guard.
13289 * common/common-regcache.h: Rename include guard.
13290 * common/common-inferior.h: Rename include guard.
13291 * common/common-gdbthread.h: Rename include guard.
13292 * common/common-exceptions.h: Rename include guard.
13293 * common/common-defs.h: Rename include guard.
13294 * common/common-debug.h: Rename include guard.
13295 * common/cleanups.h: Rename include guard.
13296 * common/buffer.h: Rename include guard.
13297 * common/btrace-common.h: Rename include guard.
13298 * common/break-common.h: Rename include guard.
13299 * cli/cli-utils.h: Rename include guard.
13300 * cli/cli-style.h: Rename include guard.
13301 * cli/cli-setshow.h: Rename include guard.
13302 * cli/cli-script.h: Rename include guard.
13303 * cli/cli-interp.h: Rename include guard.
13304 * cli/cli-decode.h: Rename include guard.
13305 * cli/cli-cmds.h: Rename include guard.
13306 * charset-list.h: Add include guard.
13307 * buildsym-legacy.h: Rename include guard.
13308 * bfin-tdep.h: Add include guard.
13309 * ax.h: Rename include guard.
13310 * arm-linux-tdep.h: Add include guard.
13311 * arm-fbsd-tdep.h: Add include guard.
13312 * arch/xtensa.h: Rename include guard.
13313 * arch/tic6x.h: Add include guard.
13314 * arch/i386.h: Add include guard.
13315 * arch/arm.h: Rename include guard.
13316 * arch/arm-linux.h: Rename include guard.
13317 * arch/arm-get-next-pcs.h: Rename include guard.
13318 * arch/amd64.h: Add include guard.
13319 * arch/aarch64-insn.h: Rename include guard.
13320 * arch-utils.h: Rename include guard.
13321 * annotate.h: Add include guard.
13322 * amd64-darwin-tdep.h: Rename include guard.
13323 * aarch64-linux-tdep.h: Add include guard.
13324 * aarch64-fbsd-tdep.h: Add include guard.
13325 * aarch32-linux-nat.h: Add include guard.
13327 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13329 * macrotab.c (macro_define_internal): New function that
13330 factorizes macro_define_object_internal and macro_define_function
13332 (macro_define_object_internal): Use macro_define_internal.
13333 (macro_define_function): Likewise.
13335 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13337 * macrocmd.c (extract_identifier): Return
13338 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13341 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13343 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13345 2019-02-05 Tom Tromey <tom@tromey.com>
13347 * target.c (target_stack::unpush): Move assertion earlier.
13349 2019-01-30 Tom Tromey <tom@tromey.com>
13352 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13353 (gdbpy_parse_and_eval): Likewise.
13354 * python/python-internal.h (gdbpy_allow_threads): New class.
13356 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13358 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13359 (aarch64_fbsd_fpregmap): Move earlier.
13360 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13361 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13362 instead of individual calls to trad_frame_set_reg_addr.
13363 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13365 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13366 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13367 instead of individual calls to trad_frame_set_reg_addr.
13369 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13371 * CONTRIBUTE: Replace contribution list with wiki link.
13373 2019-01-25 Tom Tromey <tom@tromey.com>
13375 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13377 2019-01-25 Tom Tromey <tom@tromey.com>
13379 * xtensa-linux-nat.c: Fix common/ includes.
13380 * xml-support.h: Fix common/ includes.
13381 * xml-support.c: Fix common/ includes.
13382 * x86-linux-nat.c: Fix common/ includes.
13383 * windows-nat.c: Fix common/ includes.
13384 * varobj.h: Fix common/ includes.
13385 * varobj.c: Fix common/ includes.
13386 * value.c: Fix common/ includes.
13387 * valops.c: Fix common/ includes.
13388 * utils.c: Fix common/ includes.
13389 * unittests/xml-utils-selftests.c: Fix common/ includes.
13390 * unittests/utils-selftests.c: Fix common/ includes.
13391 * unittests/unpack-selftests.c: Fix common/ includes.
13392 * unittests/tracepoint-selftests.c: Fix common/ includes.
13393 * unittests/style-selftests.c: Fix common/ includes.
13394 * unittests/string_view-selftests.c: Fix common/ includes.
13395 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13396 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13397 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13398 * unittests/rsp-low-selftests.c: Fix common/ includes.
13399 * unittests/parse-connection-spec-selftests.c: Fix common/
13401 * unittests/optional-selftests.c: Fix common/ includes.
13402 * unittests/offset-type-selftests.c: Fix common/ includes.
13403 * unittests/observable-selftests.c: Fix common/ includes.
13404 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13405 * unittests/memrange-selftests.c: Fix common/ includes.
13406 * unittests/memory-map-selftests.c: Fix common/ includes.
13407 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13408 * unittests/function-view-selftests.c: Fix common/ includes.
13409 * unittests/environ-selftests.c: Fix common/ includes.
13410 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13411 * unittests/common-utils-selftests.c: Fix common/ includes.
13412 * unittests/cli-utils-selftests.c: Fix common/ includes.
13413 * unittests/array-view-selftests.c: Fix common/ includes.
13414 * ui-file.c: Fix common/ includes.
13415 * tui/tui-io.c: Fix common/ includes.
13416 * tracepoint.h: Fix common/ includes.
13417 * tracepoint.c: Fix common/ includes.
13418 * tracefile-tfile.c: Fix common/ includes.
13419 * top.h: Fix common/ includes.
13420 * top.c: Fix common/ includes.
13421 * thread.c: Fix common/ includes.
13422 * target/waitstatus.h: Fix common/ includes.
13423 * target/waitstatus.c: Fix common/ includes.
13424 * target.h: Fix common/ includes.
13425 * target.c: Fix common/ includes.
13426 * target-memory.c: Fix common/ includes.
13427 * target-descriptions.c: Fix common/ includes.
13428 * symtab.h: Fix common/ includes.
13429 * symfile.c: Fix common/ includes.
13430 * stap-probe.c: Fix common/ includes.
13431 * spu-linux-nat.c: Fix common/ includes.
13432 * sparc-nat.c: Fix common/ includes.
13433 * source.c: Fix common/ includes.
13434 * solib.c: Fix common/ includes.
13435 * solib-target.c: Fix common/ includes.
13436 * ser-unix.c: Fix common/ includes.
13437 * ser-tcp.c: Fix common/ includes.
13438 * ser-pipe.c: Fix common/ includes.
13439 * ser-base.c: Fix common/ includes.
13440 * selftest-arch.c: Fix common/ includes.
13441 * s12z-tdep.c: Fix common/ includes.
13442 * rust-exp.y: Fix common/ includes.
13443 * rs6000-aix-tdep.c: Fix common/ includes.
13444 * riscv-tdep.c: Fix common/ includes.
13445 * remote.c: Fix common/ includes.
13446 * remote-notif.h: Fix common/ includes.
13447 * remote-fileio.h: Fix common/ includes.
13448 * remote-fileio.c: Fix common/ includes.
13449 * regcache.h: Fix common/ includes.
13450 * regcache.c: Fix common/ includes.
13451 * record-btrace.c: Fix common/ includes.
13452 * python/python.c: Fix common/ includes.
13453 * python/py-type.c: Fix common/ includes.
13454 * python/py-inferior.c: Fix common/ includes.
13455 * progspace.h: Fix common/ includes.
13456 * producer.c: Fix common/ includes.
13457 * procfs.c: Fix common/ includes.
13458 * proc-api.c: Fix common/ includes.
13459 * printcmd.c: Fix common/ includes.
13460 * ppc-linux-nat.c: Fix common/ includes.
13461 * parser-defs.h: Fix common/ includes.
13462 * osdata.c: Fix common/ includes.
13463 * obsd-nat.c: Fix common/ includes.
13464 * nat/x86-linux.c: Fix common/ includes.
13465 * nat/x86-linux-dregs.c: Fix common/ includes.
13466 * nat/x86-dregs.h: Fix common/ includes.
13467 * nat/x86-dregs.c: Fix common/ includes.
13468 * nat/ppc-linux.c: Fix common/ includes.
13469 * nat/mips-linux-watch.h: Fix common/ includes.
13470 * nat/mips-linux-watch.c: Fix common/ includes.
13471 * nat/linux-waitpid.c: Fix common/ includes.
13472 * nat/linux-ptrace.h: Fix common/ includes.
13473 * nat/linux-ptrace.c: Fix common/ includes.
13474 * nat/linux-procfs.c: Fix common/ includes.
13475 * nat/linux-personality.c: Fix common/ includes.
13476 * nat/linux-osdata.c: Fix common/ includes.
13477 * nat/linux-namespaces.c: Fix common/ includes.
13478 * nat/linux-btrace.h: Fix common/ includes.
13479 * nat/linux-btrace.c: Fix common/ includes.
13480 * nat/fork-inferior.c: Fix common/ includes.
13481 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13482 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13483 * nat/aarch64-linux.c: Fix common/ includes.
13484 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13485 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13486 * namespace.h: Fix common/ includes.
13487 * mips-linux-tdep.c: Fix common/ includes.
13488 * minsyms.c: Fix common/ includes.
13489 * mi/mi-parse.h: Fix common/ includes.
13490 * mi/mi-main.c: Fix common/ includes.
13491 * mi/mi-cmd-env.c: Fix common/ includes.
13492 * memrange.h: Fix common/ includes.
13493 * memattr.c: Fix common/ includes.
13494 * maint.h: Fix common/ includes.
13495 * maint.c: Fix common/ includes.
13496 * main.c: Fix common/ includes.
13497 * machoread.c: Fix common/ includes.
13498 * location.c: Fix common/ includes.
13499 * linux-thread-db.c: Fix common/ includes.
13500 * linux-nat.c: Fix common/ includes.
13501 * linux-fork.c: Fix common/ includes.
13502 * inline-frame.c: Fix common/ includes.
13503 * infrun.c: Fix common/ includes.
13504 * inflow.c: Fix common/ includes.
13505 * inferior.h: Fix common/ includes.
13506 * inferior.c: Fix common/ includes.
13507 * infcmd.c: Fix common/ includes.
13508 * inf-ptrace.c: Fix common/ includes.
13509 * inf-child.c: Fix common/ includes.
13510 * ia64-linux-nat.c: Fix common/ includes.
13511 * i387-tdep.c: Fix common/ includes.
13512 * i386-tdep.c: Fix common/ includes.
13513 * i386-linux-tdep.c: Fix common/ includes.
13514 * i386-linux-nat.c: Fix common/ includes.
13515 * i386-go32-tdep.c: Fix common/ includes.
13516 * i386-fbsd-tdep.c: Fix common/ includes.
13517 * i386-fbsd-nat.c: Fix common/ includes.
13518 * guile/scm-type.c: Fix common/ includes.
13519 * guile/guile.c: Fix common/ includes.
13520 * go32-nat.c: Fix common/ includes.
13521 * gnu-nat.c: Fix common/ includes.
13522 * gdbthread.h: Fix common/ includes.
13523 * gdbarch-selftests.c: Fix common/ includes.
13524 * gdb_usleep.c: Fix common/ includes.
13525 * gdb_select.h: Fix common/ includes.
13526 * gdb_bfd.c: Fix common/ includes.
13527 * gcore.c: Fix common/ includes.
13528 * fork-child.c: Fix common/ includes.
13529 * findvar.c: Fix common/ includes.
13530 * fbsd-nat.c: Fix common/ includes.
13531 * event-top.c: Fix common/ includes.
13532 * event-loop.c: Fix common/ includes.
13533 * dwarf2read.c: Fix common/ includes.
13534 * dwarf2loc.c: Fix common/ includes.
13535 * dwarf2-frame.c: Fix common/ includes.
13536 * dwarf-index-cache.c: Fix common/ includes.
13537 * dtrace-probe.c: Fix common/ includes.
13538 * disasm-selftests.c: Fix common/ includes.
13539 * defs.h: Fix common/ includes.
13540 * csky-tdep.c: Fix common/ includes.
13541 * cp-valprint.c: Fix common/ includes.
13542 * cp-support.h: Fix common/ includes.
13543 * cp-support.c: Fix common/ includes.
13544 * corelow.c: Fix common/ includes.
13545 * completer.h: Fix common/ includes.
13546 * completer.c: Fix common/ includes.
13547 * compile/compile.c: Fix common/ includes.
13548 * compile/compile-loc2c.c: Fix common/ includes.
13549 * compile/compile-cplus-types.c: Fix common/ includes.
13550 * compile/compile-cplus-symbols.c: Fix common/ includes.
13551 * command.h: Fix common/ includes.
13552 * cli/cli-dump.c: Fix common/ includes.
13553 * cli/cli-cmds.c: Fix common/ includes.
13554 * charset.c: Fix common/ includes.
13555 * build-id.c: Fix common/ includes.
13556 * btrace.h: Fix common/ includes.
13557 * btrace.c: Fix common/ includes.
13558 * breakpoint.h: Fix common/ includes.
13559 * breakpoint.c: Fix common/ includes.
13561 (enum agent_op): Fix common/ includes.
13562 * ax-general.c (struct aop_map): Fix common/ includes.
13563 * ax-gdb.c: Fix common/ includes.
13564 * auxv.c: Fix common/ includes.
13565 * auto-load.c: Fix common/ includes.
13566 * arm-tdep.c: Fix common/ includes.
13567 * arch/riscv.c: Fix common/ includes.
13568 * arch/ppc-linux-common.c: Fix common/ includes.
13569 * arch/i386.c: Fix common/ includes.
13570 * arch/arm.c: Fix common/ includes.
13571 * arch/arm-linux.c: Fix common/ includes.
13572 * arch/arm-get-next-pcs.c: Fix common/ includes.
13573 * arch/amd64.c: Fix common/ includes.
13574 * arch/aarch64.c: Fix common/ includes.
13575 * arch/aarch64-insn.c: Fix common/ includes.
13576 * arch-utils.c: Fix common/ includes.
13577 * amd64-windows-tdep.c: Fix common/ includes.
13578 * amd64-tdep.c: Fix common/ includes.
13579 * amd64-sol2-tdep.c: Fix common/ includes.
13580 * amd64-obsd-tdep.c: Fix common/ includes.
13581 * amd64-nbsd-tdep.c: Fix common/ includes.
13582 * amd64-linux-tdep.c: Fix common/ includes.
13583 * amd64-linux-nat.c: Fix common/ includes.
13584 * amd64-fbsd-tdep.c: Fix common/ includes.
13585 * amd64-fbsd-nat.c: Fix common/ includes.
13586 * amd64-dicos-tdep.c: Fix common/ includes.
13587 * amd64-darwin-tdep.c: Fix common/ includes.
13588 * agent.c: Fix common/ includes.
13589 * ada-lang.h: Fix common/ includes.
13590 * ada-lang.c: Fix common/ includes.
13591 * aarch64-tdep.c: Fix common/ includes.
13593 2019-01-25 Tom Tromey <tom@tromey.com>
13595 * common/create-version.sh: Use common/version.h.
13597 2019-01-24 Pedro Alves <palves@redhat.com>
13599 * infrun.c (signal_stop, signal_print, signal_program)
13600 (signal_catch, signal_pass): Now arrays instead of pointers.
13601 (update_signals_program_target, do_target_resume)
13602 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13603 * linux-nat.c (linux_nat_target::pass_signals)
13604 (linux_nat_target::create_inferior, linux_nat_target::attach):
13606 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13607 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13608 * procfs.c (procfs_target::pass_signals): Adjust.
13609 * record-full.c (record_full_target::resume): Adjust.
13610 * remote.c (remote_target::pass_signals)
13611 (remote_target::program_signals): Adjust.
13612 * target-debug.h (target_debug_print_signals): Now takes a
13613 gdb::array_view as parameter. Adjust.
13614 * target.h (target_ops) <pass_signals, program_signals>: Replace
13615 pointer and length parameters with gdb::array_view.
13616 (target_pass_signals, target_program_signals): Likewise.
13617 * target-delegates.c: Regenerate.
13619 2019-01-24 Pedro Alves <palves@redhat.com>
13621 * common/forward-scope-exit.h
13622 (forward_scope_exit::forward_scope_exit): Pass arguments to
13623 m_bind_function directly, instead of creating a std::bind and
13626 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13628 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13629 for static members.
13630 (pass_in_v_vfp_candidate): Likewise.
13632 2019-01-23 Tom Tromey <tom@tromey.com>
13633 Pedro Alves <palves@redhat.com>
13635 * regcache.c (class regcache_invalidator): Remove.
13636 (regcache::raw_write): Use make_scope_exit.
13638 2019-01-23 Tom Tromey <tom@tromey.com>
13640 * ui-out.h (class ui_out_emit_type): Update comment.
13642 2019-01-23 Tom Tromey <tom@tromey.com>
13644 * infrun.c (fetch_inferior_event): Update comment.
13646 2019-01-23 Tom Tromey <tom@tromey.com>
13647 Pedro Alves <palves@redhat.com>
13649 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13651 (fetch_inferior_event): Use SCOPE_EXIT.
13654 2019-01-23 Tom Tromey <tom@tromey.com>
13655 Pedro Alves <palves@redhat.com>
13657 * infrun.c (disable_thread_events): Delete.
13658 (stop_all_threads): Use SCOPE_EXIT.
13660 2019-01-23 Tom Tromey <tom@tromey.com>
13661 Pedro Alves <palves@redhat.com>
13663 * symfile.c: Include forward-scope-exit.h.
13664 (clear_symtab_users_cleanup): Replace forward declaration with
13665 a FORWARD_SCOPE_EXIT.
13666 (syms_from_objfile_1): Use the forward_scope_exit and
13667 gdb::optional instead of cleanup_function.
13668 (reread_symbols): Use the forward_scope_exit instead of
13670 (clear_symtab_users_cleanup): Remove function.
13672 2019-01-23 Tom Tromey <tom@tromey.com>
13673 Pedro Alves <palves@redhat.com>
13675 * linux-nat.c: Include scope-exit.h.
13676 (cleanup_target_stop): Remove.
13677 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13680 2019-01-23 Tom Tromey <tom@tromey.com>
13681 Pedro Alves <palves@redhat.com>
13683 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13684 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13686 2019-01-23 Tom Tromey <tom@tromey.com>
13687 Andrew Burgess <andrew.burgess@embecosm.com>
13688 Pedro Alves <palves@redhat.com>
13690 * infrun.c (fetch_inferior_event): Use scope_exit.
13691 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13692 * top.c (execute_command): Use scope_exit.
13693 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13694 * utils.c (do_bpstat_clear_actions_cleanup)
13695 (make_bpstat_clear_actions_cleanup): Remove.
13697 2019-01-23 Tom Tromey <tom@tromey.com>
13698 Pedro Alves <palves@redhat.com>
13700 * infrun.c: Include "common/scope-exit.h"
13701 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13702 (wait_for_inferior): Use SCOPE_EXIT.
13703 (fetch_inferior_event): Use scope_exit.
13705 2019-01-23 Tom Tromey <tom@tromey.com>
13706 Pedro Alves <palves@redhat.com>
13708 * breakpoint.c (create_breakpoint): Remove cleanup.
13710 2019-01-23 Tom Tromey <tom@tromey.com>
13711 Andrew Burgess <andrew.burgess@embecosm.com>
13712 Pedro Alves <palves@redhat.com>
13714 2019-01-23 Pedro Alves <palves@redhat.com>
13716 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13718 2019-01-23 Pedro Alves <palves@redhat.com>
13719 Andrew Burgess <andrew.burgess@embecosm.com>
13721 * gdbthread.h: Include "common/forward-scope-exit.h".
13722 (scoped_finish_thread_state): Redefine custom class in terms of
13723 forward_scope_exit.
13725 2019-01-23 Pedro Alves <palves@redhat.com>
13726 Andrew Burgess <andrew.burgess@embecosm.com>
13728 * common/forward-scope-exit.h: New file.
13730 2019-01-23 Pedro Alves <palves@redhat.com>
13731 Andrew Burgess <andrew.burgess@embecosm.com>
13732 Tom Tromey <tom@tromey.com>
13734 * common/scope-exit.h: New file.
13736 2019-01-23 Pedro Alves <palves@redhat.com>
13738 * common/preprocessor.h (ESC): Rename to ...
13739 (ESC_PARENS): ... this.
13740 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13741 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13743 2019-01-23 Tom Tromey <tom@tromey.com>
13745 * language.h (class scoped_switch_to_sym_language_if_auto):
13746 Initialize m_lang in both cases.
13748 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13750 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13753 2019-01-22 Tom Tromey <tom@tromey.com>
13755 * corelow.c: Do not include sys/file.h.
13757 2019-01-22 Tom Tromey <tom@tromey.com>
13759 * tui/tui-wingeneral.h: Include gdb_curses.h.
13761 2019-01-22 Tom Tromey <tom@tromey.com>
13763 * source-cache.h (class source_cache) <get_source_lines,
13764 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13766 2019-01-22 Tom Tromey <tom@tromey.com>
13768 * remote-fileio.h (struct remote_target): Declare.
13770 2019-01-22 Tom Tromey <tom@tromey.com>
13772 * python/py-arch.c: Do not include py-ref.h.
13773 * python/py-bpevent.c: Do not include py-ref.h.
13774 * python/py-cmd.c: Do not include py-ref.h.
13775 * python/py-continueevent.c: Do not include py-ref.h.
13776 * python/py-event.h: Do not include py-ref.h.
13777 * python/py-evtregistry.c: Do not include py-ref.h.
13778 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13779 * python/py-frame.c: Do not include py-ref.h.
13780 * python/py-framefilter.c: Do not include py-ref.h.
13781 * python/py-function.c: Do not include py-ref.h.
13782 * python/py-infevents.c: Do not include py-ref.h.
13783 * python/py-linetable.c: Do not include py-ref.h.
13784 * python/py-objfile.c: Do not include py-ref.h.
13785 * python/py-param.c: Do not include py-ref.h.
13786 * python/py-prettyprint.c: Do not include py-ref.h.
13787 * python/py-progspace.c: Do not include py-ref.h.
13788 * python/py-symbol.c: Do not include py-ref.h.
13789 * python/py-symtab.c: Do not include py-ref.h.
13790 * python/py-type.c: Do not include py-ref.h.
13791 * python/py-unwind.c: Do not include py-ref.h.
13792 * python/py-utils.c: Do not include py-ref.h.
13793 * python/py-value.c: Do not include py-ref.h.
13794 * python/py-varobj.c: Do not include py-ref.h.
13795 * python/py-xmethods.c: Do not include py-ref.h.
13796 * python/python.c: Do not include py-ref.h.
13797 * varobj.c: Do not include py-ref.h.
13799 2019-01-22 Tom Tromey <tom@tromey.com>
13801 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13802 keyword for bcache.
13804 2019-01-22 Tom Tromey <tom@tromey.com>
13806 * compile/compile-cplus-types.c: Remove a comment by #include.
13808 2019-01-22 Tom Tromey <tom@tromey.com>
13810 * compile/gcc-c-plugin.h: Include compile-internal.h.
13812 2019-01-22 Tom Tromey <tom@tromey.com>
13814 * stabsread.c (EXTERN): Do not define.
13815 (symnum, next_symbol_text_func, processing_gcc_compilation)
13816 (within_function, global_sym_chain, global_stabs)
13817 (previous_stab_code, this_object_header_files)
13818 (n_this_object_header_files)
13819 (n_allocated_this_object_header_files): Define.
13820 * stabsread.h (EXTERN): Never define. Use "extern".
13822 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13824 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13827 2019-01-21 Tom Tromey <tom@tromey.com>
13829 * ui-out.c: Fix includes.
13830 * tui/tui-source.c: Fix includes.
13831 * target.c: Fix includes.
13832 * remote.c: Fix includes.
13833 * regcache.c: Fix includes.
13834 * python/py-block.c: Fix includes.
13835 * printcmd.c: Fix includes.
13836 * or1k-tdep.c: Fix includes.
13837 * mi/mi-main.c: Fix includes.
13838 * m32r-tdep.c: Fix includes.
13839 * csky-tdep.c: Fix includes.
13840 * compile/compile-cplus-types.c: Fix includes.
13841 * cli/cli-interp.c: Fix includes.
13843 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13845 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13848 2019-01-16 Tom Tromey <tom@tromey.com>
13850 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13852 (struct objfile) <msymbols_range>: Move from top level.
13853 <msymbols>: New method.
13854 (class objfile_msymbols): Remove.
13855 * symtab.c (default_collect_symbol_completion_matches_break_on):
13857 * symmisc.c (dump_msymbols): Update.
13858 * stabsread.c (scan_file_globals): Update.
13859 * objc-lang.c (info_selectors_command, info_classes_command)
13860 (find_methods): Update.
13861 * minsyms.c (find_solib_trampoline_target): Update.
13862 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13863 * coffread.c (coff_symfile_read): Update.
13864 * ada-lang.c (ada_lookup_simple_minsym)
13865 (ada_collect_symbol_completion_matches): Update.
13867 2019-01-16 Tom Tromey <tom@tromey.com>
13869 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13870 type. Remove no-argument constructor.
13871 <iterator::operator++>: Simplify.
13873 <end>: Use minimal_symbol_count.
13875 2019-01-16 Tom Tromey <tom@tromey.com>
13877 * objfiles.h (struct objfile) <psymtabs>: New method.
13878 (class objfile_psymtabs): Remove.
13879 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13881 <range>: New method.
13882 (require_partial_symbols): Change return type.
13883 * psymtab.c (require_partial_symbols)
13884 (psym_expand_symtabs_matching): Update.
13885 * mdebugread.c (parse_partial_symbols): Update.
13886 * dbxread.c (dbx_end_psymtab): Update.
13888 2019-01-15 Tom Tromey <tom@tromey.com>
13890 * symtab.c (lookup_objfile_from_block)
13891 (lookup_symbol_in_objfile_symtabs)
13892 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13893 (find_line_symtab, info_sources_command)
13894 (default_collect_symbol_completion_matches_break_on)
13895 (make_source_files_completion_list): Update.
13896 * symmisc.c (print_objfile_statistics, dump_objfile)
13897 (maintenance_print_symbols, maintenance_info_symtabs)
13898 (maintenance_check_symtabs, maintenance_info_line_tables):
13900 * source.c (select_source_symtab)
13901 (forget_cached_source_info_for_objfile): Update.
13902 * objfiles.h (class objfile_compunits): Remove.
13903 (struct objfile) <compunits_range>: New typedef.
13904 (compunits): New method.
13905 * objfiles.c (objfile_relocate1): Update.
13906 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13907 * maint.c (count_symtabs_and_blocks): Update.
13908 * linespec.c (iterate_over_all_matching_symtabs): Update.
13909 * cp-support.c (add_symbol_overload_list_qualified): Update.
13910 * coffread.c (coff_symtab_read): Update.
13911 * ada-lang.c (add_nonlocal_symbols)
13912 (ada_collect_symbol_completion_matches)
13913 (ada_add_global_exceptions): Update.
13915 2019-01-15 Tom Tromey <tom@tromey.com>
13917 * progspace.h (program_space) <objfiles_safe_range>: New
13919 <objfiles_safe>: New method.
13920 * objfiles.h (class all_objfiles_safe): Remove.
13921 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13922 * jit.c (jit_inferior_exit_hook): Update.
13924 2019-01-17 Tom Tromey <tom@tromey.com>
13926 * progspace.h (program_space) <objfiles_range>: New typedef.
13927 <objfiles>: New method.
13928 <objfiles_head>: Rename from objfiles.
13929 (object_files): Update.
13930 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13931 * guile/scm-pretty-print.c
13932 (ppscm_find_pretty_printer_from_objfiles): Update.
13933 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13934 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13936 * python/py-progspace.c (pspy_get_objfiles): Update.
13937 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13939 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13940 (objfpy_lookup_objfile_by_build_id): Update.
13941 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13942 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13944 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13945 (expand_symtab_containing_pc, lookup_objfile_from_block)
13946 (lookup_static_symbol, basic_lookup_transparent_type)
13947 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13948 (find_line_symtab, info_sources_command)
13949 (default_collect_symbol_completion_matches_break_on)
13950 (make_source_files_completion_list, find_main_name): Update.
13951 * symmisc.c (print_symbol_bcache_statistics)
13952 (print_objfile_statistics, maintenance_print_symbols)
13953 (maintenance_print_msymbols, maintenance_print_objfiles)
13954 (maintenance_info_symtabs, maintenance_check_symtabs)
13955 (maintenance_expand_symtabs, maintenance_info_line_tables):
13957 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13958 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13959 (map_overlay_command, unmap_overlay_command)
13960 (simple_overlay_update, expand_symtabs_matching)
13961 (map_symbol_filenames): Update.
13962 * symfile-debug.c (set_debug_symfile): Update.
13963 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13965 * source.c (select_source_symtab, forget_cached_source_info):
13967 * solib.c (solib_read_symbols): Update.
13968 * solib-spu.c (append_ocl_sos): Update.
13969 * psymtab.c (maintenance_print_psymbols)
13970 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13971 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13972 * printcmd.c (info_symbol_command): Update.
13973 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13975 * objfiles.h (class all_objfiles): Remove.
13976 * objfiles.c (have_partial_symbols, have_full_symbols)
13977 (have_minimal_symbols, qsort_cmp, update_section_map)
13978 (shared_objfile_contains_address_p)
13979 (default_iterate_over_objfiles_in_search_order): Update.
13980 * objc-lang.c (info_selectors_command, info_classes_command)
13981 (find_methods): Update.
13982 * minsyms.c (find_solib_trampoline_target): Update.
13983 * maint.c (maintenance_info_sections)
13984 (maintenance_translate_address, count_symtabs_and_blocks):
13986 * main.c (captured_main_1): Update.
13987 * linux-thread-db.c (try_thread_db_load_from_pdir)
13988 (has_libpthread): Update.
13989 * linespec.c (iterate_over_all_matching_symtabs)
13990 (search_minsyms_for_name): Update.
13991 * jit.c (jit_find_objf_with_entry_addr): Update.
13992 * hppa-tdep.c (find_unwind_entry)
13993 (hppa_lookup_stub_minimal_symbol): Update.
13994 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13996 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13997 (elf_gnu_ifunc_resolve_by_got): Update.
13998 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13999 * dwarf-index-write.c (save_gdb_index_command): Update.
14000 * cp-support.c (add_symbol_overload_list_qualified): Update.
14001 * breakpoint.c (create_overlay_event_breakpoint)
14002 (create_longjmp_master_breakpoint)
14003 (create_std_terminate_master_breakpoint)
14004 (create_exception_master_breakpoint): Update.
14005 * blockframe.c (find_pc_partial_function): Update.
14006 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14007 (ada_collect_symbol_completion_matches)
14008 (ada_add_global_exceptions): Update.
14010 2019-01-17 Tom Tromey <tom@tromey.com>
14012 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14014 (solib_target_parse_libraries): Change return type.
14015 (library_list_start_segment, library_list_start_section)
14016 (library_list_end_library, library_list_start_library); Update.
14017 (solib_target_free_library_list): Remove.
14018 (solib_target_parse_libraries): Remove cleanup. Change return
14020 (solib_target_current_sos): Update.
14022 2019-01-17 Tom Tromey <tromey@bapiya>
14024 * valprint.c: Replace "the the" with "the".
14025 * symtab.c: Replace "the the" with "the".
14026 * solib.c: Replace "the the" with "the".
14027 * solib-dsbt.c: Replace "the the" with "the".
14028 * linespec.c: Replace "the the" with "the".
14029 * dwarf2loc.h: Replace "the the" with "the".
14030 * amd64-windows-tdep.c: Replace "the the" with "the".
14031 * aarch64-tdep.c: Replace "the the" with "the".
14033 2019-01-16 Keith Seitz <keiths@redhat.com>
14036 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14037 <builder>: Rename to ..
14038 <m_builder>: ... this and make private.
14039 (dwarf2_cu::get_builder): New method. Change all users of
14040 `builder' to use this method.
14041 (dwarf2_start_symtab): Move to ...
14042 (dwarf2_cu::start_symtab): ... here. Update all callers
14043 (setup_type_unit_groups): Move to ...
14044 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14046 (dwarf2_cu::reset_builder): New method.
14047 (process_full_compunit, process_full_type_unit): Use
14048 dwarf2_cu::reset_builder.
14049 (follow_die_offset): Record the ancestor CU if it is different
14050 from the followed DIE's CU.
14051 (follow_die_sig_1): Likewise.
14053 2019-01-15 Tom Tromey <tom@tromey.com>
14055 * remote.c (class remote_state) <buf>: Now a char_vector.
14056 <buf_size>: Remove.
14057 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14059 (remote_target::getpkt_or_notif_sane_1)
14060 (remote_target::getpkt_sane)
14061 (remote_target::getpkt_or_notif_sane): Likewise.
14062 (class remote_target) <putpkt>: New overload.
14063 (remote_target::read_frame): Change type of "buf_p". Remove
14064 sizeof_p parameter.
14065 (packet_ok): New overload.
14066 (packet_check_result): New overload.
14069 2019-01-14 Tom Tromey <tom@tromey.com>
14071 * remote-notif.c (handle_notification, remote_notif_ack)
14072 (remote_notif_parse): Make "buf" const.
14073 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14075 (remote_notif_parse, remote_notif_ack, handle_notification):
14077 * remote.c (remote_notif_stop_parse): Make "buf" const.
14078 (remote_target::remote_parse_stop_reply): Make "buf" const.
14079 (remote_notif_stop_ack): Make "buf" const.
14081 2019-01-14 Tom Tromey <tom@tromey.com>
14083 * remote.c (remote_console_output): Make parameter const.
14085 2019-01-14 Tom Tromey <tom@tromey.com>
14087 * target-debug.h (target_debug_print_signals): Constify.
14088 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14089 * procfs.c (procfs_target::pass_signals): Update.
14090 * linux-nat.c (linux_nat_target::pass_signals): Update.
14091 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14092 * target-delegates.c: Rebuild.
14093 * remote.c (remote_target::program_signals): Update.
14094 (remote_target::pass_signals): Update.
14095 * target.c (target_pass_signals): Constify argument.
14096 (target_program_signals): Likewise.
14097 * target.h (struct target_ops) <pass_signals, program_signals>:
14099 (target_pass_signals, target_program_signals): Constify argument.
14101 2019-01-14 Tom Tromey <tom@tromey.com>
14104 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14106 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14108 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14110 * rs6000-tdep.c: Include reggroups.h.
14111 (IS_V_ALIAS_PSEUDOREG): Define.
14112 (rs6000_register_name): Return names for the "vX" aliases.
14113 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14114 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14115 aliases. Call default_register_reggroup_p for all other
14117 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14119 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14120 Handle "vX" aliases.
14121 (v_alias_pseudo_register_collect): New function.
14122 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14123 (rs6000_gdbarch_init): Initialize "vX" aliases as
14124 pseudo-registers. Restore registration of
14125 rs6000_pseudo_register_reggroup_p with
14126 set_tdesc_pseudo_register_reggroup_p.
14128 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14130 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14131 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14132 set_gdbarch_num_pseudo_regs.
14134 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14136 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14137 Remove arg prefixname, add do_set and do_show.
14138 Add member functions set_list and show_list.
14139 * cli/cli-style.c (class cli_style_option): Update accordingly.
14140 (style_set_list): Move to file scope.
14141 (style_show_list): Likewise.
14142 (set_style): Call help_list.
14143 (show_style): Call cmd_show_list.
14144 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14145 Update to use the new macro.
14147 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14149 * ada-lang.c (_initialize_ada_language): Expand the help text
14150 for the "catch exception" command.
14152 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14154 * symtab.c (matching_obj_sections): Initialize obj,
14155 declare it closer to its usage.
14157 2019-01-10 Tom Tromey <tom@tromey.com>
14159 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14160 (basic_inf_threads_range): Remove.
14161 (inf_threads_range, inf_non_exited_threads_range)
14162 (safe_inf_threads_range): Use next_adapter.
14164 2019-01-10 Keith Seitz <keiths@redhat.com>
14168 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14169 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14171 2019-01-10 Keith Seitz <keiths@redhat.com>
14175 * dictionary.c (pending_to_vector): Remove.
14176 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14177 Remove _1 suffix, replacing functions of the same name. Update
14179 (dict_create_hashed, dict_create_hashed_expandable)
14180 (dict_create_linear, dict_create_linear_expandable, dict_free)
14181 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14182 Make functions static.
14184 2019-01-10 Keith Seitz <keiths@redhat.com>
14188 * dictionary.h (struct dictionary): Replace declaration with
14190 (dict_create_hashed, dict_create_hashed_expandable)
14191 (dict_create_linear, dict_create_linear_expandable)
14192 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14193 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14194 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14195 taking multidictionary argument.
14196 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14197 * block.h (struct block) <dict>: Change to multidictionary
14198 and rename `multidict'.
14199 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14200 symmisc.c: Update all dictionary references to multidictionary.
14202 2019-01-10 Keith Seitz <keiths@redhat.com>
14206 * dictionary.c: Include unordered_map.
14207 (pending_to_vector): New function.
14208 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14209 Rewrite the non-"_1" functions to take vector instead
14211 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14212 "new" _1 versions of the same name.
14213 (multidictionary): Define.
14214 (std::hash<enum language): New definition.
14215 (collate_pending_symbols_by_language, mdict_create_hashed)
14216 (mdict_create_hashed_expandable, mdict_create_linear)
14217 (mdict_create_linear_expandable, mdict_free)
14218 (find_language_dictionary, create_new_language_dictionary)
14219 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14220 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14221 (mdict_size, mdict_empty): New functions.
14222 * dictionary.h (mdict_iterator): Define.
14224 2019-01-10 Pedro Alves <palves@redhat.com>
14226 * breakpoint.c (read_uploaded_action)
14227 (create_tracepoint_from_upload): Adjust to use
14228 gdb::unique_xmalloc_ptr.
14229 * ctf.c (ctf_write_uploaded_tp):
14230 (SET_ARRAY_FIELD): Use emplace_back.
14231 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14232 * tracefile-tfile.c (tfile_write_uploaded_tp):
14233 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14234 gdb::unique_xmalloc_ptr.
14235 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14236 at_string, cond_string, cmd_strings>: Replace char pointers
14237 with gdb::unique_xmalloc_ptr.
14239 2019-01-10 Pedro Alves <palves@redhat.com>
14241 * solib-target.c (library_list_start_library): Don't xstrdup name.
14243 2019-01-10 Pedro Alves <palves@redhat.com>
14245 * mdebugread.c (parse_partial_symbols): Use
14246 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14248 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14250 * linux-fork.c (scoped_switch_fork_info)
14251 <~scoped_switch_fork_info>: Fix incorrect variable name.
14253 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14255 * linux-fork.c (scoped_switch_fork_info)
14256 <scoped_switch_fork_info>: Make explicit.
14257 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14259 2019-01-10 Tom Tromey <tom@tromey.com>
14261 * objfiles.h (objfile::reset_psymtabs): Update.
14262 * objfiles.c (objfile::objfile): Update.
14263 * psymtab.h (psymtab_storage::obstack): Update.
14264 (psymtab_storage::m_obstack): Use gdb::optional.
14265 (class psymtab_storage): Update comment. Remove objfile
14267 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14269 2019-01-10 Tom Tromey <tom@tromey.com>
14271 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14272 <free_psymtabs>: Now private.
14273 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14274 (allocate_psymtab): Use new method.
14276 2019-01-10 Tom Tromey <tom@tromey.com>
14278 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14279 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14280 * mdebugread.c (parse_partial_symbols): Use
14281 allocate_dependencies.
14282 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14283 allocate_dependencies.
14284 (process_psymtab_comp_unit_reader)
14285 (build_type_psymtab_dependencies): Likewise.
14286 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14288 2019-01-10 Tom Tromey <tom@tromey.com>
14290 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14291 PSYMBOL_SET_LANGUAGE.
14292 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14294 2019-01-10 Tom Tromey <tom@tromey.com>
14296 * psymtab.h (psymtab_storage::obstack): New method.
14297 <m_obstack>: Rename from obstack; now private.
14298 * psymtab.c (psymtab_storage): Update.
14299 * dwarf2read.c (create_addrmap_from_index)
14300 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14303 2019-01-10 Tom Tromey <tom@tromey.com>
14305 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14306 * objfiles.h (objfile::reset_psymtabs): New method.
14308 2019-01-10 Tom Tromey <tom@tromey.com>
14310 * symmisc.c (print_symbol_bcache_statistics): Update.
14311 (print_objfile_statistics): Update.
14312 * symfile.c (reread_symbols): Update.
14313 * psymtab.h (class psymtab_storage): New.
14314 * psymtab.c (psymtab_storage): New constructor.
14315 (~psymtab_storage): New destructor.
14316 (require_partial_symbols): Update.
14317 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14318 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14319 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14320 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14321 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14322 (start_psymtab_common, end_psymtab_common)
14323 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14324 (allocate_psymtab): Update.
14325 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14327 (dump_psymtab_addrmap, maintenance_print_psymbols)
14328 (maintenance_check_psymtabs): Update.
14329 (class objfile_psymtabs): Move to objfiles.h.
14330 * psympriv.h (discard_psymtab): Now inline.
14331 (psymtab_discarder::psymtab_discarder): Update.
14332 (psymtab_discarder::~psymtab_discarder): Update.
14333 (ALL_OBJFILE_PSYMTABS): Rewrite.
14334 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14335 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14337 <partial_symtabs>: New field.
14338 (class objfile_psymtabs): Move from psymtab.h. Update.
14339 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14341 (objfile::~objfile): Don't destroy psymbol_cache.
14342 * mdebugread.c (parse_partial_symbols): Update.
14343 * dwarf2read.c (create_addrmap_from_index)
14344 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14345 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14346 (add_partial_subprogram, dwarf2_ranges_read): Update.
14347 * dwarf-index-write.c (write_address_map)
14348 (write_one_signatured_type, recursively_write_psymbols)
14349 (class debug_names, class debug_names, write_psymtabs_to_index):
14352 2019-01-10 Tom Tromey <tom@tromey.com>
14354 * symtab.h (SYMBOL_SET_NAMES): Update.
14355 (symbol_set_names): Update.
14356 (MSYMBOL_SET_NAMES): Update.
14357 * symtab.c (symbol_set_names): Change argument to be an
14358 objfile_per_bfd_storage.
14359 * psymtab.c (add_psymbol_to_bcache): Update.
14360 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14362 2019-01-10 Tom Tromey <tom@tromey.com>
14364 * symtab.c (create_demangled_names_hash): Change argument to be an
14365 objfile_per_bfd_storage.
14366 (symbol_set_names): Update.
14368 2019-01-10 Tom Tromey <tom@tromey.com>
14370 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14372 * psymtab.c (init_psymbol_list): Do nothing if already called.
14373 * psympriv.h (init_psymbol_list): Add comment.
14374 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14376 * dbxread.c (dbx_symfile_read): Unconditionally call
14379 2019-01-10 Tom Tromey <tom@tromey.com>
14381 * xcoffread.c (scan_xcoff_symtab): Update.
14382 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14384 * mdebugread.c (parse_partial_symbols)
14385 (handle_psymbol_enumerators): Update.
14386 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14387 * dbxread.c (read_dbx_symtab): Update.
14388 * psympriv.h (psymbol_placement): New enum.
14389 (add_psymbol_to_list): Update.
14391 2019-01-10 Tom Tromey <tom@tromey.com>
14393 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14394 static_psymbols parameters.
14395 (scan_xcoff_symtab): Update.
14396 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14397 static_psymbols parameters.
14398 * psympriv.h (start_psymtab_common): Update.
14399 * mdebugread.c (parse_partial_symbols): Update.
14400 * dwarf2read.c (create_partial_symtab): Update.
14401 * dbxread.c (read_dbx_symtab): Update.
14402 (start_psymtab): Remove global_psymbols and static_psymbols
14405 2019-01-10 Tom Tromey <tom@tromey.com>
14407 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14408 * psymtab.c (allocate_psymtab): Add comment.
14409 * psympriv.h (allocate_psymtab): Add comment.
14410 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14412 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14414 2019-01-10 Tom Tromey <tom@tromey.com>
14416 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14418 * mipsread.c: Include mdebugread.h.
14419 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14421 * elfread.c: Include mdebugread.h.
14423 2019-01-09 Tom Tromey <tom@tromey.com>
14425 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14426 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14427 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14428 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14429 (psym_lookup_symbol, psym_find_last_source_symtab)
14430 (psym_forget_cached_source_info, psym_print_stats)
14431 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14432 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14433 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14434 (psym_find_compunit_symtab_by_address)
14435 (maintenance_print_psymbols, maintenance_info_psymtabs)
14436 (maintenance_check_psymtabs): Use ranged for.
14437 * psymtab.h (class objfile_psymtabs): New.
14438 (require_partial_symbols): Return objfile_psymtabs.
14439 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14441 2019-01-09 Tom Tromey <tom@tromey.com>
14443 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14444 (find_pc_mapped_section, list_overlays_command)
14445 (map_overlay_command, unmap_overlay_command)
14446 (simple_overlay_update): Use all_objfiles.
14447 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14448 * printcmd.c (info_symbol_command): Use all_objfiles.
14449 * objfiles.h (ALL_OBJSECTIONS): Remove.
14450 * maint.c (maintenance_translate_address): Use all_objfiles.
14451 * gcore.c (gcore_create_callback): Use all_objfiles.
14452 (objfile_find_memory_regions): Likewise.
14454 2019-01-09 Tom Tromey <tom@tromey.com>
14456 * symtab.c (find_line_symtab, info_sources_command)
14457 (make_source_files_completion_list): Use objfile_compunits.
14458 * source.c (select_source_symtab): Use objfile_compunits.
14459 * objfiles.h (struct objfile): Update comment.
14460 (ALL_OBJFILES): Remove.
14461 (ALL_FILETABS): Remove.
14462 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14465 2019-01-09 Tom Tromey <tom@tromey.com>
14467 * symmisc.c (print_objfile_statistics, dump_objfile)
14468 (maintenance_print_symbols): Use compunit_filetabs.
14469 * source.c (forget_cached_source_info_for_objfile): Use
14471 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14472 (ALL_FILETABS): Use compunit_filetabs.
14473 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14474 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14476 2019-01-09 Tom Tromey <tom@tromey.com>
14478 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14479 (compunit_filetabs): New.
14480 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14482 (info_sources_command, make_source_files_completion_list): Remove
14484 * symmisc.c (print_objfile_statistics, dump_objfile)
14485 (maintenance_print_symbols): Remove declaration.
14486 (maintenance_info_symtabs): Use compunit_filetabs.
14487 (maintenance_info_line_tables): Likewise.
14488 * source.c (select_source_symtab): Change local variable name.
14489 (forget_cached_source_info_for_objfile): Remove declaration.
14490 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14491 * objfiles.c (objfile_relocate1): Remove declaration.
14492 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14494 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14495 * coffread.c (coff_symtab_read): Remove declaration.
14496 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14499 2019-01-09 Tom Tromey <tom@tromey.com>
14501 * symtab.c (lookup_objfile_from_block)
14502 (find_pc_sect_compunit_symtab, search_symbols)
14503 (default_collect_symbol_completion_matches_break_on): Use
14505 * objfiles.h (ALL_COMPUNITS): Remove.
14506 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14507 * cp-support.c (add_symbol_overload_list_qualified): Use
14509 * ada-lang.c (ada_collect_symbol_completion_matches)
14510 (ada_add_global_exceptions): Use objfile_compunits.
14512 2019-01-09 Tom Tromey <tom@tromey.com>
14514 * source.c (select_source_symtab)
14515 (forget_cached_source_info_for_objfile): Remove declaration.
14516 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14518 * maint.c (count_symtabs_and_blocks): Remove declaration.
14519 * cp-support.c (add_symbol_overload_list_qualified): Remove
14521 * coffread.c (coff_symtab_read): Remove declaration.
14522 * symtab.c (lookup_symbol_in_objfile_symtabs)
14523 (basic_lookup_transparent_type_1): Use objfile_compunits.
14524 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14525 (info_sources_command, search_symbols)
14526 (default_collect_symbol_completion_matches_break_on)
14527 (make_source_files_completion_list): Remove declaration.
14528 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14529 (ada_collect_symbol_completion_matches)
14530 (ada_add_global_exceptions): Remove declaration.
14531 * linespec.c (iterate_over_all_matching_symtabs): Use
14533 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14534 (class objfile_compunits): New.
14535 (ALL_COMPUNITS): Use objfile_compunits.
14536 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14537 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14539 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14541 2019-01-09 Tom Tromey <tom@tromey.com>
14543 * symtab.c (search_symbols)
14544 (default_collect_symbol_completion_matches_break_on): Use
14546 * ada-lang.c (ada_lookup_simple_minsym)
14547 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14548 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14549 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14551 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14552 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14553 * objc-lang.c (find_methods): Use objfile_msymbols.
14554 (info_selectors_command, info_classes_command): Likewise.
14555 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14556 * objfiles.h (class objfile_msymbols): New.
14557 (ALL_OBJFILE_MSYMBOLS): Remove.
14558 (ALL_MSYMBOLS): Remove.
14560 2019-01-09 Tom Tromey <tom@tromey.com>
14562 * common/next-iterator.h (next_adapter): Add Iterator template
14564 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14565 (class all_objfiles_safe): New.
14566 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14567 * objfiles.c (put_objfile_before): Update comment.
14568 (add_separate_debug_objfile): Likewise.
14569 (free_all_objfiles): Use all_objfiles_safe.
14570 (objfile_purge_solibs): Likewise.
14572 2019-01-09 Tom Tromey <tom@tromey.com>
14574 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14575 (expand_symtab_containing_pc, lookup_static_symbol)
14576 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14577 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14579 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14580 * breakpoint.c (create_overlay_event_breakpoint)
14581 (create_longjmp_master_breakpoint)
14582 (create_std_terminate_master_breakpoint)
14583 (create_exception_master_breakpoint): Use all_objfiles.
14584 * linux-thread-db.c (try_thread_db_load_from_pdir)
14585 (has_libpthread): Use all_objfiles.
14586 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14587 * linespec.c (iterate_over_all_matching_symtabs)
14588 (search_minsyms_for_name): Use all_objfiles.
14589 * maint.c (maintenance_info_sections): Use all_objfiles.
14590 * main.c (captured_main_1): Use all_objfiles.
14591 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14592 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14593 * guile/scm-pretty-print.c
14594 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14595 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14596 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14597 (maintenance_print_msymbols): Use all_objfiles.
14598 * source.c (select_source_symtab): Use all_objfiles.
14599 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14600 * symfile.c (remove_symbol_file_command)
14601 (expand_symtabs_matching, map_symbol_filenames): Use
14603 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14605 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14606 * objc-lang.c (find_methods): Use all_objfiles.
14607 * objfiles.c (have_partial_symbols, have_full_symbols)
14608 (have_minimal_symbols, qsort_cmp)
14609 (default_iterate_over_objfiles_in_search_order): Use
14611 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14612 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14613 (maintenance_check_psymtabs): Use all_objfiles.
14614 (ALL_PSYMTABS): Remove.
14615 * compile/compile-object-run.c (do_module_cleanup): Use
14617 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14618 * cp-support.c (add_symbol_overload_list_qualified): Use
14620 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14622 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14623 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14625 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14626 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14627 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14629 * solib.c (solib_read_symbols): Use all_objfiles
14631 2019-01-09 Tom Tromey <tom@tromey.com>
14633 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14634 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14636 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14637 * symmisc.c (print_symbol_bcache_statistics)
14638 (print_objfile_statistics, maintenance_print_objfiles)
14639 (maintenance_info_symtabs, maintenance_check_symtabs)
14640 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14642 * source.c (forget_cached_source_info): Use all_objfiles.
14643 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14644 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14645 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14646 * objfiles.c (update_section_map): Use all_objfiles.
14647 (shared_objfile_contains_address_p): Likewise.
14648 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14649 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14651 2019-01-09 Tom Tromey <tom@tromey.com>
14653 * common/next-iterator.h: New file.
14654 * objfiles.h (class all_objfiles): New.
14655 (struct objfile_iterator): New.
14657 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14659 * NEWS: Move the description of the changed "frame", "select-frame",
14660 and "info frame" commands to the Changed commands section.
14662 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14664 * gdbtypes.c (check_stub_method_group): Remove handling of old
14666 * linespec.c (find_methods): Likewise.
14667 * stabsread.c (read_member_functions): Likewise.
14668 * valops.c (search_struct_method): Likewise.
14669 (value_struct_elt_for_reference): Likewise.
14670 * NEWS: Mention this change.
14672 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14674 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14675 print_source_lines.
14676 * source.c (print_source_lines_base): Update line number check.
14677 (print_source_lines): New function.
14678 (source_lines_range::source_lines_range): New function.
14679 * source.h (class source_lines_range): New class.
14680 (print_source_lines): New declaration.
14682 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14684 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14686 2019-01-08 Tom Tromey <tom@tromey.com>
14687 Simon Marchi <simon.marchi@ericsson.com>
14690 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14691 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14692 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14693 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14694 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14695 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14697 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14699 * source.c (select_source_symtab): Move header comment to
14700 declaration in source.h.
14701 (forget_cached_source_info_for_objfile): Likewise.
14702 (forget_cached_source_info): Likewise.
14703 (identify_source_line): Likewise.
14704 * source.h (identify_source_line): Move declaration from symtab.h
14705 and add comment from source.c
14706 (print_source_lines): Likewise.
14707 (forget_cached_source_info_for_objfile): Likewise.
14708 (forget_cached_source_info): Likewise.
14709 (select_source_symtab): Likewise.
14710 (enum print_source_lines_flag): Move definition from symtab.h.
14711 * symtab.h (identify_source_line): Move declaration to source.h.
14712 (print_source_lines): Likewise.
14713 (forget_cached_source_info_for_objfile): Likewise.
14714 (forget_cached_source_info): Likewise.
14715 (select_source_symtab): Likewise.
14716 (enum print_source_lines_flag): Move definition to source.h.
14717 * tui/tui-hooks.c: Add 'source.h' include.
14719 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14721 * source.c (print_source_lines_base): Handle requests to print
14722 reverse line number sequences, and guard against empty lines
14725 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14727 * source.c (print_source_lines_base): Fix skip of '\r' if next
14730 2019-01-06 Tom Tromey <tom@tromey.com>
14732 * c-exp.y (struct c_parse_state) <macro_original_text,
14733 expansion_obstack>: New member.
14734 (macro_original_text, expansion_obstack): Remove globals.
14735 (scan_macro_expansion, scanning_macro_expansion)
14736 (finished_macro_expansion): Update.
14737 (scan_macro_cleanup): Remove.
14738 (yylex, c_parse): Update.
14740 2019-01-06 Tom Tromey <tom@tromey.com>
14742 * c-exp.y (struct c_parse_state) <strings>: New member.
14743 (operator_stoken): Update.
14745 2019-01-06 Tom Tromey <tom@tromey.com>
14747 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14748 (union type_stack_elt) <typelist_val>: Now a pointer to
14750 (type_stack_cleanup): Don't declare.
14751 (push_typelist): Update.
14752 * parse.c (pop_typelist): Return a std::vector.
14753 (push_typelist): Take a std::vector.
14754 (follow_types): Update. Do not free args.
14755 (type_stack_cleanup): Remove.
14756 * c-exp.y (struct c_parse_state): New.
14757 (cpstate): New global.
14758 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14759 (nonempty_typelist): Update.
14760 (func_mod): Create a new vector.
14761 (c_parse): Create a c_parse_state.
14762 (check_parameter_typelist): Do not delete params.
14763 (function_method): Update. Do not delete type_list.
14765 2019-01-06 Tom Tromey <tom@tromey.com>
14768 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14770 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14771 (print_return_value): Likewise.
14773 2019-01-05 Tom Tromey <tom@tromey.com>
14775 * contrib/cleanup_check.py: Remove.
14776 * contrib/gcc-with-excheck: Remove.
14777 * contrib/exsummary.py: Remove.
14778 * contrib/excheck.py: Remove.
14780 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14782 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14783 NULL. Initialize tpprev to NULL instead of assigning it
14784 to NULL on the next statement.
14785 * windows-nat.c (windows_delete_thread): Remove check for
14786 main_thread_id before printing thread exit notifications.
14787 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14788 Remove thread ID check against main_thread_id.
14789 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14790 windows_delete_thread.
14791 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14793 2019-01-04 Tom Tromey <tom@tromey.com>
14795 * compile/compile.c (_initialize_compile): Use upper case for
14796 metasyntactic variables.
14797 * symmisc.c (_initialize_symmisc): Use upper case for
14798 metasyntactic variables.
14799 * psymtab.c (_initialize_psymtab): Use upper case for
14800 metasyntactic variables.
14801 * demangle.c (demangle_command): Use upper case for metasyntactic
14803 (_initialize_demangler): Likewise.
14804 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14807 2019-01-03 Tom Tromey <tom@tromey.com>
14809 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14811 2019-01-03 Tom Tromey <tom@tromey.com>
14813 * python/py-symtab.c (salpy_str): Update.
14814 (struct salpy_sal_object) <symtab>: Now a PyObject.
14815 (salpy_dealloc): Update.
14816 (del_objfile_sal): Use gdbpy_ref.
14818 2019-01-03 Tom Tromey <tom@tromey.com>
14820 * python/py-type.c (convert_field): Use new_reference. Return
14822 (make_fielditem): Return gdbpy_ref.
14823 (typy_fields): Update.
14824 (typy_getitem): Update.
14825 (field_name): Return gdbpy_ref. Use new_reference.
14826 (typy_iterator_iternext): Update.
14828 2019-01-03 Tom Tromey <tom@tromey.com>
14830 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14832 2019-01-03 Tom Tromey <tom@tromey.com>
14834 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14835 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14836 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14837 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14838 (pspy_set_type_printers): Likewise.
14839 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14840 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14841 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14842 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14843 (objfpy_set_type_printers): Likewise.
14845 2019-01-03 Tom Tromey <tom@tromey.com>
14847 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14848 (gdbpy_print_stack): Use gdbpy_err_fetch.
14849 * python/python-internal.h (class gdbpy_err_fetch): New class.
14850 (class gdbpy_enter) <m_error_type, m_error_value,
14851 m_error_traceback>: Remove.
14852 <m_error>: New member.
14853 (gdbpy_exception_to_string): Don't declare.
14854 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14855 * python/py-value.c (convert_value_from_python): Use
14857 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14858 gdbpy_exception_to_string.
14859 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14860 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14863 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14865 * linux-nat.c (delete_lwp_cleanup): Delete.
14866 (struct lwp_deleter): New struct.
14867 (lwp_info_up): New typedef.
14868 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14871 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14873 * linux-fork.c (class scoped_switch_fork_info): New class.
14874 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14876 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14878 * valops.c (find_overload_match): Remove use of null_cleanup, and
14879 calls to do_cleanups.
14881 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14883 * compile/compile-cplus-types.c
14884 (compile_cplus_instance::decl_name): Handle changes to
14886 * cp-support.c (cp_func_name): Update header comment, update
14888 * cp-support.h (cp_func_name): Update return type in declaration.
14889 * valops.c (find_overload_match): Move temp_func local to top
14890 level of function and change its type. Use temp_func to hold and
14891 delete temporary string obtained from cp_func_name.
14893 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14895 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14896 gdb::char_vector, remove cleanup, and update uses of `msg`.
14898 2019-01-03 Jim Wilson <jimw@sifive.com>
14900 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14902 2019-01-02 Tom Tromey <tom@tromey.com>
14904 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14905 (tdesc_parse_xml): Remove cleanups.
14906 * target-descriptions.h (make_cleanup_free_target_description):
14908 (target_desc_deleter): New struct.
14909 (target_desc_up): New typedef.
14910 * target-descriptions.c (target_desc_deleter::operator()): Rename
14911 from free_target_description.
14912 (make_cleanup_free_target_description): Remove.
14914 2019-01-02 Tom Tromey <tom@tromey.com>
14916 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14917 constructor, destructor.
14918 (linespec_parser): Remove typedef.
14919 (~linespec_parser): Rename from linespec_parser_delete.
14920 (linespec_lex_to_end, linespec_complete_label)
14921 (linespec_complete): Update.
14922 (decode_line_full): Remove cleanups.
14923 (decode_line_1): Update.
14925 2019-01-02 Tom Tromey <tom@tromey.com>
14927 * python/python-internal.h (inferior_to_inferior_object): Change
14929 * python/py-exitedevent.c (create_exited_event_object): Update.
14930 * python/py-inferior.c (inferior_to_inferior_object): Return
14932 (python_new_inferior, python_inferior_deleted)
14933 (thread_to_thread_object, delete_thread_object)
14934 (build_inferior_list, gdbpy_selected_inferior): Update.
14935 * python/py-infthread.c (create_thread_object): Update. Also fail
14936 if inferior_to_inferior_object fails.
14938 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14940 * inferior.h (class inferior) <displaced_step_state>: New field.
14941 * infrun.h (struct displaced_step_state): Move here from
14942 infrun.c. Initialize fields, add constructor.
14943 <inf>: Remove field.
14944 <reset>: New method.
14945 * infrun.c (struct displaced_step_inferior_state): Move to
14947 (displaced_step_inferior_states): Remove.
14948 (get_displaced_stepping_state): Adust.
14949 (displaced_step_in_progress_any_inferior): Adjust.
14950 (displaced_step_in_progress_thread): Adjust.
14951 (displaced_step_in_progress): Adjust.
14952 (add_displaced_stepping_state): Remove.
14953 (get_displaced_step_closure_by_addr): Adjust.
14954 (remove_displaced_stepping_state): Remove.
14955 (infrun_inferior_exit): Call displaced_step_state.reset.
14956 (use_displaced_stepping): Don't check for NULL.
14957 (displaced_step_prepare_throw): Call
14958 get_displaced_stepping_state.
14959 (displaced_step_fixup): Don't check for NULL.
14960 (prepare_for_detach): Don't check for NULL.
14962 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14964 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14965 in case of call that did not complete.
14967 2019-01-02 Andrey Utkin <autkin@undo.io>
14969 * symfile.c (find_separate_debug_file): Fix search of debug files for
14972 2019-01-02 Tom Tromey <tom@tromey.com>
14974 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14976 * python/py-frame.c (frapy_older): Remove cast.
14977 (frapy_newer): Likewise.
14978 * python/py-breakpoint.c (local_setattro): Remove cast.
14979 * python/py-arch.c (archpy_name): Remove local variable.
14980 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14982 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14984 * unittests/basic_string_view/element_access/char/empty.cc:
14985 Fix year range in copyright header.
14987 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14989 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14991 <operator==>: Update with for removed field.
14993 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14994 <isa_features>: ...this.
14995 <abi_features>: New field.
14996 (riscv_isa_flen): Update comment.
14997 (riscv_abi_xlen): New declaration.
14998 (riscv_abi_flen): New declaration.
14999 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15001 (riscv_abi_xlen): New function.
15002 (riscv_isa_flen): Update to get answer from isa_features.
15003 (riscv_abi_flen): New function.
15004 (riscv_has_fp_abi): Update to get answer from abi_features.
15005 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15007 (riscv_call_info) <xlen, flen>: Update comment.
15008 (riscv_call_arg_struct): Remove invalid assertions
15009 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15011 (riscv_gdbarch_init): Gather isa features and abi features
15012 separately, ensure both match on the gdbarch when reusing an old
15013 gdbarch. Relax an error check to allow 32-bit abi float to run on
15014 a target with 64-bit float hardware.
15016 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15018 * source.c (search_command_helper): Stop reverse search
15019 when line 1 has been searched.
15021 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15023 * record-full.c (record_full_base_target::close): Rewrite
15024 record_full_core_buf_list free logic.
15026 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15028 * break-catch-syscall.c (print_one_catch_syscall): xfree
15031 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15033 * top.c (print_gdb_version): Update Copyright year in version
15036 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15038 Update copyright year range in all GDB files.
15040 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15042 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15044 For older changes see ChangeLog-2018.
15050 version-control: never