1 2019-11-06 Tom Tromey <tom@tromey.com>
3 * tui/tui-interp.c: Don't include readline.h.
4 * tui/tui-hooks.c: Don't include readline.h.
5 * symmisc.c: Include tilde.h, not readline.h.
6 * symfile.c: Include tilde.h, not readline.h.
7 * source.c: Include tilde.h, not readline.h.
8 * solib.c: Include tilde.h, not readline.h.
9 * psymtab.c: Include tilde.h, not readline.h.
10 * exec.c: Include tilde.h, not readline.h.
11 * corelow.c: Include tilde.h, not readline.h.
12 * cli/cli-dump.c: Include tilde.h, not readline.h.
13 * cli/cli-cmds.c: Don't include readline.h.
15 2019-11-05 Tom Tromey <tom@tromey.com>
17 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
18 (tui_disassemble): Set addr_size.
19 (tui_disasm_window::set_contents): Use addr_size.
21 2019-11-05 Tom Tromey <tom@tromey.com>
23 * rust-lang.c (rust_language_defn): Update.
24 * python/py-value.c (valpy_string): Call c_get_string.
25 * p-lang.c (pascal_language_defn): Update.
26 * opencl-lang.c (opencl_language_defn): Update.
27 * objc-lang.c (objc_language_defn): Update.
28 * m2-lang.c (m2_language_defn): Update.
29 * language.c (unknown_language_defn, auto_language_defn): Update.
30 (default_get_string): Remove.
31 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
32 * go-lang.c (go_language_defn): Update.
33 * f-lang.c (f_language_defn): Update.
34 * d-lang.c (d_language_defn): Update.
35 * c-lang.c (c_language_defn, cplus_language_defn)
36 (asm_language_defn, minimal_language_defn): Update.
37 * ada-lang.c (ada_language_defn): Update.
38 * language.h (struct language_defn) <la_get_string>: Remove.
39 (LA_GET_STRING): Remove.
40 (default_get_string): Don't declare.
42 2019-11-05 Tom Tromey <tom@tromey.com>
44 * tui/tui-source.h (struct tui_source_window): Inline
45 constructor. Remove destructor.
46 <style_changed, m_observable>: Move to superclass.
47 * tui/tui-winsource.h (tui_copy_source_line): Declare.
48 (struct tui_source_window_base): Move private members to end.
49 <style_changed, m_observable>: Move from tui_source_window.
50 * tui/tui-winsource.c (tui_copy_source_line): Move from
51 tui-source.c. Rename from copy_source_line. Add special handling
52 for negative line number.
53 (tui_source_window_base::style_changed): Move from
55 (tui_source_window_base): Register observer.
56 (~tui_source_window_base): New.
57 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
59 (tui_source_window::set_contents): Use tui_copy_source_line.
60 (tui_source_window::tui_source_window): Move to tui-source.h.
61 (tui_source_window::~tui_source_window): Remove.
62 (tui_source_window::style_changed): Move to superclass.
63 * tui/tui-disasm.c (tui_disassemble): Create string file with
64 styling, when possible. Add "addr_size" parameter.
65 (tui_disasm_window::set_contents): Use tui_copy_source_line.
66 Don't compute maximum size.
67 (len_without_escapes): New function
69 2019-11-05 Tom Tromey <tom@tromey.com>
71 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
73 * tui/tui-winsource.c (tui_show_source_line): Update.
74 * tui/tui-source.c (tui_source_window::set_contents): Update.
75 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
77 2019-11-05 Christian Biesinger <cbiesinger@google.com>
79 * symtab.h (gdb_static_assert): Put && operator at the beginning
80 of the line instead of the end.
82 2019-11-04 Christian Biesinger <cbiesinger@google.com>
84 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
86 * symtab.h: Add a static_assert for sizeof (partial_symbol).
88 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
90 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
91 * configure.host: Mark *-*-solaris2.10* obsolete.
92 * configure.tgt: Mark Solaris < 11 obsolete.
93 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
94 Update target triplet.
96 2019-11-01 Tom Tromey <tromey@adacore.com>
98 * utils.c (print_sys_errmsg): Simplify.
100 2019-11-01 Tom Tromey <tromey@adacore.com>
102 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
104 2019-11-01 Christian Biesinger <cbiesinger@google.com>
106 * configure: Regenerate.
107 * configure.ac: Remove check for strerror_r.
108 * gdbsupport/common.m4: Check for strerror_r.
110 2019-11-01 Luis Machado <luis.machado@linaro.org>
114 * arm-tdep.c (arm_per_objfile): Rename to ...
115 (arm_per_bfd): ... this.
116 (arm_objfile_data_key): Rename to ...
117 (arm_bfd_data_key): ... this.
118 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
120 (arm_record_special_symbol): Likewise.
122 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
124 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
126 * c-typeprint.c (c_print_typedef): Likewise.
127 * f-typeprint.c (f_print_typedef): Likewise.
128 * m2-typeprint.c (m2_print_typedef): Likewise.
129 * p-typeprint.c (pascal_print_typedef): Likewise.
130 * rust-lang.c (rust_print_typedef): Likewise.
131 * symtab.c (print_symbol_info): Print a newline after calling
134 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
136 * symtab.c (info_module_cmdlist): New variable.
137 (info_module_command): New function.
138 (search_module_symbols): New function.
139 (info_module_subcommand): New function.
140 (struct info_modules_var_func_options): New struct.
141 (info_modules_var_func_options_defs): New variable.
142 (make_info_modules_var_func_options_def_group): New function.
143 (info_module_functions_command): New function.
144 (info_module_variables_command): New function.
145 (info_module_var_func_command_completer): New function.
146 (_initialize_symtab): Register new 'info module functions' and
147 'info module variables' commands.
148 * symtab.h (typedef symbol_search_in_module): New typedef.
149 (search_module_symbols): Declare new function.
150 * NEWS: Mention new commands.
152 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
154 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
155 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
156 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
158 (scan_partial_symbols): Only create partial module symbols for non
160 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
162 * symtab.c (search_domain_name): Likewise.
163 (search_symbols): Likewise.
164 (print_symbol_info): Likewise.
165 (symtab_symbol_info): Likewise.
166 (info_modules_command): New function.
167 (_initialize_symtab): Register 'info modules' command.
168 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
169 * NEWS: Mention new 'info modules' command.
171 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
173 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
174 and $_gdb_maint_setting_str.
176 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
178 * cli/cli-cmds.c (setting_cmd, value_from_setting)
179 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
180 (str_value_from_setting, gdb_setting_str_internal_fn)
181 (gdb_maint_setting_str_internal_fn): New functions.
182 (_initialize_cli_cmds): Define the new convenience functions.
183 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
184 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
186 2019-10-31 Christian Biesinger <cbiesinger@google.com>
188 * agent.c (set_can_use_agent): When the setting is turned on,
189 look up agent symbols if we don't have them yet.
190 (agent_new_objfile): Don't look up agent symbols when the agent
193 2019-10-31 Christian Biesinger <cbiesinger@google.com>
195 * config.in: Regenerate.
197 2019-10-31 Christian Biesinger <cbiesinger@google.com>
199 * configure: Regenerate.
200 * configure.ac: Check for strerror_r.
201 * gdbsupport/common-utils.h (safe_strerror): Change return value
202 to const char * and document that this function is now threadsafe.
203 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
204 thread_local and call strerror_r, if available.
205 * utils.c (perror_string): Update.
206 (print_sys_errmsg): Update.
208 2019-10-31 Luis Machado <luis.machado@linaro.org>
210 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
212 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
213 objfile to fetch per-bfd data.
214 (arm_find_exidx_entry): Likewise.
216 2019-10-31 Christian Biesinger <cbiesinger@google.com>
218 * gdbsupport/agent.c (debug_agent): Change type to bool.
219 (use_agent): Likewise.
220 (all_agent_symbols_look_up): Likewise.
221 (agent_loaded_p): Change return value to bool.
222 (agent_look_up_symbols): Update.
223 (agent_capability_check): Change return value to bool.
224 * gdbsupport/agent.h (agent_loaded_p): Likewise.
225 (debug_agent): Change type to bool.
226 (use_agent): Likewise.
227 (agent_capability_check): Change return value to bool.
229 2019-10-30 Christian Biesinger <cbiesinger@google.com>
231 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
232 (build_minimal_symbol_hash_tables): Code to clear the table moved
233 to clear_minimal_symbol_hash_tables.
234 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
237 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
239 * infcmd.c: Remove includes.
240 * infrun.c: Remove includes.
242 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
244 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
245 (grow_vect): Remove declaration.
246 (ada_type_of_array): Remove declaration.
247 (ada_update_initial_language): Remove declaration.
248 (ada_fold_name): Remove declaration.
249 (ada_fill_in_ada_prototype): Remove declaration.
250 (user_select_syms): Remove declaration.
251 (get_selections): Remove declaration.
252 (ada_tag_type): Remove declaration.
253 (ada_value_tag): Remove declaration.
254 (ada_is_others_clause): Remove declaration.
255 (ada_in_variant): Remove declaration.
256 (ada_value_struct_elt): Remove declaration.
257 (ada_attribute_name): Remove declaration.
258 (ada_system_address_type): Remove declaration.
259 * ada-lang.c (ada_watch_location_expression): Make static.
260 (GROW_VECT): Move here from ada-lang.h.
261 (grow_vect): Make static.
262 (ada_update_initial_language): Make static.
263 (ada_fold_name): Make static.
264 (ada_type_of_array): Make static.
265 (encoded_ordered_before): Move up.
266 (sort_choices): Move up.
267 (print_signatures): Move up.
268 (ada_print_symbol_signature): Move up.
269 (get_selections): Move up and make static.
270 (user_select_syms): Move up and make static.
271 (ada_value_struct_elt): Move up and make static.
272 (ada_tag_type): Make static.
273 (ada_value_tag): Make static.
274 (ada_is_others_clause): Make static.
275 (ada_in_variant): Make static.
276 (ada_attribute_name): Make static.
278 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
280 * ada-lang.c: Remove includes.
281 * ada-typeprint.c: Remove includes.
282 * ada-valprint.c: Remove includes.
284 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
286 * addrmap.c: Add static assertions of type size, moved from
288 (_initialize_addrmap): Remove.
290 2019-10-29 Christian Biesinger <cbiesinger@google.com>
292 * coffread.c (record_minimal_symbol): Update.
293 (process_coff_symbol): Update.
294 * dbxread.c (read_dbx_symtab): Update.
295 * dwarf2read.c (add_partial_symbol): Update.
296 (fixup_go_packaging): Update.
297 (load_partial_dies): Update.
298 (new_symbol): Update.
299 * elfread.c (record_minimal_symbol): Change signature to use
300 gdb::string_view instead of name+len.
301 (elf_symtab_read): Update.
302 (elf_rel_plt_read): Update.
303 * mdebugread.c (parse_partial_symbols): Update.
304 (handle_psymbol_enumerators): Update.
305 (new_symbol): Update.
306 * minsyms.c (minimal_symbol_reader::record_full): Change signature
307 to use gdb::string_view instead of name+len.
308 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
309 * psympriv.h (add_psymbol_to_list): Likewise.
310 * psymtab.c (add_psymbol_to_bcache): Likewise.
311 (add_psymbol_to_list): Likewise.
312 * stabsread.c (define_symbol): Update.
313 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
314 * symtab.h (SYMBOL_SET_NAMES): Likewise.
315 (symbol_set_names): Likewise.
316 * xcoffread.c (scan_xcoff_symtab): Update.
318 2019-10-29 Christian Biesinger <cbiesinger@google.com>
320 * symtab.h (symbol_set_names): Document that copy_name must be
321 set to true for non-nullterminated strings.
322 * symtab.c (symbol_set_names): Only make a nullterminated copy of
323 linkage_name if the entry was not found and we need to demangle.
325 2019-10-29 Christian Biesinger <cbiesinger@google.com>
327 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
328 * dwarf2-frame.c (bsearch_fde_cmp): Update.
329 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
330 * gdbsupport/gdb_binary_search.h: New file.
332 2019-10-29 Christian Biesinger <cbiesinger@google.com>
334 * NEWS: Mention new --with-system-gdbinit-dir option.
335 * config.in: Regenerate.
336 * configure: Regenerate.
337 * configure.ac: Add new option --with-system-gdbinit-dir.
338 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
340 * main.c (get_init_files): Change system_gdbinit argument to
341 a vector and return the files in SYSTEM_GDBINIT_DIR in
342 addition to SYSTEM_GDBINIT.
343 (captured_main_1): Update.
344 (print_gdb_help): Update.
345 * top.c (print_gdb_configuration): Also print the value of
348 2019-10-28 Christian Biesinger <cbiesinger@google.com>
350 * gdbsupport/common-utils.h (startswith): Add an overloaded version
351 that takes gdb::string_view arguments.
353 2019-10-26 Tom de Vries <tdevries@suse.de>
355 * aarch64-linux-tdep.c: Fix typos in comments.
356 * aarch64-tdep.c: Same.
360 * arch/aarch64-insn.c: Same.
362 * breakpoint.h: Same.
365 * cli/cli-decode.c: Same.
366 * cli/cli-script.c: Same.
367 * cli/cli-utils.h: Same.
368 * coff-pe-read.c: Same.
370 * compile/compile-cplus-symbols.c: Same.
371 * compile/compile-object-run.c: Same.
374 * cp-support.c: Same.
376 * dwarf-index-write.c: Same.
377 * dwarf2-frame.c: Same.
378 * dwarf2-frame.h: Same.
380 * frame-base.h: Same.
385 * guile/scm-objfile.c: Same.
394 * mi/mi-cmd-disas.c: Same.
395 * mi/mi-getopt.h: Same.
396 * mi/mi-main.c: Same.
398 * nat/aarch64-sve-linux-sigcontext.h: Same.
400 * ppc-linux-nat.c: Same.
401 * ppc-linux-tdep.c: Same.
404 * prologue-value.h: Same.
405 * python/py-evtregistry.c: Same.
406 * python/py-instruction.h: Same.
407 * record-btrace.c: Same.
408 * record-full.c: Same.
410 * rs6000-tdep.c: Same.
412 * sol-thread.c: Same.
413 * sparc-sol2-tdep.c: Same.
414 * sparc64-tdep.c: Same.
419 * tracepoint.c: Same.
420 * tui/tui-data.h: Same.
421 * tui/tui-io.c: Same.
422 * tui/tui-win.c: Same.
424 * unittests/rsp-low-selftests.c: Same.
436 * xtensa-tdep.c: Same.
438 2019-10-25 Ali Tamur <tamur@google.com>
440 * charset.c (find_charset_names): Reflect API change.
442 2019-10-25 Christian Biesinger <cbiesinger@google.com>
444 * symtab.c (struct demangled_name_entry): Change demangled name
445 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
446 part of the struct anymore.
447 (symbol_set_names): No longer obstack allocate + copy the demangled
448 name, just store the allocated name from bfd.
450 2019-10-25 Tom Tromey <tromey@adacore.com>
452 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
453 (bsearch_cie_cmp, add_cie): Remove.
454 (find_cie): Reimplement.
455 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
456 (dwarf2_build_frame_info): Update.
458 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
461 * symfile.c (reread_symbols): Call forget_cached_source_info to
462 clear the stale source cache.
464 2019-10-24 Christian Biesinger <cbiesinger@google.com>
466 * configure: Regenerate.
467 * configure.ac: Remove code that sets python_has_threads.
469 2019-10-24 Christian Biesinger <cbiesinger@google.com>
471 * config.in: Regenerate.
472 * configure: Regenerate.
473 * configure.ac: Remove the code that uses sed to get the python
474 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
476 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
478 * python/py-progspace.c (pspy_block_for_pc): Return None for all
481 2019-10-23 Tom Tromey <tom@tromey.com>
483 * arc-tdep.c: Remove ".." from include.
484 * frv-tdep.c: Remove ".." from include.
485 * lm32-tdep.c: Remove ".." from include.
486 * microblaze-tdep.c: Remove ".." from include.
487 * or1k-tdep.h: Remove ".." from include.
488 * s12z-tdep.c: Remove ".." from include.
489 * Makefile.in (OPCODES_CFLAGS): Add comment.
490 (TOP_CFLAGS): New variable.
491 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
493 2019-10-23 Tom Tromey <tom@tromey.com>
495 * Makefile.in (READLINE_DIR): Update.
497 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
499 * infcall.c (call_function_by_hand_dummy): Fix the function
500 comment. And extract out a code section into...
501 (reserve_stack_space): ...this new function.
503 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
505 * infcall.c (value_arg_coerce): Remove an unused parameter.
506 (call_function_by_hand_dummy): Update the call to
509 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
511 * infcall.c (call_function_by_hand_dummy): Refactor.
513 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
517 2019-10-23 Tom Tromey <tom@tromey.com>
519 * configure: Rebuild.
520 * configure.ac: Don't check for sigprocmask.
521 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
523 2019-10-23 Tom Tromey <tom@tromey.com>
525 * configure: Rebuild.
526 * acinclude.m4: Use m4_include, not sinclude.
528 2019-10-23 Tom de Vries <tdevries@suse.de>
531 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
533 2019-10-22 Christian Biesinger <cbiesinger@google.com>
535 * symtab.c (struct demangled_name_entry) <language>: Change from
536 bitfield to regular variable.
538 2019-10-22 Christian Biesinger <cbiesinger@google.com>
540 * symtab.c (struct demangled_name_entry): Add a constructor.
541 (free_demangled_name_entry): New function to call the destructor
542 for demangled_name_entry.
543 (create_demangled_names_hash): Pass free_demangled_name_entry to
545 (symbol_set_names): Call placement new for demangled_name_entry.
546 * utils.c: No longer include xxhash.h here, now that fast_hash
547 is inlined in the header.
548 * utils.h: Instead, include it here.
550 2019-10-22 Christian Biesinger <cbiesinger@google.com>
552 * Makefile.in: Link with libxxhash.
553 * config.in: Regenerate.
554 * configure: Regenerate.
555 * configure.ac: Search for libxxhash.
556 * utils.c (fast_hash): Use xxhash if present.
558 2019-10-22 Christian Biesinger <cbiesinger@google.com>
560 * utils.h (fast_hash): New function.
561 * symtab.c (hash_demangled_name_entry): Call new function
564 2019-10-22 Christian Biesinger <cbiesinger@google.com>
566 * symtab.c (struct demangled_name_entry): Change type of mangled
567 to gdb::string_view. Also adds a constructor that takes the
569 (hash_demangled_name_entry): Update.
570 (eq_demangled_name_entry): Update.
571 (free_demangled_name_entry): New function to call the destructor
572 now that this is not a POD anymore.
573 (create_demangled_names_hash): Pass free_demangled_name_entry to
575 (symbol_set_names): Update.
577 2019-10-21 Ali Tamur <tamu@google.com>
579 * dwarf2read.c (dir_index): Change type.
580 (file_name_index): Likewise.
581 (line_header::include_dir_at): Change comment and implementation on
582 whether it is DWARF 5.
583 (line_header::is_valid_file_index): New function.
584 (line_header::file_name_at): Change comment and implementation on
585 whether it is DWARF 5.
586 (line_header::file_names): Change to private field renamed as
587 m_file_names and introduce a new accessor method.
588 (line_header::file_names_size): New method.
589 (line_header::include_dirs): Change to private field and rename as
591 (dw2_get_file_names_reader): Define local var at a smaller scope and
593 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
594 (process_structure_scope): Likewise.
595 (line_header::add_include_dir): Change message and reflect renaming.
596 (line_header::add_file_name): Likewise.
597 (read_formatted_entries): Handle DW_FORM_data16.
598 (dwarf_decode_line_header): Fix line header length calculation.
599 (psymtab_include_file_name): Change comment and API.
600 (lnp_state_machine::m_file): Update comment and reflect type change.
601 (lnp_state_machine::record_line): Reflect type change.
602 (dwarf_decode_lines): Reflect API change.
603 (file_file_name): Likewise.
604 (file_full_name): Likewise.
606 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
608 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
610 2019-10-21 Tom Tromey <tom@tromey.com>
612 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
614 2019-10-21 Tom Tromey <tom@tromey.com>
616 * configure.ac (nm.h): Conditionally create nm.h link. Subst
617 NM_H. Use AC_CONFIG_LINKS.
618 * configure: Rebuild.
619 * Makefile.in (NM_H): New variable.
620 (generated_files): Add NM_H. Remove gcore.
621 (nm.h, stamp-nmh): New targets.
623 2019-10-20 Tom Tromey <tom@tromey.com>
625 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
626 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
628 (put_objfile_before): Now static.
630 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
632 * gdbsupport/common-utils.h (startswith): Change return type to
635 2019-10-19 Christian Biesinger <cbiesinger@google.com>
637 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
638 * breakpoint.c (bp_locations_compare): Rename to...
639 (bp_location_is_less_than): ...this, and change to std::sort semantics.
640 (update_global_location_list): Use std::sort instead of qsort.
641 * buildsym.c (compare_line_numbers): Rename to...
642 (lte_is_less_than): ...this, and change to std::sort semantics.
643 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
645 * disasm.c (compare_lines): Rename to...
646 (line_is_less_than): ...this, and change to std::sort semantics.
647 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
649 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
650 (fde_is_less_than): ...this, and change to std::sort semantics.
651 (dwarf2_build_frame_info): Call std::sort instead of qsort.
652 * mdebugread.c (compare_blocks):
653 (block_is_less_than): ...this, and change to std::sort semantics.
654 (sort_blocks): Call std::sort instead of qsort.
655 * objfiles.c (qsort_cmp): Rename to...
656 (sort_cmp): ...this, and change to std::sort semantics.
657 (update_section_map): Call std::sort instead of qsort.
658 * remote.c (compare_pnums): Remove.
659 (map_regcache_remote_table): Call std::sort instead of qsort.
660 * utils.c (compare_positive_ints): Remove.
661 * utils.h (compare_positive_ints): Remove.
662 * xcoffread.c (compare_lte): Remove.
663 (arrange_linetable): Call std::sort instead of qsort.
665 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
667 * symfile.c (init_entry_point_info): Fix typo.
668 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
670 2019-10-18 Tom de Vries <tdevries@suse.de>
672 * aarch64-tdep.c: Fix typos in comments.
675 * alpha-tdep.c: Same.
676 * alpha-tdep.h: Same.
678 * amd64-windows-tdep.c: Same.
681 * arch-utils.c: Same.
682 * arm-nbsd-tdep.c: Same.
685 * blockframe.c: Same.
688 * coff-pe-read.c: Same.
691 * darwin-nat.c: Same.
695 * dtrace-probe.c: Same.
696 * dwarf-index-write.c: Same.
697 * dwarf2-frame-tailcall.c: Same.
698 * dwarf2-frame.c: Same.
699 * dwarf2read.c: Same.
701 * exceptions.c: Same.
706 * gnu-v3-abi.c: Same.
708 * h8300-tdep.c: Same.
710 * i386-linux-tdep.c: Same.
712 * ia64-libunwind-tdep.c: Same.
718 * linux-thread-db.c: Same.
720 * mdebugread.c: Same.
722 * mn10300-tdep.c: Same.
725 * opencl-lang.c: Same.
728 * ppc-linux-nat.c: Same.
729 * ppc-linux-tdep.c: Same.
730 * ppc-sysv-tdep.c: Same.
733 * record-btrace.c: Same.
734 * record-full.c: Same.
735 * remote-fileio.c: Same.
737 * rs6000-tdep.c: Same.
739 * score-tdep.c: Same.
743 * sol-thread.c: Same.
744 * solib-svr4.c: Same.
748 * sparc-sol2-tdep.c: Same.
749 * sparc-tdep.c: Same.
750 * sparc64-tdep.c: Same.
755 * target-descriptions.c: Same.
756 * target-float.c: Same.
763 * windows-nat.c: Same.
765 * xstormy16-tdep.c: Same.
766 * xtensa-tdep.c: Same.
768 2019-10-17 Tom Tromey <tromey@adacore.com>
770 * configure: Rebuild.
771 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
772 in AC_CONFIG_FILES invocation.
773 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
774 new-style config.status invocation.
776 2019-10-17 Tom de Vries <tdevries@suse.de>
778 * arm-nbsd-nat.c: Fix typos in comments.
780 * darwin-nat-info.c: Same.
781 * dwarf2read.c: Same.
790 * mdebugread.c: Same.
791 * moxie-tdep.c: Same.
792 * nto-procfs.c: Same.
794 * ppc-linux-tdep.c: Same.
796 * riscv-tdep.c: Same.
799 * sparc-linux-tdep.c: Same.
802 * target-descriptions.c: Same.
806 2019-10-16 Tom Tromey <tom@tromey.com>
808 * objfiles.h (struct objfile) <original_name>: Now const.
810 2019-10-16 Christian Biesinger <cbiesinger@google.com>
812 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
813 pass on to sigsetjmp's second argument.
814 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
816 2019-10-16 Keith Seitz <keiths@redhat.com>
819 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
820 sections whose size is greater than the file size.
822 2019-10-16 Jim Wilson <jimw@sifive.com>
824 * riscv-tdep.c (riscv_gcc_target_options): New.
825 (riscv_gnu_triplet_regexp): New.
826 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
827 set_gdbarch_gnu_triplet_regexp.
829 2019-10-16 Christian Biesinger <cbiesinger@google.com>
831 * Makefile.in: Add xml-builtin.h.
832 * features/feature_to_c.sh: Add an include for xml-builtin.h
833 to ensure that the compiler checks that the types match.
834 * xml-builtin.h: New file.
835 * xml-support.c (fetch_xml_builtin): Add missing const.
836 * xml-support.h: Remove declaration of xml_builtins.
838 2019-10-16 Tom de Vries <tdevries@suse.de>
841 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
842 (amd64_classify_aggregate): ... here.
843 (amd64_classify_aggregate_field): Handled fiels of nested structs
846 2019-10-16 Tom de Vries <tdevries@suse.de>
849 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
850 that handles 'theclass'.
852 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
854 * linespec.c (decode_digits_ordinary): Update comment.
855 * make-target-delegates: No longer need to handle VEC case.
856 * memrange.c (normalize_mem_ranges): Update comment.
857 * namespace.c (add_using_directive): Update comment.
858 * objc-lang.c (uniquify_strings): Update comment.
859 * ppc-linux-nat.c (struct thread_points): Update comment.
860 * probe.h (find_probes_in_objfile): Update comment.
861 * target.h (enum flash_preserve_mode): Update comment.
862 * varobj.c (varobj_restrict_range): Update comment.
863 * varobj.h (varobj_list_children): Update comment.
865 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
867 * Makefile.in: Remove references to vec.h and vec.c.
868 * aarch64-tdep.c: No longer include vec.h.
869 * ada-lang.c: Likewise.
870 * ada-lang.h: Likewise.
871 * arm-tdep.c: Likewise.
873 * breakpoint.h: Likewise.
874 * charset.c: Likewise.
875 * cp-support.h: Likewise.
876 * dtrace-probe.c: Likewise.
877 * dwarf2read.c: Likewise.
878 * extension.h: Likewise.
879 * gdb_bfd.c: Likewise.
880 * gdbsupport/gdb_vecs.h: Likewise.
881 * gdbsupport/vec.c: Remove.
882 * gdbsupport/vec.h: Remove.
883 * gdbthread.h: Likewise.
884 * guile/scm-type.c: Likewise.
885 * inline-frame.c: Likewise.
886 * machoread.c: Likewise.
887 * memattr.c: Likewise.
888 * memrange.h: Likewise.
889 * namespace.h: Likewise.
890 * nat/linux-btrace.h: Likewise.
891 * osdata.c: Likewise.
892 * parser-defs.h: Likewise.
893 * progspace.h: Likewise.
894 * python/py-type.c: Likewise.
895 * record-btrace.c: Likewise.
896 * rust-exp.y: Likewise.
897 * solib-target.c: Likewise.
898 * stap-probe.c: Likewise.
899 * target-descriptions.c: Likewise.
900 * target-memory.c: Likewise.
901 * target.h: Likewise.
902 * varobj.c: Likewise.
903 * varobj.h: Likewise.
904 * xml-support.h: Likewise.
906 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
908 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
909 Update for new std::vector based implementation.
910 (process_psymtab_comp_unit_reader): Likewise.
911 (scan_partial_symbols): Likewise.
912 (recursively_compute_inclusions): Likewise.
913 (compute_compunit_symtab_includes): Likewise.
914 (process_imported_unit_die): Likewise.
915 (queue_and_load_dwo_tu): Likewise.
916 (follow_die_sig_1): Likewise.
917 * gdb/dwarf2read.h: Remove DEF_VEC_P.
918 (typedef dwarf2_per_cu_ptr): Remove.
919 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
921 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
922 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
923 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
924 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
927 2019-10-15 Tom Tromey <tromey@adacore.com>
929 * windows-nat.c (windows_nat_target::resume): Use %x when logging
932 2019-10-15 Tom Tromey <tromey@adacore.com>
934 * windows-nat.c (windows_nat_target::fetch_registers)
935 (windows_nat_target::store_registers): Rename "pid" to "tid".
937 2019-10-15 Tom Tromey <tromey@adacore.com>
939 * gdbarch.h, gdbarch.c: Rebuild.
940 * gdbarch.sh (gcc_target_options): Change return type to
942 * compile/compile.c (get_args): Update.
943 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
944 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
946 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
948 * arch-utils.c (default_gcc_target_options): Return std::string.
949 * arch-utils.h (default_gcc_target_options): Return std::string.
950 * s390-tdep.c (s390_gcc_target_options): Return std::string.
952 2019-10-15 Christian Biesinger <cbiesinger@google.com>
954 * breakpoint.c (breakpoint_chain): Make static.
955 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
956 of accessing breakpoint_chain.
958 2019-10-15 Christian Biesinger <cbiesinger@google.com>
960 * breakpoint.c (iterate_over_breakpoints): Change function pointer
961 to a gdb::function_view and return value to bool.
962 * breakpoint.h (iterate_over_breakpoints): Likewise.
963 * dummy-frame.c (pop_dummy_frame_bpt): Update.
964 (pop_dummy_frame): Update.
965 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
966 (gdbscm_breakpoints): Update.
967 * python/py-breakpoint.c (build_bp_list): Update.
968 (gdbpy_breakpoints): Update.
969 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
971 (bpfinishpy_handle_stop): Update.
972 (bpfinishpy_handle_exit): Update.
973 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
974 (svr4_update_solib_event_breakpoints): Update.
976 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
978 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
979 when unwrapping single-field structs.
981 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
983 * dwarf2read.c: Remove includes.
985 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
987 * ui-out.c (ui_out::call_do_message): Silence
988 -Wformat-nonliteral warning.
990 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
992 * breakpoint.c: Remove some includes: continuations.h, skip.h,
993 mi/mi-main.h, readline/readline.h, readline/history.h. Add
994 include: readline/tilde.h.
996 2019-10-12 Christian Biesinger <cbiesinger@google.com>
998 * remote.c (remote_target::get_trace_status): Remove declaration of
1001 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1003 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1004 (show_user): Remove declaration of cmdlist.
1005 * cli/cli-cmds.h (max_user_call_depth): Declare.
1006 * cli/cli-script.c (execute_user_command): Remove declaration
1007 of max_user_call_depth.
1009 2019-10-11 Jim Wilson <jimw@sifive.com>
1011 * gdbsupport/print-utils.h (pulongest): Fix comment.
1012 (plongest): Likewise.
1013 (phex): Add missing comment, mention leading zeros.
1014 (phex_nz): Add mention of no leading zeros to comment.
1016 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1017 plongest instead of unsigned long long cast.
1019 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1021 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1022 for external_editor_command and gdbtk_test.
1024 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1026 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1027 * varobj.c (varobjdebug): Move comment to...
1028 * varobj.h (varobjdebug): ...here, and declare.
1030 2019-10-09 Tom Tromey <tom@tromey.com>
1032 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1035 2019-10-09 Tom Tromey <tom@tromey.com>
1037 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1038 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1039 * tui/tui-command.c (tui_cmd_window::resize)
1040 (tui_refresh_cmd_win): Update.
1041 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1042 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1043 * tui/tui-data.c (~tui_gen_win_info): Remove.
1044 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1045 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1046 (tui_redisplay_readline, tui_mld_flush)
1047 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1048 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1049 (tui_data_window::erase_data_content)
1050 (tui_data_item_window::rerender)
1051 (tui_data_item_window::refresh_window): Update.
1052 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1053 (box_win, tui_gen_win_info::make_window)
1054 (tui_gen_win_info::make_visible): Update.
1055 (tui_delete_win): Remove.
1056 * tui/tui-winsource.c
1057 (tui_source_window_base::do_erase_source_content): Update.
1058 (tui_show_source_line, tui_source_window_base::update_tab_width)
1059 (tui_source_window_base::update_exec_info): Update.
1060 * tui/tui-data.h (struct curses_deleter): New.
1061 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1062 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1064 2019-10-09 Tom Tromey <tom@tromey.com>
1066 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1068 2019-10-09 Tom Tromey <tom@tromey.com>
1070 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1071 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1073 2019-10-09 Tom Tromey <tom@tromey.com>
1075 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1076 window height directly.
1077 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1079 * tui/tui-layout.c (tui_default_win_height): Remove.
1080 (tui_default_win_viewport_height): Remove.
1082 2019-10-09 Tom Tromey <tom@tromey.com>
1084 * tui/tui.h: Remove comments.
1086 2019-10-09 Tom de Vries <tdevries@suse.de>
1088 * python/lib/gdb/printer/bound_registers.py: Use
1089 '^builtin_type_bound128' as regexp argument for
1090 add_builtin_pretty_printer.
1092 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1094 * guile/guile.c (guile_extension_script_ops): Remove forward
1095 declaration and mark as static.
1096 (guile_script_ops): Likewise.
1097 (extension_language_guile): Move further down in the file so
1098 it can reference the definitions for guile_{extension_,}script_ops.
1100 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1102 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1103 except SORTL, DFLTCC, and KDSA.
1105 2019-10-08 Tom Tromey <tromey@adacore.com>
1107 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1108 (struct safe_symbol_file_add_args): Remove.
1110 2019-10-08 Tom Tromey <tromey@adacore.com>
1112 * windows-nat.c: Don't include buildsym-legacy.h.
1114 2019-10-08 Tom Tromey <tromey@adacore.com>
1116 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1118 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1120 * gdbtypes.c (overload_debug): Move comment to header.
1121 * gdbtypes.h (overload_debug): Declare.
1122 * valops.c: Remove declaration of overload_debug, instead
1125 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1127 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1129 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1131 * language.h (lang_frame_mismatch_warn): ... here. Also add
1133 * top.c (lang_frame_mismatch_warn): Remove declaration.
1134 (check_frame_language_change): Pass lang_frame_mismatch_warn
1137 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1139 * c-lang.h (vtbl_ptr_name): Declare.
1140 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1142 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1144 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1146 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1149 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1151 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1152 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1153 * ctfread.c: New file.
1154 * ctfread.h: New file.
1155 * elfread.c: Include ctfread.h.
1156 (struct elfinfo text_p): New member ctfsect.
1157 (elf_locate_sections): Mark CTF section.
1158 (elf_symfile_read): Call elfctf_build_psymtabs.
1159 * Makefile.in (LIBCTF): Add.
1162 (DIST): Add ctfread.c.
1164 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1166 * ctfread.c (struct nextfield): Renamed to ...
1167 (struct ctf_nextfield): ... this.
1168 (struct field_info): Renamed to ...
1169 (strut ctf_field_info): ... this.
1170 (attach_fields_to_type): Update for renamed structures.
1171 (ctf_add_member_cb): Likewise.
1172 (ctf_add_enum_member_cb): Likewise.
1173 (process_struct_members): Likewise.
1174 (process_enum_type): Likewise.
1176 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1178 * tracectf.h: Rename, was ctf.h.
1179 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1180 * tracefile.c: Likewise.
1181 * tracepoint.c: Remove unused include ctf.h.
1182 * mi/mi-main.c: Likewise.
1183 * Makefile.in Replace ctf.c with tracectf.c.
1185 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1187 * version.in: Change version number to "9.0.50.DATE-git".
1189 2019-10-03 Tom Tromey <tom@tromey.com>
1192 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1194 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1196 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1197 cp_search_name_hash.
1198 * NEWS: Add entry about nested function support.
1200 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1201 Andrew Burgess <andrew.burgess@embecosm.com>
1203 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1204 for nested static variables when searchin VAR_DOMAIN.
1205 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1206 global scope, update comment.
1207 (add_partial_subprogram): Call add_partial_subprogram recursively
1208 for nested subroutines when processinng Fortran.
1209 (load_partial_dies): Process the child entities of a subprogram
1210 when processing Fortran.
1211 (partial_die_parent_scope): Handle building scope
1212 for Fortran nested functions.
1213 (process_die): Record that nested functions have a scope.
1214 (new_symbol): Always record Fortran subprograms on the global
1216 (determine_prefix): How to build the prefix for Fortran
1219 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1221 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1222 have just sent the thread a SIGSTOP and are waiting for it to
1225 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1227 * btrace.c (btrace_add_pc): Remove whitespace before the template
1228 parameter in 'std::vector <...>'.
1229 (parse_xml_btrace_block): Likewise.
1230 (btrace_maint_decode_pt): Likewise.
1231 (btrace_maint_update_packets): Likewise.
1232 (btrace_maint_print_packets): Likewise.
1233 * btrace.h (struct btrace_maint_info): Likewise.
1234 * dwarf2read.c (struct type_unit_group): Likewise.
1235 (build_type_psymtabs_reader): Likewise.
1236 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1237 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1238 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1240 2019-10-03 Tom de Vries <tdevries@suse.de>
1242 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1243 the first line of the help text for set/show style metadata.
1245 2019-10-02 Tom Tromey <tromey@adacore.com>
1247 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1248 * gdbsupport/common-inferior.c: New file.
1249 * infcmd.c (startup_with_shell): Don't define.
1250 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1251 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1252 * inferior.h (startup_with_shell): Don't declare.
1254 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1256 * gdbsupport/gdb_assert.h: Include errors.h.
1257 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1259 2019-10-02 Tom Tromey <tromey@adacore.com>
1261 * NEWS: Add $_ada_exception entry.
1262 * ada-lang.c (struct ada_catchpoint): Add constructor.
1263 <m_kind>: New member.
1264 (allocate_location_exception, re_set_exception): Remove
1266 (should_stop_exception): Compute $_ada_exception.
1267 (check_status_exception, print_it_exception)
1268 (print_one_exception, print_mention_exception): Remove
1270 (allocate_location_catch_exception, re_set_catch_exception)
1271 (check_status_exception, print_it_catch_exception)
1272 (print_one_catch_exception, print_mention_catch_exception)
1273 (print_recreate_catch_exception)
1274 (allocate_location_catch_exception_unhandled)
1275 (re_set_catch_exception_unhandled)
1276 (check_status_exception, print_it_catch_exception_unhandled)
1277 (print_one_catch_exception_unhandled)
1278 (print_mention_catch_exception_unhandled)
1279 (print_recreate_catch_exception_unhandled)
1280 (allocate_location_catch_assert, re_set_catch_assert)
1281 (check_status_assert, print_it_catch_assert)
1282 (print_one_catch_assert, print_mention_catch_assert)
1283 (print_recreate_catch_assert)
1284 (allocate_location_catch_handlers, re_set_catch_handlers)
1285 (check_status_handlers, print_it_catch_handlers)
1286 (print_one_catch_handlers, print_mention_catch_handlers)
1287 (print_recreate_catch_handlers): Remove.
1288 (create_ada_exception_catchpoint): Update.
1289 (initialize_ada_catchpoint_ops): Update.
1291 2019-10-02 Tom Tromey <tromey@adacore.com>
1293 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1294 (create_excep_cond_exprs): Simplify exception string computation.
1295 (ada_exception_catchpoint_cond_string): Likewise.
1297 2019-10-02 Tom Tromey <tromey@adacore.com>
1299 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1300 * ada-lang.c (lesseq_defined_than): Handle
1302 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1304 (dwarf2_has_info): Likewise.
1305 (new_symbol): Set maybe_copied on symbol when
1307 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1309 <can_copy>: New member.
1310 * elfread.c (record_minimal_symbol): Set maybe_copied
1311 on symbol when appropriate.
1312 (elf_symfile_read): Update call to dwarf2_has_info.
1313 * minsyms.c (lookup_minimal_symbol_linkage): New
1315 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1316 * symtab.c (get_symbol_address, get_msymbol_address):
1318 * symtab.h (get_symbol_address, get_msymbol_address):
1320 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1322 (struct symbol, struct minimal_symbol) <maybe_copied>:
1325 2019-10-02 Tom Tromey <tromey@adacore.com>
1327 * source.c (struct current_source_location): New.
1328 (current_source_key): New global.
1329 (current_source_symtab, current_source_line)
1330 (current_source_pspace): Remove.
1331 (get_source_location): New function.
1332 (get_current_source_symtab_and_line)
1333 (set_default_source_symtab_and_line)
1334 (set_current_source_symtab_and_line)
1335 (clear_current_source_symtab_and_line, select_source_symtab)
1336 (info_source_command, print_source_lines_base)
1337 (info_line_command, search_command_helper, _initialize_source):
1340 2019-10-02 Tom Tromey <tromey@adacore.com>
1342 * source.c (select_source_symtab): Don't call
1343 decode_line_with_current_source.
1345 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1347 * symtab.c (lookup_global_symbol): Search global block.
1349 2019-10-02 Tom Tromey <tromey@adacore.com>
1351 * coffread.c (process_coff_symbol): Update.
1352 * dwarf2read.c (var_decode_location, new_symbol): Update.
1353 * mdebugread.c (parse_symbol): Update.
1354 * objfiles.c (relocate_one_symbol): Update.
1355 * stabsread.c (define_symbol, fix_common_block)
1356 (scan_file_globals): Update.
1357 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1358 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1359 * xcoffread.c (process_xcoff_symbol): Update.
1361 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1363 * MAINTAINERS: Update my email address.
1365 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1367 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1369 (build_type_psymtabs_reader): Update for std::vector.
1370 (build_type_psymtab_dependencies): Likewise.
1371 * dwarf2read.h: Remove use of DEF_VEC_P.
1372 (typedef sig_type_ptr): Delete.
1374 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1376 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1378 (btrace_maint_decode_pt): Likewise, and move allocation of the
1379 vector outside of the loop.
1380 (btrace_maint_update_packets): Update to handle change from VEC to
1382 (btrace_maint_print_packets): Likewise.
1383 (maint_info_btrace_cmd): Likewise.
1384 * btrace.h: Remove use of DEF_VEC_O.
1385 (typedef btrace_pt_packet_s): Delete.
1386 (struct btrace_maint_info) <packets>: Change fromm VEC to
1388 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1390 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1392 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1393 make accesses into the vector constant references.
1394 (btrace_add_pc): Update for std::vector.
1395 (btrace_stitch_bts): Likewise.
1396 (parse_xml_btrace_block): Likewise.
1397 (btrace_maint_update_packets): Likewise.
1398 (btrace_maint_print_packets): Likewise.
1399 (maint_info_btrace_cmd): Likewise.
1400 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1402 (btrace_data::empty): Likewise.
1403 (btrace_data_append): Likewise.
1404 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1405 (typedef btrace_block_s): Delete.
1406 (struct btrace_block): Add constructor.
1407 (struct btrace_data_bts) <blocks>: Change to std::vector.
1408 * nat/linux-btrace.c (perf_event_read_bts): Update for
1410 (linux_read_bts): Likewise.
1412 2019-10-01 Tom Tromey <tom@tromey.com>
1414 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1416 2019-10-01 Tom Tromey <tom@tromey.com>
1418 * stack.c (print_frame, info_frame_command_core): Use
1420 * linux-thread-db.c (try_thread_db_load_1)
1421 (try_thread_db_load_from_pdir_1): Use styled_string.
1422 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1423 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1424 (maybe_print_unsupported_script_warning)
1425 (maybe_print_script_not_found_warning): Use styled_string.
1426 * ada-lang.c (user_select_syms): Use styled_string.
1428 2019-10-01 Tom Tromey <tom@tromey.com>
1430 * p-lang.c (pascal_printstr): Use metadata style.
1431 * value.c (show_convenience): Use metadata style.
1432 * valprint.c (valprint_check_validity, val_print_optimized_out)
1433 (val_print_not_saved, val_print_unavailable)
1434 (val_print_invalid_address, generic_val_print, val_print)
1435 (value_check_printable, val_print_array_elements): Use metadata
1437 * ui-out.h (class ui_out) <field_fmt>: New overload.
1438 <do_field_fmt>: Add style parameter.
1439 * ui-out.c (ui_out::field_fmt): New overload.
1440 * typeprint.c (type_print_unknown_return_type)
1441 (val_print_not_allocated, val_print_not_associated): Use metadata
1443 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1445 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1446 * tracepoint.c (tvariables_info_1): Use metadata style.
1447 * stack.c (print_frame_arg, print_frame_info, print_frame)
1448 (info_frame_command_core): Use metadata style.
1449 * skip.c (info_skip_command): Use metadata style.
1450 * rust-lang.c (rust_print_enum): Use metadata style.
1451 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1453 * python/py-framefilter.c (py_print_single_arg): Use metadata
1455 * printcmd.c (do_one_display, print_variable_and_value): Use
1457 * p-valprint.c (pascal_val_print)
1458 (pascal_object_print_value_fields): Use metadata style.
1459 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1460 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1462 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1463 * m2-valprint.c (m2_print_long_set): Use metadata style.
1464 * m2-typeprint.c (m2_print_type): Use metadata style.
1465 * infcmd.c (print_return_value_1): Use metadata style.
1466 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1467 * f-valprint.c (info_common_command_for_block): Use metadata
1469 * f-typeprint.c (f_type_print_base): Use metadata style.
1470 * expprint.c (print_subexp_standard): Use metadata style.
1471 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1472 * cli/cli-style.h (class cli_style_option): Add constructor.
1473 (metadata_style): Declare.
1474 * cli/cli-style.c (metadata_style): New global.
1475 (_initialize_cli_style): Register metadata style.
1476 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1478 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1479 * c-typeprint.c (c_type_print_base_struct_union)
1480 (c_type_print_base_1): Use metadata style.
1481 * breakpoint.c (watchpoint_value_print)
1482 (print_one_breakpoint_location): Use metadata style.
1483 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1485 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1487 * ada-valprint.c (val_print_packed_array_elements, printstr)
1488 (print_field_values, ada_val_print_ref, ada_val_print): Use
1490 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1492 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1494 * ada-lang.c (user_select_syms): Use metadata style.
1496 2019-10-01 Tom Tromey <tom@tromey.com>
1498 * cli/cli-cmds.c (pwd_command): Style output.
1500 2019-10-01 Pedro Alves <palves@redhat.com>
1501 Tom Tromey <tom@tromey.com>
1503 * symtab.c (print_symbol_info): Use %ps.
1504 (print_msymbol_info): Use %ps.
1505 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1506 * printcmd.c (print_variable_and_value): Use %ps.
1507 * macrocmd.c (show_pp_source_pos): Use %ps.
1508 * infrun.c (print_exited_reason): Use ui_out::message.
1509 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1510 (describe_other_breakpoints): Use ui_out::message and new
1512 (say_where): Use new formats.
1513 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1516 2019-10-01 Pedro Alves <palves@redhat.com>
1517 Tom Tromey <tom@tromey.com>
1519 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1520 (test_gdb_formats): New function.
1521 (run_tests): Call it.
1522 (test_format_specifier): Update.
1523 * utils.h (fputs_filtered): Update comment.
1524 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1525 (fputs_styled_unfiltered): Declare.
1526 * utils.c (fputs_styled_unfiltered): New function.
1527 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1528 (vfprintf_filtered): Update.
1529 (vfprintf_unfiltered, vprintf_filtered): Update.
1530 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1531 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1532 disallow_ui_out_field>: New constants.
1533 (enum class field_kind): New.
1534 (struct base_field_s, struct signed_field_s): New.
1535 (signed_field): New function.
1536 (struct string_field_s): New.
1537 (string_field): New function.
1538 (struct styled_string_s): New.
1539 (styled_string): New function.
1540 (class ui_out) <message>: Add comment.
1541 <vmessage, call_do_message>: New methods.
1542 <do_message>: Add style parameter.
1543 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1545 (ui_out::message): Rewrite.
1546 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1548 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1549 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1550 gdb_extensions parameter.
1551 (class format_piece): Add parameter to constructor.
1552 (n_int_args): New field.
1553 * gdbsupport/format.c (format_pieces::format_pieces): Add
1554 gdb_extensions parameter. Handle '*'.
1555 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1556 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1557 vfprintf_styled_no_gdbfmt.
1558 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1559 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1561 * ui-style.h (struct ui_file_style) <ptr>: New method.
1563 2019-10-01 Tom Tromey <tom@tromey.com>
1565 * unittests/format_pieces-selftests.c: Update. Add final format.
1566 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1567 empty literal pieces.
1569 2019-10-01 Tom Tromey <tom@tromey.com>
1571 * ui-out.h (enum class ui_out_style_kind): Remove.
1572 (class ui_out) <field_string, field_stsream, do_field_string>:
1573 Change type of "style".
1574 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1575 (ui_out::field_string): Update.
1576 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1578 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1579 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1580 * stack.c (print_frame_arg, print_frame_info, print_frame):
1582 * source.c (print_source_lines_base): Update.
1583 * solib.c (info_sharedlibrary_command): Update.
1584 * skip.c (info_skip_command): Update.
1585 * record-btrace.c (btrace_call_history_src_line)
1586 (btrace_call_history): Update.
1587 * python/py-framefilter.c (py_print_frame): Update.
1588 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1590 * mi/mi-out.c (mi_ui_out::do_table_header)
1591 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1592 (mi_ui_out::do_field_string): Update.
1593 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1595 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1597 * cli-out.c (cli_ui_out::do_table_header)
1598 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1599 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1600 (cli_ui_out::do_field_fmt): Update.
1601 * breakpoint.c (print_breakpoint_location): Update.
1602 (update_static_tracepoint): Update.
1604 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1606 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1607 conversion of gdb_datadir.
1608 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1609 remove not needed c_str ().
1611 2019-09-30 Ali Tamur <tamur@google.com>
1613 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1614 (dwarf2_string_attr): Likewise.
1616 2019-09-30 Ali Tamur <tamur@google.com>
1618 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1619 (process_full_type_unit): Likewise.
1620 (dump_die_shallow): Likewise.
1621 (cu_debug_loc_section): Likewise.
1623 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1625 * minsyms.c (compare_minimal_symbols): Rename to...
1626 (minimal_symbol_is_less_than): ...this, and adjust to STL
1627 conventions (return bool, take arguments as references)
1628 (minimal_symbol_reader::install): Call std::sort instead
1631 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1633 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1635 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1636 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1638 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1640 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1641 * psympriv.h (add_psymbol_to_list): Move comment here and update
1644 2019-09-29 Tom de Vries <tdevries@suse.de>
1646 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1647 Use $tmpdir/$(basename "$output_file").dwz instead of
1648 "${output_file}.dwz".
1650 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1653 * hppa-linux-nat.c: Include gdbarch.h.
1655 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1657 * blockframe.c (find_pc_partial_function): Change return type to bool.
1658 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1659 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1660 (stub_gnu_ifunc_resolve_name): Likewise.
1661 * symtab.c (compare_filenames_for_search): Likewise.
1662 (compare_glob_filenames_for_search): Likewise.
1663 (matching_obj_sections): Likewise.
1664 (symbol_matches_domain): Likewise.
1665 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1666 (find_line_pc): Change return type to bool.
1667 (find_line_pc_range): Likewise.
1668 (producer_is_realview): Likewise.
1669 * symtab.h (symbol_matches_domain): Likewise.
1670 (find_pc_partial_function): Likewise.
1671 (find_pc_line_pc_range): Likewise.
1672 (in_gnu_ifunc_stub): Likewise.
1673 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1674 (find_line_pc): Likewise.
1675 (find_line_pc_range): Likewise.
1676 (matching_obj_sections): Likewise.
1677 (find_line_symtab): Change out parameter to bool.
1678 (producer_is_realview): Change return type to bool.
1679 (compare_filenames_for_search): Likewise.
1680 (compare_glob_filenames_for_search): Likewise.
1682 2019-09-26 Tom Tromey <tom@tromey.com>
1684 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1685 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1686 * gdb_usleep.h: Remove.
1687 * gdb_usleep.c: Remove.
1688 * utils.c: Don't include gdb_usleep.h.
1690 2019-09-26 Tom Tromey <tromey@adacore.com>
1692 * python/py-type.c (type_to_type_object): Call check_typedef
1695 2019-09-26 Tom Tromey <tom@tromey.com>
1697 * utils.h (initialize_utils): Don't declare.
1698 * top.c (gdb_init): Don't call initialize_utils.
1699 * utils.c (initialize_utils): Remove. Move contents...
1700 (_initialize_utils): ... here.
1702 2019-09-25 Tom Tromey <tom@tromey.com>
1704 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1705 * utils.h (make_hex_string): Don't declare.
1706 * utils.c (make_hex_string): Remove.
1708 2019-09-24 Tom de Vries <tdevries@suse.de>
1711 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1712 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1714 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1716 * NEWS: Mention new simulator port for PRU.
1718 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1720 * ada-exp.y (write_object_remaining): Update.
1721 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1722 and eliminate the static buffer.
1723 (ada_decode_symbol): Update.
1724 (ada_la_decode): Update.
1725 (ada_sniff_from_mangled_name): Update.
1726 (is_valid_name_for_wild_match): Update.
1727 (ada_lookup_name_info::matches): Update and simplify.
1728 (name_matches_regex): Update.
1729 (ada_add_global_exceptions): Update.
1730 * ada-lang.h (ada_decode): Update signature.
1731 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1732 * dwarf-index-write.c (debug_names::insert): Update.
1734 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1736 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1739 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1741 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1742 Change "nonzero" to "true" in documentation.
1744 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1746 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1747 (_initialize_darwin_solib): Don't set
1748 darwin_so_ops.lookup_lib_global_symbol.
1749 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1750 set_gdbarch_iterate_over_objfiles_in_search_order.
1751 (elf_lookup_lib_symbol): Rename to...
1752 (svr4_iterate_over_objfiles_in_search_order): this, and update
1753 to iterate semantics.
1754 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1755 * solib.c (solib_global_lookup): Remove.
1756 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1757 (solib_global_lookup): Remove.
1758 * symtab.c (lookup_global_or_static_symbol): Remove call to
1759 solib_global_lookup.
1761 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1763 * NEWS: Move entries about default MI version now being
1764 version 3, and about the GDB/MI fix for multi-location
1765 breakpoints to the "since GDB 8.3" section.
1767 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1771 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1773 * NEWS: Mention that Cell/B.E. debugging support was removed.
1774 * MAINTAINERS: Remove spu target.
1776 * config/djgpp/fnchange.lst: Remove entries for removed files.
1778 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1779 spu-multiarch.o, and spu-tdep.o.
1780 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1781 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1782 spu-multiarch.c, and spu-tdep.c.
1783 * spu-linux-nat.c: Remove file.
1784 * spu-multiarch.c: Remove file.
1785 * spu-tdep.c: Remove file.
1786 * spu-tdep.h: Remove file.
1787 * solib-spu.c: Remove file.
1788 * solib-spu.h: Remove file.
1790 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1791 * configure.nat (spu-linux): Remove.
1792 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1793 solib-multiarch.o from gdb_target_obs.
1796 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1798 (ppc_linux_no_features): Update.
1799 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1801 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1802 (tdesc_powerpc_cell64l): Likewise.
1803 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1804 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1806 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1807 Do not include "features/rs6000/powerpc-cell32l.c" or
1808 "features/rs6000/powerpc-cell64l.c".
1809 (ppc_linux_spu_section): Remove.
1810 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1811 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1812 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1813 (ppc_linux_spe_context_lookup): Remove.
1814 (ppc_linux_spe_context_inferior_created): Remove.
1815 (ppc_linux_spe_context_solib_loaded): Remove.
1816 (ppc_linux_spe_context_solib_unloaded): Remove.
1817 (ppc_linux_spe_context): Remove.
1818 (struct ppu2spu_cache): Remove.
1819 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1820 (struct ppu2spu_data): Remove.
1821 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1822 ppu2spu_unwind): Remove.
1823 (ppc_linux_init_abi): Remove Cell/B.E. support.
1824 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1826 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1827 (rs6000/powerpc-cell64l-expedite): Likewise
1828 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1829 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1830 rs6000/powerpc-cell64l.xml.
1831 * features/rs6000/powerpc-cell32l.xml: Remove.
1832 * features/rs6000/powerpc-cell64l.xml: Likewise.
1833 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1834 * features/rs6000/powerpc-cell64l.c: Likewise.
1835 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1836 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1837 * regformats/reg-spu.dat: Remove.
1839 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1840 * corelow.c (struct spuid_list): Remove.
1841 (add_to_spuid_list): Remove.
1842 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1843 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1844 (remote_protocol_features): Remove associated entries.
1845 (_initialize_remote): No longer initialize them.
1846 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1847 * linux-nat.c (SPUFS_MAGIC): Remove.
1848 (linux_proc_xfer_spu): Remove.
1849 (spu_enumerate_spu_ids): Remove.
1850 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1851 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1852 (linux_make_corefile_notes): No longer call it.
1854 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1855 (cooked_write_test): Likewise.
1857 2019-09-20 Tom Tromey <tom@tromey.com>
1859 * NEWS: Mention case-sensitivity of TUI commands.
1860 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1861 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1862 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1864 2019-09-20 Tom Tromey <tom@tromey.com>
1866 * tui/tui-source.c (tui_source_window::set_contents): Use
1867 make_unique_xstrdup.
1868 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1869 make_unique_xstrdup.
1871 2019-09-20 Tom Tromey <tom@tromey.com>
1873 * tui/tui-data.c: Remove separator comments.
1874 * tui/tui-layout.c: Remove separator comments.
1875 * tui/tui-win.c: Remove separator comments.
1876 * tui/tui-wingeneral.c: Remove separator comments.
1878 2019-09-20 Tom Tromey <tom@tromey.com>
1880 * tui/tui.h (strcat_to_buf): Don't declare.
1881 * tui/tui.c (strcat_to_buf): Remove.
1883 2019-09-20 Tom Tromey <tom@tromey.com>
1885 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1887 * tui/tui-source.c (tui_source_window::set_contents)
1888 (tui_source_window::location_matches_p)
1889 (tui_source_window::maybe_update): Update.
1891 2019-09-20 Tom Tromey <tom@tromey.com>
1893 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1895 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1897 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1898 (tui_data_window::line_from_reg_element_no)
1899 (tui_data_window::first_reg_element_no_inline)
1900 (tui_data_window::show_registers)
1901 (tui_data_window::show_register_group)
1902 (tui_data_window::display_registers_from)
1903 (tui_data_window::display_registers_from_line)
1904 (tui_data_window::first_data_item_displayed)
1905 (tui_data_window::delete_data_content_windows)
1906 (tui_data_window::erase_data_content)
1907 (tui_data_window::do_scroll_vertical)
1908 (tui_data_window::refresh_window)
1909 (tui_data_window::check_register_values): Update.
1911 2019-09-20 Tom Tromey <tom@tromey.com>
1913 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1914 (struct tui_locator_window) <full_name, proc_name>: Now
1916 * tui/tui-stack.c (tui_locator_window::make_status_line)
1917 (tui_locator_window::set_locator_fullname)
1918 (tui_locator_window::set_locator_info): Update.
1919 * tui/tui-source.c (tui_source_window::set_contents)
1920 (tui_source_window::showing_source_p): Update.
1922 2019-09-20 Tom Tromey <tom@tromey.com>
1924 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1925 Don't call tui_locator_win_info_ptr.
1927 2019-09-20 Tom Tromey <tom@tromey.com>
1929 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1931 2019-09-20 Tom Tromey <tom@tromey.com>
1933 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1935 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1936 * tui/tui-layout.c (show_source_disasm_command, show_data)
1937 (show_source_or_disasm_and_command): Use 1 as height for locator.
1939 2019-09-20 Tom Tromey <tom@tromey.com>
1941 * tui/tui.c (tui_enable): Update.
1942 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1944 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1946 * tui/tui-data.c (win_resized): Now bool.
1947 (tui_win_resized): Return bool.
1948 (tui_set_win_resized_to): Accept a bool.
1950 2019-09-20 Tom Tromey <tom@tromey.com>
1952 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1953 Change type of "refresh_values_only".
1954 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1955 type of "refresh_values_only".
1957 2019-09-20 Tom Tromey <tom@tromey.com>
1959 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1961 (tui_disassemble): Add "pos" parameter.
1962 (tui_disasm_window::set_contents): Simplify.
1964 2019-09-20 Tom Tromey <tom@tromey.com>
1966 * tui/tui-winsource.h (struct tui_source_window_base)
1967 <show_source_content>: Now private.
1968 * tui/tui-winsource.c
1969 (tui_source_window_base::show_source_content): Don't handle empty
1972 2019-09-20 Tom Tromey <tom@tromey.com>
1974 * tui/tui-layout.c (show_source_disasm_command)
1975 (show_source_or_disasm_and_command): Don't call
1976 show_source_content.
1978 2019-09-20 Tom Tromey <tom@tromey.com>
1980 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1982 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1983 from tui_make_status_line.
1984 (tui_locator_window::rerender): Update.
1986 2019-09-20 Tom Tromey <tom@tromey.com>
1988 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1989 (tui_locator_window::rerender): Update.
1991 2019-09-20 Tom Tromey <tom@tromey.com>
1993 * tui/tui-winsource.h (struct tui_source_window_base)
1994 <~tui_source_window_base>: Don't declare.
1996 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1997 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1999 * tui/tui-source.c (tui_source_window::set_contents): Update.
2000 (tui_source_window::location_matches_p)
2001 (tui_source_window::maybe_update): Update.
2003 2019-09-20 Tom Tromey <tom@tromey.com>
2005 * tui/tui-winsource.h (~tui_source_element): Remove.
2006 (tui_source_element): Update.
2007 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2008 * tui/tui-winsource.c (tui_show_source_line): Update.
2009 * tui/tui-source.c (tui_source_window::set_contents): Update.
2010 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2012 2019-09-20 Tom Tromey <tom@tromey.com>
2014 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2016 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2017 tui_clear_source_windows_detail.
2018 * tui/tui-winsource.h (struct tui_source_window_base)
2019 <clear_detail>: Don't declare.
2020 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2022 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2024 2019-09-20 Tom Tromey <tromey@adacore.com>
2027 * block.c (contained_in): Fix final return value.
2029 2019-09-20 Alan Modra <amodra@gmail.com>
2031 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2032 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2033 (read_indirect_string_from_dwz): Use bfd accessor.
2034 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2035 * machoread.c (macho_symfile_read_all_oso): Likewise.
2036 * solib.c (solib_bfd_open): Likewise.
2038 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2040 * eval.c: Move declaration of overload_resolution to...
2043 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2045 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2046 * arm-linux-tdep.c: Likewise.
2047 * arm-nbsd-nat.c: Likewise.
2048 * arm-tdep.h: Declare arm_apcs_32.
2049 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2051 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2053 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2054 * dwarf2read.h: Declare dwarf_always_disassemble.
2056 2019-09-19 Tom de Vries <tdevries@suse.de>
2059 * source-cache.c (source_cache::ensure): Catch exception thrown during
2060 construction of the highlighter.
2062 2019-09-18 Alan Modra <amodra@gmail.com>
2064 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2065 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2066 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2067 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2068 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2069 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2070 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2071 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2072 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2073 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2074 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2075 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2076 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2077 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2078 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2079 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2080 * mi/mi-interp.c: Update throughout for bfd section macro and
2082 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2083 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2085 2019-09-18 Tom Tromey <tom@tromey.com>
2088 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2090 (tui_enable): Do not call rl_initialize.
2092 2019-09-18 Christian Groessler <chris@groessler.org>
2094 * alpha-linux-nat.c: Include gdbarch.h.
2096 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2098 * ui-file.c: Include cli/cli-style.h.
2099 (term_cli_styling): Remove cli_styling declaration.
2101 2019-09-18 Alan Modra <amodra@gmail.com>
2103 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2104 to bfd_asymbol_section.
2106 2019-09-18 Alan Modra <amodra@gmail.com>
2108 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2109 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2110 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2112 2019-09-18 Alan Modra <amodra@gmail.com>
2114 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2115 * spu-linux-nat.c (spu_bfd_open): Likewise.
2117 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2119 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2120 to bool to match definition in dwarf2read.c.
2122 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2124 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2125 (print_signatures): Likewise.
2126 (trust_pad_over_xvs): Likewise.
2127 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2128 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2129 * arm-linux-nat.c (arm_apcs_32): Likewise.
2130 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2131 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2132 * arm-tdep.c (arm_debug): Likewise.
2133 (arm_apcs_32): Likewise.
2134 * auto-load.c (debug_auto_load): Likewise.
2135 (auto_load_gdb_scripts): Likewise.
2136 (global_auto_load): Likewise.
2137 (auto_load_local_gdbinit): Likewise.
2138 (auto_load_local_gdbinit_loaded): Likewise.
2139 * auto-load.h (global_auto_load): Likewise.
2140 (auto_load_local_gdbinit): Likewise.
2141 (auto_load_local_gdbinit_loaded): Likewise.
2142 * breakpoint.c (disconnected_dprintf): Likewise.
2143 (breakpoint_proceeded): Likewise.
2144 (automatic_hardware_breakpoints): Likewise.
2145 (always_inserted_mode): Likewise.
2146 (target_exact_watchpoints): Likewise.
2147 (_initialize_breakpoint): Update.
2148 * breakpoint.h (target_exact_watchpoints): Change to bool.
2149 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2150 * cli/cli-cmds.c (trace_commands): Likewise.
2151 * cli/cli-cmds.h (trace_commands): Likewise.
2152 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2154 * cli/cli-logging.c (logging_overwrite): Change to bool.
2155 (logging_redirect): Likewise.
2156 (debug_redirect): Likewise.
2157 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2158 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2160 <boolean_option_def>: Update.
2161 (struct flag_option_def): Change default type of Context to bool
2163 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2164 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2165 (get_setshow_command_value_string): Likewise.
2166 * cli/cli-style.c (cli_styling): Change to bool.
2167 (source_styling): Likewise.
2168 * cli/cli-style.h (source_styling): Likewise.
2169 (cli_styling): Likewise.
2170 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2172 * command.h (var_types): Update comment.
2173 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2174 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2176 (debug_compile_cplus_scopes): Likewise.
2177 * compile/compile-internal.h (compile_debug): Likewise.
2178 * compile/compile.c (compile_debug): Likewise.
2179 (struct compile_options) <raw>: Likewise.
2180 * cp-support.c (catch_demangler_crashes): Likewise.
2181 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2182 (usr_cmd_cris_dwarf2_cfi): Likewise.
2183 * csky-tdep.c (csky_debug): Likewise.
2184 * darwin-nat.c (enable_mach_exceptions): Likewise.
2185 * dcache.c (dcache_enabled_p): Likewise.
2186 * defs.h (info_verbose): Likewise.
2187 * demangle.c (demangle): Likewise.
2188 (asm_demangle): Likewise.
2189 * dwarf-index-cache.c (debug_index_cache): Likewise.
2190 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2191 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2192 * dwarf2read.c (check_physname): Likewise.
2193 (use_deprecated_index_sections): Likewise.
2194 (dwarf_always_disassemble): Likewise.
2195 * eval.c (overload_resolution): Likewise.
2196 * event-top.c (set_editing_cmd_var): Likewise.
2197 (exec_done_display_p): Likewise.
2198 * event-top.h (set_editing_cmd_var): Likewise.
2199 (exec_done_display_p): Likewise.
2200 * exec.c (write_files): Likewise.
2201 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2202 (debug_fbsd_nat): Likewise.
2203 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2205 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2206 <backtrace_past_entry> Likewise.
2207 * gdb-demangle.h (demangle): Likewise.
2208 (asm_demangle): Likewise.
2209 * gdb_bfd.c (bfd_sharing): Likewise.
2210 * gdbcore.h (write_files): Likewise.
2211 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2212 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2213 * gdbthread.h (print_thread_events): Likewise.
2214 * gdbtypes.c (opaque_type_resolution): Likewise.
2215 (strict_type_checking): Likewise.
2216 * gnu-nat.c (gnu_debug_flag): Likewise.
2217 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2218 * guile/scm-param.c (pascm_variable): Add boolval.
2219 (add_setshow_generic): Update.
2220 (pascm_param_value): Update.
2221 (pascm_set_param_value_x): Update.
2222 * hppa-tdep.c (hppa_debug): Change to bool..
2223 * infcall.c (may_call_functions_p): Likewise.
2224 (coerce_float_to_double_p): Likewise.
2225 (unwind_on_signal_p): Likewise.
2226 (unwind_on_terminating_exception_p): Likewise.
2227 * infcmd.c (startup_with_shell): Likewise.
2228 * inferior.c (print_inferior_events): Likewise.
2229 * inferior.h (startup_with_shell): Likewise.
2230 (print_inferior_events): Likewise.
2231 * infrun.c (step_stop_if_no_debug): Likewise.
2232 (detach_fork): Likewise.
2233 (debug_displaced): Likewise.
2234 (disable_randomization): Likewise.
2235 (non_stop): Likewise.
2236 (non_stop_1): Likewise.
2237 (observer_mode): Likewise.
2238 (observer_mode_1): Likewise.
2239 (set_observer_mode): Update.
2240 (sched_multi): Change to bool.
2241 * infrun.h (debug_displaced): Likewise.
2242 (sched_multi): Likewise.
2243 (step_stop_if_no_debug): Likewise.
2244 (non_stop): Likewise.
2245 (disable_randomization): Likewise.
2246 * linux-tdep.c (use_coredump_filter): Likewise.
2247 (dump_excluded_mappings): Likewise.
2248 * linux-thread-db.c (auto_load_thread_db): Likewise.
2249 (check_thread_db_on_load): Likewise.
2250 * main.c (captured_main_1): Update.
2251 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2252 xx2_opt, boolean_opt>: Change to bool.
2253 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2254 * maint.c (maintenance_profile_p): Likewise.
2255 (per_command_time): Likewise.
2256 (per_command_space): Likewise.
2257 (per_command_symtab): Likewise.
2258 * memattr.c (inaccessible_by_default): Likewise.
2259 * mi/mi-main.c (mi_async): Likewise.
2260 (mi_async_1): Likewise.
2261 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2262 * nat/fork-inferior.h (startup_with_shell): Likewise.
2263 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2264 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2265 * nios2-tdep.c (nios2_debug): Likewise.
2266 * or1k-tdep.c (or1k_debug): Likewise.
2267 * parse.c (parser_debug): Likewise.
2268 * parser-defs.h (parser_debug): Likewise.
2269 * printcmd.c (print_symbol_filename): Likewise.
2270 * proc-api.c (procfs_trace): Likewise.
2271 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2272 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2273 (set_parameter_value): Update.
2274 (add_setshow_generic): Update.
2275 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2277 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2279 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2280 * record-btrace.c (record_btrace_target::store_registers): Update.
2281 * record-full.c (record_full_memory_query): Change to bool.
2282 (record_full_stop_at_limit): Likewise.
2283 * record-full.h (record_full_memory_query): Likewise.
2284 * remote-notif.c (notif_debug): Likewise.
2285 * remote-notif.h (notif_debug): Likewise.
2286 * remote.c (use_range_stepping): Likewise.
2287 (interrupt_on_connect): Likewise.
2288 (remote_break): Likewise.
2289 * ser-tcp.c (tcp_auto_retry): Likewise.
2290 * ser-unix.c (serial_hwflow): Likewise.
2291 * skip.c (debug_skip): Likewise.
2292 * solib-aix.c (solib_aix_debug): Likewise.
2293 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2294 (spu_auto_flush_cache_p): Likewise.
2295 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2297 (struct info_print_options) <quiet>: Likewise.
2298 * symfile-debug.c (debug_symfile): Likewise.
2299 * symfile.c (auto_solib_add): Likewise.
2300 (separate_debug_file_debug): Likewise.
2301 * symfile.h (auto_solib_add): Likewise.
2302 (separate_debug_file_debug): Likewise.
2303 * symtab.c (basenames_may_differ): Likewise.
2304 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2305 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2306 (struct info_types_options) <quiet>: Likewise.
2307 * symtab.h (demangle): Likewise.
2308 (basenames_may_differ): Likewise.
2309 * target-dcache.c (stack_cache_enabled_1): Likewise.
2310 (code_cache_enabled_1): Likewise.
2311 * target.c (trust_readonly): Likewise.
2312 (may_write_registers): Likewise.
2313 (may_write_memory): Likewise.
2314 (may_insert_breakpoints): Likewise.
2315 (may_insert_tracepoints): Likewise.
2316 (may_insert_fast_tracepoints): Likewise.
2317 (may_stop): Likewise.
2318 (auto_connect_native_target): Likewise.
2319 (target_stop_and_wait): Update.
2320 (target_async_permitted): Change to bool.
2321 (target_async_permitted_1): Likewise.
2322 (may_write_registers_1): Likewise.
2323 (may_write_memory_1): Likewise.
2324 (may_insert_breakpoints_1): Likewise.
2325 (may_insert_tracepoints_1): Likewise.
2326 (may_insert_fast_tracepoints_1): Likewise.
2327 (may_stop_1): Likewise.
2328 * target.h (target_async_permitted): Likewise.
2329 (may_write_registers): Likewise.
2330 (may_write_memory): Likewise.
2331 (may_insert_breakpoints): Likewise.
2332 (may_insert_tracepoints): Likewise.
2333 (may_insert_fast_tracepoints): Likewise.
2334 (may_stop): Likewise.
2335 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2336 (make_thread_apply_all_options_def_group): Change argument from int*
2338 (thread_apply_all_command): Update.
2339 (print_thread_events): Change to bool.
2340 * top.c (confirm): Likewise.
2341 (command_editing_p): Likewise.
2342 (history_expansion_p): Likewise.
2343 (write_history_p): Likewise.
2344 (info_verbose): Likewise.
2345 * top.h (confirm): Likewise.
2346 (history_expansion_p): Likewise.
2347 * tracepoint.c (disconnected_tracing): Likewise.
2348 (circular_trace_buffer): Likewise.
2349 * typeprint.c (print_methods): Likewise.
2350 (print_typedefs): Likewise.
2351 * utils.c (debug_timestamp): Likewise.
2352 (sevenbit_strings): Likewise.
2353 (pagination_enabled): Likewise.
2354 * utils.h (sevenbit_strings): Likewise.
2355 (pagination_enabled): Likewise.
2356 * valops.c (overload_resolution): Likewise.
2357 * valprint.h (struct value_print_options) <prettyformat_arrays,
2358 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2359 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2360 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2362 * windows-nat.c (new_console): Likewise.
2363 (cygwin_exceptions): Likewise.
2364 (new_group): Likewise.
2365 (debug_exec): Likewise.
2366 (debug_events): Likewise.
2367 (debug_memory): Likewise.
2368 (debug_exceptions): Likewise.
2369 (useshell): Likewise.
2370 * windows-tdep.c (maint_display_all_tib): Likewise.
2371 * xml-support.c (debug_xml): Likewise.
2373 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2375 * source.c (prepare_path_for_appending): New function.
2376 (openp): Make use of new function.
2377 (find_and_open_source): Search for the compilation directory and
2378 source file as a relative path beneath the directory search path.
2380 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2382 * source-cache.c (source_cache::get_line_charpos): Catch
2383 exceptions and return false, this matches the behaviour documented
2386 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2388 * ada-tasks.c (info_task): Remove quoting of the task's name.
2390 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2392 * symfile.c (auto_solib_add): Replace comment with a reference
2395 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2397 * NEWS: Mention that gdb can now be compiled with Python 3
2400 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2402 * maint.c (maint_print_section_data::maint_print_section_data):
2403 Force use of 'float log10 (float)' by casting the argument to
2406 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2408 * maint.c: Add 'cmath' include.
2409 (struct maint_print_section_data): New structure.
2410 (print_section_index): New function.
2411 (print_bfd_section_info): Add header comment, small whitespace
2412 cleanup, and update to call new print_section_index function.
2413 (print_objfile_section_info): Likewise.
2414 (maint_obj_section_from_bfd_section): New function.
2415 (print_bfd_section_info_maybe_relocated): New function.
2416 (maintenance_info_sections): Add header comment, always use
2417 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2419 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2421 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2422 inner scope, add check that the objfile has psymtabs before
2423 checking psymtabs_addrmap.
2424 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2426 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2428 * NEWS: Announce that Ada task names are now shown at more places,
2429 and between quotes (except in info task output).
2430 * gdb/ada-tasks.c (task_to_str): New function.
2431 (display_current_task_id): Call task_to_str.
2432 (task_command_1): Likewise.
2433 (print_ada_task_info): In non-mi mode, Properly align headers and data
2434 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2436 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2438 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2439 prstatus.pr_lwp.pr_info instead of making it up.
2441 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2443 * auto-load.c (auto_load_expand_dir_vars): Update.
2444 * defs.h (gdb_datadir): Change to std::string.
2445 (python_libdir): Likewise.
2446 (relocate_gdb_directory): Change return type to std::string.
2447 * guile/guile.c (gdbscm_data_directory): Update.
2448 (initialize_scheme_side): Update.
2449 * jit.c (jit_reader_dir): Change to std::string.
2450 (jit_reader_load_command): Update.
2451 * main.c (gdb_datadir): Change to std::string.
2452 (python_libdir): Likewise.
2453 (set_gdb_data_directory): Update.
2454 (relocate_path): Change to return std::string.
2455 (relocate_gdb_directory): Change to return std::string.
2456 (relocate_gdbinit_path_maybe_in_datadir): Update.
2457 (captured_main_1): Update.
2458 * python/python.c (do_start_initialization): Update.
2459 * top.c (show_gdb_datadir): Update.
2460 * xml-syscall.c (xml_init_syscalls_info): Update.
2461 (init_syscalls_info): Update.
2463 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2465 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2466 out of get_init_files.
2467 (get_init_files): Update.
2469 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2471 * main.c (get_init_files): Change to use std::string.
2472 (captured_main_1): Update.
2473 (print_gdb_help): Update.
2475 2019-09-11 Ali Tamur <tamur@google.com>
2477 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2480 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2482 * dbxread.c (read_dbx_symtab): Update.
2483 * dwarf2read.c (load_partial_dies): Update.
2484 * mdebugread.c (parse_partial_symbols): Update.
2485 (handle_psymbol_enumerators): Update.
2486 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2487 * psymtab.c (add_psymbol_to_bcache): Likewise.
2488 (add_psymbol_to_list): Likewise.
2489 * symtab.c (symbol_set_names): Likewise.
2490 * symtab.h (symbol_set_names): Likewise.
2491 * xcoffread.c (scan_xcoff_symtab): Update.
2493 2019-09-11 Tom Tromey <tom@tromey.com>
2495 * symfile-mem.c (symbol_file_add_from_memory): Use
2497 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2498 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2500 2019-09-10 Tom Tromey <tromey@adacore.com>
2502 * dwarf-index-write.c (write_psymbols): Extend error message.
2503 (debug_names::insert): Add Ada code.
2504 (debug_names::write_psymbols): Remove Ada check.
2505 (debug_names) <m_string_obstack>: New member.
2506 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2507 (gdb_index_symbol_name_matcher::matches): Remove.
2508 (mapped_index_base::find_name_components_bounds): Add "lang"
2510 (mapped_index_base::build_name_components): Also split names
2511 according to Ada syntax.
2512 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2513 type of "match_callback".
2514 (check_match, check_find_bounds_finds)
2515 (dw2_expand_symtabs_matching): Update.
2516 (dw2_debug_names_iterator): Add new constructor.
2517 (dw2_debug_names_map_matching_symbols): New function.
2518 (dw2_debug_names_expand_symtabs_matching): Update.
2519 (dwarf2_debug_names_functions): Use
2520 dw2_debug_names_map_matching_symbols.
2522 2019-09-10 Tom Tromey <tromey@adacore.com>
2524 * dwarf2read.c (dw2_get_file_names_reader): Add the
2525 CU's file name to the results.
2527 2019-09-10 Tom Tromey <tromey@adacore.com>
2529 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2530 map_matching_symbols. Update.
2531 * dwarf2read.c (dw2_map_matching_symbols): Update.
2532 * psymtab.c (match_partial_symbol): Change type; update.
2533 (psym_map_matching_symbols): Likewise.
2534 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2536 * symfile.h (struct quick_symbol_functions)
2537 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2540 2019-09-10 Tom Tromey <tromey@adacore.com>
2542 * psymtab.c (map_block): Remove.
2543 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2544 * symtab.c (iterate_over_symbols_terminated): New function.
2545 * symtab.c (iterate_over_symbols_terminated): Declare.
2547 2019-09-10 Tom Tromey <tromey@adacore.com>
2549 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2550 * language.h (struct language_defn) <la_iterate_over_symbols>:
2552 * symtab.c (iterate_over_symbols): Return bool.
2553 * symtab.h (iterate_over_symbols): Return bool.
2555 2019-09-10 Tom Tromey <tromey@adacore.com>
2557 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2558 (add_nonlocal_symbols): Update.
2559 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2560 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2561 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2562 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2563 Change type of "callback". Remove "data".
2566 2019-09-09 Ali Tamur <tamur@google.com>
2568 * dwarf2read.c (comp_unit_head): Update comment.
2569 (dwarf2_dwo_name): New function declaration.
2570 (dwarf_unit_type_name): New function declaration.
2571 (read_comp_unit_head): Add support for new compilation units,
2572 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2573 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2574 (currently named as "signature") in their header. Also clarify error
2576 (lookup_dwo_id): New function. Returns the dwo id of the given
2578 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2579 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2581 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2582 (dwarf2_dwo_name): Get the dwo name if present.
2583 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2586 2019-09-09 Tom Tromey <tom@tromey.com>
2588 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2590 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2592 * python/python.c (do_start_initialization): Make progname_copy static,
2593 to avoid a leak report.
2595 2019-09-08 Tom Tromey <tom@tromey.com>
2597 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2599 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2601 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2602 Change type to gdb::optional<block_enum>.
2603 (dw2_symtab_iter_init): Change block_index parameter type
2604 to gdb::optional<block_enum>.
2605 (dw2_lookup_symbol): Change block_index parameter
2606 type to block_enum.c
2607 (dw2_debug_names_lookup_symbol): Likewise.
2608 * psymtab.c (psym_lookup_symbol): Likewise.
2609 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2610 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2613 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2615 * defs.h (relocate_gdb_directory): Change int to bool in
2616 signature and rename flag to relocatable.
2617 * main.c (relocate_path): Likewise.
2618 (relocate_gdb_directory): Likewise.
2620 2019-09-06 Alan Modra <amodra@gmail.com>
2622 * coffread.c (coff_symfile_read): Constify filename variable.
2623 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2624 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2625 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2626 * solib.c (reload_shared_libraries_1): Likewise.
2627 * symfile.c (reread_symbols): Likewise.
2628 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2629 * solib-darwin.c (darwin_bfd_open): Likewise.
2630 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2632 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2634 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2635 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2637 2019-09-03 Tom Tromey <tromey@adacore.com>
2639 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2641 (has_negatives): Unbias a range type bound.
2642 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2643 * gdbtypes.c (operator==): Handle new field.
2644 (create_range_type): Add "bias" parameter.
2645 (create_static_range_type, resolve_dynamic_range): Update.
2646 * gdbtypes.h (struct range_bounds) <bias>: New member.
2647 (create_range_type): Add bias parameter.
2648 * printcmd.c (print_scalar_formatted): Unbias range types.
2649 * value.c (unpack_long): Unbias range types.
2650 (pack_long): Bias range types.
2652 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2654 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2657 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2659 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2660 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2661 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2662 (compile_probe_arg): Likewise.
2663 * probe.h (get_argument_count): Likewise.
2664 * solib-svr4.c (solib_event_probe_action): Likewise.
2665 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2667 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2669 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2671 (svr4_create_solib_event_breakpoints): ...from here.
2673 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2675 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2676 suffix from warning message.
2678 2019-08-30 Tom Tromey <tom@tromey.com>
2680 * tui/tui-winsource.h (struct tui_source_window_base)
2681 <refresh_all>: Don't declare.
2682 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2684 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2685 tui_show_locator_content.
2686 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2688 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2689 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2692 2019-08-30 Tom Tromey <tom@tromey.com>
2694 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2696 2019-08-30 Tom Tromey <tom@tromey.com>
2698 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2699 Remove unnecessary forward declarations.
2701 2019-08-30 Tom Tromey <tom@tromey.com>
2703 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2705 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2706 tui_show_locator_content.
2708 2019-08-30 Tom Tromey <tom@tromey.com>
2710 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2711 (tui_locator_window::rerender): Rewrite using body of previous
2712 tui_show_locator_content.
2714 2019-08-30 Tom Tromey <tom@tromey.com>
2716 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2717 set_locator_fullname>: New methods.
2718 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2719 Rename from tui_set_locator_fullname.
2720 (tui_locator_window::set_locator_info): Rename from
2721 tui_set_locator_info. Return bool.
2722 (tui_update_locator_fullname, tui_show_frame_info): Update.
2724 2019-08-30 Tom Tromey <tom@tromey.com>
2726 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2728 2019-08-30 Tom Tromey <tom@tromey.com>
2730 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2733 2019-08-30 Tom Tromey <tom@tromey.com>
2735 * tui/tui-wingeneral.c (box_win): Assume win_info and
2736 win_info->handle cannot be NULL.
2738 2019-08-30 Tom Tromey <tom@tromey.com>
2740 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2741 refresh_window>: Declare.
2742 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2744 (tui_data_item_window::rerender): Rename from
2745 tui_display_register.
2746 (tui_data_item_window::refresh_window): New method.
2747 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2750 2019-08-30 Tom Tromey <tom@tromey.com>
2752 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2753 regs_column_count, current_group>: Move later. Now private.
2754 <get_current_group>: New method.
2755 * tui/tui-regs.c (tui_reg_command): Update.
2756 * tui/tui-layout.c (tui_set_layout): Update.
2758 2019-08-30 Tom Tromey <tom@tromey.com>
2760 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2761 (tui_data_window::rerender): Don't call
2762 check_and_display_highlight_if_needed.
2763 (tui_data_window::refresh_all): Remove call to
2766 2019-08-30 Tom Tromey <tom@tromey.com>
2768 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2769 (tui_data_window::display_registers_from)
2770 (tui_data_window::display_reg_element_at_line)
2771 (tui_data_window::display_registers_from_line): Remove checks of
2774 2019-08-30 Tom Tromey <tom@tromey.com>
2776 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2778 * tui/tui-regs.c (tui_data_window::show_registers): Call
2780 (tui_data_window::rerender): Rename from display_all_data.
2781 (tui_data_window::rerender): Remove old implementation.
2783 2019-08-30 Tom Tromey <tom@tromey.com>
2785 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2787 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2789 2019-08-29 Bernhard Wodok <barto@gmx.net>
2790 Sergio Durigan Junior <sergiodj@redhat.com>
2793 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2795 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2797 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2798 when searching for types.
2800 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2802 * f-lang.c (f_language_defn): Use f_print_typedef.
2803 * f-lang.h (f_print_typedef): Declare.
2804 * f-typeprint.c (f_print_typedef): Define.
2806 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2808 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2810 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2812 * cli/cli-utils.c (info_print_options_defs): Delete.
2813 (make_info_print_options_def_group): Delete.
2814 (extract_info_print_options): Delete.
2815 (info_print_command_completer): Delete.
2816 (info_print_args_help): Add extra parameter, and optionally
2817 include text about -n flag.
2818 * cli/cli-utils.h (struct info_print_options): Delete.
2819 (extract_info_print_options): Delete declaration.
2820 (info_print_command_completer): Delete declaration.
2821 (info_print_args_help): Add extra parameter, extend header
2823 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2825 * stack.c (struct info_print_options): New type.
2826 (info_print_options_defs): New file scoped variable.
2827 (make_info_print_options_def_group): New static function.
2828 (info_print_command_completer): New static function.
2829 (info_locals_command): Update to use new local functions.
2830 (info_args_command): Likewise.
2831 (_initialize_stack): Add extra parameter to calls to
2832 info_print_args_help.
2833 * symtab.c (search_symbols): Add extra parameter, use this to
2834 possibly excluse non-debug symbols.
2835 (symtab_symbol_info): Add extra parameter, which is passed on to
2837 (struct info_print_options): New type.
2838 (info_print_options_defs): New file scoped variable.
2839 (make_info_print_options_def_group): New static function.
2840 (info_print_command_completer): New static function.
2841 (info_variables_command): Update to use local functions, and pass
2842 extra parameter through to symtab_symbol_info.
2843 (info_functions_command): Likewise.
2844 (info_types_command): Pass additional argument through to
2846 (rbreak_command): Pass extra argument to search_symbols.
2847 (_initialize_symtab): Add extra arguments for calls to
2848 info_print_args_help, and update help text for 'info variables',
2849 'whereis', and 'info functions' commands.
2850 * symtab.h (search_symbols): Add extra argument to declaration.
2851 * NEWS: Mention new flags.
2853 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2855 * symtab.c (lookup_static_symbol): Call the new function (and move
2856 it down to be next to lookup_global_symbol).
2857 (struct global_sym_lookup_data): Add block_enum member and rename to...
2858 (struct global_or_static_sym_lookup_data): ...this.
2859 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2860 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2861 (lookup_symbol_global_or_static_iterator_cb): ...this.
2862 (lookup_global_or_static_symbol): New function.
2863 (lookup_global_symbol): Call new function.
2865 2019-08-26 Tom de Vries <tdevries@suse.de>
2868 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2869 when pc_probe.prob == NULL.
2871 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2873 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2874 variable symbol_linkage to symbol_linkage_.
2876 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2878 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2879 represent whether the symbol is static, dynamic, or we don't
2882 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2884 * gdb/rx-tdep.c (rx_register_names): New.
2885 (rx_register_name): Delete.
2886 (rx_psw_type): Delete.
2887 (rx_fpsw_type): Delete.
2888 (rx_register_type): Delete.
2889 (rx_gdbarch_init): Convert target-descriptions.
2890 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2891 * gdb/features/Makefile: Add rx.xml.
2892 * gdb/features/rx.xml: New.
2893 * gdb/features/rx.c: Generated.
2894 * gdb/NEWS: Mention target description support.
2896 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2898 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2901 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2903 * configure.ac: Don't check for 'dlfcn.h' (moved to
2904 gdbsupport/common.m4).
2905 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2907 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2908 * compile/compile-c-support.c: Include
2909 'gdbsupport/gdb-dlfcn.h'.
2910 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2911 * gdb-dlfcn.c: Move to...
2912 * gdbsupport/gdb-dlfcn.c: ... here.
2913 * gdb-dlfcn.h: Move to...
2914 * gdbsupport/gdb-dlfcn.h: ... here.
2916 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2918 * nios2-tdep.c (struct reg_value): Improve comments. Make
2919 the offset field signed.
2921 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2923 * python/lib/gdb/__init__.py (_execute_file): New function.
2924 * python/python.c (python_run_simple_file): Call gdb._execute_file
2927 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2929 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2930 all uses as this was never set to anything but a zero value.
2932 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2934 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2936 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2938 * tui/tui-data.h (tui_gen_win_info): Add an =default
2939 move constructor, required by some GCC versions.
2941 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2943 * go32-nat.c (go32_sysinfo): Add hygon_p.
2945 2019-08-20 Tom Tromey <tom@tromey.com>
2947 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2948 line_from_reg_element_no, first_reg_element_no_inline,
2949 display_all_data, delete_data_content_windows,
2950 erase_data_content>: Now private.
2952 2019-08-20 Tom Tromey <tom@tromey.com>
2954 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2955 (tui_unhighlight_win, tui_highlight_win)
2956 (tui_win_info::make_window): Update.
2957 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2959 2019-08-20 Tom Tromey <tom@tromey.com>
2961 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2962 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2963 (MAX_PID_WIDTH): Move to tui-stack.c.
2964 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2965 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2966 (MAX_PID_WIDTH): Move from tui-data.h.
2968 2019-08-20 Tom Tromey <tom@tromey.com>
2970 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2971 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2973 (tui_gen_win_info::make_window): Rename from tui_make_window.
2974 (tui_win_info::make_window): New method.
2975 (tui_gen_win_info::make_visible): Update.
2976 * tui/tui-source.c (tui_source_window::set_contents): Update.
2977 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2978 (tui_data_window::display_registers_from): Update.
2979 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2980 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2984 (struct tui_win_info) <make_window>: Declare.
2985 <can_box>: Now virtual.
2986 <title>: New member.
2987 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2988 * tui/tui-command.c (tui_cmd_window::resize): Update.
2990 2019-08-20 Tom Tromey <tom@tromey.com>
2992 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2993 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2994 (tui_data_window::check_register_values): Update.
2996 2019-08-20 Tom Tromey <tom@tromey.com>
2998 * tui/tui-regs.h (struct tui_data_window): Use
2999 DISABLE_COPY_AND_ASSIGN.
3000 <regs_content>: Change type, removing unique_ptr.
3001 <tui_data_window>: Add move constructor.
3002 * tui/tui-regs.c (tui_data_window::show_registers)
3003 (tui_data_window::show_register_group)
3004 (tui_data_window::display_registers_from)
3005 (tui_data_window::display_registers_from)
3006 (tui_data_window::first_data_item_displayed)
3007 (tui_data_window::delete_data_content_windows)
3008 (tui_data_window::rerender, tui_data_window::refresh_window)
3009 (tui_data_window::check_register_values): Update.
3011 2019-08-20 Tom Tromey <tom@tromey.com>
3013 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3014 show_register_group>: Declare.
3015 (tui_show_register_group): Don't declare.
3016 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3018 (tui_data_window::show_register_group): Rename from
3019 tui_show_register_group.
3020 (tui_data_window::check_register_values, tui_reg_command):
3022 * tui/tui-layout.c (tui_set_layout): Update.
3024 2019-08-20 Tom Tromey <tom@tromey.com>
3026 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3028 (tui_check_register_values): Don't declare.
3029 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3030 from tui_check_register_values.
3031 * tui/tui-hooks.c (tui_register_changed): Update.
3033 2019-08-20 Tom Tromey <tom@tromey.com>
3035 * tui/tui-regs.c (tui_reg_layout): Move later.
3036 (tui_show_registers): Don't enable TUI mode or change layout.
3038 2019-08-20 Tom Tromey <tom@tromey.com>
3040 * tui/tui-regs.h (struct tui_data_item_window)
3041 <~tui_data_item_window>: Remove.
3042 <content>: Now a unique_xmalloc_ptr.
3043 * tui/tui-regs.c (tui_register_format): Return a
3045 (tui_get_register): Update.
3046 (~tui_data_item_window): Remove.
3047 (tui_data_window::display_registers_from, tui_display_register):
3049 * tui/tui-io.h (tui_expand_tabs): Update.
3050 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3051 Remove "col" parameter.
3053 2019-08-20 Tom Tromey <tom@tromey.com>
3055 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3057 * tui/tui-regs.c (~tui_data_item_window): Update.
3059 2019-08-20 Tom Tromey <tom@tromey.com>
3061 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3064 2019-08-20 Tom Tromey <tom@tromey.com>
3066 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3068 2019-08-20 Tom Tromey <tom@tromey.com>
3070 * tui/tui-source.h (struct tui_source_window): Update.
3071 * tui/tui-regs.c (tui_show_registers): Update.
3072 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3073 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3074 (NO_REGS_STRING): Remove defines.
3076 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3078 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3079 unnecessary thread walk if remote doesn't support the packet.
3081 2019-08-19 Tom Tromey <tromey@adacore.com>
3083 * python/py-value.c (value_has_field): Fix indentation.
3085 2019-08-19 Tom Tromey <tromey@adacore.com>
3087 * printcmd.c (do_one_display, info_display_command): Update.
3088 * block.h (contained_in): Return bool. Add allow_nested
3090 * block.c (contained_in): Return bool. Add allow_nested
3093 2019-08-19 Tom Tromey <tom@tromey.com>
3095 * configure: Rebuild.
3096 * configure.ac: Disallow the combination of -static-libstdc++ and
3098 * source-cache.c (get_language_name): Handle rust.
3099 (source_cache::get_source_lines): Ignore highlighting exceptions.
3101 2019-08-16 Tom Tromey <tom@tromey.com>
3103 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3104 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3105 (struct tui_source_window_base) <make_visible, refresh_window,
3106 resize>: Remove methods.
3107 <execution_info>: Remove field.
3108 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3109 (tui_show_source_line, tui_source_window_base)
3110 (~tui_source_window_base): Update.
3111 (tui_source_window_base::resize)
3112 (tui_source_window_base::make_visible)
3113 (tui_source_window_base::refresh_window): Remove.
3114 (tui_source_window_base::update_exec_info): Update.
3115 * tui/tui-source.c (tui_source_window::set_contents): Update.
3116 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3118 2019-08-16 Tom Tromey <tom@tromey.com>
3120 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3121 deprecated_query_hook.
3123 2019-08-16 Tom Tromey <tom@tromey.com>
3125 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3126 (tui_update_source_windows_with_line): Update.
3127 * tui/tui-source.h (struct tui_source_window)
3128 <show_symtab_source>: Declare.
3129 (tui_show_symtab_source): Don't declare.
3130 * tui/tui-source.c (tui_show_symtab_source): Rename from
3131 tui_show_symtab_source.
3133 2019-08-16 Tom Tromey <tom@tromey.com>
3135 * tui/tui-winsource.h (struct tui_source_window_base)
3136 <set_contents>: Declare.
3137 * tui/tui-winsource.c
3138 (tui_source_window_base::update_source_window_as_is): Update.
3139 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3141 (tui_set_source_content): Don't declare.
3142 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3143 tui_set_source_content.
3144 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3146 (tui_set_disassem_content): Don't declare.
3147 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3148 tui_set_disassem_content.
3150 2019-08-16 Tom Tromey <tom@tromey.com>
3152 * tui/tui-winsource.h (struct tui_source_window_base)
3153 <update_breakpoint_info>: Declare.
3154 (tui_update_breakpoint_info): Don't declare.
3155 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3156 (tui_update_all_breakpoint_info): Update.
3157 (tui_source_window_base::update_breakpoint_info): Rename from
3158 tui_update_breakpoint_info.
3159 (tui_source_window_base::update_exec_info): Update.
3161 2019-08-16 Tom Tromey <tom@tromey.com>
3163 * tui/tui-winsource.h (struct tui_source_window_base)
3164 <update_source_window>: Declare.
3165 (tui_update_source_window): Don't declare.
3166 * tui/tui-winsource.c
3167 (tui_source_window_base::update_source_window): Rename from
3168 tui_update_source_window.
3169 (tui_source_window_base::rerender): Update.
3170 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3171 * tui/tui-disasm.c (tui_show_disassem)
3172 (tui_show_disassem_and_update_source)
3173 (tui_disasm_window::maybe_update): Update.
3175 2019-08-16 Tom Tromey <tom@tromey.com>
3177 * tui/tui-winsource.h (struct tui_source_window_base)
3178 <update_source_window_as_is>: Declare.
3179 (tui_update_source_window_as_is): Don't declare.
3180 * tui/tui-winsource.c (tui_update_source_window): Update
3181 (tui_source_window_base::update_source_window_as_is): Rename from
3182 tui_update_source_window_as_is.
3183 (tui_source_window_base::refill): Update.
3184 * tui/tui-source.c (tui_show_symtab_source): Update.
3185 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3188 2019-08-16 Tom Tromey <tom@tromey.com>
3190 * tui/tui-winsource.h (tui_update_source_window)
3191 (tui_update_source_window_as_is): Remove "noerror" parameter.
3192 * tui/tui-winsource.c (tui_update_source_window)
3193 (tui_update_source_window_as_is): Remove "noerror" parameter.
3194 (tui_update_source_windows_with_addr)
3195 (tui_update_source_windows_with_line)
3196 (tui_source_window_base::rerender)
3197 (tui_source_window_base::refill): Update.
3198 * tui/tui-source.h (tui_set_source_content)
3199 (tui_show_symtab_source): Remove "noerror" parameter.
3200 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3202 (tui_show_symtab_source): Likewise.
3203 (tui_source_window::maybe_update): Update.
3204 * tui/tui-disasm.c (tui_show_disassem)
3205 (tui_show_disassem_and_update_source)
3206 (tui_disasm_window::do_scroll_vertical)
3207 (tui_disasm_window::maybe_update): Update.
3209 2019-08-16 Tom Tromey <tom@tromey.com>
3211 * tui/tui.c (tui_is_window_visible): Update.
3212 * tui/tui-wingeneral.c (tui_make_window)
3213 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3214 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3215 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3216 (tui_set_win_height_command, parse_scrolling_args): Update.
3217 * tui/tui-source.c (tui_source_window::style_changed): Update.
3218 * tui/tui-regs.c (tui_show_registers)
3219 (tui_data_window::first_data_item_displayed)
3220 (tui_data_window::delete_data_content_windows)
3221 (tui_check_register_values, tui_reg_command): Update.
3222 * tui/tui-disasm.c (tui_show_disassem): Update.
3223 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3225 <is_visible>: Remove field.
3226 * tui/tui-data.c (tui_next_win, tui_prev_win)
3227 (tui_delete_invisible_windows): Update.
3229 2019-08-16 Tom Tromey <tom@tromey.com>
3231 * tui/tui-winsource.h (struct tui_source_window_base)
3232 <m_has_locator>: Remove.
3233 * tui/tui-layout.c (show_source_disasm_command, show_data)
3234 (show_source_or_disasm_and_command): Update.
3236 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3238 * NEWS (Other MI changes): New subsection.
3239 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3240 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3241 * arch-utils.c (default_get_pc_address_flags): New function.
3242 * arch-utils.h (default_get_pc_address_flags): New declaration.
3243 * gdbarch.sh: Add get_pc_address_flags.
3244 * gdbarch.c: Regenerate.
3245 * gdbarch.h: Likewise.
3246 * stack.c (print_pc): New function.
3247 (print_frame_info) (print_frame): Call print_pc.
3249 2019-08-16 Tom de Vries <tdevries@suse.de>
3251 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3252 print_objfile_section_info.
3254 2019-08-15 Tom Tromey <tom@tromey.com>
3256 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3257 calling update_cmdwin_start_line.
3258 * tui/tui-winsource.h (struct tui_source_window_base)
3259 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3260 <rerender>: Declare.
3261 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3263 (tui_source_window_base::set_new_height): Remove.
3264 (tui_source_window_base::rerender): Rename from
3265 do_make_visible_with_new_height.
3266 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3268 (tui_win_info::make_invisible_and_set_new_height)
3269 (tui_win_info::make_visible_with_new_height): Remove.
3270 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3272 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3273 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3274 do_make_visible_with_new_height>: Don't declare.
3275 <rerender>: Declare.
3276 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3278 (tui_data_window::do_make_visible_with_new_height): Remove.
3279 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3280 call tui_show_locator_content.
3281 (tui_gen_win_info::resize): Call rerender.
3282 (show_source_or_disasm_and_command): Don't call
3283 tui_show_locator_content.
3284 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3286 (struct tui_win_info) <rerender>: Declare.
3287 <set_new_height, make_invisible_and_set_new_height,
3288 make_visible_with_new_height>: Don't declare.
3289 * tui/tui-data.c (tui_win_list::rerender): New method.
3290 * tui/tui-command.h (struct tui_cmd_window)
3291 <do_make_visible_with_new_height>: Don't declare.
3293 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3295 2019-08-15 Tom Tromey <tromey@adacore.com>
3297 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3298 * ada-lang.c (ada_enum_name): Likewise.
3300 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3302 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3304 (GdbOutputErrorFile): Likewise.
3305 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3307 (execute_unwinders): Rename to have a leading underscore.
3308 (auto_load_packages): Likewise.
3309 (global scope): Adjust call to auto_load_packages accordingly.
3310 (GdbSetPythonDirectory): Likewise.
3311 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3312 instead of execute_unwinders.
3314 2019-08-15 Tom Tromey <tom@tromey.com>
3316 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3317 (show_data): Don't change window visibility.
3318 (tui_gen_win_info::resize): Remove special case for command
3319 window. Use wresize, when available.
3320 (show_source_or_disasm_and_command): Don't change window
3322 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3323 <make_visible>: New method.
3324 * tui/tui-command.c (tui_cmd_window::resize): New method.
3326 2019-08-15 Tom Tromey <tom@tromey.com>
3328 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3329 (struct tui_source_windows): New.
3330 * tui/tui-winsource.c (tui_display_main): Update.
3331 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3332 (new_height_ok, parse_scrolling_args): Update.
3333 * tui/tui-layout.c (show_layout, show_data): Update.
3334 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3335 (tui_add_to_source_windows): Don't declare.
3336 * tui/tui-data.c (source_windows, tui_source_windows)
3337 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3339 2019-08-15 Tom Tromey <tom@tromey.com>
3341 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3343 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3344 * tui/tui-layout.c (show_source_disasm_command, show_data):
3346 (tui_gen_win_info::resize): Rename.
3347 (show_source_or_disasm_and_command): Update.
3348 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3351 2019-08-15 Tom Tromey <tom@tromey.com>
3353 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3354 * tui/tui-interp.c (tui_interp::init): Don't call
3355 tui_initialize_static_data.
3356 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3358 2019-08-15 Tom Tromey <tom@tromey.com>
3360 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3361 examine tui_win_list.
3363 2019-08-15 Tom Tromey <tom@tromey.com>
3365 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3366 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3367 tui_clear_source_content.
3368 (tui_clear_source_content): Remove.
3369 (tui_source_window_base::do_erase_source_content): Hoist call to
3371 * tui/tui-stack.c (tui_show_frame_info): Don't call
3372 tui_clear_source_content.
3374 2019-08-15 Tom Tromey <tom@tromey.com>
3376 * tui/tui-winsource.h (struct tui_source_window_base)
3377 <do_erase_source_content>: New method.
3378 <erase_source_content>: New method.
3379 (tui_erase_source_content): Don't declare.
3380 * tui/tui-winsource.c (tui_clear_source_content): Update.
3381 (tui_source_window_base::do_erase_source_content): Rename from
3382 tui_erase_source_content.
3383 (tui_source_window_base::show_source_content): Update.
3384 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3385 * tui/tui-source.h (struct tui_source_window)
3386 <erase_source_content>: New method.
3387 * tui/tui-disasm.h (struct tui_disasm_window)
3388 <erase_source_content>: New method.
3390 2019-08-15 Tom Tromey <tom@tromey.com>
3392 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3393 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3395 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3396 * tui/tui-source.c (tui_set_source_content): Update.
3397 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3399 2019-08-15 Tom Tromey <tom@tromey.com>
3401 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3402 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3404 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3406 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3408 (tui_source_window::maybe_update): Update.
3410 2019-08-15 Tom Tromey <tom@tromey.com>
3412 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3413 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3415 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3417 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3419 (tui_disasm_window::maybe_update): Update.
3421 2019-08-15 Tom Tromey <tom@tromey.com>
3423 * tui/tui-winsource.h (struct tui_source_window_base)
3424 <maybe_update>: Declare.
3425 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3427 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3429 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3430 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3432 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3434 2019-08-15 Tom Tromey <tom@tromey.com>
3436 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3438 2019-08-15 Tom Tromey <tom@tromey.com>
3440 * tui/tui-wingeneral.c: Include tui-stack.h.
3441 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3442 (struct tui_locator_window): Move from tui-data.h.
3443 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3444 (tui_initialize_static_data): Move from tui-data.c.
3445 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3446 (struct tui_locator_window): Move to tui-stack.c.
3447 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3448 (tui_initialize_static_data): Move to tui-stack.c.
3450 2019-08-15 Tom Tromey <tom@tromey.com>
3452 * tui/tui-layout.c (show_source_disasm_command)
3453 (show_source_or_disasm_and_command): Use make_visible method, not
3455 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3458 2019-08-15 Tom Tromey <tom@tromey.com>
3460 * tui/tui-wingeneral.h (tui_make_window): Update.
3461 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3463 (tui_gen_win_info::make_visible): Update.
3464 * tui/tui-regs.c (tui_data_window::display_registers_from):
3466 * tui/tui-layout.c (show_source_disasm_command)
3467 (show_source_or_disasm_and_command): Update.
3468 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3469 (enum tui_box): Remove.
3470 (struct tui_win_info) <can_box>: New method.
3471 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3474 2019-08-15 Tom de Vries <tdevries@suse.de>
3476 * linux-nat-trad.c: Include gdbarch.h.
3478 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3480 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3483 2019-08-14 Tom Tromey <tromey@adacore.com>
3485 * darwin-nat.c: Include gdbarch.h.
3486 * darwin-nat-info.c: Include gdbarch.h.
3488 2019-08-13 Tom Tromey <tom@tromey.com>
3490 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3492 * tui/tui-data.c (tui_initialize_static_data): Update.
3494 2019-08-13 Tom Tromey <tom@tromey.com>
3496 * tui/tui-winsource.h (struct tui_exec_info_window)
3497 <~tui_exec_info_window, maybe_allocate_content, get_content,
3499 (struct tui_source_window_base) <set_exec_info_content,
3500 show_exec_info_content>: Don't declare.
3501 * tui/tui-winsource.c
3502 (tui_exec_info_window::maybe_allocate_content): Remove.
3503 (tui_source_window_base::update_exec_info): Rename from
3504 set_exec_info_content.
3505 (tui_source_window_base::show_exec_info_content)
3506 (tui_source_window_base::update_exec_info): Remove.
3508 2019-08-13 Tom Tromey <tom@tromey.com>
3510 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3512 * tui/tui-winsource.c (tui_update_source_window_as_is)
3513 (tui_update_source_windows_with_addr, tui_erase_source_content):
3515 (tui_clear_exec_info_content): Remove.
3517 2019-08-13 Tom Tromey <tom@tromey.com>
3519 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3521 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3522 call tui_erase_exec_info_content.
3523 (tui_clear_exec_info_content): Rename from
3524 tui_erase_exec_info_content.
3525 (tui_clear_exec_info_content): Delete.
3527 2019-08-13 Tom Tromey <tom@tromey.com>
3529 * tui/tui-winsource.h (struct tui_source_window_base)
3530 <show_exec_info_content>: Declare.
3531 (tui_show_exec_info_content): Don't declare.
3532 * tui/tui-winsource.c
3533 (tui_source_window_base::show_exec_info_content): Rename from
3534 tui_show_exec_info_content.
3535 (tui_source_window_base::update_exec_info): Update.
3537 2019-08-13 Tom Tromey <tom@tromey.com>
3539 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3540 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3541 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3542 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3543 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3544 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3547 2019-08-13 Tom Tromey <tom@tromey.com>
3549 * tui/tui-winsource.h (struct tui_source_window_base)
3550 <update_exec_info>: Declare.
3551 (tui_update_exec_info): Don't declare.
3552 * tui/tui-winsource.c (tui_update_source_window_as_is)
3553 (tui_source_window_base::refresh_all)
3554 (tui_update_all_breakpoint_info): Update.
3555 (tui_source_window_base::update_exec_info): Rename from
3556 tui_update_exec_info.
3557 * tui/tui-stack.c (tui_show_frame_info): Update.
3559 2019-08-13 Tom Tromey <tom@tromey.com>
3561 * tui/tui-winsource.h (struct tui_source_window_base)
3562 <set_exec_info_content>: Declare.
3563 (tui_set_exec_info_content): Don't declare.
3564 * tui/tui-winsource.c
3565 (tui_source_window_base::set_exec_info_content): Rename from
3566 tui_set_exec_info_content.
3567 (tui_update_exec_info): Update.
3569 2019-08-13 Tom Tromey <tom@tromey.com>
3571 * tui/tui-winsource.h (struct tui_source_window_base)
3572 <show_source_content>: Declare.
3573 (tui_show_source_content): Don't declare.
3574 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3575 (tui_source_window_base::show_source_content): Rename from
3576 tui_show_source_content.
3577 (tui_source_window_base::refresh_all): Update.
3578 * tui/tui-layout.c (show_source_disasm_command)
3579 (show_source_or_disasm_and_command): Update.
3581 2019-08-13 Tom Tromey <tom@tromey.com>
3583 * tui/tui-winsource.c (tui_erase_source_content)
3584 (tui_show_source_content, tui_source_window_base::refresh_all):
3586 * tui/tui-wingeneral.h
3587 (tui_check_and_display_highlight_if_needed): Don't declare.
3588 * tui/tui-wingeneral.c
3589 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3590 check_and_display_highlight_if_needed.
3591 * tui/tui-win.c (tui_rehighlight_all)
3592 (tui_win_info::make_visible_with_new_height): Update.
3593 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3594 (tui_data_window::erase_data_content)
3595 (tui_data_window::display_all_data): Update.
3596 * tui/tui-data.h (struct tui_win_info)
3597 <check_and_display_highlight_if_needed>: Declare.
3599 2019-08-13 Tom Tromey <tom@tromey.com>
3601 * tui/tui-win.c (tui_resize_all): Call
3602 tui_delete_invisible_windows.
3603 * tui/tui-layout.c (show_layout): Call
3604 tui_delete_invisible_windows.
3605 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3606 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3608 2019-08-13 Tom Tromey <tom@tromey.com>
3610 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3611 tui_add_win_to_layout.
3613 2019-08-13 Tom Tromey <tom@tromey.com>
3615 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3616 * tui/tui-layout.c (tui_default_win_height): Now static.
3618 2019-08-13 Tom Tromey <tom@tromey.com>
3620 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3622 (show_source_disasm_command, show_source_or_disasm_and_command):
3623 Don't check current layout.
3625 2019-08-13 Tom Tromey <tom@tromey.com>
3627 * tui/tui-wingeneral.c (make_all_visible): Remove.
3628 (tui_make_all_invisible): Simplify.
3629 * tui/tui-layout.c (tui_make_all_invisible): Move from
3630 tui-wingeneral.c; simplify.
3631 (show_layout): Hoist call to tui_make_all_invisible.
3632 (show_data): Don't call tui_make_all_invisible.
3634 2019-08-13 Tom Tromey <tom@tromey.com>
3636 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3637 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3639 2019-08-13 Tom Tromey <tom@tromey.com>
3641 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3643 (show_source_disasm_command, show_data)
3644 (show_source_or_disasm_and_command): Don't use
3645 tui_set_current_layout_to.
3646 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3647 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3649 (tui_set_current_layout_to): Remove.
3651 2019-08-13 Tom Tromey <tom@tromey.com>
3653 * tui/tui-layout.c (tui_set_layout): Update.
3654 * tui/tui-data.h (struct tui_layout_def): Remove.
3655 (tui_layout_def): Don't declare.
3656 * tui/tui-data.c (layout_def): Remove.
3657 (tui_layout_def): Remove.
3659 2019-08-13 Tom Tromey <tom@tromey.com>
3661 * tui/tui-winsource.h (struct tui_source_window_base)
3662 <clear_detail>: No longer "override".
3663 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3664 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3665 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3666 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3668 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3670 2019-08-13 Tom Tromey <tromey@adacore.com>
3672 * tracepoint.c: Don't include readline.h or history.h.
3674 2019-08-12 Tom Tromey <tom@tromey.com>
3676 * configure: Rebuild.
3677 * configure.ac: Check for readline 7.
3678 * NEWS: Mention readline 7 requirement.
3681 2019-08-12 Tom Tromey <tom@tromey.com>
3683 * mingw-hdep.c (gdb_select): Remove readline hack.
3685 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3687 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3688 when the function fails.
3690 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3692 * s390-tdep.c (s390_type_align): New function.
3693 (s390_gdbarch_init): Set it as type_align gdbarch method.
3695 2019-08-09 Tom de Vries <tdevries@suse.de>
3698 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3699 pc_low with relocation offset.
3701 2019-08-07 Tom Tromey <tromey@adacore.com>
3703 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3704 (print_frame_args): Update.
3705 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3707 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3708 * frame.h (struct frame_arg): Add initializers.
3709 <error>: Now a unique_xmalloc_ptr.
3711 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3713 * NEWS: Expand the Pointer Authentication entry.
3714 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3715 (aarch64_frame_unmask_lr): ... to this.
3716 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3717 Call aarch64_frame_unmask_lr.
3718 * frame.c (struct frame_info): Add "masked" variable.
3719 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3720 (fprint_frame): Check for masked pc.
3721 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3723 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3724 * stack.c (print_frame): Check for masked pc.
3726 2019-08-06 Tom Tromey <tom@tromey.com>
3728 * stabsread.c (patch_block_stabs, read_one_struct_field)
3729 (read_enum_type): Use obstack_strndup.
3730 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3731 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3732 * dwarf2read.c (guess_full_die_structure_name)
3733 (anonymous_struct_prefix): Use obstack_strndup.
3734 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3735 * c-exp.y (yylex): Use obstack_strndup.
3736 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3737 (write_var_or_type): Use obstack_strndup.
3739 2019-08-06 Tom Tromey <tom@tromey.com>
3741 * symfile.c (reread_symbols): Use obstack_strdup.
3742 * stabsread.c (read_type): Use obstack_strdup.
3743 * gdb_obstack.h (obstack_strdup): New overload.
3744 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3745 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3746 (dwarf2_canonicalize_name): Use obstack_strdup.
3747 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3748 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3751 2019-08-06 Tom Tromey <tom@tromey.com>
3753 * gdb_obstack.h (obstack_strdup): Define.
3754 * gdb_obstack.c (obstack_strdup): Don't define.
3756 2019-08-06 Tom Tromey <tom@tromey.com>
3758 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3760 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3762 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3763 * stabsread.c (common_block_start): Use obstack_strdup.
3764 * objfiles.c (set_objfile_main_name, objfile): Use
3766 * namespace.c (add_using_directive): Use obstack_strdup.
3767 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3768 * jit.c (finalize_symtab): Use obstack_strdup.
3769 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3770 (guess_partial_die_structure_name, partial_die_info::fixup)
3771 (dwarf2_name): Use obstack_strdup.
3772 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3774 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3775 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3777 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3779 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3781 * unittests/help-doc-selftests.c: New file.
3782 * Makefile.in: Add the new file.
3784 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3786 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3787 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3788 the full first line, except when FOR_VALUE_PREFIX. In this case,
3789 the trailing '.' is not output, and the first character is uppercased.
3790 (print_help_for_command): Update call to print_doc_line.
3791 (print_doc_of_command): Likewise.
3792 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3793 * cli/cli-option.c (append_indented_doc): Do not append newline.
3794 (build_help_option): Append newline after first appended_indented_doc
3795 only if a second call is done.
3796 (build_help): Append 2 new lines before each option, except the first
3798 * compile/compile.c (_initialize_compile): Add new lines after
3799 %OPTIONS%, when not at the end of the help.
3800 Change help doc or code
3801 producing the help doc to respect the invariants.
3802 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3803 Also removed the new line after 'Options:', as all other commands
3804 do not put an empty line between 'Options:' and the first option.
3805 * printcmd.c (_initialize_printcmd): Likewise.
3806 * stack.c (_initialize_stack): Likewise.
3807 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3808 incorrectly telling COMMAND is optional.
3809 * ada-lang.c (_initialize_ada_language): Change help doc or code
3810 producing the help doc to respect the invariants.
3811 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3812 * breakpoint.c (_initialize_breakpoint): Likewise.
3813 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3814 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3815 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3816 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3817 _initialize_cli_style): Likewise.
3818 * corelow.c (core_target_info): Likewise.
3819 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3820 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3821 * filesystem.c (_initialize_filesystem): Likewise.
3822 * frame.c (_initialize_frame): Likewise.
3823 * gnu-nat.c (add_task_commands): Likewise.
3824 * infcall.c (_initialize_infcall): Likewise.
3825 * infcmd.c (_initialize_infcmd): Likewise.
3826 * interps.c (_initialize_interpreter): Likewise.
3827 * language.c (_initialize_language): Likewise.
3828 * linux-fork.c (_initialize_linux_fork): Likewise.
3829 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3830 * maint.c (_initialize_maint_cmds): Likewise.
3831 * memattr.c (_initialize_mem): Likewise.
3832 * printcmd.c (_initialize_printcmd): Likewise.
3833 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3835 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3836 * record-btrace.c (_initialize_record_btrace): Likewise.
3837 * record-full.c (_initialize_record_full): Likewise.
3838 * record.c (_initialize_record): Likewise.
3839 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3840 * regcache.c (_initialize_regcache): Likewise.
3841 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3842 _initialize_remote): Likewise.
3843 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3844 * serial.c (_initialize_serial): Likewise.
3845 * skip.c (_initialize_step_skip): Likewise.
3846 * source.c (_initialize_source): Likewise.
3847 * stack.c (_initialize_stack): Likewise.
3848 * symfile.c (_initialize_symfile): Likewise.
3849 * symtab.c (_initialize_symtab): Likewise.
3850 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3851 * top.c (init_main): Likewise.
3852 * tracefile-tfile.c (tfile_target_info): Likewise.
3853 * tracepoint.c (_initialize_tracepoint): Likewise.
3854 * tui/tui-win.c (_initialize_tui_win): Likewise.
3855 * utils.c (add_internal_problem_command): Likewise.
3856 * valprint.c (value_print_option_defs): Likewise.
3858 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3861 * configure.ac: Drop enable-libmcheck support.
3862 * configure, config.in: Rebuild.
3863 * libmcheck.m4: Remove.
3864 * acinclude.m4: Don't include it.
3865 * Makefile.in: Don't distribute it.
3866 * top.c (print_gdb_configuration): Don't mention it.
3868 2019-08-06 Tom Tromey <tom@tromey.com>
3870 * utils.c (set_output_style): Sometimes pass stream to
3872 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3873 * record-btrace.c (btrace_insn_history): Update.
3874 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3876 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3877 Update initializers.
3878 <m_uiout>: New field.
3880 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3881 Remove "uiout" parameter.
3882 (dump_insns): Update.
3883 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3884 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3886 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3888 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3889 (error_in_psymtab_expansion): Likewise.
3890 (lookup_symbol_via_quick_fns): Likewise.
3891 (basic_lookup_transparent_type_quick): Likewise.
3892 (basic_lookup_transparent_type_1): Likewise.
3894 2019-08-06 Tom Tromey <tromey@adacore.com>
3896 * source.c (last_source_error): Now bool.
3897 (print_source_lines_base): Make "noprint" bool. Only open
3898 source file when last_source_visited changes.
3900 2019-08-06 Tom Tromey <tromey@adacore.com>
3902 * annotate.c (annotate_source_line): Use g_source_cache.
3903 * source-cache.c (source_cache::get_plain_source_lines): Change
3904 parameters. Populate m_offset_cache.
3905 (source_cache::ensure): New method.
3906 (source_cache::get_line_charpos): New method.
3907 (extract_lines): Move lower. Change parameters.
3908 (source_cache::get_source_lines): Move lower.
3909 * source-cache.h (class source_cache): Update comment.
3910 <get_line_charpos>: New method.
3911 <get_source_lines>: Update comment.
3912 <clear>: Clear m_offset_cache.
3913 <get_plain_source_lines>: Change parameters.
3914 <ensure>: New method
3915 <m_offset_cache>: New member.
3916 * source.c (forget_cached_source_info_for_objfile): Update.
3917 (info_source_command): Use g_source_cache.
3918 (find_source_lines, open_source_file_with_line_charpos): Remove.
3919 (print_source_lines_base, search_command_helper): Use g_source_cache.
3920 * source.h (open_source_file_with_line_charpos): Don't declare.
3921 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3922 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3925 2019-08-06 Tom Tromey <tromey@adacore.com>
3927 * source-cache.c (source_cache::get_plain_source_lines):
3928 Remove "first_line" and "last_line" parameters.
3929 (source_cache::get_source_lines): Cache plain text.
3930 * source-cache.h (class source_cache)
3931 <get_plain_source_lines>: Update.
3933 2019-08-06 Tom Tromey <tromey@adacore.com>
3935 * source-cache.c (extract_lines): No longer a method.
3936 Changed type of parameter. Include final newline.
3937 (selftests::extract_lines_test): New function.
3938 (_initialize_source_cache): Likewise.
3939 * source-cache.h (class source_cache)
3940 <extract_lines>: Don't declare.
3942 2019-08-06 Tom Tromey <tromey@adacore.com>
3944 * breakpoint.c (init_breakpoint_sal): Update.
3945 (breakpoint): Update.
3946 * breakpoint.h (struct breakpoint) <filter>: Now a
3949 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3951 * NEWS: Mention dictionary access on blocks.
3952 * python/py-block.c (blpy_getitem): New function.
3953 (block_object_as_mapping): New struct.
3954 (block_object_type): Use new struct for tp_as_mapping field.
3956 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3958 * objfiles.h (objfile): Add a comment describing partial symbols.
3960 2019-08-05 Tom Tromey <tromey@adacore.com>
3962 * compile/compile.c (_initialize_compile): Use _(), not N_().
3963 * thread.c (_initialize_thread): Use _(), not N_().
3964 * stack.c (_initialize_stack): Use _(), not N_().
3965 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3967 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3969 * dwarf2read.c (struct dw2_symtab_iterator):
3970 <want_specific_block>: Remove.
3971 <block_index>: Change type to gdb::optional.
3972 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3973 change type of BLOCK_INDEX parameter to gdb::optional.
3974 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3975 (dw2_lookup_symbol): Don't pass argument for
3976 WANT_SPECIFIC_BLOCK.
3977 (dw2_expand_symtabs_for_function): Don't pass argument for
3978 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3979 (class dw2_debug_names_iterator)
3980 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3981 parameter, change BLOCK_INDEX type to gdb::optional.
3982 <m_want_specific_block>: Remove.
3983 <m_block_index>: Change type to gdb::optional.
3984 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3985 gdb::optional. Re-write in function of gdb::optional.
3986 (dw2_debug_names_lookup_symbol): Don't pass argument for
3987 WANT_SPECIFIC_BLOCK.
3988 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3989 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3992 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3994 * NEWS: Mention changes to "info sources" command.
3996 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3998 * symtab.c (filename_partial_match_opts): New struct type.
3999 (struct output_source_filename_data): New members
4000 regexp, c_regexp, partial_match.
4001 (output_source_filename): Use new members to decide to print file.
4002 (info_sources_option_defs): New variable.
4003 (make_info_sources_options_def_group, print_info_sources_header,
4004 info_sources_command_completer):
4006 (info_sources_command): Read new optional arguments.
4007 (_initialize_symtab): Update info sources help.
4009 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4011 * ada-lang.c (exception_support_info_v0): Renamed from...
4012 (default_exception_support_info): ... this. Create new
4014 (ada_has_this_exception_support): Look up catch_handlers_sym.
4015 (ada_exception_support_info_sniffer): Try v0 after default.
4017 2019-08-01 Tom Tromey <tromey@adacore.com>
4019 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4022 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4024 * s12z-tdep.c: Fix include path for s12z-opc.h.
4026 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4028 * NEWS: Require GNU make 3.82.
4030 2019-07-16 Tom Tromey <tom@tromey.com>
4032 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4035 2019-07-30 Tom Tromey <tromey@adacore.com>
4037 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4039 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4041 * printcmd.c (print_address_symbolic): Print negative offsets.
4042 (build_address_symbolic): Force signed arithmetic when computing
4045 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4047 PR/24474: Add a function to lookup static variables.
4048 * NEWS: Mention this new function.
4049 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4050 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4051 * python/python.c (python_GdbMethods): Add new function.
4053 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4055 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4056 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4057 (objfpy_lookup_static_symbol): New function.
4058 (objfile_object_methods): Add new functions.
4060 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4062 * NEWS: Mention 'set|show print frame-info'. Mention new
4063 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4064 backtrace argument. Mention that python frame filtering code
4065 is now consistent with what 'backtrace' command prints.
4067 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4069 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4071 (print_frame_info_auto, print_frame_info_source_line,
4072 print_frame_info_location, print_frame_info_source_and_location,
4073 print_frame_info_location_and_address, print_frame_info_short_location):
4075 (struct frame_print_options): New member print_frame_info.
4076 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4077 * stack.h (get_user_print_what_frame_info): New declaration.
4078 (frame_show_address): New declaration.
4079 * stack.c (print_frame_arguments_choices): New value 'presence'.
4080 (print_frame_info_auto, print_frame_info_source_line,
4081 print_frame_info_location, print_frame_info_source_and_location,
4082 print_frame_info_location_and_address, print_frame_info_short_location,
4083 print_frame_info_choices, print_frame_info_print_what): New definitions.
4084 (print_frame_args): Only print dots for args if print frame-arguments
4086 (frame_print_option_defs): New element for "frame-info".
4087 (get_user_print_what_frame_info): New function.
4088 (frame_show_address): Make non static. Move comment to stack.h.
4089 (print_frame_info_to_print_what): New function.
4090 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4091 to decide what to print.
4092 (backtrace_command_1): Handle the new print_frame_arguments_presence
4094 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4095 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4096 (py_print_frame): In non-mi mode, use LOCATION as default for
4097 print_what, similarly to frame information printed directly by
4098 backtrace command. Handle frame-info user option in non MI mode.
4100 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4102 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4103 Add case for debugging 32-bit target on 64-bit host. Revise
4106 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4108 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4109 instead of find_function_entry_range_from_pc.
4111 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4113 * stack.c (find_frame_funname): Remove code which preferred
4114 minsym over symtab sym in "certain pathological cases".
4116 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4117 parameter. Change type of "do_demangle" to bool.
4118 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4119 Pass suitable "prefer_sym_over_minsym" flag to
4120 build_address_symbolic(). Don't output "+" for negative offsets.
4121 * printcmd.c (print_address_symbolic): Update invocation of
4122 build_address_symbolic to include a "prefer_sym_over_minsym"
4124 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4125 Restrict cases in which use of minimal symbol is preferred to that
4126 of a found symbol. Update comments.
4128 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4129 for entry pc when entry pc is out of range for that FDE.
4131 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4134 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4137 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4139 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4140 this function's Python signature.
4143 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4145 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4146 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4147 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4148 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4149 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4152 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4154 * h8300-tdep.c (h8300_register_name_common): New.
4155 h8300_register_name): Use h8300_register_name_common.
4156 (h8300s_register_name): Likewise.
4157 (h8300sx_register_name): Likewise.
4158 (h8300h_register_nam): New.
4159 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4162 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4164 * arm-tdep.c (arm_skip_cmse_entry): New function.
4165 (arm_is_sgstubs_section): New function.
4166 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4168 2019-07-22 Tom Tromey <tom@tromey.com>
4170 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4173 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4175 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4178 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4180 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4181 so that GDB doesn't match any msymbols when searching in the
4183 (print_symbol_info): Print using typedef_print or type_print based
4184 on the type of the symbol. Add updated FIXME comment moved from...
4185 (_initialize_symtab): ... move and update FIXME comment to above.
4187 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4189 * NEWS: Mention adding -q option to "info types".
4190 * symtab.c (struct info_types_options): New struct.
4191 (info_types_options_defs): New variable.
4192 (make_info_types_options_def_group): New function.
4193 (info_types_command): Use gdb::option framework to parse options.
4194 (info_types_command_completer): New function.
4195 (_initialize_symtab): Extend the help text on "info types" and
4196 register command completer.
4198 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4200 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4201 (lookup_symbol_in_objfile): Change int to block_enum and add a
4202 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4204 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4206 * MAINTAINERS (Write After Approval): Add self.
4208 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4210 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4211 instruction to the dummy code region.
4213 2019-07-19 Tom Tromey <tromey@adacore.com>
4215 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4216 (ARGSUSED, PARAMS, __func__): Remove rules.
4218 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4220 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4221 * features/arm/arm-with-iwmmxt.c: Remove.
4222 * features/arm/arm-with-iwmmxt.xml: Remove.
4223 * features/arm/arm-with-m-fpa-layout.c: Remove.
4224 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4225 * features/arm/arm-with-m-vfp-d16.c: Remove.
4226 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4227 * features/arm/arm-with-m.c: Remove.
4228 * features/arm/arm-with-m.xml: Remove.
4229 * features/arm/arm-with-neon.c: Remove.
4230 * features/arm/arm-with-neon.xml: Remove.
4231 * features/arm/arm-with-vfpv2.c: Remove.
4232 * features/arm/arm-with-vfpv2.xml: Remove.
4233 * features/arm/arm-with-vfpv3.c: Remove.
4234 * features/arm/arm-with-vfpv3.xml: Remove.
4236 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4238 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4240 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4242 * arch/aarch32.c (aarch32_create_target_description): Create
4243 target descriptions using features.
4244 * arch/arm.c (arm_create_target_description)
4245 (arm_create_mprofile_target_description): Likewise.
4246 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4248 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4250 * Makefile.in: Add new files.
4251 * aarch32-tdep.c: New file.
4252 * aarch32-tdep.h: New file.
4253 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4254 Call aarch32_read_description.
4255 * arch/aarch32.c: New file.
4256 * arch/aarch32.h: New file.
4257 * arch/arm.c (arm_create_target_description)
4258 (arm_create_mprofile_target_description): New function.
4259 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4260 (arm_create_target_description)
4261 (arm_create_mprofile_target_description): New declaration.
4262 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4263 read_description functions.
4264 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4266 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4267 * arm-tdep.c (tdesc_arm_list): New variable.
4268 (arm_register_g_packet_guesses): Call create description functions.
4269 (arm_read_description) (arm_read_mprofile_description): New
4271 * arm-tdep.h (arm_read_description)
4272 (arm_read_mprofile_description): Add declaration.
4273 * configure.tgt: Add new files.
4275 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4277 * top.c (new_ui_command): Open specified terminal just once.
4279 2019-07-18 Tom Tromey <tromey@adacore.com>
4281 * symtab.c (main_name): Constify return type.
4282 * symfile.c (set_initial_language): Update.
4283 * symtab.h (main_name): Constify return type.
4285 2019-07-17 Tom Tromey <tom@tromey.com>
4287 * tui/tui-winsource.c (tui_update_source_window)
4288 (tui_update_source_window_as_is)
4289 (tui_update_source_windows_with_line): Remove return.
4290 * tui/tui-disasm.c (tui_show_disassem)
4291 (tui_show_disassem_and_update_source): Remove return.
4292 * tui/tui.c (tui_reset): Remove return.
4293 * tui/tui-wingeneral.c
4294 (tui_check_and_display_highlight_if_needed): Remove return.
4296 2019-07-17 Tom Tromey <tom@tromey.com>
4298 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4300 2019-07-17 Tom Tromey <tom@tromey.com>
4302 * tui/tui-winsource.h (struct tui_exec_info_window)
4303 (struct tui_source_window_base): Move from tui-data.h.
4304 * tui/tui-winsource.c: Move many method definitions from
4305 elsewhere. Remove "structuring" comments.
4306 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4307 (tui_source_window_base::refresh_window): Move to
4309 * tui/tui-win.c (tui_source_window_base::refresh_all)
4310 (tui_source_window_base::update_tab_width)
4311 (tui_source_window_base::set_new_height)
4312 (tui_source_window_base::do_make_visible_with_new_height): Move to
4314 * tui/tui-source.h: Update.
4315 * tui/tui-source.c (tui_source_window_base::reset): Move to
4317 * tui/tui-disasm.h: Update.
4318 * tui/tui-data.h (struct tui_exec_info_window): Move to
4320 (struct tui_source_window_base): Likewise.
4321 * tui/tui-data.c (tui_source_window_base::clear_detail)
4322 (tui_source_window_base, ~tui_source_window_base): Move to
4325 2019-07-17 Tom Tromey <tom@tromey.com>
4327 * tui/tui-win.c (tui_resize_all)
4328 (tui_source_window_base::update_tab_width)
4329 (tui_adjust_win_heights): Update.
4330 (tui_win_info::make_invisible_and_set_new_height): Rename from
4331 make_invisible_and_set_new_height.
4332 * tui/tui-data.h (struct tui_win_info)
4333 <make_invisible_and_set_new_height>: New method.
4335 2019-07-17 Tom Tromey <tom@tromey.com>
4337 * tui/tui.c: Update.
4338 * tui/tui-source.h (struct tui_source_window): Move from
4340 * tui/tui-layout.c: Update.
4341 * tui/tui-disasm.c: Update.
4342 * tui/tui-data.h (struct tui_source_window): Move to
4345 2019-07-17 Tom Tromey <tom@tromey.com>
4347 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4349 * tui/tui-data.h (struct tui_disasm_window): Move to
4352 2019-07-17 Tom Tromey <tom@tromey.com>
4354 * tui/tui-regs.h (struct tui_data_item_window): Move from
4356 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4357 * tui/tui-data.h (struct tui_data_item_window): Move to
4359 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4361 2019-07-17 Tom Tromey <tom@tromey.com>
4363 * tui/tui.c: Update.
4364 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4365 (tui_cmd_window::max_height): Move to tui-command.c.
4366 * tui/tui-layout.c: Update.
4367 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4368 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4370 * tui/tui-command.h (struct tui_cmd_window): Move from
4372 * tui/tui-command.c: Remove "structuring" comments.
4373 (tui_cmd_window::clear_detail)
4374 (tui_cmd_window::do_make_visible_with_new_height)
4375 (tui_cmd_window::max_height): Move from elsewhere.
4377 2019-07-17 Tom Tromey <tom@tromey.com>
4379 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4381 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4382 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4384 2019-07-17 Tom Tromey <tom@tromey.com>
4386 * tui/tui.c: Update.
4387 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4389 * tui/tui-windata.h: Remove file.
4390 * tui/tui-windata.c: Remove file.
4391 * tui/tui-win.c (tui_data_window::set_new_height)
4392 (tui_data_window::do_make_visible_with_new_height): Move to
4394 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4395 * tui/tui-regs.c: Remove "structuring" comments.
4396 (tui_data_window::first_data_item_displayed)
4397 (tui_data_window::delete_data_content_windows)
4398 (tui_data_window::erase_data_content)
4399 (tui_data_window::display_all_data)
4400 (tui_data_window::refresh_all)
4401 (tui_data_window::do_scroll_vertical)
4402 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4403 (tui_data_window::do_make_visible_with_new_height)
4404 (tui_data_window::refresh_window): Move from elsewhere.
4405 (_initialize_tui_regs): Move to end of file.
4406 * tui/tui-layout.c: Update.
4407 * tui/tui-hooks.c: Update.
4408 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4409 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4411 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4413 2019-07-17 Tom Tromey <tom@tromey.com>
4415 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4418 2019-07-17 Tom Tromey <tom@tromey.com>
4420 * tui/tui-win.c (tui_source_window_base::set_new_height)
4421 (tui_source_window_base::do_make_visible_with_new_height): Use
4422 m_has_locator field directly.
4423 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4425 (struct tui_source_window_base) <has_locator>: Likewise.
4427 2019-07-17 Tom Tromey <tom@tromey.com>
4429 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4431 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4433 * tui/tui-win.c (tui_source_window_base::set_new_height)
4434 (tui_source_window_base::set_new_height)
4435 (make_invisible_and_set_new_height)
4436 (tui_source_window_base::do_make_visible_with_new_height)
4437 (tui_source_window_base::do_make_visible_with_new_height):
4439 * tui/tui-layout.c (show_source_disasm_command, show_data)
4440 (show_source_or_disasm_and_command): Update.
4441 * tui/tui-layout.c (show_layout): Update.
4443 2019-07-17 Tom Tromey <tom@tromey.com>
4445 * tui/tui-layout.c (make_data_window): Remove.
4446 (show_data): Unify creation and re-initialization cases.
4448 2019-07-17 Tom Tromey <tom@tromey.com>
4450 * tui/tui-layout.c (make_source_window, make_disasm_window):
4452 (show_data): Unify creation and re-initialization cases.
4454 2019-07-17 Tom Tromey <tom@tromey.com>
4456 * tui/tui-layout.c (make_command_window): Remove.
4457 (show_source_disasm_command, show_source_or_disasm_and_command):
4458 Unify creation and re-initialization cases.
4460 2019-07-17 Tom Tromey <tom@tromey.com>
4462 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4463 creation and re-initialization cases.
4465 2019-07-17 Tom Tromey <tom@tromey.com>
4467 * tui/tui-regs.c (tui_get_register): Return void.
4469 2019-07-17 Tom Tromey <tom@tromey.com>
4471 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4474 2019-07-17 Tom Tromey <tom@tromey.com>
4476 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4479 2019-07-17 Tom Tromey <tom@tromey.com>
4481 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4482 * tui/tui-regs.c (tui_reg_layout): New function.
4483 (tui_show_registers, tui_reg_command): Use it.
4484 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4485 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4487 (tui_layout_command): Remove.
4489 2019-07-17 Tom Tromey <tom@tromey.com>
4491 * tui/tui-layout.h (tui/tui-layout): Return void.
4492 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4494 2019-07-17 Tom Tromey <tom@tromey.com>
4496 * tui/tui-layout.c (show_source_disasm_command, show_data):
4498 (reset_locator): Remove.
4499 (show_source_or_disasm_and_command): Update.
4501 2019-07-17 Tom Tromey <tom@tromey.com>
4503 * tui/tui-source.c (tui_source_window_base::reset): Remove
4505 * tui/tui-layout.c (make_command_window, make_source_window)
4506 (make_disasm_window, make_data_window)
4507 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4508 (reset_locator, show_source_or_disasm_and_command): Update.
4509 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4511 (struct tui_source_window_base) <reset>: Likewise.
4513 2019-07-17 Tom Tromey <tom@tromey.com>
4515 * tui/tui-layout.c (show_source_disasm_command): Use
4517 (reset_locator): New function.
4518 (init_and_make_win): Remove.
4519 (show_source_or_disasm_and_command): Use reset_locator.
4521 2019-07-17 Tom Tromey <tom@tromey.com>
4523 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4525 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4527 * tui/tui-source.c (tui_source_window_base::reset): New method.
4528 * tui/tui-layout.c (make_command_window): Don't call
4530 (make_source_window, make_disasm_window): Don't call
4531 make_source_or_disasm_window.
4532 (make_data_window): Don't call init_and_make_win. Change calling
4534 (show_source_disasm_command, show_data): Simplify.
4535 (make_source_or_disasm_window): Remove.
4536 (show_source_or_disasm_and_command): Simplify.
4537 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4538 (struct tui_source_window_base) <reset>: Likewise.
4539 <execution_info>: Remove initializer.
4540 * tui/tui-data.c (tui_source_window_base): Initialize
4543 2019-07-17 Tom Tromey <tom@tromey.com>
4545 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4548 2019-07-17 Tom Tromey <tom@tromey.com>
4550 * tui/tui.c (tui_rl_other_window): Update.
4551 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4552 superclass method first. Always iterate over regs_content.
4553 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4555 * tui/tui-win.c (tui_set_focus_command): Update.
4557 2019-07-17 Tom Tromey <tom@tromey.com>
4559 * tui/tui-win.c (tui_set_focus_command): Rename from
4560 tui_set_focus. Call tui_enable.
4561 (tui_set_focus_command): Remove.
4563 2019-07-17 Tom Tromey <tom@tromey.com>
4565 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4567 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4569 (tui_data_window::refresh_window): Call refresh_window on data
4570 items. Always call superclass refresh_window.
4571 (tui_win_info::refresh): Remove.
4572 (tui_source_window_base::refresh_window): Update.
4573 (tui_refresh_all): Update.
4574 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4576 (show_source_or_disasm_and_command): Likewise.
4577 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4578 (struct tui_source_window_base) <refresh>: Likewise.
4580 2019-07-17 Tom Tromey <tom@tromey.com>
4582 * tui/tui-winsource.c (tui_clear_source_content)
4583 (tui_show_source_content): Update.
4584 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4585 whether content is empty.
4586 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4589 2019-07-17 Tom Tromey <tom@tromey.com>
4591 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4593 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4594 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4596 2019-07-17 Tom Tromey <tom@tromey.com>
4598 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4599 (struct tui_data_item_window): Update.
4601 2019-07-17 Tom Tromey <tom@tromey.com>
4603 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4604 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4607 2019-07-17 Tom Tromey <tom@tromey.com>
4609 * tui/tui-winsource.h (tui_erase_source_content)
4610 (tui_clear_source_content): Remove "display_prompt" parameter.
4611 * tui/tui-winsource.c (tui_update_source_window_as_is)
4612 (tui_update_source_windows_with_addr): Update.
4613 (tui_clear_source_content): Remove "display_prompt" parameter.
4614 (tui_erase_source_content): Likewise. Simplify.
4615 (tui_show_source_content): Update.
4616 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4617 * tui/tui-stack.c (tui_show_frame_info): Update.
4618 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4621 2019-07-17 Tom Tromey <tom@tromey.com>
4623 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4624 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4626 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4629 2019-07-17 Tom Tromey <tom@tromey.com>
4631 * tui/tui-winsource.c (tui_clear_source_content)
4632 (tui_show_source_content, tui_show_exec_info_content)
4633 (tui_clear_exec_info_content): Update.
4634 * tui/tui-stack.c (tui_show_locator_content): Update.
4635 (tui_show_frame_info): Update.
4636 * tui/tui-source.h (tui_source_window): Don't declare.
4637 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4638 from tui_source_is_displayed.
4639 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4641 (struct tui_source_window_base) <content_in_use>: New field. Now
4643 (struct tui_source_window) <showing_source_p>: New method.
4644 (TUI_SRC_WIN): Change cast.
4645 * tui/tui-data.c (tui_initialize_static_data): Update.
4647 2019-07-17 Tom Tromey <tom@tromey.com>
4649 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4651 * tui/tui-source.c (tui_source_window::location_matches_p): New
4653 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4655 * tui/tui-data.h (struct tui_source_window_base)
4656 <location_matches_p>: New method.
4657 (struct tui_source_window, struct tui_disasm_window)
4658 <location_matches_p>: Likewise.
4660 2019-07-17 Tom Tromey <tom@tromey.com>
4662 * tui/tui-win.c (tui_set_win_height_command): Rename from
4664 (tui_set_win_height_command): Remove.
4666 2019-07-17 Tom Tromey <tom@tromey.com>
4668 * tui/tui-source.c (tui_source_window): New constructor. Add
4670 (~tui_source_window): New destructor.
4671 (tui_source_window::style_changed): New method.
4672 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4673 (tui_attach_detach_observers): Update.
4674 * tui/tui-data.h (struct tui_source_window): Make constructor not
4675 inline. Add destructor.
4676 (struct tui_source_window) <style_changed>: New method.
4677 <m_observable>: New member.
4679 2019-07-17 Tom Tromey <tom@tromey.com>
4681 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4682 * tui/tui-win.c (tui_resize_all): Fix typo.
4684 2019-07-17 Tom Tromey <tom@tromey.com>
4686 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4687 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4688 (tui_refresh_all): Remove "list" parameter. Use foreach.
4689 * tui/tui-win.c (window_name_completer): Use foreach.
4690 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4691 (update_tab_width): Likewise.
4692 * tui/tui-layout.c (show_layout): Update.
4693 * tui/tui-data.h (class tui_window_iterator): New.
4694 (struct all_tui_windows): New.
4695 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4697 2019-07-17 Tom Tromey <tom@tromey.com>
4699 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4700 parameter. Don't reference globals.
4701 (tui_reg_command): Update.
4703 2019-07-17 Tom Tromey <tom@tromey.com>
4705 * tui/tui-regs.c (tui_show_registers): Simplify.
4707 2019-07-17 Tom Tromey <tom@tromey.com>
4709 * tui/tui-regs.c (tui_show_registers): Update.
4710 (tui_show_register_group): Add win_info parameter.
4712 2019-07-17 Tom Tromey <tom@tromey.com>
4714 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4715 Rename from tui_display_reg_element_at_line.
4716 (tui_data_window::display_registers_from_line): Update.
4717 * tui/tui-data.h (struct tui_data_window)
4718 <display_reg_element_at_line>: New method.
4720 2019-07-17 Tom Tromey <tom@tromey.com>
4722 * tui/tui-regs.h (tui_display_registers_from)
4723 (tui_display_registers_from_line): Don't declare.
4724 * tui/tui-windata.c (tui_data_window::display_all_data)
4725 (tui_data_window::refresh_all)
4726 (tui_data_window::do_scroll_vertical): Update.
4727 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4728 from tui_display_registers_from.
4729 (tui_display_reg_element_at_line): Update.
4730 (tui_data_window::display_registers_from_line): Rename from
4731 tui_display_registers_from_line.
4732 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4733 display_registers_from_line>: New methods.
4735 2019-07-17 Tom Tromey <tom@tromey.com>
4737 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4738 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4739 from tui_erase_data_content.
4740 (tui_data_window::display_all_data)
4741 (tui_data_window::refresh_all)
4742 (tui_data_window::do_scroll_vertical): Update.
4743 * tui/tui-regs.c (tui_show_registers): Update.
4744 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4747 2019-07-17 Tom Tromey <tom@tromey.com>
4749 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4752 (tui_data_window::delete_data_content_windows): Rename from
4753 tui_delete_data_content_windows.
4754 (tui_data_window::display_all_data)
4755 (tui_data_window::do_scroll_vertical): Update.
4756 * tui/tui-data.h (struct tui_data_window)
4757 <delete_data_content_windows>: New method.
4759 2019-07-17 Tom Tromey <tom@tromey.com>
4761 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4762 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4764 2019-07-17 Tom Tromey <tom@tromey.com>
4766 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4767 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4768 from tui_display_all_data.
4770 (tui_data_window::do_make_visible_with_new_height): Update.
4771 * tui/tui-regs.c (tui_show_registers): Update.
4772 * tui/tui-layout.c (tui_set_layout): Update.
4773 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4776 2019-07-17 Tom Tromey <tom@tromey.com>
4778 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4779 * tui/tui-windata.c (tui_display_data_from): Remove.
4780 (tui_data_window::refresh_all): Update.
4782 2019-07-17 Tom Tromey <tom@tromey.com>
4784 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4785 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4786 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4787 tui_display_registers_from_line.
4788 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4789 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4790 "force_display" parameter.
4792 2019-07-17 Tom Tromey <tom@tromey.com>
4794 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4796 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4797 Rename from tui_first_reg_element_no_inline.
4798 (tui_display_reg_element_at_line)
4799 (tui_display_registers_from_line): Update.
4800 * tui/tui-data.h (struct tui_data_window)
4801 <first_reg_element_no_inline>: New method.
4803 2019-07-17 Tom Tromey <tom@tromey.com>
4805 * tui/tui-windata.c (tui_display_data_from)
4806 (tui_data_window::do_scroll_vertical): Update.
4807 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4808 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4809 Rename from tui_line_from_reg_element_no.
4810 (tui_display_registers_from_line): Update.
4811 * tui/tui-data.h (struct tui_data_window)
4812 <line_from_reg_element_no>: New method.
4814 2019-07-17 Tom Tromey <tom@tromey.com>
4816 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4817 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4818 tui_last_regs_line_no.
4819 (tui_display_reg_element_at_line)
4820 (tui_display_registers_from_line): Update.
4821 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4824 2019-07-17 Tom Tromey <tom@tromey.com>
4827 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4828 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4829 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4830 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4831 (tui_update_breakpoint_info): Likewise.
4832 * tui/tui-hooks.c (tui_event_create_breakpoint)
4833 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4836 2019-07-17 Tom Tromey <tom@tromey.com>
4838 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4840 2019-07-17 Tom Tromey <tom@tromey.com>
4842 * tui/tui-winsource.c (tui_update_source_window_as_is)
4843 (tui_update_source_windows_with_addr): Update.
4844 * tui/tui-source.h (tui_set_source_content)
4845 (tui_show_symtab_source): Add "win_info" parameter.
4846 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4848 (tui_show_symtab_source): Likewise.
4850 2019-07-17 Tom Tromey <tom@tromey.com>
4852 * tui/tui-wingeneral.c
4853 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4855 2019-07-17 Tom Tromey <tom@tromey.com>
4857 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4858 (struct tui_cmd_window) <can_scroll>: New method.
4859 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4862 2019-07-17 Tom Tromey <tromey@adacore.com>
4864 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4865 do_field_signed>: Rename. Change type of "value".
4866 * ui-out.c (ui_out::field_signed): Rename from field_int.
4867 Change type of "value".
4868 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4870 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4871 do_field_int. Change type of "value".
4872 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4873 do_field_int. Change type of "value".
4874 * tracepoint.c (trace_status_mi, tfind_1)
4875 (print_one_static_tracepoint_marker): Update.
4876 * thread.c (print_thread_info_1, print_selected_thread_frame):
4878 * stack.c (print_frame, print_frame_info): Update.
4879 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4881 * source.c (print_source_lines_base): Update.
4882 * skip.c (info_skip_command): Update.
4883 * record-btrace.c (btrace_ui_out_decode_error)
4884 (btrace_call_history_src_line): Update.
4885 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4887 * progspace.c (print_program_space): Update.
4888 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4889 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4890 do_field_int. Change type of "value".
4891 * mi/mi-out.c (mi_ui_out::do_table_begin)
4892 (mi_ui_out::do_table_header): Update.
4893 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4895 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4896 (mi_cmd_data_list_changed_registers, output_register)
4897 (mi_cmd_data_read_memory, mi_load_progress)
4898 (mi_cmd_trace_frame_collected): Update.
4899 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4901 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4902 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4903 (mi_cmd_var_list_children, varobj_update_one): Update.
4904 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4905 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4906 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4907 * inferior.c (print_inferior): Update.
4908 * gdb_bfd.c (print_one_bfd): Update.
4909 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4911 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4912 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4913 do_field_int. Change type of "value".
4914 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4915 do_field_int. Change type of "value".
4916 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4917 (print_one_breakpoint_location, print_it_catch_fork)
4918 (print_one_catch_fork, print_it_catch_vfork)
4919 (print_one_catch_vfork, print_it_catch_solib)
4920 (print_it_catch_exec, print_it_ranged_breakpoint)
4921 (print_mention_watchpoint, print_mention_masked_watchpoint)
4922 (bkpt_print_it, update_static_tracepoint): Update.
4923 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4924 * break-catch-syscall.c (print_it_catch_syscall): Update.
4925 * ada-tasks.c (print_ada_task_info): Update.
4926 * ada-lang.c (print_it_exception, print_mention_exception):
4929 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4931 PR breakpoints/24541
4932 * gdbarch.c: Regenerate.
4933 * gdbarch.h: Regenerate.
4934 * gdbarch.sh: Adjust return type and parameter types for
4935 'stap_adjust_register'.
4936 (i386_stap_adjust_register): Adjust signature and return new
4938 * stap-probe.c (stap_parse_register_operand): Adjust use of
4939 'gdbarch_stap_adjust_register'.
4941 2019-07-17 Tom Tromey <tromey@adacore.com>
4943 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4945 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4947 (struct s390_process_info): Add initializers.
4948 (s390_add_process): Use new.
4949 (s390_linux_nat_target::low_forget_process): Use delete.
4950 (s390_linux_nat_target::low_new_fork)
4951 (s390_linux_nat_target::stopped_by_watchpoint)
4952 (s390_linux_nat_target::low_prepare_to_resume)
4953 (s390_linux_nat_target::insert_watchpoint)
4954 (s390_linux_nat_target::insert_hw_breakpoint)
4955 (s390_linux_nat_target::remove_watchpoint)
4956 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4958 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4960 * aarch64-fbsd-nat.c: Include regcache.h.
4961 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4963 (aarch64_fbsd_nat_target::fetch_registers)
4964 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4966 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4968 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4970 * fbsd-nat.c: Include gdbarch.h.
4972 2019-07-15 Tom Tromey <tromey@adacore.com>
4974 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4976 2019-07-15 Tom Tromey <tromey@adacore.com>
4978 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4979 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4980 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4981 * cli-out.c (cli_ui_out::do_field_int): New method.
4982 * ui-out.c (ui_out::field_unsigned): New method.
4983 * symfile.c (generic_load): Use field_unsigned.
4984 (print_transfer_performance): Likewise.
4985 * record-btrace.c (ui_out_field_uint): Remove.
4986 (btrace_call_history_insn_range, btrace_call_history): Use
4988 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4990 * ui-out.h (class ui_out) <field_unsigned>: New method.
4991 <do_field_unsigned>: Likewise.
4993 2019-07-15 Tom Tromey <tromey@adacore.com>
4995 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4996 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4997 * target.c (flash_erase_command): Use field_string.
4998 * infrun.c (print_signal_received_reason): Use field_string.
4999 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5000 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5002 * ada-tasks.c (print_ada_task_info): Use field_string.
5004 2019-07-15 Tom Tromey <tromey@adacore.com>
5006 * target.c (flash_erase_command): Use field_core_addr.
5007 * symfile.c (generic_load): Use field_core_addr.
5008 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5009 Use field_core_addr.
5010 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5013 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5015 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5016 value if its desired type is smaller than a CORE_ADDR and signed.
5018 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5020 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5021 of changes to field names, and use new is_reference field to
5022 decide if a property is a reference or not.
5023 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5025 (struct dwarf2_property_baton): Update header comment, rename
5026 'referenced_type' to 'property_type' and update comments.
5027 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5028 default property type, store in property baton, update to take
5029 accound of renamed field.
5030 (read_func_scope): Update call to attr_to_dynamic_prop.
5031 (read_array_type): Likewise.
5032 (dwarf2_per_cu_addr_sized_int_type): New function.
5033 (read_subrange_index_type): Move type finding code to
5034 dwarf2_per_cu_addr_sized_int_type.
5035 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5036 (dwarf2_per_cu_addr_type): New function.
5037 (set_die_type): Update calls to attr_to_dynamic_prop.
5039 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5041 * dwarf2read.c (read_subrange_index_type): New function.
5042 (read_subrange_type): Move code into new function and call it.
5043 * gdbtypes.c (create_range_type): Add some asserts.
5045 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5047 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5048 update return statements.
5049 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5050 declaration, and update comment to match.
5051 * gdbtypes.c (resolve_dynamic_array): Update call to
5052 dwarf2_evaluate_property to match new return type.
5054 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5056 * valarith.c (value_subscripted_rvalue): Change lowerbound
5057 parameter type from int to LONGEST.
5058 * value.h (value_subscripted_rvalue): Likewise in declaration.
5060 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5062 * cli/cli-utils.c (info_print_command_completer): New function.
5063 * cli/cli-utils.h: Add 'completer.h' include, and forward
5064 declaration for 'struct cmd_list_element'.
5065 (info_print_command_completer): Declare.
5066 * stack.c (_initialize_stack): Add completer for 'info locals' and
5068 * symtab.c (_initialize_symtab): Add completer for 'info
5069 variables' and 'info functions'.
5070 * NEWS: Mention completion for additional info commands.
5072 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5074 * cli/cli-utils.c (extract_info_print_args): Delete.
5075 (extract_arg_maybe_quoted): Delete.
5076 (info_print_options_defs): New variable.
5077 (make_info_print_options_def_group): New function.
5078 (extract_info_print_options): Define new function.
5079 * cli/cli-utils.h (extract_info_print_args): Delete.
5080 (struct info_print_options): New structure.
5081 (extract_info_print_options): Declare new function.
5082 * stack.c (info_locals_command): Update to use new
5083 extract_info_print_options, also add a header comment.
5084 (info_args_command): Likewise.
5085 * symtab.c (info_variables_command): Likewise.
5086 (info_functions_command): Likewise.
5088 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5090 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5091 to extract string arguments.
5092 * common/common-utils.c (extract_string_maybe_quoted): New function.
5093 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5095 2019-07-11 Tom Tromey <tromey@adacore.com>
5097 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5098 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5099 * top.h (gdbinit): Don't declare.
5100 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5102 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5103 * top.c (gdb_init): Don't call init_cli_cmds.
5105 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5107 2019-07-11 Tom Tromey <tromey@adacore.com>
5109 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5110 after it has been moved.
5112 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5114 * valops.c (value_must_coerce_to_target): Change return type to
5116 * value.h (value_must_coerce_to_target): Likewise.
5118 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5120 * breakpoint.c (is_hardware_watchpoint): Remove
5121 forward-declaration.
5122 (is_masked_watchpoint): Change return type to bool.
5123 (is_tracepoint): Likewise.
5124 (is_breakpoint): Likewise.
5125 (is_hardware_watchpoint): Likewise.
5126 (is_watchpoint): Likewise.
5127 (is_no_memory_software_watchpoint): Likewise.
5128 (is_catchpoint): Likewise.
5129 (breakpoint_1): Make FILTER parameter's return type bool.
5130 is_masked_watchpoint): Change return type to bool.
5131 (save_breakpoints): Make FILTER parameter's return type bool.
5132 * breakpoint.h (is_breakpoint): Change return type to bool.
5133 (is_watchpoint): Likewise.
5134 (is_catchpoint): Likewise.
5135 (is_tracepoint): Likewise.
5137 2019-07-10 Tom Tromey <tom@tromey.com>
5139 * defs.h: Don't include gdbarch.h.
5140 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5141 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5142 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5143 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5144 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5145 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5146 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5147 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5148 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5149 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5150 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5151 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5152 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5153 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5154 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5155 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5156 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5157 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5158 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5159 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5160 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5161 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5162 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5163 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5164 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5165 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5166 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5168 2019-07-10 Tom Tromey <tromey@adacore.com>
5170 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5171 * breakpoint.c (init_ada_exception_breakpoint): Register as
5173 (print_one_breakpoint_location, print_one_breakpoint): Use
5174 is_ada_exception_catchpoint.
5175 * ada-lang.c (class ada_catchpoint_location): Pass
5176 bp_loc_software_breakpoint to bp_location constructor.
5177 (is_ada_exception_catchpoint): New function.
5179 2019-07-10 Tom Tromey <tromey@adacore.com>
5181 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5183 (struct arm_exidx_entry): New method operator<.
5184 (struct arm_exidx_data) <section_maps>: Change type.
5185 (arm_exidx_data_free): Remove.
5186 (arm_exidx_data_key): Change type. Move lower.
5187 (arm_exidx_new_objfile): Update.
5188 (arm_compare_exidx_entries): Remove.
5189 (arm_find_exidx_entry, _initialize_arm_tdep)
5191 2019-07-10 Tom Tromey <tromey@adacore.com>
5193 * solib-spu.c (ocl_program_data_key): Change type.
5194 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5197 2019-07-10 Tom Tromey <tromey@adacore.com>
5199 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5200 (struct solib_aix_inferior_data) <library_list>: Change type.
5201 (solib_aix_inferior_data_handle): Change type.
5202 (get_solib_aix_inferior_data): Update.
5203 (solib_aix_free_library_list): Remove.
5204 (library_list_start_library): Update.
5205 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5207 (solib_aix_get_library_list)
5208 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5209 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5211 2019-07-10 Tom Tromey <tromey@adacore.com>
5213 * solib-dsbt.c (struct dsbt_info): Add initializers.
5214 (solib_dsbt_pspace_data): Change type.
5215 (dsbt_pspace_data_cleanup): Remove.
5216 (get_dsbt_info, _initialize_dsbt_solib): Update.
5218 2019-07-10 Tom Tromey <tromey@adacore.com>
5220 * spu-tdep.c (spu_overlay_data): Change type.
5221 (spu_get_overlay_table, spu_overlay_new_objfile)
5222 (_initialize_spu_tdep): Update.
5224 2019-07-10 Tom Tromey <tromey@adacore.com>
5226 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5228 (dbx_objfile_data_key): Change type and declare later.
5229 (DBX_SYMFILE_INFO): Rewrite.
5230 * dbxread.c (dbx_objfile_data_key): Change type.
5231 (dbx_symfile_init): Update.
5232 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5233 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5234 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5236 2019-07-10 Tom Tromey <tromey@adacore.com>
5238 * jit.c (jit_program_space_key): Change type. Move lower.
5239 (get_jit_program_space_data): Update.
5240 (jit_program_space_data_cleanup): Remove.
5241 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5243 (struct jit_program_space_data): Add initializers.
5245 2019-07-10 Tom Tromey <tromey@adacore.com>
5247 * solib-darwin.c (struct darwin_info): Add initializers.
5248 (solib_darwin_pspace_data): Change type.
5249 (darwin_pspace_data_cleanup): Remove.
5250 (get_darwin_info, _initialize_darwin_solib): Update.
5252 2019-07-10 Tom Tromey <tromey@adacore.com>
5254 * remote-sim.c (struct sim_inferior_data): Add initializers,
5255 constructor, and destructor.
5256 (sim_inferior_data_key): Change type. Move lower.
5257 (check_for_duplicate_sim_descriptor): Update.
5258 (get_sim_inferior_data): Use new. Update.
5259 (~sim_inferior_data_cleanup): Rename from
5260 sim_inferior_data_cleanup. Simplify.
5261 (gdbsim_close_inferior, simulator_command)
5262 (sim_command_completer, _initialize_remote_sim): Update.
5263 (next_pid, INITIAL_PID): Move earlier.
5265 2019-07-10 Tom Tromey <tromey@adacore.com>
5267 * python/python-internal.h (create_thread_object): Return
5269 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5270 * python/py-inferior.c (struct threadlist_entry): Add
5272 <thread_obj>: Now a gdbpy_ref.
5273 (thread_to_thread_object): Update.
5274 (add_thread_object): Use new.
5275 (delete_thread_object): Use delete.
5276 (infpy_threads): Update.
5277 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5280 2019-07-10 Tom Tromey <tromey@adacore.com>
5282 * valops.c (value_cast): Specialize error message for Ada.
5284 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5286 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5288 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5290 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5291 bpstat_should_step): Return bool, adjust comments.
5292 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5293 bpstat_should_step): Likewise.
5295 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5297 * features/Makefile: Use feature target descriptions for Arm.
5298 * features/arm/arm-core.c: Generate new file.
5299 * features/arm/arm-fpa.c: Likewise.
5300 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5301 * features/arm/arm-m-profile.c: Likewise.
5302 * features/arm/arm-vfpv2.c: Likewise.
5303 * features/arm/arm-vfpv3.c: Likewise.
5304 * features/arm/xscale-iwmmxt.c: Likewise.
5305 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5307 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5309 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5312 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5314 * features/aarch64-pauth.c: Regenerate.
5316 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5318 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5320 (bpstat_what): Use false instead of 0.
5322 2019-07-09 Pedro Alves <palves@redhat.com>
5324 * break-catch-throw.c (is_exception_catchpoint): New.
5325 * breakpoint.c (print_one_breakpoint_location): New parameter
5326 'raw_loc'. Handle it. Use
5327 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5328 looking at the breakpoint's type.
5329 (print_one_breakpoint): If handling "maint info breakpoints", also
5330 print locations of exception catchpoints.
5331 * breakpoint.h (is_exception_catchpoint): Declare.
5333 2019-07-09 Pedro Alves <palves@redhat.com>
5335 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5337 (allocate_location_exception_catchpoint): New.
5338 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5339 (initialize_throw_catchpoint_ops): Install
5340 allocate_location_exception_catchpoint as allocate_location
5342 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5343 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5345 (breakpoint_address_is_meaningful): Delete.
5346 (bl_address_is_meaningful): New.
5347 (breakpoint_locations_match): Adjust comment.
5348 (bp_location_from_bp_type): New, factored out of...
5349 (bp_location::bp_location(breakpoint *)): ... this.
5350 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5352 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5353 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5354 breakpoint_address_is_meaningful.
5355 (bp_locations_compare): Adjust comment.
5356 (update_global_location_list): Use bl_address_is_meaningful
5357 instead of breakpoint_address_is_meaningful.
5358 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5360 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5361 * python/py-breakpoint.c (bppy_get_location): No longer check
5362 whether location is null.
5364 2019-07-09 Pedro Alves <palves@redhat.com>
5367 * breakpoint.c (print_one_breakpoint_location): Remove
5368 single-location assert.
5370 2019-07-09 Tom Tromey <tom@tromey.com>
5372 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5373 * configure: Rebuild.
5374 * configure.ac: Change common to gdbsupport.
5375 * gdbsupport: Rename from common.
5376 * acinclude.m4: Change common to gdbsupport.
5377 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5378 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5380 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5381 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5382 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5383 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5384 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5385 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5386 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5387 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5388 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5389 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5390 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5391 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5392 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5393 coff-pe-read.c, command.h, compile/compile-c-support.c,
5394 compile/compile-c.h, compile/compile-cplus-symbols.c,
5395 compile/compile-cplus-types.c, compile/compile-cplus.h,
5396 compile/compile-loc2c.c, compile/compile.c, completer.c,
5397 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5398 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5399 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5400 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5401 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5402 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5403 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5404 features/aarch64-core.c, features/aarch64-fpu.c,
5405 features/aarch64-pauth.c, features/aarch64-sve.c,
5406 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5407 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5408 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5409 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5410 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5411 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5412 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5413 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5414 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5415 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5416 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5417 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5418 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5419 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5420 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5421 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5422 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5423 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5424 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5425 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5426 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5427 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5428 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5429 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5430 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5431 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5432 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5433 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5434 minsyms.c, mips-linux-tdep.c, namespace.h,
5435 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5436 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5437 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5438 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5439 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5440 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5441 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5442 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5443 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5444 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5445 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5446 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5447 procfs.c, producer.c, progspace.h, psymtab.h,
5448 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5449 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5450 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5451 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5452 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5453 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5454 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5455 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5456 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5457 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5458 target-memory.c, target.c, target.h, target/waitstatus.c,
5459 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5460 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5461 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5462 unittests/array-view-selftests.c,
5463 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5464 unittests/common-utils-selftests.c,
5465 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5466 unittests/format_pieces-selftests.c,
5467 unittests/function-view-selftests.c,
5468 unittests/lookup_name_info-selftests.c,
5469 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5470 unittests/mkdir-recursive-selftests.c,
5471 unittests/observable-selftests.c,
5472 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5473 unittests/parse-connection-spec-selftests.c,
5474 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5475 unittests/scoped_fd-selftests.c,
5476 unittests/scoped_mmap-selftests.c,
5477 unittests/scoped_restore-selftests.c,
5478 unittests/string_view-selftests.c, unittests/style-selftests.c,
5479 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5480 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5481 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5482 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5483 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5484 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5486 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5488 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5490 (decode_digits_ordinary): Set explicit_line field in sal.
5491 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5492 symtab_and_line that was set on an explicit line number in
5493 assembler code. Do always update the recorded symtab and line if
5494 we do skip the prologue.
5496 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5498 * breakpoint.c (set_breakpoint_location_function): Remove
5499 explicit_loc parameter.
5500 (momentary_breakpoint_from_master): Update call to
5501 set_breakpoint_location_function.
5502 (add_location_to_breakpoint): Likewise.
5504 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5506 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5507 required features based on default bfd type when no specific bfd
5510 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5512 * NEWS: Mention that GDB printf and eval commands can now print
5513 C-style and Ada-style convenience var strings without
5514 calling the inferior.
5515 * printcmd.c (printf_c_string): Locally print GDB internal var
5516 instead of transiting via the inferior.
5517 (printf_wide_c_string): Likewise.
5519 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5521 PR breakpoints/25011
5522 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5524 2019-07-04 Tom Tromey <tom@tromey.com>
5527 * tui/tui-winsource.c (tui_clear_source_content): Update.
5528 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5529 (tui_update_breakpoint_info): Update.
5530 (tui_set_exec_info_content): Update.
5531 * tui/tui-source.c (tui_set_source_content_nil): Update.
5532 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5534 * tui/tui-data.h (enum tui_bp_flag): New.
5535 (tui_bp_flags): New enum flags type.
5536 (struct tui_source_element) <break_mode>: Change type. Rename
5538 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5539 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5541 * tui/tui-winsource.h: Fix comment.
5543 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5545 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5546 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5547 (store_fpregs_to_thread)
5548 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5549 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5550 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5551 (IWMMXT_REGS_SIZE): Add define.
5552 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5553 (fetch_vfp_regs, store_vfp_regs)
5554 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5555 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5557 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5559 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5561 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5562 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5563 (ARM_INT_REGISTER_SIZE): ...to this.
5564 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5565 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5566 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5567 (arm_linux_collect_gregset, supply_nwfpe_register)
5568 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5570 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5571 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5572 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5573 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5574 (arm_return_in_memory, arm_store_return_value)
5575 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5576 (arm_record_ld_st_multiple): Likewise.
5577 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5578 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5580 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5582 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5583 AARCH64_DISPLACED_MODIFIED_INSNS.
5584 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5585 (aarch64_displaced_step_copy_insn): Likewise.
5586 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5587 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5588 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5589 ARM_DISPLACED_MODIFIED_INSNS.
5590 * arm-tdep.c (arm_gdbarch_init): Likewise.
5591 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5592 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5593 (struct arm_displaced_step_closure): Use
5594 ARM_DISPLACED_MODIFIED_INSNS.
5596 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5598 * features/Makefile: Remove unused xml files.
5599 * features/aarch64.xml: Remove.
5600 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5601 * features/i386/amd64-avx-avx512.xml: Remove.
5602 * features/i386/amd64-avx-linux.xml: Remove.
5603 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5604 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5605 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5606 * features/i386/amd64-avx-mpx.xml: Remove.
5607 * features/i386/amd64-avx.xml: Remove.
5608 * features/i386/amd64-linux.xml: Remove.
5609 * features/i386/amd64-mpx-linux.xml: Remove.
5610 * features/i386/amd64-mpx.xml: Remove.
5611 * features/i386/amd64.xml: Remove.
5612 * features/i386/i386-avx-avx512-linux.xml: Remove.
5613 * features/i386/i386-avx-avx512.xml: Remove.
5614 * features/i386/i386-avx-linux.xml: Remove.
5615 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5616 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5617 * features/i386/i386-avx-mpx-linux.xml: Remove.
5618 * features/i386/i386-avx-mpx.xml: Remove.
5619 * features/i386/i386-avx.xml: Remove.
5620 * features/i386/i386-linux.xml: Remove.
5621 * features/i386/i386-mmx-linux.xml: Remove.
5622 * features/i386/i386-mmx.xml: Remove.
5623 * features/i386/i386-mpx-linux.xml: Remove.
5624 * features/i386/i386-mpx.xml: Remove.
5625 * features/i386/i386.xml: Remove.
5626 * features/i386/x32-avx-avx512-linux.xml: Remove.
5627 * features/i386/x32-avx-linux.xml: Remove.
5628 * features/i386/x32-linux.xml: Remove.
5630 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5632 * regformats/aarch64.dat: Remove.
5633 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5634 * regformats/i386/amd64-avx-linux.dat: Remove.
5635 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5636 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5637 * regformats/i386/amd64-linux.dat: Remove.
5638 * regformats/i386/amd64-mpx-linux.dat: Remove.
5639 * regformats/i386/amd64.dat: Remove.
5640 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5641 * regformats/i386/i386-avx-linux.dat: Remove.
5642 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5643 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5644 * regformats/i386/i386-linux.dat: Remove.
5645 * regformats/i386/i386-mmx-linux.dat: Remove.
5646 * regformats/i386/i386-mpx-linux.dat: Remove.
5647 * regformats/i386/i386.dat: Remove.
5648 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5649 * regformats/i386/x32-avx-linux.dat: Remove.
5650 * regformats/i386/x32-linux.dat: Remove.
5652 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5654 * aarch64-tdep.c: Remove xml self tests.
5655 * amd64-linux-tdep.c: Likewise.
5656 * amd64-tdep.c: Likewise.
5657 * i386-linux-tdep.c: Likewise.
5658 * i386-tdep.c: Likewise.
5660 2019-07-03 Pedro Alves <palves@redhat.com>
5663 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5664 (pipe_cmd_option_defs): New.
5665 (make_pipe_cmd_options_def_group): New.
5666 (pipe_command): Use gdb::option::process_options.
5667 (pipe_command_completer): New function.
5668 (_initialize_cli_cmds): Install completer for "pipe" command.
5670 2019-07-03 Pedro Alves <palves@redhat.com>
5672 * cli/cli-option.c (union option_value) <string>: New field.
5673 (struct option_def_and_value): Add ctor, move ctor, dtor and
5674 use DISABLE_COPY_AND_ASSIGN.
5675 (option_def_and_value::clear_value): New.
5676 (parse_option, save_option_value_in_ctx, get_val_type_str)
5677 (add_setshow_cmds_for_options): Handle var_string.
5678 * cli-option.h (union option_def::var_address) <string>: New
5680 (struct string_option_def): New.
5681 * maint-test-options.c (struct test_options_opts): Add default
5682 ctor and use DISABLE_COPY_AND_ASSIGN.
5683 <string_opt>: New field.
5684 (test_options_opts::~test_options_opts): New.
5685 (test_options_opts::dump): Also dump "-string".
5686 (test_options_option_defs): Install "string.
5688 2019-07-03 Pedro Alves <palves@redhat.com>
5690 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5691 option_value with a null enumeration.
5692 (complete_options): Save the option values in the context.
5693 (save_option_value_in_ctx): New, factored out from ...
5694 (process_options): ... here.
5695 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5697 * maint-test-options.c (test_options_opts::dump): New, factored
5699 (maintenance_test_options_command_mode): ... here.
5700 (maintenance_test_options_command_completion_result): Delete.
5701 (maintenance_test_options_command_completion_text): Update
5703 (maintenance_show_test_options_completion_result): Change
5704 prototype. Just print
5705 maintenance_test_options_command_completion_text.
5706 (save_completion_result): New.
5707 (maintenance_test_options_completer_mode): Pass options context to
5708 complete_options, and then save a dump.
5709 (_initialize_maint_test_options): Use add_cmd to install "maint
5710 show test-options-completion-result".
5712 2019-07-03 Pedro Alves <palves@redhat.com>
5714 * NEWS (New commands): Mention "with" and "maint with".
5715 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5716 (with_command, with_command_completer): New.
5717 (pipe_command): Adjust to new repeat_previous
5719 (_initialize_cli_cmds): Install the "with" command and its "w"
5721 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5723 * cli/cli-setshow.c (parse_cli_var_uinteger)
5724 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5725 argument strings for all var_types.
5726 (get_setshow_command_value_string): New, factored out from ...
5727 (do_show_command): ... this.
5728 * cli/cli-setshow.h: Include <string>.
5729 (get_setshow_command_value_string): Declare.
5730 * command.h (repeat_previous): Now returns const char *. Adjust
5732 * maint.c: Include "cli/cli-cmds.h".
5733 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5734 (_initialize_maint_cmds): Register the "maintenance with" command.
5735 * top.c (repeat_previous): Move bits from pipe_command here:
5736 Return the saved command line, if any; error out if there's no
5737 command to relaunch.
5739 2019-07-03 Pedro Alves <palves@redhat.com>
5741 * NEWS (New commands): Mention "maint set/show test-settings"
5742 instead of "maint test-settings".
5743 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5744 (maintenance_test_settings_set_list): Rename to ...
5745 (maintenance_set_test_settings_list): ... this.
5746 (maintenance_test_settings_show_list): Rename to ...
5747 (maintenance_show_test_settings_list): ... this.
5748 (maintenance_test_settings_cmd): Delete.
5749 (maintenance_test_settings_set_cmd): ...
5750 (maintenance_set_test_settings_cmd): ... this.
5751 (maintenance_test_settings_show_cmd): ...
5752 (maintenance_show_test_settings_cmd): ... this.
5753 (maintenance_test_settings_show_value_cmd):
5754 (maintenance_show_test_settings_value_cmd): ... this.
5755 (_initialize_maint_test_settings): No longer install the "maint
5756 test-settings" prefix command. Rename "maint test-settings set"
5757 to "maint set test-settings", and "maint test-settings show" to
5758 "maint show test-settings". Adjust all subcommands.
5760 2019-07-03 Pedro Alves <palves@redhat.com>
5762 * maint-test-settings.c: Fix file's intro comment. Replace all
5763 references to "test-options" with references to "test-settings",
5766 2019-07-03 Pedro Alves <palves@redhat.com>
5768 * maint-test-settings.c (maintenance_test_settings_xxx)
5769 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5771 (maintenance_test_settings_enums): Use them.
5772 (maintenance_test_settings_enum): Default to
5773 maintenance_test_settings_xxx.
5774 (_initialize_maint_test_settings): Initialize
5775 MAINTENANCE_TEST_SETTINGS_FILENAME.
5777 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5779 * breakpoint.h (remove_breakpoints_inf): Change return type to
5780 void, move function documentation here.
5781 * breakpoint.c (remove_breakpoints_inf): Change return type to
5782 void, move function documentation to header.
5784 2019-07-02 Pedro Alves <palves@redhat.com>
5786 * NEWS (Completion improvements): Mention "info threads".
5787 * thread.c (struct info_threads_opts, info_threads_option_defs)
5788 (make_info_threads_options_def_group): New.
5789 (info_threads_command): Use gdb::option::process_options.
5790 (info_threads_command_completer): New.
5791 (_initialize_thread): Use gdb::option::build_help to build the
5792 help text for "info threads".
5794 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5796 * defs.h (generic_load): Move from here...
5797 * symfile.h (generic_load): ... to here. Rename name parameter
5799 * symfile.c (generic_load): Add comment.
5801 2019-07-01 Tom Tromey <tromey@adacore.com>
5804 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5805 declaration of without_params. Fix formatting.
5807 2019-07-01 Tom Tromey <tromey@adacore.com>
5809 * ada-exp.y (find_primitive_type): Update.
5810 * ada-lang.h (ada_lookup_symbol): Update.
5811 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5813 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5815 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5817 PR breakpoints/24541
5818 * gdbarch.c: Regenerate.
5819 * gdbarch.h: Regenerate.
5820 * gdbarch.sh: Add 'stap_adjust_register'.
5821 * i386-tdep.c: Include '<unordered_set>'.
5822 (i386_stap_adjust_register): New function.
5823 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5824 * stap-probe.c (stap_parse_register_operand): Call
5825 'gdbarch_stap_adjust_register'.
5827 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5830 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5831 * python/python.c (do_start_initialization): Use 'xmalloc'
5832 instead of 'PyMem_Malloc'.
5834 2019-06-28 Tom Tromey <tromey@adacore.com>
5836 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5839 2019-06-27 Tom Tromey <tromey@adacore.com>
5841 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5843 (arm_find_mapping_symbol, arm_record_special_symbol)
5844 (_initialize_arm_tdep): Update.
5845 (arm_objfile_data_free): Remove.
5847 2019-06-27 Tom Tromey <tromey@adacore.com>
5849 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5850 to cp_print_static_field.
5852 2019-06-26 Tom Tromey <tromey@adacore.com>
5854 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5855 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5858 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5860 * features/aarch64-core.c (create_feature_aarch64_core):
5862 * features/aarch64-core.xml: Add cpsr flags.
5864 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5866 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5867 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5869 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5871 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5873 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5875 (arm_record_special_symbol): Don't insert new symbol in sorted
5876 position, push it at the end.
5878 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5880 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5881 (arm_mapping_symbol_s): Remove.
5882 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5883 (arm_mapping_symbol_vec): New typedef.
5884 (struct arm_per_objfile): Add constructor.
5885 <section_maps>: Change type to
5886 std::unique_ptr<arm_mapping_symbol_vec[]>.
5887 (arm_compare_mapping_symbols): Remove.
5888 (arm_find_mapping_symbol): Adjust to section_maps type change.
5889 (arm_objfile_data_free): Call delete on arm_per_objfile.
5890 (arm_record_special_symbol): Adjust to section_maps type change.
5891 Allocate arm_per_objfile with new.
5893 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5895 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5896 with the command prefix.
5898 2019-06-25 Tom Tromey <tom@tromey.com>
5900 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5901 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5903 2019-06-25 Tom Tromey <tom@tromey.com>
5905 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5907 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5910 2019-06-25 Tom Tromey <tom@tromey.com>
5912 * tui/tui-winsource.c
5913 (tui_source_window_base::set_is_exec_point_at): Add check against
5916 2019-06-25 Tom Tromey <tom@tromey.com>
5918 * tui/tui-source.c (tui_set_source_content): Don't check before
5920 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5922 2019-06-25 Tom Tromey <tom@tromey.com>
5924 * tui/tui-winsource.h (tui_update_source_window_as_is)
5925 (tui_alloc_source_buffer, tui_line_is_displayed)
5926 (tui_addr_is_displayed): Change type of win_info.
5927 * tui/tui-winsource.c (tui_update_source_window_as_is)
5928 (tui_clear_source_content, tui_show_source_line)
5929 (tui_show_source_content, tui_source_window_base::refill)
5930 (tui_source_window_base::set_is_exec_point_at)
5931 (tui_source_window_base::set_is_exec_point_at)
5932 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5933 (tui_alloc_source_buffer, tui_line_is_displayed)
5934 (tui_addr_is_displayed): Change type of win_info. Update.
5935 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5936 (tui_source_window_base::do_make_visible_with_new_height):
5938 * tui/tui-source.c (tui_set_source_content)
5939 (tui_set_source_content_nil)
5940 (tui_source_window::do_scroll_vertical): Update.
5941 * tui/tui-layout.c (show_layout): Update.
5942 * tui/tui-disasm.c (tui_set_disassem_content)
5943 (tui_disasm_window::do_scroll_vertical): Update.
5944 * tui/tui-data.h (tui_win_content): Remove.
5945 (struct tui_gen_win_info) <content, content_size>: Remove.
5946 (struct tui_source_element): Add initializers and destructor.
5947 (union tui_which_element, struct tui_win_element): Remove.
5948 (struct tui_source_window_base) <content>: New field.
5949 (struct tui_data_window): Remove destructor.
5950 (tui_alloc_content, tui_free_win_content)
5951 (tui_free_all_source_wins_content): Don't declare.
5952 * tui/tui-data.c (tui_initialize_static_data): Update.
5953 (init_content_element, tui_alloc_content): Remove.
5954 (~tui_gen_win_info): Update.
5955 (~tui_data_window, tui_free_all_source_wins_content)
5956 (tui_free_win_content, free_content, free_content_elements):
5959 2019-06-25 Tom Tromey <tom@tromey.com>
5961 * tui/tui-winsource.h (tui_clear_source_content)
5962 (tui_erase_source_content, tui_show_source_content): Change type
5964 * tui/tui-winsource.c (tui_clear_source_content)
5965 (tui_erase_source_content, tui_show_source_content): Change type
5967 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5968 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5970 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5972 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5974 2019-06-25 Tom Tromey <tom@tromey.com>
5976 * tui/tui-winsource.c (tui_clear_source_content)
5977 (tui_source_window_base::set_is_exec_point_at): Update.
5978 * tui/tui-source.c (tui_set_source_content_nil): Update.
5979 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5981 * tui/tui-data.c (init_content_element): Update.
5983 2019-06-25 Tom Tromey <tom@tromey.com>
5985 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5986 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5987 * tui/tui-layout.c (init_and_make_win): Update.
5988 * tui/tui.h (enum tui_win_type): Update.
5989 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5990 tui_win_is_auxillary.
5991 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5992 tui_win_is_auxillary.
5994 2019-06-25 Tom Tromey <tom@tromey.com>
5996 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5997 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5998 (tui_delete_data_content_windows, tui_display_all_data)
5999 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6001 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6002 * tui/tui-regs.c (tui_last_regs_line_no)
6003 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6004 (tui_show_registers): Update.
6005 (tui_show_register_group): Return void. Update.
6006 (tui_display_registers_from, tui_display_reg_element_at_line)
6007 (tui_display_registers_from_line, tui_check_register_values):
6009 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6011 (struct tui_data_window) <regs_content>: Now a std::vector.
6012 <regs_content_count>: Remove.
6013 (tui_add_content_elements, tui_free_data_content): Don't declare.
6014 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6015 (init_content_element): Remove DATA_WIN case. Add assert.
6016 (tui_add_content_elements): Remove.
6017 (tui_data_window): Update.
6018 (tui_free_data_content): Remove.
6019 (free_content_elements): Remove DATA_WIN case.
6021 2019-06-25 Tom Tromey <tom@tromey.com>
6023 * tui/tui-data.c (tui_data_item_window): Update.
6024 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6025 * tui/tui-windata.c (tui_display_all_data)
6026 (tui_display_data_from_line): Update.
6027 (tui_check_data_values): Remove.
6028 * tui/tui-regs.c (tui_show_register_group)
6029 (tui_display_reg_element_at_line): Update.
6030 * tui/tui-hooks.c (tui_register_changed)
6031 (tui_refresh_frame_and_register_information): Call
6032 tui_check_register_values.
6033 * tui/tui-data.h (struct tui_data_window) <data_content,
6034 data_content_count, data_type>: Remove.
6035 (enum tui_data_type): Remove.
6037 * tui/tui-data.c (tui_data_window::clear_detail)
6038 (~tui_data_window): Update.
6040 2019-06-25 Tom Tromey <tom@tromey.com>
6042 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6044 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6045 Rename from tui_first_data_item_displayed. Update.
6046 (tui_data_window::refresh_all)
6047 (tui_data_window::do_scroll_vertical): Update.
6048 * tui/tui-data.h (struct tui_data_window)
6049 <first_data_item_displayed>: Declare new method.
6051 2019-06-25 Tom Tromey <tom@tromey.com>
6053 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6054 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6056 (tui_initialize_static_data): ...here.
6058 2019-06-25 Tom Tromey <tom@tromey.com>
6060 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6061 (tui_display_registers_from, tui_check_register_values): Update.
6062 (tui_display_register): Remove win_info parameter; update.
6063 (tui_get_register): Change type of parameters.
6064 * tui/tui-data.h (struct tui_data_element): Remove.
6065 (union tui_which_element) <data>: Remove.
6066 <data_window>: Change type.
6067 (struct tui_data_item_window): New.
6068 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6070 (~tui_data_item_window): New destructor.
6071 (free_content_elements): Remove DATA_ITEM_WIN case.
6073 2019-06-25 Tom Tromey <tom@tromey.com>
6075 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6078 2019-06-25 Tom Tromey <tom@tromey.com>
6080 * tui/tui-data.h (struct tui_command_element): Remove.
6081 (union tui_which_element) <command>: Remove.
6082 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6084 (free_content_elements): Remove CMD_WIN case.
6086 2019-06-25 Tom Tromey <tom@tromey.com>
6088 * tui/tui-layout.c (tui_set_layout): Update.
6089 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6090 * tui/tui-data.c (layout_def): Update.
6092 2019-06-25 Tom Tromey <tom@tromey.com>
6094 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6095 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6096 (tui_source_window_base::set_new_height): Update.
6097 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6099 (tui_set_locator_fullname, tui_set_locator_info)
6100 (tui_show_frame_info): Update.
6101 * tui/tui-source.c (tui_set_source_content)
6102 (tui_source_is_displayed): Update.
6103 * tui/tui-layout.c (show_source_disasm_command, show_data)
6104 (show_source_or_disasm_and_command): Update.
6105 * tui/tui-disasm.c (tui_set_disassem_content)
6106 (tui_get_begin_asm_address): Update.
6107 * tui/tui-data.h (struct tui_locator_element): Remove.
6108 (union tui_which_element) <locator>: Remove.
6109 (struct tui_locator_window): New.
6110 (tui_locator_win_info_ptr): Change return type.
6111 * tui/tui-data.c (_locator): Change type.
6112 (tui_locator_win_info_ptr): Change return type.
6113 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6114 (tui_alloc_content): Add assert.
6116 2019-06-25 Tom Tromey <tom@tromey.com>
6118 * tui/tui-winsource.c
6119 (tui_exec_info_window::maybe_allocate_content): New method.
6120 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6121 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6122 (make_source_or_disasm_window): Add cast.
6123 * tui/tui-data.h (union tui_which_element) <simple_string>:
6125 (struct tui_source_info): New.
6126 (struct tui_source_window_base) <execution_info>: Change type.
6127 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6128 case, and add assert.
6129 (tui_alloc_content): Add assert.
6131 2019-06-25 Tom Tromey <tom@tromey.com>
6133 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6134 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6135 * tui/tui-data.c (tui_alloc_win_info): Remove.
6137 2019-06-25 Tom Tromey <tom@tromey.com>
6139 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6140 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6143 2019-06-25 Tom Tromey <tom@tromey.com>
6145 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6146 make_visible_with_new_height method.
6147 (tui_win_info::make_visible_with_new_height): New method.
6148 (tui_source_window_base::do_make_visible_with_new_height)
6149 (tui_data_window::do_make_visible_with_new_height)
6150 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6151 (make_visible_with_new_height): Remove.
6152 (tui_resize_all, tui_adjust_win_heights): Use
6153 make_visible_with_new_height method.
6154 * tui/tui-data.h (struct tui_win_info)
6155 <do_make_visible_with_new_height, make_visible_with_new_height>:
6157 (struct tui_source_window_base, struct tui_data_window)
6158 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6161 2019-06-25 Tom Tromey <tom@tromey.com>
6163 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6165 (update_tab_width): Call update_tab_width method.
6166 * tui/tui-data.h (struct tui_win_info)
6167 (struct tui_source_window_base) <update_tab_width>: New methods.
6169 2019-06-25 Tom Tromey <tom@tromey.com>
6171 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6173 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6175 (tui_gen_win_info::make_visible): Update.
6176 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6178 * tui/tui-data.h (enum tui_box): New enum.
6179 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6181 2019-06-25 Tom Tromey <tom@tromey.com>
6183 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6184 init_and_make_win for EXEC_INFO_WIN.
6185 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6187 (struct tui_win_info) <~tui_win_info>: Inline.
6188 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6190 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6191 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6193 (tui_initialize_static_data): Update.
6194 (~tui_gen_win_info): Handle more cleanup here.
6195 (~tui_source_window_base): Delete "execution_info".
6196 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6198 2019-06-25 Tom Tromey <tom@tromey.com>
6200 * tui/tui-layout.c (make_command_window): Don't set
6202 (show_source_disasm_command): Call the reset method.
6203 (show_data): Don't set can_highlight. Call the reset method.
6204 (tui_gen_win_info::reset): Rename from init_gen_win_info
6205 (init_and_make_win): Simplify. Return tui_gen_win_info.
6206 (show_source_or_disasm_and_command): Call the reset method.
6207 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6208 (struct tui_cmd_window): Set can_highlight.
6210 2019-06-25 Tom Tromey <tom@tromey.com>
6212 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6214 (tui_make_visible, tui_make_invisible): Rewrite.
6215 (tui_win_info::make_visible): Remove.
6216 (tui_source_window_base::make_visible): Update.
6217 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6218 method. Moved from...
6219 (struct tui_win_info) <make_visible>: ...here.
6221 2019-06-25 Tom Tromey <tom@tromey.com>
6223 * tui/tui-winsource.c
6224 (tui_source_window_base::do_scroll_horizontal): Remove direction
6226 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6227 direction parameter.
6228 * tui/tui-win.c (tui_win_info::forward_scroll)
6229 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6230 (tui_win_info::right_scroll): Update.
6231 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6232 direction parameter.
6233 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6234 direction parameter.
6235 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6236 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6237 Remove direction parameter.
6238 (struct tui_source_window_base, struct tui_source_window)
6239 (struct tui_disasm_window, struct tui_data_window)
6240 (struct tui_cmd_window): Update.
6242 2019-06-25 Tom Tromey <tom@tromey.com>
6244 * tui/tui-winsource.h (tui_set_exec_info_content)
6245 (tui_show_exec_info_content, tui_erase_exec_info_content)
6246 (tui_clear_exec_info_content, tui_update_exec_info): Change
6247 argument to tui_source_window_base.
6248 * tui/tui-winsource.c (tui_set_exec_info_content)
6249 (tui_show_exec_info_content, tui_erase_exec_info_content)
6250 (tui_clear_exec_info_content, tui_update_exec_info): Change
6251 argument to tui_source_window_base.
6253 2019-06-25 Tom Tromey <tom@tromey.com>
6255 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6256 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6258 2019-06-25 Tom Tromey <tom@tromey.com>
6260 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6263 2019-06-25 Tom Tromey <tom@tromey.com>
6265 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6267 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6269 * tui/tui-source.c (tui_set_source_content): Update.
6270 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6272 2019-06-25 Tom Tromey <tom@tromey.com>
6274 * tui/tui-win.c (window_name_completer, tui_set_focus)
6275 (tui_all_windows_info): Use name method.
6276 * tui/tui-data.h (struct tui_gen_win_info)
6277 (struct tui_source_window, struct tui_disasm_window)
6278 (struct tui_data_window, struct tui_cmd_window) <name>: New
6280 (tui_win_name): Don't declare.
6281 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6282 (tui_win_name): Remove.
6284 2019-06-25 Tom Tromey <tom@tromey.com>
6286 * tui/tui-winsource.h (tui_update_source_window)
6287 (tui_update_source_window_as_is): Change parameter type.
6288 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6289 to be a tui_source_window_base.
6290 (tui_update_source_window_as_is): Likewise.
6291 * tui/tui-win.c (make_visible_with_new_height): Update.
6293 2019-06-25 Tom Tromey <tom@tromey.com>
6295 * tui/tui-winsource.c (tui_erase_source_content)
6296 (tui_show_source_content, tui_show_exec_info_content)
6297 (tui_erase_exec_info_content): Use refresh_window method.
6298 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6299 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6300 from tui_refresh_win.
6301 (tui_data_window::refresh_window): New method.
6302 (tui_win_info::refresh, tui_source_window_base::refresh)
6303 (tui_refresh_all): Use refresh_window method.
6304 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6306 * tui/tui-regs.c (tui_display_register): Call refresh_window
6308 * tui/tui-layout.c (show_source_disasm_command)
6309 (show_source_or_disasm_and_command): Call refresh_window method.
6310 * tui/tui-data.h (struct tui_gen_win_info)
6311 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6314 2019-06-25 Tom Tromey <tom@tromey.com>
6316 * tui/tui.c (tui_rl_other_window, tui_enable)
6317 (tui_is_window_visible, tui_get_command_dimension): Update.
6318 * tui/tui-winsource.c (tui_update_source_window_as_is)
6319 (tui_clear_source_content, tui_erase_source_content)
6320 (tui_show_source_line, tui_source_window_base::refill)
6321 (tui_source_window_base::do_scroll_horizontal)
6322 (tui_source_window_base::set_is_exec_point_at)
6323 (tui_update_breakpoint_info, tui_set_exec_info_content)
6324 (tui_alloc_source_buffer, tui_line_is_displayed)
6325 (tui_addr_is_displayed): Update.
6326 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6327 (tui_check_and_display_highlight_if_needed)
6328 (tui_win_info::make_visible, tui_win_info::refresh)
6329 (tui_refresh_all): Update.
6330 * tui/tui-windata.c (tui_first_data_item_displayed)
6331 (tui_delete_data_content_windows, tui_erase_data_content)
6332 (tui_display_all_data, tui_data_window::refresh_all)
6333 (tui_check_data_values): Update.
6334 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6335 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6336 (tui_win_info::backward_scroll, tui_refresh_all_win)
6337 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6338 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6339 (tui_source_window_base::set_new_height)
6340 (tui_data_window::set_new_height)
6341 (make_invisible_and_set_new_height)
6342 (make_visible_with_new_height, new_height_ok)
6343 (parse_scrolling_args): Update.
6344 * tui/tui-stack.c (tui_show_frame_info): Update.
6345 * tui/tui-source.c (tui_set_source_content)
6346 (tui_set_source_content_nil, tui_source_is_displayed)
6347 (tui_source_window::do_scroll_vertical): Update.
6348 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6349 (tui_display_registers_from, tui_display_reg_element_at_line)
6350 (tui_check_register_values, tui_reg_command): Update.
6351 * tui/tui-layout.c (tui_default_win_height)
6352 (show_source_disasm_command, show_data, init_and_make_win)
6353 (show_source_or_disasm_and_command): Update.
6354 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6355 (tui_redisplay_readline, tui_mld_flush)
6356 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6358 * tui/tui-disasm.c (tui_set_disassem_content)
6359 (tui_disasm_window::do_scroll_vertical): Update.
6360 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6362 (struct tui_win_info): Derive from tui_gen_win_info.
6363 <~tui_win_info>: Mark as override.
6364 <generic>: Remove member.
6365 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6366 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6367 (~tui_data_window, ~tui_win_info)
6368 (tui_free_all_source_wins_content): Update.
6369 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6371 2019-06-25 Tom Tromey <tom@tromey.com>
6373 * tui/tui-layout.c (init_and_make_win): Use new.
6374 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6375 destructor, initializers.
6376 (tui_alloc_generic_win_info): Don't declare.
6377 * tui/tui-data.c (_locator): Add argument to constructor.
6378 (source_win, disasm_win): New globals.
6379 (exec_info): Remove.
6380 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6382 (tui_alloc_generic_win_info): Remove.
6383 (init_content_element): Use new.
6384 (tui_win_info::tui_win_info): Update.
6385 (free_content_elements) <case DATA_WIN>: Use delete.
6387 2019-06-25 Tom Tromey <tom@tromey.com>
6389 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6390 * tui/tui-windata.c (tui_first_data_item_displayed)
6391 (tui_delete_data_content_windows): Update.
6392 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6393 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6394 (tui_display_registers_from, tui_check_register_values): Update.
6395 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6397 * tui/tui-data.c (init_content_element): Update. Allocate the new
6399 (tui_free_data_content): Update.
6400 (free_content_elements) <case DATA_WIN>: Free the window.
6402 2019-06-25 Tom Tromey <tom@tromey.com>
6404 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6406 * tui/tui-layout.c (make_command_window)
6407 (show_source_disasm_command, show_data, init_and_make_win)
6408 (show_source_or_disasm_and_command): Update.
6409 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6411 <can_highight, is_highlighted>: Now bool.
6412 (tui_set_win_highlight): Don't declare.
6413 * tui/tui-data.c (tui_set_win_highlight): Remove.
6415 2019-06-25 Tom Tromey <tom@tromey.com>
6417 * tui/tui-wingeneral.c (make_visible): Remove check of window
6420 2019-06-25 Tom Tromey <tom@tromey.com>
6422 * tui/tui-win.c (tui_win_info::max_height)
6423 (tui_cmd_window::max_height): New methods.
6424 (new_height_ok): Call max_height.
6425 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6426 <max_height>: New method.
6428 2019-06-25 Tom Tromey <tom@tromey.com>
6430 * tui/tui-win.c (tui_source_window_base::set_new_height)
6431 (tui_data_window::set_new_height): New methods.
6432 (make_invisible_and_set_new_height): Call set_new_height method.
6433 * tui/tui-data.h (struct tui_win_info)
6434 (struct tui_source_window_base, struct tui_data_window)
6435 <set_new_height>: New method.
6437 2019-06-25 Tom Tromey <tom@tromey.com>
6439 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6440 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6441 tui_refresh_data_win.
6442 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6444 (tui_refresh_all_win): Call the refresh_all method.
6445 (tui_set_focus): Likewise.
6446 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6447 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6450 2019-06-25 Tom Tromey <tom@tromey.com>
6452 * tui/tui-winsource.h (tui_refill_source_window)
6453 (tui_set_is_exec_point_at): Don't declare.
6454 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6455 (tui_source_window_base::refill): Rename from
6456 tui_refill_source_window.
6457 (tui_source_window_base::do_scroll_horizontal): Update.
6458 (tui_source_window_base::set_is_exec_point_at): Rename from
6459 tui_set_is_exec_point_at.
6460 (tui_update_all_breakpoint_info): Update.
6461 * tui/tui-stack.c (tui_show_frame_info): Update.
6462 * tui/tui-layout.c (show_data): Add cast.
6463 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6464 * tui/tui-data.h (struct tui_source_window_base) <refill,
6465 set_is_exec_point_at>: New methods.
6466 (tui_source_windows, tui_add_to_source_windows): Update types.
6467 (tui_add_to_source_windows): Remove redundant declaration.
6468 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6469 (tui_source_windows): Change return type.
6470 (tui_clear_source_windows_detail): Update.
6471 (tui_add_to_source_windows): Change type of parameter.
6472 (tui_free_all_source_wins_content): Update.
6474 2019-06-25 Tom Tromey <tom@tromey.com>
6476 * tui/tui-wingeneral.c (tui_win_info::refresh)
6477 (tui_source_window_base::refresh): New methods.
6478 (tui_refresh_all): Call the refresh method.
6479 * tui/tui-data.h (struct tui_win_info)
6480 (struct tui_source_window_base) <refresh>: New method.
6482 2019-06-25 Tom Tromey <tom@tromey.com>
6484 * tui/tui.h (tui_is_window_visible): Return bool.
6485 * tui/tui.c (tui_is_window_visible): Return bool.
6486 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6487 (tui_make_visible, tui_make_invisible)
6488 (tui_win_info::make_visible)
6489 (tui_source_window_base::make_visible, make_all_visible)
6490 (tui_make_all_visible, tui_make_all_invisible): Update.
6491 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6492 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6494 (struct tui_win_info, struct tui_source_window_base)
6495 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6496 * tui/tui-data.c (tui_init_generic_part): Update.
6498 2019-06-25 Tom Tromey <tom@tromey.com>
6500 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6501 (tui_source_window_base::make_visible): New methods.
6502 (make_all_visible): Make method call.
6503 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6504 (struct tui_source_window_base, struct tui_cmd_window): Override
6506 (tui_win_is_source_type): Don't declare.
6507 * tui/tui-data.c (tui_win_is_source_type): Remove.
6509 2019-06-25 Tom Tromey <tom@tromey.com>
6511 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6514 2019-06-25 Tom Tromey <tom@tromey.com>
6516 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6517 Inline constructor. Add initializers for members.
6518 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6519 constructors; now inline in class.
6521 2019-06-25 Tom Tromey <tom@tromey.com>
6523 * tui/tui-regs.c (tui_show_registers): Update.
6524 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6526 * tui/tui-data.c (tui_data_window::clear_detail)
6527 (tui_data_window): Update.
6529 2019-06-25 Tom Tromey <tom@tromey.com>
6531 * tui/tui-windata.c (tui_display_all_data)
6532 (tui_display_data_from_line, tui_display_data_from)
6533 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6535 * tui/tui-regs.c (tui_last_regs_line_no)
6536 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6537 (tui_show_registers, tui_show_register_group)
6538 (tui_display_registers_from, tui_display_reg_element_at_line)
6539 (tui_display_registers_from_line, tui_check_register_values)
6540 (tui_reg_next, tui_reg_prev): Update.
6541 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6542 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6544 (struct tui_win_info) <detail>: Remove. Add new fields from
6546 (TUI_DATA_WIN): Add cast.
6547 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6548 (~tui_data_window): Simplify.
6550 2019-06-25 Tom Tromey <tom@tromey.com>
6552 * tui/tui-layout.c (show_source_disasm_command)
6553 (show_source_or_disasm_and_command): Update.
6554 * tui/tui-io.c (update_cmdwin_start_line)
6555 (tui_redisplay_readline): Update.
6556 * tui/tui-data.h (struct tui_command_info): Remove.
6557 (struct tui_win_info) <detail>: Remove command_info member.
6558 (struct tui_data_window) <start_line>: New member, from
6560 (TUI_CMD_WIN): Add casts.
6562 2019-06-25 Tom Tromey <tom@tromey.com>
6564 * tui/tui-winsource.c (tui_update_source_window)
6565 (tui_refill_source_window)
6566 (tui_source_window_base::do_scroll_horizontal)
6567 (tui_update_breakpoint_info, tui_set_exec_info_content)
6568 (tui_show_exec_info_content, tui_erase_exec_info_content)
6569 (tui_clear_exec_info_content): Update.
6570 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6572 * tui/tui-win.c (make_invisible_and_set_new_height)
6573 (make_visible_with_new_height): Update.
6574 * tui/tui-source.c (tui_set_source_content)
6575 (tui_show_symtab_source): Update.
6576 * tui/tui-layout.c (extract_display_start_addr)
6577 (show_source_disasm_command, show_data)
6578 (make_source_or_disasm_window)
6579 (show_source_or_disasm_and_command): Update.
6580 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6581 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6583 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6584 to tui_source_window_base.
6585 (struct tui_win_info) <detail>: Remove source_info member.
6586 (struct tui_source_window_base) <has_locator>: Inline.
6587 Move contents from tui_source_info; rename has_locator member to
6589 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6590 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6592 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6594 (tui_free_all_source_wins_content): Cast to
6595 tui_source_window_base.
6597 2019-06-25 Tom Tromey <tom@tromey.com>
6599 * tui/tui-win.c (make_invisible_and_set_new_height)
6600 (make_visible_with_new_height): Call has_locator method.
6601 * tui/tui-layout.c (show_source_disasm_command, show_data)
6602 (show_source_or_disasm_and_command): Update for bool change.
6603 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6604 (tui_win_info) <has_locator>: New method.
6605 (struct tui_source_window_base) <has_locator>: New method.
6606 (tui_win_has_locator): Don't declare.
6607 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6608 from tui_win_has_locator.
6609 (tui_source_window_base): Use false, not FALSE.
6611 2019-06-25 Tom Tromey <tom@tromey.com>
6613 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6614 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6615 clear_detail method directly.
6616 (tui_clear_win_detail): Remove.
6618 2019-06-25 Tom Tromey <tom@tromey.com>
6620 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6621 "this", not TUI_DISASM_WIN.
6623 2019-06-25 Tom Tromey <tom@tromey.com>
6625 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6627 * tui/tui-winsource.c
6628 (tui_source_window_base::do_scroll_horizontal): Rename from
6629 tui_horizontal_source_scroll.
6630 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6631 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6632 from tui_vertical_data_scroll.
6633 * tui/tui-win.h (tui_scroll): Don't declare.
6634 * tui/tui-win.c (tui_win_info::forward_scroll)
6635 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6636 (tui_win_info::right_scroll): Rename and update.
6637 (tui_scroll_forward_command, tui_scroll_backward_command)
6638 (tui_scroll_left_command, tui_scroll_right_command): Update.
6639 (tui_scroll): Remove.
6640 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6641 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6642 from tui_vertical_source_scroll.
6643 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6644 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6645 from tui_vertical_disassem_scroll.
6646 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6647 do_scroll_horizontal>: New methods.
6648 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6650 (struct tui_source_window_base): Add do_scroll_horizontal.
6651 (struct tui_source_window, struct tui_disasm_window): Add
6653 (struct tui_data_window, struct tui_cmd_window): Add
6654 do_scroll_horizontal and do_scroll_vertical.
6655 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6657 2019-06-25 Tom Tromey <tom@tromey.com>
6659 * tui/tui-data.h (struct tui_source_window_base): New struct.
6660 (struct tui_source_window): Derive from tui_source_window_base.
6661 (struct tui_disasm_window): New struct.
6662 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6663 from tui_source_window::clear_detail.
6664 (tui_source_window_base): Rename from tui_source_window.
6665 (~tui_source_window_base): Rename from ~tui_source_window.
6666 (tui_alloc_win_info): Create a tui_disasm_window.
6668 2019-06-25 Tom Tromey <tom@tromey.com>
6670 * tui/tui-data.h (struct tui_source_window)
6671 (struct tui_data_window): Declare destructors.
6672 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6674 (tui_win_info): Simplify.
6676 2019-06-25 Tom Tromey <tom@tromey.com>
6678 * tui/tui-winsource.c (tui_display_main)
6679 (tui_update_source_windows_with_addr)
6680 (tui_update_all_breakpoint_info): Update.
6681 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6682 (new_height_ok, parse_scrolling_args): Update.
6683 * tui/tui-stack.c (tui_show_frame_info): Update.
6684 * tui/tui-data.h (struct tui_list): Remove.
6685 (tui_source_windows): Return a reference to a std::vector.
6686 * tui/tui-data.c (source_windows): Now a std::vector.
6687 (tui_source_windows): Change return type.
6688 (tui_clear_source_windows): Rewrite.
6689 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6690 (tui_free_all_source_wins_content): Rewrite.
6692 2019-06-25 Tom Tromey <tom@tromey.com>
6694 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6695 (struct tui_data_window, struct tui_cmd_window): Declare
6696 clear_detail method.
6697 * tui/tui-data.c (tui_source_window::clear_detail)
6698 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6700 (tui_clear_win_detail): Simplify.
6702 2019-06-25 Tom Tromey <tom@tromey.com>
6704 * tui/tui-layout.c (make_source_window, make_disasm_window)
6705 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6706 Return the new window.
6707 (show_source_disasm_command, show_data)
6708 (show_source_or_disasm_and_command): Update.
6710 2019-06-25 Tom Tromey <tom@tromey.com>
6712 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6713 parameter. Return the new window.
6714 (show_source_disasm_command): Update and remove NULL check.
6715 (show_source_or_disasm_and_command): Update.
6717 2019-06-25 Tom Tromey <tom@tromey.com>
6719 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6721 2019-06-25 Tom Tromey <tom@tromey.com>
6723 * tui/tui-data.h (struct tui_win_info): Make constructor
6724 protected. Make destructor virtual. Add initializers.
6725 (tui_source_window, tui_data_window, tui_cmd_window): New
6727 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6728 constructor. Add "type" parameter.
6729 (tui_source_window, tui_data_window, tui_cmd_window): New
6731 (tui_alloc_win_info): Instantiate the appropriate subclass.
6733 2019-06-25 Tom Tromey <tom@tromey.com>
6735 * tui/tui-win.c (tui_resize_all): Use delete.
6736 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6738 (tui_free_window): Don't declare.
6739 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6742 2019-06-25 Tom Tromey <tom@tromey.com>
6744 * tui/tui-data.h (struct tui_win_info): Add constructor.
6745 * tui/tui-data.c (tui_alloc_win_info): Use new.
6746 (tui_free_window): Use delete.
6748 2019-06-22 Tom Tromey <tom@tromey.com>
6750 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6752 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6754 2019-06-22 Tom Tromey <tom@tromey.com>
6756 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6758 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6760 2019-06-22 Tom de Vries <tdevries@suse.de>
6762 * dwarf2read.c (create_addrmap_from_aranges)
6763 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6766 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6768 * dwarf2read.h (dwarf2_section_info_def): Remove.
6769 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6770 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6771 std::vector<dwarf2_section_info>.
6772 (struct dwo_file) <~dwo_file>: Remove.
6773 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6775 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6776 (dwarf2_read_debug_names): Likewise.
6777 (create_debug_types_hash_table): Change parameter type to
6778 array_view, adjust code accordingly.
6779 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6780 (partial_die_info::fixup): Likewise.
6781 (determine_prefix): Likewise.
6782 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6784 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6786 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6788 <~dwo_file>: Remove call to gdb_bfd_unref.
6789 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6790 gdb_bfd_ref_ptr::get.
6792 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6794 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6796 * dwarf2read.c (struct dwo_file): Initialize fields.
6798 (free_dwo_file): Remove, move content to ~dwo_file.
6799 (struct dwo_file_deleter): Remove.
6800 (dwo_file_up>: Remove custom deleter.
6801 (free_dwo_files): Remove.
6802 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6804 (process_skeletonless_type_units): Call unique_ptr::get.
6805 (allocate_dwo_file_hash_table): Add deleter to created hash
6806 table. Change return type to htab_up.
6807 (lookup_dwo_file_slot): Don't memset dwo_file, call
6809 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6810 (create_dwo_unit_in_dwp_v2): Likewise.
6811 (open_and_init_dwo_file): Likewise.
6812 (free_dwo_file_from_slot): Remove.
6814 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6816 * dwarf2read.h (struct dwarf2_section_info) <readin,
6817 is_virtual>: Change type to bool.
6818 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6821 2019-06-19 Tom Tromey <tom@tromey.com>
6823 * tui/tui-data.h (tui_init_content_element): Don't declare.
6825 2019-06-19 Tom Tromey <tom@tromey.com>
6827 * tui/tui-data.h (tui_init_win_info): Don't declare.
6829 2019-06-19 Tom de Vries <tdevries@suse.de>
6831 * dwarf2read.h (abstract_to_concrete): Change type to
6832 std::unordered_map<sect_offset, std::vector<sect_offset>,
6833 gdb::hash_enum<sect_offset>>.
6835 2019-06-19 Tom Tromey <tromey@adacore.com>
6837 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6838 EVAL_AVOID_SIDE_EFFECTS specially.
6840 2019-06-19 Tom Tromey <tromey@adacore.com>
6842 * source-cache.c (highlighter): New global.
6843 (source_cache::get_source_lines): Create a highlighter on demand.
6845 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6847 * defs.h (deprecated_interactive_hook): Delete declaration.
6848 * interps.c (clear_interpreter_hooks): Remove use of
6849 deprecated_interactive_hook.
6850 * top.c (deprecated_interactive_hook): Delete definition.
6851 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6853 2019-06-18 Tom de Vries <tdevries@suse.de>
6856 * dwarf2read.h (abstract_to_concrete): Change type from
6857 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6858 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6859 * dwarf2read.c (read_variable): Update.
6860 (dwarf2_fetch_die_loc_sect_off): Update.
6862 2019-06-17 Tom de Vries <tdevries@suse.de>
6865 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6866 accessing parent[parent_len - 1].
6868 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6871 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6872 call dtrace_process_dof with NULL dof.
6874 2019-06-16 Tom de Vries <tdevries@suse.de>
6877 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6879 2019-06-16 Tom Tromey <tom@tromey.com>
6881 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6882 (make_all_visible): Use address of member.
6884 2019-06-16 Tom Tromey <tom@tromey.com>
6886 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6887 (tui_free_window, free_content, free_content_elements): Remove
6889 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6891 * tui/tui-regs.c (tui_show_register_group)
6892 (tui_display_registers_from, tui_display_reg_element_at_line):
6893 Remove unnecessary cast.
6895 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6897 * linux-nat.c (normal_mask): Delete.
6898 (_initialize_linux_nat): Don't initialise normal_mask.
6900 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6903 * dwarf-index-write.h (write_psymtabs_to_index): Add
6904 dwz_basename parameter.
6905 * dwarf-index-write.c (write_gdbindex): Move file writing to
6906 write_gdbindex_1. Change return type void.
6907 (assert_file_size): Move up, remove filename parameter.
6908 (write_gdbindex_1): New function.
6909 (write_debug_names): Change return type to void, call
6911 (struct index_wip_file): New struct.
6912 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6913 file logic to index_wip_file. Write index for dwz file if
6915 (save_gdb_index_command): Pass basename of dwz file, if present.
6916 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6917 build-id of dwz file, if present.
6918 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6919 (dwarf2_get_dwz_file): Likewise.
6920 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6921 (dwarf2_get_dwz_file): Likewise.
6923 2019-06-16 Tom Tromey <tom@tromey.com>
6925 * coffread.c (process_coff_symbol): Use xstrdup.
6926 * value.c (create_internalvar): Use xstrdup.
6928 2019-06-16 Tom Tromey <tom@tromey.com>
6930 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6931 * breakpoint.c (stopin_command, stopat_command)
6932 (until_break_command, decode_location_default): Remove unnecessary
6934 * utils.c (subset_compare): Remove unnecessary cast.
6935 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6937 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6939 * infcmd.c (path_command): Remove unnecessary cast.
6940 * coffread.c (decode_type): Remove unnecessary cast.
6941 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6942 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6943 * tui/tui-stack.c (tui_show_locator_content)
6944 (tui_show_frame_info): Remove unnecessary cast.
6945 * tui/tui-win.c (tui_scroll_forward_command)
6946 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6947 (parse_scrolling_args): Remove unnecessary cast.
6948 * tui/tui-data.c (init_win_info, tui_del_window)
6949 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6950 (free_content_elements): Remove unnecessary cast.
6951 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6953 * tui/tui-source.c (tui_set_source_content)
6954 (tui_vertical_source_scroll): Remove unnecessary cast.
6955 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6957 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6958 * tui/tui-regs.c (tui_display_registers_from)
6959 (tui_display_register): Remove unnecessary cast.
6960 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6961 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6962 (make_visible): Remove unnecessary cast.
6963 * tui/tui-winsource.c (tui_erase_source_content)
6964 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6966 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6967 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6968 * stabsread.c (read_type, read_array_type, read_range_type):
6969 Remove unnecessary cast.
6970 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6971 (parse_symbol, parse_type, upgrade_type, parse_external)
6972 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6974 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6976 2019-06-16 Tom Tromey <tom@tromey.com>
6978 * tui/tui-data.c (tui_alloc_generic_win_info)
6979 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6982 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6983 Andrew Burgess <andrew.burgess@embecosm.com>
6985 * f-typeprint.c (f_print_type): Don't return early for not
6986 associated or not allocated types.
6987 (f_type_print_varspec_suffix): Add print_rank parameter and print
6988 ranks of array types in case they dangling.
6989 (f_type_print_base): Add print_rank parameter.
6991 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6993 * NEWS: Mention new MI commands.
6994 * break-catch-throw.c (enum exception_event_kind): Move to
6996 (print_mention_exception_catchpoint): Output text as a single
6998 (catch_exception_command_1): Rename to...
6999 (catch_exception_event): ...this, make non-static, update header
7000 command, and change some parameter types.
7001 (catch_catch_command): Update for changes to
7002 catch_exception_command_1.
7003 (catch_throw_command): Likewise.
7004 (catch_rethrow_command): Likewise.
7005 * breakpoint.c (enum exception_event_kind): Delete.
7006 * breakpoint.h (enum exception_event_kind): Moved here from
7007 break-catch-throw.c.
7008 (catch_exception_event): Declare.
7009 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7010 (mi_cmd_catch_throw): New function.
7011 (mi_cmd_catch_rethrow): New function.
7012 (mi_cmd_catch_catch): New function.
7013 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7014 'catch-catch' entries.
7015 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7016 (mi_cmd_catch_rethrow): Declare.
7017 (mi_cmd_catch_catch): Declare.
7019 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7021 * annotate.c (annotate_source_line): Change return type to void,
7022 update implementation to match.
7023 * annotate.h (annotate_source_line): Change return type to void,
7024 update header comment.
7025 * stack.c (print_frame_info): Don't change what frame information
7026 is printed based on whether annotations are on or not.
7028 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7030 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7031 (annotate_source): Make static.
7032 (annotate_source_line): Moved from source.c and renamed from
7033 identify_source_line. Update the return type.
7034 * annotate.h (annotate_source): Delete declaration.
7035 (annotate_source_line): Declaration moved from source.h, and
7036 renamed from identify_source_line. Return type updated.
7037 * source.c (identify_source_line): Moved to annotate.c and renamed
7038 to annotate_source_line.
7039 (info_line_command): Remove check of annotation_level.
7040 * source.h (identify_source_line): Move declaration to annotate.h
7041 and rename to annotate_source_line.
7042 * stack.c: Add 'annotate.h' include.
7043 (print_frame_info): Remove check of annotation_level before
7044 calling annotate_source_line.
7046 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7048 * source-cache.c (source_cache::get_plain_source_lines): Use
7049 open_source_file_with_line_charpos instead of just
7050 open_source_file, remove call to find_source_lines.
7051 (source_cache::get_source_lines): Likewise.
7052 * source.c (find_source_lines): Make static.
7053 (get_filename_and_charpos): Renamed into...
7054 (open_source_file_with_line_charpos): ..this along with changes to
7055 return a scoped_fd, and some other minor clean ups.
7056 (identify_source_line): Use open_source_file_with_line_charpos.
7057 (search_command_helper): Use open_source_file_with_line_charpos
7058 instead of just open_source_file, remove call to
7060 * source.h (open_source_file_with_line_charpos): Declare new
7062 (find_source_lines): Delete declaration.
7064 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7066 * source.c (get_filename_and_charpos): Remove fullname
7068 (identify_source_line): Update call to get_filename_and_charpos.
7070 2019-06-14 Tom Tromey <tromey@adacore.com>
7073 * ui-style.h (skip_ansi_escape): Update comment.
7074 * ui-file.h (class no_terminal_escape_file): New class.
7075 * ui-file.c (no_terminal_escape_file::write)
7076 (no_terminal_escape_file::puts): New methods.
7077 * cli/cli-logging.c (handle_redirections): Use
7078 no_terminal_escape_file.
7080 2019-06-14 Tom Tromey <tromey@adacore.com>
7082 * NEWS: Move convenience variable news above Python news.
7084 2019-06-14 Tom Tromey <tom@tromey.com>
7086 * gnulib: Move directory to top-level.
7087 * configure.ac: Don't configure gnulib.
7088 * configure: Rebuild.
7089 * common/common-defs.h: Use new path to gnulib.
7090 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7092 (INCGNU): Look in new gnulib location.
7093 (HFILES_NO_SRCDIR): Remove gnulib files.
7094 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7095 (generated_files): Remove GNULIB_H.
7096 ($(LIBGNU), all-lib): Remove targets.
7097 (distclean): Don't mention GNULIB_BUILDDIR.
7098 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7100 2019-06-14 Tom Tromey <tromey@adacore.com>
7102 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7103 Warn if symbol file does not provide any symbols.
7105 2019-06-14 Tom Tromey <tromey@adacore.com>
7107 * source.c (find_and_open_source): Respect basenames_may_differ.
7109 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7111 * annotate.c (annotate_breakpoints_invalid): Make use of
7112 scoped_restore_terminal_state.
7113 (annotate_frames_invalid): Likewise.
7115 2019-06-14 Tom Tromey <tromey@adacore.com>
7117 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7118 allow assignment to an internalvar.
7120 2019-06-14 Tom Tromey <tromey@adacore.com>
7122 * ada-lex.l: Allow "_" in attribute names.
7124 2019-06-14 Tom Tromey <tromey@adacore.com>
7127 * regcache.c (registers_changed): Don't call alloca.
7128 * top.c (execute_command): Don't call alloca.
7130 2019-06-13 Pedro Alves <palves@redhat.com>
7132 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7133 'expression'. When parsing an expression, error out if there's
7134 junk after "unlimited".
7135 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7136 (do_set_command): Adjust calls to is_unlimited_literal.
7138 2019-06-13 Pedro Alves <palves@redhat.com>
7140 * compile/compile.c (make_compile_options_def_group): Add braces
7141 around array_view initializer.
7142 * thread.c (make_thread_apply_all_options_def_group)
7143 (make_thread_apply_all_options_def_group): Likewise.
7145 2019-06-13 Pedro Alves <palves@redhat.com>
7147 * NEWS (New commands): Mention "maint test-options
7148 require-delimiter", "maint test-options unknown-is-error", "maint
7149 test-options unknown-is-operand" and "maint show
7150 test-options-completion-result".
7151 (New command options, command completion): New section.
7152 (Completion improvements): New section.
7153 Mention that you can abbreviate "unlimited".
7155 2019-06-13 Pedro Alves <palves@redhat.com>
7157 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7158 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7159 * unittests/cli-utils-selftests.c (test_parse_flags)
7160 (test_parse_flags_qcs): Delete.
7161 (test_cli_utils): Don't call deleted functions.
7163 2019-06-13 Pedro Alves <palves@redhat.com>
7165 * thread.c: Include "cli/cli-option.h".
7166 (tp_array_compar_ascending): Global.
7167 (tp_array_compar): Delete function.
7168 (tp_array_compar_ascending, tp_array_compar_descending): New
7170 (ascending_option_def, qcs_flag_option_def)
7171 (thr_qcs_flags_option_defs)
7172 (make_thread_apply_all_options_def_group)
7173 (make_thread_apply_options_def_group): New.
7174 (thread_apply_all_command): Use gdb::option::process_options.
7175 (thread_apply_command_completer)
7176 (thread_apply_all_command_completer): New.
7177 (thread_apply_command): Use gdb::option::process_options.
7178 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7179 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7180 to generate help text of "thread apply". Adjust "taas"'s help.
7181 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7182 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7184 2019-06-13 Pedro Alves <palves@redhat.com>
7186 * thread.c (thread_apply_command): Check for invalid TID with
7187 isdigit instead of !isalpha.
7189 2019-06-13 Pedro Alves <palves@redhat.com>
7191 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7192 (validate_flags_qcs): New.
7193 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7194 (validate_flags_qcs): Declare.
7195 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7196 (make_frame_apply_options_def_group): New.
7197 (frame_apply_command_count): Process options with
7198 gdb::option::process_options.
7199 (frame_apply_completer): New.
7200 (frame_apply_level_completer, frame_apply_all_completer)
7201 (frame_apply_completer): New.
7202 (_initialize_stack): Update help of "frame apply", "frame apply
7203 level", "frame apply all" and "faas" to mention supported options
7204 and install command completers.
7205 * stack.h (frame_apply_all_completer): Declare.
7206 * thread.c: Include "stack.h".
7207 (tfaas_command): Add "--".
7208 (_initialize_thread): Update help "tfaas" to mention supported
7209 options and install command completer.
7211 2019-06-13 Pedro Alves <palves@redhat.com>
7213 * completer.c (complete_nested_command_line): New.
7214 (gdb_completion_word_break_characters_throw): Add assertion.
7215 * completer.h (complete_nested_command_line): Declare.
7217 2019-06-13 Pedro Alves <palves@redhat.com>
7219 * stack.c (parse_backtrace_qualifiers): New.
7220 (backtrace_command): Use it.
7221 (backtrace_command_completer): Complete on qualifiers.
7223 2019-06-13 Pedro Alves <palves@redhat.com>
7225 * frame.c: Include "cli/cli-option.h.
7226 (user_set_backtrace_options): New.
7227 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7229 (get_prev_frame): Adjust.
7230 (boolean_option_def, uinteger_option_def)
7231 (set_backtrace_option_defs): New.
7232 (_initialize_frame): Adjust and use
7233 gdb::option::add_setshow_cmds_for_options to install "set
7234 backtrace past-main" and "set backtrace past-entry".
7235 * frame.h: Include "cli/cli-option.h".
7236 (struct frame_print_options): Forward declare.
7237 (print_frame_arguments_all, print_frame_arguments_scalars)
7238 (print_frame_arguments_none): Declare.
7239 (print_entry_values): Delete declaration.
7240 (struct frame_print_options, user_frame_print_options): New.
7241 (struct set_backtrace_options): New.
7242 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7243 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7244 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7245 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7246 (list_args_or_locals): Add frame_print_options parameter.
7247 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7248 * python/py-framefilter.c (enumerate_args): Pass down
7249 USER_FRAME_PRINT_OPTIONS.
7250 * stack.c: Include "cli/cli-option.h".
7251 (print_frame_arguments_all, print_frame_arguments_scalars)
7252 (print_frame_arguments_none): Declare.
7253 (print_raw_frame_arguments, print_entry_values): Delete.
7254 (user_frame_print_options): New.
7255 (boolean_option_def, enum_option_def, frame_print_option_defs):
7257 (struct backtrace_cmd_options): New.
7258 (bt_flag_option_def): New.
7259 (backtrace_command_option_defs): New.
7260 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7261 (print_frame_arg, read_frame_arg, print_frame_args)
7262 (print_frame_info, print_frame): Add frame_print_options parameter
7264 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7265 (backtrace_command_1): Add frame_print_options and
7266 backtrace_cmd_options parameters and use them.
7267 (make_backtrace_options_def_group): New.
7268 (backtrace_command): Process command options with
7269 gdb::option::process_options.
7270 (backtrace_command_completer): New.
7271 (_initialize_stack): Extend "backtrace"'s help to mention
7272 supported options. Install completer for "backtrace".
7273 Install some settings commands with add_setshow_cmds_for_options.
7275 2019-06-13 Pedro Alves <palves@redhat.com>
7277 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7278 and that "set/show print raw frame-arguments" are now deprecated.
7280 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7282 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7283 * stack.c (_initialize_stack): Install "set/show print
7284 raw-frame-arguments", and deprecate "set/show print raw
7286 * valprint.c (_initialize_valprint): Deprecate "set/show print
7289 2019-06-13 Pedro Alves <palves@redhat.com>
7291 * compile/compile.c (struct compile_options): New.
7292 (compile_flag_option_def, compile_command_option_defs)
7293 (make_compile_options_def_group): New.
7294 (compile_file_command): Handle options with
7295 gdb::option::process_options.
7296 (compile_file_command_completer): New function.
7297 (compile_code_command): Handle options with
7298 gdb::option::process_options.
7299 (compile_code_command_completer): New function.
7300 (_initialize_compiler): Install completers for "compile code" and
7301 "compile file". Mention available options in "compile code" and
7302 "compile code"'s help.
7303 * completer.c (advance_to_completion_word): New, factored out from
7305 (advance_to_expression_complete_word_point): ... this.
7306 (advance_to_filename_complete_word_point): New.
7307 * completer.h (advance_to_filename_complete_word_point): New
7310 2019-06-13 Pedro Alves <palves@redhat.com>
7312 * compile/compile.c: Include "cli/cli-option.h".
7313 (compile_print_value): Scope data pointer is now a
7314 value_print_options pointer; adjust.
7315 (compile_print_command): Process options. Scope data pointer is
7316 now a value_print_options pointer; adjust.
7317 (_initialize_compile): Update "compile print"'s help to include
7318 supported options. Install a completer for "compile print".
7319 * cp-valprint.c (show_vtblprint, show_objectprint)
7320 (show_static_field_print): Delete.
7321 (_initialize_cp_valprint): Don't install "set print
7322 static-members", "set print vtbl", "set print object" here.
7323 * printcmd.c: Include "cli/cli-option.h" and
7324 "common/gdb_optional.h".
7325 (print_command_parse_format): Rework to fill in a
7326 value_print_options instead of a format_data.
7327 (print_value): Change parameter type from format_data pointer to
7328 value_print_options reference. Adjust.
7329 (print_command_1): Process options. Adjust to pass down a
7330 value_print_options.
7331 (print_command_completer): New.
7332 (_initialize_printcmd): Install print_command_completer as
7333 handle_brkchars completer for the "print" command. Update
7334 "print"'s help to include supported options.
7335 * valprint.c: Include "cli/cli-option.h".
7336 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7337 here from cp-valprint.c.
7338 (boolean_option_def, uinteger_option_def)
7339 (value_print_option_defs, make_value_print_options_def_group):
7340 New. Use gdb::option::add_setshow_cmds_for_options to install
7341 "set print elements", "set print null-stop", "set print repeats",
7342 "set print pretty", "set print union", "set print array", "set
7343 print address", "set print symbol", "set print array-indexes".
7344 * valprint.h: Include <string> and "cli/cli-option.h".
7345 (make_value_print_options_def_group): Declare.
7346 (print_value): Change parameter type from format_data pointer to
7347 value_print_options reference.
7348 (print_command_completer): Declare.
7350 2019-06-13 Pedro Alves <palves@redhat.com>
7352 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7353 (COMMON_SFILES): Add maint-test-settings.c.
7354 * cli/cli-decode.c (boolean_enums): New global, factored out from
7356 (add_setshow_boolean_cmd): ... here.
7357 * cli/cli-decode.h (boolean_enums): Declare.
7358 * cli/cli-option.c: New file.
7359 * cli/cli-option.h: New file.
7360 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7361 factored out from ...
7362 (parse_cli_boolean_value(const char *)): ... this.
7363 (is_unlimited_literal): Change parameter type to pointer to
7364 pointer. Adjust and advance ARG pointer.
7365 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7366 (parse_cli_var_enum): New, factored out from ...
7367 (do_set_command): ... this. Adjust.
7368 * cli/cli-setshow.h (parse_cli_boolean_value)
7369 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7370 (parse_cli_var_enum): Declare.
7371 * cli/cli-utils.c: Include "cli/cli-option.h".
7372 (get_ulongest): New.
7373 * cli/cli-utils.h (get_ulongest): Declare.
7374 (check_for_argument): New overloads.
7375 * maint-test-options.c: New file.
7377 2019-06-13 Pedro Alves <palves@redhat.com>
7379 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7380 parse a range if "-" is at the end of the string.
7382 2019-06-13 Pedro Alves <palves@redhat.com>
7384 * cli/cli-setshow.c (parse_auto_binary_operation)
7385 (parse_cli_boolean_value): Don't allow "o".
7387 2019-06-13 Pedro Alves <palves@redhat.com>
7389 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7390 * NEWS: Mention maint test-settings KIND.
7391 * maint-test-settings.c: New file.
7393 2019-06-13 Pedro Alves <palves@redhat.com>
7395 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7397 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7400 2019-06-13 Pedro Alves <palves@redhat.com>
7402 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7405 2019-06-13 Pedro Alves <palves@redhat.com>
7407 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7409 2019-06-13 Pedro Alves <palves@redhat.com>
7411 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7412 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7414 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7415 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7417 (check_for_argument): Skip spaces after argument.
7419 2019-06-13 Pedro Alves <palves@redhat.com>
7421 * thread.c (thread_apply_command): Adjust TID parsing.
7422 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7423 detected before end of string.
7424 (tid_is_in_list): Error out if LIST is invalid.
7426 2019-06-13 Pedro Alves <palves@redhat.com>
7428 * completer.c (complete_line_internal_1): Rewind completion word
7430 (completion_tracker::advance_custom_word_point_by): Change
7431 parameter type to int.
7432 * completer.h (completion_tracker::advance_custom_word_point_by):
7435 2019-06-13 Pedro Alves <palves@redhat.com>
7437 * completer.c (advance_to_completion_word): Handle delimiters.
7439 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7441 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7443 2019-06-11 Tom Tromey <tom@tromey.com>
7445 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7446 (xmalloc_failed): Move to alloc.c.
7447 * alloc.c: New file.
7448 * Makefile.in (COMMON_SFILES): Add alloc.c.
7450 2019-06-11 Tom Tromey <tom@tromey.com>
7452 * nat/linux-waitpid.c: Don't include server.h.
7453 (linux_debug): Remove.
7454 (my_waitpid): Update.
7456 2019-06-11 Tom Tromey <tromey@adacore.com>
7458 * infcall.c (_initialize_infcall): Remove trailing newline from
7460 * user-regs.c (_initialize_user_regs): Remove trailing newline
7462 * typeprint.c (_initialize_typeprint): Remove trailing newline
7464 * reverse.c (_initialize_reverse): Remove trailing newlines from
7466 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7468 * language.c (add_set_language_command): Remove trailing newline
7470 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7472 * disasm.c (_initialize_disasm): Remove trailing newline from
7474 * top.c (init_main): Remove trailing newline from help.
7475 * interps.c (_initialize_interpreter): Remove trailing newline
7477 * btrace.c (_initialize_btrace): Remove trailing newlines from
7479 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7481 * python/python.c (_initialize_python): Remove trailing newline
7483 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7485 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7486 from help. Reformat some text.
7487 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7489 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7492 2019-06-11 Tom Tromey <tromey@adacore.com>
7494 * darwin-nat.c (darwin_decode_exception_message)
7495 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7497 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7499 * valops.c (value_slice): Check for not allocated or not
7502 2019-06-10 Tom de Vries <tdevries@suse.de>
7505 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7506 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7509 2019-06-10 Tom de Vries <tdevries@suse.de>
7512 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7513 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7515 2019-06-10 Tom de Vries <tdevries@suse.de>
7518 * symtab.c (struct demangled_name_entry): Add language field.
7519 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7520 static minimal symbol". Set and use language field.
7522 2019-06-10 Tom Tromey <tromey@adacore.com>
7524 * ada-lang.c (_initialize_ada_language): Update help text.
7526 2019-06-10 Tom Tromey <tromey@adacore.com>
7528 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7530 * guile/guile.c (handle_boot_error): Don't end warning with a
7532 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7533 warning with a newline.
7534 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7536 (s12z_frame_cache): Likewise.
7537 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7539 * solib-svr4.c (disable_probes_interface): Don't end warning with
7541 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7543 * python/python.c (do_finish_initialization): Don't end warning
7546 2019-06-10 Tom Tromey <tom@tromey.com>
7548 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7549 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7552 2019-06-10 Tom Tromey <tromey@adacore.com>
7554 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7556 (elf_new_init): Don't call stabsread_new_init.
7557 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7558 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7559 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7561 2019-06-10 Tom de Vries <tdevries@suse.de>
7565 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7567 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7569 * source.c (find_and_open_source): Also rewrite relative file
7572 2019-04-26 Amos Bird <amosbird@gmail.com>
7574 * annotate.c (annotate_thread_exited): Add "thread-exited"
7577 2019-06-06 Tom Tromey <tromey@adacore.com>
7579 * maint.h (class scoped_command_stats): Use
7580 DISABLE_COPY_AND_ASSIGN.
7581 <print_time>: New method.
7582 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7584 (scoped_command_stats::print_time): New method.
7586 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7588 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7589 instructions of lengths 6 or 8 bytes.
7591 2019-06-04 Pedro Alves <palves@redhat.com>
7593 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7595 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7596 * breakpoint.c (condition_completer): Likewise.
7597 * cli/cli-dump.c (scan_expression): Likewise.
7598 * common/filestuff.c (mkdir_recursive): Likewise.
7599 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7600 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7601 (gdb_abspath): Likewise.
7602 * compile/compile-cplus-types.c
7603 (compile_cplus_instance::decl_name): Likewise.
7604 * completer.c (complete_explicit_location):
7605 (signal_completer, reg_or_group_completer_1): Likewise.
7606 * cp-support.c (cp_remove_params_if_any): Likewise.
7607 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7608 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7609 * infcmd.c (strip_bg_char): Likewise.
7610 * linespec.c (copy_token_string): Likewise.
7611 * mi/mi-main.c (output_cores): Likewise.
7612 * psymtab.c (psymtab_search_name):
7613 * symfile.c (test_set_ext_lang_command): Likewise.
7614 * target.c (target_fileio_read_stralloc): Likewise.
7615 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7616 * value.c (complete_internalvar): Likewise.
7618 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7620 Add objfile property to gdb.Type.
7621 * NEWS: Mention Python API addition.
7622 * python/py-type.c (typy_get_objfile): New method.
7624 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7626 * NEWS: Mention the new set|show style [title|highlight].
7627 Mention changes to "show style", "help" and "apropos".
7629 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7631 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7632 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7633 instead of print_help_for_command.
7634 (print_doc_of_command): New function.
7635 (help_list): Add 'apropos -v word' suggestion.
7636 (print_help_for_command): Style the command name using title style.
7637 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7638 (_initialize_cli_cmds): Describe -v in apropos_command help.
7640 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7642 * cli/cli-style.h (cli_style_option): Add name in constructor,
7643 add m_name class member, add constructor with intensity,
7644 add name class function.
7645 (cli_style_option::add_setshow_commands): Remove name argument.
7646 (highlight_style, title_style): New styles.
7647 * cli/cli-style.c (do_show): New function that shows a style
7648 characteristic styling the style name with itself.
7649 (set_style_name): New function.
7650 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7651 Update all callers according to the changes in cli/cli-style.h.
7652 * utils.h (fputs_highlighted): New function.
7653 * utils.c (fputs_highlighted): Likewise.
7655 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7657 * NEWS: Mention new pipe command and new convenience variables.
7659 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7661 * cli/cli-cmds.c (pipe_command): New function.
7662 (_initialize_cli_cmds): Call add_com for pipe_command.
7663 Define | as an alias for pipe.
7664 (exit_status_set_internal_vars): New function.
7665 (shell_escape): Call exit_status_set_internal_vars.
7666 cli/cli-decode.c (find_command_name_length): Recognize | as
7667 a single character command.
7669 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7671 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7672 top.c (execute_command_to_ui_file): New function, mostly a copy
7673 of execute_command_to_string.
7674 (execute_command_to_string): Implement by calling
7675 execute_command_to_ui_file.
7677 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7679 * top.h (saved_command_line): Remove declaration.
7680 * top.c (previous_saved_command_line, previous_repeat_arguments):
7682 (saved_command_line): Make static, define together with other
7684 (dont_repeat): Clear repeat_arguments.
7685 (repeat_previous, get_saved_command_line, save_command_line):
7687 (gdb_init): Initialize saved_command_line
7688 and previous_saved_command_line.
7689 * main.c (captured_main_1): Remove saved_command_line initialization.
7690 * event-top.c (handle_line_of_input): Update to use
7691 the new 'repeat' related functions instead of direct access to
7693 * command.h (repeat_previous, get_saved_command_line,
7694 save_command_line): New declarations.
7695 (dont_repeat): Add comment.
7697 2019-05-30 Tom Tromey <tromey@adacore.com>
7699 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7701 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7703 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7706 * completer.c (complete): Initialize variable word.
7708 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7710 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7711 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7712 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7713 'body' is NULL to the outter 'if', protecting the '!is_define'
7716 2019-05-29 Tom Tromey <tromey@adacore.com>
7718 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7719 (dwarf_unknown): New function.
7720 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7721 (dwarf_type_encoding_name): Use dwarf_unknown.
7723 2019-05-29 Tom Tromey <tromey@adacore.com>
7726 * cp-valprint.c (cp_print_value_fields): Call
7727 cp_print_static_field inside "try".
7729 2019-05-29 Tom Tromey <tromey@adacore.com>
7731 * inflow.c (struct terminal_info): Add default operator=.
7732 * configure: Rebuild.
7733 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7734 -Wdeprecated-copy-dtor, -Wredundant-move.
7736 2019-05-29 Tom Tromey <tromey@adacore.com>
7739 * infcmd.c (print_return_value_1): Handle finish_print
7741 (show_print_finish): New function.
7742 (_initialize_infcmd): Add "set/show print finish" commands.
7743 * valprint.c (user_print_options): Initialize new member.
7744 * valprint.h (struct value_print_options) <finish_print>: New
7747 2019-05-28 Tom Tromey <tromey@adacore.com>
7749 * ada-lang.c (ada_remove_Xbn_suffix)
7750 (find_old_style_renaming_symbol)
7751 (parse_old_style_renaming): Remove.
7752 (ada_find_renaming_symbol): Don't call
7753 find_old_style_renaming_symbol.
7754 (ada_is_renaming_symbol): Rename from
7755 ada_find_renaming_symbol. Remove "block" parameter. Return
7757 (ada_read_var_value): Update and simplify.
7758 * ada-exp.y (write_var_or_type): Remove old code.
7760 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7763 * event-top.c: Remove include comment.
7764 * inflow.c (class scoped_ignore_sigttou): Move from here...
7765 * inflow.h (class scoped_ignore_sigttou): ...to here.
7766 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7767 * top.c: Remove include comment.
7769 2019-05-27 Tom Tromey <tom@tromey.com>
7773 2019-05-22 Tom Tromey <tromey@adacore.com>
7775 * target.c (target_follow_exec): Constify parameter.
7776 * target-delegates.c: Rebuild.
7777 * remote.c (remote_target::follow_exec): Constify parameter.
7778 * infrun.c (follow_exec): Constify parameter.
7779 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7780 (target_follow_exec): Likewise.
7782 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7784 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7785 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7787 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7789 * NEWS: Add debugredirect and testsuite sections.
7791 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7793 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7794 target descriptions using exclusively floating point register name
7797 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7800 * f-lang.c (build_fortran_types): Handle the case where
7801 gdbarch_floatformat_for_type returns a nullptr.
7803 2019-05-21 Tom de Vries <tdevries@suse.de>
7806 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7808 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7811 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7813 * i386-tdep.c (i386_floatformat_for_type): Use
7814 floatformats_ia64_quad for the 16-byte floating point component
7815 within a fortran 32-byte complex number.
7817 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7819 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7820 delete default constructor.
7821 (find_partial_die): Update to return const struct.
7822 (partial_die_parent_scope): Move variable declaration into scope
7823 of its use and change its type to auto.
7824 (guess_partial_die_structure_name): Likewise.
7825 (partial_die_info::fixup): Likewise.
7827 2019-05-17 Tom Tromey <tromey@adacore.com>
7829 * source.c (find_and_open_source): Remove cast.
7831 2019-05-17 Tom Tromey <tromey@adacore.com>
7833 * annotate.c (annotate_source): Make "filename" const.
7834 * annotate.h (annotate_source): Use const.
7836 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7838 * disasm.c (set_disassembler_options): Send errors to stderr.
7840 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7842 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7843 (cli_interp_base::set_logging): Check debug_redirect.
7844 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7845 * cli/cli-logging.c (debug_redirect): Add static variable.
7846 (pop_output_files): Add default param.
7847 (handle_redirections): Print debug setting.
7848 (show_logging_command): Likewise.
7849 (_initialize_cli_logging): Add debugredirect command.
7850 * interps.c (current_interp_set_logging): Add debug_redirect
7852 * interps.h (set_logging): Add debug_redirect parameter.
7853 (current_interp_set_logging): Likewise.
7854 * mi/mi-common.h: Likewise.
7855 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7857 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7858 Tom Tromey <tromey@adacore.com>
7860 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7862 * cli/cli-interp.h (make_logging_output): Remove declaration.
7863 * cli/cli-logging.c (make_logging_output): Remove function.
7864 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7866 * ui-file.c (tee_file::tee_file): Remove bools.
7867 (tee_file::~tee_file): Remove deletes.
7868 * ui-file.h (tee_file): Remove bools.
7870 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7872 * mi/mi-cmds.h (mi_cmd_complete): New function.
7873 * mi/mi-main.c (mi_cmd_complete): Likewise.
7874 * mi/mi-cmds.c: Define new MI command -complete.
7875 * NEWS: Mention new -complete command.
7877 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7879 * completer.h (complete): New function.
7880 * completer.c (complete): Likewise.
7881 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7882 function defined in completer.h.
7884 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7886 * MAINTAINERS (Write After Approval): Add myself.
7888 2019-05-17 Tom de Vries <tdevries@suse.de>
7891 * dwarf2read.c (struct cu_partial_die_info): New struct.
7892 (find_partial_die): Return cu_partial_die_info.
7893 (partial_die_parent_scope, guess_partial_die_structure_name)
7894 (partial_die_info::fixup): Handle new return type of find_partial_die.
7896 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7898 PR breakpoints/24541
7899 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7900 "std::string", simplifying the algorithm.
7902 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7904 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7905 (stap_static_probe_ops::get_probes): Likewise.
7907 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7909 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7910 '-')" and "else if".
7911 (stap_parse_single_operand): Join checks for
7912 "gdbarch_stap_parse_special_token_p" and
7913 "gdbarch_stap_parse_special_token" in the same "if" statement.
7914 Invert check when verifying for operation on register
7917 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7919 * stap-probe.c (stap_get_opcode): Update comment.
7920 (stap_get_expected_argument_type): Likewise.
7921 (handle_stap_probe): Likewise.
7923 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7925 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7926 return type to 'bool'. Adjust comment. Use 'bool' when
7928 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7929 * stap-probe.c (stap_parse_argument_1): Likewise.
7930 (stap_is_operator): Likewise.
7931 (stap_is_generic_prefix): Likewise.
7932 (stap_is_register_prefix): Likewise.
7933 (stap_is_register_indirection_prefix): Likewise.
7934 (stap_is_integer_prefix): Likewise.
7935 (stap_generic_check_suffix): Likewise.
7936 (stap_check_integer_suffix): Likewise.
7937 (stap_check_register_suffix): Likewise.
7938 (stap_check_register_indirection_suffix): Likewise.
7939 (stap_parse_register_operand): Likewise.
7940 (stap_parse_single_operand): Likewise.
7941 (stap_parse_argument_1): Likewise.
7942 (stap_probe::get_argument_count): Likewise.
7943 (stap_is_operator): Likewise.
7945 2019-05-16 Tom Tromey <tromey@adacore.com>
7947 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7950 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7952 * linux-thread-db.c (try_thread_db_load_1): Change return type
7954 (try_thread_db_load): Likewise.
7955 (try_thread_db_load_from_pdir_1): Likewise.
7956 (try_thread_db_load_from_pdir): Likewise.
7957 (try_thread_db_load_from_sdir): Likewise.
7958 (try_thread_db_load_from_dir): Likewise.
7959 (thread_db_load_search): Likewise.
7960 (has_libpthread): Likewise.
7961 (thread_db_load): Likewise.
7963 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7965 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7966 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7967 NULL, and complain/return if that's the case.
7969 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7971 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7972 (advance, posn, abstract_read_memory): New functions.
7973 [struct mem_read_abstraction]: New struct.
7974 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7976 2019-05-14 Tom Tromey <tromey@adacore.com>
7978 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7979 value is not lval_memory.
7981 2019-05-14 Tom Tromey <tromey@adacore.com>
7983 * solib.c (info_sharedlibrary_command): Style the file name.
7985 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7987 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7988 (aarch64_vnv_type): Likewise.
7989 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7990 * common/tdesc.c: Likewise.
7991 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7992 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7993 * features/aarch64-fpu.xml: Add ieee half view.
7994 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7995 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7996 * gdbtypes.h (struct builtin_type): Likewise.
7997 (struct objfile_type): Likewise.
7999 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8001 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8003 * location.h (string_to_event_location): Likewise.
8005 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8009 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8011 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8012 New variable declaration.
8013 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8015 (print_one_breakpoint): Use ui_out::test_flags and new global
8016 variable to compute use_fixed_output.
8017 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8019 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8020 (mi_multi_location_breakpoint_output_fixed): Remove.
8021 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8023 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8024 fix_multi_location_breakpoint_output flag if version >= 3.
8025 * ui-out.h (enum ui_out_flag)
8026 <fix_multi_location_breakpoint_output>: New enumerator.
8028 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8030 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8032 2019-05-10 Tom Tromey <tromey@adacore.com>
8034 * ada-lang.c (catch_ada_completer): New function.
8035 (_initialize_ada_language): Use it.
8037 2019-05-10 Tom Tromey <tromey@adacore.com>
8039 * thread.c (print_thread_info): Make "requested_threads" const.
8040 * gdbthread.h (print_thread_info): Make "requested_threads"
8042 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8043 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8045 2019-05-08 Tom Tromey <tom@tromey.com>
8047 * gdbtypes.c (objfile_type_data): Change type.
8048 (objfile_type, _initialize_gdbtypes): Update.
8050 2019-05-08 Tom Tromey <tom@tromey.com>
8052 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8053 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8054 (_initialize_dwarf2_frame): Update.
8056 2019-05-08 Tom Tromey <tom@tromey.com>
8058 * objc-lang.c (objc_objfile_data): Change type.
8059 (find_methods): Update.
8060 (_initialize_objc_lang): Remove.
8062 2019-05-08 Tom Tromey <tom@tromey.com>
8064 * stabsread.c (rs6000_builtin_type_data): Change type.
8065 (rs6000_builtin_type, _initialize_stabsread): Update.
8067 2019-05-08 Tom Tromey <tom@tromey.com>
8069 * mips-tdep.c (mips_pdr_data): Remove.
8070 (_initialize_mips_tdep): Update.
8072 2019-05-08 Tom Tromey <tom@tromey.com>
8074 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8075 (hppa_init_objfile_priv_data, read_unwind_info)
8076 (find_unwind_entry, _initialize_hppa_tdep): Update.
8078 2019-05-08 Tom Tromey <tom@tromey.com>
8080 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8081 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8083 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8085 2019-05-08 Tom Tromey <tom@tromey.com>
8087 * mdebugread.c (basic_type_data): Change type.
8088 (basic_type, _initialize_mdebugread): Update.
8090 2019-05-08 Tom Tromey <tom@tromey.com>
8092 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8094 2019-05-08 Tom Tromey <tom@tromey.com>
8096 * nto-tdep.c (nto_inferior_data_reg): Change type.
8097 (nto_inferior_data): Update.
8098 (nto_inferior_data_cleanup, nto_new_inferior_data)
8099 (_initialize_nto_tdep): Remove.
8100 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8102 2019-05-08 Tom Tromey <tom@tromey.com>
8104 * ada-lang.c (struct ada_inferior_data): Add initializers.
8105 (ada_inferior_data): Change type.
8106 (ada_inferior_data_cleanup): Remove.
8107 (get_ada_inferior_data, ada_inferior_exit)
8108 (struct ada_pspace_data): Add initializers, destructor.
8109 (ada_pspace_data_handle): Change type.
8110 (get_ada_pspace_data): Update.
8111 (ada_pspace_data_cleanup): Remove.
8113 2019-05-08 Tom Tromey <tom@tromey.com>
8115 * coffread.c (struct coff_symfile_info): Add initializers.
8116 (coff_objfile_data_key): Move lower. Change type.
8117 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8119 (coff_free_info): Remove.
8121 2019-05-08 Tom Tromey <tom@tromey.com>
8123 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8124 (fbsd_pspace_data_handle): Move lower. Change type.
8125 (get_fbsd_pspace_data): Update.
8126 (fbsd_pspace_data_cleanup): Remove.
8127 (_initialize_fbsd_tdep): Update.
8129 2019-05-08 Tom Tromey <tom@tromey.com>
8131 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8132 (get_ada_tasks_pspace_data): Update.
8133 (ada_tasks_pspace_data_cleanup): Remove.
8134 (_initialize_tasks): Update.
8135 (ada_tasks_inferior_data_handle): Change type.
8136 (get_ada_tasks_inferior_data): Update.
8137 (ada_tasks_inferior_data_cleanup): Remove.
8138 (struct ada_tasks_pspace_data): Add initializers.
8140 2019-05-08 Tom Tromey <tom@tromey.com>
8142 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8143 * symfile-debug.c (debug_sym_get_probes): Change type.
8144 * stap-probe.c (handle_stap_probe):
8145 (stap_static_probe_ops::get_probes): Change type.
8146 * probe.h (class static_probe_ops) <get_probes>: Change type.
8147 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8148 (parse_probes_in_pspace): Update.
8149 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8151 (any_static_probe_ops::get_probes): Change type.
8152 * elfread.c (elfread_data): New typedef.
8153 (probe_key): Change type.
8154 (elf_get_probes): Likewise. Update.
8155 (probe_key_free): Remove.
8156 (_initialize_elfread): Update.
8157 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8159 (dtrace_process_dof_probe, dtrace_process_dof)
8160 (dtrace_static_probe_ops::get_probe): Change type.
8162 2019-05-08 Tom Tromey <tom@tromey.com>
8164 * xcoffread.c (struct xcoff_symfile_info): Rename from
8165 coff_symfile_info. Add initializers.
8166 (xcoff_objfile_data_key): Move lower. Change type.
8167 (XCOFF_DATA): Rewrite.
8168 (xcoff_free_info): Remove.
8169 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8170 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8171 (xcoff_initial_scan): Update.
8173 2019-05-08 Tom Tromey <tom@tromey.com>
8175 * solib-svr4.c (struct svr4_info): Add initializers and
8177 <probes_table>: Now an htab_up.
8178 (solib_svr4_pspace_data): Change type.
8179 (free_probes_table): Simplify.
8180 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8181 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8182 (probes_table_remove_objfile_probes, register_solib_event_probe)
8183 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8184 (_initialize_svr4_solib): Update.
8186 2019-05-08 Tom Tromey <tom@tromey.com>
8188 * remote.c (remote_pspace_data): Change type.
8189 (remote_pspace_data_cleanup): Remove.
8190 (get_remote_exec_file, set_pspace_remote_exec_file)
8191 (_initialize_remote): Update.
8193 2019-05-08 Tom Tromey <tom@tromey.com>
8195 * breakpoint.c (breakpoint_objfile_key): Change type.
8196 (get_breakpoint_objfile_data): Update.
8197 (free_breakpoint_objfile_data): Remove.
8198 (_initialize_breakpoint): Update.
8200 2019-05-08 Tom Tromey <tom@tromey.com>
8202 * linux-tdep.c (struct linux_info): Add initializers.
8203 (linux_inferior_data): Move. Change type.
8204 (invalidate_linux_cache_inf): Update.
8205 (linux_inferior_data_cleanup): Remove.
8206 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8208 2019-05-08 Tom Tromey <tom@tromey.com>
8210 * auxv.c (auxv_inferior_data): Move. Change type.
8211 (auxv_inferior_data_cleanup): Remove.
8212 (invalidate_auxv_cache_inf): Rewrite.
8213 (get_auxv_inferior_data, _initialize_auxv): Update.
8215 2019-05-08 Tom Tromey <tom@tromey.com>
8217 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8218 (symfile_debug_objfile_data_key): Change type.
8219 (symfile_debug_installed, debug_qf_has_symbols)
8220 (debug_qf_find_last_source_symtab)
8221 (debug_qf_forget_cached_source_info)
8222 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8223 (debug_qf_print_stats, debug_qf_dump)
8224 (debug_qf_expand_symtabs_for_function)
8225 (debug_qf_expand_all_symtabs)
8226 (debug_qf_expand_symtabs_with_fullname)
8227 (debug_qf_map_matching_symbols)
8228 (debug_qf_expand_symtabs_matching)
8229 (debug_qf_find_pc_sect_compunit_symtab)
8230 (debug_qf_map_symbol_filenames)
8231 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8232 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8233 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8234 (debug_sym_read_linetable, debug_sym_relocate): Update.
8235 (symfile_debug_free_objfile): Remove.
8236 (install_symfile_debug_logging, _initialize_symfile_debug):
8239 2019-05-08 Tom Tromey <tom@tromey.com>
8241 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8242 allocate_on_obstack.
8243 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8244 (get_dwarf2_per_objfile): Update.
8245 (set_dwarf2_per_objfile): Remove.
8246 (dwarf2_has_info, dwarf2_get_section_info): Update.
8247 (dwarf2_free_objfile): Remove.
8248 (_initialize_dwarf2_read): Update.
8250 2019-05-08 Tom Tromey <tom@tromey.com>
8252 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8254 <unsupported_script_warning_printed,
8255 script_not_found_warning_printed>: Now bool.
8256 (auto_load_pspace_data): Change type.
8257 (~auto_load_pspace_info): Rename from
8258 auto_load_pspace_data_cleanup.
8259 (get_auto_load_pspace_data, init_loaded_scripts_info)
8260 (clear_section_scripts, maybe_print_unsupported_script_warning)
8261 (maybe_print_script_not_found_warning, _initialize_auto_load):
8264 2019-05-08 Tom Tromey <tom@tromey.com>
8266 * objfiles.c (objfile_pspace_info): Add destructor and
8268 (objfiles_pspace_data): Change type.
8269 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8270 (get_objfile_pspace_data): Update.
8271 (objfiles_bfd_data): Change type.
8272 (get_objfile_bfd_data): Update.
8273 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8275 2019-05-08 Tom Tromey <tom@tromey.com>
8277 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8279 (get_catch_syscall_inferior_data): Update.
8280 (catch_syscall_inferior_data_cleanup): Remove.
8281 (_initialize_break_catch_syscall): Update.
8283 2019-05-08 Tom Tromey <tom@tromey.com>
8285 * inflow.c (struct terminal_info): Add destructor and
8287 (inflow_inferior_data): Change type.
8288 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8289 (get_inflow_inferior_data, inflow_inferior_exit)
8290 (swap_terminal_info, _initialize_inflow): Update.
8292 2019-05-08 Tom Tromey <tom@tromey.com>
8294 * target-dcache.c (target_dcache_cleanup): Remove.
8295 (target_dcache_aspace_key): Change type.
8296 (target_dcache_init_p, target_dcache_invalidate)
8297 (target_dcache_get, target_dcache_get_or_init)
8298 (_initialize_target_dcache): Update.
8299 * dcache.h (struct dcache_deleter): New.
8301 2019-05-08 Tom Tromey <tom@tromey.com>
8303 * symtab.c (struct symbol_cache): Add destructor and
8305 (symbol_cache_key): Move. Change type.
8306 (make_symbol_cache, free_symbol_cache): Remove.
8307 (get_symbol_cache): Update.
8308 (symbol_cache_cleanup): Remove.
8309 (ALL_PSPACES, symbol_cache_flush)
8310 (maintenance_print_symbol_cache)
8311 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8314 2019-05-08 Tom Tromey <tom@tromey.com>
8316 * symtab.c (struct main_info): Add destructor and initializers.
8317 (main_progspace_key): Move. Change type.
8318 (get_main_info): Update.
8319 (main_info_cleanup): Remove.
8320 (_initialize_symtab): Update.
8322 2019-05-08 Tom Tromey <tom@tromey.com>
8324 * registry.h (DECLARE_REGISTRY): Define the _key class.
8326 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8328 * NEWS: Merge two 'New commands' sections.
8330 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8332 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8333 parameter and use Ada language definition instead.
8334 (ada_val_print_ptr): Remove unused language parameter.
8335 (ada_val_print_num): Remove language parameter and use Ada language
8337 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8339 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8340 parameter and use Ada language definition instead.
8341 (ada_val_print_1): Update all ada_val_print_xxx calls.
8342 Remove language parameter.
8343 (ada_val_print): Update ada_val_print_1 call.
8345 2019-05-08 Tom Tromey <tromey@adacore.com>
8347 * remote.c (remote_hw_watchpoint_limit)
8348 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8351 2019-05-08 Tom Tromey <tromey@adacore.com>
8353 * maint.c (_initialize_maint_cmds): Move initialization code to
8355 (watchdog, show_watchdog): Move to remote.c.
8356 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8358 (_initialize_remote): Move initialization code from maint.c.
8359 * defs.h (watchdog): Don't declare.
8361 2019-05-08 Tom Tromey <tromey@adacore.com>
8363 * tui/tui-interp.c: Include main.h.
8364 * interps.c: Include main.h.
8365 * main.h (interpreter_p): Declare.
8366 * defs.h (interpreter_p): Don't declare.
8368 2019-05-08 Tom Tromey <tromey@adacore.com>
8370 * dwarf2loc.c: Include dwarf2read.h.
8371 * defs.h (read_unsigned_leb128): Don't declare.
8372 * dwarf2read.h (read_unsigned_leb128): Declare.
8374 2019-05-08 Tom Tromey <tromey@adacore.com>
8376 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8379 2019-05-08 Tom Tromey <tromey@adacore.com>
8381 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8382 when no wrap column is set.
8384 2019-05-08 Tom Tromey <tromey@adacore.com>
8386 * c-lang.c (c_get_string): Handle non-C-style arrays.
8388 2019-05-08 Tom Tromey <tromey@adacore.com>
8390 * typeprint.c (print_offset_data::update): Print the bit offset,
8391 not the number of bits remaining.
8393 2019-05-08 Tom Tromey <tromey@adacore.com>
8395 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8396 padding at end of comment.
8398 2019-05-08 Tom Tromey <tromey@adacore.com>
8400 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8403 2019-05-06 Tom Tromey <tom@tromey.com>
8405 * common/scoped_mmap.c: Include common-defs.h.
8406 * common/scoped_mmap.h: Don't include config.h.
8408 2019-05-04 Tom Tromey <tom@tromey.com>
8410 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8411 (struct aarch64_call_info): Add initializers.
8412 <si>: Now a std::vector.
8413 (pass_on_stack, aarch64_push_dummy_call): Update.
8415 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8416 Tom Tromey <tom@tromey.com>
8418 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8419 (ppc_threads): Now a std::vector. Now static.
8420 (hwdebug_find_thread_points_by_tid)
8421 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8424 2019-05-04 Tom Tromey <tom@tromey.com>
8426 * arc-tdep.c (arc_tdesc_init): Return bool.
8428 2019-05-04 Tom Tromey <tom@tromey.com>
8430 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8431 Use gdb_assert_not_reached.
8433 2019-05-04 Tom Tromey <tom@tromey.com>
8435 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8438 2019-05-04 Tom Tromey <tom@tromey.com>
8440 * arc-tdep.c (arc_tdesc_init): Use bool.
8442 2019-05-04 Tom Tromey <tom@tromey.com>
8444 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8446 2019-05-04 Tom Tromey <tom@tromey.com>
8448 * cli/cli-cmds.c (valid_command_p): Return bool.
8450 2019-05-04 Tom Tromey <tom@tromey.com>
8452 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8453 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8455 2019-05-04 Raul Tambre <raul@tambre.ee>
8457 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8458 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8459 operator for comparison.
8461 2019-05-04 Tom Tromey <tom@tromey.com>
8463 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8464 (lookup_partial_symbol, print_partial_symbols)
8465 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8466 (psymbol_compare): Update.
8467 (add_psymbol_to_bcache): Clear the entire psymbol.
8468 (maintenance_check_psymtabs): Update.
8469 * psympriv.h (struct partial_symbol): Don't derive from
8470 general_symbol_info.
8471 <obj_section, unrelocated_address, address,
8472 set_unrelocated_address>: Update.
8473 <ginfo>: New member.
8474 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8475 (debug_names::write_psymbols): Update.
8477 2019-05-04 Tom de Vries <tdevries@suse.de>
8479 * contrib/cc-with-tweaks.sh: Support -n arg.
8481 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8483 * corelow.c (core_target::detach): Ensure frame cache and
8484 register caches are cleared.
8485 inferior.c (exit_inferior_1): Likewise.
8487 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8488 Tom Tromey <tom@tromey.com>
8490 * dictionary.c (collate_pending_symbols_by_language): Remove
8491 "struct" from foreach.
8492 * symtab.c (lookup_global_symbol_from_objfile)
8493 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8495 * ser-tcp.c (net_open): Remove "struct" from foreach.
8496 * objfiles.c (objfile_relocate, objfile_rebase)
8497 (objfile_has_symbols): Remove "struct" from foreach.
8498 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8500 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8502 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8503 "struct" from foreach.
8504 * ada-lang.c (create_excep_cond_exprs)
8505 (ada_exception_catchpoint_cond_string): Remove "struct" from
8508 2019-05-03 Tom Tromey <tromey@adacore.com>
8510 * ada-exp.y (convert_char_literal): Check suffix of each
8513 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8516 * ada-exp.y (yywrap): Don't define.
8517 * ada-lex.l (%option): Add noyywrap
8520 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8522 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8523 _WIN32_WINNT to the XP level, unless already defined to a higher
8526 * unittests/parse-connection-spec-selftests.c:
8528 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8531 * symfile.c (find_separate_debug_file): Remove colon from the
8532 drive spec of DOS/Windows file names of the target, so that the
8533 file name produced from DEBUGDIR and the target's directory will
8534 be valid on DOS/Windows systems.
8536 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8538 * rust-lang.c (val_print_struct): Handle printing structures
8541 2019-05-02 Tom Tromey <tromey@adacore.com>
8543 * valarith.c (_initialize_valarith): Remove.
8545 2019-05-01 Tom Tromey <tromey@adacore.com>
8547 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8550 2019-05-01 Tom Tromey <tromey@adacore.com>
8552 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8553 for big-endian copies.
8555 2019-04-30 Ali Tamur <tamur@google.com>
8556 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8557 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8558 (read_3_bytes): New function.
8560 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8562 * windows-nat.c (main_thread_id): Delete.
8563 (handle_output_debug_string): Replace main_thread_id by
8564 current_event.dwThreadId.
8565 (fake_create_process): Likewise.
8566 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8567 Do not set main_thread_id.
8568 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8569 current_event.dwThreadId.
8570 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8572 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8574 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8575 Use current_event.dwThreadId instead of main_thread_id.
8577 2019-04-30 Tom Tromey <tromey@adacore.com>
8579 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8580 (create_excep_cond_exprs): Iterate over program spaces.
8581 (ada_exception_catchpoint_cond_string): Examine all minimal
8582 symbols for exception types.
8584 2019-04-30 Tom Tromey <tromey@adacore.com>
8587 * dwarf2read.c (process_structure_scope): Handle case where type
8588 has template parameters but no symbol was created.
8590 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8591 Chris January <chris.january@arm.com>
8593 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8595 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8597 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8599 * f-typeprint.c (f_print_type): Update rules for printing
8601 (f_type_print_varspec_suffix): Likewise.
8603 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8604 Chris January <chris.january@arm.com>
8606 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8609 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8611 * f-lang.c (build_fortran_types): Change name of void type to
8613 * f-typeprint.c (f_type_print_base): Print the name of the void
8614 type, rather than a fixed string.
8615 * f-valprint.c (f_decorations): Use lower case void string.
8617 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8618 Chris January <chris.january@arm.com>
8620 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8623 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8624 Chris January <chris.january@arm.com>
8625 David Lecomber <david.lecomber@arm.com>
8627 * f-exp.y (BINOP_INTRINSIC): New token.
8628 (exp): New parser rule handling BINOP_INTRINSIC.
8629 (f77_keywords): Add new builtin procedures.
8630 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8631 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8632 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8633 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8634 (print_unop_subexp_f): New function.
8635 (print_binop_subexp_f): New function.
8636 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8637 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8638 (dump_subexp_body_f): Likewise.
8639 (operator_check_f): Likewise.
8640 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8641 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8643 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8645 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8647 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8648 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8649 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8650 (operator_length_f): New fuction.
8651 (print_subexp_f): New function.
8652 (op_name_f): New function.
8653 (dump_subexp_body_f): New function.
8654 (operator_check_f): New function.
8655 (exp_descriptor_f): Replace standard expression handling functions
8657 * gdb/fortran-operator.def: New file.
8658 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8659 * gdb/std-operator.def: Remove UNOP_KIND.
8661 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8663 * std-operator.def: Remove unbalanced, stray double quote
8666 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8667 Chris January <chris.january@arm.com>
8668 Daniel Everett <daniel.everett@arm.com>
8669 Nick Forrington <nick.forrington@arm.com>
8670 Richard Bunt <richard.bunt@arm.com>
8672 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8673 of depth when printing anonymous structs or unions.
8674 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8675 Don't print either the top-level value, or the children if the
8676 max-depth is exceeded.
8677 (ppscm_print_children): When printing the key of a map, allow one
8678 extra level of depth.
8679 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8680 print either the top-level value, or the children if the max-depth
8682 (print_children): When printing the key of a map, allow one extra
8684 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8685 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8686 (user_print_options): Initialise max_depth field.
8687 (val_print_scalar_or_string_type_p): New function.
8688 (val_print): Check to see if the max depth has been reached.
8689 (val_print_check_max_depth): Define new function.
8690 (show_print_max_depth): New function.
8691 (_initialize_valprint): Add 'print max-depth' option.
8692 * valprint.h (struct value_print_options) <max_depth>: New field.
8693 (val_print_check_max_depth): Declare new function.
8694 * NEWS: Document new feature.
8696 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8698 * ada-lang.c (ada_language_defn): Initialise new field.
8699 * c-lang.c (c_is_string_type_p): New function.
8700 (c_language_defn): Initialise new field.
8701 (cplus_language_defn): Initialise new field.
8702 (asm_language_defn): Initialise new field.
8703 (minimal_language_defn): Initialise new field.
8704 * c-lang.h (c_is_string_type_p): Declare new function.
8705 * d-lang.c (d_language_defn): Initialise new field.
8706 * f-lang.c (f_is_string_type_p): New function.
8707 (f_language_defn): Initialise new field.
8708 * go-lang.c (go_is_string_type_p): New function.
8709 (go_language_defn): Initialise new field.
8710 * language.c (default_is_string_type_p): New function.
8711 (unknown_language_defn): Initialise new field.
8712 (auto_language_defn): Initialise new field.
8713 * language.h (struct language_defn) <la_is_string_type_p>: New
8715 (default_is_string_type_p): Declare new function.
8716 * m2-lang.c (m2_language_defn): Initialise new field.
8717 * objc-lang.c (objc_language_defn): Initialise new field.
8718 * opencl-lang.c (opencl_language_defn): Initialise new field.
8719 * p-lang.c (pascal_is_string_type_p): New function.
8720 (pascal_language_defn): Initialise new field.
8721 * rust-lang.c (rust_is_string_type_p): New function.
8722 (rust_language_defn): Initialise new field.
8724 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8726 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8728 * ada-lang.c (ada_language_defn): Initialise new field.
8729 * c-lang.c (c_language_defn): Likewise.
8730 (cplus_language_defn): Likewise.
8731 (asm_language_defn): Likewise.
8732 (minimal_language_defn): Likewise.
8733 * d-lang.c (d_language_defn): Likewise.
8734 * f-lang.c (f_language_defn): Likewise.
8735 * go-lang.c (go_language_defn): Likewise.
8736 * language.c (unknown_language_defn): Likewise.
8737 (auto_language_defn): Likewise.
8738 * m2-lang.c (m2_language_defn): Likewise.
8739 * objc-lang.c (objc_language_defn): Likewise.
8740 * opencl-lang.c (opencl_language_defn): Likewise.
8741 * p-lang.c (pascal_language_defn): Likewise.
8742 * rust-lang.c (rust_language_defn): Likewise.
8744 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8746 * ada-lang.c (ada_is_character_type): Change return type to bool.
8747 (ada_is_string_type): Likewise.
8748 * ada-lang.h (ada_is_character_type): Update declaration
8749 (ada_is_string_type): Likewise.
8751 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8753 Support style in 'frame|thread apply'
8755 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8756 * record.c (record_start, record_stop): Update callers of
8757 execute_command_to_string with false.
8758 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8759 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8761 (class string_file): New constructor with term_out parameter.
8762 Override methods term_out and can_emit_style_escape. New member
8764 (class stdio_file): Override can_emit_style_escape.
8765 (class tee_file): Override term_out and can_emit_style_escape.
8766 * utils.h (can_emit_style_escape): Remove.
8767 * utils.c (can_emit_style_escape): Likewise.
8768 Update all callers of can_emit_style_escape (SOMESTREAM) to
8769 SOMESTREAM->can_emit_style_escape.
8770 * source-cache.c (source_cache::get_source_lines): Likewise.
8771 * stack.c (frame_apply_command_count): Call execute_command_to_string
8772 passing the term_out characteristic of the current gdb_stdout.
8773 * thread.c (thr_try_catch_cmd): Likewise.
8774 * top.c (execute_command_to_string): pass term_out parameter
8775 to construct the string_file for the command output.
8776 * ui-file.c (term_cli_styling): New function (most code moved
8777 from utils.c can_emit_style_escape).
8778 (string_file::string_file, string_file::can_emit_style_escape,
8779 stdio_file::can_emit_style_escape, tee_file::term_out,
8780 tee_file::can_emit_style_escape): New functions.
8782 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8784 * NEWS: Mention the new set|show may-call-functions.
8785 * infcall.c (may_call_functions_p): New variable.
8786 (show_may_call_functions_p): New function.
8787 (call_function_by_hand_dummy): Throws an error if not
8789 (_initialize_infcall): Call add_setshow_boolean_cmd for
8792 2019-04-25 Keith Seitz <keiths@redhat.com>
8795 * cp-support.c (inspect_type): Don't attempt substitutions
8796 of symbol with the same name.
8798 2019-04-25 Tom Tromey <tromey@adacore.com>
8801 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8804 2019-04-25 Tom Tromey <tromey@adacore.com>
8806 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8808 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8809 (gdb_xml_parser::parse): Use std::move.
8810 * python/python-internal.h (gdbpy_convert_exception): Take a const
8812 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8814 * python/py-utils.c (gdbpy_convert_exception): Take a const
8816 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8818 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8820 * mi/mi-main.c (mi_print_exception): Take a const reference.
8821 * main.c (handle_command_errors): Take a const reference.
8822 * linespec.c (parse_linespec): Use std::move.
8823 * infcall.c (run_inferior_call): Use std::move.
8824 (call_function_by_hand_dummy): Use std::move.
8825 * exec.c (try_open_exec_file): Use std::move.
8826 * exceptions.h (exception_print, exception_fprintf)
8827 (exception_print_same): Update.
8828 * exceptions.c (print_exception, exception_print)
8829 (exception_fprintf, exception_print_same): Change parameters to
8831 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8832 * common/new-op.c: Use std::move.
8833 * common/common-exceptions.h (struct gdb_exception): Add move
8835 (struct gdb_exception_error, struct gdb_exception_quit, struct
8836 gdb_quit_bad_alloc): Change constructor to move constructor.
8837 (throw_exception): Change parameter to rvalue reference.
8838 * common/common-exceptions.c (throw_exception): Take rvalue
8840 * cli/cli-interp.c (safe_execute_command): Use std::move.
8841 * breakpoint.c (insert_bp_location, location_to_sals): Use
8844 2019-04-25 Tom Tromey <tromey@adacore.com>
8846 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8847 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8848 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8849 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8850 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8851 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8852 guile/scm-value.c: Use unpack.
8853 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8854 gdbscm_gdb_exception.
8855 (gdbscm_throw_gdb_exception): Likewise.
8856 (struct gdbscm_gdb_exception): New.
8857 (unpack): New function.
8858 (gdbscm_wrap): Use unpack.
8860 2019-04-25 Tom Tromey <tromey@adacore.com>
8862 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8863 (gdb_rl_callback_handler): Use std::move.
8864 * common/common-exceptions.h (struct gdb_exception): Add move
8865 assignment operator.
8866 (throw_exception_sjlj): Change "exception" to const reference.
8867 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8868 (throw_exception_sjlj): Change "exception" to const reference.
8870 2019-04-25 Tom Tromey <tromey@adacore.com>
8872 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8873 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8874 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8876 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8878 * mi/mi-interp.c (mi_interp::exec): Update.
8879 * linespec.c (parse_linespec): Update.
8880 * infcall.c (run_inferior_call): Update.
8881 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8882 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8883 (gdbscm_lookup_global_symbol): Update.
8884 * guile/scm-param.c (gdbscm_parameter_value): Update.
8885 * guile/scm-frame.c (gdbscm_frame_read_register)
8886 (gdbscm_frame_read_var): Update.
8887 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8888 * exec.c (try_open_exec_file): Update.
8889 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8890 (gdb_rl_callback_handler): Update.
8891 * common/common-exceptions.h (exception_none): Don't declare.
8892 * common/common-exceptions.c (exception_none): Don't define.
8893 (struct catcher) <exception>: Update.
8894 * cli/cli-interp.c (safe_execute_command): Update.
8895 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8897 2019-04-25 Ali Tamur <tamur@google.com>
8899 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8900 (read_attribute_value): Likewise.
8901 (dwarf2_read_addr_index): Update comment.
8902 (read_str_index): Add DW_FORM_strx.
8903 (dwarf2_string_attr): Likewise.
8904 (dwarf2_const_value_attr): Likewise.
8905 (dump_die_shallow): Likewise.
8906 (dwarf2_fetch_constant_bytes): Likewise.
8907 (skip_form_bytes): Likewise.
8908 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8910 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8914 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8915 OFFSET. Verify if current mapping contains an ELF header.
8916 (linux_find_memory_regions_full): Adjust call to
8919 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8920 Kang Li <kanglictf@gmail.com>
8924 * dwarf2-frame.c (read_initial_length): Be consistent about using
8925 unsigned representation of length.
8926 (decode_frame_entry_1): Likewise. Check for wraparound of
8927 end pointer as well as buffer overflow.
8929 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8931 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8934 2019-04-24 Tom Tromey <tromey@adacore.com>
8936 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8938 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8940 * s12z-tdep.c (s12z_unwind_pc): Delete.
8941 (s12z_unwind_sp): Delete.
8942 (s12z_gdbarch_init): Don't register deleted functions with
8945 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8947 * rl78-tdep.c (rl78_unwind_sp): Delete.
8948 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8950 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8952 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8953 (xstormy16_unwind_pc): Delete.
8954 (xstormy16_dummy_id): Delete.
8955 (xstormy16_gdbarch_init): Don't register deleted functions with
8958 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8960 * vax-tdep.c (vax_unwind_pc): Delete.
8961 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8965 * v850-tdep.c (v850_unwind_sp): Delete.
8966 (v850_unwind_pc): Delete.
8967 (v850_dummy_id): Delete.
8968 (v850_gdbarch_init): Don't register deleted functions with
8971 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8973 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8974 (tilegx_unwind_pc): Delete.
8975 (tilegx_unwind_dummy_id): Delete.
8976 (tilegx_gdbarch_init): Don't register deleted functions with
8979 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8981 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8982 (tic6x_dummy_id): Delete.
8983 (tic6x_gdbarch_init): Don't register deleted functions with
8986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8988 * sparc-tdep.c (sparc_unwind_pc): Delete.
8989 (sparc32_gdbarch_init): Don't register deleted function with
8992 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8994 * sh-tdep.c (sh_unwind_sp): Delete.
8995 (sh_unwind_pc): Delete.
8996 (sh_dummy_id): Delete.
8997 (sh_gdbarch_init): Don't register deleted functions with
9000 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9002 * score-tdep.c (score_unwind_sp): Delete.
9003 (score_unwind_pc): Delete.
9004 (score_dummy_id): Delete.
9005 (score_gdbarch_init): Don't register deleted functions with
9008 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9010 * rx-tdep.c (rx_unwind_pc): Delete.
9011 (rx_unwind_sp): Delete.
9012 (rx_dummy_id): Delete.
9013 (rx_gdbarch_init): Don't register deleted functions with
9014 gdbarch. Update comment.
9016 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9018 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9019 (rs6000_dummy_id): Delete.
9020 (rs6000_gdbarch_init): Don't register deleted functions with
9023 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9025 * or1k-tdep.c (or1k_dummy_id): Delete.
9026 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9028 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9030 * nios2-tdep.c (nios2_dummy_id): Delete.
9031 (nios2_unwind_sp): Delete.
9032 (nios2_gdbarch_init): Don't register deleted functions with
9035 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9037 * nds32-tdep.c (nds32_dummy_id): Delete.
9038 (nds32_unwind_pc): Delete.
9039 (nds32_unwind_sp): Delete.
9040 (nds32_gdbarch_init): Don't register deleted functions with
9043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9045 * msp430-tdep.c (msp430_unwind_pc): Delete.
9046 (msp430_unwind_sp): Delete.
9047 (msp430_dummy_id): Delete.
9048 (msp430_gdbarch_init): Don't register deleted functions with
9051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9053 * moxie-tdep.c (moxie_unwind_sp): Delete.
9054 (moxie_unwind_pc): Delete.
9055 (moxie_dummy_id): Delete.
9056 (moxie_gdbarch_init): Don't register deleted functions with
9059 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9061 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9062 (mn10300_unwind_pc): Delete.
9063 (mn10300_unwind_sp): Delete.
9064 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9066 (mn10300_frame_unwind_init): Don't register deleted functions with
9069 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9071 * mep-tdep.c (mep_unwind_pc): Delete.
9072 (mep_unwind_sp): Delete.
9073 (mep_dummy_id): Delete.
9074 (mep_gdbarch_init): Don't register deleted functions with
9077 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9079 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9080 (m68hc11_unwind_sp): Delete.
9081 (m68hc11_gdbarch_init): Don't register deleted functions with
9084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9086 * m32r-tdep.c (m32r_unwind_sp): Delete.
9087 (m32r_unwind_pc): Delete.
9088 (m32r_dummy_id): Delete.
9089 (m32r_gdbarch_init): Don't register deleted functions with
9092 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9094 * m32c-tdep.c (m32c_unwind_pc): Delete.
9095 (m32c_unwind_sp): Delete.
9096 (m32c_dummy_id): Delete.
9097 (m32c_gdbarch_init): Don't register deleted functions with
9100 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9102 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9103 (lm32_unwind_pc): Delete.
9104 (lm32_dummy_id): Delete.
9105 (lm32_gdbarch_init): Don't register deleted functions with
9108 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9110 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9111 (iq2000_unwind_pc): Delete.
9112 (iq2000_dummy_id): Delete.
9113 (iq2000_gdbarch_init): Don't register deleted functions with
9116 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9118 * nds32-tdep.c (nds32_type_align): Delete.
9119 (nds32_push_dummy_call): Use type_align instead.
9121 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9123 * arm-tdep.c (arm_type_align): Only handle vector override case.
9124 (arm_push_dummy_call): Use type_align.
9125 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9127 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9129 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9131 (pass_on_stack): Use type_align.
9132 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9135 2019-04-23 Tom Tromey <tromey@adacore.com>
9137 * dwarf2read.c (line_header::file_name_at): Remove unused
9140 2019-04-23 Tom de Vries <tdevries@suse.de>
9143 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9147 2019-03-27 Ali Tamur <tamur@google.com>
9149 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9150 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9151 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9152 (dwarf_expr_context::get_addr_index): Likewise
9153 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9154 (symbol_needs_eval_context::get_addr_index): Likewise
9155 (disassemble_dwarf_expression): Add DW_OP_addrx
9156 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9157 (read_cutu_die_from_dwo): Update comment
9158 (skip_one_die): Add DW_FORM_addrx
9159 (read_attribute_value): Likewise
9160 (var_decode_location): Add DW_OP_addrx
9161 (dwarf2_const_value_attr): Add DW_FORM_addrx
9162 (dump_die_shallow): Likewise
9163 (dwarf2_fetch_constant_bytes): Likewise
9164 (decode_locdesc): Add DW_OP_addrx
9165 (skip_form_bytes): Add DW_FORM_addrx
9167 2019-04-22 Ali Tamur <tamur@google.com>
9169 * MAINTAINERS (Write After Approval): Add self.
9171 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9173 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9174 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9175 (open_symbol_file_object): Likewise.
9176 (svr4_default_sos): Add info parameter.
9177 (svr4_read_so_list): Likewise.
9178 (svr4_current_sos_direct): Adjust functions calls to pass down
9180 (svr4_current_sos_1): Add info parameter.
9181 (svr4_current_sos): Call get_svr4_info, pass info down to
9183 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9185 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9187 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9189 (probes_table_remove_objfile_probes): Likewise.
9190 (register_solib_event_probe): Add info parameter.
9191 (solist_update_incremental): Pass info parameter down to
9193 (disable_probes_interface): Add info parameter.
9194 (svr4_handle_solib_event): Pass current_program_space to
9195 get_svr4_info. Adjust disable_probes_interface cleanup.
9196 (svr4_create_probe_breakpoints): Add info parameter, pass it
9197 down to register_solib_event_probe.
9198 (svr4_create_solib_event_breakpoints): Add info parameter,
9199 pass it down to svr4_create_probe_breakpoints.
9200 (enable_break): Pass info down to
9201 svr4_create_solib_event_breakpoints.
9202 (svr4_solib_create_inferior_hook): Pass current_program_space to
9204 (svr4_clear_solib): Likewise.
9206 2019-04-22 Pedro Alves <palves@redhat.com>
9208 * solib-svr4.c (svr4_free_objfile_observer): New.
9209 (probe_and_action::objfile): New field.
9210 (probes_table_htab_remove_objfile_probes)
9211 (probes_table_remove_objfile_probes): New functions.
9212 (register_solib_event_probe): Add 'objfile' parameter. Store it
9213 in the new probe_and_action. Don't store the probe in 'lookup'.
9214 (svr4_create_probe_breakpoints): Pass objfile to
9215 register_solib_event_probe.
9216 (_initialize_svr4_solib): Register a free_objfile observer.
9218 2019-04-19 Tom Tromey <tom@tromey.com>
9220 * common/queue.h: Remove.
9222 2019-04-19 Tom Tromey <tom@tromey.com>
9224 * event-loop.c: Don't include "common/queue.h".
9226 2019-04-19 Tom Tromey <tom@tromey.com>
9228 * remote.c (remote_target): Use delete.
9229 * remote-notif.h: Include <list>, not "common/queue.h".
9230 (notif_client_p): Remove typedef.
9231 (remote_notif_state): Add constructor, destructor, initializer.
9232 <notif_queue>: Now a std::list.
9233 (remote_notif_state_xfree): Don't declare.
9234 * remote-notif.c (remote_notif_process, handle_notification)
9235 (remote_notif_state_allocate): Update.
9236 (~remote_notif_state): Rename from remote_notif_state_xfree.
9238 2019-04-19 Tom Tromey <tom@tromey.com>
9240 * symfile.c (reread_symbols): Update.
9241 * objfiles.c (objfile_register_static_link)
9242 (objfile_lookup_static_link): Update
9243 (~objfile) Don't delete static_links.
9244 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9246 2019-04-19 Tom Tromey <tom@tromey.com>
9248 * type-stack.h (struct type_stack) <insert>: Constify string.
9249 * type-stack.c (type_stack::insert): Constify string.
9250 * gdbtypes.h (lookup_template_type): Update.
9251 (address_space_name_to_int): Update.
9252 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9254 (lookup_template_type): Make name const.
9255 * c-exp.y: Update rules.
9256 (lex_one_token, classify_name, classify_inner_name)
9257 (c_print_token): Update.
9258 * p-exp.y: Update rules.
9260 * f-exp.y: Update rules.
9262 * d-exp.y: Update rules.
9263 (lex_one_token, classify_name, classify_inner_name): Update.
9264 * parse.c (write_dollar_variable, copy_name): Return std::string.
9265 * parser-defs.h (copy_name): Change return type.
9266 * m2-exp.y: Update rules.
9268 * go-exp.y (lex_one_token): Update.
9270 (classify_unsafe_function, classify_packaged_name)
9271 (classify_name, yylex): Update.
9273 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9275 * configure.ac: add --enable-source-highlight switch.
9276 * configure: Regenerate.
9277 * top.c (print_gdb_version): plumb --enable-source-highlight
9278 status to "show configuration".
9280 2019-04-19 Tom Tromey <tromey@adacore.com>
9282 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9284 (empty_record, ada_template_to_fixed_record_type_1)
9285 (template_to_static_fixed_type)
9286 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9287 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9288 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9291 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9294 * source.c (print_source_lines_base): Advance "iter" when a
9295 control character is seen.
9297 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9299 * inferior.h (struct infcall_suspend_state_deleter):
9300 Catch exception in destructor to avoid crash.
9302 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9304 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9305 close to the add_com "shell".
9307 2019-04-18 Tom Tromey <tromey@adacore.com>
9309 * process-stratum-target.h (class process_stratum_target)
9310 <stratum>: Add "final".
9312 2019-04-17 Tom Tromey <tromey@adacore.com>
9314 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9315 against nullptr before use.
9317 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9319 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9321 2019-04-17 Jim Wilson <jimw@sifive.com>
9322 Andrew Burgess <andrew.burgess@embecosm.com>
9324 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9325 code read might fail, assume 4-byte breakpoint in that case.
9327 2019-04-15 Leszek Swirski <leszeks@google.com>
9329 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9330 rather than a hand-rolled POD check when checking for forced MEMORY
9333 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9335 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9336 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9338 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9339 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9340 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9343 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9345 * aarch64-linux-nat.c
9346 (aarch64_linux_nat_target::thread_architecture): Add override.
9347 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9350 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9352 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9354 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9356 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9357 target types of size 96-bits, add some additional comments, and
9358 check that the builtin type we found was the correct size.
9360 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9362 * utils.c (prompt_for_continue): Don't restore the styling at the
9363 end, as applied_style has the wrong value. This fixes styling in
9364 long lists of file names that are interrupted by the "Continue?"
9367 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9369 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9370 * c-lang.c (c_language_defn): Likewise.
9371 (cplus_language_defn): Likewise.
9372 (asm_language_defn): Likewise.
9373 (minimal_language_defn): Likewise.
9374 * d-lang.c (d_language_defn): Likewise.
9375 * f-lang.c (f_language_defn): Likewise.
9376 * go-lang.c (go_language_defn): Likewise.
9377 * language.c (unknown_language_defn): Likewise.
9378 (auto_language_defn): Likewise.
9379 * language.h (struct language_defn): Remove la_magic field.
9380 (LANG_MAGIC): Delete.
9381 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9382 * objc-lang.c (objc_language_defn): Likewise.
9383 * opencl-lang.c (opencl_language_defn): Likewise.
9384 * p-lang.c (pascal_language_defn): Likewise.
9385 * rust-lang.c (rust_language_defn): Likewise.
9387 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9389 * riscv-tdep.c (riscv_type_align): New function.
9390 (riscv_type_alignment): Delete.
9391 (riscv_arg_location): Use 'type_align'.
9392 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9394 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9396 * gdbtypes.c (type_align): A struct with no non-static fields also
9399 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9401 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9403 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9405 (riscv_struct_info::analyse): New implementation using new
9406 analyse_inner member function.
9407 (riscv_struct_info::field_offset): New member function.
9408 (riscv_struct_info::m_offsets): New member variable.
9409 (riscv_struct_info::analyse_inner): New private member function,
9410 takes the old implementation of riscv_struct_info::analyse but
9411 extended to track field offsets.
9412 (riscv_call_arg_struct): Update the struct folding special cases
9413 to handle cases where empty C++ structs, which are non-zero
9415 (riscv_arg_location): Initialise the length of each location, a
9416 non-zero length now indicates the location is in use.
9417 (riscv_push_dummy_call): Allow for the first location having a
9418 non-zero offset when setting up arguments.
9419 (riscv_return_value): Likewise, but for return values.
9421 2019-04-11 Tom Tromey <tromey@adacore.com>
9423 * utils.c (internal_vproblem): Make "msg" const.
9425 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9427 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9428 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9429 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9430 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9432 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9434 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9436 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9437 of amd64_collect_native_gregset.
9438 (amd64_linux_nat_target::store_registers): Likewise.
9440 2019-04-10 Tom Tromey <tom@tromey.com>
9442 * symtab.c (lookup_global_symbol_from_objfile)
9443 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9444 * objfiles.h (class separate_debug_iterator): New.
9445 (class separate_debug_range): New.
9446 (struct objfile) <separate_debug_objfiles>: New method.
9447 (objfile_separate_debug_iterate): Don't declare.
9448 * objfiles.c (separate_debug_iterator::operator++): Rename from
9449 objfile_separate_debug_iterate.
9450 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9452 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9455 2019-04-10 Tom Tromey <tom@tromey.com>
9457 * symfile.c (reread_symbols): Remove old comment.
9458 * objfiles.c (free_all_objfiles): Fix a typo.
9460 2019-04-10 Tom Tromey <tom@tromey.com>
9462 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9463 * minsyms.c (lookup_minimal_symbol): Use foreach.
9464 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9465 (lookup_minimal_symbol_solib_trampoline): Likewise.
9466 * symfile.c (reread_symbols): Use foreach.
9468 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9469 Tom Tromey <tromey@adacore.com>
9472 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9473 (rust_lex_int_test): Change "value" to be LONGEST.
9474 (rust_lex_tests): Add test for long integer literal.
9476 2019-04-09 Tom Tromey <tromey@adacore.com>
9478 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9480 (extended_remote_target::attach): Update.
9481 (remote_target::remote_notice_new_inferior): Update.
9482 (remote_target::add_current_inferior_and_thread): Update.
9483 * inferior.c (exit_inferior_1): Use "false".
9484 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9486 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9488 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9489 the "start" command.
9491 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9493 * python/py-inferior.c (infpy_thread_from_thread_handle):
9494 Adjust comments to reflect renaming of thread_from_thread_handle
9495 to thread_from_handle. Adjust keywords. Fix type error message.
9496 (inferior_object_methods): Add thread_from_handle. Retain
9497 thread_from_thread_handle, but mark it as deprecated.
9499 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9501 * gdbthread.h (find_thread_by_handle): Revise declaration.
9502 * thread.c (find_thread_by_handle): Likewise. Adjust
9504 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9505 support for buffer objects as handles.
9507 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9509 * python/py-infthread.c (thpy_thread_handle): New function.
9510 (thread_object_methods): Register thpy_thread_handle.
9512 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9514 * gdbthread.h (thread_to_thread_handle): Declare.
9515 * thread.c (gdbtypes.h): Include.
9516 (thread_to_thread_handle): New function.
9518 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9519 (target_thread_info_to_thread_handle): Declare.
9520 * target.c (target_thread_info_to_thread_handle): New function.
9521 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9522 * target-delegates.c: Regenerate.
9524 * linux-thread-db.c (class thread_db_target): Add method
9525 thread_info_to_thread_handle.
9526 (thread_db_target::thread_info_to_thread_handle): Define.
9527 * remote.c (class remote_target): Add new method
9528 thread_info_to_thread_handle.
9529 (remote_target::thread_info_to_thread_handle): Define.
9531 2019-04-08 Pedro Alves <palves@redhat.com>
9533 * common/common-exceptions.c (throw_exception): Don't create
9534 named object to throw; throw directly.
9535 (throw_it): Likewise. Don't initialize gdb_exception::message
9536 here, with new; pass FMT and AP to the ctor instead.
9537 * common/common-exceptions.h: Include <string>.
9538 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9539 const char *, va_list)): New ctor. Use std::make_shared.
9540 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9542 (gdb_exception_error::gdb_exception_error(enum errors, const char
9544 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9546 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9548 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9549 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9552 2019-04-08 Tom Tromey <tom@tromey.com>
9554 * valops.c (value_rtti_indirect_type): Replace throw_exception
9556 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9558 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9560 * target.c (target_translate_tls_address): Replace throw_exception
9562 * stack.c (frame_apply_command_count): Replace throw_exception
9564 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9566 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9568 * rs6000-tdep.c (rs6000_frame_cache)
9569 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9570 * remote.c: Replace throw_exception with throw.
9571 * record-full.c (record_full_message, record_full_wait_1)
9572 (record_full_restore): Replace throw_exception with throw.
9574 (get_thread_current_frame_id, record_btrace_start_replaying)
9575 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9576 (cmd_record_btrace_start): Replace throw_exception with throw.
9577 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9579 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9580 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9582 (find_linespec_symbols): Replace throw_exception with throw.
9583 * infrun.c (displaced_step_prepare, resume): Replace
9584 throw_exception with throw.
9585 * infcmd.c (post_create_inferior): Replace throw_exception with
9587 * inf-loop.c (inferior_event_handler): Replace throw_exception
9589 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9590 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9591 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9592 (get_prev_frame_always, get_frame_pc_if_available)
9593 (get_frame_address_in_block_if_available, get_frame_language):
9594 Replace throw_exception with throw.
9595 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9596 throw_exception with throw.
9597 * eval.c (fetch_subexp_value, evaluate_var_value)
9598 (evaluate_funcall, evaluate_subexp_standard): Replace
9599 throw_exception with throw.
9600 * dwarf2loc.c (call_site_find_chain)
9601 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9602 Replace throw_exception with throw.
9603 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9605 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9607 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9608 * completer.c (complete_line_internal): Replace throw_exception
9610 * compile/compile-object-run.c (compile_object_run): Replace
9611 throw_exception with throw.
9612 * cli/cli-script.c (process_next_line): Replace throw_exception
9614 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9615 (btrace_enable, btrace_maint_update_pt_packets): Replace
9616 throw_exception with throw.
9617 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9618 throw_exception with throw.
9619 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9620 throw_exception with throw.
9621 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9622 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9623 * aarch64-tdep.c (aarch64_make_prologue_cache)
9624 (aarch64_make_stub_cache): Replace throw_exception with throw.
9626 2019-04-08 Tom Tromey <tom@tromey.com>
9628 * common/common-exceptions.c (throw_exception): Rename from
9629 throw_exception_cxx. Remove old copy. Make argument const.
9630 (throw_it): Create and throw exception objects directly.
9631 * common/common-exceptions.h (throw_exception): Make argument
9633 (struct gdb_exception_error): Add constructor.
9634 (struct gdb_exception_quit): Add constructor.
9636 2019-04-08 Tom Tromey <tom@tromey.com>
9638 * common/common-exceptions.h (exception_rethrow): Don't declare.
9639 (TRY_SJLJ): Update comment.
9640 (TRY, CATCH, END_CATCH): Remove.
9641 * common/common-exceptions.c (exception_rethrow): Remove.
9643 2019-04-08 Tom Tromey <tom@tromey.com>
9645 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9647 (gdb_exception_error): Rename from
9648 gdb_exception_RETURN_MASK_ERROR.
9649 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9650 (gdb_quit_bad_alloc): Update.
9651 * aarch64-tdep.c: Update.
9652 * ada-lang.c: Update.
9653 * ada-typeprint.c: Update.
9654 * ada-valprint.c: Update.
9655 * amd64-tdep.c: Update.
9656 * arch-utils.c: Update.
9657 * break-catch-throw.c: Update.
9658 * breakpoint.c: Update.
9660 * c-varobj.c: Update.
9661 * cli/cli-cmds.c: Update.
9662 * cli/cli-interp.c: Update.
9663 * cli/cli-script.c: Update.
9664 * common/common-exceptions.c: Update.
9665 * common/new-op.c: Update.
9666 * common/selftest.c: Update.
9667 * compile/compile-c-symbols.c: Update.
9668 * compile/compile-cplus-symbols.c: Update.
9669 * compile/compile-object-load.c: Update.
9670 * compile/compile-object-run.c: Update.
9671 * completer.c: Update.
9672 * corelow.c: Update.
9674 * cp-support.c: Update.
9675 * cp-valprint.c: Update.
9676 * darwin-nat.c: Update.
9677 * disasm-selftests.c: Update.
9678 * dtrace-probe.c: Update.
9679 * dwarf-index-cache.c: Update.
9680 * dwarf-index-write.c: Update.
9681 * dwarf2-frame-tailcall.c: Update.
9682 * dwarf2-frame.c: Update.
9683 * dwarf2loc.c: Update.
9684 * dwarf2read.c: Update.
9686 * event-loop.c: Update.
9687 * event-top.c: Update.
9689 * f-valprint.c: Update.
9690 * fbsd-tdep.c: Update.
9691 * frame-unwind.c: Update.
9693 * gdbtypes.c: Update.
9694 * gnu-v3-abi.c: Update.
9695 * guile/guile-internal.h: Update.
9696 * guile/scm-block.c: Update.
9697 * guile/scm-breakpoint.c: Update.
9698 * guile/scm-cmd.c: Update.
9699 * guile/scm-disasm.c: Update.
9700 * guile/scm-frame.c: Update.
9701 * guile/scm-lazy-string.c: Update.
9702 * guile/scm-math.c: Update.
9703 * guile/scm-param.c: Update.
9704 * guile/scm-ports.c: Update.
9705 * guile/scm-pretty-print.c: Update.
9706 * guile/scm-symbol.c: Update.
9707 * guile/scm-symtab.c: Update.
9708 * guile/scm-type.c: Update.
9709 * guile/scm-value.c: Update.
9710 * i386-linux-tdep.c: Update.
9711 * i386-tdep.c: Update.
9712 * inf-loop.c: Update.
9713 * infcall.c: Update.
9717 * language.c: Update.
9718 * linespec.c: Update.
9719 * linux-fork.c: Update.
9720 * linux-nat.c: Update.
9721 * linux-tdep.c: Update.
9722 * linux-thread-db.c: Update.
9724 * mi/mi-cmd-break.c: Update.
9725 * mi/mi-cmd-stack.c: Update.
9726 * mi/mi-interp.c: Update.
9727 * mi/mi-main.c: Update.
9728 * objc-lang.c: Update.
9729 * p-valprint.c: Update.
9731 * ppc-linux-tdep.c: Update.
9732 * printcmd.c: Update.
9733 * python/py-arch.c: Update.
9734 * python/py-breakpoint.c: Update.
9735 * python/py-cmd.c: Update.
9736 * python/py-finishbreakpoint.c: Update.
9737 * python/py-frame.c: Update.
9738 * python/py-framefilter.c: Update.
9739 * python/py-gdb-readline.c: Update.
9740 * python/py-inferior.c: Update.
9741 * python/py-infthread.c: Update.
9742 * python/py-lazy-string.c: Update.
9743 * python/py-linetable.c: Update.
9744 * python/py-objfile.c: Update.
9745 * python/py-param.c: Update.
9746 * python/py-prettyprint.c: Update.
9747 * python/py-progspace.c: Update.
9748 * python/py-record-btrace.c: Update.
9749 * python/py-record.c: Update.
9750 * python/py-symbol.c: Update.
9751 * python/py-type.c: Update.
9752 * python/py-unwind.c: Update.
9753 * python/py-utils.c: Update.
9754 * python/py-value.c: Update.
9755 * python/python.c: Update.
9756 * record-btrace.c: Update.
9757 * record-full.c: Update.
9758 * remote-fileio.c: Update.
9760 * riscv-tdep.c: Update.
9761 * rs6000-aix-tdep.c: Update.
9762 * rs6000-tdep.c: Update.
9763 * rust-exp.y: Update.
9764 * rust-lang.c: Update.
9765 * s390-tdep.c: Update.
9766 * selftest-arch.c: Update.
9767 * solib-dsbt.c: Update.
9768 * solib-frv.c: Update.
9769 * solib-spu.c: Update.
9770 * solib-svr4.c: Update.
9772 * sparc64-linux-tdep.c: Update.
9774 * symfile-mem.c: Update.
9775 * symmisc.c: Update.
9779 * tracefile-tfile.c: Update.
9780 * tui/tui.c: Update.
9781 * typeprint.c: Update.
9782 * unittests/cli-utils-selftests.c: Update.
9783 * unittests/parse-connection-spec-selftests.c: Update.
9785 * valprint.c: Update.
9788 * windows-nat.c: Update.
9789 * x86-linux-nat.c: Update.
9790 * xml-support.c: Update.
9792 2019-04-08 Tom Tromey <tom@tromey.com>
9794 * xml-support.c: Use C++ exception handling.
9795 * x86-linux-nat.c: Use C++ exception handling.
9796 * windows-nat.c: Use C++ exception handling.
9797 * varobj.c: Use C++ exception handling.
9798 * value.c: Use C++ exception handling.
9799 * valprint.c: Use C++ exception handling.
9800 * valops.c: Use C++ exception handling.
9801 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9803 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9804 * typeprint.c: Use C++ exception handling.
9805 * tui/tui.c: Use C++ exception handling.
9806 * tracefile-tfile.c: Use C++ exception handling.
9807 * top.c: Use C++ exception handling.
9808 * thread.c: Use C++ exception handling.
9809 * target.c: Use C++ exception handling.
9810 * symmisc.c: Use C++ exception handling.
9811 * symfile-mem.c: Use C++ exception handling.
9812 * stack.c: Use C++ exception handling.
9813 * sparc64-linux-tdep.c: Use C++ exception handling.
9814 * solib.c: Use C++ exception handling.
9815 * solib-svr4.c: Use C++ exception handling.
9816 * solib-spu.c: Use C++ exception handling.
9817 * solib-frv.c: Use C++ exception handling.
9818 * solib-dsbt.c: Use C++ exception handling.
9819 * selftest-arch.c: Use C++ exception handling.
9820 * s390-tdep.c: Use C++ exception handling.
9821 * rust-lang.c: Use C++ exception handling.
9822 * rust-exp.y: Use C++ exception handling.
9823 * rs6000-tdep.c: Use C++ exception handling.
9824 * rs6000-aix-tdep.c: Use C++ exception handling.
9825 * riscv-tdep.c: Use C++ exception handling.
9826 * remote.c: Use C++ exception handling.
9827 * remote-fileio.c: Use C++ exception handling.
9828 * record-full.c: Use C++ exception handling.
9829 * record-btrace.c: Use C++ exception handling.
9830 * python/python.c: Use C++ exception handling.
9831 * python/py-value.c: Use C++ exception handling.
9832 * python/py-utils.c: Use C++ exception handling.
9833 * python/py-unwind.c: Use C++ exception handling.
9834 * python/py-type.c: Use C++ exception handling.
9835 * python/py-symbol.c: Use C++ exception handling.
9836 * python/py-record.c: Use C++ exception handling.
9837 * python/py-record-btrace.c: Use C++ exception handling.
9838 * python/py-progspace.c: Use C++ exception handling.
9839 * python/py-prettyprint.c: Use C++ exception handling.
9840 * python/py-param.c: Use C++ exception handling.
9841 * python/py-objfile.c: Use C++ exception handling.
9842 * python/py-linetable.c: Use C++ exception handling.
9843 * python/py-lazy-string.c: Use C++ exception handling.
9844 * python/py-infthread.c: Use C++ exception handling.
9845 * python/py-inferior.c: Use C++ exception handling.
9846 * python/py-gdb-readline.c: Use C++ exception handling.
9847 * python/py-framefilter.c: Use C++ exception handling.
9848 * python/py-frame.c: Use C++ exception handling.
9849 * python/py-finishbreakpoint.c: Use C++ exception handling.
9850 * python/py-cmd.c: Use C++ exception handling.
9851 * python/py-breakpoint.c: Use C++ exception handling.
9852 * python/py-arch.c: Use C++ exception handling.
9853 * printcmd.c: Use C++ exception handling.
9854 * ppc-linux-tdep.c: Use C++ exception handling.
9855 * parse.c: Use C++ exception handling.
9856 * p-valprint.c: Use C++ exception handling.
9857 * objc-lang.c: Use C++ exception handling.
9858 * mi/mi-main.c: Use C++ exception handling.
9859 * mi/mi-interp.c: Use C++ exception handling.
9860 * mi/mi-cmd-stack.c: Use C++ exception handling.
9861 * mi/mi-cmd-break.c: Use C++ exception handling.
9862 * main.c: Use C++ exception handling.
9863 * linux-thread-db.c: Use C++ exception handling.
9864 * linux-tdep.c: Use C++ exception handling.
9865 * linux-nat.c: Use C++ exception handling.
9866 * linux-fork.c: Use C++ exception handling.
9867 * linespec.c: Use C++ exception handling.
9868 * language.c: Use C++ exception handling.
9869 * jit.c: Use C++ exception handling.
9870 * infrun.c: Use C++ exception handling.
9871 * infcmd.c: Use C++ exception handling.
9872 * infcall.c: Use C++ exception handling.
9873 * inf-loop.c: Use C++ exception handling.
9874 * i386-tdep.c: Use C++ exception handling.
9875 * i386-linux-tdep.c: Use C++ exception handling.
9876 * guile/scm-value.c: Use C++ exception handling.
9877 * guile/scm-type.c: Use C++ exception handling.
9878 * guile/scm-symtab.c: Use C++ exception handling.
9879 * guile/scm-symbol.c: Use C++ exception handling.
9880 * guile/scm-pretty-print.c: Use C++ exception handling.
9881 * guile/scm-ports.c: Use C++ exception handling.
9882 * guile/scm-param.c: Use C++ exception handling.
9883 * guile/scm-math.c: Use C++ exception handling.
9884 * guile/scm-lazy-string.c: Use C++ exception handling.
9885 * guile/scm-frame.c: Use C++ exception handling.
9886 * guile/scm-disasm.c: Use C++ exception handling.
9887 * guile/scm-cmd.c: Use C++ exception handling.
9888 * guile/scm-breakpoint.c: Use C++ exception handling.
9889 * guile/scm-block.c: Use C++ exception handling.
9890 * guile/guile-internal.h: Use C++ exception handling.
9891 * gnu-v3-abi.c: Use C++ exception handling.
9892 * gdbtypes.c: Use C++ exception handling.
9893 * frame.c: Use C++ exception handling.
9894 * frame-unwind.c: Use C++ exception handling.
9895 * fbsd-tdep.c: Use C++ exception handling.
9896 * f-valprint.c: Use C++ exception handling.
9897 * exec.c: Use C++ exception handling.
9898 * event-top.c: Use C++ exception handling.
9899 * event-loop.c: Use C++ exception handling.
9900 * eval.c: Use C++ exception handling.
9901 * dwarf2read.c: Use C++ exception handling.
9902 * dwarf2loc.c: Use C++ exception handling.
9903 * dwarf2-frame.c: Use C++ exception handling.
9904 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9905 * dwarf-index-write.c: Use C++ exception handling.
9906 * dwarf-index-cache.c: Use C++ exception handling.
9907 * dtrace-probe.c: Use C++ exception handling.
9908 * disasm-selftests.c: Use C++ exception handling.
9909 * darwin-nat.c: Use C++ exception handling.
9910 * cp-valprint.c: Use C++ exception handling.
9911 * cp-support.c: Use C++ exception handling.
9912 * cp-abi.c: Use C++ exception handling.
9913 * corelow.c: Use C++ exception handling.
9914 * completer.c: Use C++ exception handling.
9915 * compile/compile-object-run.c: Use C++ exception handling.
9916 * compile/compile-object-load.c: Use C++ exception handling.
9917 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9918 * compile/compile-c-symbols.c: Use C++ exception handling.
9919 * common/selftest.c: Use C++ exception handling.
9920 * common/new-op.c: Use C++ exception handling.
9921 * cli/cli-script.c: Use C++ exception handling.
9922 * cli/cli-interp.c: Use C++ exception handling.
9923 * cli/cli-cmds.c: Use C++ exception handling.
9924 * c-varobj.c: Use C++ exception handling.
9925 * btrace.c: Use C++ exception handling.
9926 * breakpoint.c: Use C++ exception handling.
9927 * break-catch-throw.c: Use C++ exception handling.
9928 * arch-utils.c: Use C++ exception handling.
9929 * amd64-tdep.c: Use C++ exception handling.
9930 * ada-valprint.c: Use C++ exception handling.
9931 * ada-typeprint.c: Use C++ exception handling.
9932 * ada-lang.c: Use C++ exception handling.
9933 * aarch64-tdep.c: Use C++ exception handling.
9935 2019-04-08 Tom Tromey <tom@tromey.com>
9937 * xml-support.c (gdb_xml_parser::parse): Update.
9938 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9939 * value.c (show_convenience): Update.
9940 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9941 (test_parse_flags_qcs): Update.
9942 * thread.c (thr_try_catch_cmd): Update.
9943 * target.c (target_translate_tls_address): Update.
9944 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9945 (info_frame_command_core, frame_apply_command_count): Update.
9946 * rust-exp.y (rust_lex_exception_test): Update.
9947 * riscv-tdep.c (riscv_print_one_register_info): Update.
9948 * remote.c (remote_target::enable_btrace): Update.
9949 * record-btrace.c (record_btrace_enable_warn): Update.
9950 * python/py-utils.c (gdbpy_convert_exception): Update.
9951 * printcmd.c (do_one_display, print_variable_and_value): Update.
9952 * mi/mi-main.c (mi_print_exception): Update.
9953 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9954 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9955 * linux-nat.c (linux_nat_target::attach): Update.
9956 * linux-fork.c (class scoped_switch_fork_info): Update.
9957 * infrun.c (displaced_step_prepare): Update.
9958 * infcall.c (call_function_by_hand_dummy): Update.
9959 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9960 * gnu-v3-abi.c (print_one_vtable): Update.
9961 * frame.c (get_prev_frame_always): Update.
9962 * f-valprint.c (info_common_command_for_block): Update.
9963 * exec.c (try_open_exec_file): Update.
9964 * exceptions.c (print_exception, exception_print)
9965 (exception_fprintf, exception_print_same): Update.
9966 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9967 * dwarf-index-cache.c (index_cache::store)
9968 (index_cache::lookup_gdb_index): Update.
9969 * darwin-nat.c (maybe_cache_shell): Update.
9970 * cp-valprint.c (cp_print_value_fields): Update.
9971 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9972 (gcc_cplus_symbol_address): Update.
9973 * compile/compile-c-symbols.c (gcc_convert_symbol)
9974 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9975 * common/selftest.c: Update.
9976 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9978 (exception_try_scope_entry, exception_try_scope_exit): Don't
9980 (struct exception_try_scope): Remove.
9981 (TRY): Don't use exception_try_scope.
9982 (struct gdb_exception): Add constructor, operator=.
9984 (struct gdb_exception_RETURN_MASK_ALL)
9985 (struct gdb_exception_RETURN_MASK_ERROR)
9986 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9987 (struct gdb_quit_bad_alloc): Update.
9988 * common/common-exceptions.c (exception_none): Change
9990 (struct catcher) <state, exception>: Initialize inline.
9991 <prev>: Remove member.
9992 (current_catcher): Remove.
9993 (catchers): New global.
9994 (exceptions_state_mc_init): Simplify.
9995 (catcher_pop): Remove.
9996 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9997 (try_scope_depth, exception_try_scope_entry)
9998 (exception_try_scope_exit): Remove.
9999 (throw_exception_sjlj): Update.
10000 (exception_messages, exception_messages_size): Remove.
10001 (throw_it): Simplify.
10002 (gdb_exception_sliced_copy): Remove.
10003 (throw_exception_cxx): Update.
10004 * cli/cli-script.c (script_from_file): Update.
10005 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10007 * ada-valprint.c (ada_val_print): Update.
10008 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10009 (create_excep_cond_exprs): Update.
10011 2019-04-08 Tom Tromey <tom@tromey.com>
10013 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10014 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10015 (TRY, CATCH, END_CATCH): Remove some definitions.
10016 * common/common-exceptions.c: Don't use GDB_XCPT.
10017 (catcher_list_size): Remove.
10018 (throw_exception, throw_it): Simplify.
10020 2019-04-05 Tom Tromey <tom@tromey.com>
10022 Revert the header-sorting patch.
10023 * ft32-tdep.c: Revert.
10024 * frv-tdep.c: Revert.
10025 * frv-linux-tdep.c: Revert.
10027 * frame-unwind.c: Revert.
10028 * frame-base.c: Revert.
10029 * fork-child.c: Revert.
10030 * findvar.c: Revert.
10031 * findcmd.c: Revert.
10032 * filesystem.c: Revert.
10033 * filename-seen-cache.h: Revert.
10034 * filename-seen-cache.c: Revert.
10035 * fbsd-tdep.c: Revert.
10036 * fbsd-nat.h: Revert.
10037 * fbsd-nat.c: Revert.
10038 * f-valprint.c: Revert.
10039 * f-typeprint.c: Revert.
10040 * f-lang.c: Revert.
10041 * extension.h: Revert.
10042 * extension.c: Revert.
10043 * extension-priv.h: Revert.
10044 * expprint.c: Revert.
10047 * exceptions.c: Revert.
10048 * event-top.c: Revert.
10049 * event-loop.c: Revert.
10051 * elfread.c: Revert.
10052 * dwarf2read.h: Revert.
10053 * dwarf2read.c: Revert.
10054 * dwarf2loc.c: Revert.
10055 * dwarf2expr.h: Revert.
10056 * dwarf2expr.c: Revert.
10057 * dwarf2-frame.c: Revert.
10058 * dwarf2-frame-tailcall.c: Revert.
10059 * dwarf-index-write.h: Revert.
10060 * dwarf-index-write.c: Revert.
10061 * dwarf-index-common.c: Revert.
10062 * dwarf-index-cache.h: Revert.
10063 * dwarf-index-cache.c: Revert.
10064 * dummy-frame.c: Revert.
10065 * dtrace-probe.c: Revert.
10066 * disasm.h: Revert.
10067 * disasm.c: Revert.
10068 * disasm-selftests.c: Revert.
10069 * dictionary.c: Revert.
10070 * dicos-tdep.c: Revert.
10071 * demangle.c: Revert.
10072 * dcache.h: Revert.
10073 * dcache.c: Revert.
10074 * darwin-nat.h: Revert.
10075 * darwin-nat.c: Revert.
10076 * darwin-nat-info.c: Revert.
10077 * d-valprint.c: Revert.
10078 * d-namespace.c: Revert.
10079 * d-lang.c: Revert.
10081 * csky-tdep.c: Revert.
10082 * csky-linux-tdep.c: Revert.
10083 * cris-tdep.c: Revert.
10084 * cris-linux-tdep.c: Revert.
10085 * cp-valprint.c: Revert.
10086 * cp-support.c: Revert.
10087 * cp-namespace.c: Revert.
10088 * cp-abi.c: Revert.
10089 * corelow.c: Revert.
10090 * corefile.c: Revert.
10091 * continuations.c: Revert.
10092 * completer.h: Revert.
10093 * completer.c: Revert.
10094 * complaints.c: Revert.
10095 * coffread.c: Revert.
10096 * coff-pe-read.c: Revert.
10097 * cli-out.h: Revert.
10098 * cli-out.c: Revert.
10099 * charset.c: Revert.
10100 * c-varobj.c: Revert.
10101 * c-valprint.c: Revert.
10102 * c-typeprint.c: Revert.
10103 * c-lang.c: Revert.
10104 * buildsym.c: Revert.
10105 * buildsym-legacy.c: Revert.
10106 * build-id.h: Revert.
10107 * build-id.c: Revert.
10108 * btrace.c: Revert.
10109 * bsd-uthread.c: Revert.
10110 * breakpoint.h: Revert.
10111 * breakpoint.c: Revert.
10112 * break-catch-throw.c: Revert.
10113 * break-catch-syscall.c: Revert.
10114 * break-catch-sig.c: Revert.
10115 * blockframe.c: Revert.
10117 * bfin-tdep.c: Revert.
10118 * bfin-linux-tdep.c: Revert.
10119 * bfd-target.c: Revert.
10120 * bcache.c: Revert.
10121 * ax-general.c: Revert.
10122 * ax-gdb.h: Revert.
10123 * ax-gdb.c: Revert.
10124 * avr-tdep.c: Revert.
10126 * auto-load.c: Revert.
10127 * arm-wince-tdep.c: Revert.
10128 * arm-tdep.c: Revert.
10129 * arm-symbian-tdep.c: Revert.
10130 * arm-pikeos-tdep.c: Revert.
10131 * arm-obsd-tdep.c: Revert.
10132 * arm-nbsd-tdep.c: Revert.
10133 * arm-nbsd-nat.c: Revert.
10134 * arm-linux-tdep.c: Revert.
10135 * arm-linux-nat.c: Revert.
10136 * arm-fbsd-tdep.c: Revert.
10137 * arm-fbsd-nat.c: Revert.
10138 * arm-bsd-tdep.c: Revert.
10139 * arch-utils.c: Revert.
10140 * arc-tdep.c: Revert.
10141 * arc-newlib-tdep.c: Revert.
10142 * annotate.h: Revert.
10143 * annotate.c: Revert.
10144 * amd64-windows-tdep.c: Revert.
10145 * amd64-windows-nat.c: Revert.
10146 * amd64-tdep.c: Revert.
10147 * amd64-sol2-tdep.c: Revert.
10148 * amd64-obsd-tdep.c: Revert.
10149 * amd64-obsd-nat.c: Revert.
10150 * amd64-nbsd-tdep.c: Revert.
10151 * amd64-nbsd-nat.c: Revert.
10152 * amd64-nat.c: Revert.
10153 * amd64-linux-tdep.c: Revert.
10154 * amd64-linux-nat.c: Revert.
10155 * amd64-fbsd-tdep.c: Revert.
10156 * amd64-fbsd-nat.c: Revert.
10157 * amd64-dicos-tdep.c: Revert.
10158 * amd64-darwin-tdep.c: Revert.
10159 * amd64-bsd-nat.c: Revert.
10160 * alpha-tdep.c: Revert.
10161 * alpha-obsd-tdep.c: Revert.
10162 * alpha-nbsd-tdep.c: Revert.
10163 * alpha-mdebug-tdep.c: Revert.
10164 * alpha-linux-tdep.c: Revert.
10165 * alpha-linux-nat.c: Revert.
10166 * alpha-bsd-tdep.c: Revert.
10167 * alpha-bsd-nat.c: Revert.
10168 * aix-thread.c: Revert.
10170 * addrmap.c: Revert.
10171 * ada-varobj.c: Revert.
10172 * ada-valprint.c: Revert.
10173 * ada-typeprint.c: Revert.
10174 * ada-tasks.c: Revert.
10175 * ada-lang.c: Revert.
10176 * aarch64-tdep.c: Revert.
10177 * aarch64-ravenscar-thread.c: Revert.
10178 * aarch64-newlib-tdep.c: Revert.
10179 * aarch64-linux-tdep.c: Revert.
10180 * aarch64-linux-nat.c: Revert.
10181 * aarch64-fbsd-tdep.c: Revert.
10182 * aarch64-fbsd-nat.c: Revert.
10183 * aarch32-linux-nat.c: Revert.
10185 2019-04-05 Tom Tromey <tom@tromey.com>
10187 * ft32-tdep.c: Sort headers.
10188 * frv-tdep.c: Sort headers.
10189 * frv-linux-tdep.c: Sort headers.
10190 * frame.c: Sort headers.
10191 * frame-unwind.c: Sort headers.
10192 * frame-base.c: Sort headers.
10193 * fork-child.c: Sort headers.
10194 * findvar.c: Sort headers.
10195 * findcmd.c: Sort headers.
10196 * filesystem.c: Sort headers.
10197 * filename-seen-cache.h: Sort headers.
10198 * filename-seen-cache.c: Sort headers.
10199 * fbsd-tdep.c: Sort headers.
10200 * fbsd-nat.h: Sort headers.
10201 * fbsd-nat.c: Sort headers.
10202 * f-valprint.c: Sort headers.
10203 * f-typeprint.c: Sort headers.
10204 * f-lang.c: Sort headers.
10205 * extension.h: Sort headers.
10206 * extension.c: Sort headers.
10207 * extension-priv.h: Sort headers.
10208 * expprint.c: Sort headers.
10209 * exec.h: Sort headers.
10210 * exec.c: Sort headers.
10211 * exceptions.c: Sort headers.
10212 * event-top.c: Sort headers.
10213 * event-loop.c: Sort headers.
10214 * eval.c: Sort headers.
10215 * elfread.c: Sort headers.
10216 * dwarf2read.h: Sort headers.
10217 * dwarf2read.c: Sort headers.
10218 * dwarf2loc.c: Sort headers.
10219 * dwarf2expr.h: Sort headers.
10220 * dwarf2expr.c: Sort headers.
10221 * dwarf2-frame.c: Sort headers.
10222 * dwarf2-frame-tailcall.c: Sort headers.
10223 * dwarf-index-write.h: Sort headers.
10224 * dwarf-index-write.c: Sort headers.
10225 * dwarf-index-common.c: Sort headers.
10226 * dwarf-index-cache.h: Sort headers.
10227 * dwarf-index-cache.c: Sort headers.
10228 * dummy-frame.c: Sort headers.
10229 * dtrace-probe.c: Sort headers.
10230 * disasm.h: Sort headers.
10231 * disasm.c: Sort headers.
10232 * disasm-selftests.c: Sort headers.
10233 * dictionary.c: Sort headers.
10234 * dicos-tdep.c: Sort headers.
10235 * demangle.c: Sort headers.
10236 * dcache.h: Sort headers.
10237 * dcache.c: Sort headers.
10238 * darwin-nat.h: Sort headers.
10239 * darwin-nat.c: Sort headers.
10240 * darwin-nat-info.c: Sort headers.
10241 * d-valprint.c: Sort headers.
10242 * d-namespace.c: Sort headers.
10243 * d-lang.c: Sort headers.
10244 * ctf.c: Sort headers.
10245 * csky-tdep.c: Sort headers.
10246 * csky-linux-tdep.c: Sort headers.
10247 * cris-tdep.c: Sort headers.
10248 * cris-linux-tdep.c: Sort headers.
10249 * cp-valprint.c: Sort headers.
10250 * cp-support.c: Sort headers.
10251 * cp-namespace.c: Sort headers.
10252 * cp-abi.c: Sort headers.
10253 * corelow.c: Sort headers.
10254 * corefile.c: Sort headers.
10255 * continuations.c: Sort headers.
10256 * completer.h: Sort headers.
10257 * completer.c: Sort headers.
10258 * complaints.c: Sort headers.
10259 * coffread.c: Sort headers.
10260 * coff-pe-read.c: Sort headers.
10261 * cli-out.h: Sort headers.
10262 * cli-out.c: Sort headers.
10263 * charset.c: Sort headers.
10264 * c-varobj.c: Sort headers.
10265 * c-valprint.c: Sort headers.
10266 * c-typeprint.c: Sort headers.
10267 * c-lang.c: Sort headers.
10268 * buildsym.c: Sort headers.
10269 * buildsym-legacy.c: Sort headers.
10270 * build-id.h: Sort headers.
10271 * build-id.c: Sort headers.
10272 * btrace.c: Sort headers.
10273 * bsd-uthread.c: Sort headers.
10274 * breakpoint.h: Sort headers.
10275 * breakpoint.c: Sort headers.
10276 * break-catch-throw.c: Sort headers.
10277 * break-catch-syscall.c: Sort headers.
10278 * break-catch-sig.c: Sort headers.
10279 * blockframe.c: Sort headers.
10280 * block.c: Sort headers.
10281 * bfin-tdep.c: Sort headers.
10282 * bfin-linux-tdep.c: Sort headers.
10283 * bfd-target.c: Sort headers.
10284 * bcache.c: Sort headers.
10285 * ax-general.c: Sort headers.
10286 * ax-gdb.h: Sort headers.
10287 * ax-gdb.c: Sort headers.
10288 * avr-tdep.c: Sort headers.
10289 * auxv.c: Sort headers.
10290 * auto-load.c: Sort headers.
10291 * arm-wince-tdep.c: Sort headers.
10292 * arm-tdep.c: Sort headers.
10293 * arm-symbian-tdep.c: Sort headers.
10294 * arm-pikeos-tdep.c: Sort headers.
10295 * arm-obsd-tdep.c: Sort headers.
10296 * arm-nbsd-tdep.c: Sort headers.
10297 * arm-nbsd-nat.c: Sort headers.
10298 * arm-linux-tdep.c: Sort headers.
10299 * arm-linux-nat.c: Sort headers.
10300 * arm-fbsd-tdep.c: Sort headers.
10301 * arm-fbsd-nat.c: Sort headers.
10302 * arm-bsd-tdep.c: Sort headers.
10303 * arch-utils.c: Sort headers.
10304 * arc-tdep.c: Sort headers.
10305 * arc-newlib-tdep.c: Sort headers.
10306 * annotate.h: Sort headers.
10307 * annotate.c: Sort headers.
10308 * amd64-windows-tdep.c: Sort headers.
10309 * amd64-windows-nat.c: Sort headers.
10310 * amd64-tdep.c: Sort headers.
10311 * amd64-sol2-tdep.c: Sort headers.
10312 * amd64-obsd-tdep.c: Sort headers.
10313 * amd64-obsd-nat.c: Sort headers.
10314 * amd64-nbsd-tdep.c: Sort headers.
10315 * amd64-nbsd-nat.c: Sort headers.
10316 * amd64-nat.c: Sort headers.
10317 * amd64-linux-tdep.c: Sort headers.
10318 * amd64-linux-nat.c: Sort headers.
10319 * amd64-fbsd-tdep.c: Sort headers.
10320 * amd64-fbsd-nat.c: Sort headers.
10321 * amd64-dicos-tdep.c: Sort headers.
10322 * amd64-darwin-tdep.c: Sort headers.
10323 * amd64-bsd-nat.c: Sort headers.
10324 * alpha-tdep.c: Sort headers.
10325 * alpha-obsd-tdep.c: Sort headers.
10326 * alpha-nbsd-tdep.c: Sort headers.
10327 * alpha-mdebug-tdep.c: Sort headers.
10328 * alpha-linux-tdep.c: Sort headers.
10329 * alpha-linux-nat.c: Sort headers.
10330 * alpha-bsd-tdep.c: Sort headers.
10331 * alpha-bsd-nat.c: Sort headers.
10332 * aix-thread.c: Sort headers.
10333 * agent.c: Sort headers.
10334 * addrmap.c: Sort headers.
10335 * ada-varobj.c: Sort headers.
10336 * ada-valprint.c: Sort headers.
10337 * ada-typeprint.c: Sort headers.
10338 * ada-tasks.c: Sort headers.
10339 * ada-lang.c: Sort headers.
10340 * aarch64-tdep.c: Sort headers.
10341 * aarch64-ravenscar-thread.c: Sort headers.
10342 * aarch64-newlib-tdep.c: Sort headers.
10343 * aarch64-linux-tdep.c: Sort headers.
10344 * aarch64-linux-nat.c: Sort headers.
10345 * aarch64-fbsd-tdep.c: Sort headers.
10346 * aarch64-fbsd-nat.c: Sort headers.
10347 * aarch32-linux-nat.c: Sort headers.
10349 2019-04-04 Tom Tromey <tom@tromey.com>
10351 * varobj.c (varobj_create): Update.
10352 * rust-exp.y (struct rust_parser) <update_innermost_block,
10353 lookup_symbol>: New methods.
10354 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10356 (rust_parser::rust_lookup_type)
10357 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10358 * printcmd.c (display_command, do_one_display): Update.
10359 * parser-defs.h (struct parser_state) <parser_state>: Add
10360 "tracker" parameter.
10361 (block_tracker): New member.
10362 (class innermost_block_tracker) <innermost_block_tracker>: Add
10364 <reset>: Remove method.
10365 (innermost_block): Don't declare.
10366 (null_post_parser): Update.
10367 * parse.c (innermost_block): Remove global.
10368 (write_dollar_variable): Update.
10369 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10370 Remove "tracker_types" parameter.
10371 (parse_expression): Add "tracker" parameter.
10372 (parse_expression_for_completion): Update.
10373 (null_post_parser): Add "tracker" parameter.
10374 * p-exp.y: Update rules.
10375 * m2-exp.y: Update rules.
10376 * language.h (struct language_defn) <la_post_parser>: Add
10377 "tracker" parameter.
10378 * go-exp.y: Update rules.
10379 * f-exp.y: Update rules.
10380 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10382 * d-exp.y: Update rules.
10383 * c-exp.y: Update rules.
10384 * breakpoint.c (set_breakpoint_condition): Create an
10385 innermost_block_tracker.
10386 (watch_command_1): Likewise.
10387 * ada-lang.c (resolve): Add "tracker" parameter.
10388 (resolve_subexp): Likewise.
10389 * ada-exp.y (write_var_from_sym): Update.
10391 2019-04-04 Tom Tromey <tom@tromey.com>
10393 * type-stack.h: New file.
10394 * type-stack.c: New file.
10395 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10397 (insert_into_type_stack, insert_type, push_type, push_type_int)
10398 (insert_type_address_space, pop_type, pop_type_int)
10399 (pop_typelist, pop_type_stack, append_type_stack)
10400 (push_type_stack, get_type_stack, push_typelist)
10401 (follow_type_instance_flags, follow_types): Don't declare.
10402 * parse.c (type_stack): Remove global.
10403 (parse_exp_in_context): Update.
10404 (insert_into_type_stack, insert_type, push_type, push_type_int)
10405 (insert_type_address_space, pop_type, pop_type_int)
10406 (pop_typelist, pop_type_stack, append_type_stack)
10407 (push_type_stack, get_type_stack, push_typelist)
10408 (follow_type_instance_flags, follow_types): Remove (moved to
10410 * f-exp.y (type_stack): New global.
10412 (push_kind_type, f_parse): Update.
10413 * d-exp.y (type_stack): New global.
10416 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10418 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10419 (HFILES_NO_SRCDIR): Add type-stack.h.
10421 2019-04-04 Tom Tromey <tom@tromey.com>
10423 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10424 (rust_parser::convert_ast_to_expression, rust_parse)
10425 (rust_lex_test_completion, rust_lex_tests): Update.
10426 * parser-defs.h (struct expr_completion_state): New.
10427 (struct parser_state) <parser_state>: Add completion parameter.
10428 <mark_struct_expression, mark_completion_tag>: New methods.
10429 <parse_completion, m_completion_state>: New members.
10430 (prefixify_expression, null_post_parser): Update.
10431 (mark_struct_expression, mark_completion_tag): Don't declare.
10432 * parse.c (parse_completion, expout_last_struct)
10433 (expout_tag_completion_type, expout_completion_name): Remove
10435 (parser_state::mark_struct_expression)
10436 (parser_state::mark_completion_tag): Now methods.
10437 (prefixify_expression): Add last_struct parameter.
10438 (prefixify_subexp): Likewise.
10439 (parse_exp_1): Update.
10440 (parse_exp_in_context): Add cstate parameter. Update.
10441 (parse_expression_for_completion): Create an
10442 expr_completion_state.
10443 (null_post_parser): Add "completion" parameter.
10444 * p-exp.y: Update rules.
10446 * language.h (struct language_defn) <la_post_parser>: Add
10447 "completing" parameter.
10448 * go-exp.y: Update rules.
10449 (lex_one_token): Update.
10450 * expression.h (parse_completion): Don't declare.
10451 * d-exp.y: Update rules.
10452 (lex_one_token): Update rules.
10453 * c-exp.y: Update rules.
10454 (lex_one_token): Update.
10455 * ada-lang.c (resolve): Add "parse_completion" parameter.
10456 (resolve_subexp): Likewise.
10457 (ada_resolve_function): Likewise.
10459 2019-04-04 Tom Tromey <tom@tromey.com>
10461 * parser-defs.h (struct parser_state) <start_arglist,
10462 end_arglist>: New methods.
10463 <arglist_len, m_funcall_chain>: New members.
10464 (arglist_len, start_arglist, end_arglist): Don't declare.
10465 * parse.c (arglist_len, funcall_chain): Remove global.
10466 (start_arglist, end_arglist): Remove functions.
10467 (parse_exp_in_context): Update.
10468 * p-exp.y: Update rules.
10469 * m2-exp.y: Update rules.
10470 * go-exp.y: Update rules.
10471 * f-exp.y: Update rules.
10472 * d-exp.y: Update rules.
10473 * c-exp.y: Update rules.
10475 2019-04-04 Tom Tromey <tom@tromey.com>
10477 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10478 lex_operator, push_back>: New methods.
10480 (rust_parser::lex_hex, lex_escape): Rename and update.
10481 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10482 (rust_parser::lex_operator): Rename and update.
10483 (rust_parser::lex_number, rustyylex, rustyyerror)
10484 (rust_lex_test_init, rust_lex_test_sequence)
10485 (rust_lex_test_push_back, rust_lex_tests): Update.
10486 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10488 <lexptr, prev_lexptr>: New members.
10489 (lexptr, prev_lexptr): Don't declare.
10490 * parse.c (lexptr, prev_lexptr): Remove globals.
10491 (parse_exp_in_context): Update.
10492 * p-exp.y (yylex, yyerror): Update.
10493 * m2-exp.y (parse_number, yylex, yyerror): Update.
10494 * go-exp.y (lex_one_token, yyerror): Update.
10495 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10496 * d-exp.y (lex_one_token, yyerror): Update.
10497 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10498 (lex_one_token, yyerror): Update.
10499 * ada-lex.l (YY_INPUT): Update.
10500 (rewind_to_char): Update.
10501 * ada-exp.y (yyerror): Update.
10503 2019-04-04 Tom Tromey <tom@tromey.com>
10505 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10506 * parser-defs.h (struct parser_state) <parser_state>: Add new
10508 <comma_terminates>: New member.
10509 (comma_terminates): Don't declare global.
10510 * parse.c (comma_terminates): Remove global.
10511 (parse_exp_in_context): Update.
10512 * p-exp.y (yylex): Update.
10513 * m2-exp.y (yylex): Update.
10514 * go-exp.y (lex_one_token): Update.
10515 * f-exp.y (yylex): Update.
10516 * d-exp.y (lex_one_token): Update.
10517 * c-exp.y (lex_one_token): Update.
10518 * ada-lex.l: Update.
10520 2019-04-04 Tom Tromey <tom@tromey.com>
10522 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10523 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10524 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10525 * parser-defs.h (paren_depth): Don't declare.
10526 * parse.c (paren_depth): Remove global.
10527 (parse_exp_in_context): Update.
10528 * p-exp.y (paren_depth): New global.
10529 (pascal_parse): Initialize it.
10530 * m2-exp.y (paren_depth): New global.
10531 (m2_parse): Initialize it.
10532 * go-exp.y (paren_depth): New global.
10533 (go_parse): Initialize it.
10534 * f-exp.y (paren_depth): New global.
10535 (f_parse): Initialize it.
10536 * d-exp.y (paren_depth): New global.
10537 (d_parse): Initialize it.
10538 * c-exp.y (paren_depth): New global.
10539 (c_parse): Initialize it.
10540 * ada-lex.l (paren_depth): New global.
10541 (lexer_init): Initialize it.
10543 2019-04-04 Tom Tromey <tom@tromey.com>
10545 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10546 (rust_parser::convert_ast_to_type)
10547 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10548 * parser-defs.h (struct parser_state) <parser_state>: Add
10549 parameters. Initialize new members.
10550 <expression_context_block, expression_context_pc>: New members.
10551 * parse.c (expression_context_block, expression_context_pc):
10553 (parse_exp_in_context): Update.
10554 * p-exp.y: Update all rules.
10556 * m2-exp.y: Update all rules.
10558 * go-exp.y (yylex): Update.
10559 * f-exp.y (yylex): Update.
10560 * d-exp.y: Update all rules.
10562 * c-exp.y: Update all rules.
10563 (lex_one_token, classify_name, yylex, c_parse): Update.
10564 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10566 2019-04-04 Tom Tromey <tom@tromey.com>
10568 * gdbarch.h, gdbarch.c: Rebuild.
10569 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10571 (struct stap_parse_info): Replace "parser_state" with
10573 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10574 (parser_state): New class.
10575 * parse.c (expr_builder): Rename.
10576 (expr_builder::release): Rename.
10577 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10578 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10579 (write_exp_elt_longcst, write_exp_elt_floatcst)
10580 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10581 (write_exp_string_vector, write_exp_bitstring)
10582 (write_exp_msymbol, mark_struct_expression)
10583 (write_dollar_variable)
10584 (insert_type_address_space, increase_expout_size): Replace
10585 "parser_state" with "expr_builder".
10586 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10587 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10588 "parser_state" with "expr_builder".
10590 2019-04-04 Tom Tromey <tom@tromey.com>
10592 * rust-exp.y: Replace "parse_language" with method call.
10594 (yylex): Replace "parse_language" with method call.
10596 (yylex): Replace "parse_language" with method call.
10597 * go-exp.y (classify_name): Replace "parse_language" with method
10599 * f-exp.y (yylex): Replace "parse_language" with method call.
10600 * d-exp.y (lex_one_token): Replace "parse_language" with method
10603 (lex_one_token, classify_name, yylex): Replace "parse_language"
10605 * ada-exp.y (find_primitive_type, type_char)
10606 (type_system_address): Replace "parse_language" with method call.
10608 2019-04-04 Tom Tromey <tom@tromey.com>
10610 * rust-exp.y: Replace "parse_gdbarch" with method call.
10611 * parse.c (write_dollar_variable, insert_type_address_space):
10612 Replace "parse_gdbarch" with method call.
10613 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10615 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10617 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10618 "parse_gdbarch" with method call.
10619 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10621 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10622 "parse_gdbarch" with method call.
10623 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10624 "parse_gdbarch" with method call.
10625 * c-exp.y (parse_type, parse_number, classify_name): Replace
10626 "parse_gdbarch" with method call.
10627 * ada-lex.l: Replace "parse_gdbarch" with method call.
10628 * ada-exp.y (parse_type, find_primitive_type, type_char)
10629 (type_system_address): Replace "parse_gdbarch" with method call.
10631 2019-04-04 Tom Tromey <tom@tromey.com>
10633 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10634 * stap-probe.c (stap_parse_argument): Update.
10635 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10636 initial_size parameter.
10637 * rust-exp.y (rust_lex_tests): Update.
10638 * parse.c (parser_state): Update.
10639 (parse_exp_in_context): Update.
10640 * parser-defs.h (struct parser_state) <parser_state>: Remove
10641 "initial_size" parameter.
10643 2019-04-04 Tom Tromey <tom@tromey.com>
10645 * parser-defs.h (increase_expout_size): Don't declare.
10646 * parse.c (increase_expout_size): Now static.
10648 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10650 * gnu-nat.c (gnu_nat_target::wait): Fix
10651 target_waitstatus_to_string call.
10653 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10655 * eval.c (evaluate_subexp_standard): Handle internal functions
10656 during Fortran function call handling.
10658 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10660 * NEWS: Mention new internal functions.
10661 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10662 (read_base_type): Use dwarf2_init_complex_target_type.
10663 * value.c (creal_internal_fn): New function.
10664 (cimag_internal_fn): New function.
10665 (_initialize_values): Register new internal functions.
10667 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10669 * infrun.c (stop_all_threads): If debug_infrun, always
10670 trace the wait status after wait_one, using
10671 target_waitstatus_to_string and target_pid_to_str.
10672 (handle_inferior_event): Replace various trace of
10673 wait status kind by a single trace.
10674 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10675 wait status kind image by target_waitstatus_to_string.
10676 * target/waitstatus.c (target_waitstatus_to_string): Fix
10679 2019-04-01 Tom Tromey <tromey@adacore.com>
10682 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10684 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10685 Pedro Alves <palves@redhat.com>
10687 * top.c (quit_force): Call 'finalize_values'.
10688 * value.c (finalize_values): New function.
10689 * value.h (finalize_values): Declare.
10691 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10693 * NEWS: Announce $_gdb_major and $_gdb_minor.
10695 * top.c (init_gdb_version_vars): New function.
10696 (gdb_init): Call init_gdb_version_vars.
10698 2019-03-29 Tom Tromey <tromey@adacore.com>
10700 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10701 help text. Remove dead code.
10703 2019-03-29 Keith Seitz <keiths@redhat.com>
10705 From Siddhesh Poyarekar:
10706 * f-lang.h (f77_get_upperbound): Return LONGEST.
10707 (f77_get_lowerbound): Likewise.
10708 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10709 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10711 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10712 plongest to format print it.
10713 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10714 (f77_get_upperbound): Likewise.
10715 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10716 LOWER_BOUND to LONGEST.
10717 (f77_create_arrayprint_offset_tbl): Likewise.
10719 2019-03-29 Keith Seitz <keiths@redhat.com>
10721 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10722 %s/pulongest for TYPE_LENGTH instead of %d in format
10724 * ada-typerint.c (ada_print_type): Likewise.
10725 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10726 * compile/compile-c-support.c (generate_register_struct): Likewise.
10727 * gdbtypes.c (recursive_dump_type): Likewise.
10728 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10729 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10730 instead of %d in format strings.
10731 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10732 to std::min to ULONGEST.
10733 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10734 instead of %d in format strings.
10735 * tracepoint.c (info_scope_command): Likewise.
10736 * typeprint.c (print_offset_data::update)
10737 (print_offset_data::finish): Likewise.
10738 * xtensa-tdep.c (xtensa_store_return_value)
10739 (xtensa_push_dummy_call): Likewise.
10741 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10743 * windows-nat.c (display_selector): Fixed format specifications
10746 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10748 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10750 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10752 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10753 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10754 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10755 (nios2_linux_init_abi): Install it.
10757 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10759 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10761 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10763 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10765 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10766 Tom Tromey <tromey@adacore.com>
10768 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10770 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10772 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10773 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10774 method to compute the bounds of range types. Also print "[evaluated]"
10775 if the bounds' values come from a dynamic evaluation.
10777 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10779 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10780 whitespace when pretty printing is on.
10782 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10784 * ppc-linux-nat.c: Add include.
10786 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10788 * NEWS: Mention AArch64 Pointer Authentication.
10790 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10792 * arm-linux-nat.c: Add include.
10794 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10796 * source-cache.c (source_cache::get_source_lines): Re-read
10797 fullname after calling open_source_file.
10799 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10801 * NEWS: Mention TLS support for FreeBSD.
10803 2019-03-25 Tom Tromey <tromey@adacore.com>
10805 * minsyms.c (BUNCH_SIZE): Update comment.
10806 (~minimal_symbol_reader): Remove old comment.
10807 (compact_minimal_symbols): Update comment.
10808 (minimal_symbol_reader::install): Remove old comment. Update
10811 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10813 * s390-linux-nat.c: Add include.
10815 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10817 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10818 Call linux_get_hwcap.
10819 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10821 (aarch64_linux_get_hwcap): Remove function.
10822 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10824 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10826 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10827 * linux-tdep.c (linux_get_hwcap): Add function.
10828 (linux_get_hwcap2): Likewise.
10829 * linux-tdep.h (linux_get_hwcap): Add declaration.
10830 (linux_get_hwcap2): Likewise.
10831 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10832 (ppc_linux_get_hwcap2): Likewise.
10833 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10835 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10836 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10837 (ppc_linux_nat_target::read_description): Likewise.
10838 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10839 * s390-linux-nat.c: Likewise.
10840 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10842 2019-03-24 Tom Tromey <tom@tromey.com>
10844 * ada-lang.c (standard_lookup): Simplify initialization.
10845 (ada_lookup_symbol_nonlocal): Simplify return.
10846 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10847 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10848 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10849 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10851 * solib.c (solib_global_lookup): Simplify.
10852 * symtab.c (null_block_symbol): Remove.
10853 (symbol_cache_lookup): Simplify returns.
10854 (lookup_language_this): Simplify returns.
10855 (lookup_symbol_aux): Simplify return.
10856 (lookup_local_symbol): Simplify returns.
10857 (lookup_global_symbol_from_objfile): Simplify return.
10858 (lookup_symbol_in_objfile_symtabs)
10859 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10860 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10861 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10862 * cp-namespace.c (cp_lookup_bare_symbol)
10863 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10864 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10865 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10866 (cp_lookup_symbol_via_imports): Simplify initialization.
10867 (find_symbol_in_baseclass): Likewise.
10868 * symtab.h (null_block_symbol): Remove.
10869 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10870 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10871 (d_lookup_symbol_module): Likewise.
10872 (find_symbol_in_baseclass): Simplify initialization.
10874 2019-03-24 Tom Tromey <tom@tromey.com>
10876 * expression.h: Don't include symtab.h.
10877 (struct block): Forward declare.
10879 2019-03-24 Tom Tromey <tom@tromey.com>
10881 * c-exp.y (typebase): Remove casts.
10882 * gdbtypes.c (lookup_unsigned_typename, )
10883 (lookup_signed_typename): Remove cast.
10884 * eval.c (parse_to_comma_and_eval): Remove cast.
10885 * parse.c (write_dollar_variable): Remove cast.
10886 * block.h (struct block) <superblock>: Now const.
10887 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10888 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10889 (map_block): Make "block" const.
10890 * symfile.h (struct quick_symbol_functions)
10891 <map_matching_symbols>: Constify block argument to "callback".
10892 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10894 (find_pc_sect_compunit_symtab): Make "b" const.
10895 (find_symbol_at_address): Likewise.
10896 (search_symbols): Likewise.
10897 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10898 (dw2_debug_names_lookup_symbol): Likewise.
10899 (dw2_map_matching_symbols): Update.
10900 * p-valprint.c (pascal_val_print): Remove "block".
10901 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10902 (aux_add_nonlocal_symbols): Make "block" const.
10903 (resolve_subexp): Remove cast.
10904 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10906 (iterate_over_file_blocks): Likewise.
10907 * f-exp.y (%union) <bval>: Remove.
10908 * coffread.c (patch_opaque_types): Make "b" const.
10909 * spu-tdep.c (spu_catch_start): Make "block" const.
10910 * c-valprint.c (print_unpacked_pointer): Remove "block".
10911 * symmisc.c (dump_symtab_1): Make "b" const.
10912 (block_depth): Make "block" const.
10913 * d-exp.y (%union) <bval>: Remove.
10914 * cp-support.h (cp_lookup_rtti_type): Update.
10915 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10916 * psymtab.c (psym_lookup_symbol): Make "block" const.
10917 (maintenance_check_psymtabs): Make "b" const.
10918 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10919 (enumerate_locals, enumerate_args): Update.
10920 * python/py-symtab.c (stpy_global_block): Make "block" const.
10921 (stpy_static_block): Likewise.
10922 * inline-frame.c (block_starting_point_at): Make "new_block"
10924 * block.c (find_block_in_blockvector): Make return type const.
10925 (blockvector_for_pc_sect): Make "b" const.
10926 (find_block_in_blockvector): Make "b" const.
10928 2019-03-23 Tom Tromey <tom@tromey.com>
10930 * varobj.c (varobj_create): Update.
10931 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10932 * printcmd.c (display_command, do_one_display): Don't reset
10934 * parser-defs.h (enum innermost_block_tracker_type): Move to
10936 (innermost_block): Update comment.
10937 * parse.c (parse_exp_1): Add tracker_types parameter.
10938 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10939 tracker_types parameter. Reset innermost_block.
10940 (parse_exp_in_context): Remove.
10941 (parse_expression_for_completion): Update.
10942 * objfiles.c (~objfile): Don't reset expression_context_block or
10944 * expression.h (enum innermost_block_tracker_type): Move from
10946 (parse_exp_1): Add tracker_types parameter.
10947 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10948 reset innermost_block.
10950 2019-03-23 Tom Tromey <tom@tromey.com>
10952 * objfiles.h: Include bcache.h.
10954 2019-03-23 Tom Tromey <tom@tromey.com>
10956 * linespec.c (get_current_search_block): Use
10957 scoped_restore_current_language.
10958 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10960 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10961 Jiong Wang <jiong.wang@arm.com>
10963 * aarch64-linux-tdep.c
10964 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10966 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10968 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10969 Jiong Wang <jiong.wang@arm.com>
10971 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10973 (aarch64_analyze_prologue_test): Add PACIASP test.
10974 (aarch64_prologue_prev_register): Unmask PC value.
10976 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10977 Jiong Wang <jiong.wang@arm.com>
10979 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10980 (aarch64_dwarf2_prev_register): Unmask PC value.
10981 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10982 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10983 DW_CFA_AARCH64_negate_ra_state.
10984 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10986 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10987 Jiong Wang <jiong.wang@arm.com>
10989 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10991 (aarch64_pseudo_register_name): Likewise.
10992 (aarch64_pseudo_register_type): Likewise.
10993 (aarch64_pseudo_register_reggroup_p): Likewise.
10994 (aarch64_gdbarch_init): Add pauth registers.
10995 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10996 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10997 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10998 (struct gdbarch_tdep): Add regnum for ra_state.
11000 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11001 Jiong Wang <jiong.wang@arm.com>
11003 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11005 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11006 Jiong Wang <jiong.wang@arm.com>
11008 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11010 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11011 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11012 (aarch64_gdbarch_init): Add puth registers.
11013 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11014 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11015 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11017 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11018 Jiong Wang <jiong.wang@arm.com>
11020 * aarch64-linux-nat.c
11021 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11022 * aarch64-linux-tdep.c
11023 (aarch64_linux_core_read_description): Likewise.
11024 (aarch64_linux_get_hwcap): New function.
11025 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11026 (aarch64_linux_get_hwcap): New declaration.
11028 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11029 Jiong Wang <jiong.wang@arm.com>
11031 * aarch64-linux-nat.c
11032 (aarch64_linux_nat_target::read_description): Add pauth param.
11033 * aarch64-linux-tdep.c
11034 (aarch64_linux_core_read_description): Likewise.
11035 * aarch64-tdep.c (struct target_desc): Add in pauth.
11036 (aarch64_read_description): Add pauth param.
11037 (aarch64_gdbarch_init): Likewise.
11038 * aarch64-tdep.h (aarch64_read_description): Likewise.
11039 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11040 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11041 * features/Makefile: Add new files.
11042 * features/aarch64-pauth.c: New file.
11043 * features/aarch64-pauth.xml: New file.
11045 2019-03-20 Tom Tromey <tromey@adacore.com>
11047 * infrun.c (handle_inferior_event): Rename from
11048 handle_inferior_event_1. Create a scoped_value_mark.
11049 (handle_inferior_event): Remove.
11051 2019-03-19 Tom Tromey <tromey@adacore.com>
11053 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11054 * infrun.h (print_stop_event): Add "displays" parameter.
11055 * infrun.c (print_stop_event): Add "displays" parameter.
11057 2019-03-19 Pedro Alves <palves@redhat.com>
11059 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11060 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11061 to -1. Fix TABs vs spaces.
11062 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11063 * tui/tui-out.h (tui_ui_out) Add intro comments.
11064 <m_line, m_start_of_line>: In-class initialize, and add describing
11067 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11069 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11071 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11073 2019-03-18 Pedro Alves <palves@redhat.com>
11074 Eli Zaretskii <eliz@gnu.org>
11076 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11077 m_line and m_start_of_line.
11079 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11081 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11082 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11083 it returns a newline. This fixes a regression in TU mode, whereby
11084 the next line is output on the same screen line as the user input.
11086 2019-03-18 Tom Tromey <tromey@adacore.com>
11088 * minsyms.c (minimal_symbol_reader::install): Remove call to
11091 2019-03-18 Pedro Alves <palves@redhat.com>
11093 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11095 (apply_style): New, factored out from ...
11096 (apply_ansi_escape): ... this. Handle reverse video mode.
11097 (tui_set_reverse_mode): New function.
11098 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11099 * tui/tui-winsource.c (tui_show_source_line): Use
11100 tui_set_reverse_mode instead of setting A_STANDOUT.
11101 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11102 New setter methods.
11104 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11106 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11109 2019-03-18 Tom Tromey <tromey@adacore.com>
11111 * ada-lang.c (empty_array): Add "high" parameter.
11112 (ada_evaluate_subexp): Update.
11114 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11116 * unittests/string_view-selftests.c: Define
11117 _initialize_string_view_selftests unconditionally.
11119 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11122 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11124 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11127 * windows-nat.c (display_selector): Fix format specifiers.
11129 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11131 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11132 tui_refill_source_window instead of tui_refresh_win, to update the
11133 current execution line. This fixes redisplay of the current line
11134 when stepping through the code with "next" or "step".
11136 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11138 * source-cache.c (source_cache::get_source_lines): Call
11139 find_source_lines to initialize s->nlines. This fixes vertical
11140 scrolling of TUI source window when the DOWN arrow is pressed.
11142 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11144 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11145 linux-thread-db.c (_initialize_thread_db): Likewise.
11147 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11149 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11150 wclrtoeol in tui_show_source_line". This reverts changes made in
11151 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11153 2019-03-15 Tom Tromey <tom@tromey.com>
11155 * symtab.h (struct minimal_symbol): Derive from
11156 general_symbol_info.
11157 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11158 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11159 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11160 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11161 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11162 (MSYMBOL_SEARCH_NAME): Update.
11163 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11164 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11165 * minsyms.c (minimal_symbol_reader::record_full): Update.
11167 2019-03-15 Tom Tromey <tom@tromey.com>
11169 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11171 2019-03-15 Tom Tromey <tom@tromey.com>
11173 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11174 unique_xmalloc_ptr.
11175 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11177 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11178 (build_minimal_symbol_hash_tables)
11179 (minimal_symbol_reader::install): Update.
11181 2019-03-15 Tom Tromey <tom@tromey.com>
11183 * symtab.c (create_demangled_names_hash): Update.
11184 (symbol_set_names): Update.
11185 * objfiles.h (struct objfile_per_bfd_storage)
11186 <demangled_names_hash>: Now an htab_up.
11187 * objfiles.c (objfile_per_bfd_storage): Simplify.
11189 2019-03-15 Tom Tromey <tom@tromey.com>
11191 * objfiles.h (struct objfile_per_bfd_storage): Declare
11193 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11195 (get_objfile_bfd_data): Use new. Don't initialize
11197 (free_objfile_per_bfd_storage): Remove.
11198 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11200 2019-03-15 Tom Tromey <tom@tromey.com>
11202 * symfile.c (reread_symbols): Update.
11203 * objfiles.c (objfile::objfile): Update.
11204 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11205 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11207 (minimal_symbol_reader::install): Update.
11208 (terminate_minimal_symbol_table): Remove.
11209 * jit.c (jit_object_close_impl): Update.
11211 2019-03-15 Tom Tromey <tom@tromey.com>
11213 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11216 2019-03-15 Tom Tromey <tom@tromey.com>
11218 * objfiles.h (struct objfile_per_bfd_storage)
11219 <demangled_hash_languages>: Now a bitset.
11220 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11221 (lookup_minimal_symbol): Update.
11223 2019-03-15 Tom Tromey <tom@tromey.com>
11225 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11226 Don't return the symbol.
11227 * coffread.c (record_minimal_symbol): Use record_full.
11229 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11231 The MS-Windows port of ncurses fails to switch to a color pair if
11232 one or both of the colors are the implicit default colors. This
11233 change records the default colors when TUI is initialized, and
11234 then specifies them explicitly when a color pair uses the default
11235 colors. This allows color styling in TUI mode on MS-Windows.
11237 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11239 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11240 colors in ncurses_norm_attr.
11241 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11242 "none", replace it with the default color recorded in
11245 2019-03-14 Tom Tromey <tromey@adacore.com>
11247 * source-cache.h (class source_cache) <get_source_lines>: Return
11249 * source-cache.c (source_cache::extract_lines): Handle case where
11250 first_pos==npos. Return std::string.
11251 (source_cache::get_source_lines): Update.
11253 2019-03-14 Tom Tromey <tromey@adacore.com>
11255 * NEWS: Add item for "style sources" commands.
11256 * source-cache.c (source_cache::get_source_lines): Check
11258 * cli/cli-style.c (source_styling): New global.
11259 (_initialize_cli_style): Add "style sources" commands.
11260 (show_style_sources): New function.
11261 * cli/cli-style.h (source_styling): Declare.
11263 2019-03-14 Pedro Alves <palves@redhat.com>
11264 Tom Tromey <tromey@adacore.com>
11266 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11267 * tui/tui-winsource.c (tui_refill_source_window): New function,
11269 (tui_horizontal_source_scroll): ... here. Move some logic.
11270 * cli/cli-style.c (set_style_enabled): Notify new observable.
11271 * tui/tui-hooks.c (tui_redisplay_source): New function.
11272 (tui_attach_detach_observers): Attach or detach
11273 tui_redisplay_source.
11274 * observable.h (source_styling_changed): New observable.
11275 * observable.c: Define source_styling_changed observable.
11277 2019-03-13 Tom Tromey <tromey@adacore.com>
11279 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11280 (i386_gnu_nat_target::store_registers): Update.
11281 * target-debug.h (target_debug_print_std_string): New macro.
11282 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11283 * windows-tdep.c (display_one_tib): Update.
11284 * tui/tui-stack.c (tui_make_status_line): Update.
11285 * top.c (print_inferior_quit_action): Update.
11286 * thread.c (thr_try_catch_cmd): Update.
11287 (add_thread_with_info): Update.
11288 (thread_target_id_str): Update.
11289 (thr_try_catch_cmd): Update.
11290 (thread_command): Update.
11291 (thread_find_command): Update.
11292 * record-btrace.c (record_btrace_target::info_record)
11293 (record_btrace_resume_thread, record_btrace_target::resume)
11294 (record_btrace_cancel_resume, record_btrace_step_thread)
11295 (record_btrace_target::wait, record_btrace_target::wait)
11296 (record_btrace_target::wait, record_btrace_target::stop): Update.
11297 * progspace.c (print_program_space): Update.
11298 * process-stratum-target.c
11299 (process_stratum_target::thread_address_space): Update.
11300 * linux-fork.c (linux_fork_mourn_inferior)
11301 (detach_checkpoint_command, info_checkpoints_command)
11302 (linux_fork_context): Update.
11303 (linux_fork_detach): Update.
11304 (class scoped_switch_fork_info): Update.
11305 (delete_checkpoint_command): Update.
11306 * infrun.c (follow_fork_inferior): Update.
11307 (follow_fork_inferior): Update.
11308 (proceed_after_vfork_done): Update.
11309 (handle_vfork_child_exec_or_exit): Update.
11310 (follow_exec): Update.
11311 (displaced_step_prepare_throw): Update.
11312 (displaced_step_restore): Update.
11313 (start_step_over): Update.
11314 (resume_1): Update.
11315 (clear_proceed_status_thread): Update.
11317 (print_target_wait_results): Update.
11318 (do_target_wait): Update.
11319 (context_switch): Update.
11320 (stop_all_threads): Update.
11321 (restart_threads): Update.
11322 (finish_step_over): Update.
11323 (handle_signal_stop): Update.
11324 (switch_back_to_stepped_thread): Update.
11325 (keep_going_pass_signal): Update.
11326 (print_exited_reason): Update.
11327 (normal_stop): Update.
11328 * inferior.c (inferior_pid_to_str): Change return type.
11329 (print_selected_inferior): Update.
11330 (add_inferior): Update.
11331 (detach_inferior): Update.
11332 * dummy-frame.c (fprint_dummy_frames): Update.
11333 * dcache.c (dcache_info_1): Update.
11334 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11335 (btrace_fetch, btrace_clear): Update.
11336 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11337 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11339 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11340 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11341 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11342 * gdbarch.c, gdbarch.h: Rebuild.
11343 * gdbarch.sh (core_pid_to_str): Change return type.
11344 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11346 (windows_nat_target::pid_to_str): Change return type.
11347 (windows_delete_thread): Update.
11348 (windows_nat_target::attach): Update.
11349 (windows_nat_target::files_info): Update.
11350 * target-delegates.c: Rebuild.
11351 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11353 (sol_thread_target::pid_to_str): Change return type.
11354 * remote.c (class remote_target) <pid_to_str>: Change return
11356 (remote_target::pid_to_str): Change return type.
11357 (extended_remote_target::attach, remote_target::remote_stop_ns)
11358 (remote_target::remote_notif_remove_queued_reply)
11359 (remote_target::push_stop_reply, remote_target::disable_btrace):
11361 (extended_remote_target::attach): Update.
11362 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11364 (gdbsim_target::pid_to_str): Change return type.
11365 * ravenscar-thread.c (struct ravenscar_thread_target)
11366 <pid_to_str>: Change return type.
11367 (ravenscar_thread_target::pid_to_str): Change return type.
11368 * procfs.c (class procfs_target) <pid_to_str>: Change return
11370 (procfs_target::pid_to_str): Change return type.
11371 (procfs_target::attach): Update.
11372 (procfs_target::detach): Update.
11373 (procfs_target::fetch_registers): Update.
11374 (procfs_target::store_registers): Update.
11375 (procfs_target::wait): Update.
11376 (procfs_target::files_info): Update.
11377 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11378 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11380 (nto_procfs_target::pid_to_str): Change return type.
11381 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11382 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11384 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11385 (exit_lwp): Update.
11386 (attach_proc_task_lwp_callback, get_detach_signal)
11387 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11388 (linux_nat_target::resume, wait_lwp, stop_callback)
11389 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11390 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11391 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11392 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11393 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11395 (inf_ptrace_target::attach): Update.
11396 (inf_ptrace_target::files_info): Update.
11397 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11399 (go32_nat_target::pid_to_str): Change return type.
11400 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11401 (gnu_nat_target::wait): Update.
11402 (gnu_nat_target::wait): Update.
11403 (gnu_nat_target::resume): Update.
11404 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11405 (fbsd_nat_target::wait): Update.
11406 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11408 (darwin_nat_target::attach): Update.
11409 * corelow.c (class core_target) <pid_to_str>: Change return type.
11410 (core_target::pid_to_str): Change return type.
11411 * target.c (normal_pid_to_str): Change return type.
11412 (default_pid_to_str): Likewise.
11413 (target_pid_to_str): Change return type.
11414 (target_translate_tls_address): Update.
11415 (target_announce_detach): Update.
11416 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11418 (bsd_uthread_target::pid_to_str): Change return type.
11419 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11421 (bsd_kvm_target::pid_to_str): Change return type.
11422 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11424 (aix_thread_target::pid_to_str): Change return type.
11425 * target.h (struct target_ops) <pid_to_str>: Change return type.
11426 (target_pid_to_str, normal_pid_to_str): Likewise.
11427 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11429 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11431 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11433 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11435 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11437 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11440 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11442 * NEWS: Mention that the new default MI version is 3. Mention
11443 changes to the output of commands and events that deal with
11444 multi-location breakpoints.
11445 * breakpoint.c: Include "mi/mi-out.h".
11446 (print_one_breakpoint): Change output syntax if using MI version
11448 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11450 (mi_multi_location_breakpoint_output_fixed): New.
11451 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11452 (mi_cmd_fix_multi_location_breakpoint_output): New.
11453 (mi_multi_location_breakpoint_output_fixed): New.
11454 * mi/mi-cmds.c (mi_cmds): Register command
11455 -fix-multi-location-breakpoint-output.
11456 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11459 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11461 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11462 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11463 instantiate mi_ui_out based on interpreter name.
11464 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11465 * mi/mi-main.c (mi_load_progress): Likewise.
11467 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11469 * NEWS: Combine separate "New targets" sections for 8.3.
11471 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11473 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11474 (ppcfbsd_init_abi): Install gdbarch
11475 "fetch_tls_load_module_address" and "get_thread_local_address"
11478 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11480 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11481 (riscv_fbsd_init_abi): Install gdbarch
11482 "fetch_tls_load_module_address" and "get_thread_local_address"
11485 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11487 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11488 (i386fbsd_init_abi): Install gdbarch
11489 "fetch_tls_load_module_address" and "get_thread_local_address"
11492 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11494 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11495 (amd64fbsd_init_abi): Install gdbarch
11496 "fetch_tls_load_module_address" and "get_thread_local_address"
11499 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11501 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11502 (struct fbsd_pspace_data): New type.
11503 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11504 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11505 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11506 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11507 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11509 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11511 * gdbtypes.c (lookup_struct_elt): New function.
11512 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11513 * gdbtypes.h (struct struct_elt): New type.
11514 (lookup_struct_elt): New prototype.
11516 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11518 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11519 remove disabled code block.
11521 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11523 * gdbarch.sh (get_thread_local_address): New method.
11524 * gdbarch.h, gdbarch.c: Regenerate.
11525 * target.c (target_translate_tls_address): Use
11526 gdbarch_get_thread_local_address if present instead of
11527 target::get_thread_local_address.
11529 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11531 * target.h (target::get_thread_local_address): Update comment.
11533 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11535 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11536 objfile->separate_debug_objfile_backlink if not NULL.
11538 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11540 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11541 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11542 (amd64bsd_store_inferior_registers): Likewise.
11543 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11544 Enable segment base registers.
11545 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11546 PT_GETFSBASE and PT_GETGSBASE.
11547 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11549 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11550 segment base registers.
11551 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11553 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11555 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11556 Update calls to i386_target_description to add 'segments'
11558 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11559 add segment base registers.
11560 * arch/i386.c (i386_create_target_description): Add 'segments'
11561 parameter to enable segment base registers.
11562 * arch/i386.h (i386_create_target_description): Likewise.
11563 * features/i386/32bit-segments.xml: New file.
11564 * features/i386/32bit-segments.c: Generate.
11565 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11566 call to i386_target_description to add 'segments' parameter.
11567 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11568 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11569 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11570 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11571 if feature is present.
11572 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11573 Add 'segments' parameter to call to i386_target_description.
11574 (i386_target_description): Add 'segments' parameter to enable
11575 segment base registers.
11576 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11577 to call to i386_target_description.
11578 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11579 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11580 Define I386_NUM_REGS.
11581 (i386_target_description): Add 'segments' parameter to enable
11582 segment base registers.
11584 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11587 * source-cache.c: #undef open and close, to avoid unresolved
11588 externals during linking.
11590 2019-03-12 Tom Tromey <tromey@adacore.com>
11592 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11593 const. Add initializers.
11594 (_initialize_remote): Don't initialize ptid globals.
11596 2019-03-12 Pedro Alves <palves@redhat.com>
11598 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11600 2019-03-12 Pedro Alves <palves@redhat.com>
11602 * cp-name-parser.y (main): Remove unused 'len' variable.
11604 2019-03-12 Tom Tromey <tromey@adacore.com>
11606 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11607 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11609 2019-03-12 Tom Tromey <tromey@adacore.com>
11611 * linux-nat.c (iterate_over_lwps): Update.
11612 (stop_callback): Remove parameter.
11613 (stop_wait_callback, detach_callback, resume_set_callback)
11614 (select_singlestep_lwp_callback, set_ignore_sigint)
11615 (status_callback, resumed_callback, resume_clear_callback)
11616 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11618 (linux_nat_target::detach, linux_nat_target::resume)
11619 (linux_stop_and_wait_all_lwps, select_event_lwp)
11620 (linux_nat_filter_event, linux_nat_wait_1)
11621 (linux_nat_target::kill, linux_nat_target::stop)
11622 (linux_nat_target::stop): Update.
11623 (linux_nat_resume_callback): Change type.
11624 (resume_stopped_resumed_lwps, count_events_callback)
11625 (select_event_lwp_callback): Likewise.
11626 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11627 * arm-linux-nat.c (struct update_registers_data): Remove.
11628 (update_registers_callback): Change type.
11629 (arm_linux_insert_hw_breakpoint1): Update.
11630 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11632 (x86_linux_dr_set_addr): Update.
11633 (x86_linux_dr_set_control): Update.
11634 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11635 (iterate_over_lwps): Use gdb::function_view.
11636 * nat/aarch64-linux-hw-point.c (struct
11637 aarch64_dr_update_callback_param): Remove.
11638 (debug_reg_change_callback): Change type.
11639 (aarch64_notify_debug_reg_change): Update.
11640 * s390-linux-nat.c (s390_refresh_per_info): Update.
11642 2019-03-11 Tom Tromey <tromey@adacore.com>
11644 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11645 redundant assignment to "this_cu".
11647 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11649 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11651 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11653 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11655 (rank_one_type): ... this.
11657 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11659 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11661 (rank_one_type): ... this.
11663 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11665 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11667 (rank_one_type): ... this.
11669 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11671 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11673 (rank_one_type): ... this.
11675 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11677 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11679 (rank_one_type): ... this.
11681 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11683 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11685 (rank_one_type): ... this.
11687 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11689 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11691 (rank_one_type): ... this.
11693 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11695 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11697 (rank_one_type): ... this.
11699 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11701 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11703 (rank_one_type): ... this.
11705 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11707 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11709 (rank_one_type): ... this.
11711 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11713 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11715 (rank_one_type): ... this.
11717 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11719 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11721 (rank_one_type): ... this.
11723 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11725 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11726 inferior-events' shows the example events.
11728 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11730 Support styling on native MS-Windows console
11733 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11734 on MS-Windows if $TERM is not defined.
11736 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11738 * posix-hdep.c (gdb_console_fputs):
11739 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11741 * ui-file.h (gdb_console_fputs): Add prototype.
11743 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11744 back to fputs only if the former returns zero.
11746 2019-03-07 Tom Tromey <tom@tromey.com>
11748 * symmisc.c (print_symbol_bcache_statistics): Update.
11749 (print_objfile_statistics): Update.
11750 * symfile.c (allocate_symtab): Update.
11751 * stabsread.c: Don't include bcache.h.
11752 * psymtab.h (struct psymbol_bcache): Don't declare.
11753 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11754 (psymbol_bcache_init, psymbol_bcache_free)
11755 (psymbol_bcache_get_bcache): Don't declare.
11756 * psymtab.c (struct psymbol_bcache): Remove.
11757 (psymtab_storage::psymtab_storage): Update.
11758 (psymtab_storage::~psymtab_storage): Update.
11759 (psymbol_bcache_init, psymbol_bcache_free)
11760 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11761 (add_psymbol_to_bcache): Update.
11762 (allocate_psymtab): Update.
11763 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11764 macro_cache>: No longer pointers.
11765 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11766 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11767 * macrotab.c (macro_bcache): Update.
11768 * macroexp.c: Don't include bcache.h.
11769 * gdbtypes.c (check_types_worklist): Update.
11770 (types_deeply_equal): Remove TRY/CATCH. Update.
11771 * elfread.c (elf_symtab_read): Update.
11772 * dwarf2read.c: Don't include bcache.h.
11773 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11774 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11775 (print_bcache_statistics, bcache_memory_used): Don't declare.
11776 (struct bcache): Move from bcache.c. Add constructor, destructor,
11777 methods. Rename all data members.
11778 * bcache.c (struct bcache): Move to bcache.h.
11779 (bcache::expand_hash_table): Rename from expand_hash_table.
11781 (bcache::insert): Rename from bcache_full.
11782 (bcache::compare): Rename from bcache_compare.
11783 (bcache_xmalloc): Remove.
11784 (bcache::~bcache): Rename from bcache_xfree.
11785 (bcache::print_statistics): Rename from print_bcache_statistics.
11786 (bcache::memory_used): Rename from bcache_memory_used.
11788 2019-03-07 Pedro Alves <palves@redhat.com>
11790 * infrun.c (normal_stop): Also check for
11791 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11793 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11795 * f-lang.c (value_from_host_double): Moved to...
11796 * value.c (value_from_host_double): ...here.
11797 * value.h (value_from_host_double): Declare.
11798 * guile/scm-math.c (vlscm_convert_typed_number): Use
11799 value_from_host_double.
11800 (vlscm_convert_number): Likewise.
11801 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11802 * python/py-value.c (convert_value_from_python): Likewise.
11804 2019-03-06 Tom Tromey <tom@tromey.com>
11806 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11808 2019-03-06 Tom Tromey <tom@tromey.com>
11810 * utils.h (free_current_contents): Don't declare.
11811 * utils.c (free_current_contents): Remove.
11813 2019-03-06 Tom Tromey <tom@tromey.com>
11815 * top.c (quit_force): Update.
11816 * main.c (captured_command_loop): Update.
11817 * common/new-op.c (operator new): Update.
11818 * common/common-exceptions.c (struct catcher)
11819 <save_cleanup_chain>: Remove member.
11820 (exceptions_state_mc_init): Update.
11821 (exception_try_scope_entry): Return nullptr.
11822 (exception_try_scope_exit, exception_rethrow)
11823 (throw_exception_sjlj, throw_exception_cxx): Update.
11824 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11825 (all_cleanups, do_cleanups, discard_cleanups)
11826 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11827 (restore_cleanups, restore_final_cleanups): Don't declare.
11828 (do_final_cleanups): Remove parameter.
11829 * common/cleanups.c (cleanup_chain, make_cleanup)
11830 (make_cleanup_dtor, all_cleanups, do_cleanups)
11831 (discard_my_cleanups, discard_cleanups)
11832 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11833 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11834 (null_cleanup): Remove.
11835 (do_final_cleanups): Remove parameter.
11837 2019-03-06 Tom Tromey <tom@tromey.com>
11839 * remote.c (remote_target::remote_parse_stop_reply): Use
11840 unique_xmalloc_ptr.
11842 2019-03-06 Tom Tromey <tom@tromey.com>
11844 * stabsread.c (struct stabs_field_info): Rename from field_info.
11845 <list, fnlist>: Add initializers.
11846 <obstack>: New member.
11847 (read_member_functions, read_struct_fields, read_baseclasses):
11848 Allocate on obstack. Don't use cleanups.
11849 (read_one_struct_field, read_member_functions, read_struct_fields)
11850 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11851 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11852 (read_struct_type): Update.
11854 2019-03-06 Tom Tromey <tom@tromey.com>
11856 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11857 * common/filestuff.h (make_cleanup_close): Don't declare.
11858 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11861 2019-03-06 Tom Tromey <tom@tromey.com>
11863 * solib-aix.c: Use make_scope_exit.
11865 2019-03-06 Tom Tromey <tom@tromey.com>
11867 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11868 Use make_scope_exit.
11870 2019-03-06 Tom Tromey <tom@tromey.com>
11872 * solib-svr4.c (disable_probes_interface): Remove parameter.
11873 (svr4_handle_solib_event): Use make_scope_exit.
11875 2019-03-06 Tom Tromey <tom@tromey.com>
11877 * remote.c (struct stop_reply_deleter): Remove.
11878 (stop_reply_up): Update.
11879 (struct stop_reply): Derive from notif_event. Don't typedef.
11880 <regcache>: Now a std::vector.
11881 (stop_reply_xfree): Remove.
11882 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11883 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11884 (remote_target::discard_pending_stop_replies): Use delete.
11885 (remote_target::remote_parse_stop_reply): Update.
11886 (remote_target::process_stop_reply): Update.
11887 * remote-notif.h (struct notif_event): Add virtual destructor.
11888 Remove "dtr" member.
11889 (struct notif_client) <alloc_event>: Return a unique_ptr.
11890 (notif_event_xfree): Don't declare.
11891 (notif_event_up): New typedef.
11892 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11893 (notif_event_xfree, do_notif_event_xfree): Remove.
11894 (remote_notif_state_xfree): Update.
11896 2019-03-06 Tom Tromey <tom@tromey.com>
11898 * infrun.c (displaced_step_clear_cleanup): Now a
11899 forward_scope_exit type.
11900 (displaced_step_prepare_throw): Update.
11901 (displaced_step_fixup): Update.
11903 2019-03-06 Tom Tromey <tom@tromey.com>
11905 * inferior.h (class inferior): Update comment.
11906 * gdbthread.h (class thread_info): Update comment.
11908 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11909 Tom Tromey <tom@tromey.com>
11911 * stabsread.h (struct stab_section_list): Remove.
11912 (coffstab_build_psymtabs): Update.
11913 * dbxread.c (symbuf_sections): Now a std::vector.
11914 (sect_idx): New global.
11915 (fill_symbuf): Update.
11916 (coffstab_build_psymtabs): Change type of stabsects parameter.
11918 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11920 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11921 (coff_locate_sections): Update.
11922 (coff_symfile_read): Remove cleanups. Update.
11923 (init_stringtab): Add storage parameter.
11924 (free_stringtab, free_stringtab_cleanup): Remove.
11925 (init_lineno): Add storage parameter.
11926 (free_linetab, free_linetab_cleanup): Remove.
11928 2019-03-06 Pedro Alves <palves@redhat.com>
11930 * linux-fork.c (fork_info::clobber_regs): Delete.
11931 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11932 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11934 (scoped_switch_fork_info::scoped_switch_fork_info)
11935 (checkpoint_command, linux_fork_context): Adjust
11936 fork_save_infrun_state calls.
11938 2019-03-06 Pedro Alves <palves@redhat.com>
11940 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11941 (inf_has_multiple_threads): Return 'bool' and rewrite using
11942 inferior_info::threads().
11944 2019-03-06 Pedro Alves <palves@redhat.com>
11946 * linux-fork.c: Include <list>.
11947 (fork_list): Now a std::list instance.
11948 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11949 (forks_exist_p, find_last_fork): Adjust.
11950 (new_fork): Delete.
11952 (add_fork): Adjust.
11953 (free_fork): Delete, folded into fork_info::~fork_info().
11954 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11956 (init_fork_list): Delete.
11957 (linux_fork_killall, linux_fork_mourn_inferior)
11958 (linux_fork_detach, info_checkpoints_command): Adjust.
11959 (_initialize_linux_fork): No longer call init_fork_list.
11961 2019-03-06 Pedro Alves <palves@redhat.com>
11963 * linux-fork.c (new_fork): New, split out of ...
11964 (add_fork): ... this. Return void. Move "first fork" special
11965 case from here, to ...
11966 (checkpoint_command): ... here.
11967 * linux-linux.h (add_fork): Return void.
11969 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11971 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11973 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11974 Chris January <chris.january@arm.com>
11975 David Lecomber <david.lecomber@arm.com>
11977 * f-exp.y: New token, UNOP_INTRINSIC.
11978 (exp): New pattern using UNOP_INTRINSIC token.
11979 (f77_keywords): Add 'abs' keyword.
11980 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11981 (value_from_host_double): New function.
11982 (evaluate_subexp_f): Support UNOP_ABS.
11984 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11986 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11989 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11991 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11992 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11993 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11995 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11997 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11999 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12000 Chris January <chris.january@arm.com>
12002 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12003 * f-exp.y: Define 'KIND' token.
12004 (exp): New pattern for KIND expressions.
12005 (ptype): Handle types with a kind extension.
12006 (direct_abs_decl): Extend to spot kind extensions.
12007 (f77_keywords): Add 'kind' to the list.
12008 (push_kind_type): New function.
12009 (convert_to_kind_type): New function.
12010 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12011 * parse.c (operator_length_standard): Likewise.
12012 * parser-defs.h (enum type_pieces): Add tp_kind.
12013 * std-operator.def: Add UNOP_KIND.
12015 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12017 * f-exp.y (f_parse): Set yydebug.
12019 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12021 * f-lang.c (evaluate_subexp_f): New function.
12022 (exp_descriptor_f): New global.
12023 (f_language_defn): Use exp_descriptor_f instead of
12024 exp_descriptor_standard.
12026 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12028 * f-exp.y (struct token): Add comments.
12029 (dot_ops): Remove uppercase versions and the end marker.
12030 (f77_keywords): Likewise.
12031 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12032 entries in the dot_ops array are case insensitive, and use
12033 strncasecmp to compare strings. Also some whitespace cleanup in
12034 this area. Similar for the f77_keywords array, except entries in
12035 this list might be case sensitive.
12037 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12039 * f-exp.y (struct f77_boolean_val): Add comments.
12040 (boolean_values): Remove uppercase versions, and end marker.
12041 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12042 and use strncasecmp to achieve case insensitivity. Additionally,
12043 perform whitespace cleanup around this code.
12045 2019-03-06 Tom Tromey <tromey@adacore.com>
12047 * remote-sim.c (gdbsim_target_open): Use result of
12050 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12051 Dirk Schubert <dirk.schubert@arm.com>
12052 Chris January <chris.january@arm.com>
12054 * eval.c (evaluate_subexp_standard): Call Fortran argument
12056 * f-lang.c (struct value): A value which can be passed into a
12057 Fortran function call.
12058 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12060 (struct type): Value ready for a Fortran function call.
12061 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12063 * f-lang.h (fortran_argument_convert): Declaration.
12064 (fortran_preserve_arg_pointer): Declaration.
12065 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12067 2019-03-05 Tom Tromey <tromey@adacore.com>
12069 * python/py-prettyprint.c (print_string_repr): Remove #if.
12070 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12072 2019-03-05 Tom Tromey <tromey@adacore.com>
12074 * target.c (the_dummy_target): Move later. Change type to
12076 (initialize_targets): Don't initialize the_dummy_target.
12078 2019-03-05 Tom Tromey <tromey@adacore.com>
12080 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12081 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12083 2019-03-05 Tom Tromey <tromey@adacore.com>
12085 * windows-nat.c (windows_nat_target::attach)
12086 (windows_nat_target::detach): Don't call gdb_flush.
12087 * valprint.c (generic_val_print, val_print, val_print_string):
12088 Don't call gdb_flush.
12089 * utils.c (defaulted_query): Don't call gdb_flush.
12090 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12091 * target.c (target_announce_detach): Don't call gdb_flush.
12092 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12093 * remote.c (extended_remote_target::attach): Don't call
12095 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12096 * printcmd.c (do_examine): Don't call gdb_flush.
12097 (info_display_command): Don't call gdb_flush.
12098 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12099 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12100 * memattr.c (info_mem_command): Don't call gdb_flush.
12101 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12102 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12103 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12104 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12105 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12106 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12107 (gnu_nat_target::detach): Don't call gdb_flush.
12108 * f-valprint.c (f_val_print): Don't call gdb_flush.
12109 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12110 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12111 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12113 * c-valprint.c (c_val_print): Don't call gdb_flush.
12114 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12116 2019-03-05 Tom Tromey <tromey@adacore.com>
12118 * varobj.c (update_dynamic_varobj_children): Update.
12119 (install_default_visualizer): Use reset, not release.
12120 * value.c (set_internalvar): Update.
12121 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12122 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12123 ATTRIBUTE_UNUSED_RESULT.
12125 2019-03-05 Tom Tromey <tromey@adacore.com>
12127 * remote.c (class scoped_remote_fd) <release>: Add
12128 ATTRIBUTE_UNUSED_RESULT.
12130 2019-03-05 Tom Tromey <tromey@adacore.com>
12132 * macroexp.c (struct macro_buffer) <release>: Add
12133 ATTRIBUTE_UNUSED_RESULT.
12135 2019-03-05 Tom Tromey <tromey@adacore.com>
12137 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12138 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12139 ATTRIBUTE_UNUSED_RESULT.
12141 2019-03-05 Tom Tromey <tromey@adacore.com>
12143 * common/scoped_fd.h (class scoped_fd) <release>: Add
12144 ATTRIBUTE_UNUSED_RESULT.
12146 2019-03-05 Tom Tromey <tromey@adacore.com>
12148 * parser-defs.h (struct parser_state) <release>: Add
12149 ATTRIBUTE_UNUSED_RESULT.
12151 2019-03-05 Tom Tromey <tromey@adacore.com>
12153 * utils.h (class gdb_argv) <release>: Add
12154 ATTRIBUTE_UNUSED_RESULT.
12155 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12157 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12159 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12160 for-loop range, to avoid compiler warnings.
12162 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12163 avoid compiler warnings about unused variables.
12165 * NEWS: Mention end of support for native debugging on MS-Windows
12169 * common/netstuff.c:
12170 * gdbserver/gdbreplay.c
12171 * gdbserver/remote-utils.c:
12173 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12174 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12175 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12176 'getaddrinfo' and 'freeaddrinfo' were not available before
12177 Windows XP, and mingw.org's MinGW headers by default define
12178 _WIN32_WINNT to 0x500.
12180 2019-03-01 Gary Benson <gbenson@redhat.com>
12182 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12184 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12185 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12188 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12189 set_sigint_trap, clear_sigint_trap.
12191 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12193 * target.c (target_detach): Clear the regcache and the
12196 2019-02-27 Pedro Alves <palves@redhat.com>
12198 * utils.c (set_screen_size): When we cap the height/width sizes,
12199 tweak the corresponding command variable to show "unlimited":
12201 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12202 Pedro Alves <palves@redhat.com>
12204 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12205 before calling rl_set_screen_size.
12207 2019-02-27 Tom Tromey <tromey@adacore.com>
12209 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12211 * python/py-value.c: Remove Python 2.4 workaround.
12212 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12214 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12215 Python 2.4 workaround.
12216 * python/python-internal.h: Remove Python 2.4 comment.
12217 (Py_ssize_t): Don't define.
12218 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12219 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12220 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12221 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12222 * python/python.c (do_start_initialization): Remove Python 2.4
12224 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12225 (print_children): Remove Python 2.4 workaround.
12226 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12228 (CHARBUFFERPROC_NAME): Remove.
12229 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12230 Python 2.4 workaround.
12232 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12234 * NEWS: Note minimum Python version.
12236 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12238 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12239 code from these functions. Remove corresponding ifdefs. Use
12240 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12241 Remove gotos and target of gotos.
12242 (infpy_search_memory): Likewise.
12244 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12246 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12247 (hppa_gdbarch_init): Don't register deleted functions with
12250 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12252 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12253 (h8300_unwind_sp): Delete.
12254 (h8300_dummy_id): Delete.
12255 (h8300_gdbarch_init): Don't register deleted functions with
12258 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12260 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12261 (ft32_unwind_pc): Delete.
12262 (ft32_unwind_sp): Delete.
12263 (ft32_gdbarch_init): Don't register deleted functions with
12266 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12268 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12269 (frv_unwind_pc): Delete.
12270 (frv_unwind_sp): Delete.
12271 (frv_gdbarch_init): Don't register deleted functions with
12274 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12276 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12277 (riscv_unwind_pc): Delete.
12278 (riscv_unwind_sp): Delete.
12279 (riscv_gdbarch_init): Don't register deleted functions with
12282 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12284 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12285 (csky_unwind_pc): Delete.
12286 (csky_unwind_sp): Delete.
12287 (csky_gdbarch_init): Don't register deleted functions with
12290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12292 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12293 (cris_unwind_pc): Delete.
12294 (cris_unwind_sp): Delete.
12295 (cris_gdbarch_init): Don't register deleted functions with
12298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12300 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12301 (bfin_unwind_pc): Delete.
12302 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12304 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12306 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12307 (arm_unwind_pc): Delete.
12308 (arm_unwind_sp): Delete.
12309 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12311 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12313 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12314 (arc_unwind_pc): Delete.
12315 (arc_unwind_sp): Delete.
12316 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12318 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12320 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12321 (alpha_unwind_pc): Delete.
12322 (alpha_gdbarch_init): Don't register deleted functions with
12325 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12327 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12328 (aarch64_unwind_pc): Delete.
12329 (aarch64_unwind_sp): Delete.
12330 (aarch64_gdbarch_init): Don't register deleted functions with
12333 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12335 * gdbtypes.c (type_align): Don't consider static members when
12336 computing structure alignment.
12338 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12340 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12341 return 0 for other types.
12342 * arch-utils.c (default_type_align): Always return 0.
12343 * gdbarch.h: Regenerate.
12344 * gdbarch.sh (type_align): Extend comment.
12345 * gdbtypes.c (type_align): Add additional comments, always call
12346 gdbarch_type_align before applying the default rules.
12347 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12348 generic code will then apply a suitable default.
12349 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12350 types, return 0 for other types.
12352 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12354 * NEWS: Create a new section for the next release branch.
12355 Rename the section of the current branch, now that it has
12358 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12360 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12361 * version.in: Bump version to 8.3.50.DATE-git.
12363 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12365 * aix-thread.c (ptid_cmp): Remove unused variable.
12366 (get_signaled_thread): Likewise.
12367 (store_regs_user_thread): Likewise.
12368 (store_regs_kernel_thread): Likewise.
12369 (fetch_regs_kernel_thread): Remove shadowed variable.
12371 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12373 * features/riscv/32bit-cpu.xml: Add register numbers.
12374 * features/riscv/32bit-fpu.c: Regenerate.
12375 * features/riscv/32bit-fpu.xml: Add register numbers.
12376 * features/riscv/64bit-cpu.xml: Add register numbers.
12377 * features/riscv/64bit-fpu.c: Regenerate.
12378 * features/riscv/64bit-fpu.xml: Add register numbers.
12380 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12382 * NEWS: Mention two argument form of gdb.Value constructor.
12383 * python/py-value.c (convert_buffer_and_type_to_value): New
12385 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12386 Add support for handling an optional second argument. Call
12387 convert_buffer_and_type_to_value as appropriate.
12388 * python/python-internal.h (Py_buffer_deleter): New struct.
12389 (Py_buffer_up): New typedef.
12391 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12393 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12394 instead of releasing ownership.
12396 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12398 * dwarf2read.c (open_and_init_dwp_file): Call
12399 elf_numsections instead of bfd_count_sections to initialize
12400 dwp_file->num_sections.
12402 2019-02-25 Tom Tromey <tromey@adacore.com>
12404 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12406 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12408 * gcore.in: Add '--readnever' option when invoking GDB.
12410 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12412 * MAINTAINERS: Update my email address.
12414 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12416 * build-id.c (build_id_to_debug_bfd_1): New function.
12417 (build_id_to_debug_bfd): Look for separate debug file in
12420 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12422 * gdbarch.sh: Update the copyright year range that is placed into
12425 2019-02-22 Keith Seitz <keiths@redhat.com>
12428 * linespec.c (create_sals_line_offset): Search for the default
12429 symtab's filename instead of its fullname.
12431 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12433 * NEWS: Update style defaults.
12435 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12437 * main.c (captured_main_1): Disable styling in batch mode.
12439 2019-02-20 Tom Tromey <tom@tromey.com>
12441 * symtab.c (symtab_symbol_info): Fix typos.
12443 2019-02-20 Tom Tromey <tromey@adacore.com>
12445 * findcmd.c (_initialize_mem_search): Use upper case for
12446 metasyntactic variables.
12448 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12450 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12451 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12453 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12455 * top.h (source_file_name): Change to std::string.
12456 * top.c (source_file_name): Likewise.
12457 (command_line_input): Adjust.
12458 * cli/cli-script.c (script_from_file): Adjust.
12460 2019-02-19 Tom Tromey <tromey@adacore.com>
12462 * ravenscar-thread.c
12463 (ravenscar_thread_target::update_thread_list): Don't call
12464 ada_build_task_list.
12465 * ada-lang.h (ada_build_task_list): Don't declare.
12466 * ada-tasks.c (struct ada_tasks_inferior_data)
12467 <task_list_valid_p>: Now bool.
12468 (read_known_tasks, ada_task_list_changed)
12469 (ada_tasks_invalidate_inferior_data): Update.
12470 (read_known_tasks_array): Return bool.
12471 (read_known_tasks_list): Likewise.
12472 (read_known_tasks): Return void.
12473 (ada_build_task_list): Now static.
12475 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12477 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12478 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12480 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12482 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12483 variant for ada_tasks_pspace_data_handle and
12484 ada_tasks_inferior_data_handle.
12485 (ada_tasks_pspace_data_cleanup): New function.
12486 (ada_tasks_inferior_data_cleanup): New function.
12488 2019-02-17 Tom Tromey <tom@tromey.com>
12490 * macrotab.h (macro_source_fullname): Return a std::string.
12491 * macrotab.c (macro_include, check_for_redefinition)
12492 (macro_undef, macro_lookup_definition, foreach_macro)
12493 (foreach_macro_in_scope): Update.
12494 (macro_source_fullname): Return a std::string.
12495 * macrocmd.c (show_pp_source_pos): Update.
12497 2019-02-17 Tom Tromey <tom@tromey.com>
12499 * macrocmd.c (show_pp_source_pos): Style the file names.
12501 2019-02-17 Tom Tromey <tom@tromey.com>
12504 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12506 2019-02-17 Tom Tromey <tom@tromey.com>
12508 * ada-lang.c (user_select_syms): Use filtered printing.
12509 * utils.c (wrap_style): New global.
12510 (desired_style): Remove.
12511 (emit_style_escape): Add stream parameter.
12512 (set_output_style, reset_terminal_style, prompt_for_continue):
12514 (flush_wrap_buffer): Only flush gdb_stdout.
12515 (wrap_here): Set wrap_style.
12516 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12517 treat escape sequences as a character. Change when wrap buffer is
12519 (fputs_styled): Do not set the output style when the default is
12521 * ui-style.h (struct ui_file_style) <is_default>: New method.
12522 * source.c (print_source_lines_base): Emit escape sequences in one
12525 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12527 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12528 integers and enumeration types.
12530 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12532 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12533 instead of lookup_symbol_in_language
12534 (do_exact_match): New function.
12535 (ada_get_symbol_name_matcher): Return do_exact_match when
12536 doing a verbatim match.
12538 2019-02-15 Tom Tromey <tromey@adacore.com>
12540 * ravenscar-thread.c (ravenscar_thread_target::resume)
12541 (ravenscar_thread_target::wait): Special case wildcard requests.
12543 2019-02-15 Tom Tromey <tromey@adacore.com>
12545 * ravenscar-thread.c (base_ptid): Remove.
12546 (struct ravenscar_thread_target) <close>: New method.
12547 <m_base_ptid>: New member.
12548 <update_inferior_ptid, active_task, task_is_currently_active,
12549 runtime_initialized>: Declare methods.
12550 <ravenscar_thread_target>: Add constructor.
12551 (ravenscar_thread_target::task_is_currently_active)
12552 (ravenscar_thread_target::update_inferior_ptid)
12553 (ravenscar_runtime_initialized): Rename. Now methods.
12554 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12555 (ravenscar_thread_target::update_thread_list): Update.
12556 (ravenscar_thread_target::active_task): Now method.
12557 (ravenscar_thread_target::store_registers)
12558 (ravenscar_thread_target::prepare_to_store)
12559 (ravenscar_thread_target::prepare_to_store)
12560 (ravenscar_thread_target::mourn_inferior): Update.
12561 (ravenscar_inferior_created): Use "new" to create target.
12562 (ravenscar_thread_target::get_ada_task_ptid): Update.
12563 (_initialize_ravenscar): Don't initialize base_ptid.
12564 (ravenscar_ops): Remove global.
12566 2019-02-15 Tom Tromey <tromey@adacore.com>
12568 * target.h (push_target): Declare new overload.
12569 * target.c (push_target): New overload, taking an rvalue reference.
12570 * remote.c (remote_target::open_1): Use push_target overload.
12571 * corelow.c (core_target_open): Use push_target overload.
12573 2019-02-15 Tom Tromey <tromey@adacore.com>
12575 * ravenscar-thread.c (is_ravenscar_task)
12576 (ravenscar_task_is_currently_active): Return bool.
12577 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12578 (_initialize_ravenscar): Remove "(void)".
12579 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12582 2019-02-15 Tom Tromey <tromey@adacore.com>
12584 * ravenscar-thread.c (ravenscar_runtime_initializer)
12585 (has_ravenscar_runtime, get_running_thread_id)
12586 (ravenscar_thread_target::resume): Fix indentation.
12588 2019-02-15 Tom Tromey <tromey@adacore.com>
12590 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12591 from ravenscar_arch_ops.
12592 (sparc_ravenscar_ops::fetch_registers)
12593 (sparc_ravenscar_ops::store_registers): Now methods.
12594 (sparc_ravenscar_prepare_to_store): Remove.
12595 (sparc_ravenscar_ops): Redefine.
12596 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12597 methods and destructor. Remove members.
12598 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12599 (ravenscar_thread_target::store_registers)
12600 (ravenscar_thread_target::prepare_to_store): Update.
12601 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12603 (struct ppc_ravenscar_powerpc_ops): Derive from
12604 ravenscar_arch_ops.
12605 (ppc_ravenscar_powerpc_ops::fetch_registers)
12606 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12607 (ppc_ravenscar_powerpc_ops): Redefine.
12608 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12609 (ppc_ravenscar_e500_ops::fetch_registers)
12610 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12611 (ppc_ravenscar_e500_ops): Redefine.
12612 * aarch64-ravenscar-thread.c
12613 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12614 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12615 (aarch64_ravenscar_fetch_registers)
12616 (aarch64_ravenscar_store_registers): Now methods.
12617 (aarch64_ravenscar_ops): Redefine.
12619 2019-02-15 Tom Tromey <tromey@adacore.com>
12621 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12622 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12623 (ravenscar_thread_target::stopped_by_watchpoint)
12624 (ravenscar_thread_target::stopped_data_address)
12625 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12627 2019-02-15 Tom Tromey <tromey@adacore.com>
12629 * ravenscar-thread.c: Fix some typos.
12631 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12632 Tom Tromey <tromey@adacore.com>
12634 * ada-lang.c (ada_exception_sal): Change addr_string to a
12636 (create_ada_exception_catchpoint): Update.
12638 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12639 Tom Tromey <tromey@adacore.com>
12641 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12642 (bp_location_ops): Remove.
12643 (base_breakpoint_allocate_location): Update.
12644 (free_bp_location): Update.
12645 * ada-lang.c (class ada_catchpoint_location)
12646 <ada_catchpoint_location>: Remove ops parameter.
12647 (ada_catchpoint_location_dtor): Remove.
12648 (ada_catchpoint_location_ops): Remove.
12649 (allocate_location_exception): Update.
12650 * breakpoint.h (struct bp_location_ops): Remove.
12651 (class bp_location) <bp_location>: Remove bp_location_ops
12653 <~bp_location>: Add destructor.
12656 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12657 Pedro Alves <palves@redhat.com>
12659 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12662 2019-02-14 David Michael <fedora.dm0@gmail.com>
12663 Samuel Thibault <samuel.thibault@gnu.org>
12664 Thomas Schwinge <thomas@codesourcery.com>
12666 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12667 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12669 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12671 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12672 (check_empty): Use "const char *".
12674 * gnu-nat.c (gnu_nat_target::detach): Instead of
12675 'detach_inferior (pid)' call
12676 'detach_inferior (find_inferior_pid (pid))'.
12678 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12679 'nat/fork-inferior.o'.
12680 * gnu-nat.c: #include "nat/fork-inferior.h".
12682 * gnu-nat.c (gnu_nat_target::detach): Instead of
12683 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12684 * gnu-nat.h: #include "inf-child.h".
12685 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12686 'i386_gnu_nat_target::fetch_registers'.
12687 (gnu_store_registers): Rename/move to
12688 'i386_gnu_nat_target::store_registers'.
12690 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12691 * gnu-nat.h (mach_thread_info): New function.
12692 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12694 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12696 2019-02-14 Frederic Konrad <konrad@adacore.com>
12698 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12700 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12702 * windows-nat.c (windows_add_thread): Add new parameter
12703 "main_thread_p" with default value set to false. Update
12704 function documentation as well as all callers.
12705 (windows_delete_thread): Likewise.
12706 (fake_create_process): Update call to windows_add_thread.
12707 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12708 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12709 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12710 call to windows_delete_thread.
12712 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12714 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12716 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12718 * symfile.c (find_separate_debug_file): Use canonical path of
12719 sysroot with child_path instead of gdb_sysroot if it is valid.
12721 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12723 * symfile.c (find_separate_debug_file): Use child_path to
12724 determine if an object file is under a sysroot.
12726 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12728 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12729 unittests/child-path-selftests.c.
12730 * common/pathstuff.c (child_path): New function.
12731 * common/pathstuff.h (child_path): New prototype.
12732 * unittests/child-path-selftests.c: New file.
12734 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12736 * symfile.c (find_separate_debug_file): Look for separate debug
12737 files in debug directories under the sysroot.
12739 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12741 * symtab.h (struct minimal_symbol data_p): New const method.
12742 (struct minimal_symbol text_p): Likewise.
12743 * symtab.c (output_source_filename): Use file name style
12744 to print file name.
12745 (print_symbol_info): Likewise.
12746 (print_msymbol_info): Use address style to print addresses.
12747 Use function name style to print executable text symbols.
12748 (expand_symtab_containing_pc): Use data_p.
12749 (find_pc_sect_compunit_symtab): Likewise.
12751 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12753 * breakpoint.c (describe_other_breakpoints): Use address style
12754 to print addresses.
12755 (say_where): Likewise.
12757 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12759 * ada-typeprint.c (print_func_type): Print function name
12760 style to print function name.
12761 * c-typeprint.c (c_print_type_1): Likewise.
12763 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12765 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12768 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12770 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12773 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12775 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12776 TYPE_CODE_REF types.
12778 2019-02-08 Jim Wilson <jimw@sifive.com>
12780 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12781 (riscv_linux_fregset): New.
12782 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12784 2019-02-07 Tom Tromey <tom@tromey.com>
12786 * thread.c (thread_cancel_execution_command): Update.
12787 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12789 (struct thread_fsm_ops): Remove.
12790 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12791 (thread_fsm_should_stop, thread_fsm_return_value)
12792 (thread_fsm_set_finished, thread_fsm_finished_p)
12793 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12795 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12796 * infrun.c (clear_proceed_status_thread)
12797 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12798 (print_stop_event): Update.
12799 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12801 (step_command_fsm_ops): Remove.
12802 (new_step_command_fsm): Remove.
12804 (step_command_fsm::should_stop): Rename from
12805 step_command_fsm_should_stop.
12806 (step_command_fsm::clean_up): Rename from
12807 step_command_fsm_clean_up.
12808 (step_command_fsm::do_async_reply_reason): Rename from
12809 step_command_fsm_async_reply_reason.
12810 (struct until_next_fsm): Inherit from thread_fsm. Add
12812 (until_next_fsm_ops): Remove.
12813 (new_until_next_fsm): Remove.
12814 (until_next_fsm::should_stop): Rename from
12815 until_next_fsm_should_stop.
12816 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12817 (until_next_fsm::do_async_reply_reason): Rename from
12818 until_next_fsm_async_reply_reason.
12819 (struct finish_command_fsm): Inherit from thread_fsm. Add
12820 constructor. Change type of breakpoint.
12821 (finish_command_fsm_ops): Remove.
12822 (new_finish_command_fsm): Remove.
12823 (finish_command_fsm::should_stop): Rename from
12824 finish_command_fsm_should_stop.
12825 (finish_command_fsm::clean_up): Rename from
12826 finish_command_fsm_clean_up.
12827 (finish_command_fsm::return_value): Rename from
12828 finish_command_fsm_return_value.
12829 (finish_command_fsm::do_async_reply_reason): Rename from
12830 finish_command_fsm_async_reply_reason.
12831 (finish_command): Update.
12832 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12834 (call_thread_fsm_ops): Remove.
12835 (call_thread_fsm::call_thread_fsm): Rename from
12836 new_call_thread_fsm.
12837 (call_thread_fsm::should_stop): Rename from
12838 call_thread_fsm_should_stop.
12839 (call_thread_fsm::should_notify_stop): Rename from
12840 call_thread_fsm_should_notify_stop.
12841 (run_inferior_call, call_function_by_hand_dummy): Update.
12842 * cli/cli-interp.c (should_print_stop_to_console): Update.
12843 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12844 Add constructor. Change type of location_breakpoint,
12846 (until_break_fsm_ops): Remove.
12847 (new_until_break_fsm): Remove.
12848 (until_break_fsm::should_stop): Rename from
12849 until_break_fsm_should_stop.
12850 (until_break_fsm::clean_up): Rename from
12851 until_break_fsm_clean_up.
12852 (until_break_fsm::do_async_reply_reason): Rename from
12853 until_break_fsm_async_reply_reason.
12854 (until_break_command): Update.
12855 * thread-fsm.c: Remove.
12856 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12858 2019-02-07 Tom Tromey <tom@tromey.com>
12860 * yy-remap.h: Add include guard.
12861 * xtensa-tdep.h: Add include guard.
12862 * xcoffread.h: Rename include guard.
12863 * varobj-iter.h: Add include guard.
12864 * tui/tui.h: Rename include guard.
12865 * tui/tui-winsource.h: Rename include guard.
12866 * tui/tui-wingeneral.h: Rename include guard.
12867 * tui/tui-windata.h: Rename include guard.
12868 * tui/tui-win.h: Rename include guard.
12869 * tui/tui-stack.h: Rename include guard.
12870 * tui/tui-source.h: Rename include guard.
12871 * tui/tui-regs.h: Rename include guard.
12872 * tui/tui-out.h: Rename include guard.
12873 * tui/tui-layout.h: Rename include guard.
12874 * tui/tui-io.h: Rename include guard.
12875 * tui/tui-hooks.h: Rename include guard.
12876 * tui/tui-file.h: Rename include guard.
12877 * tui/tui-disasm.h: Rename include guard.
12878 * tui/tui-data.h: Rename include guard.
12879 * tui/tui-command.h: Rename include guard.
12880 * tic6x-tdep.h: Add include guard.
12881 * target/waitstatus.h: Rename include guard.
12882 * target/wait.h: Rename include guard.
12883 * target/target.h: Rename include guard.
12884 * target/resume.h: Rename include guard.
12885 * target-float.h: Rename include guard.
12886 * stabsread.h: Add include guard.
12887 * rs6000-tdep.h: Add include guard.
12888 * riscv-fbsd-tdep.h: Add include guard.
12889 * regformats/regdef.h: Rename include guard.
12890 * record.h: Rename include guard.
12891 * python/python.h: Rename include guard.
12892 * python/python-internal.h: Rename include guard.
12893 * python/py-stopevent.h: Rename include guard.
12894 * python/py-ref.h: Rename include guard.
12895 * python/py-record.h: Rename include guard.
12896 * python/py-record-full.h: Rename include guard.
12897 * python/py-record-btrace.h: Rename include guard.
12898 * python/py-instruction.h: Rename include guard.
12899 * python/py-events.h: Rename include guard.
12900 * python/py-event.h: Rename include guard.
12901 * procfs.h: Add include guard.
12902 * proc-utils.h: Add include guard.
12903 * p-lang.h: Add include guard.
12904 * or1k-tdep.h: Rename include guard.
12905 * observable.h: Rename include guard.
12906 * nto-tdep.h: Rename include guard.
12907 * nat/x86-linux.h: Rename include guard.
12908 * nat/x86-linux-dregs.h: Rename include guard.
12909 * nat/x86-gcc-cpuid.h: Add include guard.
12910 * nat/x86-dregs.h: Rename include guard.
12911 * nat/x86-cpuid.h: Rename include guard.
12912 * nat/ppc-linux.h: Rename include guard.
12913 * nat/mips-linux-watch.h: Rename include guard.
12914 * nat/linux-waitpid.h: Rename include guard.
12915 * nat/linux-ptrace.h: Rename include guard.
12916 * nat/linux-procfs.h: Rename include guard.
12917 * nat/linux-osdata.h: Rename include guard.
12918 * nat/linux-nat.h: Rename include guard.
12919 * nat/linux-namespaces.h: Rename include guard.
12920 * nat/linux-btrace.h: Rename include guard.
12921 * nat/glibc_thread_db.h: Rename include guard.
12922 * nat/gdb_thread_db.h: Rename include guard.
12923 * nat/gdb_ptrace.h: Rename include guard.
12924 * nat/fork-inferior.h: Rename include guard.
12925 * nat/amd64-linux-siginfo.h: Rename include guard.
12926 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12927 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12928 * nat/aarch64-linux.h: Rename include guard.
12929 * nat/aarch64-linux-hw-point.h: Rename include guard.
12930 * mn10300-tdep.h: Add include guard.
12931 * mips-linux-tdep.h: Add include guard.
12932 * mi/mi-parse.h: Rename include guard.
12933 * mi/mi-out.h: Rename include guard.
12934 * mi/mi-main.h: Rename include guard.
12935 * mi/mi-interp.h: Rename include guard.
12936 * mi/mi-getopt.h: Rename include guard.
12937 * mi/mi-console.h: Rename include guard.
12938 * mi/mi-common.h: Rename include guard.
12939 * mi/mi-cmds.h: Rename include guard.
12940 * mi/mi-cmd-break.h: Rename include guard.
12941 * m2-lang.h: Add include guard.
12942 * location.h: Rename include guard.
12943 * linux-record.h: Rename include guard.
12944 * linux-nat.h: Add include guard.
12945 * linux-fork.h: Add include guard.
12946 * i386-darwin-tdep.h: Rename include guard.
12947 * hppa-linux-offsets.h: Add include guard.
12948 * guile/guile.h: Rename include guard.
12949 * guile/guile-internal.h: Rename include guard.
12950 * gnu-nat.h: Rename include guard.
12951 * gdb-stabs.h: Rename include guard.
12952 * frv-tdep.h: Add include guard.
12953 * f-lang.h: Add include guard.
12954 * event-loop.h: Add include guard.
12955 * darwin-nat.h: Rename include guard.
12956 * cp-abi.h: Rename include guard.
12957 * config/sparc/nm-sol2.h: Rename include guard.
12958 * config/nm-nto.h: Rename include guard.
12959 * config/nm-linux.h: Add include guard.
12960 * config/i386/nm-i386gnu.h: Rename include guard.
12961 * config/djgpp/nl_types.h: Rename include guard.
12962 * config/djgpp/langinfo.h: Rename include guard.
12963 * compile/gcc-cp-plugin.h: Add include guard.
12964 * compile/gcc-c-plugin.h: Add include guard.
12965 * compile/compile.h: Rename include guard.
12966 * compile/compile-object-run.h: Rename include guard.
12967 * compile/compile-object-load.h: Rename include guard.
12968 * compile/compile-internal.h: Rename include guard.
12969 * compile/compile-cplus.h: Rename include guard.
12970 * compile/compile-c.h: Rename include guard.
12971 * common/xml-utils.h: Rename include guard.
12972 * common/x86-xstate.h: Rename include guard.
12973 * common/version.h: Rename include guard.
12974 * common/vec.h: Rename include guard.
12975 * common/tdesc.h: Rename include guard.
12976 * common/selftest.h: Rename include guard.
12977 * common/scoped_restore.h: Rename include guard.
12978 * common/scoped_mmap.h: Rename include guard.
12979 * common/scoped_fd.h: Rename include guard.
12980 * common/safe-iterator.h: Rename include guard.
12981 * common/run-time-clock.h: Rename include guard.
12982 * common/refcounted-object.h: Rename include guard.
12983 * common/queue.h: Rename include guard.
12984 * common/ptid.h: Rename include guard.
12985 * common/print-utils.h: Rename include guard.
12986 * common/preprocessor.h: Rename include guard.
12987 * common/pathstuff.h: Rename include guard.
12988 * common/observable.h: Rename include guard.
12989 * common/netstuff.h: Rename include guard.
12990 * common/job-control.h: Rename include guard.
12991 * common/host-defs.h: Rename include guard.
12992 * common/gdb_wait.h: Rename include guard.
12993 * common/gdb_vecs.h: Rename include guard.
12994 * common/gdb_unlinker.h: Rename include guard.
12995 * common/gdb_unique_ptr.h: Rename include guard.
12996 * common/gdb_tilde_expand.h: Rename include guard.
12997 * common/gdb_sys_time.h: Rename include guard.
12998 * common/gdb_string_view.h: Rename include guard.
12999 * common/gdb_splay_tree.h: Rename include guard.
13000 * common/gdb_setjmp.h: Rename include guard.
13001 * common/gdb_ref_ptr.h: Rename include guard.
13002 * common/gdb_optional.h: Rename include guard.
13003 * common/gdb_locale.h: Rename include guard.
13004 * common/gdb_assert.h: Rename include guard.
13005 * common/filtered-iterator.h: Rename include guard.
13006 * common/filestuff.h: Rename include guard.
13007 * common/fileio.h: Rename include guard.
13008 * common/environ.h: Rename include guard.
13009 * common/common-utils.h: Rename include guard.
13010 * common/common-types.h: Rename include guard.
13011 * common/common-regcache.h: Rename include guard.
13012 * common/common-inferior.h: Rename include guard.
13013 * common/common-gdbthread.h: Rename include guard.
13014 * common/common-exceptions.h: Rename include guard.
13015 * common/common-defs.h: Rename include guard.
13016 * common/common-debug.h: Rename include guard.
13017 * common/cleanups.h: Rename include guard.
13018 * common/buffer.h: Rename include guard.
13019 * common/btrace-common.h: Rename include guard.
13020 * common/break-common.h: Rename include guard.
13021 * cli/cli-utils.h: Rename include guard.
13022 * cli/cli-style.h: Rename include guard.
13023 * cli/cli-setshow.h: Rename include guard.
13024 * cli/cli-script.h: Rename include guard.
13025 * cli/cli-interp.h: Rename include guard.
13026 * cli/cli-decode.h: Rename include guard.
13027 * cli/cli-cmds.h: Rename include guard.
13028 * charset-list.h: Add include guard.
13029 * buildsym-legacy.h: Rename include guard.
13030 * bfin-tdep.h: Add include guard.
13031 * ax.h: Rename include guard.
13032 * arm-linux-tdep.h: Add include guard.
13033 * arm-fbsd-tdep.h: Add include guard.
13034 * arch/xtensa.h: Rename include guard.
13035 * arch/tic6x.h: Add include guard.
13036 * arch/i386.h: Add include guard.
13037 * arch/arm.h: Rename include guard.
13038 * arch/arm-linux.h: Rename include guard.
13039 * arch/arm-get-next-pcs.h: Rename include guard.
13040 * arch/amd64.h: Add include guard.
13041 * arch/aarch64-insn.h: Rename include guard.
13042 * arch-utils.h: Rename include guard.
13043 * annotate.h: Add include guard.
13044 * amd64-darwin-tdep.h: Rename include guard.
13045 * aarch64-linux-tdep.h: Add include guard.
13046 * aarch64-fbsd-tdep.h: Add include guard.
13047 * aarch32-linux-nat.h: Add include guard.
13049 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13051 * macrotab.c (macro_define_internal): New function that
13052 factorizes macro_define_object_internal and macro_define_function
13054 (macro_define_object_internal): Use macro_define_internal.
13055 (macro_define_function): Likewise.
13057 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13059 * macrocmd.c (extract_identifier): Return
13060 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13063 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13065 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13067 2019-02-05 Tom Tromey <tom@tromey.com>
13069 * target.c (target_stack::unpush): Move assertion earlier.
13071 2019-01-30 Tom Tromey <tom@tromey.com>
13074 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13075 (gdbpy_parse_and_eval): Likewise.
13076 * python/python-internal.h (gdbpy_allow_threads): New class.
13078 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13080 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13081 (aarch64_fbsd_fpregmap): Move earlier.
13082 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13083 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13084 instead of individual calls to trad_frame_set_reg_addr.
13085 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13087 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13088 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13089 instead of individual calls to trad_frame_set_reg_addr.
13091 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13093 * CONTRIBUTE: Replace contribution list with wiki link.
13095 2019-01-25 Tom Tromey <tom@tromey.com>
13097 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13099 2019-01-25 Tom Tromey <tom@tromey.com>
13101 * xtensa-linux-nat.c: Fix common/ includes.
13102 * xml-support.h: Fix common/ includes.
13103 * xml-support.c: Fix common/ includes.
13104 * x86-linux-nat.c: Fix common/ includes.
13105 * windows-nat.c: Fix common/ includes.
13106 * varobj.h: Fix common/ includes.
13107 * varobj.c: Fix common/ includes.
13108 * value.c: Fix common/ includes.
13109 * valops.c: Fix common/ includes.
13110 * utils.c: Fix common/ includes.
13111 * unittests/xml-utils-selftests.c: Fix common/ includes.
13112 * unittests/utils-selftests.c: Fix common/ includes.
13113 * unittests/unpack-selftests.c: Fix common/ includes.
13114 * unittests/tracepoint-selftests.c: Fix common/ includes.
13115 * unittests/style-selftests.c: Fix common/ includes.
13116 * unittests/string_view-selftests.c: Fix common/ includes.
13117 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13118 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13119 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13120 * unittests/rsp-low-selftests.c: Fix common/ includes.
13121 * unittests/parse-connection-spec-selftests.c: Fix common/
13123 * unittests/optional-selftests.c: Fix common/ includes.
13124 * unittests/offset-type-selftests.c: Fix common/ includes.
13125 * unittests/observable-selftests.c: Fix common/ includes.
13126 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13127 * unittests/memrange-selftests.c: Fix common/ includes.
13128 * unittests/memory-map-selftests.c: Fix common/ includes.
13129 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13130 * unittests/function-view-selftests.c: Fix common/ includes.
13131 * unittests/environ-selftests.c: Fix common/ includes.
13132 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13133 * unittests/common-utils-selftests.c: Fix common/ includes.
13134 * unittests/cli-utils-selftests.c: Fix common/ includes.
13135 * unittests/array-view-selftests.c: Fix common/ includes.
13136 * ui-file.c: Fix common/ includes.
13137 * tui/tui-io.c: Fix common/ includes.
13138 * tracepoint.h: Fix common/ includes.
13139 * tracepoint.c: Fix common/ includes.
13140 * tracefile-tfile.c: Fix common/ includes.
13141 * top.h: Fix common/ includes.
13142 * top.c: Fix common/ includes.
13143 * thread.c: Fix common/ includes.
13144 * target/waitstatus.h: Fix common/ includes.
13145 * target/waitstatus.c: Fix common/ includes.
13146 * target.h: Fix common/ includes.
13147 * target.c: Fix common/ includes.
13148 * target-memory.c: Fix common/ includes.
13149 * target-descriptions.c: Fix common/ includes.
13150 * symtab.h: Fix common/ includes.
13151 * symfile.c: Fix common/ includes.
13152 * stap-probe.c: Fix common/ includes.
13153 * spu-linux-nat.c: Fix common/ includes.
13154 * sparc-nat.c: Fix common/ includes.
13155 * source.c: Fix common/ includes.
13156 * solib.c: Fix common/ includes.
13157 * solib-target.c: Fix common/ includes.
13158 * ser-unix.c: Fix common/ includes.
13159 * ser-tcp.c: Fix common/ includes.
13160 * ser-pipe.c: Fix common/ includes.
13161 * ser-base.c: Fix common/ includes.
13162 * selftest-arch.c: Fix common/ includes.
13163 * s12z-tdep.c: Fix common/ includes.
13164 * rust-exp.y: Fix common/ includes.
13165 * rs6000-aix-tdep.c: Fix common/ includes.
13166 * riscv-tdep.c: Fix common/ includes.
13167 * remote.c: Fix common/ includes.
13168 * remote-notif.h: Fix common/ includes.
13169 * remote-fileio.h: Fix common/ includes.
13170 * remote-fileio.c: Fix common/ includes.
13171 * regcache.h: Fix common/ includes.
13172 * regcache.c: Fix common/ includes.
13173 * record-btrace.c: Fix common/ includes.
13174 * python/python.c: Fix common/ includes.
13175 * python/py-type.c: Fix common/ includes.
13176 * python/py-inferior.c: Fix common/ includes.
13177 * progspace.h: Fix common/ includes.
13178 * producer.c: Fix common/ includes.
13179 * procfs.c: Fix common/ includes.
13180 * proc-api.c: Fix common/ includes.
13181 * printcmd.c: Fix common/ includes.
13182 * ppc-linux-nat.c: Fix common/ includes.
13183 * parser-defs.h: Fix common/ includes.
13184 * osdata.c: Fix common/ includes.
13185 * obsd-nat.c: Fix common/ includes.
13186 * nat/x86-linux.c: Fix common/ includes.
13187 * nat/x86-linux-dregs.c: Fix common/ includes.
13188 * nat/x86-dregs.h: Fix common/ includes.
13189 * nat/x86-dregs.c: Fix common/ includes.
13190 * nat/ppc-linux.c: Fix common/ includes.
13191 * nat/mips-linux-watch.h: Fix common/ includes.
13192 * nat/mips-linux-watch.c: Fix common/ includes.
13193 * nat/linux-waitpid.c: Fix common/ includes.
13194 * nat/linux-ptrace.h: Fix common/ includes.
13195 * nat/linux-ptrace.c: Fix common/ includes.
13196 * nat/linux-procfs.c: Fix common/ includes.
13197 * nat/linux-personality.c: Fix common/ includes.
13198 * nat/linux-osdata.c: Fix common/ includes.
13199 * nat/linux-namespaces.c: Fix common/ includes.
13200 * nat/linux-btrace.h: Fix common/ includes.
13201 * nat/linux-btrace.c: Fix common/ includes.
13202 * nat/fork-inferior.c: Fix common/ includes.
13203 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13204 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13205 * nat/aarch64-linux.c: Fix common/ includes.
13206 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13207 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13208 * namespace.h: Fix common/ includes.
13209 * mips-linux-tdep.c: Fix common/ includes.
13210 * minsyms.c: Fix common/ includes.
13211 * mi/mi-parse.h: Fix common/ includes.
13212 * mi/mi-main.c: Fix common/ includes.
13213 * mi/mi-cmd-env.c: Fix common/ includes.
13214 * memrange.h: Fix common/ includes.
13215 * memattr.c: Fix common/ includes.
13216 * maint.h: Fix common/ includes.
13217 * maint.c: Fix common/ includes.
13218 * main.c: Fix common/ includes.
13219 * machoread.c: Fix common/ includes.
13220 * location.c: Fix common/ includes.
13221 * linux-thread-db.c: Fix common/ includes.
13222 * linux-nat.c: Fix common/ includes.
13223 * linux-fork.c: Fix common/ includes.
13224 * inline-frame.c: Fix common/ includes.
13225 * infrun.c: Fix common/ includes.
13226 * inflow.c: Fix common/ includes.
13227 * inferior.h: Fix common/ includes.
13228 * inferior.c: Fix common/ includes.
13229 * infcmd.c: Fix common/ includes.
13230 * inf-ptrace.c: Fix common/ includes.
13231 * inf-child.c: Fix common/ includes.
13232 * ia64-linux-nat.c: Fix common/ includes.
13233 * i387-tdep.c: Fix common/ includes.
13234 * i386-tdep.c: Fix common/ includes.
13235 * i386-linux-tdep.c: Fix common/ includes.
13236 * i386-linux-nat.c: Fix common/ includes.
13237 * i386-go32-tdep.c: Fix common/ includes.
13238 * i386-fbsd-tdep.c: Fix common/ includes.
13239 * i386-fbsd-nat.c: Fix common/ includes.
13240 * guile/scm-type.c: Fix common/ includes.
13241 * guile/guile.c: Fix common/ includes.
13242 * go32-nat.c: Fix common/ includes.
13243 * gnu-nat.c: Fix common/ includes.
13244 * gdbthread.h: Fix common/ includes.
13245 * gdbarch-selftests.c: Fix common/ includes.
13246 * gdb_usleep.c: Fix common/ includes.
13247 * gdb_select.h: Fix common/ includes.
13248 * gdb_bfd.c: Fix common/ includes.
13249 * gcore.c: Fix common/ includes.
13250 * fork-child.c: Fix common/ includes.
13251 * findvar.c: Fix common/ includes.
13252 * fbsd-nat.c: Fix common/ includes.
13253 * event-top.c: Fix common/ includes.
13254 * event-loop.c: Fix common/ includes.
13255 * dwarf2read.c: Fix common/ includes.
13256 * dwarf2loc.c: Fix common/ includes.
13257 * dwarf2-frame.c: Fix common/ includes.
13258 * dwarf-index-cache.c: Fix common/ includes.
13259 * dtrace-probe.c: Fix common/ includes.
13260 * disasm-selftests.c: Fix common/ includes.
13261 * defs.h: Fix common/ includes.
13262 * csky-tdep.c: Fix common/ includes.
13263 * cp-valprint.c: Fix common/ includes.
13264 * cp-support.h: Fix common/ includes.
13265 * cp-support.c: Fix common/ includes.
13266 * corelow.c: Fix common/ includes.
13267 * completer.h: Fix common/ includes.
13268 * completer.c: Fix common/ includes.
13269 * compile/compile.c: Fix common/ includes.
13270 * compile/compile-loc2c.c: Fix common/ includes.
13271 * compile/compile-cplus-types.c: Fix common/ includes.
13272 * compile/compile-cplus-symbols.c: Fix common/ includes.
13273 * command.h: Fix common/ includes.
13274 * cli/cli-dump.c: Fix common/ includes.
13275 * cli/cli-cmds.c: Fix common/ includes.
13276 * charset.c: Fix common/ includes.
13277 * build-id.c: Fix common/ includes.
13278 * btrace.h: Fix common/ includes.
13279 * btrace.c: Fix common/ includes.
13280 * breakpoint.h: Fix common/ includes.
13281 * breakpoint.c: Fix common/ includes.
13283 (enum agent_op): Fix common/ includes.
13284 * ax-general.c (struct aop_map): Fix common/ includes.
13285 * ax-gdb.c: Fix common/ includes.
13286 * auxv.c: Fix common/ includes.
13287 * auto-load.c: Fix common/ includes.
13288 * arm-tdep.c: Fix common/ includes.
13289 * arch/riscv.c: Fix common/ includes.
13290 * arch/ppc-linux-common.c: Fix common/ includes.
13291 * arch/i386.c: Fix common/ includes.
13292 * arch/arm.c: Fix common/ includes.
13293 * arch/arm-linux.c: Fix common/ includes.
13294 * arch/arm-get-next-pcs.c: Fix common/ includes.
13295 * arch/amd64.c: Fix common/ includes.
13296 * arch/aarch64.c: Fix common/ includes.
13297 * arch/aarch64-insn.c: Fix common/ includes.
13298 * arch-utils.c: Fix common/ includes.
13299 * amd64-windows-tdep.c: Fix common/ includes.
13300 * amd64-tdep.c: Fix common/ includes.
13301 * amd64-sol2-tdep.c: Fix common/ includes.
13302 * amd64-obsd-tdep.c: Fix common/ includes.
13303 * amd64-nbsd-tdep.c: Fix common/ includes.
13304 * amd64-linux-tdep.c: Fix common/ includes.
13305 * amd64-linux-nat.c: Fix common/ includes.
13306 * amd64-fbsd-tdep.c: Fix common/ includes.
13307 * amd64-fbsd-nat.c: Fix common/ includes.
13308 * amd64-dicos-tdep.c: Fix common/ includes.
13309 * amd64-darwin-tdep.c: Fix common/ includes.
13310 * agent.c: Fix common/ includes.
13311 * ada-lang.h: Fix common/ includes.
13312 * ada-lang.c: Fix common/ includes.
13313 * aarch64-tdep.c: Fix common/ includes.
13315 2019-01-25 Tom Tromey <tom@tromey.com>
13317 * common/create-version.sh: Use common/version.h.
13319 2019-01-24 Pedro Alves <palves@redhat.com>
13321 * infrun.c (signal_stop, signal_print, signal_program)
13322 (signal_catch, signal_pass): Now arrays instead of pointers.
13323 (update_signals_program_target, do_target_resume)
13324 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13325 * linux-nat.c (linux_nat_target::pass_signals)
13326 (linux_nat_target::create_inferior, linux_nat_target::attach):
13328 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13329 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13330 * procfs.c (procfs_target::pass_signals): Adjust.
13331 * record-full.c (record_full_target::resume): Adjust.
13332 * remote.c (remote_target::pass_signals)
13333 (remote_target::program_signals): Adjust.
13334 * target-debug.h (target_debug_print_signals): Now takes a
13335 gdb::array_view as parameter. Adjust.
13336 * target.h (target_ops) <pass_signals, program_signals>: Replace
13337 pointer and length parameters with gdb::array_view.
13338 (target_pass_signals, target_program_signals): Likewise.
13339 * target-delegates.c: Regenerate.
13341 2019-01-24 Pedro Alves <palves@redhat.com>
13343 * common/forward-scope-exit.h
13344 (forward_scope_exit::forward_scope_exit): Pass arguments to
13345 m_bind_function directly, instead of creating a std::bind and
13348 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13350 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13351 for static members.
13352 (pass_in_v_vfp_candidate): Likewise.
13354 2019-01-23 Tom Tromey <tom@tromey.com>
13355 Pedro Alves <palves@redhat.com>
13357 * regcache.c (class regcache_invalidator): Remove.
13358 (regcache::raw_write): Use make_scope_exit.
13360 2019-01-23 Tom Tromey <tom@tromey.com>
13362 * ui-out.h (class ui_out_emit_type): Update comment.
13364 2019-01-23 Tom Tromey <tom@tromey.com>
13366 * infrun.c (fetch_inferior_event): Update comment.
13368 2019-01-23 Tom Tromey <tom@tromey.com>
13369 Pedro Alves <palves@redhat.com>
13371 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13373 (fetch_inferior_event): Use SCOPE_EXIT.
13376 2019-01-23 Tom Tromey <tom@tromey.com>
13377 Pedro Alves <palves@redhat.com>
13379 * infrun.c (disable_thread_events): Delete.
13380 (stop_all_threads): Use SCOPE_EXIT.
13382 2019-01-23 Tom Tromey <tom@tromey.com>
13383 Pedro Alves <palves@redhat.com>
13385 * symfile.c: Include forward-scope-exit.h.
13386 (clear_symtab_users_cleanup): Replace forward declaration with
13387 a FORWARD_SCOPE_EXIT.
13388 (syms_from_objfile_1): Use the forward_scope_exit and
13389 gdb::optional instead of cleanup_function.
13390 (reread_symbols): Use the forward_scope_exit instead of
13392 (clear_symtab_users_cleanup): Remove function.
13394 2019-01-23 Tom Tromey <tom@tromey.com>
13395 Pedro Alves <palves@redhat.com>
13397 * linux-nat.c: Include scope-exit.h.
13398 (cleanup_target_stop): Remove.
13399 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13402 2019-01-23 Tom Tromey <tom@tromey.com>
13403 Pedro Alves <palves@redhat.com>
13405 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13406 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13408 2019-01-23 Tom Tromey <tom@tromey.com>
13409 Andrew Burgess <andrew.burgess@embecosm.com>
13410 Pedro Alves <palves@redhat.com>
13412 * infrun.c (fetch_inferior_event): Use scope_exit.
13413 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13414 * top.c (execute_command): Use scope_exit.
13415 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13416 * utils.c (do_bpstat_clear_actions_cleanup)
13417 (make_bpstat_clear_actions_cleanup): Remove.
13419 2019-01-23 Tom Tromey <tom@tromey.com>
13420 Pedro Alves <palves@redhat.com>
13422 * infrun.c: Include "common/scope-exit.h"
13423 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13424 (wait_for_inferior): Use SCOPE_EXIT.
13425 (fetch_inferior_event): Use scope_exit.
13427 2019-01-23 Tom Tromey <tom@tromey.com>
13428 Pedro Alves <palves@redhat.com>
13430 * breakpoint.c (create_breakpoint): Remove cleanup.
13432 2019-01-23 Tom Tromey <tom@tromey.com>
13433 Andrew Burgess <andrew.burgess@embecosm.com>
13434 Pedro Alves <palves@redhat.com>
13436 2019-01-23 Pedro Alves <palves@redhat.com>
13438 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13440 2019-01-23 Pedro Alves <palves@redhat.com>
13441 Andrew Burgess <andrew.burgess@embecosm.com>
13443 * gdbthread.h: Include "common/forward-scope-exit.h".
13444 (scoped_finish_thread_state): Redefine custom class in terms of
13445 forward_scope_exit.
13447 2019-01-23 Pedro Alves <palves@redhat.com>
13448 Andrew Burgess <andrew.burgess@embecosm.com>
13450 * common/forward-scope-exit.h: New file.
13452 2019-01-23 Pedro Alves <palves@redhat.com>
13453 Andrew Burgess <andrew.burgess@embecosm.com>
13454 Tom Tromey <tom@tromey.com>
13456 * common/scope-exit.h: New file.
13458 2019-01-23 Pedro Alves <palves@redhat.com>
13460 * common/preprocessor.h (ESC): Rename to ...
13461 (ESC_PARENS): ... this.
13462 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13463 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13465 2019-01-23 Tom Tromey <tom@tromey.com>
13467 * language.h (class scoped_switch_to_sym_language_if_auto):
13468 Initialize m_lang in both cases.
13470 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13472 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13475 2019-01-22 Tom Tromey <tom@tromey.com>
13477 * corelow.c: Do not include sys/file.h.
13479 2019-01-22 Tom Tromey <tom@tromey.com>
13481 * tui/tui-wingeneral.h: Include gdb_curses.h.
13483 2019-01-22 Tom Tromey <tom@tromey.com>
13485 * source-cache.h (class source_cache) <get_source_lines,
13486 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13488 2019-01-22 Tom Tromey <tom@tromey.com>
13490 * remote-fileio.h (struct remote_target): Declare.
13492 2019-01-22 Tom Tromey <tom@tromey.com>
13494 * python/py-arch.c: Do not include py-ref.h.
13495 * python/py-bpevent.c: Do not include py-ref.h.
13496 * python/py-cmd.c: Do not include py-ref.h.
13497 * python/py-continueevent.c: Do not include py-ref.h.
13498 * python/py-event.h: Do not include py-ref.h.
13499 * python/py-evtregistry.c: Do not include py-ref.h.
13500 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13501 * python/py-frame.c: Do not include py-ref.h.
13502 * python/py-framefilter.c: Do not include py-ref.h.
13503 * python/py-function.c: Do not include py-ref.h.
13504 * python/py-infevents.c: Do not include py-ref.h.
13505 * python/py-linetable.c: Do not include py-ref.h.
13506 * python/py-objfile.c: Do not include py-ref.h.
13507 * python/py-param.c: Do not include py-ref.h.
13508 * python/py-prettyprint.c: Do not include py-ref.h.
13509 * python/py-progspace.c: Do not include py-ref.h.
13510 * python/py-symbol.c: Do not include py-ref.h.
13511 * python/py-symtab.c: Do not include py-ref.h.
13512 * python/py-type.c: Do not include py-ref.h.
13513 * python/py-unwind.c: Do not include py-ref.h.
13514 * python/py-utils.c: Do not include py-ref.h.
13515 * python/py-value.c: Do not include py-ref.h.
13516 * python/py-varobj.c: Do not include py-ref.h.
13517 * python/py-xmethods.c: Do not include py-ref.h.
13518 * python/python.c: Do not include py-ref.h.
13519 * varobj.c: Do not include py-ref.h.
13521 2019-01-22 Tom Tromey <tom@tromey.com>
13523 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13524 keyword for bcache.
13526 2019-01-22 Tom Tromey <tom@tromey.com>
13528 * compile/compile-cplus-types.c: Remove a comment by #include.
13530 2019-01-22 Tom Tromey <tom@tromey.com>
13532 * compile/gcc-c-plugin.h: Include compile-internal.h.
13534 2019-01-22 Tom Tromey <tom@tromey.com>
13536 * stabsread.c (EXTERN): Do not define.
13537 (symnum, next_symbol_text_func, processing_gcc_compilation)
13538 (within_function, global_sym_chain, global_stabs)
13539 (previous_stab_code, this_object_header_files)
13540 (n_this_object_header_files)
13541 (n_allocated_this_object_header_files): Define.
13542 * stabsread.h (EXTERN): Never define. Use "extern".
13544 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13546 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13549 2019-01-21 Tom Tromey <tom@tromey.com>
13551 * ui-out.c: Fix includes.
13552 * tui/tui-source.c: Fix includes.
13553 * target.c: Fix includes.
13554 * remote.c: Fix includes.
13555 * regcache.c: Fix includes.
13556 * python/py-block.c: Fix includes.
13557 * printcmd.c: Fix includes.
13558 * or1k-tdep.c: Fix includes.
13559 * mi/mi-main.c: Fix includes.
13560 * m32r-tdep.c: Fix includes.
13561 * csky-tdep.c: Fix includes.
13562 * compile/compile-cplus-types.c: Fix includes.
13563 * cli/cli-interp.c: Fix includes.
13565 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13567 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13570 2019-01-16 Tom Tromey <tom@tromey.com>
13572 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13574 (struct objfile) <msymbols_range>: Move from top level.
13575 <msymbols>: New method.
13576 (class objfile_msymbols): Remove.
13577 * symtab.c (default_collect_symbol_completion_matches_break_on):
13579 * symmisc.c (dump_msymbols): Update.
13580 * stabsread.c (scan_file_globals): Update.
13581 * objc-lang.c (info_selectors_command, info_classes_command)
13582 (find_methods): Update.
13583 * minsyms.c (find_solib_trampoline_target): Update.
13584 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13585 * coffread.c (coff_symfile_read): Update.
13586 * ada-lang.c (ada_lookup_simple_minsym)
13587 (ada_collect_symbol_completion_matches): Update.
13589 2019-01-16 Tom Tromey <tom@tromey.com>
13591 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13592 type. Remove no-argument constructor.
13593 <iterator::operator++>: Simplify.
13595 <end>: Use minimal_symbol_count.
13597 2019-01-16 Tom Tromey <tom@tromey.com>
13599 * objfiles.h (struct objfile) <psymtabs>: New method.
13600 (class objfile_psymtabs): Remove.
13601 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13603 <range>: New method.
13604 (require_partial_symbols): Change return type.
13605 * psymtab.c (require_partial_symbols)
13606 (psym_expand_symtabs_matching): Update.
13607 * mdebugread.c (parse_partial_symbols): Update.
13608 * dbxread.c (dbx_end_psymtab): Update.
13610 2019-01-15 Tom Tromey <tom@tromey.com>
13612 * symtab.c (lookup_objfile_from_block)
13613 (lookup_symbol_in_objfile_symtabs)
13614 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13615 (find_line_symtab, info_sources_command)
13616 (default_collect_symbol_completion_matches_break_on)
13617 (make_source_files_completion_list): Update.
13618 * symmisc.c (print_objfile_statistics, dump_objfile)
13619 (maintenance_print_symbols, maintenance_info_symtabs)
13620 (maintenance_check_symtabs, maintenance_info_line_tables):
13622 * source.c (select_source_symtab)
13623 (forget_cached_source_info_for_objfile): Update.
13624 * objfiles.h (class objfile_compunits): Remove.
13625 (struct objfile) <compunits_range>: New typedef.
13626 (compunits): New method.
13627 * objfiles.c (objfile_relocate1): Update.
13628 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13629 * maint.c (count_symtabs_and_blocks): Update.
13630 * linespec.c (iterate_over_all_matching_symtabs): Update.
13631 * cp-support.c (add_symbol_overload_list_qualified): Update.
13632 * coffread.c (coff_symtab_read): Update.
13633 * ada-lang.c (add_nonlocal_symbols)
13634 (ada_collect_symbol_completion_matches)
13635 (ada_add_global_exceptions): Update.
13637 2019-01-15 Tom Tromey <tom@tromey.com>
13639 * progspace.h (program_space) <objfiles_safe_range>: New
13641 <objfiles_safe>: New method.
13642 * objfiles.h (class all_objfiles_safe): Remove.
13643 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13644 * jit.c (jit_inferior_exit_hook): Update.
13646 2019-01-17 Tom Tromey <tom@tromey.com>
13648 * progspace.h (program_space) <objfiles_range>: New typedef.
13649 <objfiles>: New method.
13650 <objfiles_head>: Rename from objfiles.
13651 (object_files): Update.
13652 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13653 * guile/scm-pretty-print.c
13654 (ppscm_find_pretty_printer_from_objfiles): Update.
13655 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13656 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13658 * python/py-progspace.c (pspy_get_objfiles): Update.
13659 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13661 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13662 (objfpy_lookup_objfile_by_build_id): Update.
13663 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13664 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13666 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13667 (expand_symtab_containing_pc, lookup_objfile_from_block)
13668 (lookup_static_symbol, basic_lookup_transparent_type)
13669 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13670 (find_line_symtab, info_sources_command)
13671 (default_collect_symbol_completion_matches_break_on)
13672 (make_source_files_completion_list, find_main_name): Update.
13673 * symmisc.c (print_symbol_bcache_statistics)
13674 (print_objfile_statistics, maintenance_print_symbols)
13675 (maintenance_print_msymbols, maintenance_print_objfiles)
13676 (maintenance_info_symtabs, maintenance_check_symtabs)
13677 (maintenance_expand_symtabs, maintenance_info_line_tables):
13679 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13680 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13681 (map_overlay_command, unmap_overlay_command)
13682 (simple_overlay_update, expand_symtabs_matching)
13683 (map_symbol_filenames): Update.
13684 * symfile-debug.c (set_debug_symfile): Update.
13685 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13687 * source.c (select_source_symtab, forget_cached_source_info):
13689 * solib.c (solib_read_symbols): Update.
13690 * solib-spu.c (append_ocl_sos): Update.
13691 * psymtab.c (maintenance_print_psymbols)
13692 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13693 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13694 * printcmd.c (info_symbol_command): Update.
13695 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13697 * objfiles.h (class all_objfiles): Remove.
13698 * objfiles.c (have_partial_symbols, have_full_symbols)
13699 (have_minimal_symbols, qsort_cmp, update_section_map)
13700 (shared_objfile_contains_address_p)
13701 (default_iterate_over_objfiles_in_search_order): Update.
13702 * objc-lang.c (info_selectors_command, info_classes_command)
13703 (find_methods): Update.
13704 * minsyms.c (find_solib_trampoline_target): Update.
13705 * maint.c (maintenance_info_sections)
13706 (maintenance_translate_address, count_symtabs_and_blocks):
13708 * main.c (captured_main_1): Update.
13709 * linux-thread-db.c (try_thread_db_load_from_pdir)
13710 (has_libpthread): Update.
13711 * linespec.c (iterate_over_all_matching_symtabs)
13712 (search_minsyms_for_name): Update.
13713 * jit.c (jit_find_objf_with_entry_addr): Update.
13714 * hppa-tdep.c (find_unwind_entry)
13715 (hppa_lookup_stub_minimal_symbol): Update.
13716 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13718 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13719 (elf_gnu_ifunc_resolve_by_got): Update.
13720 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13721 * dwarf-index-write.c (save_gdb_index_command): Update.
13722 * cp-support.c (add_symbol_overload_list_qualified): Update.
13723 * breakpoint.c (create_overlay_event_breakpoint)
13724 (create_longjmp_master_breakpoint)
13725 (create_std_terminate_master_breakpoint)
13726 (create_exception_master_breakpoint): Update.
13727 * blockframe.c (find_pc_partial_function): Update.
13728 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13729 (ada_collect_symbol_completion_matches)
13730 (ada_add_global_exceptions): Update.
13732 2019-01-17 Tom Tromey <tom@tromey.com>
13734 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13736 (solib_target_parse_libraries): Change return type.
13737 (library_list_start_segment, library_list_start_section)
13738 (library_list_end_library, library_list_start_library); Update.
13739 (solib_target_free_library_list): Remove.
13740 (solib_target_parse_libraries): Remove cleanup. Change return
13742 (solib_target_current_sos): Update.
13744 2019-01-17 Tom Tromey <tromey@bapiya>
13746 * valprint.c: Replace "the the" with "the".
13747 * symtab.c: Replace "the the" with "the".
13748 * solib.c: Replace "the the" with "the".
13749 * solib-dsbt.c: Replace "the the" with "the".
13750 * linespec.c: Replace "the the" with "the".
13751 * dwarf2loc.h: Replace "the the" with "the".
13752 * amd64-windows-tdep.c: Replace "the the" with "the".
13753 * aarch64-tdep.c: Replace "the the" with "the".
13755 2019-01-16 Keith Seitz <keiths@redhat.com>
13758 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13759 <builder>: Rename to ..
13760 <m_builder>: ... this and make private.
13761 (dwarf2_cu::get_builder): New method. Change all users of
13762 `builder' to use this method.
13763 (dwarf2_start_symtab): Move to ...
13764 (dwarf2_cu::start_symtab): ... here. Update all callers
13765 (setup_type_unit_groups): Move to ...
13766 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13768 (dwarf2_cu::reset_builder): New method.
13769 (process_full_compunit, process_full_type_unit): Use
13770 dwarf2_cu::reset_builder.
13771 (follow_die_offset): Record the ancestor CU if it is different
13772 from the followed DIE's CU.
13773 (follow_die_sig_1): Likewise.
13775 2019-01-15 Tom Tromey <tom@tromey.com>
13777 * remote.c (class remote_state) <buf>: Now a char_vector.
13778 <buf_size>: Remove.
13779 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13781 (remote_target::getpkt_or_notif_sane_1)
13782 (remote_target::getpkt_sane)
13783 (remote_target::getpkt_or_notif_sane): Likewise.
13784 (class remote_target) <putpkt>: New overload.
13785 (remote_target::read_frame): Change type of "buf_p". Remove
13786 sizeof_p parameter.
13787 (packet_ok): New overload.
13788 (packet_check_result): New overload.
13791 2019-01-14 Tom Tromey <tom@tromey.com>
13793 * remote-notif.c (handle_notification, remote_notif_ack)
13794 (remote_notif_parse): Make "buf" const.
13795 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13797 (remote_notif_parse, remote_notif_ack, handle_notification):
13799 * remote.c (remote_notif_stop_parse): Make "buf" const.
13800 (remote_target::remote_parse_stop_reply): Make "buf" const.
13801 (remote_notif_stop_ack): Make "buf" const.
13803 2019-01-14 Tom Tromey <tom@tromey.com>
13805 * remote.c (remote_console_output): Make parameter const.
13807 2019-01-14 Tom Tromey <tom@tromey.com>
13809 * target-debug.h (target_debug_print_signals): Constify.
13810 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13811 * procfs.c (procfs_target::pass_signals): Update.
13812 * linux-nat.c (linux_nat_target::pass_signals): Update.
13813 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13814 * target-delegates.c: Rebuild.
13815 * remote.c (remote_target::program_signals): Update.
13816 (remote_target::pass_signals): Update.
13817 * target.c (target_pass_signals): Constify argument.
13818 (target_program_signals): Likewise.
13819 * target.h (struct target_ops) <pass_signals, program_signals>:
13821 (target_pass_signals, target_program_signals): Constify argument.
13823 2019-01-14 Tom Tromey <tom@tromey.com>
13826 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13828 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13830 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13832 * rs6000-tdep.c: Include reggroups.h.
13833 (IS_V_ALIAS_PSEUDOREG): Define.
13834 (rs6000_register_name): Return names for the "vX" aliases.
13835 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13836 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13837 aliases. Call default_register_reggroup_p for all other
13839 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13841 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13842 Handle "vX" aliases.
13843 (v_alias_pseudo_register_collect): New function.
13844 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13845 (rs6000_gdbarch_init): Initialize "vX" aliases as
13846 pseudo-registers. Restore registration of
13847 rs6000_pseudo_register_reggroup_p with
13848 set_tdesc_pseudo_register_reggroup_p.
13850 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13852 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13853 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13854 set_gdbarch_num_pseudo_regs.
13856 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13858 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13859 Remove arg prefixname, add do_set and do_show.
13860 Add member functions set_list and show_list.
13861 * cli/cli-style.c (class cli_style_option): Update accordingly.
13862 (style_set_list): Move to file scope.
13863 (style_show_list): Likewise.
13864 (set_style): Call help_list.
13865 (show_style): Call cmd_show_list.
13866 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13867 Update to use the new macro.
13869 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13871 * ada-lang.c (_initialize_ada_language): Expand the help text
13872 for the "catch exception" command.
13874 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13876 * symtab.c (matching_obj_sections): Initialize obj,
13877 declare it closer to its usage.
13879 2019-01-10 Tom Tromey <tom@tromey.com>
13881 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13882 (basic_inf_threads_range): Remove.
13883 (inf_threads_range, inf_non_exited_threads_range)
13884 (safe_inf_threads_range): Use next_adapter.
13886 2019-01-10 Keith Seitz <keiths@redhat.com>
13890 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13891 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13893 2019-01-10 Keith Seitz <keiths@redhat.com>
13897 * dictionary.c (pending_to_vector): Remove.
13898 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13899 Remove _1 suffix, replacing functions of the same name. Update
13901 (dict_create_hashed, dict_create_hashed_expandable)
13902 (dict_create_linear, dict_create_linear_expandable, dict_free)
13903 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13904 Make functions static.
13906 2019-01-10 Keith Seitz <keiths@redhat.com>
13910 * dictionary.h (struct dictionary): Replace declaration with
13912 (dict_create_hashed, dict_create_hashed_expandable)
13913 (dict_create_linear, dict_create_linear_expandable)
13914 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13915 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13916 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13917 taking multidictionary argument.
13918 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13919 * block.h (struct block) <dict>: Change to multidictionary
13920 and rename `multidict'.
13921 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13922 symmisc.c: Update all dictionary references to multidictionary.
13924 2019-01-10 Keith Seitz <keiths@redhat.com>
13928 * dictionary.c: Include unordered_map.
13929 (pending_to_vector): New function.
13930 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13931 Rewrite the non-"_1" functions to take vector instead
13933 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13934 "new" _1 versions of the same name.
13935 (multidictionary): Define.
13936 (std::hash<enum language): New definition.
13937 (collate_pending_symbols_by_language, mdict_create_hashed)
13938 (mdict_create_hashed_expandable, mdict_create_linear)
13939 (mdict_create_linear_expandable, mdict_free)
13940 (find_language_dictionary, create_new_language_dictionary)
13941 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13942 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13943 (mdict_size, mdict_empty): New functions.
13944 * dictionary.h (mdict_iterator): Define.
13946 2019-01-10 Pedro Alves <palves@redhat.com>
13948 * breakpoint.c (read_uploaded_action)
13949 (create_tracepoint_from_upload): Adjust to use
13950 gdb::unique_xmalloc_ptr.
13951 * ctf.c (ctf_write_uploaded_tp):
13952 (SET_ARRAY_FIELD): Use emplace_back.
13953 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13954 * tracefile-tfile.c (tfile_write_uploaded_tp):
13955 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13956 gdb::unique_xmalloc_ptr.
13957 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13958 at_string, cond_string, cmd_strings>: Replace char pointers
13959 with gdb::unique_xmalloc_ptr.
13961 2019-01-10 Pedro Alves <palves@redhat.com>
13963 * solib-target.c (library_list_start_library): Don't xstrdup name.
13965 2019-01-10 Pedro Alves <palves@redhat.com>
13967 * mdebugread.c (parse_partial_symbols): Use
13968 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13970 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13972 * linux-fork.c (scoped_switch_fork_info)
13973 <~scoped_switch_fork_info>: Fix incorrect variable name.
13975 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13977 * linux-fork.c (scoped_switch_fork_info)
13978 <scoped_switch_fork_info>: Make explicit.
13979 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13981 2019-01-10 Tom Tromey <tom@tromey.com>
13983 * objfiles.h (objfile::reset_psymtabs): Update.
13984 * objfiles.c (objfile::objfile): Update.
13985 * psymtab.h (psymtab_storage::obstack): Update.
13986 (psymtab_storage::m_obstack): Use gdb::optional.
13987 (class psymtab_storage): Update comment. Remove objfile
13989 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13991 2019-01-10 Tom Tromey <tom@tromey.com>
13993 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13994 <free_psymtabs>: Now private.
13995 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13996 (allocate_psymtab): Use new method.
13998 2019-01-10 Tom Tromey <tom@tromey.com>
14000 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14001 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14002 * mdebugread.c (parse_partial_symbols): Use
14003 allocate_dependencies.
14004 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14005 allocate_dependencies.
14006 (process_psymtab_comp_unit_reader)
14007 (build_type_psymtab_dependencies): Likewise.
14008 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14010 2019-01-10 Tom Tromey <tom@tromey.com>
14012 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14013 PSYMBOL_SET_LANGUAGE.
14014 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14016 2019-01-10 Tom Tromey <tom@tromey.com>
14018 * psymtab.h (psymtab_storage::obstack): New method.
14019 <m_obstack>: Rename from obstack; now private.
14020 * psymtab.c (psymtab_storage): Update.
14021 * dwarf2read.c (create_addrmap_from_index)
14022 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14025 2019-01-10 Tom Tromey <tom@tromey.com>
14027 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14028 * objfiles.h (objfile::reset_psymtabs): New method.
14030 2019-01-10 Tom Tromey <tom@tromey.com>
14032 * symmisc.c (print_symbol_bcache_statistics): Update.
14033 (print_objfile_statistics): Update.
14034 * symfile.c (reread_symbols): Update.
14035 * psymtab.h (class psymtab_storage): New.
14036 * psymtab.c (psymtab_storage): New constructor.
14037 (~psymtab_storage): New destructor.
14038 (require_partial_symbols): Update.
14039 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14040 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14041 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14042 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14043 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14044 (start_psymtab_common, end_psymtab_common)
14045 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14046 (allocate_psymtab): Update.
14047 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14049 (dump_psymtab_addrmap, maintenance_print_psymbols)
14050 (maintenance_check_psymtabs): Update.
14051 (class objfile_psymtabs): Move to objfiles.h.
14052 * psympriv.h (discard_psymtab): Now inline.
14053 (psymtab_discarder::psymtab_discarder): Update.
14054 (psymtab_discarder::~psymtab_discarder): Update.
14055 (ALL_OBJFILE_PSYMTABS): Rewrite.
14056 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14057 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14059 <partial_symtabs>: New field.
14060 (class objfile_psymtabs): Move from psymtab.h. Update.
14061 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14063 (objfile::~objfile): Don't destroy psymbol_cache.
14064 * mdebugread.c (parse_partial_symbols): Update.
14065 * dwarf2read.c (create_addrmap_from_index)
14066 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14067 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14068 (add_partial_subprogram, dwarf2_ranges_read): Update.
14069 * dwarf-index-write.c (write_address_map)
14070 (write_one_signatured_type, recursively_write_psymbols)
14071 (class debug_names, class debug_names, write_psymtabs_to_index):
14074 2019-01-10 Tom Tromey <tom@tromey.com>
14076 * symtab.h (SYMBOL_SET_NAMES): Update.
14077 (symbol_set_names): Update.
14078 (MSYMBOL_SET_NAMES): Update.
14079 * symtab.c (symbol_set_names): Change argument to be an
14080 objfile_per_bfd_storage.
14081 * psymtab.c (add_psymbol_to_bcache): Update.
14082 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14084 2019-01-10 Tom Tromey <tom@tromey.com>
14086 * symtab.c (create_demangled_names_hash): Change argument to be an
14087 objfile_per_bfd_storage.
14088 (symbol_set_names): Update.
14090 2019-01-10 Tom Tromey <tom@tromey.com>
14092 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14094 * psymtab.c (init_psymbol_list): Do nothing if already called.
14095 * psympriv.h (init_psymbol_list): Add comment.
14096 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14098 * dbxread.c (dbx_symfile_read): Unconditionally call
14101 2019-01-10 Tom Tromey <tom@tromey.com>
14103 * xcoffread.c (scan_xcoff_symtab): Update.
14104 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14106 * mdebugread.c (parse_partial_symbols)
14107 (handle_psymbol_enumerators): Update.
14108 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14109 * dbxread.c (read_dbx_symtab): Update.
14110 * psympriv.h (psymbol_placement): New enum.
14111 (add_psymbol_to_list): Update.
14113 2019-01-10 Tom Tromey <tom@tromey.com>
14115 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14116 static_psymbols parameters.
14117 (scan_xcoff_symtab): Update.
14118 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14119 static_psymbols parameters.
14120 * psympriv.h (start_psymtab_common): Update.
14121 * mdebugread.c (parse_partial_symbols): Update.
14122 * dwarf2read.c (create_partial_symtab): Update.
14123 * dbxread.c (read_dbx_symtab): Update.
14124 (start_psymtab): Remove global_psymbols and static_psymbols
14127 2019-01-10 Tom Tromey <tom@tromey.com>
14129 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14130 * psymtab.c (allocate_psymtab): Add comment.
14131 * psympriv.h (allocate_psymtab): Add comment.
14132 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14134 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14136 2019-01-10 Tom Tromey <tom@tromey.com>
14138 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14140 * mipsread.c: Include mdebugread.h.
14141 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14143 * elfread.c: Include mdebugread.h.
14145 2019-01-09 Tom Tromey <tom@tromey.com>
14147 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14148 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14149 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14150 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14151 (psym_lookup_symbol, psym_find_last_source_symtab)
14152 (psym_forget_cached_source_info, psym_print_stats)
14153 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14154 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14155 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14156 (psym_find_compunit_symtab_by_address)
14157 (maintenance_print_psymbols, maintenance_info_psymtabs)
14158 (maintenance_check_psymtabs): Use ranged for.
14159 * psymtab.h (class objfile_psymtabs): New.
14160 (require_partial_symbols): Return objfile_psymtabs.
14161 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14163 2019-01-09 Tom Tromey <tom@tromey.com>
14165 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14166 (find_pc_mapped_section, list_overlays_command)
14167 (map_overlay_command, unmap_overlay_command)
14168 (simple_overlay_update): Use all_objfiles.
14169 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14170 * printcmd.c (info_symbol_command): Use all_objfiles.
14171 * objfiles.h (ALL_OBJSECTIONS): Remove.
14172 * maint.c (maintenance_translate_address): Use all_objfiles.
14173 * gcore.c (gcore_create_callback): Use all_objfiles.
14174 (objfile_find_memory_regions): Likewise.
14176 2019-01-09 Tom Tromey <tom@tromey.com>
14178 * symtab.c (find_line_symtab, info_sources_command)
14179 (make_source_files_completion_list): Use objfile_compunits.
14180 * source.c (select_source_symtab): Use objfile_compunits.
14181 * objfiles.h (struct objfile): Update comment.
14182 (ALL_OBJFILES): Remove.
14183 (ALL_FILETABS): Remove.
14184 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14187 2019-01-09 Tom Tromey <tom@tromey.com>
14189 * symmisc.c (print_objfile_statistics, dump_objfile)
14190 (maintenance_print_symbols): Use compunit_filetabs.
14191 * source.c (forget_cached_source_info_for_objfile): Use
14193 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14194 (ALL_FILETABS): Use compunit_filetabs.
14195 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14196 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14198 2019-01-09 Tom Tromey <tom@tromey.com>
14200 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14201 (compunit_filetabs): New.
14202 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14204 (info_sources_command, make_source_files_completion_list): Remove
14206 * symmisc.c (print_objfile_statistics, dump_objfile)
14207 (maintenance_print_symbols): Remove declaration.
14208 (maintenance_info_symtabs): Use compunit_filetabs.
14209 (maintenance_info_line_tables): Likewise.
14210 * source.c (select_source_symtab): Change local variable name.
14211 (forget_cached_source_info_for_objfile): Remove declaration.
14212 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14213 * objfiles.c (objfile_relocate1): Remove declaration.
14214 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14216 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14217 * coffread.c (coff_symtab_read): Remove declaration.
14218 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14221 2019-01-09 Tom Tromey <tom@tromey.com>
14223 * symtab.c (lookup_objfile_from_block)
14224 (find_pc_sect_compunit_symtab, search_symbols)
14225 (default_collect_symbol_completion_matches_break_on): Use
14227 * objfiles.h (ALL_COMPUNITS): Remove.
14228 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14229 * cp-support.c (add_symbol_overload_list_qualified): Use
14231 * ada-lang.c (ada_collect_symbol_completion_matches)
14232 (ada_add_global_exceptions): Use objfile_compunits.
14234 2019-01-09 Tom Tromey <tom@tromey.com>
14236 * source.c (select_source_symtab)
14237 (forget_cached_source_info_for_objfile): Remove declaration.
14238 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14240 * maint.c (count_symtabs_and_blocks): Remove declaration.
14241 * cp-support.c (add_symbol_overload_list_qualified): Remove
14243 * coffread.c (coff_symtab_read): Remove declaration.
14244 * symtab.c (lookup_symbol_in_objfile_symtabs)
14245 (basic_lookup_transparent_type_1): Use objfile_compunits.
14246 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14247 (info_sources_command, search_symbols)
14248 (default_collect_symbol_completion_matches_break_on)
14249 (make_source_files_completion_list): Remove declaration.
14250 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14251 (ada_collect_symbol_completion_matches)
14252 (ada_add_global_exceptions): Remove declaration.
14253 * linespec.c (iterate_over_all_matching_symtabs): Use
14255 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14256 (class objfile_compunits): New.
14257 (ALL_COMPUNITS): Use objfile_compunits.
14258 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14259 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14261 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14263 2019-01-09 Tom Tromey <tom@tromey.com>
14265 * symtab.c (search_symbols)
14266 (default_collect_symbol_completion_matches_break_on): Use
14268 * ada-lang.c (ada_lookup_simple_minsym)
14269 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14270 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14271 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14273 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14274 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14275 * objc-lang.c (find_methods): Use objfile_msymbols.
14276 (info_selectors_command, info_classes_command): Likewise.
14277 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14278 * objfiles.h (class objfile_msymbols): New.
14279 (ALL_OBJFILE_MSYMBOLS): Remove.
14280 (ALL_MSYMBOLS): Remove.
14282 2019-01-09 Tom Tromey <tom@tromey.com>
14284 * common/next-iterator.h (next_adapter): Add Iterator template
14286 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14287 (class all_objfiles_safe): New.
14288 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14289 * objfiles.c (put_objfile_before): Update comment.
14290 (add_separate_debug_objfile): Likewise.
14291 (free_all_objfiles): Use all_objfiles_safe.
14292 (objfile_purge_solibs): Likewise.
14294 2019-01-09 Tom Tromey <tom@tromey.com>
14296 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14297 (expand_symtab_containing_pc, lookup_static_symbol)
14298 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14299 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14301 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14302 * breakpoint.c (create_overlay_event_breakpoint)
14303 (create_longjmp_master_breakpoint)
14304 (create_std_terminate_master_breakpoint)
14305 (create_exception_master_breakpoint): Use all_objfiles.
14306 * linux-thread-db.c (try_thread_db_load_from_pdir)
14307 (has_libpthread): Use all_objfiles.
14308 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14309 * linespec.c (iterate_over_all_matching_symtabs)
14310 (search_minsyms_for_name): Use all_objfiles.
14311 * maint.c (maintenance_info_sections): Use all_objfiles.
14312 * main.c (captured_main_1): Use all_objfiles.
14313 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14314 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14315 * guile/scm-pretty-print.c
14316 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14317 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14318 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14319 (maintenance_print_msymbols): Use all_objfiles.
14320 * source.c (select_source_symtab): Use all_objfiles.
14321 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14322 * symfile.c (remove_symbol_file_command)
14323 (expand_symtabs_matching, map_symbol_filenames): Use
14325 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14327 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14328 * objc-lang.c (find_methods): Use all_objfiles.
14329 * objfiles.c (have_partial_symbols, have_full_symbols)
14330 (have_minimal_symbols, qsort_cmp)
14331 (default_iterate_over_objfiles_in_search_order): Use
14333 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14334 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14335 (maintenance_check_psymtabs): Use all_objfiles.
14336 (ALL_PSYMTABS): Remove.
14337 * compile/compile-object-run.c (do_module_cleanup): Use
14339 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14340 * cp-support.c (add_symbol_overload_list_qualified): Use
14342 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14344 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14345 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14347 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14348 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14349 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14351 * solib.c (solib_read_symbols): Use all_objfiles
14353 2019-01-09 Tom Tromey <tom@tromey.com>
14355 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14356 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14358 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14359 * symmisc.c (print_symbol_bcache_statistics)
14360 (print_objfile_statistics, maintenance_print_objfiles)
14361 (maintenance_info_symtabs, maintenance_check_symtabs)
14362 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14364 * source.c (forget_cached_source_info): Use all_objfiles.
14365 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14366 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14367 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14368 * objfiles.c (update_section_map): Use all_objfiles.
14369 (shared_objfile_contains_address_p): Likewise.
14370 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14371 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14373 2019-01-09 Tom Tromey <tom@tromey.com>
14375 * common/next-iterator.h: New file.
14376 * objfiles.h (class all_objfiles): New.
14377 (struct objfile_iterator): New.
14379 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14381 * NEWS: Move the description of the changed "frame", "select-frame",
14382 and "info frame" commands to the Changed commands section.
14384 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14386 * gdbtypes.c (check_stub_method_group): Remove handling of old
14388 * linespec.c (find_methods): Likewise.
14389 * stabsread.c (read_member_functions): Likewise.
14390 * valops.c (search_struct_method): Likewise.
14391 (value_struct_elt_for_reference): Likewise.
14392 * NEWS: Mention this change.
14394 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14396 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14397 print_source_lines.
14398 * source.c (print_source_lines_base): Update line number check.
14399 (print_source_lines): New function.
14400 (source_lines_range::source_lines_range): New function.
14401 * source.h (class source_lines_range): New class.
14402 (print_source_lines): New declaration.
14404 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14406 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14408 2019-01-08 Tom Tromey <tom@tromey.com>
14409 Simon Marchi <simon.marchi@ericsson.com>
14412 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14413 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14414 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14415 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14416 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14417 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14419 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14421 * source.c (select_source_symtab): Move header comment to
14422 declaration in source.h.
14423 (forget_cached_source_info_for_objfile): Likewise.
14424 (forget_cached_source_info): Likewise.
14425 (identify_source_line): Likewise.
14426 * source.h (identify_source_line): Move declaration from symtab.h
14427 and add comment from source.c
14428 (print_source_lines): Likewise.
14429 (forget_cached_source_info_for_objfile): Likewise.
14430 (forget_cached_source_info): Likewise.
14431 (select_source_symtab): Likewise.
14432 (enum print_source_lines_flag): Move definition from symtab.h.
14433 * symtab.h (identify_source_line): Move declaration to source.h.
14434 (print_source_lines): Likewise.
14435 (forget_cached_source_info_for_objfile): Likewise.
14436 (forget_cached_source_info): Likewise.
14437 (select_source_symtab): Likewise.
14438 (enum print_source_lines_flag): Move definition to source.h.
14439 * tui/tui-hooks.c: Add 'source.h' include.
14441 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14443 * source.c (print_source_lines_base): Handle requests to print
14444 reverse line number sequences, and guard against empty lines
14447 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14449 * source.c (print_source_lines_base): Fix skip of '\r' if next
14452 2019-01-06 Tom Tromey <tom@tromey.com>
14454 * c-exp.y (struct c_parse_state) <macro_original_text,
14455 expansion_obstack>: New member.
14456 (macro_original_text, expansion_obstack): Remove globals.
14457 (scan_macro_expansion, scanning_macro_expansion)
14458 (finished_macro_expansion): Update.
14459 (scan_macro_cleanup): Remove.
14460 (yylex, c_parse): Update.
14462 2019-01-06 Tom Tromey <tom@tromey.com>
14464 * c-exp.y (struct c_parse_state) <strings>: New member.
14465 (operator_stoken): Update.
14467 2019-01-06 Tom Tromey <tom@tromey.com>
14469 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14470 (union type_stack_elt) <typelist_val>: Now a pointer to
14472 (type_stack_cleanup): Don't declare.
14473 (push_typelist): Update.
14474 * parse.c (pop_typelist): Return a std::vector.
14475 (push_typelist): Take a std::vector.
14476 (follow_types): Update. Do not free args.
14477 (type_stack_cleanup): Remove.
14478 * c-exp.y (struct c_parse_state): New.
14479 (cpstate): New global.
14480 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14481 (nonempty_typelist): Update.
14482 (func_mod): Create a new vector.
14483 (c_parse): Create a c_parse_state.
14484 (check_parameter_typelist): Do not delete params.
14485 (function_method): Update. Do not delete type_list.
14487 2019-01-06 Tom Tromey <tom@tromey.com>
14490 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14492 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14493 (print_return_value): Likewise.
14495 2019-01-05 Tom Tromey <tom@tromey.com>
14497 * contrib/cleanup_check.py: Remove.
14498 * contrib/gcc-with-excheck: Remove.
14499 * contrib/exsummary.py: Remove.
14500 * contrib/excheck.py: Remove.
14502 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14504 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14505 NULL. Initialize tpprev to NULL instead of assigning it
14506 to NULL on the next statement.
14507 * windows-nat.c (windows_delete_thread): Remove check for
14508 main_thread_id before printing thread exit notifications.
14509 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14510 Remove thread ID check against main_thread_id.
14511 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14512 windows_delete_thread.
14513 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14515 2019-01-04 Tom Tromey <tom@tromey.com>
14517 * compile/compile.c (_initialize_compile): Use upper case for
14518 metasyntactic variables.
14519 * symmisc.c (_initialize_symmisc): Use upper case for
14520 metasyntactic variables.
14521 * psymtab.c (_initialize_psymtab): Use upper case for
14522 metasyntactic variables.
14523 * demangle.c (demangle_command): Use upper case for metasyntactic
14525 (_initialize_demangler): Likewise.
14526 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14529 2019-01-03 Tom Tromey <tom@tromey.com>
14531 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14533 2019-01-03 Tom Tromey <tom@tromey.com>
14535 * python/py-symtab.c (salpy_str): Update.
14536 (struct salpy_sal_object) <symtab>: Now a PyObject.
14537 (salpy_dealloc): Update.
14538 (del_objfile_sal): Use gdbpy_ref.
14540 2019-01-03 Tom Tromey <tom@tromey.com>
14542 * python/py-type.c (convert_field): Use new_reference. Return
14544 (make_fielditem): Return gdbpy_ref.
14545 (typy_fields): Update.
14546 (typy_getitem): Update.
14547 (field_name): Return gdbpy_ref. Use new_reference.
14548 (typy_iterator_iternext): Update.
14550 2019-01-03 Tom Tromey <tom@tromey.com>
14552 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14554 2019-01-03 Tom Tromey <tom@tromey.com>
14556 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14557 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14558 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14559 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14560 (pspy_set_type_printers): Likewise.
14561 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14562 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14563 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14564 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14565 (objfpy_set_type_printers): Likewise.
14567 2019-01-03 Tom Tromey <tom@tromey.com>
14569 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14570 (gdbpy_print_stack): Use gdbpy_err_fetch.
14571 * python/python-internal.h (class gdbpy_err_fetch): New class.
14572 (class gdbpy_enter) <m_error_type, m_error_value,
14573 m_error_traceback>: Remove.
14574 <m_error>: New member.
14575 (gdbpy_exception_to_string): Don't declare.
14576 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14577 * python/py-value.c (convert_value_from_python): Use
14579 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14580 gdbpy_exception_to_string.
14581 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14582 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14585 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14587 * linux-nat.c (delete_lwp_cleanup): Delete.
14588 (struct lwp_deleter): New struct.
14589 (lwp_info_up): New typedef.
14590 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14593 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14595 * linux-fork.c (class scoped_switch_fork_info): New class.
14596 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14598 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14600 * valops.c (find_overload_match): Remove use of null_cleanup, and
14601 calls to do_cleanups.
14603 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14605 * compile/compile-cplus-types.c
14606 (compile_cplus_instance::decl_name): Handle changes to
14608 * cp-support.c (cp_func_name): Update header comment, update
14610 * cp-support.h (cp_func_name): Update return type in declaration.
14611 * valops.c (find_overload_match): Move temp_func local to top
14612 level of function and change its type. Use temp_func to hold and
14613 delete temporary string obtained from cp_func_name.
14615 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14617 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14618 gdb::char_vector, remove cleanup, and update uses of `msg`.
14620 2019-01-03 Jim Wilson <jimw@sifive.com>
14622 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14624 2019-01-02 Tom Tromey <tom@tromey.com>
14626 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14627 (tdesc_parse_xml): Remove cleanups.
14628 * target-descriptions.h (make_cleanup_free_target_description):
14630 (target_desc_deleter): New struct.
14631 (target_desc_up): New typedef.
14632 * target-descriptions.c (target_desc_deleter::operator()): Rename
14633 from free_target_description.
14634 (make_cleanup_free_target_description): Remove.
14636 2019-01-02 Tom Tromey <tom@tromey.com>
14638 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14639 constructor, destructor.
14640 (linespec_parser): Remove typedef.
14641 (~linespec_parser): Rename from linespec_parser_delete.
14642 (linespec_lex_to_end, linespec_complete_label)
14643 (linespec_complete): Update.
14644 (decode_line_full): Remove cleanups.
14645 (decode_line_1): Update.
14647 2019-01-02 Tom Tromey <tom@tromey.com>
14649 * python/python-internal.h (inferior_to_inferior_object): Change
14651 * python/py-exitedevent.c (create_exited_event_object): Update.
14652 * python/py-inferior.c (inferior_to_inferior_object): Return
14654 (python_new_inferior, python_inferior_deleted)
14655 (thread_to_thread_object, delete_thread_object)
14656 (build_inferior_list, gdbpy_selected_inferior): Update.
14657 * python/py-infthread.c (create_thread_object): Update. Also fail
14658 if inferior_to_inferior_object fails.
14660 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14662 * inferior.h (class inferior) <displaced_step_state>: New field.
14663 * infrun.h (struct displaced_step_state): Move here from
14664 infrun.c. Initialize fields, add constructor.
14665 <inf>: Remove field.
14666 <reset>: New method.
14667 * infrun.c (struct displaced_step_inferior_state): Move to
14669 (displaced_step_inferior_states): Remove.
14670 (get_displaced_stepping_state): Adust.
14671 (displaced_step_in_progress_any_inferior): Adjust.
14672 (displaced_step_in_progress_thread): Adjust.
14673 (displaced_step_in_progress): Adjust.
14674 (add_displaced_stepping_state): Remove.
14675 (get_displaced_step_closure_by_addr): Adjust.
14676 (remove_displaced_stepping_state): Remove.
14677 (infrun_inferior_exit): Call displaced_step_state.reset.
14678 (use_displaced_stepping): Don't check for NULL.
14679 (displaced_step_prepare_throw): Call
14680 get_displaced_stepping_state.
14681 (displaced_step_fixup): Don't check for NULL.
14682 (prepare_for_detach): Don't check for NULL.
14684 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14686 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14687 in case of call that did not complete.
14689 2019-01-02 Andrey Utkin <autkin@undo.io>
14691 * symfile.c (find_separate_debug_file): Fix search of debug files for
14694 2019-01-02 Tom Tromey <tom@tromey.com>
14696 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14698 * python/py-frame.c (frapy_older): Remove cast.
14699 (frapy_newer): Likewise.
14700 * python/py-breakpoint.c (local_setattro): Remove cast.
14701 * python/py-arch.c (archpy_name): Remove local variable.
14702 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14704 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14706 * unittests/basic_string_view/element_access/char/empty.cc:
14707 Fix year range in copyright header.
14709 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14711 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14713 <operator==>: Update with for removed field.
14715 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14716 <isa_features>: ...this.
14717 <abi_features>: New field.
14718 (riscv_isa_flen): Update comment.
14719 (riscv_abi_xlen): New declaration.
14720 (riscv_abi_flen): New declaration.
14721 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14723 (riscv_abi_xlen): New function.
14724 (riscv_isa_flen): Update to get answer from isa_features.
14725 (riscv_abi_flen): New function.
14726 (riscv_has_fp_abi): Update to get answer from abi_features.
14727 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14729 (riscv_call_info) <xlen, flen>: Update comment.
14730 (riscv_call_arg_struct): Remove invalid assertions
14731 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14733 (riscv_gdbarch_init): Gather isa features and abi features
14734 separately, ensure both match on the gdbarch when reusing an old
14735 gdbarch. Relax an error check to allow 32-bit abi float to run on
14736 a target with 64-bit float hardware.
14738 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14740 * source.c (search_command_helper): Stop reverse search
14741 when line 1 has been searched.
14743 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14745 * record-full.c (record_full_base_target::close): Rewrite
14746 record_full_core_buf_list free logic.
14748 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14750 * break-catch-syscall.c (print_one_catch_syscall): xfree
14753 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14755 * top.c (print_gdb_version): Update Copyright year in version
14758 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14760 Update copyright year range in all GDB files.
14762 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14764 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14766 For older changes see ChangeLog-2018.
14772 version-control: never