1 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
3 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
4 * unittests/vec-utils-selftests.c: New file.
5 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
7 2019-11-10 Tom Tromey <tom@tromey.com>
9 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
10 (tui_highlight_win): Likewise.
11 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
12 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
13 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14 Don't set can_highlight.
16 2019-11-10 Tom Tromey <tom@tromey.com>
18 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
19 Remove unused declaration.
21 2019-11-08 Tom Tromey <tromey@adacore.com>
23 * top.c (read_command_file): Update.
24 (command_line_input): Make return type const.
25 * python/py-gdb-readline.c: Update.
26 * linespec.c (decode_line_2): Update.
27 * defs.h (command_line_input): Make return type const.
28 * cli/cli-script.c (read_next_line): Make return type const.
29 * ada-lang.c (get_selections): Update.
31 2019-11-06 Christian Biesinger <cbiesinger@google.com>
33 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
34 * mi/mi-main.c (output_cores): Likewise.
35 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
36 (linux_xfer_osdata_modules): Likewise.
37 * remote.c (register_remote_support_xml): Likewise.
38 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
39 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
41 2019-11-06 Tom Tromey <tom@tromey.com>
43 * tui/tui-interp.c: Don't include readline.h.
44 * tui/tui-hooks.c: Don't include readline.h.
45 * symmisc.c: Include tilde.h, not readline.h.
46 * symfile.c: Include tilde.h, not readline.h.
47 * source.c: Include tilde.h, not readline.h.
48 * solib.c: Include tilde.h, not readline.h.
49 * psymtab.c: Include tilde.h, not readline.h.
50 * exec.c: Include tilde.h, not readline.h.
51 * corelow.c: Include tilde.h, not readline.h.
52 * cli/cli-dump.c: Include tilde.h, not readline.h.
53 * cli/cli-cmds.c: Don't include readline.h.
55 2019-11-05 Tom Tromey <tom@tromey.com>
57 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
58 (tui_disassemble): Set addr_size.
59 (tui_disasm_window::set_contents): Use addr_size.
61 2019-11-05 Tom Tromey <tom@tromey.com>
63 * rust-lang.c (rust_language_defn): Update.
64 * python/py-value.c (valpy_string): Call c_get_string.
65 * p-lang.c (pascal_language_defn): Update.
66 * opencl-lang.c (opencl_language_defn): Update.
67 * objc-lang.c (objc_language_defn): Update.
68 * m2-lang.c (m2_language_defn): Update.
69 * language.c (unknown_language_defn, auto_language_defn): Update.
70 (default_get_string): Remove.
71 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
72 * go-lang.c (go_language_defn): Update.
73 * f-lang.c (f_language_defn): Update.
74 * d-lang.c (d_language_defn): Update.
75 * c-lang.c (c_language_defn, cplus_language_defn)
76 (asm_language_defn, minimal_language_defn): Update.
77 * ada-lang.c (ada_language_defn): Update.
78 * language.h (struct language_defn) <la_get_string>: Remove.
79 (LA_GET_STRING): Remove.
80 (default_get_string): Don't declare.
82 2019-11-05 Tom Tromey <tom@tromey.com>
84 * tui/tui-source.h (struct tui_source_window): Inline
85 constructor. Remove destructor.
86 <style_changed, m_observable>: Move to superclass.
87 * tui/tui-winsource.h (tui_copy_source_line): Declare.
88 (struct tui_source_window_base): Move private members to end.
89 <style_changed, m_observable>: Move from tui_source_window.
90 * tui/tui-winsource.c (tui_copy_source_line): Move from
91 tui-source.c. Rename from copy_source_line. Add special handling
92 for negative line number.
93 (tui_source_window_base::style_changed): Move from
95 (tui_source_window_base): Register observer.
96 (~tui_source_window_base): New.
97 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
99 (tui_source_window::set_contents): Use tui_copy_source_line.
100 (tui_source_window::tui_source_window): Move to tui-source.h.
101 (tui_source_window::~tui_source_window): Remove.
102 (tui_source_window::style_changed): Move to superclass.
103 * tui/tui-disasm.c (tui_disassemble): Create string file with
104 styling, when possible. Add "addr_size" parameter.
105 (tui_disasm_window::set_contents): Use tui_copy_source_line.
106 Don't compute maximum size.
107 (len_without_escapes): New function
109 2019-11-05 Tom Tromey <tom@tromey.com>
111 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
113 * tui/tui-winsource.c (tui_show_source_line): Update.
114 * tui/tui-source.c (tui_source_window::set_contents): Update.
115 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
117 2019-11-05 Christian Biesinger <cbiesinger@google.com>
119 * symtab.h (gdb_static_assert): Put && operator at the beginning
120 of the line instead of the end.
122 2019-11-04 Christian Biesinger <cbiesinger@google.com>
124 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
126 * symtab.h: Add a static_assert for sizeof (partial_symbol).
128 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
130 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
131 * configure.host: Mark *-*-solaris2.10* obsolete.
132 * configure.tgt: Mark Solaris < 11 obsolete.
133 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
134 Update target triplet.
136 2019-11-01 Tom Tromey <tromey@adacore.com>
138 * utils.c (print_sys_errmsg): Simplify.
140 2019-11-01 Tom Tromey <tromey@adacore.com>
142 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
144 2019-11-01 Christian Biesinger <cbiesinger@google.com>
146 * configure: Regenerate.
147 * configure.ac: Remove check for strerror_r.
148 * gdbsupport/common.m4: Check for strerror_r.
150 2019-11-01 Luis Machado <luis.machado@linaro.org>
154 * arm-tdep.c (arm_per_objfile): Rename to ...
155 (arm_per_bfd): ... this.
156 (arm_objfile_data_key): Rename to ...
157 (arm_bfd_data_key): ... this.
158 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
160 (arm_record_special_symbol): Likewise.
162 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
164 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
166 * c-typeprint.c (c_print_typedef): Likewise.
167 * f-typeprint.c (f_print_typedef): Likewise.
168 * m2-typeprint.c (m2_print_typedef): Likewise.
169 * p-typeprint.c (pascal_print_typedef): Likewise.
170 * rust-lang.c (rust_print_typedef): Likewise.
171 * symtab.c (print_symbol_info): Print a newline after calling
174 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
176 * symtab.c (info_module_cmdlist): New variable.
177 (info_module_command): New function.
178 (search_module_symbols): New function.
179 (info_module_subcommand): New function.
180 (struct info_modules_var_func_options): New struct.
181 (info_modules_var_func_options_defs): New variable.
182 (make_info_modules_var_func_options_def_group): New function.
183 (info_module_functions_command): New function.
184 (info_module_variables_command): New function.
185 (info_module_var_func_command_completer): New function.
186 (_initialize_symtab): Register new 'info module functions' and
187 'info module variables' commands.
188 * symtab.h (typedef symbol_search_in_module): New typedef.
189 (search_module_symbols): Declare new function.
190 * NEWS: Mention new commands.
192 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
194 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
195 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
196 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
198 (scan_partial_symbols): Only create partial module symbols for non
200 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
202 * symtab.c (search_domain_name): Likewise.
203 (search_symbols): Likewise.
204 (print_symbol_info): Likewise.
205 (symtab_symbol_info): Likewise.
206 (info_modules_command): New function.
207 (_initialize_symtab): Register 'info modules' command.
208 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
209 * NEWS: Mention new 'info modules' command.
211 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
213 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
214 and $_gdb_maint_setting_str.
216 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
218 * cli/cli-cmds.c (setting_cmd, value_from_setting)
219 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
220 (str_value_from_setting, gdb_setting_str_internal_fn)
221 (gdb_maint_setting_str_internal_fn): New functions.
222 (_initialize_cli_cmds): Define the new convenience functions.
223 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
224 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
226 2019-10-31 Christian Biesinger <cbiesinger@google.com>
228 * agent.c (set_can_use_agent): When the setting is turned on,
229 look up agent symbols if we don't have them yet.
230 (agent_new_objfile): Don't look up agent symbols when the agent
233 2019-10-31 Christian Biesinger <cbiesinger@google.com>
235 * config.in: Regenerate.
237 2019-10-31 Christian Biesinger <cbiesinger@google.com>
239 * configure: Regenerate.
240 * configure.ac: Check for strerror_r.
241 * gdbsupport/common-utils.h (safe_strerror): Change return value
242 to const char * and document that this function is now threadsafe.
243 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
244 thread_local and call strerror_r, if available.
245 * utils.c (perror_string): Update.
246 (print_sys_errmsg): Update.
248 2019-10-31 Luis Machado <luis.machado@linaro.org>
250 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
252 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
253 objfile to fetch per-bfd data.
254 (arm_find_exidx_entry): Likewise.
256 2019-10-31 Christian Biesinger <cbiesinger@google.com>
258 * gdbsupport/agent.c (debug_agent): Change type to bool.
259 (use_agent): Likewise.
260 (all_agent_symbols_look_up): Likewise.
261 (agent_loaded_p): Change return value to bool.
262 (agent_look_up_symbols): Update.
263 (agent_capability_check): Change return value to bool.
264 * gdbsupport/agent.h (agent_loaded_p): Likewise.
265 (debug_agent): Change type to bool.
266 (use_agent): Likewise.
267 (agent_capability_check): Change return value to bool.
269 2019-10-30 Christian Biesinger <cbiesinger@google.com>
271 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
272 (build_minimal_symbol_hash_tables): Code to clear the table moved
273 to clear_minimal_symbol_hash_tables.
274 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
277 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
279 * infcmd.c: Remove includes.
280 * infrun.c: Remove includes.
282 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
284 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
285 (grow_vect): Remove declaration.
286 (ada_type_of_array): Remove declaration.
287 (ada_update_initial_language): Remove declaration.
288 (ada_fold_name): Remove declaration.
289 (ada_fill_in_ada_prototype): Remove declaration.
290 (user_select_syms): Remove declaration.
291 (get_selections): Remove declaration.
292 (ada_tag_type): Remove declaration.
293 (ada_value_tag): Remove declaration.
294 (ada_is_others_clause): Remove declaration.
295 (ada_in_variant): Remove declaration.
296 (ada_value_struct_elt): Remove declaration.
297 (ada_attribute_name): Remove declaration.
298 (ada_system_address_type): Remove declaration.
299 * ada-lang.c (ada_watch_location_expression): Make static.
300 (GROW_VECT): Move here from ada-lang.h.
301 (grow_vect): Make static.
302 (ada_update_initial_language): Make static.
303 (ada_fold_name): Make static.
304 (ada_type_of_array): Make static.
305 (encoded_ordered_before): Move up.
306 (sort_choices): Move up.
307 (print_signatures): Move up.
308 (ada_print_symbol_signature): Move up.
309 (get_selections): Move up and make static.
310 (user_select_syms): Move up and make static.
311 (ada_value_struct_elt): Move up and make static.
312 (ada_tag_type): Make static.
313 (ada_value_tag): Make static.
314 (ada_is_others_clause): Make static.
315 (ada_in_variant): Make static.
316 (ada_attribute_name): Make static.
318 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
320 * ada-lang.c: Remove includes.
321 * ada-typeprint.c: Remove includes.
322 * ada-valprint.c: Remove includes.
324 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
326 * addrmap.c: Add static assertions of type size, moved from
328 (_initialize_addrmap): Remove.
330 2019-10-29 Christian Biesinger <cbiesinger@google.com>
332 * coffread.c (record_minimal_symbol): Update.
333 (process_coff_symbol): Update.
334 * dbxread.c (read_dbx_symtab): Update.
335 * dwarf2read.c (add_partial_symbol): Update.
336 (fixup_go_packaging): Update.
337 (load_partial_dies): Update.
338 (new_symbol): Update.
339 * elfread.c (record_minimal_symbol): Change signature to use
340 gdb::string_view instead of name+len.
341 (elf_symtab_read): Update.
342 (elf_rel_plt_read): Update.
343 * mdebugread.c (parse_partial_symbols): Update.
344 (handle_psymbol_enumerators): Update.
345 (new_symbol): Update.
346 * minsyms.c (minimal_symbol_reader::record_full): Change signature
347 to use gdb::string_view instead of name+len.
348 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
349 * psympriv.h (add_psymbol_to_list): Likewise.
350 * psymtab.c (add_psymbol_to_bcache): Likewise.
351 (add_psymbol_to_list): Likewise.
352 * stabsread.c (define_symbol): Update.
353 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
354 * symtab.h (SYMBOL_SET_NAMES): Likewise.
355 (symbol_set_names): Likewise.
356 * xcoffread.c (scan_xcoff_symtab): Update.
358 2019-10-29 Christian Biesinger <cbiesinger@google.com>
360 * symtab.h (symbol_set_names): Document that copy_name must be
361 set to true for non-nullterminated strings.
362 * symtab.c (symbol_set_names): Only make a nullterminated copy of
363 linkage_name if the entry was not found and we need to demangle.
365 2019-10-29 Christian Biesinger <cbiesinger@google.com>
367 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
368 * dwarf2-frame.c (bsearch_fde_cmp): Update.
369 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
370 * gdbsupport/gdb_binary_search.h: New file.
372 2019-10-29 Christian Biesinger <cbiesinger@google.com>
374 * NEWS: Mention new --with-system-gdbinit-dir option.
375 * config.in: Regenerate.
376 * configure: Regenerate.
377 * configure.ac: Add new option --with-system-gdbinit-dir.
378 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
380 * main.c (get_init_files): Change system_gdbinit argument to
381 a vector and return the files in SYSTEM_GDBINIT_DIR in
382 addition to SYSTEM_GDBINIT.
383 (captured_main_1): Update.
384 (print_gdb_help): Update.
385 * top.c (print_gdb_configuration): Also print the value of
388 2019-10-28 Christian Biesinger <cbiesinger@google.com>
390 * gdbsupport/common-utils.h (startswith): Add an overloaded version
391 that takes gdb::string_view arguments.
393 2019-10-26 Tom de Vries <tdevries@suse.de>
395 * aarch64-linux-tdep.c: Fix typos in comments.
396 * aarch64-tdep.c: Same.
400 * arch/aarch64-insn.c: Same.
402 * breakpoint.h: Same.
405 * cli/cli-decode.c: Same.
406 * cli/cli-script.c: Same.
407 * cli/cli-utils.h: Same.
408 * coff-pe-read.c: Same.
410 * compile/compile-cplus-symbols.c: Same.
411 * compile/compile-object-run.c: Same.
414 * cp-support.c: Same.
416 * dwarf-index-write.c: Same.
417 * dwarf2-frame.c: Same.
418 * dwarf2-frame.h: Same.
420 * frame-base.h: Same.
425 * guile/scm-objfile.c: Same.
434 * mi/mi-cmd-disas.c: Same.
435 * mi/mi-getopt.h: Same.
436 * mi/mi-main.c: Same.
438 * nat/aarch64-sve-linux-sigcontext.h: Same.
440 * ppc-linux-nat.c: Same.
441 * ppc-linux-tdep.c: Same.
444 * prologue-value.h: Same.
445 * python/py-evtregistry.c: Same.
446 * python/py-instruction.h: Same.
447 * record-btrace.c: Same.
448 * record-full.c: Same.
450 * rs6000-tdep.c: Same.
452 * sol-thread.c: Same.
453 * sparc-sol2-tdep.c: Same.
454 * sparc64-tdep.c: Same.
459 * tracepoint.c: Same.
460 * tui/tui-data.h: Same.
461 * tui/tui-io.c: Same.
462 * tui/tui-win.c: Same.
464 * unittests/rsp-low-selftests.c: Same.
476 * xtensa-tdep.c: Same.
478 2019-10-25 Ali Tamur <tamur@google.com>
480 * charset.c (find_charset_names): Reflect API change.
482 2019-10-25 Christian Biesinger <cbiesinger@google.com>
484 * symtab.c (struct demangled_name_entry): Change demangled name
485 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
486 part of the struct anymore.
487 (symbol_set_names): No longer obstack allocate + copy the demangled
488 name, just store the allocated name from bfd.
490 2019-10-25 Tom Tromey <tromey@adacore.com>
492 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
493 (bsearch_cie_cmp, add_cie): Remove.
494 (find_cie): Reimplement.
495 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
496 (dwarf2_build_frame_info): Update.
498 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
501 * symfile.c (reread_symbols): Call forget_cached_source_info to
502 clear the stale source cache.
504 2019-10-24 Christian Biesinger <cbiesinger@google.com>
506 * configure: Regenerate.
507 * configure.ac: Remove code that sets python_has_threads.
509 2019-10-24 Christian Biesinger <cbiesinger@google.com>
511 * config.in: Regenerate.
512 * configure: Regenerate.
513 * configure.ac: Remove the code that uses sed to get the python
514 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
516 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
518 * python/py-progspace.c (pspy_block_for_pc): Return None for all
521 2019-10-23 Tom Tromey <tom@tromey.com>
523 * arc-tdep.c: Remove ".." from include.
524 * frv-tdep.c: Remove ".." from include.
525 * lm32-tdep.c: Remove ".." from include.
526 * microblaze-tdep.c: Remove ".." from include.
527 * or1k-tdep.h: Remove ".." from include.
528 * s12z-tdep.c: Remove ".." from include.
529 * Makefile.in (OPCODES_CFLAGS): Add comment.
530 (TOP_CFLAGS): New variable.
531 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
533 2019-10-23 Tom Tromey <tom@tromey.com>
535 * Makefile.in (READLINE_DIR): Update.
537 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
539 * infcall.c (call_function_by_hand_dummy): Fix the function
540 comment. And extract out a code section into...
541 (reserve_stack_space): ...this new function.
543 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
545 * infcall.c (value_arg_coerce): Remove an unused parameter.
546 (call_function_by_hand_dummy): Update the call to
549 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
551 * infcall.c (call_function_by_hand_dummy): Refactor.
553 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
555 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
557 2019-10-23 Tom Tromey <tom@tromey.com>
559 * configure: Rebuild.
560 * configure.ac: Don't check for sigprocmask.
561 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
563 2019-10-23 Tom Tromey <tom@tromey.com>
565 * configure: Rebuild.
566 * acinclude.m4: Use m4_include, not sinclude.
568 2019-10-23 Tom de Vries <tdevries@suse.de>
571 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
573 2019-10-22 Christian Biesinger <cbiesinger@google.com>
575 * symtab.c (struct demangled_name_entry) <language>: Change from
576 bitfield to regular variable.
578 2019-10-22 Christian Biesinger <cbiesinger@google.com>
580 * symtab.c (struct demangled_name_entry): Add a constructor.
581 (free_demangled_name_entry): New function to call the destructor
582 for demangled_name_entry.
583 (create_demangled_names_hash): Pass free_demangled_name_entry to
585 (symbol_set_names): Call placement new for demangled_name_entry.
586 * utils.c: No longer include xxhash.h here, now that fast_hash
587 is inlined in the header.
588 * utils.h: Instead, include it here.
590 2019-10-22 Christian Biesinger <cbiesinger@google.com>
592 * Makefile.in: Link with libxxhash.
593 * config.in: Regenerate.
594 * configure: Regenerate.
595 * configure.ac: Search for libxxhash.
596 * utils.c (fast_hash): Use xxhash if present.
598 2019-10-22 Christian Biesinger <cbiesinger@google.com>
600 * utils.h (fast_hash): New function.
601 * symtab.c (hash_demangled_name_entry): Call new function
604 2019-10-22 Christian Biesinger <cbiesinger@google.com>
606 * symtab.c (struct demangled_name_entry): Change type of mangled
607 to gdb::string_view. Also adds a constructor that takes the
609 (hash_demangled_name_entry): Update.
610 (eq_demangled_name_entry): Update.
611 (free_demangled_name_entry): New function to call the destructor
612 now that this is not a POD anymore.
613 (create_demangled_names_hash): Pass free_demangled_name_entry to
615 (symbol_set_names): Update.
617 2019-10-21 Ali Tamur <tamu@google.com>
619 * dwarf2read.c (dir_index): Change type.
620 (file_name_index): Likewise.
621 (line_header::include_dir_at): Change comment and implementation on
622 whether it is DWARF 5.
623 (line_header::is_valid_file_index): New function.
624 (line_header::file_name_at): Change comment and implementation on
625 whether it is DWARF 5.
626 (line_header::file_names): Change to private field renamed as
627 m_file_names and introduce a new accessor method.
628 (line_header::file_names_size): New method.
629 (line_header::include_dirs): Change to private field and rename as
631 (dw2_get_file_names_reader): Define local var at a smaller scope and
633 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
634 (process_structure_scope): Likewise.
635 (line_header::add_include_dir): Change message and reflect renaming.
636 (line_header::add_file_name): Likewise.
637 (read_formatted_entries): Handle DW_FORM_data16.
638 (dwarf_decode_line_header): Fix line header length calculation.
639 (psymtab_include_file_name): Change comment and API.
640 (lnp_state_machine::m_file): Update comment and reflect type change.
641 (lnp_state_machine::record_line): Reflect type change.
642 (dwarf_decode_lines): Reflect API change.
643 (file_file_name): Likewise.
644 (file_full_name): Likewise.
646 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
648 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
650 2019-10-21 Tom Tromey <tom@tromey.com>
652 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
654 2019-10-21 Tom Tromey <tom@tromey.com>
656 * configure.ac (nm.h): Conditionally create nm.h link. Subst
657 NM_H. Use AC_CONFIG_LINKS.
658 * configure: Rebuild.
659 * Makefile.in (NM_H): New variable.
660 (generated_files): Add NM_H. Remove gcore.
661 (nm.h, stamp-nmh): New targets.
663 2019-10-20 Tom Tromey <tom@tromey.com>
665 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
666 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
668 (put_objfile_before): Now static.
670 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
672 * gdbsupport/common-utils.h (startswith): Change return type to
675 2019-10-19 Christian Biesinger <cbiesinger@google.com>
677 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
678 * breakpoint.c (bp_locations_compare): Rename to...
679 (bp_location_is_less_than): ...this, and change to std::sort semantics.
680 (update_global_location_list): Use std::sort instead of qsort.
681 * buildsym.c (compare_line_numbers): Rename to...
682 (lte_is_less_than): ...this, and change to std::sort semantics.
683 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
685 * disasm.c (compare_lines): Rename to...
686 (line_is_less_than): ...this, and change to std::sort semantics.
687 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
689 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
690 (fde_is_less_than): ...this, and change to std::sort semantics.
691 (dwarf2_build_frame_info): Call std::sort instead of qsort.
692 * mdebugread.c (compare_blocks):
693 (block_is_less_than): ...this, and change to std::sort semantics.
694 (sort_blocks): Call std::sort instead of qsort.
695 * objfiles.c (qsort_cmp): Rename to...
696 (sort_cmp): ...this, and change to std::sort semantics.
697 (update_section_map): Call std::sort instead of qsort.
698 * remote.c (compare_pnums): Remove.
699 (map_regcache_remote_table): Call std::sort instead of qsort.
700 * utils.c (compare_positive_ints): Remove.
701 * utils.h (compare_positive_ints): Remove.
702 * xcoffread.c (compare_lte): Remove.
703 (arrange_linetable): Call std::sort instead of qsort.
705 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
707 * symfile.c (init_entry_point_info): Fix typo.
708 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
710 2019-10-18 Tom de Vries <tdevries@suse.de>
712 * aarch64-tdep.c: Fix typos in comments.
715 * alpha-tdep.c: Same.
716 * alpha-tdep.h: Same.
718 * amd64-windows-tdep.c: Same.
721 * arch-utils.c: Same.
722 * arm-nbsd-tdep.c: Same.
725 * blockframe.c: Same.
728 * coff-pe-read.c: Same.
731 * darwin-nat.c: Same.
735 * dtrace-probe.c: Same.
736 * dwarf-index-write.c: Same.
737 * dwarf2-frame-tailcall.c: Same.
738 * dwarf2-frame.c: Same.
739 * dwarf2read.c: Same.
741 * exceptions.c: Same.
746 * gnu-v3-abi.c: Same.
748 * h8300-tdep.c: Same.
750 * i386-linux-tdep.c: Same.
752 * ia64-libunwind-tdep.c: Same.
758 * linux-thread-db.c: Same.
760 * mdebugread.c: Same.
762 * mn10300-tdep.c: Same.
765 * opencl-lang.c: Same.
768 * ppc-linux-nat.c: Same.
769 * ppc-linux-tdep.c: Same.
770 * ppc-sysv-tdep.c: Same.
773 * record-btrace.c: Same.
774 * record-full.c: Same.
775 * remote-fileio.c: Same.
777 * rs6000-tdep.c: Same.
779 * score-tdep.c: Same.
783 * sol-thread.c: Same.
784 * solib-svr4.c: Same.
788 * sparc-sol2-tdep.c: Same.
789 * sparc-tdep.c: Same.
790 * sparc64-tdep.c: Same.
795 * target-descriptions.c: Same.
796 * target-float.c: Same.
803 * windows-nat.c: Same.
805 * xstormy16-tdep.c: Same.
806 * xtensa-tdep.c: Same.
808 2019-10-17 Tom Tromey <tromey@adacore.com>
810 * configure: Rebuild.
811 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
812 in AC_CONFIG_FILES invocation.
813 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
814 new-style config.status invocation.
816 2019-10-17 Tom de Vries <tdevries@suse.de>
818 * arm-nbsd-nat.c: Fix typos in comments.
820 * darwin-nat-info.c: Same.
821 * dwarf2read.c: Same.
830 * mdebugread.c: Same.
831 * moxie-tdep.c: Same.
832 * nto-procfs.c: Same.
834 * ppc-linux-tdep.c: Same.
836 * riscv-tdep.c: Same.
839 * sparc-linux-tdep.c: Same.
842 * target-descriptions.c: Same.
846 2019-10-16 Tom Tromey <tom@tromey.com>
848 * objfiles.h (struct objfile) <original_name>: Now const.
850 2019-10-16 Christian Biesinger <cbiesinger@google.com>
852 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
853 pass on to sigsetjmp's second argument.
854 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
856 2019-10-16 Keith Seitz <keiths@redhat.com>
859 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
860 sections whose size is greater than the file size.
862 2019-10-16 Jim Wilson <jimw@sifive.com>
864 * riscv-tdep.c (riscv_gcc_target_options): New.
865 (riscv_gnu_triplet_regexp): New.
866 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
867 set_gdbarch_gnu_triplet_regexp.
869 2019-10-16 Christian Biesinger <cbiesinger@google.com>
871 * Makefile.in: Add xml-builtin.h.
872 * features/feature_to_c.sh: Add an include for xml-builtin.h
873 to ensure that the compiler checks that the types match.
874 * xml-builtin.h: New file.
875 * xml-support.c (fetch_xml_builtin): Add missing const.
876 * xml-support.h: Remove declaration of xml_builtins.
878 2019-10-16 Tom de Vries <tdevries@suse.de>
881 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
882 (amd64_classify_aggregate): ... here.
883 (amd64_classify_aggregate_field): Handled fiels of nested structs
886 2019-10-16 Tom de Vries <tdevries@suse.de>
889 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
890 that handles 'theclass'.
892 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
894 * linespec.c (decode_digits_ordinary): Update comment.
895 * make-target-delegates: No longer need to handle VEC case.
896 * memrange.c (normalize_mem_ranges): Update comment.
897 * namespace.c (add_using_directive): Update comment.
898 * objc-lang.c (uniquify_strings): Update comment.
899 * ppc-linux-nat.c (struct thread_points): Update comment.
900 * probe.h (find_probes_in_objfile): Update comment.
901 * target.h (enum flash_preserve_mode): Update comment.
902 * varobj.c (varobj_restrict_range): Update comment.
903 * varobj.h (varobj_list_children): Update comment.
905 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
907 * Makefile.in: Remove references to vec.h and vec.c.
908 * aarch64-tdep.c: No longer include vec.h.
909 * ada-lang.c: Likewise.
910 * ada-lang.h: Likewise.
911 * arm-tdep.c: Likewise.
913 * breakpoint.h: Likewise.
914 * charset.c: Likewise.
915 * cp-support.h: Likewise.
916 * dtrace-probe.c: Likewise.
917 * dwarf2read.c: Likewise.
918 * extension.h: Likewise.
919 * gdb_bfd.c: Likewise.
920 * gdbsupport/gdb_vecs.h: Likewise.
921 * gdbsupport/vec.c: Remove.
922 * gdbsupport/vec.h: Remove.
923 * gdbthread.h: Likewise.
924 * guile/scm-type.c: Likewise.
925 * inline-frame.c: Likewise.
926 * machoread.c: Likewise.
927 * memattr.c: Likewise.
928 * memrange.h: Likewise.
929 * namespace.h: Likewise.
930 * nat/linux-btrace.h: Likewise.
931 * osdata.c: Likewise.
932 * parser-defs.h: Likewise.
933 * progspace.h: Likewise.
934 * python/py-type.c: Likewise.
935 * record-btrace.c: Likewise.
936 * rust-exp.y: Likewise.
937 * solib-target.c: Likewise.
938 * stap-probe.c: Likewise.
939 * target-descriptions.c: Likewise.
940 * target-memory.c: Likewise.
941 * target.h: Likewise.
942 * varobj.c: Likewise.
943 * varobj.h: Likewise.
944 * xml-support.h: Likewise.
946 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
948 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
949 Update for new std::vector based implementation.
950 (process_psymtab_comp_unit_reader): Likewise.
951 (scan_partial_symbols): Likewise.
952 (recursively_compute_inclusions): Likewise.
953 (compute_compunit_symtab_includes): Likewise.
954 (process_imported_unit_die): Likewise.
955 (queue_and_load_dwo_tu): Likewise.
956 (follow_die_sig_1): Likewise.
957 * gdb/dwarf2read.h: Remove DEF_VEC_P.
958 (typedef dwarf2_per_cu_ptr): Remove.
959 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
961 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
962 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
963 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
964 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
967 2019-10-15 Tom Tromey <tromey@adacore.com>
969 * windows-nat.c (windows_nat_target::resume): Use %x when logging
972 2019-10-15 Tom Tromey <tromey@adacore.com>
974 * windows-nat.c (windows_nat_target::fetch_registers)
975 (windows_nat_target::store_registers): Rename "pid" to "tid".
977 2019-10-15 Tom Tromey <tromey@adacore.com>
979 * gdbarch.h, gdbarch.c: Rebuild.
980 * gdbarch.sh (gcc_target_options): Change return type to
982 * compile/compile.c (get_args): Update.
983 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
984 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
986 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
988 * arch-utils.c (default_gcc_target_options): Return std::string.
989 * arch-utils.h (default_gcc_target_options): Return std::string.
990 * s390-tdep.c (s390_gcc_target_options): Return std::string.
992 2019-10-15 Christian Biesinger <cbiesinger@google.com>
994 * breakpoint.c (breakpoint_chain): Make static.
995 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
996 of accessing breakpoint_chain.
998 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1000 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1001 to a gdb::function_view and return value to bool.
1002 * breakpoint.h (iterate_over_breakpoints): Likewise.
1003 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1004 (pop_dummy_frame): Update.
1005 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1006 (gdbscm_breakpoints): Update.
1007 * python/py-breakpoint.c (build_bp_list): Update.
1008 (gdbpy_breakpoints): Update.
1009 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1011 (bpfinishpy_handle_stop): Update.
1012 (bpfinishpy_handle_exit): Update.
1013 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1014 (svr4_update_solib_event_breakpoints): Update.
1016 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1018 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1019 when unwrapping single-field structs.
1021 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1023 * dwarf2read.c: Remove includes.
1025 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1027 * ui-out.c (ui_out::call_do_message): Silence
1028 -Wformat-nonliteral warning.
1030 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1032 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1033 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1034 include: readline/tilde.h.
1036 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1038 * remote.c (remote_target::get_trace_status): Remove declaration of
1039 trace_regblock_size.
1041 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1043 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1044 (show_user): Remove declaration of cmdlist.
1045 * cli/cli-cmds.h (max_user_call_depth): Declare.
1046 * cli/cli-script.c (execute_user_command): Remove declaration
1047 of max_user_call_depth.
1049 2019-10-11 Jim Wilson <jimw@sifive.com>
1051 * gdbsupport/print-utils.h (pulongest): Fix comment.
1052 (plongest): Likewise.
1053 (phex): Add missing comment, mention leading zeros.
1054 (phex_nz): Add mention of no leading zeros to comment.
1056 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1057 plongest instead of unsigned long long cast.
1059 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1061 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1062 for external_editor_command and gdbtk_test.
1064 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1066 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1067 * varobj.c (varobjdebug): Move comment to...
1068 * varobj.h (varobjdebug): ...here, and declare.
1070 2019-10-09 Tom Tromey <tom@tromey.com>
1072 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1075 2019-10-09 Tom Tromey <tom@tromey.com>
1077 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1078 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1079 * tui/tui-command.c (tui_cmd_window::resize)
1080 (tui_refresh_cmd_win): Update.
1081 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1082 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1083 * tui/tui-data.c (~tui_gen_win_info): Remove.
1084 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1085 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1086 (tui_redisplay_readline, tui_mld_flush)
1087 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1088 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1089 (tui_data_window::erase_data_content)
1090 (tui_data_item_window::rerender)
1091 (tui_data_item_window::refresh_window): Update.
1092 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1093 (box_win, tui_gen_win_info::make_window)
1094 (tui_gen_win_info::make_visible): Update.
1095 (tui_delete_win): Remove.
1096 * tui/tui-winsource.c
1097 (tui_source_window_base::do_erase_source_content): Update.
1098 (tui_show_source_line, tui_source_window_base::update_tab_width)
1099 (tui_source_window_base::update_exec_info): Update.
1100 * tui/tui-data.h (struct curses_deleter): New.
1101 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1102 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1104 2019-10-09 Tom Tromey <tom@tromey.com>
1106 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1108 2019-10-09 Tom Tromey <tom@tromey.com>
1110 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1111 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1113 2019-10-09 Tom Tromey <tom@tromey.com>
1115 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1116 window height directly.
1117 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1119 * tui/tui-layout.c (tui_default_win_height): Remove.
1120 (tui_default_win_viewport_height): Remove.
1122 2019-10-09 Tom Tromey <tom@tromey.com>
1124 * tui/tui.h: Remove comments.
1126 2019-10-09 Tom de Vries <tdevries@suse.de>
1128 * python/lib/gdb/printer/bound_registers.py: Use
1129 '^builtin_type_bound128' as regexp argument for
1130 add_builtin_pretty_printer.
1132 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1134 * guile/guile.c (guile_extension_script_ops): Remove forward
1135 declaration and mark as static.
1136 (guile_script_ops): Likewise.
1137 (extension_language_guile): Move further down in the file so
1138 it can reference the definitions for guile_{extension_,}script_ops.
1140 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1142 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1143 except SORTL, DFLTCC, and KDSA.
1145 2019-10-08 Tom Tromey <tromey@adacore.com>
1147 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1148 (struct safe_symbol_file_add_args): Remove.
1150 2019-10-08 Tom Tromey <tromey@adacore.com>
1152 * windows-nat.c: Don't include buildsym-legacy.h.
1154 2019-10-08 Tom Tromey <tromey@adacore.com>
1156 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1158 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1160 * gdbtypes.c (overload_debug): Move comment to header.
1161 * gdbtypes.h (overload_debug): Declare.
1162 * valops.c: Remove declaration of overload_debug, instead
1165 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1167 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1169 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1171 * language.h (lang_frame_mismatch_warn): ... here. Also add
1173 * top.c (lang_frame_mismatch_warn): Remove declaration.
1174 (check_frame_language_change): Pass lang_frame_mismatch_warn
1177 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1179 * c-lang.h (vtbl_ptr_name): Declare.
1180 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1182 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1184 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1186 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1189 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1191 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1192 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1193 * ctfread.c: New file.
1194 * ctfread.h: New file.
1195 * elfread.c: Include ctfread.h.
1196 (struct elfinfo text_p): New member ctfsect.
1197 (elf_locate_sections): Mark CTF section.
1198 (elf_symfile_read): Call elfctf_build_psymtabs.
1199 * Makefile.in (LIBCTF): Add.
1202 (DIST): Add ctfread.c.
1204 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1206 * ctfread.c (struct nextfield): Renamed to ...
1207 (struct ctf_nextfield): ... this.
1208 (struct field_info): Renamed to ...
1209 (strut ctf_field_info): ... this.
1210 (attach_fields_to_type): Update for renamed structures.
1211 (ctf_add_member_cb): Likewise.
1212 (ctf_add_enum_member_cb): Likewise.
1213 (process_struct_members): Likewise.
1214 (process_enum_type): Likewise.
1216 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1218 * tracectf.h: Rename, was ctf.h.
1219 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1220 * tracefile.c: Likewise.
1221 * tracepoint.c: Remove unused include ctf.h.
1222 * mi/mi-main.c: Likewise.
1223 * Makefile.in Replace ctf.c with tracectf.c.
1225 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1227 * version.in: Change version number to "9.0.50.DATE-git".
1229 2019-10-03 Tom Tromey <tom@tromey.com>
1232 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1234 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1236 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1237 cp_search_name_hash.
1238 * NEWS: Add entry about nested function support.
1240 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1241 Andrew Burgess <andrew.burgess@embecosm.com>
1243 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1244 for nested static variables when searchin VAR_DOMAIN.
1245 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1246 global scope, update comment.
1247 (add_partial_subprogram): Call add_partial_subprogram recursively
1248 for nested subroutines when processinng Fortran.
1249 (load_partial_dies): Process the child entities of a subprogram
1250 when processing Fortran.
1251 (partial_die_parent_scope): Handle building scope
1252 for Fortran nested functions.
1253 (process_die): Record that nested functions have a scope.
1254 (new_symbol): Always record Fortran subprograms on the global
1256 (determine_prefix): How to build the prefix for Fortran
1259 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1261 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1262 have just sent the thread a SIGSTOP and are waiting for it to
1265 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1267 * btrace.c (btrace_add_pc): Remove whitespace before the template
1268 parameter in 'std::vector <...>'.
1269 (parse_xml_btrace_block): Likewise.
1270 (btrace_maint_decode_pt): Likewise.
1271 (btrace_maint_update_packets): Likewise.
1272 (btrace_maint_print_packets): Likewise.
1273 * btrace.h (struct btrace_maint_info): Likewise.
1274 * dwarf2read.c (struct type_unit_group): Likewise.
1275 (build_type_psymtabs_reader): Likewise.
1276 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1277 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1278 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1280 2019-10-03 Tom de Vries <tdevries@suse.de>
1282 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1283 the first line of the help text for set/show style metadata.
1285 2019-10-02 Tom Tromey <tromey@adacore.com>
1287 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1288 * gdbsupport/common-inferior.c: New file.
1289 * infcmd.c (startup_with_shell): Don't define.
1290 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1291 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1292 * inferior.h (startup_with_shell): Don't declare.
1294 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1296 * gdbsupport/gdb_assert.h: Include errors.h.
1297 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1299 2019-10-02 Tom Tromey <tromey@adacore.com>
1301 * NEWS: Add $_ada_exception entry.
1302 * ada-lang.c (struct ada_catchpoint): Add constructor.
1303 <m_kind>: New member.
1304 (allocate_location_exception, re_set_exception): Remove
1306 (should_stop_exception): Compute $_ada_exception.
1307 (check_status_exception, print_it_exception)
1308 (print_one_exception, print_mention_exception): Remove
1310 (allocate_location_catch_exception, re_set_catch_exception)
1311 (check_status_exception, print_it_catch_exception)
1312 (print_one_catch_exception, print_mention_catch_exception)
1313 (print_recreate_catch_exception)
1314 (allocate_location_catch_exception_unhandled)
1315 (re_set_catch_exception_unhandled)
1316 (check_status_exception, print_it_catch_exception_unhandled)
1317 (print_one_catch_exception_unhandled)
1318 (print_mention_catch_exception_unhandled)
1319 (print_recreate_catch_exception_unhandled)
1320 (allocate_location_catch_assert, re_set_catch_assert)
1321 (check_status_assert, print_it_catch_assert)
1322 (print_one_catch_assert, print_mention_catch_assert)
1323 (print_recreate_catch_assert)
1324 (allocate_location_catch_handlers, re_set_catch_handlers)
1325 (check_status_handlers, print_it_catch_handlers)
1326 (print_one_catch_handlers, print_mention_catch_handlers)
1327 (print_recreate_catch_handlers): Remove.
1328 (create_ada_exception_catchpoint): Update.
1329 (initialize_ada_catchpoint_ops): Update.
1331 2019-10-02 Tom Tromey <tromey@adacore.com>
1333 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1334 (create_excep_cond_exprs): Simplify exception string computation.
1335 (ada_exception_catchpoint_cond_string): Likewise.
1337 2019-10-02 Tom Tromey <tromey@adacore.com>
1339 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1340 * ada-lang.c (lesseq_defined_than): Handle
1342 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1344 (dwarf2_has_info): Likewise.
1345 (new_symbol): Set maybe_copied on symbol when
1347 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1349 <can_copy>: New member.
1350 * elfread.c (record_minimal_symbol): Set maybe_copied
1351 on symbol when appropriate.
1352 (elf_symfile_read): Update call to dwarf2_has_info.
1353 * minsyms.c (lookup_minimal_symbol_linkage): New
1355 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1356 * symtab.c (get_symbol_address, get_msymbol_address):
1358 * symtab.h (get_symbol_address, get_msymbol_address):
1360 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1362 (struct symbol, struct minimal_symbol) <maybe_copied>:
1365 2019-10-02 Tom Tromey <tromey@adacore.com>
1367 * source.c (struct current_source_location): New.
1368 (current_source_key): New global.
1369 (current_source_symtab, current_source_line)
1370 (current_source_pspace): Remove.
1371 (get_source_location): New function.
1372 (get_current_source_symtab_and_line)
1373 (set_default_source_symtab_and_line)
1374 (set_current_source_symtab_and_line)
1375 (clear_current_source_symtab_and_line, select_source_symtab)
1376 (info_source_command, print_source_lines_base)
1377 (info_line_command, search_command_helper, _initialize_source):
1380 2019-10-02 Tom Tromey <tromey@adacore.com>
1382 * source.c (select_source_symtab): Don't call
1383 decode_line_with_current_source.
1385 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1387 * symtab.c (lookup_global_symbol): Search global block.
1389 2019-10-02 Tom Tromey <tromey@adacore.com>
1391 * coffread.c (process_coff_symbol): Update.
1392 * dwarf2read.c (var_decode_location, new_symbol): Update.
1393 * mdebugread.c (parse_symbol): Update.
1394 * objfiles.c (relocate_one_symbol): Update.
1395 * stabsread.c (define_symbol, fix_common_block)
1396 (scan_file_globals): Update.
1397 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1398 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1399 * xcoffread.c (process_xcoff_symbol): Update.
1401 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1403 * MAINTAINERS: Update my email address.
1405 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1407 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1409 (build_type_psymtabs_reader): Update for std::vector.
1410 (build_type_psymtab_dependencies): Likewise.
1411 * dwarf2read.h: Remove use of DEF_VEC_P.
1412 (typedef sig_type_ptr): Delete.
1414 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1416 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1418 (btrace_maint_decode_pt): Likewise, and move allocation of the
1419 vector outside of the loop.
1420 (btrace_maint_update_packets): Update to handle change from VEC to
1422 (btrace_maint_print_packets): Likewise.
1423 (maint_info_btrace_cmd): Likewise.
1424 * btrace.h: Remove use of DEF_VEC_O.
1425 (typedef btrace_pt_packet_s): Delete.
1426 (struct btrace_maint_info) <packets>: Change fromm VEC to
1428 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1430 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1432 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1433 make accesses into the vector constant references.
1434 (btrace_add_pc): Update for std::vector.
1435 (btrace_stitch_bts): Likewise.
1436 (parse_xml_btrace_block): Likewise.
1437 (btrace_maint_update_packets): Likewise.
1438 (btrace_maint_print_packets): Likewise.
1439 (maint_info_btrace_cmd): Likewise.
1440 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1442 (btrace_data::empty): Likewise.
1443 (btrace_data_append): Likewise.
1444 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1445 (typedef btrace_block_s): Delete.
1446 (struct btrace_block): Add constructor.
1447 (struct btrace_data_bts) <blocks>: Change to std::vector.
1448 * nat/linux-btrace.c (perf_event_read_bts): Update for
1450 (linux_read_bts): Likewise.
1452 2019-10-01 Tom Tromey <tom@tromey.com>
1454 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1456 2019-10-01 Tom Tromey <tom@tromey.com>
1458 * stack.c (print_frame, info_frame_command_core): Use
1460 * linux-thread-db.c (try_thread_db_load_1)
1461 (try_thread_db_load_from_pdir_1): Use styled_string.
1462 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1463 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1464 (maybe_print_unsupported_script_warning)
1465 (maybe_print_script_not_found_warning): Use styled_string.
1466 * ada-lang.c (user_select_syms): Use styled_string.
1468 2019-10-01 Tom Tromey <tom@tromey.com>
1470 * p-lang.c (pascal_printstr): Use metadata style.
1471 * value.c (show_convenience): Use metadata style.
1472 * valprint.c (valprint_check_validity, val_print_optimized_out)
1473 (val_print_not_saved, val_print_unavailable)
1474 (val_print_invalid_address, generic_val_print, val_print)
1475 (value_check_printable, val_print_array_elements): Use metadata
1477 * ui-out.h (class ui_out) <field_fmt>: New overload.
1478 <do_field_fmt>: Add style parameter.
1479 * ui-out.c (ui_out::field_fmt): New overload.
1480 * typeprint.c (type_print_unknown_return_type)
1481 (val_print_not_allocated, val_print_not_associated): Use metadata
1483 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1485 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1486 * tracepoint.c (tvariables_info_1): Use metadata style.
1487 * stack.c (print_frame_arg, print_frame_info, print_frame)
1488 (info_frame_command_core): Use metadata style.
1489 * skip.c (info_skip_command): Use metadata style.
1490 * rust-lang.c (rust_print_enum): Use metadata style.
1491 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1493 * python/py-framefilter.c (py_print_single_arg): Use metadata
1495 * printcmd.c (do_one_display, print_variable_and_value): Use
1497 * p-valprint.c (pascal_val_print)
1498 (pascal_object_print_value_fields): Use metadata style.
1499 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1500 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1502 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1503 * m2-valprint.c (m2_print_long_set): Use metadata style.
1504 * m2-typeprint.c (m2_print_type): Use metadata style.
1505 * infcmd.c (print_return_value_1): Use metadata style.
1506 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1507 * f-valprint.c (info_common_command_for_block): Use metadata
1509 * f-typeprint.c (f_type_print_base): Use metadata style.
1510 * expprint.c (print_subexp_standard): Use metadata style.
1511 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1512 * cli/cli-style.h (class cli_style_option): Add constructor.
1513 (metadata_style): Declare.
1514 * cli/cli-style.c (metadata_style): New global.
1515 (_initialize_cli_style): Register metadata style.
1516 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1518 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1519 * c-typeprint.c (c_type_print_base_struct_union)
1520 (c_type_print_base_1): Use metadata style.
1521 * breakpoint.c (watchpoint_value_print)
1522 (print_one_breakpoint_location): Use metadata style.
1523 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1525 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1527 * ada-valprint.c (val_print_packed_array_elements, printstr)
1528 (print_field_values, ada_val_print_ref, ada_val_print): Use
1530 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1532 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1534 * ada-lang.c (user_select_syms): Use metadata style.
1536 2019-10-01 Tom Tromey <tom@tromey.com>
1538 * cli/cli-cmds.c (pwd_command): Style output.
1540 2019-10-01 Pedro Alves <palves@redhat.com>
1541 Tom Tromey <tom@tromey.com>
1543 * symtab.c (print_symbol_info): Use %ps.
1544 (print_msymbol_info): Use %ps.
1545 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1546 * printcmd.c (print_variable_and_value): Use %ps.
1547 * macrocmd.c (show_pp_source_pos): Use %ps.
1548 * infrun.c (print_exited_reason): Use ui_out::message.
1549 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1550 (describe_other_breakpoints): Use ui_out::message and new
1552 (say_where): Use new formats.
1553 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1556 2019-10-01 Pedro Alves <palves@redhat.com>
1557 Tom Tromey <tom@tromey.com>
1559 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1560 (test_gdb_formats): New function.
1561 (run_tests): Call it.
1562 (test_format_specifier): Update.
1563 * utils.h (fputs_filtered): Update comment.
1564 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1565 (fputs_styled_unfiltered): Declare.
1566 * utils.c (fputs_styled_unfiltered): New function.
1567 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1568 (vfprintf_filtered): Update.
1569 (vfprintf_unfiltered, vprintf_filtered): Update.
1570 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1571 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1572 disallow_ui_out_field>: New constants.
1573 (enum class field_kind): New.
1574 (struct base_field_s, struct signed_field_s): New.
1575 (signed_field): New function.
1576 (struct string_field_s): New.
1577 (string_field): New function.
1578 (struct styled_string_s): New.
1579 (styled_string): New function.
1580 (class ui_out) <message>: Add comment.
1581 <vmessage, call_do_message>: New methods.
1582 <do_message>: Add style parameter.
1583 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1585 (ui_out::message): Rewrite.
1586 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1588 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1589 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1590 gdb_extensions parameter.
1591 (class format_piece): Add parameter to constructor.
1592 (n_int_args): New field.
1593 * gdbsupport/format.c (format_pieces::format_pieces): Add
1594 gdb_extensions parameter. Handle '*'.
1595 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1596 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1597 vfprintf_styled_no_gdbfmt.
1598 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1599 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1601 * ui-style.h (struct ui_file_style) <ptr>: New method.
1603 2019-10-01 Tom Tromey <tom@tromey.com>
1605 * unittests/format_pieces-selftests.c: Update. Add final format.
1606 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1607 empty literal pieces.
1609 2019-10-01 Tom Tromey <tom@tromey.com>
1611 * ui-out.h (enum class ui_out_style_kind): Remove.
1612 (class ui_out) <field_string, field_stsream, do_field_string>:
1613 Change type of "style".
1614 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1615 (ui_out::field_string): Update.
1616 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1618 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1619 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1620 * stack.c (print_frame_arg, print_frame_info, print_frame):
1622 * source.c (print_source_lines_base): Update.
1623 * solib.c (info_sharedlibrary_command): Update.
1624 * skip.c (info_skip_command): Update.
1625 * record-btrace.c (btrace_call_history_src_line)
1626 (btrace_call_history): Update.
1627 * python/py-framefilter.c (py_print_frame): Update.
1628 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1630 * mi/mi-out.c (mi_ui_out::do_table_header)
1631 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1632 (mi_ui_out::do_field_string): Update.
1633 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1635 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1637 * cli-out.c (cli_ui_out::do_table_header)
1638 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1639 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1640 (cli_ui_out::do_field_fmt): Update.
1641 * breakpoint.c (print_breakpoint_location): Update.
1642 (update_static_tracepoint): Update.
1644 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1646 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1647 conversion of gdb_datadir.
1648 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1649 remove not needed c_str ().
1651 2019-09-30 Ali Tamur <tamur@google.com>
1653 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1654 (dwarf2_string_attr): Likewise.
1656 2019-09-30 Ali Tamur <tamur@google.com>
1658 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1659 (process_full_type_unit): Likewise.
1660 (dump_die_shallow): Likewise.
1661 (cu_debug_loc_section): Likewise.
1663 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1665 * minsyms.c (compare_minimal_symbols): Rename to...
1666 (minimal_symbol_is_less_than): ...this, and adjust to STL
1667 conventions (return bool, take arguments as references)
1668 (minimal_symbol_reader::install): Call std::sort instead
1671 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1673 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1675 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1676 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1678 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1680 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1681 * psympriv.h (add_psymbol_to_list): Move comment here and update
1684 2019-09-29 Tom de Vries <tdevries@suse.de>
1686 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1687 Use $tmpdir/$(basename "$output_file").dwz instead of
1688 "${output_file}.dwz".
1690 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1693 * hppa-linux-nat.c: Include gdbarch.h.
1695 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1697 * blockframe.c (find_pc_partial_function): Change return type to bool.
1698 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1699 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1700 (stub_gnu_ifunc_resolve_name): Likewise.
1701 * symtab.c (compare_filenames_for_search): Likewise.
1702 (compare_glob_filenames_for_search): Likewise.
1703 (matching_obj_sections): Likewise.
1704 (symbol_matches_domain): Likewise.
1705 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1706 (find_line_pc): Change return type to bool.
1707 (find_line_pc_range): Likewise.
1708 (producer_is_realview): Likewise.
1709 * symtab.h (symbol_matches_domain): Likewise.
1710 (find_pc_partial_function): Likewise.
1711 (find_pc_line_pc_range): Likewise.
1712 (in_gnu_ifunc_stub): Likewise.
1713 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1714 (find_line_pc): Likewise.
1715 (find_line_pc_range): Likewise.
1716 (matching_obj_sections): Likewise.
1717 (find_line_symtab): Change out parameter to bool.
1718 (producer_is_realview): Change return type to bool.
1719 (compare_filenames_for_search): Likewise.
1720 (compare_glob_filenames_for_search): Likewise.
1722 2019-09-26 Tom Tromey <tom@tromey.com>
1724 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1725 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1726 * gdb_usleep.h: Remove.
1727 * gdb_usleep.c: Remove.
1728 * utils.c: Don't include gdb_usleep.h.
1730 2019-09-26 Tom Tromey <tromey@adacore.com>
1732 * python/py-type.c (type_to_type_object): Call check_typedef
1735 2019-09-26 Tom Tromey <tom@tromey.com>
1737 * utils.h (initialize_utils): Don't declare.
1738 * top.c (gdb_init): Don't call initialize_utils.
1739 * utils.c (initialize_utils): Remove. Move contents...
1740 (_initialize_utils): ... here.
1742 2019-09-25 Tom Tromey <tom@tromey.com>
1744 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1745 * utils.h (make_hex_string): Don't declare.
1746 * utils.c (make_hex_string): Remove.
1748 2019-09-24 Tom de Vries <tdevries@suse.de>
1751 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1752 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1754 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1756 * NEWS: Mention new simulator port for PRU.
1758 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1760 * ada-exp.y (write_object_remaining): Update.
1761 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1762 and eliminate the static buffer.
1763 (ada_decode_symbol): Update.
1764 (ada_la_decode): Update.
1765 (ada_sniff_from_mangled_name): Update.
1766 (is_valid_name_for_wild_match): Update.
1767 (ada_lookup_name_info::matches): Update and simplify.
1768 (name_matches_regex): Update.
1769 (ada_add_global_exceptions): Update.
1770 * ada-lang.h (ada_decode): Update signature.
1771 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1772 * dwarf-index-write.c (debug_names::insert): Update.
1774 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1776 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1779 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1781 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1782 Change "nonzero" to "true" in documentation.
1784 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1786 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1787 (_initialize_darwin_solib): Don't set
1788 darwin_so_ops.lookup_lib_global_symbol.
1789 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1790 set_gdbarch_iterate_over_objfiles_in_search_order.
1791 (elf_lookup_lib_symbol): Rename to...
1792 (svr4_iterate_over_objfiles_in_search_order): this, and update
1793 to iterate semantics.
1794 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1795 * solib.c (solib_global_lookup): Remove.
1796 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1797 (solib_global_lookup): Remove.
1798 * symtab.c (lookup_global_or_static_symbol): Remove call to
1799 solib_global_lookup.
1801 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1803 * NEWS: Move entries about default MI version now being
1804 version 3, and about the GDB/MI fix for multi-location
1805 breakpoints to the "since GDB 8.3" section.
1807 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1811 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1813 * NEWS: Mention that Cell/B.E. debugging support was removed.
1814 * MAINTAINERS: Remove spu target.
1816 * config/djgpp/fnchange.lst: Remove entries for removed files.
1818 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1819 spu-multiarch.o, and spu-tdep.o.
1820 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1821 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1822 spu-multiarch.c, and spu-tdep.c.
1823 * spu-linux-nat.c: Remove file.
1824 * spu-multiarch.c: Remove file.
1825 * spu-tdep.c: Remove file.
1826 * spu-tdep.h: Remove file.
1827 * solib-spu.c: Remove file.
1828 * solib-spu.h: Remove file.
1830 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1831 * configure.nat (spu-linux): Remove.
1832 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1833 solib-multiarch.o from gdb_target_obs.
1836 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1838 (ppc_linux_no_features): Update.
1839 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1841 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1842 (tdesc_powerpc_cell64l): Likewise.
1843 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1844 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1846 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1847 Do not include "features/rs6000/powerpc-cell32l.c" or
1848 "features/rs6000/powerpc-cell64l.c".
1849 (ppc_linux_spu_section): Remove.
1850 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1851 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1852 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1853 (ppc_linux_spe_context_lookup): Remove.
1854 (ppc_linux_spe_context_inferior_created): Remove.
1855 (ppc_linux_spe_context_solib_loaded): Remove.
1856 (ppc_linux_spe_context_solib_unloaded): Remove.
1857 (ppc_linux_spe_context): Remove.
1858 (struct ppu2spu_cache): Remove.
1859 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1860 (struct ppu2spu_data): Remove.
1861 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1862 ppu2spu_unwind): Remove.
1863 (ppc_linux_init_abi): Remove Cell/B.E. support.
1864 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1866 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1867 (rs6000/powerpc-cell64l-expedite): Likewise
1868 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1869 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1870 rs6000/powerpc-cell64l.xml.
1871 * features/rs6000/powerpc-cell32l.xml: Remove.
1872 * features/rs6000/powerpc-cell64l.xml: Likewise.
1873 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1874 * features/rs6000/powerpc-cell64l.c: Likewise.
1875 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1876 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1877 * regformats/reg-spu.dat: Remove.
1879 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1880 * corelow.c (struct spuid_list): Remove.
1881 (add_to_spuid_list): Remove.
1882 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1883 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1884 (remote_protocol_features): Remove associated entries.
1885 (_initialize_remote): No longer initialize them.
1886 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1887 * linux-nat.c (SPUFS_MAGIC): Remove.
1888 (linux_proc_xfer_spu): Remove.
1889 (spu_enumerate_spu_ids): Remove.
1890 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1891 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1892 (linux_make_corefile_notes): No longer call it.
1894 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1895 (cooked_write_test): Likewise.
1897 2019-09-20 Tom Tromey <tom@tromey.com>
1899 * NEWS: Mention case-sensitivity of TUI commands.
1900 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1901 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1902 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1904 2019-09-20 Tom Tromey <tom@tromey.com>
1906 * tui/tui-source.c (tui_source_window::set_contents): Use
1907 make_unique_xstrdup.
1908 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1909 make_unique_xstrdup.
1911 2019-09-20 Tom Tromey <tom@tromey.com>
1913 * tui/tui-data.c: Remove separator comments.
1914 * tui/tui-layout.c: Remove separator comments.
1915 * tui/tui-win.c: Remove separator comments.
1916 * tui/tui-wingeneral.c: Remove separator comments.
1918 2019-09-20 Tom Tromey <tom@tromey.com>
1920 * tui/tui.h (strcat_to_buf): Don't declare.
1921 * tui/tui.c (strcat_to_buf): Remove.
1923 2019-09-20 Tom Tromey <tom@tromey.com>
1925 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1927 * tui/tui-source.c (tui_source_window::set_contents)
1928 (tui_source_window::location_matches_p)
1929 (tui_source_window::maybe_update): Update.
1931 2019-09-20 Tom Tromey <tom@tromey.com>
1933 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1935 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1937 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1938 (tui_data_window::line_from_reg_element_no)
1939 (tui_data_window::first_reg_element_no_inline)
1940 (tui_data_window::show_registers)
1941 (tui_data_window::show_register_group)
1942 (tui_data_window::display_registers_from)
1943 (tui_data_window::display_registers_from_line)
1944 (tui_data_window::first_data_item_displayed)
1945 (tui_data_window::delete_data_content_windows)
1946 (tui_data_window::erase_data_content)
1947 (tui_data_window::do_scroll_vertical)
1948 (tui_data_window::refresh_window)
1949 (tui_data_window::check_register_values): Update.
1951 2019-09-20 Tom Tromey <tom@tromey.com>
1953 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1954 (struct tui_locator_window) <full_name, proc_name>: Now
1956 * tui/tui-stack.c (tui_locator_window::make_status_line)
1957 (tui_locator_window::set_locator_fullname)
1958 (tui_locator_window::set_locator_info): Update.
1959 * tui/tui-source.c (tui_source_window::set_contents)
1960 (tui_source_window::showing_source_p): Update.
1962 2019-09-20 Tom Tromey <tom@tromey.com>
1964 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1965 Don't call tui_locator_win_info_ptr.
1967 2019-09-20 Tom Tromey <tom@tromey.com>
1969 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1971 2019-09-20 Tom Tromey <tom@tromey.com>
1973 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1975 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1976 * tui/tui-layout.c (show_source_disasm_command, show_data)
1977 (show_source_or_disasm_and_command): Use 1 as height for locator.
1979 2019-09-20 Tom Tromey <tom@tromey.com>
1981 * tui/tui.c (tui_enable): Update.
1982 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1984 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1986 * tui/tui-data.c (win_resized): Now bool.
1987 (tui_win_resized): Return bool.
1988 (tui_set_win_resized_to): Accept a bool.
1990 2019-09-20 Tom Tromey <tom@tromey.com>
1992 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1993 Change type of "refresh_values_only".
1994 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1995 type of "refresh_values_only".
1997 2019-09-20 Tom Tromey <tom@tromey.com>
1999 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2001 (tui_disassemble): Add "pos" parameter.
2002 (tui_disasm_window::set_contents): Simplify.
2004 2019-09-20 Tom Tromey <tom@tromey.com>
2006 * tui/tui-winsource.h (struct tui_source_window_base)
2007 <show_source_content>: Now private.
2008 * tui/tui-winsource.c
2009 (tui_source_window_base::show_source_content): Don't handle empty
2012 2019-09-20 Tom Tromey <tom@tromey.com>
2014 * tui/tui-layout.c (show_source_disasm_command)
2015 (show_source_or_disasm_and_command): Don't call
2016 show_source_content.
2018 2019-09-20 Tom Tromey <tom@tromey.com>
2020 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2022 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2023 from tui_make_status_line.
2024 (tui_locator_window::rerender): Update.
2026 2019-09-20 Tom Tromey <tom@tromey.com>
2028 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2029 (tui_locator_window::rerender): Update.
2031 2019-09-20 Tom Tromey <tom@tromey.com>
2033 * tui/tui-winsource.h (struct tui_source_window_base)
2034 <~tui_source_window_base>: Don't declare.
2036 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2037 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2039 * tui/tui-source.c (tui_source_window::set_contents): Update.
2040 (tui_source_window::location_matches_p)
2041 (tui_source_window::maybe_update): Update.
2043 2019-09-20 Tom Tromey <tom@tromey.com>
2045 * tui/tui-winsource.h (~tui_source_element): Remove.
2046 (tui_source_element): Update.
2047 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2048 * tui/tui-winsource.c (tui_show_source_line): Update.
2049 * tui/tui-source.c (tui_source_window::set_contents): Update.
2050 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2052 2019-09-20 Tom Tromey <tom@tromey.com>
2054 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2056 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2057 tui_clear_source_windows_detail.
2058 * tui/tui-winsource.h (struct tui_source_window_base)
2059 <clear_detail>: Don't declare.
2060 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2062 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2064 2019-09-20 Tom Tromey <tromey@adacore.com>
2067 * block.c (contained_in): Fix final return value.
2069 2019-09-20 Alan Modra <amodra@gmail.com>
2071 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2072 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2073 (read_indirect_string_from_dwz): Use bfd accessor.
2074 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2075 * machoread.c (macho_symfile_read_all_oso): Likewise.
2076 * solib.c (solib_bfd_open): Likewise.
2078 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2080 * eval.c: Move declaration of overload_resolution to...
2083 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2085 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2086 * arm-linux-tdep.c: Likewise.
2087 * arm-nbsd-nat.c: Likewise.
2088 * arm-tdep.h: Declare arm_apcs_32.
2089 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2091 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2093 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2094 * dwarf2read.h: Declare dwarf_always_disassemble.
2096 2019-09-19 Tom de Vries <tdevries@suse.de>
2099 * source-cache.c (source_cache::ensure): Catch exception thrown during
2100 construction of the highlighter.
2102 2019-09-18 Alan Modra <amodra@gmail.com>
2104 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2105 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2106 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2107 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2108 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2109 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2110 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2111 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2112 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2113 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2114 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2115 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2116 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2117 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2118 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2119 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2120 * mi/mi-interp.c: Update throughout for bfd section macro and
2122 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2123 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2125 2019-09-18 Tom Tromey <tom@tromey.com>
2128 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2130 (tui_enable): Do not call rl_initialize.
2132 2019-09-18 Christian Groessler <chris@groessler.org>
2134 * alpha-linux-nat.c: Include gdbarch.h.
2136 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2138 * ui-file.c: Include cli/cli-style.h.
2139 (term_cli_styling): Remove cli_styling declaration.
2141 2019-09-18 Alan Modra <amodra@gmail.com>
2143 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2144 to bfd_asymbol_section.
2146 2019-09-18 Alan Modra <amodra@gmail.com>
2148 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2149 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2150 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2152 2019-09-18 Alan Modra <amodra@gmail.com>
2154 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2155 * spu-linux-nat.c (spu_bfd_open): Likewise.
2157 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2159 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2160 to bool to match definition in dwarf2read.c.
2162 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2164 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2165 (print_signatures): Likewise.
2166 (trust_pad_over_xvs): Likewise.
2167 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2168 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2169 * arm-linux-nat.c (arm_apcs_32): Likewise.
2170 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2171 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2172 * arm-tdep.c (arm_debug): Likewise.
2173 (arm_apcs_32): Likewise.
2174 * auto-load.c (debug_auto_load): Likewise.
2175 (auto_load_gdb_scripts): Likewise.
2176 (global_auto_load): Likewise.
2177 (auto_load_local_gdbinit): Likewise.
2178 (auto_load_local_gdbinit_loaded): Likewise.
2179 * auto-load.h (global_auto_load): Likewise.
2180 (auto_load_local_gdbinit): Likewise.
2181 (auto_load_local_gdbinit_loaded): Likewise.
2182 * breakpoint.c (disconnected_dprintf): Likewise.
2183 (breakpoint_proceeded): Likewise.
2184 (automatic_hardware_breakpoints): Likewise.
2185 (always_inserted_mode): Likewise.
2186 (target_exact_watchpoints): Likewise.
2187 (_initialize_breakpoint): Update.
2188 * breakpoint.h (target_exact_watchpoints): Change to bool.
2189 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2190 * cli/cli-cmds.c (trace_commands): Likewise.
2191 * cli/cli-cmds.h (trace_commands): Likewise.
2192 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2194 * cli/cli-logging.c (logging_overwrite): Change to bool.
2195 (logging_redirect): Likewise.
2196 (debug_redirect): Likewise.
2197 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2198 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2200 <boolean_option_def>: Update.
2201 (struct flag_option_def): Change default type of Context to bool
2203 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2204 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2205 (get_setshow_command_value_string): Likewise.
2206 * cli/cli-style.c (cli_styling): Change to bool.
2207 (source_styling): Likewise.
2208 * cli/cli-style.h (source_styling): Likewise.
2209 (cli_styling): Likewise.
2210 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2212 * command.h (var_types): Update comment.
2213 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2214 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2216 (debug_compile_cplus_scopes): Likewise.
2217 * compile/compile-internal.h (compile_debug): Likewise.
2218 * compile/compile.c (compile_debug): Likewise.
2219 (struct compile_options) <raw>: Likewise.
2220 * cp-support.c (catch_demangler_crashes): Likewise.
2221 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2222 (usr_cmd_cris_dwarf2_cfi): Likewise.
2223 * csky-tdep.c (csky_debug): Likewise.
2224 * darwin-nat.c (enable_mach_exceptions): Likewise.
2225 * dcache.c (dcache_enabled_p): Likewise.
2226 * defs.h (info_verbose): Likewise.
2227 * demangle.c (demangle): Likewise.
2228 (asm_demangle): Likewise.
2229 * dwarf-index-cache.c (debug_index_cache): Likewise.
2230 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2231 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2232 * dwarf2read.c (check_physname): Likewise.
2233 (use_deprecated_index_sections): Likewise.
2234 (dwarf_always_disassemble): Likewise.
2235 * eval.c (overload_resolution): Likewise.
2236 * event-top.c (set_editing_cmd_var): Likewise.
2237 (exec_done_display_p): Likewise.
2238 * event-top.h (set_editing_cmd_var): Likewise.
2239 (exec_done_display_p): Likewise.
2240 * exec.c (write_files): Likewise.
2241 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2242 (debug_fbsd_nat): Likewise.
2243 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2245 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2246 <backtrace_past_entry> Likewise.
2247 * gdb-demangle.h (demangle): Likewise.
2248 (asm_demangle): Likewise.
2249 * gdb_bfd.c (bfd_sharing): Likewise.
2250 * gdbcore.h (write_files): Likewise.
2251 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2252 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2253 * gdbthread.h (print_thread_events): Likewise.
2254 * gdbtypes.c (opaque_type_resolution): Likewise.
2255 (strict_type_checking): Likewise.
2256 * gnu-nat.c (gnu_debug_flag): Likewise.
2257 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2258 * guile/scm-param.c (pascm_variable): Add boolval.
2259 (add_setshow_generic): Update.
2260 (pascm_param_value): Update.
2261 (pascm_set_param_value_x): Update.
2262 * hppa-tdep.c (hppa_debug): Change to bool..
2263 * infcall.c (may_call_functions_p): Likewise.
2264 (coerce_float_to_double_p): Likewise.
2265 (unwind_on_signal_p): Likewise.
2266 (unwind_on_terminating_exception_p): Likewise.
2267 * infcmd.c (startup_with_shell): Likewise.
2268 * inferior.c (print_inferior_events): Likewise.
2269 * inferior.h (startup_with_shell): Likewise.
2270 (print_inferior_events): Likewise.
2271 * infrun.c (step_stop_if_no_debug): Likewise.
2272 (detach_fork): Likewise.
2273 (debug_displaced): Likewise.
2274 (disable_randomization): Likewise.
2275 (non_stop): Likewise.
2276 (non_stop_1): Likewise.
2277 (observer_mode): Likewise.
2278 (observer_mode_1): Likewise.
2279 (set_observer_mode): Update.
2280 (sched_multi): Change to bool.
2281 * infrun.h (debug_displaced): Likewise.
2282 (sched_multi): Likewise.
2283 (step_stop_if_no_debug): Likewise.
2284 (non_stop): Likewise.
2285 (disable_randomization): Likewise.
2286 * linux-tdep.c (use_coredump_filter): Likewise.
2287 (dump_excluded_mappings): Likewise.
2288 * linux-thread-db.c (auto_load_thread_db): Likewise.
2289 (check_thread_db_on_load): Likewise.
2290 * main.c (captured_main_1): Update.
2291 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2292 xx2_opt, boolean_opt>: Change to bool.
2293 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2294 * maint.c (maintenance_profile_p): Likewise.
2295 (per_command_time): Likewise.
2296 (per_command_space): Likewise.
2297 (per_command_symtab): Likewise.
2298 * memattr.c (inaccessible_by_default): Likewise.
2299 * mi/mi-main.c (mi_async): Likewise.
2300 (mi_async_1): Likewise.
2301 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2302 * nat/fork-inferior.h (startup_with_shell): Likewise.
2303 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2304 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2305 * nios2-tdep.c (nios2_debug): Likewise.
2306 * or1k-tdep.c (or1k_debug): Likewise.
2307 * parse.c (parser_debug): Likewise.
2308 * parser-defs.h (parser_debug): Likewise.
2309 * printcmd.c (print_symbol_filename): Likewise.
2310 * proc-api.c (procfs_trace): Likewise.
2311 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2312 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2313 (set_parameter_value): Update.
2314 (add_setshow_generic): Update.
2315 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2317 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2319 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2320 * record-btrace.c (record_btrace_target::store_registers): Update.
2321 * record-full.c (record_full_memory_query): Change to bool.
2322 (record_full_stop_at_limit): Likewise.
2323 * record-full.h (record_full_memory_query): Likewise.
2324 * remote-notif.c (notif_debug): Likewise.
2325 * remote-notif.h (notif_debug): Likewise.
2326 * remote.c (use_range_stepping): Likewise.
2327 (interrupt_on_connect): Likewise.
2328 (remote_break): Likewise.
2329 * ser-tcp.c (tcp_auto_retry): Likewise.
2330 * ser-unix.c (serial_hwflow): Likewise.
2331 * skip.c (debug_skip): Likewise.
2332 * solib-aix.c (solib_aix_debug): Likewise.
2333 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2334 (spu_auto_flush_cache_p): Likewise.
2335 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2337 (struct info_print_options) <quiet>: Likewise.
2338 * symfile-debug.c (debug_symfile): Likewise.
2339 * symfile.c (auto_solib_add): Likewise.
2340 (separate_debug_file_debug): Likewise.
2341 * symfile.h (auto_solib_add): Likewise.
2342 (separate_debug_file_debug): Likewise.
2343 * symtab.c (basenames_may_differ): Likewise.
2344 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2345 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2346 (struct info_types_options) <quiet>: Likewise.
2347 * symtab.h (demangle): Likewise.
2348 (basenames_may_differ): Likewise.
2349 * target-dcache.c (stack_cache_enabled_1): Likewise.
2350 (code_cache_enabled_1): Likewise.
2351 * target.c (trust_readonly): Likewise.
2352 (may_write_registers): Likewise.
2353 (may_write_memory): Likewise.
2354 (may_insert_breakpoints): Likewise.
2355 (may_insert_tracepoints): Likewise.
2356 (may_insert_fast_tracepoints): Likewise.
2357 (may_stop): Likewise.
2358 (auto_connect_native_target): Likewise.
2359 (target_stop_and_wait): Update.
2360 (target_async_permitted): Change to bool.
2361 (target_async_permitted_1): Likewise.
2362 (may_write_registers_1): Likewise.
2363 (may_write_memory_1): Likewise.
2364 (may_insert_breakpoints_1): Likewise.
2365 (may_insert_tracepoints_1): Likewise.
2366 (may_insert_fast_tracepoints_1): Likewise.
2367 (may_stop_1): Likewise.
2368 * target.h (target_async_permitted): Likewise.
2369 (may_write_registers): Likewise.
2370 (may_write_memory): Likewise.
2371 (may_insert_breakpoints): Likewise.
2372 (may_insert_tracepoints): Likewise.
2373 (may_insert_fast_tracepoints): Likewise.
2374 (may_stop): Likewise.
2375 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2376 (make_thread_apply_all_options_def_group): Change argument from int*
2378 (thread_apply_all_command): Update.
2379 (print_thread_events): Change to bool.
2380 * top.c (confirm): Likewise.
2381 (command_editing_p): Likewise.
2382 (history_expansion_p): Likewise.
2383 (write_history_p): Likewise.
2384 (info_verbose): Likewise.
2385 * top.h (confirm): Likewise.
2386 (history_expansion_p): Likewise.
2387 * tracepoint.c (disconnected_tracing): Likewise.
2388 (circular_trace_buffer): Likewise.
2389 * typeprint.c (print_methods): Likewise.
2390 (print_typedefs): Likewise.
2391 * utils.c (debug_timestamp): Likewise.
2392 (sevenbit_strings): Likewise.
2393 (pagination_enabled): Likewise.
2394 * utils.h (sevenbit_strings): Likewise.
2395 (pagination_enabled): Likewise.
2396 * valops.c (overload_resolution): Likewise.
2397 * valprint.h (struct value_print_options) <prettyformat_arrays,
2398 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2399 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2400 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2402 * windows-nat.c (new_console): Likewise.
2403 (cygwin_exceptions): Likewise.
2404 (new_group): Likewise.
2405 (debug_exec): Likewise.
2406 (debug_events): Likewise.
2407 (debug_memory): Likewise.
2408 (debug_exceptions): Likewise.
2409 (useshell): Likewise.
2410 * windows-tdep.c (maint_display_all_tib): Likewise.
2411 * xml-support.c (debug_xml): Likewise.
2413 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2415 * source.c (prepare_path_for_appending): New function.
2416 (openp): Make use of new function.
2417 (find_and_open_source): Search for the compilation directory and
2418 source file as a relative path beneath the directory search path.
2420 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2422 * source-cache.c (source_cache::get_line_charpos): Catch
2423 exceptions and return false, this matches the behaviour documented
2426 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2428 * ada-tasks.c (info_task): Remove quoting of the task's name.
2430 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2432 * symfile.c (auto_solib_add): Replace comment with a reference
2435 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2437 * NEWS: Mention that gdb can now be compiled with Python 3
2440 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2442 * maint.c (maint_print_section_data::maint_print_section_data):
2443 Force use of 'float log10 (float)' by casting the argument to
2446 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2448 * maint.c: Add 'cmath' include.
2449 (struct maint_print_section_data): New structure.
2450 (print_section_index): New function.
2451 (print_bfd_section_info): Add header comment, small whitespace
2452 cleanup, and update to call new print_section_index function.
2453 (print_objfile_section_info): Likewise.
2454 (maint_obj_section_from_bfd_section): New function.
2455 (print_bfd_section_info_maybe_relocated): New function.
2456 (maintenance_info_sections): Add header comment, always use
2457 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2459 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2461 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2462 inner scope, add check that the objfile has psymtabs before
2463 checking psymtabs_addrmap.
2464 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2466 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2468 * NEWS: Announce that Ada task names are now shown at more places,
2469 and between quotes (except in info task output).
2470 * gdb/ada-tasks.c (task_to_str): New function.
2471 (display_current_task_id): Call task_to_str.
2472 (task_command_1): Likewise.
2473 (print_ada_task_info): In non-mi mode, Properly align headers and data
2474 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2476 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2478 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2479 prstatus.pr_lwp.pr_info instead of making it up.
2481 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2483 * auto-load.c (auto_load_expand_dir_vars): Update.
2484 * defs.h (gdb_datadir): Change to std::string.
2485 (python_libdir): Likewise.
2486 (relocate_gdb_directory): Change return type to std::string.
2487 * guile/guile.c (gdbscm_data_directory): Update.
2488 (initialize_scheme_side): Update.
2489 * jit.c (jit_reader_dir): Change to std::string.
2490 (jit_reader_load_command): Update.
2491 * main.c (gdb_datadir): Change to std::string.
2492 (python_libdir): Likewise.
2493 (set_gdb_data_directory): Update.
2494 (relocate_path): Change to return std::string.
2495 (relocate_gdb_directory): Change to return std::string.
2496 (relocate_gdbinit_path_maybe_in_datadir): Update.
2497 (captured_main_1): Update.
2498 * python/python.c (do_start_initialization): Update.
2499 * top.c (show_gdb_datadir): Update.
2500 * xml-syscall.c (xml_init_syscalls_info): Update.
2501 (init_syscalls_info): Update.
2503 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2505 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2506 out of get_init_files.
2507 (get_init_files): Update.
2509 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2511 * main.c (get_init_files): Change to use std::string.
2512 (captured_main_1): Update.
2513 (print_gdb_help): Update.
2515 2019-09-11 Ali Tamur <tamur@google.com>
2517 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2520 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2522 * dbxread.c (read_dbx_symtab): Update.
2523 * dwarf2read.c (load_partial_dies): Update.
2524 * mdebugread.c (parse_partial_symbols): Update.
2525 (handle_psymbol_enumerators): Update.
2526 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2527 * psymtab.c (add_psymbol_to_bcache): Likewise.
2528 (add_psymbol_to_list): Likewise.
2529 * symtab.c (symbol_set_names): Likewise.
2530 * symtab.h (symbol_set_names): Likewise.
2531 * xcoffread.c (scan_xcoff_symtab): Update.
2533 2019-09-11 Tom Tromey <tom@tromey.com>
2535 * symfile-mem.c (symbol_file_add_from_memory): Use
2537 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2538 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2540 2019-09-10 Tom Tromey <tromey@adacore.com>
2542 * dwarf-index-write.c (write_psymbols): Extend error message.
2543 (debug_names::insert): Add Ada code.
2544 (debug_names::write_psymbols): Remove Ada check.
2545 (debug_names) <m_string_obstack>: New member.
2546 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2547 (gdb_index_symbol_name_matcher::matches): Remove.
2548 (mapped_index_base::find_name_components_bounds): Add "lang"
2550 (mapped_index_base::build_name_components): Also split names
2551 according to Ada syntax.
2552 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2553 type of "match_callback".
2554 (check_match, check_find_bounds_finds)
2555 (dw2_expand_symtabs_matching): Update.
2556 (dw2_debug_names_iterator): Add new constructor.
2557 (dw2_debug_names_map_matching_symbols): New function.
2558 (dw2_debug_names_expand_symtabs_matching): Update.
2559 (dwarf2_debug_names_functions): Use
2560 dw2_debug_names_map_matching_symbols.
2562 2019-09-10 Tom Tromey <tromey@adacore.com>
2564 * dwarf2read.c (dw2_get_file_names_reader): Add the
2565 CU's file name to the results.
2567 2019-09-10 Tom Tromey <tromey@adacore.com>
2569 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2570 map_matching_symbols. Update.
2571 * dwarf2read.c (dw2_map_matching_symbols): Update.
2572 * psymtab.c (match_partial_symbol): Change type; update.
2573 (psym_map_matching_symbols): Likewise.
2574 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2576 * symfile.h (struct quick_symbol_functions)
2577 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2580 2019-09-10 Tom Tromey <tromey@adacore.com>
2582 * psymtab.c (map_block): Remove.
2583 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2584 * symtab.c (iterate_over_symbols_terminated): New function.
2585 * symtab.c (iterate_over_symbols_terminated): Declare.
2587 2019-09-10 Tom Tromey <tromey@adacore.com>
2589 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2590 * language.h (struct language_defn) <la_iterate_over_symbols>:
2592 * symtab.c (iterate_over_symbols): Return bool.
2593 * symtab.h (iterate_over_symbols): Return bool.
2595 2019-09-10 Tom Tromey <tromey@adacore.com>
2597 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2598 (add_nonlocal_symbols): Update.
2599 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2600 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2601 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2602 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2603 Change type of "callback". Remove "data".
2606 2019-09-09 Ali Tamur <tamur@google.com>
2608 * dwarf2read.c (comp_unit_head): Update comment.
2609 (dwarf2_dwo_name): New function declaration.
2610 (dwarf_unit_type_name): New function declaration.
2611 (read_comp_unit_head): Add support for new compilation units,
2612 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2613 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2614 (currently named as "signature") in their header. Also clarify error
2616 (lookup_dwo_id): New function. Returns the dwo id of the given
2618 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2619 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2621 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2622 (dwarf2_dwo_name): Get the dwo name if present.
2623 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2626 2019-09-09 Tom Tromey <tom@tromey.com>
2628 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2630 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2632 * python/python.c (do_start_initialization): Make progname_copy static,
2633 to avoid a leak report.
2635 2019-09-08 Tom Tromey <tom@tromey.com>
2637 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2639 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2641 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2642 Change type to gdb::optional<block_enum>.
2643 (dw2_symtab_iter_init): Change block_index parameter type
2644 to gdb::optional<block_enum>.
2645 (dw2_lookup_symbol): Change block_index parameter
2646 type to block_enum.c
2647 (dw2_debug_names_lookup_symbol): Likewise.
2648 * psymtab.c (psym_lookup_symbol): Likewise.
2649 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2650 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2653 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2655 * defs.h (relocate_gdb_directory): Change int to bool in
2656 signature and rename flag to relocatable.
2657 * main.c (relocate_path): Likewise.
2658 (relocate_gdb_directory): Likewise.
2660 2019-09-06 Alan Modra <amodra@gmail.com>
2662 * coffread.c (coff_symfile_read): Constify filename variable.
2663 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2664 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2665 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2666 * solib.c (reload_shared_libraries_1): Likewise.
2667 * symfile.c (reread_symbols): Likewise.
2668 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2669 * solib-darwin.c (darwin_bfd_open): Likewise.
2670 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2672 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2674 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2675 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2677 2019-09-03 Tom Tromey <tromey@adacore.com>
2679 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2681 (has_negatives): Unbias a range type bound.
2682 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2683 * gdbtypes.c (operator==): Handle new field.
2684 (create_range_type): Add "bias" parameter.
2685 (create_static_range_type, resolve_dynamic_range): Update.
2686 * gdbtypes.h (struct range_bounds) <bias>: New member.
2687 (create_range_type): Add bias parameter.
2688 * printcmd.c (print_scalar_formatted): Unbias range types.
2689 * value.c (unpack_long): Unbias range types.
2690 (pack_long): Bias range types.
2692 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2694 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2697 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2699 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2700 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2701 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2702 (compile_probe_arg): Likewise.
2703 * probe.h (get_argument_count): Likewise.
2704 * solib-svr4.c (solib_event_probe_action): Likewise.
2705 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2707 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2709 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2711 (svr4_create_solib_event_breakpoints): ...from here.
2713 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2715 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2716 suffix from warning message.
2718 2019-08-30 Tom Tromey <tom@tromey.com>
2720 * tui/tui-winsource.h (struct tui_source_window_base)
2721 <refresh_all>: Don't declare.
2722 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2724 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2725 tui_show_locator_content.
2726 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2728 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2729 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2732 2019-08-30 Tom Tromey <tom@tromey.com>
2734 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2736 2019-08-30 Tom Tromey <tom@tromey.com>
2738 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2739 Remove unnecessary forward declarations.
2741 2019-08-30 Tom Tromey <tom@tromey.com>
2743 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2745 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2746 tui_show_locator_content.
2748 2019-08-30 Tom Tromey <tom@tromey.com>
2750 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2751 (tui_locator_window::rerender): Rewrite using body of previous
2752 tui_show_locator_content.
2754 2019-08-30 Tom Tromey <tom@tromey.com>
2756 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2757 set_locator_fullname>: New methods.
2758 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2759 Rename from tui_set_locator_fullname.
2760 (tui_locator_window::set_locator_info): Rename from
2761 tui_set_locator_info. Return bool.
2762 (tui_update_locator_fullname, tui_show_frame_info): Update.
2764 2019-08-30 Tom Tromey <tom@tromey.com>
2766 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2768 2019-08-30 Tom Tromey <tom@tromey.com>
2770 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2773 2019-08-30 Tom Tromey <tom@tromey.com>
2775 * tui/tui-wingeneral.c (box_win): Assume win_info and
2776 win_info->handle cannot be NULL.
2778 2019-08-30 Tom Tromey <tom@tromey.com>
2780 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2781 refresh_window>: Declare.
2782 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2784 (tui_data_item_window::rerender): Rename from
2785 tui_display_register.
2786 (tui_data_item_window::refresh_window): New method.
2787 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2790 2019-08-30 Tom Tromey <tom@tromey.com>
2792 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2793 regs_column_count, current_group>: Move later. Now private.
2794 <get_current_group>: New method.
2795 * tui/tui-regs.c (tui_reg_command): Update.
2796 * tui/tui-layout.c (tui_set_layout): Update.
2798 2019-08-30 Tom Tromey <tom@tromey.com>
2800 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2801 (tui_data_window::rerender): Don't call
2802 check_and_display_highlight_if_needed.
2803 (tui_data_window::refresh_all): Remove call to
2806 2019-08-30 Tom Tromey <tom@tromey.com>
2808 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2809 (tui_data_window::display_registers_from)
2810 (tui_data_window::display_reg_element_at_line)
2811 (tui_data_window::display_registers_from_line): Remove checks of
2814 2019-08-30 Tom Tromey <tom@tromey.com>
2816 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2818 * tui/tui-regs.c (tui_data_window::show_registers): Call
2820 (tui_data_window::rerender): Rename from display_all_data.
2821 (tui_data_window::rerender): Remove old implementation.
2823 2019-08-30 Tom Tromey <tom@tromey.com>
2825 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2827 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2829 2019-08-29 Bernhard Wodok <barto@gmx.net>
2830 Sergio Durigan Junior <sergiodj@redhat.com>
2833 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2835 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2837 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2838 when searching for types.
2840 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2842 * f-lang.c (f_language_defn): Use f_print_typedef.
2843 * f-lang.h (f_print_typedef): Declare.
2844 * f-typeprint.c (f_print_typedef): Define.
2846 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2848 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2850 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2852 * cli/cli-utils.c (info_print_options_defs): Delete.
2853 (make_info_print_options_def_group): Delete.
2854 (extract_info_print_options): Delete.
2855 (info_print_command_completer): Delete.
2856 (info_print_args_help): Add extra parameter, and optionally
2857 include text about -n flag.
2858 * cli/cli-utils.h (struct info_print_options): Delete.
2859 (extract_info_print_options): Delete declaration.
2860 (info_print_command_completer): Delete declaration.
2861 (info_print_args_help): Add extra parameter, extend header
2863 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2865 * stack.c (struct info_print_options): New type.
2866 (info_print_options_defs): New file scoped variable.
2867 (make_info_print_options_def_group): New static function.
2868 (info_print_command_completer): New static function.
2869 (info_locals_command): Update to use new local functions.
2870 (info_args_command): Likewise.
2871 (_initialize_stack): Add extra parameter to calls to
2872 info_print_args_help.
2873 * symtab.c (search_symbols): Add extra parameter, use this to
2874 possibly excluse non-debug symbols.
2875 (symtab_symbol_info): Add extra parameter, which is passed on to
2877 (struct info_print_options): New type.
2878 (info_print_options_defs): New file scoped variable.
2879 (make_info_print_options_def_group): New static function.
2880 (info_print_command_completer): New static function.
2881 (info_variables_command): Update to use local functions, and pass
2882 extra parameter through to symtab_symbol_info.
2883 (info_functions_command): Likewise.
2884 (info_types_command): Pass additional argument through to
2886 (rbreak_command): Pass extra argument to search_symbols.
2887 (_initialize_symtab): Add extra arguments for calls to
2888 info_print_args_help, and update help text for 'info variables',
2889 'whereis', and 'info functions' commands.
2890 * symtab.h (search_symbols): Add extra argument to declaration.
2891 * NEWS: Mention new flags.
2893 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2895 * symtab.c (lookup_static_symbol): Call the new function (and move
2896 it down to be next to lookup_global_symbol).
2897 (struct global_sym_lookup_data): Add block_enum member and rename to...
2898 (struct global_or_static_sym_lookup_data): ...this.
2899 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2900 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2901 (lookup_symbol_global_or_static_iterator_cb): ...this.
2902 (lookup_global_or_static_symbol): New function.
2903 (lookup_global_symbol): Call new function.
2905 2019-08-26 Tom de Vries <tdevries@suse.de>
2908 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2909 when pc_probe.prob == NULL.
2911 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2913 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2914 variable symbol_linkage to symbol_linkage_.
2916 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2918 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2919 represent whether the symbol is static, dynamic, or we don't
2922 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2924 * gdb/rx-tdep.c (rx_register_names): New.
2925 (rx_register_name): Delete.
2926 (rx_psw_type): Delete.
2927 (rx_fpsw_type): Delete.
2928 (rx_register_type): Delete.
2929 (rx_gdbarch_init): Convert target-descriptions.
2930 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2931 * gdb/features/Makefile: Add rx.xml.
2932 * gdb/features/rx.xml: New.
2933 * gdb/features/rx.c: Generated.
2934 * gdb/NEWS: Mention target description support.
2936 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2938 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2941 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2943 * configure.ac: Don't check for 'dlfcn.h' (moved to
2944 gdbsupport/common.m4).
2945 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2947 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2948 * compile/compile-c-support.c: Include
2949 'gdbsupport/gdb-dlfcn.h'.
2950 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2951 * gdb-dlfcn.c: Move to...
2952 * gdbsupport/gdb-dlfcn.c: ... here.
2953 * gdb-dlfcn.h: Move to...
2954 * gdbsupport/gdb-dlfcn.h: ... here.
2956 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2958 * nios2-tdep.c (struct reg_value): Improve comments. Make
2959 the offset field signed.
2961 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2963 * python/lib/gdb/__init__.py (_execute_file): New function.
2964 * python/python.c (python_run_simple_file): Call gdb._execute_file
2967 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2969 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2970 all uses as this was never set to anything but a zero value.
2972 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2974 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2976 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2978 * tui/tui-data.h (tui_gen_win_info): Add an =default
2979 move constructor, required by some GCC versions.
2981 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2983 * go32-nat.c (go32_sysinfo): Add hygon_p.
2985 2019-08-20 Tom Tromey <tom@tromey.com>
2987 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2988 line_from_reg_element_no, first_reg_element_no_inline,
2989 display_all_data, delete_data_content_windows,
2990 erase_data_content>: Now private.
2992 2019-08-20 Tom Tromey <tom@tromey.com>
2994 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2995 (tui_unhighlight_win, tui_highlight_win)
2996 (tui_win_info::make_window): Update.
2997 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2999 2019-08-20 Tom Tromey <tom@tromey.com>
3001 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3002 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3003 (MAX_PID_WIDTH): Move to tui-stack.c.
3004 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3005 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3006 (MAX_PID_WIDTH): Move from tui-data.h.
3008 2019-08-20 Tom Tromey <tom@tromey.com>
3010 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3011 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3013 (tui_gen_win_info::make_window): Rename from tui_make_window.
3014 (tui_win_info::make_window): New method.
3015 (tui_gen_win_info::make_visible): Update.
3016 * tui/tui-source.c (tui_source_window::set_contents): Update.
3017 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3018 (tui_data_window::display_registers_from): Update.
3019 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3020 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3024 (struct tui_win_info) <make_window>: Declare.
3025 <can_box>: Now virtual.
3026 <title>: New member.
3027 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3028 * tui/tui-command.c (tui_cmd_window::resize): Update.
3030 2019-08-20 Tom Tromey <tom@tromey.com>
3032 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3033 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3034 (tui_data_window::check_register_values): Update.
3036 2019-08-20 Tom Tromey <tom@tromey.com>
3038 * tui/tui-regs.h (struct tui_data_window): Use
3039 DISABLE_COPY_AND_ASSIGN.
3040 <regs_content>: Change type, removing unique_ptr.
3041 <tui_data_window>: Add move constructor.
3042 * tui/tui-regs.c (tui_data_window::show_registers)
3043 (tui_data_window::show_register_group)
3044 (tui_data_window::display_registers_from)
3045 (tui_data_window::display_registers_from)
3046 (tui_data_window::first_data_item_displayed)
3047 (tui_data_window::delete_data_content_windows)
3048 (tui_data_window::rerender, tui_data_window::refresh_window)
3049 (tui_data_window::check_register_values): Update.
3051 2019-08-20 Tom Tromey <tom@tromey.com>
3053 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3054 show_register_group>: Declare.
3055 (tui_show_register_group): Don't declare.
3056 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3058 (tui_data_window::show_register_group): Rename from
3059 tui_show_register_group.
3060 (tui_data_window::check_register_values, tui_reg_command):
3062 * tui/tui-layout.c (tui_set_layout): Update.
3064 2019-08-20 Tom Tromey <tom@tromey.com>
3066 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3068 (tui_check_register_values): Don't declare.
3069 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3070 from tui_check_register_values.
3071 * tui/tui-hooks.c (tui_register_changed): Update.
3073 2019-08-20 Tom Tromey <tom@tromey.com>
3075 * tui/tui-regs.c (tui_reg_layout): Move later.
3076 (tui_show_registers): Don't enable TUI mode or change layout.
3078 2019-08-20 Tom Tromey <tom@tromey.com>
3080 * tui/tui-regs.h (struct tui_data_item_window)
3081 <~tui_data_item_window>: Remove.
3082 <content>: Now a unique_xmalloc_ptr.
3083 * tui/tui-regs.c (tui_register_format): Return a
3085 (tui_get_register): Update.
3086 (~tui_data_item_window): Remove.
3087 (tui_data_window::display_registers_from, tui_display_register):
3089 * tui/tui-io.h (tui_expand_tabs): Update.
3090 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3091 Remove "col" parameter.
3093 2019-08-20 Tom Tromey <tom@tromey.com>
3095 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3097 * tui/tui-regs.c (~tui_data_item_window): Update.
3099 2019-08-20 Tom Tromey <tom@tromey.com>
3101 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3104 2019-08-20 Tom Tromey <tom@tromey.com>
3106 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3108 2019-08-20 Tom Tromey <tom@tromey.com>
3110 * tui/tui-source.h (struct tui_source_window): Update.
3111 * tui/tui-regs.c (tui_show_registers): Update.
3112 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3113 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3114 (NO_REGS_STRING): Remove defines.
3116 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3118 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3119 unnecessary thread walk if remote doesn't support the packet.
3121 2019-08-19 Tom Tromey <tromey@adacore.com>
3123 * python/py-value.c (value_has_field): Fix indentation.
3125 2019-08-19 Tom Tromey <tromey@adacore.com>
3127 * printcmd.c (do_one_display, info_display_command): Update.
3128 * block.h (contained_in): Return bool. Add allow_nested
3130 * block.c (contained_in): Return bool. Add allow_nested
3133 2019-08-19 Tom Tromey <tom@tromey.com>
3135 * configure: Rebuild.
3136 * configure.ac: Disallow the combination of -static-libstdc++ and
3138 * source-cache.c (get_language_name): Handle rust.
3139 (source_cache::get_source_lines): Ignore highlighting exceptions.
3141 2019-08-16 Tom Tromey <tom@tromey.com>
3143 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3144 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3145 (struct tui_source_window_base) <make_visible, refresh_window,
3146 resize>: Remove methods.
3147 <execution_info>: Remove field.
3148 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3149 (tui_show_source_line, tui_source_window_base)
3150 (~tui_source_window_base): Update.
3151 (tui_source_window_base::resize)
3152 (tui_source_window_base::make_visible)
3153 (tui_source_window_base::refresh_window): Remove.
3154 (tui_source_window_base::update_exec_info): Update.
3155 * tui/tui-source.c (tui_source_window::set_contents): Update.
3156 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3158 2019-08-16 Tom Tromey <tom@tromey.com>
3160 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3161 deprecated_query_hook.
3163 2019-08-16 Tom Tromey <tom@tromey.com>
3165 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3166 (tui_update_source_windows_with_line): Update.
3167 * tui/tui-source.h (struct tui_source_window)
3168 <show_symtab_source>: Declare.
3169 (tui_show_symtab_source): Don't declare.
3170 * tui/tui-source.c (tui_show_symtab_source): Rename from
3171 tui_show_symtab_source.
3173 2019-08-16 Tom Tromey <tom@tromey.com>
3175 * tui/tui-winsource.h (struct tui_source_window_base)
3176 <set_contents>: Declare.
3177 * tui/tui-winsource.c
3178 (tui_source_window_base::update_source_window_as_is): Update.
3179 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3181 (tui_set_source_content): Don't declare.
3182 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3183 tui_set_source_content.
3184 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3186 (tui_set_disassem_content): Don't declare.
3187 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3188 tui_set_disassem_content.
3190 2019-08-16 Tom Tromey <tom@tromey.com>
3192 * tui/tui-winsource.h (struct tui_source_window_base)
3193 <update_breakpoint_info>: Declare.
3194 (tui_update_breakpoint_info): Don't declare.
3195 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3196 (tui_update_all_breakpoint_info): Update.
3197 (tui_source_window_base::update_breakpoint_info): Rename from
3198 tui_update_breakpoint_info.
3199 (tui_source_window_base::update_exec_info): Update.
3201 2019-08-16 Tom Tromey <tom@tromey.com>
3203 * tui/tui-winsource.h (struct tui_source_window_base)
3204 <update_source_window>: Declare.
3205 (tui_update_source_window): Don't declare.
3206 * tui/tui-winsource.c
3207 (tui_source_window_base::update_source_window): Rename from
3208 tui_update_source_window.
3209 (tui_source_window_base::rerender): Update.
3210 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3211 * tui/tui-disasm.c (tui_show_disassem)
3212 (tui_show_disassem_and_update_source)
3213 (tui_disasm_window::maybe_update): Update.
3215 2019-08-16 Tom Tromey <tom@tromey.com>
3217 * tui/tui-winsource.h (struct tui_source_window_base)
3218 <update_source_window_as_is>: Declare.
3219 (tui_update_source_window_as_is): Don't declare.
3220 * tui/tui-winsource.c (tui_update_source_window): Update
3221 (tui_source_window_base::update_source_window_as_is): Rename from
3222 tui_update_source_window_as_is.
3223 (tui_source_window_base::refill): Update.
3224 * tui/tui-source.c (tui_show_symtab_source): Update.
3225 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3228 2019-08-16 Tom Tromey <tom@tromey.com>
3230 * tui/tui-winsource.h (tui_update_source_window)
3231 (tui_update_source_window_as_is): Remove "noerror" parameter.
3232 * tui/tui-winsource.c (tui_update_source_window)
3233 (tui_update_source_window_as_is): Remove "noerror" parameter.
3234 (tui_update_source_windows_with_addr)
3235 (tui_update_source_windows_with_line)
3236 (tui_source_window_base::rerender)
3237 (tui_source_window_base::refill): Update.
3238 * tui/tui-source.h (tui_set_source_content)
3239 (tui_show_symtab_source): Remove "noerror" parameter.
3240 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3242 (tui_show_symtab_source): Likewise.
3243 (tui_source_window::maybe_update): Update.
3244 * tui/tui-disasm.c (tui_show_disassem)
3245 (tui_show_disassem_and_update_source)
3246 (tui_disasm_window::do_scroll_vertical)
3247 (tui_disasm_window::maybe_update): Update.
3249 2019-08-16 Tom Tromey <tom@tromey.com>
3251 * tui/tui.c (tui_is_window_visible): Update.
3252 * tui/tui-wingeneral.c (tui_make_window)
3253 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3254 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3255 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3256 (tui_set_win_height_command, parse_scrolling_args): Update.
3257 * tui/tui-source.c (tui_source_window::style_changed): Update.
3258 * tui/tui-regs.c (tui_show_registers)
3259 (tui_data_window::first_data_item_displayed)
3260 (tui_data_window::delete_data_content_windows)
3261 (tui_check_register_values, tui_reg_command): Update.
3262 * tui/tui-disasm.c (tui_show_disassem): Update.
3263 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3265 <is_visible>: Remove field.
3266 * tui/tui-data.c (tui_next_win, tui_prev_win)
3267 (tui_delete_invisible_windows): Update.
3269 2019-08-16 Tom Tromey <tom@tromey.com>
3271 * tui/tui-winsource.h (struct tui_source_window_base)
3272 <m_has_locator>: Remove.
3273 * tui/tui-layout.c (show_source_disasm_command, show_data)
3274 (show_source_or_disasm_and_command): Update.
3276 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3278 * NEWS (Other MI changes): New subsection.
3279 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3280 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3281 * arch-utils.c (default_get_pc_address_flags): New function.
3282 * arch-utils.h (default_get_pc_address_flags): New declaration.
3283 * gdbarch.sh: Add get_pc_address_flags.
3284 * gdbarch.c: Regenerate.
3285 * gdbarch.h: Likewise.
3286 * stack.c (print_pc): New function.
3287 (print_frame_info) (print_frame): Call print_pc.
3289 2019-08-16 Tom de Vries <tdevries@suse.de>
3291 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3292 print_objfile_section_info.
3294 2019-08-15 Tom Tromey <tom@tromey.com>
3296 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3297 calling update_cmdwin_start_line.
3298 * tui/tui-winsource.h (struct tui_source_window_base)
3299 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3300 <rerender>: Declare.
3301 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3303 (tui_source_window_base::set_new_height): Remove.
3304 (tui_source_window_base::rerender): Rename from
3305 do_make_visible_with_new_height.
3306 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3308 (tui_win_info::make_invisible_and_set_new_height)
3309 (tui_win_info::make_visible_with_new_height): Remove.
3310 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3312 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3313 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3314 do_make_visible_with_new_height>: Don't declare.
3315 <rerender>: Declare.
3316 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3318 (tui_data_window::do_make_visible_with_new_height): Remove.
3319 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3320 call tui_show_locator_content.
3321 (tui_gen_win_info::resize): Call rerender.
3322 (show_source_or_disasm_and_command): Don't call
3323 tui_show_locator_content.
3324 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3326 (struct tui_win_info) <rerender>: Declare.
3327 <set_new_height, make_invisible_and_set_new_height,
3328 make_visible_with_new_height>: Don't declare.
3329 * tui/tui-data.c (tui_win_list::rerender): New method.
3330 * tui/tui-command.h (struct tui_cmd_window)
3331 <do_make_visible_with_new_height>: Don't declare.
3333 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3335 2019-08-15 Tom Tromey <tromey@adacore.com>
3337 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3338 * ada-lang.c (ada_enum_name): Likewise.
3340 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3342 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3344 (GdbOutputErrorFile): Likewise.
3345 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3347 (execute_unwinders): Rename to have a leading underscore.
3348 (auto_load_packages): Likewise.
3349 (global scope): Adjust call to auto_load_packages accordingly.
3350 (GdbSetPythonDirectory): Likewise.
3351 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3352 instead of execute_unwinders.
3354 2019-08-15 Tom Tromey <tom@tromey.com>
3356 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3357 (show_data): Don't change window visibility.
3358 (tui_gen_win_info::resize): Remove special case for command
3359 window. Use wresize, when available.
3360 (show_source_or_disasm_and_command): Don't change window
3362 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3363 <make_visible>: New method.
3364 * tui/tui-command.c (tui_cmd_window::resize): New method.
3366 2019-08-15 Tom Tromey <tom@tromey.com>
3368 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3369 (struct tui_source_windows): New.
3370 * tui/tui-winsource.c (tui_display_main): Update.
3371 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3372 (new_height_ok, parse_scrolling_args): Update.
3373 * tui/tui-layout.c (show_layout, show_data): Update.
3374 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3375 (tui_add_to_source_windows): Don't declare.
3376 * tui/tui-data.c (source_windows, tui_source_windows)
3377 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3379 2019-08-15 Tom Tromey <tom@tromey.com>
3381 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3383 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3384 * tui/tui-layout.c (show_source_disasm_command, show_data):
3386 (tui_gen_win_info::resize): Rename.
3387 (show_source_or_disasm_and_command): Update.
3388 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3391 2019-08-15 Tom Tromey <tom@tromey.com>
3393 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3394 * tui/tui-interp.c (tui_interp::init): Don't call
3395 tui_initialize_static_data.
3396 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3398 2019-08-15 Tom Tromey <tom@tromey.com>
3400 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3401 examine tui_win_list.
3403 2019-08-15 Tom Tromey <tom@tromey.com>
3405 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3406 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3407 tui_clear_source_content.
3408 (tui_clear_source_content): Remove.
3409 (tui_source_window_base::do_erase_source_content): Hoist call to
3411 * tui/tui-stack.c (tui_show_frame_info): Don't call
3412 tui_clear_source_content.
3414 2019-08-15 Tom Tromey <tom@tromey.com>
3416 * tui/tui-winsource.h (struct tui_source_window_base)
3417 <do_erase_source_content>: New method.
3418 <erase_source_content>: New method.
3419 (tui_erase_source_content): Don't declare.
3420 * tui/tui-winsource.c (tui_clear_source_content): Update.
3421 (tui_source_window_base::do_erase_source_content): Rename from
3422 tui_erase_source_content.
3423 (tui_source_window_base::show_source_content): Update.
3424 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3425 * tui/tui-source.h (struct tui_source_window)
3426 <erase_source_content>: New method.
3427 * tui/tui-disasm.h (struct tui_disasm_window)
3428 <erase_source_content>: New method.
3430 2019-08-15 Tom Tromey <tom@tromey.com>
3432 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3433 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3435 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3436 * tui/tui-source.c (tui_set_source_content): Update.
3437 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3439 2019-08-15 Tom Tromey <tom@tromey.com>
3441 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3442 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3444 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3446 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3448 (tui_source_window::maybe_update): Update.
3450 2019-08-15 Tom Tromey <tom@tromey.com>
3452 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3453 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3455 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3457 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3459 (tui_disasm_window::maybe_update): Update.
3461 2019-08-15 Tom Tromey <tom@tromey.com>
3463 * tui/tui-winsource.h (struct tui_source_window_base)
3464 <maybe_update>: Declare.
3465 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3467 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3469 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3470 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3472 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3474 2019-08-15 Tom Tromey <tom@tromey.com>
3476 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3478 2019-08-15 Tom Tromey <tom@tromey.com>
3480 * tui/tui-wingeneral.c: Include tui-stack.h.
3481 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3482 (struct tui_locator_window): Move from tui-data.h.
3483 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3484 (tui_initialize_static_data): Move from tui-data.c.
3485 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3486 (struct tui_locator_window): Move to tui-stack.c.
3487 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3488 (tui_initialize_static_data): Move to tui-stack.c.
3490 2019-08-15 Tom Tromey <tom@tromey.com>
3492 * tui/tui-layout.c (show_source_disasm_command)
3493 (show_source_or_disasm_and_command): Use make_visible method, not
3495 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3498 2019-08-15 Tom Tromey <tom@tromey.com>
3500 * tui/tui-wingeneral.h (tui_make_window): Update.
3501 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3503 (tui_gen_win_info::make_visible): Update.
3504 * tui/tui-regs.c (tui_data_window::display_registers_from):
3506 * tui/tui-layout.c (show_source_disasm_command)
3507 (show_source_or_disasm_and_command): Update.
3508 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3509 (enum tui_box): Remove.
3510 (struct tui_win_info) <can_box>: New method.
3511 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3514 2019-08-15 Tom de Vries <tdevries@suse.de>
3516 * linux-nat-trad.c: Include gdbarch.h.
3518 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3520 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3523 2019-08-14 Tom Tromey <tromey@adacore.com>
3525 * darwin-nat.c: Include gdbarch.h.
3526 * darwin-nat-info.c: Include gdbarch.h.
3528 2019-08-13 Tom Tromey <tom@tromey.com>
3530 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3532 * tui/tui-data.c (tui_initialize_static_data): Update.
3534 2019-08-13 Tom Tromey <tom@tromey.com>
3536 * tui/tui-winsource.h (struct tui_exec_info_window)
3537 <~tui_exec_info_window, maybe_allocate_content, get_content,
3539 (struct tui_source_window_base) <set_exec_info_content,
3540 show_exec_info_content>: Don't declare.
3541 * tui/tui-winsource.c
3542 (tui_exec_info_window::maybe_allocate_content): Remove.
3543 (tui_source_window_base::update_exec_info): Rename from
3544 set_exec_info_content.
3545 (tui_source_window_base::show_exec_info_content)
3546 (tui_source_window_base::update_exec_info): Remove.
3548 2019-08-13 Tom Tromey <tom@tromey.com>
3550 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3552 * tui/tui-winsource.c (tui_update_source_window_as_is)
3553 (tui_update_source_windows_with_addr, tui_erase_source_content):
3555 (tui_clear_exec_info_content): Remove.
3557 2019-08-13 Tom Tromey <tom@tromey.com>
3559 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3561 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3562 call tui_erase_exec_info_content.
3563 (tui_clear_exec_info_content): Rename from
3564 tui_erase_exec_info_content.
3565 (tui_clear_exec_info_content): Delete.
3567 2019-08-13 Tom Tromey <tom@tromey.com>
3569 * tui/tui-winsource.h (struct tui_source_window_base)
3570 <show_exec_info_content>: Declare.
3571 (tui_show_exec_info_content): Don't declare.
3572 * tui/tui-winsource.c
3573 (tui_source_window_base::show_exec_info_content): Rename from
3574 tui_show_exec_info_content.
3575 (tui_source_window_base::update_exec_info): Update.
3577 2019-08-13 Tom Tromey <tom@tromey.com>
3579 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3580 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3581 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3582 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3583 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3584 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3587 2019-08-13 Tom Tromey <tom@tromey.com>
3589 * tui/tui-winsource.h (struct tui_source_window_base)
3590 <update_exec_info>: Declare.
3591 (tui_update_exec_info): Don't declare.
3592 * tui/tui-winsource.c (tui_update_source_window_as_is)
3593 (tui_source_window_base::refresh_all)
3594 (tui_update_all_breakpoint_info): Update.
3595 (tui_source_window_base::update_exec_info): Rename from
3596 tui_update_exec_info.
3597 * tui/tui-stack.c (tui_show_frame_info): Update.
3599 2019-08-13 Tom Tromey <tom@tromey.com>
3601 * tui/tui-winsource.h (struct tui_source_window_base)
3602 <set_exec_info_content>: Declare.
3603 (tui_set_exec_info_content): Don't declare.
3604 * tui/tui-winsource.c
3605 (tui_source_window_base::set_exec_info_content): Rename from
3606 tui_set_exec_info_content.
3607 (tui_update_exec_info): Update.
3609 2019-08-13 Tom Tromey <tom@tromey.com>
3611 * tui/tui-winsource.h (struct tui_source_window_base)
3612 <show_source_content>: Declare.
3613 (tui_show_source_content): Don't declare.
3614 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3615 (tui_source_window_base::show_source_content): Rename from
3616 tui_show_source_content.
3617 (tui_source_window_base::refresh_all): Update.
3618 * tui/tui-layout.c (show_source_disasm_command)
3619 (show_source_or_disasm_and_command): Update.
3621 2019-08-13 Tom Tromey <tom@tromey.com>
3623 * tui/tui-winsource.c (tui_erase_source_content)
3624 (tui_show_source_content, tui_source_window_base::refresh_all):
3626 * tui/tui-wingeneral.h
3627 (tui_check_and_display_highlight_if_needed): Don't declare.
3628 * tui/tui-wingeneral.c
3629 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3630 check_and_display_highlight_if_needed.
3631 * tui/tui-win.c (tui_rehighlight_all)
3632 (tui_win_info::make_visible_with_new_height): Update.
3633 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3634 (tui_data_window::erase_data_content)
3635 (tui_data_window::display_all_data): Update.
3636 * tui/tui-data.h (struct tui_win_info)
3637 <check_and_display_highlight_if_needed>: Declare.
3639 2019-08-13 Tom Tromey <tom@tromey.com>
3641 * tui/tui-win.c (tui_resize_all): Call
3642 tui_delete_invisible_windows.
3643 * tui/tui-layout.c (show_layout): Call
3644 tui_delete_invisible_windows.
3645 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3646 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3648 2019-08-13 Tom Tromey <tom@tromey.com>
3650 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3651 tui_add_win_to_layout.
3653 2019-08-13 Tom Tromey <tom@tromey.com>
3655 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3656 * tui/tui-layout.c (tui_default_win_height): Now static.
3658 2019-08-13 Tom Tromey <tom@tromey.com>
3660 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3662 (show_source_disasm_command, show_source_or_disasm_and_command):
3663 Don't check current layout.
3665 2019-08-13 Tom Tromey <tom@tromey.com>
3667 * tui/tui-wingeneral.c (make_all_visible): Remove.
3668 (tui_make_all_invisible): Simplify.
3669 * tui/tui-layout.c (tui_make_all_invisible): Move from
3670 tui-wingeneral.c; simplify.
3671 (show_layout): Hoist call to tui_make_all_invisible.
3672 (show_data): Don't call tui_make_all_invisible.
3674 2019-08-13 Tom Tromey <tom@tromey.com>
3676 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3677 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3679 2019-08-13 Tom Tromey <tom@tromey.com>
3681 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3683 (show_source_disasm_command, show_data)
3684 (show_source_or_disasm_and_command): Don't use
3685 tui_set_current_layout_to.
3686 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3687 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3689 (tui_set_current_layout_to): Remove.
3691 2019-08-13 Tom Tromey <tom@tromey.com>
3693 * tui/tui-layout.c (tui_set_layout): Update.
3694 * tui/tui-data.h (struct tui_layout_def): Remove.
3695 (tui_layout_def): Don't declare.
3696 * tui/tui-data.c (layout_def): Remove.
3697 (tui_layout_def): Remove.
3699 2019-08-13 Tom Tromey <tom@tromey.com>
3701 * tui/tui-winsource.h (struct tui_source_window_base)
3702 <clear_detail>: No longer "override".
3703 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3704 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3705 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3706 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3708 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3710 2019-08-13 Tom Tromey <tromey@adacore.com>
3712 * tracepoint.c: Don't include readline.h or history.h.
3714 2019-08-12 Tom Tromey <tom@tromey.com>
3716 * configure: Rebuild.
3717 * configure.ac: Check for readline 7.
3718 * NEWS: Mention readline 7 requirement.
3721 2019-08-12 Tom Tromey <tom@tromey.com>
3723 * mingw-hdep.c (gdb_select): Remove readline hack.
3725 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3727 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3728 when the function fails.
3730 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3732 * s390-tdep.c (s390_type_align): New function.
3733 (s390_gdbarch_init): Set it as type_align gdbarch method.
3735 2019-08-09 Tom de Vries <tdevries@suse.de>
3738 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3739 pc_low with relocation offset.
3741 2019-08-07 Tom Tromey <tromey@adacore.com>
3743 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3744 (print_frame_args): Update.
3745 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3747 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3748 * frame.h (struct frame_arg): Add initializers.
3749 <error>: Now a unique_xmalloc_ptr.
3751 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3753 * NEWS: Expand the Pointer Authentication entry.
3754 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3755 (aarch64_frame_unmask_lr): ... to this.
3756 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3757 Call aarch64_frame_unmask_lr.
3758 * frame.c (struct frame_info): Add "masked" variable.
3759 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3760 (fprint_frame): Check for masked pc.
3761 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3763 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3764 * stack.c (print_frame): Check for masked pc.
3766 2019-08-06 Tom Tromey <tom@tromey.com>
3768 * stabsread.c (patch_block_stabs, read_one_struct_field)
3769 (read_enum_type): Use obstack_strndup.
3770 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3771 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3772 * dwarf2read.c (guess_full_die_structure_name)
3773 (anonymous_struct_prefix): Use obstack_strndup.
3774 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3775 * c-exp.y (yylex): Use obstack_strndup.
3776 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3777 (write_var_or_type): Use obstack_strndup.
3779 2019-08-06 Tom Tromey <tom@tromey.com>
3781 * symfile.c (reread_symbols): Use obstack_strdup.
3782 * stabsread.c (read_type): Use obstack_strdup.
3783 * gdb_obstack.h (obstack_strdup): New overload.
3784 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3785 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3786 (dwarf2_canonicalize_name): Use obstack_strdup.
3787 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3788 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3791 2019-08-06 Tom Tromey <tom@tromey.com>
3793 * gdb_obstack.h (obstack_strdup): Define.
3794 * gdb_obstack.c (obstack_strdup): Don't define.
3796 2019-08-06 Tom Tromey <tom@tromey.com>
3798 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3800 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3802 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3803 * stabsread.c (common_block_start): Use obstack_strdup.
3804 * objfiles.c (set_objfile_main_name, objfile): Use
3806 * namespace.c (add_using_directive): Use obstack_strdup.
3807 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3808 * jit.c (finalize_symtab): Use obstack_strdup.
3809 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3810 (guess_partial_die_structure_name, partial_die_info::fixup)
3811 (dwarf2_name): Use obstack_strdup.
3812 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3814 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3815 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3817 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3819 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3821 * unittests/help-doc-selftests.c: New file.
3822 * Makefile.in: Add the new file.
3824 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3826 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3827 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3828 the full first line, except when FOR_VALUE_PREFIX. In this case,
3829 the trailing '.' is not output, and the first character is uppercased.
3830 (print_help_for_command): Update call to print_doc_line.
3831 (print_doc_of_command): Likewise.
3832 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3833 * cli/cli-option.c (append_indented_doc): Do not append newline.
3834 (build_help_option): Append newline after first appended_indented_doc
3835 only if a second call is done.
3836 (build_help): Append 2 new lines before each option, except the first
3838 * compile/compile.c (_initialize_compile): Add new lines after
3839 %OPTIONS%, when not at the end of the help.
3840 Change help doc or code
3841 producing the help doc to respect the invariants.
3842 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3843 Also removed the new line after 'Options:', as all other commands
3844 do not put an empty line between 'Options:' and the first option.
3845 * printcmd.c (_initialize_printcmd): Likewise.
3846 * stack.c (_initialize_stack): Likewise.
3847 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3848 incorrectly telling COMMAND is optional.
3849 * ada-lang.c (_initialize_ada_language): Change help doc or code
3850 producing the help doc to respect the invariants.
3851 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3852 * breakpoint.c (_initialize_breakpoint): Likewise.
3853 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3854 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3855 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3856 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3857 _initialize_cli_style): Likewise.
3858 * corelow.c (core_target_info): Likewise.
3859 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3860 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3861 * filesystem.c (_initialize_filesystem): Likewise.
3862 * frame.c (_initialize_frame): Likewise.
3863 * gnu-nat.c (add_task_commands): Likewise.
3864 * infcall.c (_initialize_infcall): Likewise.
3865 * infcmd.c (_initialize_infcmd): Likewise.
3866 * interps.c (_initialize_interpreter): Likewise.
3867 * language.c (_initialize_language): Likewise.
3868 * linux-fork.c (_initialize_linux_fork): Likewise.
3869 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3870 * maint.c (_initialize_maint_cmds): Likewise.
3871 * memattr.c (_initialize_mem): Likewise.
3872 * printcmd.c (_initialize_printcmd): Likewise.
3873 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3875 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3876 * record-btrace.c (_initialize_record_btrace): Likewise.
3877 * record-full.c (_initialize_record_full): Likewise.
3878 * record.c (_initialize_record): Likewise.
3879 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3880 * regcache.c (_initialize_regcache): Likewise.
3881 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3882 _initialize_remote): Likewise.
3883 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3884 * serial.c (_initialize_serial): Likewise.
3885 * skip.c (_initialize_step_skip): Likewise.
3886 * source.c (_initialize_source): Likewise.
3887 * stack.c (_initialize_stack): Likewise.
3888 * symfile.c (_initialize_symfile): Likewise.
3889 * symtab.c (_initialize_symtab): Likewise.
3890 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3891 * top.c (init_main): Likewise.
3892 * tracefile-tfile.c (tfile_target_info): Likewise.
3893 * tracepoint.c (_initialize_tracepoint): Likewise.
3894 * tui/tui-win.c (_initialize_tui_win): Likewise.
3895 * utils.c (add_internal_problem_command): Likewise.
3896 * valprint.c (value_print_option_defs): Likewise.
3898 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3901 * configure.ac: Drop enable-libmcheck support.
3902 * configure, config.in: Rebuild.
3903 * libmcheck.m4: Remove.
3904 * acinclude.m4: Don't include it.
3905 * Makefile.in: Don't distribute it.
3906 * top.c (print_gdb_configuration): Don't mention it.
3908 2019-08-06 Tom Tromey <tom@tromey.com>
3910 * utils.c (set_output_style): Sometimes pass stream to
3912 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3913 * record-btrace.c (btrace_insn_history): Update.
3914 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3916 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3917 Update initializers.
3918 <m_uiout>: New field.
3920 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3921 Remove "uiout" parameter.
3922 (dump_insns): Update.
3923 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3924 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3926 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3928 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3929 (error_in_psymtab_expansion): Likewise.
3930 (lookup_symbol_via_quick_fns): Likewise.
3931 (basic_lookup_transparent_type_quick): Likewise.
3932 (basic_lookup_transparent_type_1): Likewise.
3934 2019-08-06 Tom Tromey <tromey@adacore.com>
3936 * source.c (last_source_error): Now bool.
3937 (print_source_lines_base): Make "noprint" bool. Only open
3938 source file when last_source_visited changes.
3940 2019-08-06 Tom Tromey <tromey@adacore.com>
3942 * annotate.c (annotate_source_line): Use g_source_cache.
3943 * source-cache.c (source_cache::get_plain_source_lines): Change
3944 parameters. Populate m_offset_cache.
3945 (source_cache::ensure): New method.
3946 (source_cache::get_line_charpos): New method.
3947 (extract_lines): Move lower. Change parameters.
3948 (source_cache::get_source_lines): Move lower.
3949 * source-cache.h (class source_cache): Update comment.
3950 <get_line_charpos>: New method.
3951 <get_source_lines>: Update comment.
3952 <clear>: Clear m_offset_cache.
3953 <get_plain_source_lines>: Change parameters.
3954 <ensure>: New method
3955 <m_offset_cache>: New member.
3956 * source.c (forget_cached_source_info_for_objfile): Update.
3957 (info_source_command): Use g_source_cache.
3958 (find_source_lines, open_source_file_with_line_charpos): Remove.
3959 (print_source_lines_base, search_command_helper): Use g_source_cache.
3960 * source.h (open_source_file_with_line_charpos): Don't declare.
3961 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3962 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3965 2019-08-06 Tom Tromey <tromey@adacore.com>
3967 * source-cache.c (source_cache::get_plain_source_lines):
3968 Remove "first_line" and "last_line" parameters.
3969 (source_cache::get_source_lines): Cache plain text.
3970 * source-cache.h (class source_cache)
3971 <get_plain_source_lines>: Update.
3973 2019-08-06 Tom Tromey <tromey@adacore.com>
3975 * source-cache.c (extract_lines): No longer a method.
3976 Changed type of parameter. Include final newline.
3977 (selftests::extract_lines_test): New function.
3978 (_initialize_source_cache): Likewise.
3979 * source-cache.h (class source_cache)
3980 <extract_lines>: Don't declare.
3982 2019-08-06 Tom Tromey <tromey@adacore.com>
3984 * breakpoint.c (init_breakpoint_sal): Update.
3985 (breakpoint): Update.
3986 * breakpoint.h (struct breakpoint) <filter>: Now a
3989 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3991 * NEWS: Mention dictionary access on blocks.
3992 * python/py-block.c (blpy_getitem): New function.
3993 (block_object_as_mapping): New struct.
3994 (block_object_type): Use new struct for tp_as_mapping field.
3996 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3998 * objfiles.h (objfile): Add a comment describing partial symbols.
4000 2019-08-05 Tom Tromey <tromey@adacore.com>
4002 * compile/compile.c (_initialize_compile): Use _(), not N_().
4003 * thread.c (_initialize_thread): Use _(), not N_().
4004 * stack.c (_initialize_stack): Use _(), not N_().
4005 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4007 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4009 * dwarf2read.c (struct dw2_symtab_iterator):
4010 <want_specific_block>: Remove.
4011 <block_index>: Change type to gdb::optional.
4012 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4013 change type of BLOCK_INDEX parameter to gdb::optional.
4014 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4015 (dw2_lookup_symbol): Don't pass argument for
4016 WANT_SPECIFIC_BLOCK.
4017 (dw2_expand_symtabs_for_function): Don't pass argument for
4018 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4019 (class dw2_debug_names_iterator)
4020 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4021 parameter, change BLOCK_INDEX type to gdb::optional.
4022 <m_want_specific_block>: Remove.
4023 <m_block_index>: Change type to gdb::optional.
4024 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4025 gdb::optional. Re-write in function of gdb::optional.
4026 (dw2_debug_names_lookup_symbol): Don't pass argument for
4027 WANT_SPECIFIC_BLOCK.
4028 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4029 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4032 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4034 * NEWS: Mention changes to "info sources" command.
4036 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4038 * symtab.c (filename_partial_match_opts): New struct type.
4039 (struct output_source_filename_data): New members
4040 regexp, c_regexp, partial_match.
4041 (output_source_filename): Use new members to decide to print file.
4042 (info_sources_option_defs): New variable.
4043 (make_info_sources_options_def_group, print_info_sources_header,
4044 info_sources_command_completer):
4046 (info_sources_command): Read new optional arguments.
4047 (_initialize_symtab): Update info sources help.
4049 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4051 * ada-lang.c (exception_support_info_v0): Renamed from...
4052 (default_exception_support_info): ... this. Create new
4054 (ada_has_this_exception_support): Look up catch_handlers_sym.
4055 (ada_exception_support_info_sniffer): Try v0 after default.
4057 2019-08-01 Tom Tromey <tromey@adacore.com>
4059 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4062 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4064 * s12z-tdep.c: Fix include path for s12z-opc.h.
4066 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4068 * NEWS: Require GNU make 3.82.
4070 2019-07-16 Tom Tromey <tom@tromey.com>
4072 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4075 2019-07-30 Tom Tromey <tromey@adacore.com>
4077 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4079 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4081 * printcmd.c (print_address_symbolic): Print negative offsets.
4082 (build_address_symbolic): Force signed arithmetic when computing
4085 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4087 PR/24474: Add a function to lookup static variables.
4088 * NEWS: Mention this new function.
4089 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4090 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4091 * python/python.c (python_GdbMethods): Add new function.
4093 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4095 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4096 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4097 (objfpy_lookup_static_symbol): New function.
4098 (objfile_object_methods): Add new functions.
4100 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4102 * NEWS: Mention 'set|show print frame-info'. Mention new
4103 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4104 backtrace argument. Mention that python frame filtering code
4105 is now consistent with what 'backtrace' command prints.
4107 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4109 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4111 (print_frame_info_auto, print_frame_info_source_line,
4112 print_frame_info_location, print_frame_info_source_and_location,
4113 print_frame_info_location_and_address, print_frame_info_short_location):
4115 (struct frame_print_options): New member print_frame_info.
4116 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4117 * stack.h (get_user_print_what_frame_info): New declaration.
4118 (frame_show_address): New declaration.
4119 * stack.c (print_frame_arguments_choices): New value 'presence'.
4120 (print_frame_info_auto, print_frame_info_source_line,
4121 print_frame_info_location, print_frame_info_source_and_location,
4122 print_frame_info_location_and_address, print_frame_info_short_location,
4123 print_frame_info_choices, print_frame_info_print_what): New definitions.
4124 (print_frame_args): Only print dots for args if print frame-arguments
4126 (frame_print_option_defs): New element for "frame-info".
4127 (get_user_print_what_frame_info): New function.
4128 (frame_show_address): Make non static. Move comment to stack.h.
4129 (print_frame_info_to_print_what): New function.
4130 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4131 to decide what to print.
4132 (backtrace_command_1): Handle the new print_frame_arguments_presence
4134 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4135 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4136 (py_print_frame): In non-mi mode, use LOCATION as default for
4137 print_what, similarly to frame information printed directly by
4138 backtrace command. Handle frame-info user option in non MI mode.
4140 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4142 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4143 Add case for debugging 32-bit target on 64-bit host. Revise
4146 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4148 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4149 instead of find_function_entry_range_from_pc.
4151 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4153 * stack.c (find_frame_funname): Remove code which preferred
4154 minsym over symtab sym in "certain pathological cases".
4156 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4157 parameter. Change type of "do_demangle" to bool.
4158 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4159 Pass suitable "prefer_sym_over_minsym" flag to
4160 build_address_symbolic(). Don't output "+" for negative offsets.
4161 * printcmd.c (print_address_symbolic): Update invocation of
4162 build_address_symbolic to include a "prefer_sym_over_minsym"
4164 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4165 Restrict cases in which use of minimal symbol is preferred to that
4166 of a found symbol. Update comments.
4168 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4169 for entry pc when entry pc is out of range for that FDE.
4171 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4174 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4177 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4179 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4180 this function's Python signature.
4183 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4185 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4186 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4187 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4188 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4189 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4192 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4194 * h8300-tdep.c (h8300_register_name_common): New.
4195 h8300_register_name): Use h8300_register_name_common.
4196 (h8300s_register_name): Likewise.
4197 (h8300sx_register_name): Likewise.
4198 (h8300h_register_nam): New.
4199 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4202 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4204 * arm-tdep.c (arm_skip_cmse_entry): New function.
4205 (arm_is_sgstubs_section): New function.
4206 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4208 2019-07-22 Tom Tromey <tom@tromey.com>
4210 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4213 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4215 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4218 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4220 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4221 so that GDB doesn't match any msymbols when searching in the
4223 (print_symbol_info): Print using typedef_print or type_print based
4224 on the type of the symbol. Add updated FIXME comment moved from...
4225 (_initialize_symtab): ... move and update FIXME comment to above.
4227 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4229 * NEWS: Mention adding -q option to "info types".
4230 * symtab.c (struct info_types_options): New struct.
4231 (info_types_options_defs): New variable.
4232 (make_info_types_options_def_group): New function.
4233 (info_types_command): Use gdb::option framework to parse options.
4234 (info_types_command_completer): New function.
4235 (_initialize_symtab): Extend the help text on "info types" and
4236 register command completer.
4238 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4240 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4241 (lookup_symbol_in_objfile): Change int to block_enum and add a
4242 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4244 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4246 * MAINTAINERS (Write After Approval): Add self.
4248 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4250 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4251 instruction to the dummy code region.
4253 2019-07-19 Tom Tromey <tromey@adacore.com>
4255 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4256 (ARGSUSED, PARAMS, __func__): Remove rules.
4258 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4260 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4261 * features/arm/arm-with-iwmmxt.c: Remove.
4262 * features/arm/arm-with-iwmmxt.xml: Remove.
4263 * features/arm/arm-with-m-fpa-layout.c: Remove.
4264 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4265 * features/arm/arm-with-m-vfp-d16.c: Remove.
4266 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4267 * features/arm/arm-with-m.c: Remove.
4268 * features/arm/arm-with-m.xml: Remove.
4269 * features/arm/arm-with-neon.c: Remove.
4270 * features/arm/arm-with-neon.xml: Remove.
4271 * features/arm/arm-with-vfpv2.c: Remove.
4272 * features/arm/arm-with-vfpv2.xml: Remove.
4273 * features/arm/arm-with-vfpv3.c: Remove.
4274 * features/arm/arm-with-vfpv3.xml: Remove.
4276 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4278 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4280 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4282 * arch/aarch32.c (aarch32_create_target_description): Create
4283 target descriptions using features.
4284 * arch/arm.c (arm_create_target_description)
4285 (arm_create_mprofile_target_description): Likewise.
4286 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4288 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4290 * Makefile.in: Add new files.
4291 * aarch32-tdep.c: New file.
4292 * aarch32-tdep.h: New file.
4293 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4294 Call aarch32_read_description.
4295 * arch/aarch32.c: New file.
4296 * arch/aarch32.h: New file.
4297 * arch/arm.c (arm_create_target_description)
4298 (arm_create_mprofile_target_description): New function.
4299 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4300 (arm_create_target_description)
4301 (arm_create_mprofile_target_description): New declaration.
4302 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4303 read_description functions.
4304 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4306 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4307 * arm-tdep.c (tdesc_arm_list): New variable.
4308 (arm_register_g_packet_guesses): Call create description functions.
4309 (arm_read_description) (arm_read_mprofile_description): New
4311 * arm-tdep.h (arm_read_description)
4312 (arm_read_mprofile_description): Add declaration.
4313 * configure.tgt: Add new files.
4315 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4317 * top.c (new_ui_command): Open specified terminal just once.
4319 2019-07-18 Tom Tromey <tromey@adacore.com>
4321 * symtab.c (main_name): Constify return type.
4322 * symfile.c (set_initial_language): Update.
4323 * symtab.h (main_name): Constify return type.
4325 2019-07-17 Tom Tromey <tom@tromey.com>
4327 * tui/tui-winsource.c (tui_update_source_window)
4328 (tui_update_source_window_as_is)
4329 (tui_update_source_windows_with_line): Remove return.
4330 * tui/tui-disasm.c (tui_show_disassem)
4331 (tui_show_disassem_and_update_source): Remove return.
4332 * tui/tui.c (tui_reset): Remove return.
4333 * tui/tui-wingeneral.c
4334 (tui_check_and_display_highlight_if_needed): Remove return.
4336 2019-07-17 Tom Tromey <tom@tromey.com>
4338 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4340 2019-07-17 Tom Tromey <tom@tromey.com>
4342 * tui/tui-winsource.h (struct tui_exec_info_window)
4343 (struct tui_source_window_base): Move from tui-data.h.
4344 * tui/tui-winsource.c: Move many method definitions from
4345 elsewhere. Remove "structuring" comments.
4346 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4347 (tui_source_window_base::refresh_window): Move to
4349 * tui/tui-win.c (tui_source_window_base::refresh_all)
4350 (tui_source_window_base::update_tab_width)
4351 (tui_source_window_base::set_new_height)
4352 (tui_source_window_base::do_make_visible_with_new_height): Move to
4354 * tui/tui-source.h: Update.
4355 * tui/tui-source.c (tui_source_window_base::reset): Move to
4357 * tui/tui-disasm.h: Update.
4358 * tui/tui-data.h (struct tui_exec_info_window): Move to
4360 (struct tui_source_window_base): Likewise.
4361 * tui/tui-data.c (tui_source_window_base::clear_detail)
4362 (tui_source_window_base, ~tui_source_window_base): Move to
4365 2019-07-17 Tom Tromey <tom@tromey.com>
4367 * tui/tui-win.c (tui_resize_all)
4368 (tui_source_window_base::update_tab_width)
4369 (tui_adjust_win_heights): Update.
4370 (tui_win_info::make_invisible_and_set_new_height): Rename from
4371 make_invisible_and_set_new_height.
4372 * tui/tui-data.h (struct tui_win_info)
4373 <make_invisible_and_set_new_height>: New method.
4375 2019-07-17 Tom Tromey <tom@tromey.com>
4377 * tui/tui.c: Update.
4378 * tui/tui-source.h (struct tui_source_window): Move from
4380 * tui/tui-layout.c: Update.
4381 * tui/tui-disasm.c: Update.
4382 * tui/tui-data.h (struct tui_source_window): Move to
4385 2019-07-17 Tom Tromey <tom@tromey.com>
4387 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4389 * tui/tui-data.h (struct tui_disasm_window): Move to
4392 2019-07-17 Tom Tromey <tom@tromey.com>
4394 * tui/tui-regs.h (struct tui_data_item_window): Move from
4396 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4397 * tui/tui-data.h (struct tui_data_item_window): Move to
4399 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4401 2019-07-17 Tom Tromey <tom@tromey.com>
4403 * tui/tui.c: Update.
4404 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4405 (tui_cmd_window::max_height): Move to tui-command.c.
4406 * tui/tui-layout.c: Update.
4407 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4408 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4410 * tui/tui-command.h (struct tui_cmd_window): Move from
4412 * tui/tui-command.c: Remove "structuring" comments.
4413 (tui_cmd_window::clear_detail)
4414 (tui_cmd_window::do_make_visible_with_new_height)
4415 (tui_cmd_window::max_height): Move from elsewhere.
4417 2019-07-17 Tom Tromey <tom@tromey.com>
4419 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4421 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4422 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4424 2019-07-17 Tom Tromey <tom@tromey.com>
4426 * tui/tui.c: Update.
4427 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4429 * tui/tui-windata.h: Remove file.
4430 * tui/tui-windata.c: Remove file.
4431 * tui/tui-win.c (tui_data_window::set_new_height)
4432 (tui_data_window::do_make_visible_with_new_height): Move to
4434 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4435 * tui/tui-regs.c: Remove "structuring" comments.
4436 (tui_data_window::first_data_item_displayed)
4437 (tui_data_window::delete_data_content_windows)
4438 (tui_data_window::erase_data_content)
4439 (tui_data_window::display_all_data)
4440 (tui_data_window::refresh_all)
4441 (tui_data_window::do_scroll_vertical)
4442 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4443 (tui_data_window::do_make_visible_with_new_height)
4444 (tui_data_window::refresh_window): Move from elsewhere.
4445 (_initialize_tui_regs): Move to end of file.
4446 * tui/tui-layout.c: Update.
4447 * tui/tui-hooks.c: Update.
4448 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4449 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4451 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4453 2019-07-17 Tom Tromey <tom@tromey.com>
4455 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4458 2019-07-17 Tom Tromey <tom@tromey.com>
4460 * tui/tui-win.c (tui_source_window_base::set_new_height)
4461 (tui_source_window_base::do_make_visible_with_new_height): Use
4462 m_has_locator field directly.
4463 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4465 (struct tui_source_window_base) <has_locator>: Likewise.
4467 2019-07-17 Tom Tromey <tom@tromey.com>
4469 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4471 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4473 * tui/tui-win.c (tui_source_window_base::set_new_height)
4474 (tui_source_window_base::set_new_height)
4475 (make_invisible_and_set_new_height)
4476 (tui_source_window_base::do_make_visible_with_new_height)
4477 (tui_source_window_base::do_make_visible_with_new_height):
4479 * tui/tui-layout.c (show_source_disasm_command, show_data)
4480 (show_source_or_disasm_and_command): Update.
4481 * tui/tui-layout.c (show_layout): Update.
4483 2019-07-17 Tom Tromey <tom@tromey.com>
4485 * tui/tui-layout.c (make_data_window): Remove.
4486 (show_data): Unify creation and re-initialization cases.
4488 2019-07-17 Tom Tromey <tom@tromey.com>
4490 * tui/tui-layout.c (make_source_window, make_disasm_window):
4492 (show_data): Unify creation and re-initialization cases.
4494 2019-07-17 Tom Tromey <tom@tromey.com>
4496 * tui/tui-layout.c (make_command_window): Remove.
4497 (show_source_disasm_command, show_source_or_disasm_and_command):
4498 Unify creation and re-initialization cases.
4500 2019-07-17 Tom Tromey <tom@tromey.com>
4502 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4503 creation and re-initialization cases.
4505 2019-07-17 Tom Tromey <tom@tromey.com>
4507 * tui/tui-regs.c (tui_get_register): Return void.
4509 2019-07-17 Tom Tromey <tom@tromey.com>
4511 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4514 2019-07-17 Tom Tromey <tom@tromey.com>
4516 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4519 2019-07-17 Tom Tromey <tom@tromey.com>
4521 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4522 * tui/tui-regs.c (tui_reg_layout): New function.
4523 (tui_show_registers, tui_reg_command): Use it.
4524 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4525 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4527 (tui_layout_command): Remove.
4529 2019-07-17 Tom Tromey <tom@tromey.com>
4531 * tui/tui-layout.h (tui/tui-layout): Return void.
4532 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4534 2019-07-17 Tom Tromey <tom@tromey.com>
4536 * tui/tui-layout.c (show_source_disasm_command, show_data):
4538 (reset_locator): Remove.
4539 (show_source_or_disasm_and_command): Update.
4541 2019-07-17 Tom Tromey <tom@tromey.com>
4543 * tui/tui-source.c (tui_source_window_base::reset): Remove
4545 * tui/tui-layout.c (make_command_window, make_source_window)
4546 (make_disasm_window, make_data_window)
4547 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4548 (reset_locator, show_source_or_disasm_and_command): Update.
4549 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4551 (struct tui_source_window_base) <reset>: Likewise.
4553 2019-07-17 Tom Tromey <tom@tromey.com>
4555 * tui/tui-layout.c (show_source_disasm_command): Use
4557 (reset_locator): New function.
4558 (init_and_make_win): Remove.
4559 (show_source_or_disasm_and_command): Use reset_locator.
4561 2019-07-17 Tom Tromey <tom@tromey.com>
4563 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4565 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4567 * tui/tui-source.c (tui_source_window_base::reset): New method.
4568 * tui/tui-layout.c (make_command_window): Don't call
4570 (make_source_window, make_disasm_window): Don't call
4571 make_source_or_disasm_window.
4572 (make_data_window): Don't call init_and_make_win. Change calling
4574 (show_source_disasm_command, show_data): Simplify.
4575 (make_source_or_disasm_window): Remove.
4576 (show_source_or_disasm_and_command): Simplify.
4577 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4578 (struct tui_source_window_base) <reset>: Likewise.
4579 <execution_info>: Remove initializer.
4580 * tui/tui-data.c (tui_source_window_base): Initialize
4583 2019-07-17 Tom Tromey <tom@tromey.com>
4585 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4588 2019-07-17 Tom Tromey <tom@tromey.com>
4590 * tui/tui.c (tui_rl_other_window): Update.
4591 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4592 superclass method first. Always iterate over regs_content.
4593 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4595 * tui/tui-win.c (tui_set_focus_command): Update.
4597 2019-07-17 Tom Tromey <tom@tromey.com>
4599 * tui/tui-win.c (tui_set_focus_command): Rename from
4600 tui_set_focus. Call tui_enable.
4601 (tui_set_focus_command): Remove.
4603 2019-07-17 Tom Tromey <tom@tromey.com>
4605 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4607 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4609 (tui_data_window::refresh_window): Call refresh_window on data
4610 items. Always call superclass refresh_window.
4611 (tui_win_info::refresh): Remove.
4612 (tui_source_window_base::refresh_window): Update.
4613 (tui_refresh_all): Update.
4614 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4616 (show_source_or_disasm_and_command): Likewise.
4617 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4618 (struct tui_source_window_base) <refresh>: Likewise.
4620 2019-07-17 Tom Tromey <tom@tromey.com>
4622 * tui/tui-winsource.c (tui_clear_source_content)
4623 (tui_show_source_content): Update.
4624 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4625 whether content is empty.
4626 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4629 2019-07-17 Tom Tromey <tom@tromey.com>
4631 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4633 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4634 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4636 2019-07-17 Tom Tromey <tom@tromey.com>
4638 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4639 (struct tui_data_item_window): Update.
4641 2019-07-17 Tom Tromey <tom@tromey.com>
4643 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4644 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4647 2019-07-17 Tom Tromey <tom@tromey.com>
4649 * tui/tui-winsource.h (tui_erase_source_content)
4650 (tui_clear_source_content): Remove "display_prompt" parameter.
4651 * tui/tui-winsource.c (tui_update_source_window_as_is)
4652 (tui_update_source_windows_with_addr): Update.
4653 (tui_clear_source_content): Remove "display_prompt" parameter.
4654 (tui_erase_source_content): Likewise. Simplify.
4655 (tui_show_source_content): Update.
4656 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4657 * tui/tui-stack.c (tui_show_frame_info): Update.
4658 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4661 2019-07-17 Tom Tromey <tom@tromey.com>
4663 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4664 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4666 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4669 2019-07-17 Tom Tromey <tom@tromey.com>
4671 * tui/tui-winsource.c (tui_clear_source_content)
4672 (tui_show_source_content, tui_show_exec_info_content)
4673 (tui_clear_exec_info_content): Update.
4674 * tui/tui-stack.c (tui_show_locator_content): Update.
4675 (tui_show_frame_info): Update.
4676 * tui/tui-source.h (tui_source_window): Don't declare.
4677 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4678 from tui_source_is_displayed.
4679 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4681 (struct tui_source_window_base) <content_in_use>: New field. Now
4683 (struct tui_source_window) <showing_source_p>: New method.
4684 (TUI_SRC_WIN): Change cast.
4685 * tui/tui-data.c (tui_initialize_static_data): Update.
4687 2019-07-17 Tom Tromey <tom@tromey.com>
4689 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4691 * tui/tui-source.c (tui_source_window::location_matches_p): New
4693 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4695 * tui/tui-data.h (struct tui_source_window_base)
4696 <location_matches_p>: New method.
4697 (struct tui_source_window, struct tui_disasm_window)
4698 <location_matches_p>: Likewise.
4700 2019-07-17 Tom Tromey <tom@tromey.com>
4702 * tui/tui-win.c (tui_set_win_height_command): Rename from
4704 (tui_set_win_height_command): Remove.
4706 2019-07-17 Tom Tromey <tom@tromey.com>
4708 * tui/tui-source.c (tui_source_window): New constructor. Add
4710 (~tui_source_window): New destructor.
4711 (tui_source_window::style_changed): New method.
4712 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4713 (tui_attach_detach_observers): Update.
4714 * tui/tui-data.h (struct tui_source_window): Make constructor not
4715 inline. Add destructor.
4716 (struct tui_source_window) <style_changed>: New method.
4717 <m_observable>: New member.
4719 2019-07-17 Tom Tromey <tom@tromey.com>
4721 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4722 * tui/tui-win.c (tui_resize_all): Fix typo.
4724 2019-07-17 Tom Tromey <tom@tromey.com>
4726 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4727 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4728 (tui_refresh_all): Remove "list" parameter. Use foreach.
4729 * tui/tui-win.c (window_name_completer): Use foreach.
4730 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4731 (update_tab_width): Likewise.
4732 * tui/tui-layout.c (show_layout): Update.
4733 * tui/tui-data.h (class tui_window_iterator): New.
4734 (struct all_tui_windows): New.
4735 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4737 2019-07-17 Tom Tromey <tom@tromey.com>
4739 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4740 parameter. Don't reference globals.
4741 (tui_reg_command): Update.
4743 2019-07-17 Tom Tromey <tom@tromey.com>
4745 * tui/tui-regs.c (tui_show_registers): Simplify.
4747 2019-07-17 Tom Tromey <tom@tromey.com>
4749 * tui/tui-regs.c (tui_show_registers): Update.
4750 (tui_show_register_group): Add win_info parameter.
4752 2019-07-17 Tom Tromey <tom@tromey.com>
4754 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4755 Rename from tui_display_reg_element_at_line.
4756 (tui_data_window::display_registers_from_line): Update.
4757 * tui/tui-data.h (struct tui_data_window)
4758 <display_reg_element_at_line>: New method.
4760 2019-07-17 Tom Tromey <tom@tromey.com>
4762 * tui/tui-regs.h (tui_display_registers_from)
4763 (tui_display_registers_from_line): Don't declare.
4764 * tui/tui-windata.c (tui_data_window::display_all_data)
4765 (tui_data_window::refresh_all)
4766 (tui_data_window::do_scroll_vertical): Update.
4767 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4768 from tui_display_registers_from.
4769 (tui_display_reg_element_at_line): Update.
4770 (tui_data_window::display_registers_from_line): Rename from
4771 tui_display_registers_from_line.
4772 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4773 display_registers_from_line>: New methods.
4775 2019-07-17 Tom Tromey <tom@tromey.com>
4777 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4778 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4779 from tui_erase_data_content.
4780 (tui_data_window::display_all_data)
4781 (tui_data_window::refresh_all)
4782 (tui_data_window::do_scroll_vertical): Update.
4783 * tui/tui-regs.c (tui_show_registers): Update.
4784 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4787 2019-07-17 Tom Tromey <tom@tromey.com>
4789 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4792 (tui_data_window::delete_data_content_windows): Rename from
4793 tui_delete_data_content_windows.
4794 (tui_data_window::display_all_data)
4795 (tui_data_window::do_scroll_vertical): Update.
4796 * tui/tui-data.h (struct tui_data_window)
4797 <delete_data_content_windows>: New method.
4799 2019-07-17 Tom Tromey <tom@tromey.com>
4801 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4802 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4804 2019-07-17 Tom Tromey <tom@tromey.com>
4806 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4807 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4808 from tui_display_all_data.
4810 (tui_data_window::do_make_visible_with_new_height): Update.
4811 * tui/tui-regs.c (tui_show_registers): Update.
4812 * tui/tui-layout.c (tui_set_layout): Update.
4813 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4816 2019-07-17 Tom Tromey <tom@tromey.com>
4818 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4819 * tui/tui-windata.c (tui_display_data_from): Remove.
4820 (tui_data_window::refresh_all): Update.
4822 2019-07-17 Tom Tromey <tom@tromey.com>
4824 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4825 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4826 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4827 tui_display_registers_from_line.
4828 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4829 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4830 "force_display" parameter.
4832 2019-07-17 Tom Tromey <tom@tromey.com>
4834 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4836 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4837 Rename from tui_first_reg_element_no_inline.
4838 (tui_display_reg_element_at_line)
4839 (tui_display_registers_from_line): Update.
4840 * tui/tui-data.h (struct tui_data_window)
4841 <first_reg_element_no_inline>: New method.
4843 2019-07-17 Tom Tromey <tom@tromey.com>
4845 * tui/tui-windata.c (tui_display_data_from)
4846 (tui_data_window::do_scroll_vertical): Update.
4847 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4848 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4849 Rename from tui_line_from_reg_element_no.
4850 (tui_display_registers_from_line): Update.
4851 * tui/tui-data.h (struct tui_data_window)
4852 <line_from_reg_element_no>: New method.
4854 2019-07-17 Tom Tromey <tom@tromey.com>
4856 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4857 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4858 tui_last_regs_line_no.
4859 (tui_display_reg_element_at_line)
4860 (tui_display_registers_from_line): Update.
4861 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4864 2019-07-17 Tom Tromey <tom@tromey.com>
4867 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4868 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4869 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4870 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4871 (tui_update_breakpoint_info): Likewise.
4872 * tui/tui-hooks.c (tui_event_create_breakpoint)
4873 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4876 2019-07-17 Tom Tromey <tom@tromey.com>
4878 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4880 2019-07-17 Tom Tromey <tom@tromey.com>
4882 * tui/tui-winsource.c (tui_update_source_window_as_is)
4883 (tui_update_source_windows_with_addr): Update.
4884 * tui/tui-source.h (tui_set_source_content)
4885 (tui_show_symtab_source): Add "win_info" parameter.
4886 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4888 (tui_show_symtab_source): Likewise.
4890 2019-07-17 Tom Tromey <tom@tromey.com>
4892 * tui/tui-wingeneral.c
4893 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4895 2019-07-17 Tom Tromey <tom@tromey.com>
4897 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4898 (struct tui_cmd_window) <can_scroll>: New method.
4899 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4902 2019-07-17 Tom Tromey <tromey@adacore.com>
4904 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4905 do_field_signed>: Rename. Change type of "value".
4906 * ui-out.c (ui_out::field_signed): Rename from field_int.
4907 Change type of "value".
4908 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4910 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4911 do_field_int. Change type of "value".
4912 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4913 do_field_int. Change type of "value".
4914 * tracepoint.c (trace_status_mi, tfind_1)
4915 (print_one_static_tracepoint_marker): Update.
4916 * thread.c (print_thread_info_1, print_selected_thread_frame):
4918 * stack.c (print_frame, print_frame_info): Update.
4919 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4921 * source.c (print_source_lines_base): Update.
4922 * skip.c (info_skip_command): Update.
4923 * record-btrace.c (btrace_ui_out_decode_error)
4924 (btrace_call_history_src_line): Update.
4925 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4927 * progspace.c (print_program_space): Update.
4928 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4929 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4930 do_field_int. Change type of "value".
4931 * mi/mi-out.c (mi_ui_out::do_table_begin)
4932 (mi_ui_out::do_table_header): Update.
4933 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4935 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4936 (mi_cmd_data_list_changed_registers, output_register)
4937 (mi_cmd_data_read_memory, mi_load_progress)
4938 (mi_cmd_trace_frame_collected): Update.
4939 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4941 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4942 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4943 (mi_cmd_var_list_children, varobj_update_one): Update.
4944 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4945 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4946 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4947 * inferior.c (print_inferior): Update.
4948 * gdb_bfd.c (print_one_bfd): Update.
4949 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4951 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4952 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4953 do_field_int. Change type of "value".
4954 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4955 do_field_int. Change type of "value".
4956 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4957 (print_one_breakpoint_location, print_it_catch_fork)
4958 (print_one_catch_fork, print_it_catch_vfork)
4959 (print_one_catch_vfork, print_it_catch_solib)
4960 (print_it_catch_exec, print_it_ranged_breakpoint)
4961 (print_mention_watchpoint, print_mention_masked_watchpoint)
4962 (bkpt_print_it, update_static_tracepoint): Update.
4963 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4964 * break-catch-syscall.c (print_it_catch_syscall): Update.
4965 * ada-tasks.c (print_ada_task_info): Update.
4966 * ada-lang.c (print_it_exception, print_mention_exception):
4969 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4971 PR breakpoints/24541
4972 * gdbarch.c: Regenerate.
4973 * gdbarch.h: Regenerate.
4974 * gdbarch.sh: Adjust return type and parameter types for
4975 'stap_adjust_register'.
4976 (i386_stap_adjust_register): Adjust signature and return new
4978 * stap-probe.c (stap_parse_register_operand): Adjust use of
4979 'gdbarch_stap_adjust_register'.
4981 2019-07-17 Tom Tromey <tromey@adacore.com>
4983 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4985 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4987 (struct s390_process_info): Add initializers.
4988 (s390_add_process): Use new.
4989 (s390_linux_nat_target::low_forget_process): Use delete.
4990 (s390_linux_nat_target::low_new_fork)
4991 (s390_linux_nat_target::stopped_by_watchpoint)
4992 (s390_linux_nat_target::low_prepare_to_resume)
4993 (s390_linux_nat_target::insert_watchpoint)
4994 (s390_linux_nat_target::insert_hw_breakpoint)
4995 (s390_linux_nat_target::remove_watchpoint)
4996 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4998 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5000 * aarch64-fbsd-nat.c: Include regcache.h.
5001 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5003 (aarch64_fbsd_nat_target::fetch_registers)
5004 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5006 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5008 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5010 * fbsd-nat.c: Include gdbarch.h.
5012 2019-07-15 Tom Tromey <tromey@adacore.com>
5014 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5016 2019-07-15 Tom Tromey <tromey@adacore.com>
5018 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5019 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5020 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5021 * cli-out.c (cli_ui_out::do_field_int): New method.
5022 * ui-out.c (ui_out::field_unsigned): New method.
5023 * symfile.c (generic_load): Use field_unsigned.
5024 (print_transfer_performance): Likewise.
5025 * record-btrace.c (ui_out_field_uint): Remove.
5026 (btrace_call_history_insn_range, btrace_call_history): Use
5028 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5030 * ui-out.h (class ui_out) <field_unsigned>: New method.
5031 <do_field_unsigned>: Likewise.
5033 2019-07-15 Tom Tromey <tromey@adacore.com>
5035 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5036 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5037 * target.c (flash_erase_command): Use field_string.
5038 * infrun.c (print_signal_received_reason): Use field_string.
5039 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5040 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5042 * ada-tasks.c (print_ada_task_info): Use field_string.
5044 2019-07-15 Tom Tromey <tromey@adacore.com>
5046 * target.c (flash_erase_command): Use field_core_addr.
5047 * symfile.c (generic_load): Use field_core_addr.
5048 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5049 Use field_core_addr.
5050 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5053 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5055 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5056 value if its desired type is smaller than a CORE_ADDR and signed.
5058 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5060 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5061 of changes to field names, and use new is_reference field to
5062 decide if a property is a reference or not.
5063 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5065 (struct dwarf2_property_baton): Update header comment, rename
5066 'referenced_type' to 'property_type' and update comments.
5067 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5068 default property type, store in property baton, update to take
5069 accound of renamed field.
5070 (read_func_scope): Update call to attr_to_dynamic_prop.
5071 (read_array_type): Likewise.
5072 (dwarf2_per_cu_addr_sized_int_type): New function.
5073 (read_subrange_index_type): Move type finding code to
5074 dwarf2_per_cu_addr_sized_int_type.
5075 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5076 (dwarf2_per_cu_addr_type): New function.
5077 (set_die_type): Update calls to attr_to_dynamic_prop.
5079 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5081 * dwarf2read.c (read_subrange_index_type): New function.
5082 (read_subrange_type): Move code into new function and call it.
5083 * gdbtypes.c (create_range_type): Add some asserts.
5085 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5087 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5088 update return statements.
5089 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5090 declaration, and update comment to match.
5091 * gdbtypes.c (resolve_dynamic_array): Update call to
5092 dwarf2_evaluate_property to match new return type.
5094 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5096 * valarith.c (value_subscripted_rvalue): Change lowerbound
5097 parameter type from int to LONGEST.
5098 * value.h (value_subscripted_rvalue): Likewise in declaration.
5100 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5102 * cli/cli-utils.c (info_print_command_completer): New function.
5103 * cli/cli-utils.h: Add 'completer.h' include, and forward
5104 declaration for 'struct cmd_list_element'.
5105 (info_print_command_completer): Declare.
5106 * stack.c (_initialize_stack): Add completer for 'info locals' and
5108 * symtab.c (_initialize_symtab): Add completer for 'info
5109 variables' and 'info functions'.
5110 * NEWS: Mention completion for additional info commands.
5112 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5114 * cli/cli-utils.c (extract_info_print_args): Delete.
5115 (extract_arg_maybe_quoted): Delete.
5116 (info_print_options_defs): New variable.
5117 (make_info_print_options_def_group): New function.
5118 (extract_info_print_options): Define new function.
5119 * cli/cli-utils.h (extract_info_print_args): Delete.
5120 (struct info_print_options): New structure.
5121 (extract_info_print_options): Declare new function.
5122 * stack.c (info_locals_command): Update to use new
5123 extract_info_print_options, also add a header comment.
5124 (info_args_command): Likewise.
5125 * symtab.c (info_variables_command): Likewise.
5126 (info_functions_command): Likewise.
5128 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5130 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5131 to extract string arguments.
5132 * common/common-utils.c (extract_string_maybe_quoted): New function.
5133 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5135 2019-07-11 Tom Tromey <tromey@adacore.com>
5137 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5138 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5139 * top.h (gdbinit): Don't declare.
5140 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5142 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5143 * top.c (gdb_init): Don't call init_cli_cmds.
5145 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5147 2019-07-11 Tom Tromey <tromey@adacore.com>
5149 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5150 after it has been moved.
5152 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5154 * valops.c (value_must_coerce_to_target): Change return type to
5156 * value.h (value_must_coerce_to_target): Likewise.
5158 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5160 * breakpoint.c (is_hardware_watchpoint): Remove
5161 forward-declaration.
5162 (is_masked_watchpoint): Change return type to bool.
5163 (is_tracepoint): Likewise.
5164 (is_breakpoint): Likewise.
5165 (is_hardware_watchpoint): Likewise.
5166 (is_watchpoint): Likewise.
5167 (is_no_memory_software_watchpoint): Likewise.
5168 (is_catchpoint): Likewise.
5169 (breakpoint_1): Make FILTER parameter's return type bool.
5170 is_masked_watchpoint): Change return type to bool.
5171 (save_breakpoints): Make FILTER parameter's return type bool.
5172 * breakpoint.h (is_breakpoint): Change return type to bool.
5173 (is_watchpoint): Likewise.
5174 (is_catchpoint): Likewise.
5175 (is_tracepoint): Likewise.
5177 2019-07-10 Tom Tromey <tom@tromey.com>
5179 * defs.h: Don't include gdbarch.h.
5180 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5181 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5182 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5183 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5184 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5185 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5186 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5187 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5188 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5189 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5190 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5191 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5192 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5193 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5194 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5195 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5196 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5197 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5198 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5199 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5200 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5201 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5202 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5203 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5204 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5205 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5206 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5208 2019-07-10 Tom Tromey <tromey@adacore.com>
5210 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5211 * breakpoint.c (init_ada_exception_breakpoint): Register as
5213 (print_one_breakpoint_location, print_one_breakpoint): Use
5214 is_ada_exception_catchpoint.
5215 * ada-lang.c (class ada_catchpoint_location): Pass
5216 bp_loc_software_breakpoint to bp_location constructor.
5217 (is_ada_exception_catchpoint): New function.
5219 2019-07-10 Tom Tromey <tromey@adacore.com>
5221 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5223 (struct arm_exidx_entry): New method operator<.
5224 (struct arm_exidx_data) <section_maps>: Change type.
5225 (arm_exidx_data_free): Remove.
5226 (arm_exidx_data_key): Change type. Move lower.
5227 (arm_exidx_new_objfile): Update.
5228 (arm_compare_exidx_entries): Remove.
5229 (arm_find_exidx_entry, _initialize_arm_tdep)
5231 2019-07-10 Tom Tromey <tromey@adacore.com>
5233 * solib-spu.c (ocl_program_data_key): Change type.
5234 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5237 2019-07-10 Tom Tromey <tromey@adacore.com>
5239 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5240 (struct solib_aix_inferior_data) <library_list>: Change type.
5241 (solib_aix_inferior_data_handle): Change type.
5242 (get_solib_aix_inferior_data): Update.
5243 (solib_aix_free_library_list): Remove.
5244 (library_list_start_library): Update.
5245 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5247 (solib_aix_get_library_list)
5248 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5249 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5251 2019-07-10 Tom Tromey <tromey@adacore.com>
5253 * solib-dsbt.c (struct dsbt_info): Add initializers.
5254 (solib_dsbt_pspace_data): Change type.
5255 (dsbt_pspace_data_cleanup): Remove.
5256 (get_dsbt_info, _initialize_dsbt_solib): Update.
5258 2019-07-10 Tom Tromey <tromey@adacore.com>
5260 * spu-tdep.c (spu_overlay_data): Change type.
5261 (spu_get_overlay_table, spu_overlay_new_objfile)
5262 (_initialize_spu_tdep): Update.
5264 2019-07-10 Tom Tromey <tromey@adacore.com>
5266 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5268 (dbx_objfile_data_key): Change type and declare later.
5269 (DBX_SYMFILE_INFO): Rewrite.
5270 * dbxread.c (dbx_objfile_data_key): Change type.
5271 (dbx_symfile_init): Update.
5272 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5273 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5274 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5276 2019-07-10 Tom Tromey <tromey@adacore.com>
5278 * jit.c (jit_program_space_key): Change type. Move lower.
5279 (get_jit_program_space_data): Update.
5280 (jit_program_space_data_cleanup): Remove.
5281 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5283 (struct jit_program_space_data): Add initializers.
5285 2019-07-10 Tom Tromey <tromey@adacore.com>
5287 * solib-darwin.c (struct darwin_info): Add initializers.
5288 (solib_darwin_pspace_data): Change type.
5289 (darwin_pspace_data_cleanup): Remove.
5290 (get_darwin_info, _initialize_darwin_solib): Update.
5292 2019-07-10 Tom Tromey <tromey@adacore.com>
5294 * remote-sim.c (struct sim_inferior_data): Add initializers,
5295 constructor, and destructor.
5296 (sim_inferior_data_key): Change type. Move lower.
5297 (check_for_duplicate_sim_descriptor): Update.
5298 (get_sim_inferior_data): Use new. Update.
5299 (~sim_inferior_data_cleanup): Rename from
5300 sim_inferior_data_cleanup. Simplify.
5301 (gdbsim_close_inferior, simulator_command)
5302 (sim_command_completer, _initialize_remote_sim): Update.
5303 (next_pid, INITIAL_PID): Move earlier.
5305 2019-07-10 Tom Tromey <tromey@adacore.com>
5307 * python/python-internal.h (create_thread_object): Return
5309 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5310 * python/py-inferior.c (struct threadlist_entry): Add
5312 <thread_obj>: Now a gdbpy_ref.
5313 (thread_to_thread_object): Update.
5314 (add_thread_object): Use new.
5315 (delete_thread_object): Use delete.
5316 (infpy_threads): Update.
5317 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5320 2019-07-10 Tom Tromey <tromey@adacore.com>
5322 * valops.c (value_cast): Specialize error message for Ada.
5324 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5326 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5328 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5330 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5331 bpstat_should_step): Return bool, adjust comments.
5332 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5333 bpstat_should_step): Likewise.
5335 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5337 * features/Makefile: Use feature target descriptions for Arm.
5338 * features/arm/arm-core.c: Generate new file.
5339 * features/arm/arm-fpa.c: Likewise.
5340 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5341 * features/arm/arm-m-profile.c: Likewise.
5342 * features/arm/arm-vfpv2.c: Likewise.
5343 * features/arm/arm-vfpv3.c: Likewise.
5344 * features/arm/xscale-iwmmxt.c: Likewise.
5345 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5347 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5349 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5352 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5354 * features/aarch64-pauth.c: Regenerate.
5356 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5358 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5360 (bpstat_what): Use false instead of 0.
5362 2019-07-09 Pedro Alves <palves@redhat.com>
5364 * break-catch-throw.c (is_exception_catchpoint): New.
5365 * breakpoint.c (print_one_breakpoint_location): New parameter
5366 'raw_loc'. Handle it. Use
5367 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5368 looking at the breakpoint's type.
5369 (print_one_breakpoint): If handling "maint info breakpoints", also
5370 print locations of exception catchpoints.
5371 * breakpoint.h (is_exception_catchpoint): Declare.
5373 2019-07-09 Pedro Alves <palves@redhat.com>
5375 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5377 (allocate_location_exception_catchpoint): New.
5378 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5379 (initialize_throw_catchpoint_ops): Install
5380 allocate_location_exception_catchpoint as allocate_location
5382 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5383 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5385 (breakpoint_address_is_meaningful): Delete.
5386 (bl_address_is_meaningful): New.
5387 (breakpoint_locations_match): Adjust comment.
5388 (bp_location_from_bp_type): New, factored out of...
5389 (bp_location::bp_location(breakpoint *)): ... this.
5390 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5392 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5393 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5394 breakpoint_address_is_meaningful.
5395 (bp_locations_compare): Adjust comment.
5396 (update_global_location_list): Use bl_address_is_meaningful
5397 instead of breakpoint_address_is_meaningful.
5398 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5400 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5401 * python/py-breakpoint.c (bppy_get_location): No longer check
5402 whether location is null.
5404 2019-07-09 Pedro Alves <palves@redhat.com>
5407 * breakpoint.c (print_one_breakpoint_location): Remove
5408 single-location assert.
5410 2019-07-09 Tom Tromey <tom@tromey.com>
5412 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5413 * configure: Rebuild.
5414 * configure.ac: Change common to gdbsupport.
5415 * gdbsupport: Rename from common.
5416 * acinclude.m4: Change common to gdbsupport.
5417 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5418 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5420 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5421 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5422 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5423 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5424 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5425 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5426 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5427 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5428 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5429 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5430 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5431 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5432 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5433 coff-pe-read.c, command.h, compile/compile-c-support.c,
5434 compile/compile-c.h, compile/compile-cplus-symbols.c,
5435 compile/compile-cplus-types.c, compile/compile-cplus.h,
5436 compile/compile-loc2c.c, compile/compile.c, completer.c,
5437 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5438 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5439 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5440 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5441 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5442 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5443 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5444 features/aarch64-core.c, features/aarch64-fpu.c,
5445 features/aarch64-pauth.c, features/aarch64-sve.c,
5446 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5447 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5448 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5449 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5450 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5451 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5452 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5453 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5454 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5455 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5456 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5457 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5458 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5459 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5460 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5461 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5462 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5463 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5464 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5465 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5466 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5467 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5468 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5469 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5470 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5471 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5472 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5473 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5474 minsyms.c, mips-linux-tdep.c, namespace.h,
5475 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5476 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5477 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5478 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5479 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5480 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5481 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5482 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5483 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5484 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5485 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5486 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5487 procfs.c, producer.c, progspace.h, psymtab.h,
5488 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5489 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5490 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5491 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5492 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5493 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5494 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5495 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5496 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5497 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5498 target-memory.c, target.c, target.h, target/waitstatus.c,
5499 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5500 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5501 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5502 unittests/array-view-selftests.c,
5503 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5504 unittests/common-utils-selftests.c,
5505 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5506 unittests/format_pieces-selftests.c,
5507 unittests/function-view-selftests.c,
5508 unittests/lookup_name_info-selftests.c,
5509 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5510 unittests/mkdir-recursive-selftests.c,
5511 unittests/observable-selftests.c,
5512 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5513 unittests/parse-connection-spec-selftests.c,
5514 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5515 unittests/scoped_fd-selftests.c,
5516 unittests/scoped_mmap-selftests.c,
5517 unittests/scoped_restore-selftests.c,
5518 unittests/string_view-selftests.c, unittests/style-selftests.c,
5519 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5520 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5521 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5522 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5523 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5524 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5526 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5528 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5530 (decode_digits_ordinary): Set explicit_line field in sal.
5531 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5532 symtab_and_line that was set on an explicit line number in
5533 assembler code. Do always update the recorded symtab and line if
5534 we do skip the prologue.
5536 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5538 * breakpoint.c (set_breakpoint_location_function): Remove
5539 explicit_loc parameter.
5540 (momentary_breakpoint_from_master): Update call to
5541 set_breakpoint_location_function.
5542 (add_location_to_breakpoint): Likewise.
5544 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5546 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5547 required features based on default bfd type when no specific bfd
5550 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5552 * NEWS: Mention that GDB printf and eval commands can now print
5553 C-style and Ada-style convenience var strings without
5554 calling the inferior.
5555 * printcmd.c (printf_c_string): Locally print GDB internal var
5556 instead of transiting via the inferior.
5557 (printf_wide_c_string): Likewise.
5559 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5561 PR breakpoints/25011
5562 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5564 2019-07-04 Tom Tromey <tom@tromey.com>
5567 * tui/tui-winsource.c (tui_clear_source_content): Update.
5568 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5569 (tui_update_breakpoint_info): Update.
5570 (tui_set_exec_info_content): Update.
5571 * tui/tui-source.c (tui_set_source_content_nil): Update.
5572 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5574 * tui/tui-data.h (enum tui_bp_flag): New.
5575 (tui_bp_flags): New enum flags type.
5576 (struct tui_source_element) <break_mode>: Change type. Rename
5578 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5579 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5581 * tui/tui-winsource.h: Fix comment.
5583 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5585 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5586 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5587 (store_fpregs_to_thread)
5588 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5589 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5590 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5591 (IWMMXT_REGS_SIZE): Add define.
5592 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5593 (fetch_vfp_regs, store_vfp_regs)
5594 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5595 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5597 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5599 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5601 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5602 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5603 (ARM_INT_REGISTER_SIZE): ...to this.
5604 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5605 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5606 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5607 (arm_linux_collect_gregset, supply_nwfpe_register)
5608 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5610 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5611 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5612 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5613 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5614 (arm_return_in_memory, arm_store_return_value)
5615 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5616 (arm_record_ld_st_multiple): Likewise.
5617 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5618 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5620 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5622 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5623 AARCH64_DISPLACED_MODIFIED_INSNS.
5624 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5625 (aarch64_displaced_step_copy_insn): Likewise.
5626 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5627 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5628 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5629 ARM_DISPLACED_MODIFIED_INSNS.
5630 * arm-tdep.c (arm_gdbarch_init): Likewise.
5631 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5632 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5633 (struct arm_displaced_step_closure): Use
5634 ARM_DISPLACED_MODIFIED_INSNS.
5636 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5638 * features/Makefile: Remove unused xml files.
5639 * features/aarch64.xml: Remove.
5640 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5641 * features/i386/amd64-avx-avx512.xml: Remove.
5642 * features/i386/amd64-avx-linux.xml: Remove.
5643 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5644 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5645 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5646 * features/i386/amd64-avx-mpx.xml: Remove.
5647 * features/i386/amd64-avx.xml: Remove.
5648 * features/i386/amd64-linux.xml: Remove.
5649 * features/i386/amd64-mpx-linux.xml: Remove.
5650 * features/i386/amd64-mpx.xml: Remove.
5651 * features/i386/amd64.xml: Remove.
5652 * features/i386/i386-avx-avx512-linux.xml: Remove.
5653 * features/i386/i386-avx-avx512.xml: Remove.
5654 * features/i386/i386-avx-linux.xml: Remove.
5655 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5656 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5657 * features/i386/i386-avx-mpx-linux.xml: Remove.
5658 * features/i386/i386-avx-mpx.xml: Remove.
5659 * features/i386/i386-avx.xml: Remove.
5660 * features/i386/i386-linux.xml: Remove.
5661 * features/i386/i386-mmx-linux.xml: Remove.
5662 * features/i386/i386-mmx.xml: Remove.
5663 * features/i386/i386-mpx-linux.xml: Remove.
5664 * features/i386/i386-mpx.xml: Remove.
5665 * features/i386/i386.xml: Remove.
5666 * features/i386/x32-avx-avx512-linux.xml: Remove.
5667 * features/i386/x32-avx-linux.xml: Remove.
5668 * features/i386/x32-linux.xml: Remove.
5670 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5672 * regformats/aarch64.dat: Remove.
5673 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5674 * regformats/i386/amd64-avx-linux.dat: Remove.
5675 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5676 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5677 * regformats/i386/amd64-linux.dat: Remove.
5678 * regformats/i386/amd64-mpx-linux.dat: Remove.
5679 * regformats/i386/amd64.dat: Remove.
5680 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5681 * regformats/i386/i386-avx-linux.dat: Remove.
5682 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5683 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5684 * regformats/i386/i386-linux.dat: Remove.
5685 * regformats/i386/i386-mmx-linux.dat: Remove.
5686 * regformats/i386/i386-mpx-linux.dat: Remove.
5687 * regformats/i386/i386.dat: Remove.
5688 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5689 * regformats/i386/x32-avx-linux.dat: Remove.
5690 * regformats/i386/x32-linux.dat: Remove.
5692 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5694 * aarch64-tdep.c: Remove xml self tests.
5695 * amd64-linux-tdep.c: Likewise.
5696 * amd64-tdep.c: Likewise.
5697 * i386-linux-tdep.c: Likewise.
5698 * i386-tdep.c: Likewise.
5700 2019-07-03 Pedro Alves <palves@redhat.com>
5703 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5704 (pipe_cmd_option_defs): New.
5705 (make_pipe_cmd_options_def_group): New.
5706 (pipe_command): Use gdb::option::process_options.
5707 (pipe_command_completer): New function.
5708 (_initialize_cli_cmds): Install completer for "pipe" command.
5710 2019-07-03 Pedro Alves <palves@redhat.com>
5712 * cli/cli-option.c (union option_value) <string>: New field.
5713 (struct option_def_and_value): Add ctor, move ctor, dtor and
5714 use DISABLE_COPY_AND_ASSIGN.
5715 (option_def_and_value::clear_value): New.
5716 (parse_option, save_option_value_in_ctx, get_val_type_str)
5717 (add_setshow_cmds_for_options): Handle var_string.
5718 * cli-option.h (union option_def::var_address) <string>: New
5720 (struct string_option_def): New.
5721 * maint-test-options.c (struct test_options_opts): Add default
5722 ctor and use DISABLE_COPY_AND_ASSIGN.
5723 <string_opt>: New field.
5724 (test_options_opts::~test_options_opts): New.
5725 (test_options_opts::dump): Also dump "-string".
5726 (test_options_option_defs): Install "string.
5728 2019-07-03 Pedro Alves <palves@redhat.com>
5730 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5731 option_value with a null enumeration.
5732 (complete_options): Save the option values in the context.
5733 (save_option_value_in_ctx): New, factored out from ...
5734 (process_options): ... here.
5735 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5737 * maint-test-options.c (test_options_opts::dump): New, factored
5739 (maintenance_test_options_command_mode): ... here.
5740 (maintenance_test_options_command_completion_result): Delete.
5741 (maintenance_test_options_command_completion_text): Update
5743 (maintenance_show_test_options_completion_result): Change
5744 prototype. Just print
5745 maintenance_test_options_command_completion_text.
5746 (save_completion_result): New.
5747 (maintenance_test_options_completer_mode): Pass options context to
5748 complete_options, and then save a dump.
5749 (_initialize_maint_test_options): Use add_cmd to install "maint
5750 show test-options-completion-result".
5752 2019-07-03 Pedro Alves <palves@redhat.com>
5754 * NEWS (New commands): Mention "with" and "maint with".
5755 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5756 (with_command, with_command_completer): New.
5757 (pipe_command): Adjust to new repeat_previous
5759 (_initialize_cli_cmds): Install the "with" command and its "w"
5761 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5763 * cli/cli-setshow.c (parse_cli_var_uinteger)
5764 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5765 argument strings for all var_types.
5766 (get_setshow_command_value_string): New, factored out from ...
5767 (do_show_command): ... this.
5768 * cli/cli-setshow.h: Include <string>.
5769 (get_setshow_command_value_string): Declare.
5770 * command.h (repeat_previous): Now returns const char *. Adjust
5772 * maint.c: Include "cli/cli-cmds.h".
5773 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5774 (_initialize_maint_cmds): Register the "maintenance with" command.
5775 * top.c (repeat_previous): Move bits from pipe_command here:
5776 Return the saved command line, if any; error out if there's no
5777 command to relaunch.
5779 2019-07-03 Pedro Alves <palves@redhat.com>
5781 * NEWS (New commands): Mention "maint set/show test-settings"
5782 instead of "maint test-settings".
5783 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5784 (maintenance_test_settings_set_list): Rename to ...
5785 (maintenance_set_test_settings_list): ... this.
5786 (maintenance_test_settings_show_list): Rename to ...
5787 (maintenance_show_test_settings_list): ... this.
5788 (maintenance_test_settings_cmd): Delete.
5789 (maintenance_test_settings_set_cmd): ...
5790 (maintenance_set_test_settings_cmd): ... this.
5791 (maintenance_test_settings_show_cmd): ...
5792 (maintenance_show_test_settings_cmd): ... this.
5793 (maintenance_test_settings_show_value_cmd):
5794 (maintenance_show_test_settings_value_cmd): ... this.
5795 (_initialize_maint_test_settings): No longer install the "maint
5796 test-settings" prefix command. Rename "maint test-settings set"
5797 to "maint set test-settings", and "maint test-settings show" to
5798 "maint show test-settings". Adjust all subcommands.
5800 2019-07-03 Pedro Alves <palves@redhat.com>
5802 * maint-test-settings.c: Fix file's intro comment. Replace all
5803 references to "test-options" with references to "test-settings",
5806 2019-07-03 Pedro Alves <palves@redhat.com>
5808 * maint-test-settings.c (maintenance_test_settings_xxx)
5809 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5811 (maintenance_test_settings_enums): Use them.
5812 (maintenance_test_settings_enum): Default to
5813 maintenance_test_settings_xxx.
5814 (_initialize_maint_test_settings): Initialize
5815 MAINTENANCE_TEST_SETTINGS_FILENAME.
5817 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5819 * breakpoint.h (remove_breakpoints_inf): Change return type to
5820 void, move function documentation here.
5821 * breakpoint.c (remove_breakpoints_inf): Change return type to
5822 void, move function documentation to header.
5824 2019-07-02 Pedro Alves <palves@redhat.com>
5826 * NEWS (Completion improvements): Mention "info threads".
5827 * thread.c (struct info_threads_opts, info_threads_option_defs)
5828 (make_info_threads_options_def_group): New.
5829 (info_threads_command): Use gdb::option::process_options.
5830 (info_threads_command_completer): New.
5831 (_initialize_thread): Use gdb::option::build_help to build the
5832 help text for "info threads".
5834 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5836 * defs.h (generic_load): Move from here...
5837 * symfile.h (generic_load): ... to here. Rename name parameter
5839 * symfile.c (generic_load): Add comment.
5841 2019-07-01 Tom Tromey <tromey@adacore.com>
5844 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5845 declaration of without_params. Fix formatting.
5847 2019-07-01 Tom Tromey <tromey@adacore.com>
5849 * ada-exp.y (find_primitive_type): Update.
5850 * ada-lang.h (ada_lookup_symbol): Update.
5851 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5853 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5855 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5857 PR breakpoints/24541
5858 * gdbarch.c: Regenerate.
5859 * gdbarch.h: Regenerate.
5860 * gdbarch.sh: Add 'stap_adjust_register'.
5861 * i386-tdep.c: Include '<unordered_set>'.
5862 (i386_stap_adjust_register): New function.
5863 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5864 * stap-probe.c (stap_parse_register_operand): Call
5865 'gdbarch_stap_adjust_register'.
5867 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5870 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5871 * python/python.c (do_start_initialization): Use 'xmalloc'
5872 instead of 'PyMem_Malloc'.
5874 2019-06-28 Tom Tromey <tromey@adacore.com>
5876 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5879 2019-06-27 Tom Tromey <tromey@adacore.com>
5881 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5883 (arm_find_mapping_symbol, arm_record_special_symbol)
5884 (_initialize_arm_tdep): Update.
5885 (arm_objfile_data_free): Remove.
5887 2019-06-27 Tom Tromey <tromey@adacore.com>
5889 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5890 to cp_print_static_field.
5892 2019-06-26 Tom Tromey <tromey@adacore.com>
5894 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5895 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5898 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5900 * features/aarch64-core.c (create_feature_aarch64_core):
5902 * features/aarch64-core.xml: Add cpsr flags.
5904 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5906 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5907 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5909 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5911 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5913 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5915 (arm_record_special_symbol): Don't insert new symbol in sorted
5916 position, push it at the end.
5918 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5920 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5921 (arm_mapping_symbol_s): Remove.
5922 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5923 (arm_mapping_symbol_vec): New typedef.
5924 (struct arm_per_objfile): Add constructor.
5925 <section_maps>: Change type to
5926 std::unique_ptr<arm_mapping_symbol_vec[]>.
5927 (arm_compare_mapping_symbols): Remove.
5928 (arm_find_mapping_symbol): Adjust to section_maps type change.
5929 (arm_objfile_data_free): Call delete on arm_per_objfile.
5930 (arm_record_special_symbol): Adjust to section_maps type change.
5931 Allocate arm_per_objfile with new.
5933 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5935 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5936 with the command prefix.
5938 2019-06-25 Tom Tromey <tom@tromey.com>
5940 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5941 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5943 2019-06-25 Tom Tromey <tom@tromey.com>
5945 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5947 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5950 2019-06-25 Tom Tromey <tom@tromey.com>
5952 * tui/tui-winsource.c
5953 (tui_source_window_base::set_is_exec_point_at): Add check against
5956 2019-06-25 Tom Tromey <tom@tromey.com>
5958 * tui/tui-source.c (tui_set_source_content): Don't check before
5960 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5962 2019-06-25 Tom Tromey <tom@tromey.com>
5964 * tui/tui-winsource.h (tui_update_source_window_as_is)
5965 (tui_alloc_source_buffer, tui_line_is_displayed)
5966 (tui_addr_is_displayed): Change type of win_info.
5967 * tui/tui-winsource.c (tui_update_source_window_as_is)
5968 (tui_clear_source_content, tui_show_source_line)
5969 (tui_show_source_content, tui_source_window_base::refill)
5970 (tui_source_window_base::set_is_exec_point_at)
5971 (tui_source_window_base::set_is_exec_point_at)
5972 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5973 (tui_alloc_source_buffer, tui_line_is_displayed)
5974 (tui_addr_is_displayed): Change type of win_info. Update.
5975 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5976 (tui_source_window_base::do_make_visible_with_new_height):
5978 * tui/tui-source.c (tui_set_source_content)
5979 (tui_set_source_content_nil)
5980 (tui_source_window::do_scroll_vertical): Update.
5981 * tui/tui-layout.c (show_layout): Update.
5982 * tui/tui-disasm.c (tui_set_disassem_content)
5983 (tui_disasm_window::do_scroll_vertical): Update.
5984 * tui/tui-data.h (tui_win_content): Remove.
5985 (struct tui_gen_win_info) <content, content_size>: Remove.
5986 (struct tui_source_element): Add initializers and destructor.
5987 (union tui_which_element, struct tui_win_element): Remove.
5988 (struct tui_source_window_base) <content>: New field.
5989 (struct tui_data_window): Remove destructor.
5990 (tui_alloc_content, tui_free_win_content)
5991 (tui_free_all_source_wins_content): Don't declare.
5992 * tui/tui-data.c (tui_initialize_static_data): Update.
5993 (init_content_element, tui_alloc_content): Remove.
5994 (~tui_gen_win_info): Update.
5995 (~tui_data_window, tui_free_all_source_wins_content)
5996 (tui_free_win_content, free_content, free_content_elements):
5999 2019-06-25 Tom Tromey <tom@tromey.com>
6001 * tui/tui-winsource.h (tui_clear_source_content)
6002 (tui_erase_source_content, tui_show_source_content): Change type
6004 * tui/tui-winsource.c (tui_clear_source_content)
6005 (tui_erase_source_content, tui_show_source_content): Change type
6007 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6008 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6010 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6012 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6014 2019-06-25 Tom Tromey <tom@tromey.com>
6016 * tui/tui-winsource.c (tui_clear_source_content)
6017 (tui_source_window_base::set_is_exec_point_at): Update.
6018 * tui/tui-source.c (tui_set_source_content_nil): Update.
6019 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6021 * tui/tui-data.c (init_content_element): Update.
6023 2019-06-25 Tom Tromey <tom@tromey.com>
6025 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6026 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6027 * tui/tui-layout.c (init_and_make_win): Update.
6028 * tui/tui.h (enum tui_win_type): Update.
6029 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6030 tui_win_is_auxillary.
6031 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6032 tui_win_is_auxillary.
6034 2019-06-25 Tom Tromey <tom@tromey.com>
6036 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6037 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6038 (tui_delete_data_content_windows, tui_display_all_data)
6039 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6041 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6042 * tui/tui-regs.c (tui_last_regs_line_no)
6043 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6044 (tui_show_registers): Update.
6045 (tui_show_register_group): Return void. Update.
6046 (tui_display_registers_from, tui_display_reg_element_at_line)
6047 (tui_display_registers_from_line, tui_check_register_values):
6049 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6051 (struct tui_data_window) <regs_content>: Now a std::vector.
6052 <regs_content_count>: Remove.
6053 (tui_add_content_elements, tui_free_data_content): Don't declare.
6054 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6055 (init_content_element): Remove DATA_WIN case. Add assert.
6056 (tui_add_content_elements): Remove.
6057 (tui_data_window): Update.
6058 (tui_free_data_content): Remove.
6059 (free_content_elements): Remove DATA_WIN case.
6061 2019-06-25 Tom Tromey <tom@tromey.com>
6063 * tui/tui-data.c (tui_data_item_window): Update.
6064 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6065 * tui/tui-windata.c (tui_display_all_data)
6066 (tui_display_data_from_line): Update.
6067 (tui_check_data_values): Remove.
6068 * tui/tui-regs.c (tui_show_register_group)
6069 (tui_display_reg_element_at_line): Update.
6070 * tui/tui-hooks.c (tui_register_changed)
6071 (tui_refresh_frame_and_register_information): Call
6072 tui_check_register_values.
6073 * tui/tui-data.h (struct tui_data_window) <data_content,
6074 data_content_count, data_type>: Remove.
6075 (enum tui_data_type): Remove.
6077 * tui/tui-data.c (tui_data_window::clear_detail)
6078 (~tui_data_window): Update.
6080 2019-06-25 Tom Tromey <tom@tromey.com>
6082 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6084 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6085 Rename from tui_first_data_item_displayed. Update.
6086 (tui_data_window::refresh_all)
6087 (tui_data_window::do_scroll_vertical): Update.
6088 * tui/tui-data.h (struct tui_data_window)
6089 <first_data_item_displayed>: Declare new method.
6091 2019-06-25 Tom Tromey <tom@tromey.com>
6093 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6094 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6096 (tui_initialize_static_data): ...here.
6098 2019-06-25 Tom Tromey <tom@tromey.com>
6100 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6101 (tui_display_registers_from, tui_check_register_values): Update.
6102 (tui_display_register): Remove win_info parameter; update.
6103 (tui_get_register): Change type of parameters.
6104 * tui/tui-data.h (struct tui_data_element): Remove.
6105 (union tui_which_element) <data>: Remove.
6106 <data_window>: Change type.
6107 (struct tui_data_item_window): New.
6108 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6110 (~tui_data_item_window): New destructor.
6111 (free_content_elements): Remove DATA_ITEM_WIN case.
6113 2019-06-25 Tom Tromey <tom@tromey.com>
6115 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6118 2019-06-25 Tom Tromey <tom@tromey.com>
6120 * tui/tui-data.h (struct tui_command_element): Remove.
6121 (union tui_which_element) <command>: Remove.
6122 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6124 (free_content_elements): Remove CMD_WIN case.
6126 2019-06-25 Tom Tromey <tom@tromey.com>
6128 * tui/tui-layout.c (tui_set_layout): Update.
6129 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6130 * tui/tui-data.c (layout_def): Update.
6132 2019-06-25 Tom Tromey <tom@tromey.com>
6134 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6135 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6136 (tui_source_window_base::set_new_height): Update.
6137 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6139 (tui_set_locator_fullname, tui_set_locator_info)
6140 (tui_show_frame_info): Update.
6141 * tui/tui-source.c (tui_set_source_content)
6142 (tui_source_is_displayed): Update.
6143 * tui/tui-layout.c (show_source_disasm_command, show_data)
6144 (show_source_or_disasm_and_command): Update.
6145 * tui/tui-disasm.c (tui_set_disassem_content)
6146 (tui_get_begin_asm_address): Update.
6147 * tui/tui-data.h (struct tui_locator_element): Remove.
6148 (union tui_which_element) <locator>: Remove.
6149 (struct tui_locator_window): New.
6150 (tui_locator_win_info_ptr): Change return type.
6151 * tui/tui-data.c (_locator): Change type.
6152 (tui_locator_win_info_ptr): Change return type.
6153 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6154 (tui_alloc_content): Add assert.
6156 2019-06-25 Tom Tromey <tom@tromey.com>
6158 * tui/tui-winsource.c
6159 (tui_exec_info_window::maybe_allocate_content): New method.
6160 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6161 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6162 (make_source_or_disasm_window): Add cast.
6163 * tui/tui-data.h (union tui_which_element) <simple_string>:
6165 (struct tui_source_info): New.
6166 (struct tui_source_window_base) <execution_info>: Change type.
6167 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6168 case, and add assert.
6169 (tui_alloc_content): Add assert.
6171 2019-06-25 Tom Tromey <tom@tromey.com>
6173 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6174 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6175 * tui/tui-data.c (tui_alloc_win_info): Remove.
6177 2019-06-25 Tom Tromey <tom@tromey.com>
6179 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6180 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6183 2019-06-25 Tom Tromey <tom@tromey.com>
6185 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6186 make_visible_with_new_height method.
6187 (tui_win_info::make_visible_with_new_height): New method.
6188 (tui_source_window_base::do_make_visible_with_new_height)
6189 (tui_data_window::do_make_visible_with_new_height)
6190 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6191 (make_visible_with_new_height): Remove.
6192 (tui_resize_all, tui_adjust_win_heights): Use
6193 make_visible_with_new_height method.
6194 * tui/tui-data.h (struct tui_win_info)
6195 <do_make_visible_with_new_height, make_visible_with_new_height>:
6197 (struct tui_source_window_base, struct tui_data_window)
6198 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6201 2019-06-25 Tom Tromey <tom@tromey.com>
6203 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6205 (update_tab_width): Call update_tab_width method.
6206 * tui/tui-data.h (struct tui_win_info)
6207 (struct tui_source_window_base) <update_tab_width>: New methods.
6209 2019-06-25 Tom Tromey <tom@tromey.com>
6211 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6213 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6215 (tui_gen_win_info::make_visible): Update.
6216 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6218 * tui/tui-data.h (enum tui_box): New enum.
6219 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6221 2019-06-25 Tom Tromey <tom@tromey.com>
6223 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6224 init_and_make_win for EXEC_INFO_WIN.
6225 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6227 (struct tui_win_info) <~tui_win_info>: Inline.
6228 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6230 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6231 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6233 (tui_initialize_static_data): Update.
6234 (~tui_gen_win_info): Handle more cleanup here.
6235 (~tui_source_window_base): Delete "execution_info".
6236 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6238 2019-06-25 Tom Tromey <tom@tromey.com>
6240 * tui/tui-layout.c (make_command_window): Don't set
6242 (show_source_disasm_command): Call the reset method.
6243 (show_data): Don't set can_highlight. Call the reset method.
6244 (tui_gen_win_info::reset): Rename from init_gen_win_info
6245 (init_and_make_win): Simplify. Return tui_gen_win_info.
6246 (show_source_or_disasm_and_command): Call the reset method.
6247 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6248 (struct tui_cmd_window): Set can_highlight.
6250 2019-06-25 Tom Tromey <tom@tromey.com>
6252 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6254 (tui_make_visible, tui_make_invisible): Rewrite.
6255 (tui_win_info::make_visible): Remove.
6256 (tui_source_window_base::make_visible): Update.
6257 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6258 method. Moved from...
6259 (struct tui_win_info) <make_visible>: ...here.
6261 2019-06-25 Tom Tromey <tom@tromey.com>
6263 * tui/tui-winsource.c
6264 (tui_source_window_base::do_scroll_horizontal): Remove direction
6266 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6267 direction parameter.
6268 * tui/tui-win.c (tui_win_info::forward_scroll)
6269 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6270 (tui_win_info::right_scroll): Update.
6271 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6272 direction parameter.
6273 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6274 direction parameter.
6275 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6276 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6277 Remove direction parameter.
6278 (struct tui_source_window_base, struct tui_source_window)
6279 (struct tui_disasm_window, struct tui_data_window)
6280 (struct tui_cmd_window): Update.
6282 2019-06-25 Tom Tromey <tom@tromey.com>
6284 * tui/tui-winsource.h (tui_set_exec_info_content)
6285 (tui_show_exec_info_content, tui_erase_exec_info_content)
6286 (tui_clear_exec_info_content, tui_update_exec_info): Change
6287 argument to tui_source_window_base.
6288 * tui/tui-winsource.c (tui_set_exec_info_content)
6289 (tui_show_exec_info_content, tui_erase_exec_info_content)
6290 (tui_clear_exec_info_content, tui_update_exec_info): Change
6291 argument to tui_source_window_base.
6293 2019-06-25 Tom Tromey <tom@tromey.com>
6295 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6296 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6298 2019-06-25 Tom Tromey <tom@tromey.com>
6300 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6303 2019-06-25 Tom Tromey <tom@tromey.com>
6305 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6307 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6309 * tui/tui-source.c (tui_set_source_content): Update.
6310 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6312 2019-06-25 Tom Tromey <tom@tromey.com>
6314 * tui/tui-win.c (window_name_completer, tui_set_focus)
6315 (tui_all_windows_info): Use name method.
6316 * tui/tui-data.h (struct tui_gen_win_info)
6317 (struct tui_source_window, struct tui_disasm_window)
6318 (struct tui_data_window, struct tui_cmd_window) <name>: New
6320 (tui_win_name): Don't declare.
6321 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6322 (tui_win_name): Remove.
6324 2019-06-25 Tom Tromey <tom@tromey.com>
6326 * tui/tui-winsource.h (tui_update_source_window)
6327 (tui_update_source_window_as_is): Change parameter type.
6328 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6329 to be a tui_source_window_base.
6330 (tui_update_source_window_as_is): Likewise.
6331 * tui/tui-win.c (make_visible_with_new_height): Update.
6333 2019-06-25 Tom Tromey <tom@tromey.com>
6335 * tui/tui-winsource.c (tui_erase_source_content)
6336 (tui_show_source_content, tui_show_exec_info_content)
6337 (tui_erase_exec_info_content): Use refresh_window method.
6338 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6339 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6340 from tui_refresh_win.
6341 (tui_data_window::refresh_window): New method.
6342 (tui_win_info::refresh, tui_source_window_base::refresh)
6343 (tui_refresh_all): Use refresh_window method.
6344 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6346 * tui/tui-regs.c (tui_display_register): Call refresh_window
6348 * tui/tui-layout.c (show_source_disasm_command)
6349 (show_source_or_disasm_and_command): Call refresh_window method.
6350 * tui/tui-data.h (struct tui_gen_win_info)
6351 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6354 2019-06-25 Tom Tromey <tom@tromey.com>
6356 * tui/tui.c (tui_rl_other_window, tui_enable)
6357 (tui_is_window_visible, tui_get_command_dimension): Update.
6358 * tui/tui-winsource.c (tui_update_source_window_as_is)
6359 (tui_clear_source_content, tui_erase_source_content)
6360 (tui_show_source_line, tui_source_window_base::refill)
6361 (tui_source_window_base::do_scroll_horizontal)
6362 (tui_source_window_base::set_is_exec_point_at)
6363 (tui_update_breakpoint_info, tui_set_exec_info_content)
6364 (tui_alloc_source_buffer, tui_line_is_displayed)
6365 (tui_addr_is_displayed): Update.
6366 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6367 (tui_check_and_display_highlight_if_needed)
6368 (tui_win_info::make_visible, tui_win_info::refresh)
6369 (tui_refresh_all): Update.
6370 * tui/tui-windata.c (tui_first_data_item_displayed)
6371 (tui_delete_data_content_windows, tui_erase_data_content)
6372 (tui_display_all_data, tui_data_window::refresh_all)
6373 (tui_check_data_values): Update.
6374 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6375 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6376 (tui_win_info::backward_scroll, tui_refresh_all_win)
6377 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6378 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6379 (tui_source_window_base::set_new_height)
6380 (tui_data_window::set_new_height)
6381 (make_invisible_and_set_new_height)
6382 (make_visible_with_new_height, new_height_ok)
6383 (parse_scrolling_args): Update.
6384 * tui/tui-stack.c (tui_show_frame_info): Update.
6385 * tui/tui-source.c (tui_set_source_content)
6386 (tui_set_source_content_nil, tui_source_is_displayed)
6387 (tui_source_window::do_scroll_vertical): Update.
6388 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6389 (tui_display_registers_from, tui_display_reg_element_at_line)
6390 (tui_check_register_values, tui_reg_command): Update.
6391 * tui/tui-layout.c (tui_default_win_height)
6392 (show_source_disasm_command, show_data, init_and_make_win)
6393 (show_source_or_disasm_and_command): Update.
6394 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6395 (tui_redisplay_readline, tui_mld_flush)
6396 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6398 * tui/tui-disasm.c (tui_set_disassem_content)
6399 (tui_disasm_window::do_scroll_vertical): Update.
6400 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6402 (struct tui_win_info): Derive from tui_gen_win_info.
6403 <~tui_win_info>: Mark as override.
6404 <generic>: Remove member.
6405 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6406 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6407 (~tui_data_window, ~tui_win_info)
6408 (tui_free_all_source_wins_content): Update.
6409 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6411 2019-06-25 Tom Tromey <tom@tromey.com>
6413 * tui/tui-layout.c (init_and_make_win): Use new.
6414 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6415 destructor, initializers.
6416 (tui_alloc_generic_win_info): Don't declare.
6417 * tui/tui-data.c (_locator): Add argument to constructor.
6418 (source_win, disasm_win): New globals.
6419 (exec_info): Remove.
6420 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6422 (tui_alloc_generic_win_info): Remove.
6423 (init_content_element): Use new.
6424 (tui_win_info::tui_win_info): Update.
6425 (free_content_elements) <case DATA_WIN>: Use delete.
6427 2019-06-25 Tom Tromey <tom@tromey.com>
6429 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6430 * tui/tui-windata.c (tui_first_data_item_displayed)
6431 (tui_delete_data_content_windows): Update.
6432 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6433 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6434 (tui_display_registers_from, tui_check_register_values): Update.
6435 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6437 * tui/tui-data.c (init_content_element): Update. Allocate the new
6439 (tui_free_data_content): Update.
6440 (free_content_elements) <case DATA_WIN>: Free the window.
6442 2019-06-25 Tom Tromey <tom@tromey.com>
6444 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6446 * tui/tui-layout.c (make_command_window)
6447 (show_source_disasm_command, show_data, init_and_make_win)
6448 (show_source_or_disasm_and_command): Update.
6449 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6451 <can_highight, is_highlighted>: Now bool.
6452 (tui_set_win_highlight): Don't declare.
6453 * tui/tui-data.c (tui_set_win_highlight): Remove.
6455 2019-06-25 Tom Tromey <tom@tromey.com>
6457 * tui/tui-wingeneral.c (make_visible): Remove check of window
6460 2019-06-25 Tom Tromey <tom@tromey.com>
6462 * tui/tui-win.c (tui_win_info::max_height)
6463 (tui_cmd_window::max_height): New methods.
6464 (new_height_ok): Call max_height.
6465 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6466 <max_height>: New method.
6468 2019-06-25 Tom Tromey <tom@tromey.com>
6470 * tui/tui-win.c (tui_source_window_base::set_new_height)
6471 (tui_data_window::set_new_height): New methods.
6472 (make_invisible_and_set_new_height): Call set_new_height method.
6473 * tui/tui-data.h (struct tui_win_info)
6474 (struct tui_source_window_base, struct tui_data_window)
6475 <set_new_height>: New method.
6477 2019-06-25 Tom Tromey <tom@tromey.com>
6479 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6480 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6481 tui_refresh_data_win.
6482 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6484 (tui_refresh_all_win): Call the refresh_all method.
6485 (tui_set_focus): Likewise.
6486 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6487 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6490 2019-06-25 Tom Tromey <tom@tromey.com>
6492 * tui/tui-winsource.h (tui_refill_source_window)
6493 (tui_set_is_exec_point_at): Don't declare.
6494 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6495 (tui_source_window_base::refill): Rename from
6496 tui_refill_source_window.
6497 (tui_source_window_base::do_scroll_horizontal): Update.
6498 (tui_source_window_base::set_is_exec_point_at): Rename from
6499 tui_set_is_exec_point_at.
6500 (tui_update_all_breakpoint_info): Update.
6501 * tui/tui-stack.c (tui_show_frame_info): Update.
6502 * tui/tui-layout.c (show_data): Add cast.
6503 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6504 * tui/tui-data.h (struct tui_source_window_base) <refill,
6505 set_is_exec_point_at>: New methods.
6506 (tui_source_windows, tui_add_to_source_windows): Update types.
6507 (tui_add_to_source_windows): Remove redundant declaration.
6508 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6509 (tui_source_windows): Change return type.
6510 (tui_clear_source_windows_detail): Update.
6511 (tui_add_to_source_windows): Change type of parameter.
6512 (tui_free_all_source_wins_content): Update.
6514 2019-06-25 Tom Tromey <tom@tromey.com>
6516 * tui/tui-wingeneral.c (tui_win_info::refresh)
6517 (tui_source_window_base::refresh): New methods.
6518 (tui_refresh_all): Call the refresh method.
6519 * tui/tui-data.h (struct tui_win_info)
6520 (struct tui_source_window_base) <refresh>: New method.
6522 2019-06-25 Tom Tromey <tom@tromey.com>
6524 * tui/tui.h (tui_is_window_visible): Return bool.
6525 * tui/tui.c (tui_is_window_visible): Return bool.
6526 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6527 (tui_make_visible, tui_make_invisible)
6528 (tui_win_info::make_visible)
6529 (tui_source_window_base::make_visible, make_all_visible)
6530 (tui_make_all_visible, tui_make_all_invisible): Update.
6531 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6532 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6534 (struct tui_win_info, struct tui_source_window_base)
6535 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6536 * tui/tui-data.c (tui_init_generic_part): Update.
6538 2019-06-25 Tom Tromey <tom@tromey.com>
6540 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6541 (tui_source_window_base::make_visible): New methods.
6542 (make_all_visible): Make method call.
6543 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6544 (struct tui_source_window_base, struct tui_cmd_window): Override
6546 (tui_win_is_source_type): Don't declare.
6547 * tui/tui-data.c (tui_win_is_source_type): Remove.
6549 2019-06-25 Tom Tromey <tom@tromey.com>
6551 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6554 2019-06-25 Tom Tromey <tom@tromey.com>
6556 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6557 Inline constructor. Add initializers for members.
6558 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6559 constructors; now inline in class.
6561 2019-06-25 Tom Tromey <tom@tromey.com>
6563 * tui/tui-regs.c (tui_show_registers): Update.
6564 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6566 * tui/tui-data.c (tui_data_window::clear_detail)
6567 (tui_data_window): Update.
6569 2019-06-25 Tom Tromey <tom@tromey.com>
6571 * tui/tui-windata.c (tui_display_all_data)
6572 (tui_display_data_from_line, tui_display_data_from)
6573 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6575 * tui/tui-regs.c (tui_last_regs_line_no)
6576 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6577 (tui_show_registers, tui_show_register_group)
6578 (tui_display_registers_from, tui_display_reg_element_at_line)
6579 (tui_display_registers_from_line, tui_check_register_values)
6580 (tui_reg_next, tui_reg_prev): Update.
6581 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6582 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6584 (struct tui_win_info) <detail>: Remove. Add new fields from
6586 (TUI_DATA_WIN): Add cast.
6587 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6588 (~tui_data_window): Simplify.
6590 2019-06-25 Tom Tromey <tom@tromey.com>
6592 * tui/tui-layout.c (show_source_disasm_command)
6593 (show_source_or_disasm_and_command): Update.
6594 * tui/tui-io.c (update_cmdwin_start_line)
6595 (tui_redisplay_readline): Update.
6596 * tui/tui-data.h (struct tui_command_info): Remove.
6597 (struct tui_win_info) <detail>: Remove command_info member.
6598 (struct tui_data_window) <start_line>: New member, from
6600 (TUI_CMD_WIN): Add casts.
6602 2019-06-25 Tom Tromey <tom@tromey.com>
6604 * tui/tui-winsource.c (tui_update_source_window)
6605 (tui_refill_source_window)
6606 (tui_source_window_base::do_scroll_horizontal)
6607 (tui_update_breakpoint_info, tui_set_exec_info_content)
6608 (tui_show_exec_info_content, tui_erase_exec_info_content)
6609 (tui_clear_exec_info_content): Update.
6610 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6612 * tui/tui-win.c (make_invisible_and_set_new_height)
6613 (make_visible_with_new_height): Update.
6614 * tui/tui-source.c (tui_set_source_content)
6615 (tui_show_symtab_source): Update.
6616 * tui/tui-layout.c (extract_display_start_addr)
6617 (show_source_disasm_command, show_data)
6618 (make_source_or_disasm_window)
6619 (show_source_or_disasm_and_command): Update.
6620 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6621 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6623 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6624 to tui_source_window_base.
6625 (struct tui_win_info) <detail>: Remove source_info member.
6626 (struct tui_source_window_base) <has_locator>: Inline.
6627 Move contents from tui_source_info; rename has_locator member to
6629 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6630 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6632 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6634 (tui_free_all_source_wins_content): Cast to
6635 tui_source_window_base.
6637 2019-06-25 Tom Tromey <tom@tromey.com>
6639 * tui/tui-win.c (make_invisible_and_set_new_height)
6640 (make_visible_with_new_height): Call has_locator method.
6641 * tui/tui-layout.c (show_source_disasm_command, show_data)
6642 (show_source_or_disasm_and_command): Update for bool change.
6643 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6644 (tui_win_info) <has_locator>: New method.
6645 (struct tui_source_window_base) <has_locator>: New method.
6646 (tui_win_has_locator): Don't declare.
6647 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6648 from tui_win_has_locator.
6649 (tui_source_window_base): Use false, not FALSE.
6651 2019-06-25 Tom Tromey <tom@tromey.com>
6653 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6654 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6655 clear_detail method directly.
6656 (tui_clear_win_detail): Remove.
6658 2019-06-25 Tom Tromey <tom@tromey.com>
6660 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6661 "this", not TUI_DISASM_WIN.
6663 2019-06-25 Tom Tromey <tom@tromey.com>
6665 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6667 * tui/tui-winsource.c
6668 (tui_source_window_base::do_scroll_horizontal): Rename from
6669 tui_horizontal_source_scroll.
6670 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6671 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6672 from tui_vertical_data_scroll.
6673 * tui/tui-win.h (tui_scroll): Don't declare.
6674 * tui/tui-win.c (tui_win_info::forward_scroll)
6675 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6676 (tui_win_info::right_scroll): Rename and update.
6677 (tui_scroll_forward_command, tui_scroll_backward_command)
6678 (tui_scroll_left_command, tui_scroll_right_command): Update.
6679 (tui_scroll): Remove.
6680 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6681 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6682 from tui_vertical_source_scroll.
6683 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6684 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6685 from tui_vertical_disassem_scroll.
6686 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6687 do_scroll_horizontal>: New methods.
6688 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6690 (struct tui_source_window_base): Add do_scroll_horizontal.
6691 (struct tui_source_window, struct tui_disasm_window): Add
6693 (struct tui_data_window, struct tui_cmd_window): Add
6694 do_scroll_horizontal and do_scroll_vertical.
6695 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6697 2019-06-25 Tom Tromey <tom@tromey.com>
6699 * tui/tui-data.h (struct tui_source_window_base): New struct.
6700 (struct tui_source_window): Derive from tui_source_window_base.
6701 (struct tui_disasm_window): New struct.
6702 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6703 from tui_source_window::clear_detail.
6704 (tui_source_window_base): Rename from tui_source_window.
6705 (~tui_source_window_base): Rename from ~tui_source_window.
6706 (tui_alloc_win_info): Create a tui_disasm_window.
6708 2019-06-25 Tom Tromey <tom@tromey.com>
6710 * tui/tui-data.h (struct tui_source_window)
6711 (struct tui_data_window): Declare destructors.
6712 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6714 (tui_win_info): Simplify.
6716 2019-06-25 Tom Tromey <tom@tromey.com>
6718 * tui/tui-winsource.c (tui_display_main)
6719 (tui_update_source_windows_with_addr)
6720 (tui_update_all_breakpoint_info): Update.
6721 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6722 (new_height_ok, parse_scrolling_args): Update.
6723 * tui/tui-stack.c (tui_show_frame_info): Update.
6724 * tui/tui-data.h (struct tui_list): Remove.
6725 (tui_source_windows): Return a reference to a std::vector.
6726 * tui/tui-data.c (source_windows): Now a std::vector.
6727 (tui_source_windows): Change return type.
6728 (tui_clear_source_windows): Rewrite.
6729 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6730 (tui_free_all_source_wins_content): Rewrite.
6732 2019-06-25 Tom Tromey <tom@tromey.com>
6734 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6735 (struct tui_data_window, struct tui_cmd_window): Declare
6736 clear_detail method.
6737 * tui/tui-data.c (tui_source_window::clear_detail)
6738 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6740 (tui_clear_win_detail): Simplify.
6742 2019-06-25 Tom Tromey <tom@tromey.com>
6744 * tui/tui-layout.c (make_source_window, make_disasm_window)
6745 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6746 Return the new window.
6747 (show_source_disasm_command, show_data)
6748 (show_source_or_disasm_and_command): Update.
6750 2019-06-25 Tom Tromey <tom@tromey.com>
6752 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6753 parameter. Return the new window.
6754 (show_source_disasm_command): Update and remove NULL check.
6755 (show_source_or_disasm_and_command): Update.
6757 2019-06-25 Tom Tromey <tom@tromey.com>
6759 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6761 2019-06-25 Tom Tromey <tom@tromey.com>
6763 * tui/tui-data.h (struct tui_win_info): Make constructor
6764 protected. Make destructor virtual. Add initializers.
6765 (tui_source_window, tui_data_window, tui_cmd_window): New
6767 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6768 constructor. Add "type" parameter.
6769 (tui_source_window, tui_data_window, tui_cmd_window): New
6771 (tui_alloc_win_info): Instantiate the appropriate subclass.
6773 2019-06-25 Tom Tromey <tom@tromey.com>
6775 * tui/tui-win.c (tui_resize_all): Use delete.
6776 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6778 (tui_free_window): Don't declare.
6779 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6782 2019-06-25 Tom Tromey <tom@tromey.com>
6784 * tui/tui-data.h (struct tui_win_info): Add constructor.
6785 * tui/tui-data.c (tui_alloc_win_info): Use new.
6786 (tui_free_window): Use delete.
6788 2019-06-22 Tom Tromey <tom@tromey.com>
6790 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6792 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6794 2019-06-22 Tom Tromey <tom@tromey.com>
6796 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6798 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6800 2019-06-22 Tom de Vries <tdevries@suse.de>
6802 * dwarf2read.c (create_addrmap_from_aranges)
6803 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6806 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6808 * dwarf2read.h (dwarf2_section_info_def): Remove.
6809 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6810 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6811 std::vector<dwarf2_section_info>.
6812 (struct dwo_file) <~dwo_file>: Remove.
6813 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6815 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6816 (dwarf2_read_debug_names): Likewise.
6817 (create_debug_types_hash_table): Change parameter type to
6818 array_view, adjust code accordingly.
6819 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6820 (partial_die_info::fixup): Likewise.
6821 (determine_prefix): Likewise.
6822 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6824 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6826 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6828 <~dwo_file>: Remove call to gdb_bfd_unref.
6829 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6830 gdb_bfd_ref_ptr::get.
6832 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6834 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6836 * dwarf2read.c (struct dwo_file): Initialize fields.
6838 (free_dwo_file): Remove, move content to ~dwo_file.
6839 (struct dwo_file_deleter): Remove.
6840 (dwo_file_up>: Remove custom deleter.
6841 (free_dwo_files): Remove.
6842 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6844 (process_skeletonless_type_units): Call unique_ptr::get.
6845 (allocate_dwo_file_hash_table): Add deleter to created hash
6846 table. Change return type to htab_up.
6847 (lookup_dwo_file_slot): Don't memset dwo_file, call
6849 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6850 (create_dwo_unit_in_dwp_v2): Likewise.
6851 (open_and_init_dwo_file): Likewise.
6852 (free_dwo_file_from_slot): Remove.
6854 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6856 * dwarf2read.h (struct dwarf2_section_info) <readin,
6857 is_virtual>: Change type to bool.
6858 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6861 2019-06-19 Tom Tromey <tom@tromey.com>
6863 * tui/tui-data.h (tui_init_content_element): Don't declare.
6865 2019-06-19 Tom Tromey <tom@tromey.com>
6867 * tui/tui-data.h (tui_init_win_info): Don't declare.
6869 2019-06-19 Tom de Vries <tdevries@suse.de>
6871 * dwarf2read.h (abstract_to_concrete): Change type to
6872 std::unordered_map<sect_offset, std::vector<sect_offset>,
6873 gdb::hash_enum<sect_offset>>.
6875 2019-06-19 Tom Tromey <tromey@adacore.com>
6877 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6878 EVAL_AVOID_SIDE_EFFECTS specially.
6880 2019-06-19 Tom Tromey <tromey@adacore.com>
6882 * source-cache.c (highlighter): New global.
6883 (source_cache::get_source_lines): Create a highlighter on demand.
6885 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6887 * defs.h (deprecated_interactive_hook): Delete declaration.
6888 * interps.c (clear_interpreter_hooks): Remove use of
6889 deprecated_interactive_hook.
6890 * top.c (deprecated_interactive_hook): Delete definition.
6891 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6893 2019-06-18 Tom de Vries <tdevries@suse.de>
6896 * dwarf2read.h (abstract_to_concrete): Change type from
6897 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6898 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6899 * dwarf2read.c (read_variable): Update.
6900 (dwarf2_fetch_die_loc_sect_off): Update.
6902 2019-06-17 Tom de Vries <tdevries@suse.de>
6905 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6906 accessing parent[parent_len - 1].
6908 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6911 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6912 call dtrace_process_dof with NULL dof.
6914 2019-06-16 Tom de Vries <tdevries@suse.de>
6917 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6919 2019-06-16 Tom Tromey <tom@tromey.com>
6921 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6922 (make_all_visible): Use address of member.
6924 2019-06-16 Tom Tromey <tom@tromey.com>
6926 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6927 (tui_free_window, free_content, free_content_elements): Remove
6929 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6931 * tui/tui-regs.c (tui_show_register_group)
6932 (tui_display_registers_from, tui_display_reg_element_at_line):
6933 Remove unnecessary cast.
6935 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6937 * linux-nat.c (normal_mask): Delete.
6938 (_initialize_linux_nat): Don't initialise normal_mask.
6940 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6943 * dwarf-index-write.h (write_psymtabs_to_index): Add
6944 dwz_basename parameter.
6945 * dwarf-index-write.c (write_gdbindex): Move file writing to
6946 write_gdbindex_1. Change return type void.
6947 (assert_file_size): Move up, remove filename parameter.
6948 (write_gdbindex_1): New function.
6949 (write_debug_names): Change return type to void, call
6951 (struct index_wip_file): New struct.
6952 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6953 file logic to index_wip_file. Write index for dwz file if
6955 (save_gdb_index_command): Pass basename of dwz file, if present.
6956 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6957 build-id of dwz file, if present.
6958 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6959 (dwarf2_get_dwz_file): Likewise.
6960 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6961 (dwarf2_get_dwz_file): Likewise.
6963 2019-06-16 Tom Tromey <tom@tromey.com>
6965 * coffread.c (process_coff_symbol): Use xstrdup.
6966 * value.c (create_internalvar): Use xstrdup.
6968 2019-06-16 Tom Tromey <tom@tromey.com>
6970 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6971 * breakpoint.c (stopin_command, stopat_command)
6972 (until_break_command, decode_location_default): Remove unnecessary
6974 * utils.c (subset_compare): Remove unnecessary cast.
6975 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6977 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6979 * infcmd.c (path_command): Remove unnecessary cast.
6980 * coffread.c (decode_type): Remove unnecessary cast.
6981 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6982 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6983 * tui/tui-stack.c (tui_show_locator_content)
6984 (tui_show_frame_info): Remove unnecessary cast.
6985 * tui/tui-win.c (tui_scroll_forward_command)
6986 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6987 (parse_scrolling_args): Remove unnecessary cast.
6988 * tui/tui-data.c (init_win_info, tui_del_window)
6989 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6990 (free_content_elements): Remove unnecessary cast.
6991 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6993 * tui/tui-source.c (tui_set_source_content)
6994 (tui_vertical_source_scroll): Remove unnecessary cast.
6995 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6997 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6998 * tui/tui-regs.c (tui_display_registers_from)
6999 (tui_display_register): Remove unnecessary cast.
7000 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7001 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7002 (make_visible): Remove unnecessary cast.
7003 * tui/tui-winsource.c (tui_erase_source_content)
7004 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7006 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7007 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7008 * stabsread.c (read_type, read_array_type, read_range_type):
7009 Remove unnecessary cast.
7010 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7011 (parse_symbol, parse_type, upgrade_type, parse_external)
7012 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7014 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7016 2019-06-16 Tom Tromey <tom@tromey.com>
7018 * tui/tui-data.c (tui_alloc_generic_win_info)
7019 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7022 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7023 Andrew Burgess <andrew.burgess@embecosm.com>
7025 * f-typeprint.c (f_print_type): Don't return early for not
7026 associated or not allocated types.
7027 (f_type_print_varspec_suffix): Add print_rank parameter and print
7028 ranks of array types in case they dangling.
7029 (f_type_print_base): Add print_rank parameter.
7031 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7033 * NEWS: Mention new MI commands.
7034 * break-catch-throw.c (enum exception_event_kind): Move to
7036 (print_mention_exception_catchpoint): Output text as a single
7038 (catch_exception_command_1): Rename to...
7039 (catch_exception_event): ...this, make non-static, update header
7040 command, and change some parameter types.
7041 (catch_catch_command): Update for changes to
7042 catch_exception_command_1.
7043 (catch_throw_command): Likewise.
7044 (catch_rethrow_command): Likewise.
7045 * breakpoint.c (enum exception_event_kind): Delete.
7046 * breakpoint.h (enum exception_event_kind): Moved here from
7047 break-catch-throw.c.
7048 (catch_exception_event): Declare.
7049 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7050 (mi_cmd_catch_throw): New function.
7051 (mi_cmd_catch_rethrow): New function.
7052 (mi_cmd_catch_catch): New function.
7053 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7054 'catch-catch' entries.
7055 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7056 (mi_cmd_catch_rethrow): Declare.
7057 (mi_cmd_catch_catch): Declare.
7059 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7061 * annotate.c (annotate_source_line): Change return type to void,
7062 update implementation to match.
7063 * annotate.h (annotate_source_line): Change return type to void,
7064 update header comment.
7065 * stack.c (print_frame_info): Don't change what frame information
7066 is printed based on whether annotations are on or not.
7068 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7070 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7071 (annotate_source): Make static.
7072 (annotate_source_line): Moved from source.c and renamed from
7073 identify_source_line. Update the return type.
7074 * annotate.h (annotate_source): Delete declaration.
7075 (annotate_source_line): Declaration moved from source.h, and
7076 renamed from identify_source_line. Return type updated.
7077 * source.c (identify_source_line): Moved to annotate.c and renamed
7078 to annotate_source_line.
7079 (info_line_command): Remove check of annotation_level.
7080 * source.h (identify_source_line): Move declaration to annotate.h
7081 and rename to annotate_source_line.
7082 * stack.c: Add 'annotate.h' include.
7083 (print_frame_info): Remove check of annotation_level before
7084 calling annotate_source_line.
7086 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7088 * source-cache.c (source_cache::get_plain_source_lines): Use
7089 open_source_file_with_line_charpos instead of just
7090 open_source_file, remove call to find_source_lines.
7091 (source_cache::get_source_lines): Likewise.
7092 * source.c (find_source_lines): Make static.
7093 (get_filename_and_charpos): Renamed into...
7094 (open_source_file_with_line_charpos): ..this along with changes to
7095 return a scoped_fd, and some other minor clean ups.
7096 (identify_source_line): Use open_source_file_with_line_charpos.
7097 (search_command_helper): Use open_source_file_with_line_charpos
7098 instead of just open_source_file, remove call to
7100 * source.h (open_source_file_with_line_charpos): Declare new
7102 (find_source_lines): Delete declaration.
7104 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7106 * source.c (get_filename_and_charpos): Remove fullname
7108 (identify_source_line): Update call to get_filename_and_charpos.
7110 2019-06-14 Tom Tromey <tromey@adacore.com>
7113 * ui-style.h (skip_ansi_escape): Update comment.
7114 * ui-file.h (class no_terminal_escape_file): New class.
7115 * ui-file.c (no_terminal_escape_file::write)
7116 (no_terminal_escape_file::puts): New methods.
7117 * cli/cli-logging.c (handle_redirections): Use
7118 no_terminal_escape_file.
7120 2019-06-14 Tom Tromey <tromey@adacore.com>
7122 * NEWS: Move convenience variable news above Python news.
7124 2019-06-14 Tom Tromey <tom@tromey.com>
7126 * gnulib: Move directory to top-level.
7127 * configure.ac: Don't configure gnulib.
7128 * configure: Rebuild.
7129 * common/common-defs.h: Use new path to gnulib.
7130 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7132 (INCGNU): Look in new gnulib location.
7133 (HFILES_NO_SRCDIR): Remove gnulib files.
7134 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7135 (generated_files): Remove GNULIB_H.
7136 ($(LIBGNU), all-lib): Remove targets.
7137 (distclean): Don't mention GNULIB_BUILDDIR.
7138 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7140 2019-06-14 Tom Tromey <tromey@adacore.com>
7142 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7143 Warn if symbol file does not provide any symbols.
7145 2019-06-14 Tom Tromey <tromey@adacore.com>
7147 * source.c (find_and_open_source): Respect basenames_may_differ.
7149 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7151 * annotate.c (annotate_breakpoints_invalid): Make use of
7152 scoped_restore_terminal_state.
7153 (annotate_frames_invalid): Likewise.
7155 2019-06-14 Tom Tromey <tromey@adacore.com>
7157 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7158 allow assignment to an internalvar.
7160 2019-06-14 Tom Tromey <tromey@adacore.com>
7162 * ada-lex.l: Allow "_" in attribute names.
7164 2019-06-14 Tom Tromey <tromey@adacore.com>
7167 * regcache.c (registers_changed): Don't call alloca.
7168 * top.c (execute_command): Don't call alloca.
7170 2019-06-13 Pedro Alves <palves@redhat.com>
7172 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7173 'expression'. When parsing an expression, error out if there's
7174 junk after "unlimited".
7175 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7176 (do_set_command): Adjust calls to is_unlimited_literal.
7178 2019-06-13 Pedro Alves <palves@redhat.com>
7180 * compile/compile.c (make_compile_options_def_group): Add braces
7181 around array_view initializer.
7182 * thread.c (make_thread_apply_all_options_def_group)
7183 (make_thread_apply_all_options_def_group): Likewise.
7185 2019-06-13 Pedro Alves <palves@redhat.com>
7187 * NEWS (New commands): Mention "maint test-options
7188 require-delimiter", "maint test-options unknown-is-error", "maint
7189 test-options unknown-is-operand" and "maint show
7190 test-options-completion-result".
7191 (New command options, command completion): New section.
7192 (Completion improvements): New section.
7193 Mention that you can abbreviate "unlimited".
7195 2019-06-13 Pedro Alves <palves@redhat.com>
7197 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7198 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7199 * unittests/cli-utils-selftests.c (test_parse_flags)
7200 (test_parse_flags_qcs): Delete.
7201 (test_cli_utils): Don't call deleted functions.
7203 2019-06-13 Pedro Alves <palves@redhat.com>
7205 * thread.c: Include "cli/cli-option.h".
7206 (tp_array_compar_ascending): Global.
7207 (tp_array_compar): Delete function.
7208 (tp_array_compar_ascending, tp_array_compar_descending): New
7210 (ascending_option_def, qcs_flag_option_def)
7211 (thr_qcs_flags_option_defs)
7212 (make_thread_apply_all_options_def_group)
7213 (make_thread_apply_options_def_group): New.
7214 (thread_apply_all_command): Use gdb::option::process_options.
7215 (thread_apply_command_completer)
7216 (thread_apply_all_command_completer): New.
7217 (thread_apply_command): Use gdb::option::process_options.
7218 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7219 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7220 to generate help text of "thread apply". Adjust "taas"'s help.
7221 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7222 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7224 2019-06-13 Pedro Alves <palves@redhat.com>
7226 * thread.c (thread_apply_command): Check for invalid TID with
7227 isdigit instead of !isalpha.
7229 2019-06-13 Pedro Alves <palves@redhat.com>
7231 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7232 (validate_flags_qcs): New.
7233 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7234 (validate_flags_qcs): Declare.
7235 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7236 (make_frame_apply_options_def_group): New.
7237 (frame_apply_command_count): Process options with
7238 gdb::option::process_options.
7239 (frame_apply_completer): New.
7240 (frame_apply_level_completer, frame_apply_all_completer)
7241 (frame_apply_completer): New.
7242 (_initialize_stack): Update help of "frame apply", "frame apply
7243 level", "frame apply all" and "faas" to mention supported options
7244 and install command completers.
7245 * stack.h (frame_apply_all_completer): Declare.
7246 * thread.c: Include "stack.h".
7247 (tfaas_command): Add "--".
7248 (_initialize_thread): Update help "tfaas" to mention supported
7249 options and install command completer.
7251 2019-06-13 Pedro Alves <palves@redhat.com>
7253 * completer.c (complete_nested_command_line): New.
7254 (gdb_completion_word_break_characters_throw): Add assertion.
7255 * completer.h (complete_nested_command_line): Declare.
7257 2019-06-13 Pedro Alves <palves@redhat.com>
7259 * stack.c (parse_backtrace_qualifiers): New.
7260 (backtrace_command): Use it.
7261 (backtrace_command_completer): Complete on qualifiers.
7263 2019-06-13 Pedro Alves <palves@redhat.com>
7265 * frame.c: Include "cli/cli-option.h.
7266 (user_set_backtrace_options): New.
7267 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7269 (get_prev_frame): Adjust.
7270 (boolean_option_def, uinteger_option_def)
7271 (set_backtrace_option_defs): New.
7272 (_initialize_frame): Adjust and use
7273 gdb::option::add_setshow_cmds_for_options to install "set
7274 backtrace past-main" and "set backtrace past-entry".
7275 * frame.h: Include "cli/cli-option.h".
7276 (struct frame_print_options): Forward declare.
7277 (print_frame_arguments_all, print_frame_arguments_scalars)
7278 (print_frame_arguments_none): Declare.
7279 (print_entry_values): Delete declaration.
7280 (struct frame_print_options, user_frame_print_options): New.
7281 (struct set_backtrace_options): New.
7282 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7283 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7284 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7285 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7286 (list_args_or_locals): Add frame_print_options parameter.
7287 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7288 * python/py-framefilter.c (enumerate_args): Pass down
7289 USER_FRAME_PRINT_OPTIONS.
7290 * stack.c: Include "cli/cli-option.h".
7291 (print_frame_arguments_all, print_frame_arguments_scalars)
7292 (print_frame_arguments_none): Declare.
7293 (print_raw_frame_arguments, print_entry_values): Delete.
7294 (user_frame_print_options): New.
7295 (boolean_option_def, enum_option_def, frame_print_option_defs):
7297 (struct backtrace_cmd_options): New.
7298 (bt_flag_option_def): New.
7299 (backtrace_command_option_defs): New.
7300 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7301 (print_frame_arg, read_frame_arg, print_frame_args)
7302 (print_frame_info, print_frame): Add frame_print_options parameter
7304 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7305 (backtrace_command_1): Add frame_print_options and
7306 backtrace_cmd_options parameters and use them.
7307 (make_backtrace_options_def_group): New.
7308 (backtrace_command): Process command options with
7309 gdb::option::process_options.
7310 (backtrace_command_completer): New.
7311 (_initialize_stack): Extend "backtrace"'s help to mention
7312 supported options. Install completer for "backtrace".
7313 Install some settings commands with add_setshow_cmds_for_options.
7315 2019-06-13 Pedro Alves <palves@redhat.com>
7317 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7318 and that "set/show print raw frame-arguments" are now deprecated.
7320 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7322 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7323 * stack.c (_initialize_stack): Install "set/show print
7324 raw-frame-arguments", and deprecate "set/show print raw
7326 * valprint.c (_initialize_valprint): Deprecate "set/show print
7329 2019-06-13 Pedro Alves <palves@redhat.com>
7331 * compile/compile.c (struct compile_options): New.
7332 (compile_flag_option_def, compile_command_option_defs)
7333 (make_compile_options_def_group): New.
7334 (compile_file_command): Handle options with
7335 gdb::option::process_options.
7336 (compile_file_command_completer): New function.
7337 (compile_code_command): Handle options with
7338 gdb::option::process_options.
7339 (compile_code_command_completer): New function.
7340 (_initialize_compiler): Install completers for "compile code" and
7341 "compile file". Mention available options in "compile code" and
7342 "compile code"'s help.
7343 * completer.c (advance_to_completion_word): New, factored out from
7345 (advance_to_expression_complete_word_point): ... this.
7346 (advance_to_filename_complete_word_point): New.
7347 * completer.h (advance_to_filename_complete_word_point): New
7350 2019-06-13 Pedro Alves <palves@redhat.com>
7352 * compile/compile.c: Include "cli/cli-option.h".
7353 (compile_print_value): Scope data pointer is now a
7354 value_print_options pointer; adjust.
7355 (compile_print_command): Process options. Scope data pointer is
7356 now a value_print_options pointer; adjust.
7357 (_initialize_compile): Update "compile print"'s help to include
7358 supported options. Install a completer for "compile print".
7359 * cp-valprint.c (show_vtblprint, show_objectprint)
7360 (show_static_field_print): Delete.
7361 (_initialize_cp_valprint): Don't install "set print
7362 static-members", "set print vtbl", "set print object" here.
7363 * printcmd.c: Include "cli/cli-option.h" and
7364 "common/gdb_optional.h".
7365 (print_command_parse_format): Rework to fill in a
7366 value_print_options instead of a format_data.
7367 (print_value): Change parameter type from format_data pointer to
7368 value_print_options reference. Adjust.
7369 (print_command_1): Process options. Adjust to pass down a
7370 value_print_options.
7371 (print_command_completer): New.
7372 (_initialize_printcmd): Install print_command_completer as
7373 handle_brkchars completer for the "print" command. Update
7374 "print"'s help to include supported options.
7375 * valprint.c: Include "cli/cli-option.h".
7376 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7377 here from cp-valprint.c.
7378 (boolean_option_def, uinteger_option_def)
7379 (value_print_option_defs, make_value_print_options_def_group):
7380 New. Use gdb::option::add_setshow_cmds_for_options to install
7381 "set print elements", "set print null-stop", "set print repeats",
7382 "set print pretty", "set print union", "set print array", "set
7383 print address", "set print symbol", "set print array-indexes".
7384 * valprint.h: Include <string> and "cli/cli-option.h".
7385 (make_value_print_options_def_group): Declare.
7386 (print_value): Change parameter type from format_data pointer to
7387 value_print_options reference.
7388 (print_command_completer): Declare.
7390 2019-06-13 Pedro Alves <palves@redhat.com>
7392 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7393 (COMMON_SFILES): Add maint-test-settings.c.
7394 * cli/cli-decode.c (boolean_enums): New global, factored out from
7396 (add_setshow_boolean_cmd): ... here.
7397 * cli/cli-decode.h (boolean_enums): Declare.
7398 * cli/cli-option.c: New file.
7399 * cli/cli-option.h: New file.
7400 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7401 factored out from ...
7402 (parse_cli_boolean_value(const char *)): ... this.
7403 (is_unlimited_literal): Change parameter type to pointer to
7404 pointer. Adjust and advance ARG pointer.
7405 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7406 (parse_cli_var_enum): New, factored out from ...
7407 (do_set_command): ... this. Adjust.
7408 * cli/cli-setshow.h (parse_cli_boolean_value)
7409 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7410 (parse_cli_var_enum): Declare.
7411 * cli/cli-utils.c: Include "cli/cli-option.h".
7412 (get_ulongest): New.
7413 * cli/cli-utils.h (get_ulongest): Declare.
7414 (check_for_argument): New overloads.
7415 * maint-test-options.c: New file.
7417 2019-06-13 Pedro Alves <palves@redhat.com>
7419 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7420 parse a range if "-" is at the end of the string.
7422 2019-06-13 Pedro Alves <palves@redhat.com>
7424 * cli/cli-setshow.c (parse_auto_binary_operation)
7425 (parse_cli_boolean_value): Don't allow "o".
7427 2019-06-13 Pedro Alves <palves@redhat.com>
7429 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7430 * NEWS: Mention maint test-settings KIND.
7431 * maint-test-settings.c: New file.
7433 2019-06-13 Pedro Alves <palves@redhat.com>
7435 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7437 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7440 2019-06-13 Pedro Alves <palves@redhat.com>
7442 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7445 2019-06-13 Pedro Alves <palves@redhat.com>
7447 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7449 2019-06-13 Pedro Alves <palves@redhat.com>
7451 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7452 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7454 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7455 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7457 (check_for_argument): Skip spaces after argument.
7459 2019-06-13 Pedro Alves <palves@redhat.com>
7461 * thread.c (thread_apply_command): Adjust TID parsing.
7462 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7463 detected before end of string.
7464 (tid_is_in_list): Error out if LIST is invalid.
7466 2019-06-13 Pedro Alves <palves@redhat.com>
7468 * completer.c (complete_line_internal_1): Rewind completion word
7470 (completion_tracker::advance_custom_word_point_by): Change
7471 parameter type to int.
7472 * completer.h (completion_tracker::advance_custom_word_point_by):
7475 2019-06-13 Pedro Alves <palves@redhat.com>
7477 * completer.c (advance_to_completion_word): Handle delimiters.
7479 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7481 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7483 2019-06-11 Tom Tromey <tom@tromey.com>
7485 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7486 (xmalloc_failed): Move to alloc.c.
7487 * alloc.c: New file.
7488 * Makefile.in (COMMON_SFILES): Add alloc.c.
7490 2019-06-11 Tom Tromey <tom@tromey.com>
7492 * nat/linux-waitpid.c: Don't include server.h.
7493 (linux_debug): Remove.
7494 (my_waitpid): Update.
7496 2019-06-11 Tom Tromey <tromey@adacore.com>
7498 * infcall.c (_initialize_infcall): Remove trailing newline from
7500 * user-regs.c (_initialize_user_regs): Remove trailing newline
7502 * typeprint.c (_initialize_typeprint): Remove trailing newline
7504 * reverse.c (_initialize_reverse): Remove trailing newlines from
7506 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7508 * language.c (add_set_language_command): Remove trailing newline
7510 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7512 * disasm.c (_initialize_disasm): Remove trailing newline from
7514 * top.c (init_main): Remove trailing newline from help.
7515 * interps.c (_initialize_interpreter): Remove trailing newline
7517 * btrace.c (_initialize_btrace): Remove trailing newlines from
7519 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7521 * python/python.c (_initialize_python): Remove trailing newline
7523 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7525 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7526 from help. Reformat some text.
7527 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7529 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7532 2019-06-11 Tom Tromey <tromey@adacore.com>
7534 * darwin-nat.c (darwin_decode_exception_message)
7535 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7537 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7539 * valops.c (value_slice): Check for not allocated or not
7542 2019-06-10 Tom de Vries <tdevries@suse.de>
7545 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7546 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7549 2019-06-10 Tom de Vries <tdevries@suse.de>
7552 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7553 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7555 2019-06-10 Tom de Vries <tdevries@suse.de>
7558 * symtab.c (struct demangled_name_entry): Add language field.
7559 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7560 static minimal symbol". Set and use language field.
7562 2019-06-10 Tom Tromey <tromey@adacore.com>
7564 * ada-lang.c (_initialize_ada_language): Update help text.
7566 2019-06-10 Tom Tromey <tromey@adacore.com>
7568 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7570 * guile/guile.c (handle_boot_error): Don't end warning with a
7572 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7573 warning with a newline.
7574 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7576 (s12z_frame_cache): Likewise.
7577 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7579 * solib-svr4.c (disable_probes_interface): Don't end warning with
7581 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7583 * python/python.c (do_finish_initialization): Don't end warning
7586 2019-06-10 Tom Tromey <tom@tromey.com>
7588 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7589 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7592 2019-06-10 Tom Tromey <tromey@adacore.com>
7594 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7596 (elf_new_init): Don't call stabsread_new_init.
7597 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7598 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7599 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7601 2019-06-10 Tom de Vries <tdevries@suse.de>
7605 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7607 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7609 * source.c (find_and_open_source): Also rewrite relative file
7612 2019-04-26 Amos Bird <amosbird@gmail.com>
7614 * annotate.c (annotate_thread_exited): Add "thread-exited"
7617 2019-06-06 Tom Tromey <tromey@adacore.com>
7619 * maint.h (class scoped_command_stats): Use
7620 DISABLE_COPY_AND_ASSIGN.
7621 <print_time>: New method.
7622 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7624 (scoped_command_stats::print_time): New method.
7626 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7628 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7629 instructions of lengths 6 or 8 bytes.
7631 2019-06-04 Pedro Alves <palves@redhat.com>
7633 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7635 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7636 * breakpoint.c (condition_completer): Likewise.
7637 * cli/cli-dump.c (scan_expression): Likewise.
7638 * common/filestuff.c (mkdir_recursive): Likewise.
7639 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7640 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7641 (gdb_abspath): Likewise.
7642 * compile/compile-cplus-types.c
7643 (compile_cplus_instance::decl_name): Likewise.
7644 * completer.c (complete_explicit_location):
7645 (signal_completer, reg_or_group_completer_1): Likewise.
7646 * cp-support.c (cp_remove_params_if_any): Likewise.
7647 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7648 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7649 * infcmd.c (strip_bg_char): Likewise.
7650 * linespec.c (copy_token_string): Likewise.
7651 * mi/mi-main.c (output_cores): Likewise.
7652 * psymtab.c (psymtab_search_name):
7653 * symfile.c (test_set_ext_lang_command): Likewise.
7654 * target.c (target_fileio_read_stralloc): Likewise.
7655 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7656 * value.c (complete_internalvar): Likewise.
7658 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7660 Add objfile property to gdb.Type.
7661 * NEWS: Mention Python API addition.
7662 * python/py-type.c (typy_get_objfile): New method.
7664 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7666 * NEWS: Mention the new set|show style [title|highlight].
7667 Mention changes to "show style", "help" and "apropos".
7669 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7671 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7672 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7673 instead of print_help_for_command.
7674 (print_doc_of_command): New function.
7675 (help_list): Add 'apropos -v word' suggestion.
7676 (print_help_for_command): Style the command name using title style.
7677 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7678 (_initialize_cli_cmds): Describe -v in apropos_command help.
7680 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7682 * cli/cli-style.h (cli_style_option): Add name in constructor,
7683 add m_name class member, add constructor with intensity,
7684 add name class function.
7685 (cli_style_option::add_setshow_commands): Remove name argument.
7686 (highlight_style, title_style): New styles.
7687 * cli/cli-style.c (do_show): New function that shows a style
7688 characteristic styling the style name with itself.
7689 (set_style_name): New function.
7690 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7691 Update all callers according to the changes in cli/cli-style.h.
7692 * utils.h (fputs_highlighted): New function.
7693 * utils.c (fputs_highlighted): Likewise.
7695 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7697 * NEWS: Mention new pipe command and new convenience variables.
7699 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7701 * cli/cli-cmds.c (pipe_command): New function.
7702 (_initialize_cli_cmds): Call add_com for pipe_command.
7703 Define | as an alias for pipe.
7704 (exit_status_set_internal_vars): New function.
7705 (shell_escape): Call exit_status_set_internal_vars.
7706 cli/cli-decode.c (find_command_name_length): Recognize | as
7707 a single character command.
7709 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7711 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7712 top.c (execute_command_to_ui_file): New function, mostly a copy
7713 of execute_command_to_string.
7714 (execute_command_to_string): Implement by calling
7715 execute_command_to_ui_file.
7717 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7719 * top.h (saved_command_line): Remove declaration.
7720 * top.c (previous_saved_command_line, previous_repeat_arguments):
7722 (saved_command_line): Make static, define together with other
7724 (dont_repeat): Clear repeat_arguments.
7725 (repeat_previous, get_saved_command_line, save_command_line):
7727 (gdb_init): Initialize saved_command_line
7728 and previous_saved_command_line.
7729 * main.c (captured_main_1): Remove saved_command_line initialization.
7730 * event-top.c (handle_line_of_input): Update to use
7731 the new 'repeat' related functions instead of direct access to
7733 * command.h (repeat_previous, get_saved_command_line,
7734 save_command_line): New declarations.
7735 (dont_repeat): Add comment.
7737 2019-05-30 Tom Tromey <tromey@adacore.com>
7739 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7741 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7743 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7746 * completer.c (complete): Initialize variable word.
7748 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7750 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7751 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7752 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7753 'body' is NULL to the outter 'if', protecting the '!is_define'
7756 2019-05-29 Tom Tromey <tromey@adacore.com>
7758 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7759 (dwarf_unknown): New function.
7760 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7761 (dwarf_type_encoding_name): Use dwarf_unknown.
7763 2019-05-29 Tom Tromey <tromey@adacore.com>
7766 * cp-valprint.c (cp_print_value_fields): Call
7767 cp_print_static_field inside "try".
7769 2019-05-29 Tom Tromey <tromey@adacore.com>
7771 * inflow.c (struct terminal_info): Add default operator=.
7772 * configure: Rebuild.
7773 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7774 -Wdeprecated-copy-dtor, -Wredundant-move.
7776 2019-05-29 Tom Tromey <tromey@adacore.com>
7779 * infcmd.c (print_return_value_1): Handle finish_print
7781 (show_print_finish): New function.
7782 (_initialize_infcmd): Add "set/show print finish" commands.
7783 * valprint.c (user_print_options): Initialize new member.
7784 * valprint.h (struct value_print_options) <finish_print>: New
7787 2019-05-28 Tom Tromey <tromey@adacore.com>
7789 * ada-lang.c (ada_remove_Xbn_suffix)
7790 (find_old_style_renaming_symbol)
7791 (parse_old_style_renaming): Remove.
7792 (ada_find_renaming_symbol): Don't call
7793 find_old_style_renaming_symbol.
7794 (ada_is_renaming_symbol): Rename from
7795 ada_find_renaming_symbol. Remove "block" parameter. Return
7797 (ada_read_var_value): Update and simplify.
7798 * ada-exp.y (write_var_or_type): Remove old code.
7800 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7803 * event-top.c: Remove include comment.
7804 * inflow.c (class scoped_ignore_sigttou): Move from here...
7805 * inflow.h (class scoped_ignore_sigttou): ...to here.
7806 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7807 * top.c: Remove include comment.
7809 2019-05-27 Tom Tromey <tom@tromey.com>
7813 2019-05-22 Tom Tromey <tromey@adacore.com>
7815 * target.c (target_follow_exec): Constify parameter.
7816 * target-delegates.c: Rebuild.
7817 * remote.c (remote_target::follow_exec): Constify parameter.
7818 * infrun.c (follow_exec): Constify parameter.
7819 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7820 (target_follow_exec): Likewise.
7822 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7824 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7825 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7827 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7829 * NEWS: Add debugredirect and testsuite sections.
7831 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7833 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7834 target descriptions using exclusively floating point register name
7837 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7840 * f-lang.c (build_fortran_types): Handle the case where
7841 gdbarch_floatformat_for_type returns a nullptr.
7843 2019-05-21 Tom de Vries <tdevries@suse.de>
7846 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7848 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7851 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7853 * i386-tdep.c (i386_floatformat_for_type): Use
7854 floatformats_ia64_quad for the 16-byte floating point component
7855 within a fortran 32-byte complex number.
7857 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7859 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7860 delete default constructor.
7861 (find_partial_die): Update to return const struct.
7862 (partial_die_parent_scope): Move variable declaration into scope
7863 of its use and change its type to auto.
7864 (guess_partial_die_structure_name): Likewise.
7865 (partial_die_info::fixup): Likewise.
7867 2019-05-17 Tom Tromey <tromey@adacore.com>
7869 * source.c (find_and_open_source): Remove cast.
7871 2019-05-17 Tom Tromey <tromey@adacore.com>
7873 * annotate.c (annotate_source): Make "filename" const.
7874 * annotate.h (annotate_source): Use const.
7876 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7878 * disasm.c (set_disassembler_options): Send errors to stderr.
7880 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7882 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7883 (cli_interp_base::set_logging): Check debug_redirect.
7884 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7885 * cli/cli-logging.c (debug_redirect): Add static variable.
7886 (pop_output_files): Add default param.
7887 (handle_redirections): Print debug setting.
7888 (show_logging_command): Likewise.
7889 (_initialize_cli_logging): Add debugredirect command.
7890 * interps.c (current_interp_set_logging): Add debug_redirect
7892 * interps.h (set_logging): Add debug_redirect parameter.
7893 (current_interp_set_logging): Likewise.
7894 * mi/mi-common.h: Likewise.
7895 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7897 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7898 Tom Tromey <tromey@adacore.com>
7900 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7902 * cli/cli-interp.h (make_logging_output): Remove declaration.
7903 * cli/cli-logging.c (make_logging_output): Remove function.
7904 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7906 * ui-file.c (tee_file::tee_file): Remove bools.
7907 (tee_file::~tee_file): Remove deletes.
7908 * ui-file.h (tee_file): Remove bools.
7910 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7912 * mi/mi-cmds.h (mi_cmd_complete): New function.
7913 * mi/mi-main.c (mi_cmd_complete): Likewise.
7914 * mi/mi-cmds.c: Define new MI command -complete.
7915 * NEWS: Mention new -complete command.
7917 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7919 * completer.h (complete): New function.
7920 * completer.c (complete): Likewise.
7921 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7922 function defined in completer.h.
7924 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7926 * MAINTAINERS (Write After Approval): Add myself.
7928 2019-05-17 Tom de Vries <tdevries@suse.de>
7931 * dwarf2read.c (struct cu_partial_die_info): New struct.
7932 (find_partial_die): Return cu_partial_die_info.
7933 (partial_die_parent_scope, guess_partial_die_structure_name)
7934 (partial_die_info::fixup): Handle new return type of find_partial_die.
7936 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7938 PR breakpoints/24541
7939 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7940 "std::string", simplifying the algorithm.
7942 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7944 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7945 (stap_static_probe_ops::get_probes): Likewise.
7947 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7949 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7950 '-')" and "else if".
7951 (stap_parse_single_operand): Join checks for
7952 "gdbarch_stap_parse_special_token_p" and
7953 "gdbarch_stap_parse_special_token" in the same "if" statement.
7954 Invert check when verifying for operation on register
7957 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7959 * stap-probe.c (stap_get_opcode): Update comment.
7960 (stap_get_expected_argument_type): Likewise.
7961 (handle_stap_probe): Likewise.
7963 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7965 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7966 return type to 'bool'. Adjust comment. Use 'bool' when
7968 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7969 * stap-probe.c (stap_parse_argument_1): Likewise.
7970 (stap_is_operator): Likewise.
7971 (stap_is_generic_prefix): Likewise.
7972 (stap_is_register_prefix): Likewise.
7973 (stap_is_register_indirection_prefix): Likewise.
7974 (stap_is_integer_prefix): Likewise.
7975 (stap_generic_check_suffix): Likewise.
7976 (stap_check_integer_suffix): Likewise.
7977 (stap_check_register_suffix): Likewise.
7978 (stap_check_register_indirection_suffix): Likewise.
7979 (stap_parse_register_operand): Likewise.
7980 (stap_parse_single_operand): Likewise.
7981 (stap_parse_argument_1): Likewise.
7982 (stap_probe::get_argument_count): Likewise.
7983 (stap_is_operator): Likewise.
7985 2019-05-16 Tom Tromey <tromey@adacore.com>
7987 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7990 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7992 * linux-thread-db.c (try_thread_db_load_1): Change return type
7994 (try_thread_db_load): Likewise.
7995 (try_thread_db_load_from_pdir_1): Likewise.
7996 (try_thread_db_load_from_pdir): Likewise.
7997 (try_thread_db_load_from_sdir): Likewise.
7998 (try_thread_db_load_from_dir): Likewise.
7999 (thread_db_load_search): Likewise.
8000 (has_libpthread): Likewise.
8001 (thread_db_load): Likewise.
8003 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8005 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8006 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8007 NULL, and complain/return if that's the case.
8009 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8011 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8012 (advance, posn, abstract_read_memory): New functions.
8013 [struct mem_read_abstraction]: New struct.
8014 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8016 2019-05-14 Tom Tromey <tromey@adacore.com>
8018 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8019 value is not lval_memory.
8021 2019-05-14 Tom Tromey <tromey@adacore.com>
8023 * solib.c (info_sharedlibrary_command): Style the file name.
8025 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8027 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8028 (aarch64_vnv_type): Likewise.
8029 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8030 * common/tdesc.c: Likewise.
8031 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8032 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8033 * features/aarch64-fpu.xml: Add ieee half view.
8034 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8035 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8036 * gdbtypes.h (struct builtin_type): Likewise.
8037 (struct objfile_type): Likewise.
8039 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8041 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8043 * location.h (string_to_event_location): Likewise.
8045 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8049 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8051 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8052 New variable declaration.
8053 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8055 (print_one_breakpoint): Use ui_out::test_flags and new global
8056 variable to compute use_fixed_output.
8057 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8059 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8060 (mi_multi_location_breakpoint_output_fixed): Remove.
8061 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8063 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8064 fix_multi_location_breakpoint_output flag if version >= 3.
8065 * ui-out.h (enum ui_out_flag)
8066 <fix_multi_location_breakpoint_output>: New enumerator.
8068 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8070 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8072 2019-05-10 Tom Tromey <tromey@adacore.com>
8074 * ada-lang.c (catch_ada_completer): New function.
8075 (_initialize_ada_language): Use it.
8077 2019-05-10 Tom Tromey <tromey@adacore.com>
8079 * thread.c (print_thread_info): Make "requested_threads" const.
8080 * gdbthread.h (print_thread_info): Make "requested_threads"
8082 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8083 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8085 2019-05-08 Tom Tromey <tom@tromey.com>
8087 * gdbtypes.c (objfile_type_data): Change type.
8088 (objfile_type, _initialize_gdbtypes): Update.
8090 2019-05-08 Tom Tromey <tom@tromey.com>
8092 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8093 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8094 (_initialize_dwarf2_frame): Update.
8096 2019-05-08 Tom Tromey <tom@tromey.com>
8098 * objc-lang.c (objc_objfile_data): Change type.
8099 (find_methods): Update.
8100 (_initialize_objc_lang): Remove.
8102 2019-05-08 Tom Tromey <tom@tromey.com>
8104 * stabsread.c (rs6000_builtin_type_data): Change type.
8105 (rs6000_builtin_type, _initialize_stabsread): Update.
8107 2019-05-08 Tom Tromey <tom@tromey.com>
8109 * mips-tdep.c (mips_pdr_data): Remove.
8110 (_initialize_mips_tdep): Update.
8112 2019-05-08 Tom Tromey <tom@tromey.com>
8114 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8115 (hppa_init_objfile_priv_data, read_unwind_info)
8116 (find_unwind_entry, _initialize_hppa_tdep): Update.
8118 2019-05-08 Tom Tromey <tom@tromey.com>
8120 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8121 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8123 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8125 2019-05-08 Tom Tromey <tom@tromey.com>
8127 * mdebugread.c (basic_type_data): Change type.
8128 (basic_type, _initialize_mdebugread): Update.
8130 2019-05-08 Tom Tromey <tom@tromey.com>
8132 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8134 2019-05-08 Tom Tromey <tom@tromey.com>
8136 * nto-tdep.c (nto_inferior_data_reg): Change type.
8137 (nto_inferior_data): Update.
8138 (nto_inferior_data_cleanup, nto_new_inferior_data)
8139 (_initialize_nto_tdep): Remove.
8140 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8142 2019-05-08 Tom Tromey <tom@tromey.com>
8144 * ada-lang.c (struct ada_inferior_data): Add initializers.
8145 (ada_inferior_data): Change type.
8146 (ada_inferior_data_cleanup): Remove.
8147 (get_ada_inferior_data, ada_inferior_exit)
8148 (struct ada_pspace_data): Add initializers, destructor.
8149 (ada_pspace_data_handle): Change type.
8150 (get_ada_pspace_data): Update.
8151 (ada_pspace_data_cleanup): Remove.
8153 2019-05-08 Tom Tromey <tom@tromey.com>
8155 * coffread.c (struct coff_symfile_info): Add initializers.
8156 (coff_objfile_data_key): Move lower. Change type.
8157 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8159 (coff_free_info): Remove.
8161 2019-05-08 Tom Tromey <tom@tromey.com>
8163 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8164 (fbsd_pspace_data_handle): Move lower. Change type.
8165 (get_fbsd_pspace_data): Update.
8166 (fbsd_pspace_data_cleanup): Remove.
8167 (_initialize_fbsd_tdep): Update.
8169 2019-05-08 Tom Tromey <tom@tromey.com>
8171 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8172 (get_ada_tasks_pspace_data): Update.
8173 (ada_tasks_pspace_data_cleanup): Remove.
8174 (_initialize_tasks): Update.
8175 (ada_tasks_inferior_data_handle): Change type.
8176 (get_ada_tasks_inferior_data): Update.
8177 (ada_tasks_inferior_data_cleanup): Remove.
8178 (struct ada_tasks_pspace_data): Add initializers.
8180 2019-05-08 Tom Tromey <tom@tromey.com>
8182 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8183 * symfile-debug.c (debug_sym_get_probes): Change type.
8184 * stap-probe.c (handle_stap_probe):
8185 (stap_static_probe_ops::get_probes): Change type.
8186 * probe.h (class static_probe_ops) <get_probes>: Change type.
8187 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8188 (parse_probes_in_pspace): Update.
8189 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8191 (any_static_probe_ops::get_probes): Change type.
8192 * elfread.c (elfread_data): New typedef.
8193 (probe_key): Change type.
8194 (elf_get_probes): Likewise. Update.
8195 (probe_key_free): Remove.
8196 (_initialize_elfread): Update.
8197 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8199 (dtrace_process_dof_probe, dtrace_process_dof)
8200 (dtrace_static_probe_ops::get_probe): Change type.
8202 2019-05-08 Tom Tromey <tom@tromey.com>
8204 * xcoffread.c (struct xcoff_symfile_info): Rename from
8205 coff_symfile_info. Add initializers.
8206 (xcoff_objfile_data_key): Move lower. Change type.
8207 (XCOFF_DATA): Rewrite.
8208 (xcoff_free_info): Remove.
8209 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8210 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8211 (xcoff_initial_scan): Update.
8213 2019-05-08 Tom Tromey <tom@tromey.com>
8215 * solib-svr4.c (struct svr4_info): Add initializers and
8217 <probes_table>: Now an htab_up.
8218 (solib_svr4_pspace_data): Change type.
8219 (free_probes_table): Simplify.
8220 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8221 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8222 (probes_table_remove_objfile_probes, register_solib_event_probe)
8223 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8224 (_initialize_svr4_solib): Update.
8226 2019-05-08 Tom Tromey <tom@tromey.com>
8228 * remote.c (remote_pspace_data): Change type.
8229 (remote_pspace_data_cleanup): Remove.
8230 (get_remote_exec_file, set_pspace_remote_exec_file)
8231 (_initialize_remote): Update.
8233 2019-05-08 Tom Tromey <tom@tromey.com>
8235 * breakpoint.c (breakpoint_objfile_key): Change type.
8236 (get_breakpoint_objfile_data): Update.
8237 (free_breakpoint_objfile_data): Remove.
8238 (_initialize_breakpoint): Update.
8240 2019-05-08 Tom Tromey <tom@tromey.com>
8242 * linux-tdep.c (struct linux_info): Add initializers.
8243 (linux_inferior_data): Move. Change type.
8244 (invalidate_linux_cache_inf): Update.
8245 (linux_inferior_data_cleanup): Remove.
8246 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8248 2019-05-08 Tom Tromey <tom@tromey.com>
8250 * auxv.c (auxv_inferior_data): Move. Change type.
8251 (auxv_inferior_data_cleanup): Remove.
8252 (invalidate_auxv_cache_inf): Rewrite.
8253 (get_auxv_inferior_data, _initialize_auxv): Update.
8255 2019-05-08 Tom Tromey <tom@tromey.com>
8257 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8258 (symfile_debug_objfile_data_key): Change type.
8259 (symfile_debug_installed, debug_qf_has_symbols)
8260 (debug_qf_find_last_source_symtab)
8261 (debug_qf_forget_cached_source_info)
8262 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8263 (debug_qf_print_stats, debug_qf_dump)
8264 (debug_qf_expand_symtabs_for_function)
8265 (debug_qf_expand_all_symtabs)
8266 (debug_qf_expand_symtabs_with_fullname)
8267 (debug_qf_map_matching_symbols)
8268 (debug_qf_expand_symtabs_matching)
8269 (debug_qf_find_pc_sect_compunit_symtab)
8270 (debug_qf_map_symbol_filenames)
8271 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8272 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8273 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8274 (debug_sym_read_linetable, debug_sym_relocate): Update.
8275 (symfile_debug_free_objfile): Remove.
8276 (install_symfile_debug_logging, _initialize_symfile_debug):
8279 2019-05-08 Tom Tromey <tom@tromey.com>
8281 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8282 allocate_on_obstack.
8283 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8284 (get_dwarf2_per_objfile): Update.
8285 (set_dwarf2_per_objfile): Remove.
8286 (dwarf2_has_info, dwarf2_get_section_info): Update.
8287 (dwarf2_free_objfile): Remove.
8288 (_initialize_dwarf2_read): Update.
8290 2019-05-08 Tom Tromey <tom@tromey.com>
8292 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8294 <unsupported_script_warning_printed,
8295 script_not_found_warning_printed>: Now bool.
8296 (auto_load_pspace_data): Change type.
8297 (~auto_load_pspace_info): Rename from
8298 auto_load_pspace_data_cleanup.
8299 (get_auto_load_pspace_data, init_loaded_scripts_info)
8300 (clear_section_scripts, maybe_print_unsupported_script_warning)
8301 (maybe_print_script_not_found_warning, _initialize_auto_load):
8304 2019-05-08 Tom Tromey <tom@tromey.com>
8306 * objfiles.c (objfile_pspace_info): Add destructor and
8308 (objfiles_pspace_data): Change type.
8309 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8310 (get_objfile_pspace_data): Update.
8311 (objfiles_bfd_data): Change type.
8312 (get_objfile_bfd_data): Update.
8313 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8315 2019-05-08 Tom Tromey <tom@tromey.com>
8317 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8319 (get_catch_syscall_inferior_data): Update.
8320 (catch_syscall_inferior_data_cleanup): Remove.
8321 (_initialize_break_catch_syscall): Update.
8323 2019-05-08 Tom Tromey <tom@tromey.com>
8325 * inflow.c (struct terminal_info): Add destructor and
8327 (inflow_inferior_data): Change type.
8328 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8329 (get_inflow_inferior_data, inflow_inferior_exit)
8330 (swap_terminal_info, _initialize_inflow): Update.
8332 2019-05-08 Tom Tromey <tom@tromey.com>
8334 * target-dcache.c (target_dcache_cleanup): Remove.
8335 (target_dcache_aspace_key): Change type.
8336 (target_dcache_init_p, target_dcache_invalidate)
8337 (target_dcache_get, target_dcache_get_or_init)
8338 (_initialize_target_dcache): Update.
8339 * dcache.h (struct dcache_deleter): New.
8341 2019-05-08 Tom Tromey <tom@tromey.com>
8343 * symtab.c (struct symbol_cache): Add destructor and
8345 (symbol_cache_key): Move. Change type.
8346 (make_symbol_cache, free_symbol_cache): Remove.
8347 (get_symbol_cache): Update.
8348 (symbol_cache_cleanup): Remove.
8349 (ALL_PSPACES, symbol_cache_flush)
8350 (maintenance_print_symbol_cache)
8351 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8354 2019-05-08 Tom Tromey <tom@tromey.com>
8356 * symtab.c (struct main_info): Add destructor and initializers.
8357 (main_progspace_key): Move. Change type.
8358 (get_main_info): Update.
8359 (main_info_cleanup): Remove.
8360 (_initialize_symtab): Update.
8362 2019-05-08 Tom Tromey <tom@tromey.com>
8364 * registry.h (DECLARE_REGISTRY): Define the _key class.
8366 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8368 * NEWS: Merge two 'New commands' sections.
8370 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8372 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8373 parameter and use Ada language definition instead.
8374 (ada_val_print_ptr): Remove unused language parameter.
8375 (ada_val_print_num): Remove language parameter and use Ada language
8377 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8379 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8380 parameter and use Ada language definition instead.
8381 (ada_val_print_1): Update all ada_val_print_xxx calls.
8382 Remove language parameter.
8383 (ada_val_print): Update ada_val_print_1 call.
8385 2019-05-08 Tom Tromey <tromey@adacore.com>
8387 * remote.c (remote_hw_watchpoint_limit)
8388 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8391 2019-05-08 Tom Tromey <tromey@adacore.com>
8393 * maint.c (_initialize_maint_cmds): Move initialization code to
8395 (watchdog, show_watchdog): Move to remote.c.
8396 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8398 (_initialize_remote): Move initialization code from maint.c.
8399 * defs.h (watchdog): Don't declare.
8401 2019-05-08 Tom Tromey <tromey@adacore.com>
8403 * tui/tui-interp.c: Include main.h.
8404 * interps.c: Include main.h.
8405 * main.h (interpreter_p): Declare.
8406 * defs.h (interpreter_p): Don't declare.
8408 2019-05-08 Tom Tromey <tromey@adacore.com>
8410 * dwarf2loc.c: Include dwarf2read.h.
8411 * defs.h (read_unsigned_leb128): Don't declare.
8412 * dwarf2read.h (read_unsigned_leb128): Declare.
8414 2019-05-08 Tom Tromey <tromey@adacore.com>
8416 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8419 2019-05-08 Tom Tromey <tromey@adacore.com>
8421 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8422 when no wrap column is set.
8424 2019-05-08 Tom Tromey <tromey@adacore.com>
8426 * c-lang.c (c_get_string): Handle non-C-style arrays.
8428 2019-05-08 Tom Tromey <tromey@adacore.com>
8430 * typeprint.c (print_offset_data::update): Print the bit offset,
8431 not the number of bits remaining.
8433 2019-05-08 Tom Tromey <tromey@adacore.com>
8435 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8436 padding at end of comment.
8438 2019-05-08 Tom Tromey <tromey@adacore.com>
8440 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8443 2019-05-06 Tom Tromey <tom@tromey.com>
8445 * common/scoped_mmap.c: Include common-defs.h.
8446 * common/scoped_mmap.h: Don't include config.h.
8448 2019-05-04 Tom Tromey <tom@tromey.com>
8450 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8451 (struct aarch64_call_info): Add initializers.
8452 <si>: Now a std::vector.
8453 (pass_on_stack, aarch64_push_dummy_call): Update.
8455 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8456 Tom Tromey <tom@tromey.com>
8458 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8459 (ppc_threads): Now a std::vector. Now static.
8460 (hwdebug_find_thread_points_by_tid)
8461 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8464 2019-05-04 Tom Tromey <tom@tromey.com>
8466 * arc-tdep.c (arc_tdesc_init): Return bool.
8468 2019-05-04 Tom Tromey <tom@tromey.com>
8470 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8471 Use gdb_assert_not_reached.
8473 2019-05-04 Tom Tromey <tom@tromey.com>
8475 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8478 2019-05-04 Tom Tromey <tom@tromey.com>
8480 * arc-tdep.c (arc_tdesc_init): Use bool.
8482 2019-05-04 Tom Tromey <tom@tromey.com>
8484 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8486 2019-05-04 Tom Tromey <tom@tromey.com>
8488 * cli/cli-cmds.c (valid_command_p): Return bool.
8490 2019-05-04 Tom Tromey <tom@tromey.com>
8492 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8493 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8495 2019-05-04 Raul Tambre <raul@tambre.ee>
8497 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8498 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8499 operator for comparison.
8501 2019-05-04 Tom Tromey <tom@tromey.com>
8503 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8504 (lookup_partial_symbol, print_partial_symbols)
8505 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8506 (psymbol_compare): Update.
8507 (add_psymbol_to_bcache): Clear the entire psymbol.
8508 (maintenance_check_psymtabs): Update.
8509 * psympriv.h (struct partial_symbol): Don't derive from
8510 general_symbol_info.
8511 <obj_section, unrelocated_address, address,
8512 set_unrelocated_address>: Update.
8513 <ginfo>: New member.
8514 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8515 (debug_names::write_psymbols): Update.
8517 2019-05-04 Tom de Vries <tdevries@suse.de>
8519 * contrib/cc-with-tweaks.sh: Support -n arg.
8521 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8523 * corelow.c (core_target::detach): Ensure frame cache and
8524 register caches are cleared.
8525 inferior.c (exit_inferior_1): Likewise.
8527 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8528 Tom Tromey <tom@tromey.com>
8530 * dictionary.c (collate_pending_symbols_by_language): Remove
8531 "struct" from foreach.
8532 * symtab.c (lookup_global_symbol_from_objfile)
8533 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8535 * ser-tcp.c (net_open): Remove "struct" from foreach.
8536 * objfiles.c (objfile_relocate, objfile_rebase)
8537 (objfile_has_symbols): Remove "struct" from foreach.
8538 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8540 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8542 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8543 "struct" from foreach.
8544 * ada-lang.c (create_excep_cond_exprs)
8545 (ada_exception_catchpoint_cond_string): Remove "struct" from
8548 2019-05-03 Tom Tromey <tromey@adacore.com>
8550 * ada-exp.y (convert_char_literal): Check suffix of each
8553 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8556 * ada-exp.y (yywrap): Don't define.
8557 * ada-lex.l (%option): Add noyywrap
8560 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8562 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8563 _WIN32_WINNT to the XP level, unless already defined to a higher
8566 * unittests/parse-connection-spec-selftests.c:
8568 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8571 * symfile.c (find_separate_debug_file): Remove colon from the
8572 drive spec of DOS/Windows file names of the target, so that the
8573 file name produced from DEBUGDIR and the target's directory will
8574 be valid on DOS/Windows systems.
8576 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8578 * rust-lang.c (val_print_struct): Handle printing structures
8581 2019-05-02 Tom Tromey <tromey@adacore.com>
8583 * valarith.c (_initialize_valarith): Remove.
8585 2019-05-01 Tom Tromey <tromey@adacore.com>
8587 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8590 2019-05-01 Tom Tromey <tromey@adacore.com>
8592 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8593 for big-endian copies.
8595 2019-04-30 Ali Tamur <tamur@google.com>
8596 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8597 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8598 (read_3_bytes): New function.
8600 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8602 * windows-nat.c (main_thread_id): Delete.
8603 (handle_output_debug_string): Replace main_thread_id by
8604 current_event.dwThreadId.
8605 (fake_create_process): Likewise.
8606 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8607 Do not set main_thread_id.
8608 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8609 current_event.dwThreadId.
8610 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8612 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8614 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8615 Use current_event.dwThreadId instead of main_thread_id.
8617 2019-04-30 Tom Tromey <tromey@adacore.com>
8619 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8620 (create_excep_cond_exprs): Iterate over program spaces.
8621 (ada_exception_catchpoint_cond_string): Examine all minimal
8622 symbols for exception types.
8624 2019-04-30 Tom Tromey <tromey@adacore.com>
8627 * dwarf2read.c (process_structure_scope): Handle case where type
8628 has template parameters but no symbol was created.
8630 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8631 Chris January <chris.january@arm.com>
8633 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8635 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8637 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8639 * f-typeprint.c (f_print_type): Update rules for printing
8641 (f_type_print_varspec_suffix): Likewise.
8643 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8644 Chris January <chris.january@arm.com>
8646 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8649 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8651 * f-lang.c (build_fortran_types): Change name of void type to
8653 * f-typeprint.c (f_type_print_base): Print the name of the void
8654 type, rather than a fixed string.
8655 * f-valprint.c (f_decorations): Use lower case void string.
8657 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8658 Chris January <chris.january@arm.com>
8660 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8663 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8664 Chris January <chris.january@arm.com>
8665 David Lecomber <david.lecomber@arm.com>
8667 * f-exp.y (BINOP_INTRINSIC): New token.
8668 (exp): New parser rule handling BINOP_INTRINSIC.
8669 (f77_keywords): Add new builtin procedures.
8670 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8671 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8672 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8673 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8674 (print_unop_subexp_f): New function.
8675 (print_binop_subexp_f): New function.
8676 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8677 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8678 (dump_subexp_body_f): Likewise.
8679 (operator_check_f): Likewise.
8680 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8681 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8683 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8685 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8687 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8688 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8689 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8690 (operator_length_f): New fuction.
8691 (print_subexp_f): New function.
8692 (op_name_f): New function.
8693 (dump_subexp_body_f): New function.
8694 (operator_check_f): New function.
8695 (exp_descriptor_f): Replace standard expression handling functions
8697 * gdb/fortran-operator.def: New file.
8698 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8699 * gdb/std-operator.def: Remove UNOP_KIND.
8701 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8703 * std-operator.def: Remove unbalanced, stray double quote
8706 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8707 Chris January <chris.january@arm.com>
8708 Daniel Everett <daniel.everett@arm.com>
8709 Nick Forrington <nick.forrington@arm.com>
8710 Richard Bunt <richard.bunt@arm.com>
8712 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8713 of depth when printing anonymous structs or unions.
8714 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8715 Don't print either the top-level value, or the children if the
8716 max-depth is exceeded.
8717 (ppscm_print_children): When printing the key of a map, allow one
8718 extra level of depth.
8719 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8720 print either the top-level value, or the children if the max-depth
8722 (print_children): When printing the key of a map, allow one extra
8724 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8725 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8726 (user_print_options): Initialise max_depth field.
8727 (val_print_scalar_or_string_type_p): New function.
8728 (val_print): Check to see if the max depth has been reached.
8729 (val_print_check_max_depth): Define new function.
8730 (show_print_max_depth): New function.
8731 (_initialize_valprint): Add 'print max-depth' option.
8732 * valprint.h (struct value_print_options) <max_depth>: New field.
8733 (val_print_check_max_depth): Declare new function.
8734 * NEWS: Document new feature.
8736 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8738 * ada-lang.c (ada_language_defn): Initialise new field.
8739 * c-lang.c (c_is_string_type_p): New function.
8740 (c_language_defn): Initialise new field.
8741 (cplus_language_defn): Initialise new field.
8742 (asm_language_defn): Initialise new field.
8743 (minimal_language_defn): Initialise new field.
8744 * c-lang.h (c_is_string_type_p): Declare new function.
8745 * d-lang.c (d_language_defn): Initialise new field.
8746 * f-lang.c (f_is_string_type_p): New function.
8747 (f_language_defn): Initialise new field.
8748 * go-lang.c (go_is_string_type_p): New function.
8749 (go_language_defn): Initialise new field.
8750 * language.c (default_is_string_type_p): New function.
8751 (unknown_language_defn): Initialise new field.
8752 (auto_language_defn): Initialise new field.
8753 * language.h (struct language_defn) <la_is_string_type_p>: New
8755 (default_is_string_type_p): Declare new function.
8756 * m2-lang.c (m2_language_defn): Initialise new field.
8757 * objc-lang.c (objc_language_defn): Initialise new field.
8758 * opencl-lang.c (opencl_language_defn): Initialise new field.
8759 * p-lang.c (pascal_is_string_type_p): New function.
8760 (pascal_language_defn): Initialise new field.
8761 * rust-lang.c (rust_is_string_type_p): New function.
8762 (rust_language_defn): Initialise new field.
8764 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8766 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8768 * ada-lang.c (ada_language_defn): Initialise new field.
8769 * c-lang.c (c_language_defn): Likewise.
8770 (cplus_language_defn): Likewise.
8771 (asm_language_defn): Likewise.
8772 (minimal_language_defn): Likewise.
8773 * d-lang.c (d_language_defn): Likewise.
8774 * f-lang.c (f_language_defn): Likewise.
8775 * go-lang.c (go_language_defn): Likewise.
8776 * language.c (unknown_language_defn): Likewise.
8777 (auto_language_defn): Likewise.
8778 * m2-lang.c (m2_language_defn): Likewise.
8779 * objc-lang.c (objc_language_defn): Likewise.
8780 * opencl-lang.c (opencl_language_defn): Likewise.
8781 * p-lang.c (pascal_language_defn): Likewise.
8782 * rust-lang.c (rust_language_defn): Likewise.
8784 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8786 * ada-lang.c (ada_is_character_type): Change return type to bool.
8787 (ada_is_string_type): Likewise.
8788 * ada-lang.h (ada_is_character_type): Update declaration
8789 (ada_is_string_type): Likewise.
8791 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793 Support style in 'frame|thread apply'
8795 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8796 * record.c (record_start, record_stop): Update callers of
8797 execute_command_to_string with false.
8798 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8799 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8801 (class string_file): New constructor with term_out parameter.
8802 Override methods term_out and can_emit_style_escape. New member
8804 (class stdio_file): Override can_emit_style_escape.
8805 (class tee_file): Override term_out and can_emit_style_escape.
8806 * utils.h (can_emit_style_escape): Remove.
8807 * utils.c (can_emit_style_escape): Likewise.
8808 Update all callers of can_emit_style_escape (SOMESTREAM) to
8809 SOMESTREAM->can_emit_style_escape.
8810 * source-cache.c (source_cache::get_source_lines): Likewise.
8811 * stack.c (frame_apply_command_count): Call execute_command_to_string
8812 passing the term_out characteristic of the current gdb_stdout.
8813 * thread.c (thr_try_catch_cmd): Likewise.
8814 * top.c (execute_command_to_string): pass term_out parameter
8815 to construct the string_file for the command output.
8816 * ui-file.c (term_cli_styling): New function (most code moved
8817 from utils.c can_emit_style_escape).
8818 (string_file::string_file, string_file::can_emit_style_escape,
8819 stdio_file::can_emit_style_escape, tee_file::term_out,
8820 tee_file::can_emit_style_escape): New functions.
8822 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8824 * NEWS: Mention the new set|show may-call-functions.
8825 * infcall.c (may_call_functions_p): New variable.
8826 (show_may_call_functions_p): New function.
8827 (call_function_by_hand_dummy): Throws an error if not
8829 (_initialize_infcall): Call add_setshow_boolean_cmd for
8832 2019-04-25 Keith Seitz <keiths@redhat.com>
8835 * cp-support.c (inspect_type): Don't attempt substitutions
8836 of symbol with the same name.
8838 2019-04-25 Tom Tromey <tromey@adacore.com>
8841 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8844 2019-04-25 Tom Tromey <tromey@adacore.com>
8846 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8848 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8849 (gdb_xml_parser::parse): Use std::move.
8850 * python/python-internal.h (gdbpy_convert_exception): Take a const
8852 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8854 * python/py-utils.c (gdbpy_convert_exception): Take a const
8856 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8858 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8860 * mi/mi-main.c (mi_print_exception): Take a const reference.
8861 * main.c (handle_command_errors): Take a const reference.
8862 * linespec.c (parse_linespec): Use std::move.
8863 * infcall.c (run_inferior_call): Use std::move.
8864 (call_function_by_hand_dummy): Use std::move.
8865 * exec.c (try_open_exec_file): Use std::move.
8866 * exceptions.h (exception_print, exception_fprintf)
8867 (exception_print_same): Update.
8868 * exceptions.c (print_exception, exception_print)
8869 (exception_fprintf, exception_print_same): Change parameters to
8871 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8872 * common/new-op.c: Use std::move.
8873 * common/common-exceptions.h (struct gdb_exception): Add move
8875 (struct gdb_exception_error, struct gdb_exception_quit, struct
8876 gdb_quit_bad_alloc): Change constructor to move constructor.
8877 (throw_exception): Change parameter to rvalue reference.
8878 * common/common-exceptions.c (throw_exception): Take rvalue
8880 * cli/cli-interp.c (safe_execute_command): Use std::move.
8881 * breakpoint.c (insert_bp_location, location_to_sals): Use
8884 2019-04-25 Tom Tromey <tromey@adacore.com>
8886 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8887 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8888 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8889 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8890 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8891 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8892 guile/scm-value.c: Use unpack.
8893 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8894 gdbscm_gdb_exception.
8895 (gdbscm_throw_gdb_exception): Likewise.
8896 (struct gdbscm_gdb_exception): New.
8897 (unpack): New function.
8898 (gdbscm_wrap): Use unpack.
8900 2019-04-25 Tom Tromey <tromey@adacore.com>
8902 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8903 (gdb_rl_callback_handler): Use std::move.
8904 * common/common-exceptions.h (struct gdb_exception): Add move
8905 assignment operator.
8906 (throw_exception_sjlj): Change "exception" to const reference.
8907 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8908 (throw_exception_sjlj): Change "exception" to const reference.
8910 2019-04-25 Tom Tromey <tromey@adacore.com>
8912 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8913 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8914 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8916 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8918 * mi/mi-interp.c (mi_interp::exec): Update.
8919 * linespec.c (parse_linespec): Update.
8920 * infcall.c (run_inferior_call): Update.
8921 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8922 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8923 (gdbscm_lookup_global_symbol): Update.
8924 * guile/scm-param.c (gdbscm_parameter_value): Update.
8925 * guile/scm-frame.c (gdbscm_frame_read_register)
8926 (gdbscm_frame_read_var): Update.
8927 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8928 * exec.c (try_open_exec_file): Update.
8929 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8930 (gdb_rl_callback_handler): Update.
8931 * common/common-exceptions.h (exception_none): Don't declare.
8932 * common/common-exceptions.c (exception_none): Don't define.
8933 (struct catcher) <exception>: Update.
8934 * cli/cli-interp.c (safe_execute_command): Update.
8935 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8937 2019-04-25 Ali Tamur <tamur@google.com>
8939 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8940 (read_attribute_value): Likewise.
8941 (dwarf2_read_addr_index): Update comment.
8942 (read_str_index): Add DW_FORM_strx.
8943 (dwarf2_string_attr): Likewise.
8944 (dwarf2_const_value_attr): Likewise.
8945 (dump_die_shallow): Likewise.
8946 (dwarf2_fetch_constant_bytes): Likewise.
8947 (skip_form_bytes): Likewise.
8948 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8950 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8954 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8955 OFFSET. Verify if current mapping contains an ELF header.
8956 (linux_find_memory_regions_full): Adjust call to
8959 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8960 Kang Li <kanglictf@gmail.com>
8964 * dwarf2-frame.c (read_initial_length): Be consistent about using
8965 unsigned representation of length.
8966 (decode_frame_entry_1): Likewise. Check for wraparound of
8967 end pointer as well as buffer overflow.
8969 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8971 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8974 2019-04-24 Tom Tromey <tromey@adacore.com>
8976 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8980 * s12z-tdep.c (s12z_unwind_pc): Delete.
8981 (s12z_unwind_sp): Delete.
8982 (s12z_gdbarch_init): Don't register deleted functions with
8985 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8987 * rl78-tdep.c (rl78_unwind_sp): Delete.
8988 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8990 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8992 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8993 (xstormy16_unwind_pc): Delete.
8994 (xstormy16_dummy_id): Delete.
8995 (xstormy16_gdbarch_init): Don't register deleted functions with
8998 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9000 * vax-tdep.c (vax_unwind_pc): Delete.
9001 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9003 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9005 * v850-tdep.c (v850_unwind_sp): Delete.
9006 (v850_unwind_pc): Delete.
9007 (v850_dummy_id): Delete.
9008 (v850_gdbarch_init): Don't register deleted functions with
9011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9013 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9014 (tilegx_unwind_pc): Delete.
9015 (tilegx_unwind_dummy_id): Delete.
9016 (tilegx_gdbarch_init): Don't register deleted functions with
9019 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9021 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9022 (tic6x_dummy_id): Delete.
9023 (tic6x_gdbarch_init): Don't register deleted functions with
9026 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9028 * sparc-tdep.c (sparc_unwind_pc): Delete.
9029 (sparc32_gdbarch_init): Don't register deleted function with
9032 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9034 * sh-tdep.c (sh_unwind_sp): Delete.
9035 (sh_unwind_pc): Delete.
9036 (sh_dummy_id): Delete.
9037 (sh_gdbarch_init): Don't register deleted functions with
9040 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9042 * score-tdep.c (score_unwind_sp): Delete.
9043 (score_unwind_pc): Delete.
9044 (score_dummy_id): Delete.
9045 (score_gdbarch_init): Don't register deleted functions with
9048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9050 * rx-tdep.c (rx_unwind_pc): Delete.
9051 (rx_unwind_sp): Delete.
9052 (rx_dummy_id): Delete.
9053 (rx_gdbarch_init): Don't register deleted functions with
9054 gdbarch. Update comment.
9056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9058 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9059 (rs6000_dummy_id): Delete.
9060 (rs6000_gdbarch_init): Don't register deleted functions with
9063 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9065 * or1k-tdep.c (or1k_dummy_id): Delete.
9066 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070 * nios2-tdep.c (nios2_dummy_id): Delete.
9071 (nios2_unwind_sp): Delete.
9072 (nios2_gdbarch_init): Don't register deleted functions with
9075 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9077 * nds32-tdep.c (nds32_dummy_id): Delete.
9078 (nds32_unwind_pc): Delete.
9079 (nds32_unwind_sp): Delete.
9080 (nds32_gdbarch_init): Don't register deleted functions with
9083 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9085 * msp430-tdep.c (msp430_unwind_pc): Delete.
9086 (msp430_unwind_sp): Delete.
9087 (msp430_dummy_id): Delete.
9088 (msp430_gdbarch_init): Don't register deleted functions with
9091 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9093 * moxie-tdep.c (moxie_unwind_sp): Delete.
9094 (moxie_unwind_pc): Delete.
9095 (moxie_dummy_id): Delete.
9096 (moxie_gdbarch_init): Don't register deleted functions with
9099 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9101 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9102 (mn10300_unwind_pc): Delete.
9103 (mn10300_unwind_sp): Delete.
9104 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9106 (mn10300_frame_unwind_init): Don't register deleted functions with
9109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9111 * mep-tdep.c (mep_unwind_pc): Delete.
9112 (mep_unwind_sp): Delete.
9113 (mep_dummy_id): Delete.
9114 (mep_gdbarch_init): Don't register deleted functions with
9117 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9119 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9120 (m68hc11_unwind_sp): Delete.
9121 (m68hc11_gdbarch_init): Don't register deleted functions with
9124 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9126 * m32r-tdep.c (m32r_unwind_sp): Delete.
9127 (m32r_unwind_pc): Delete.
9128 (m32r_dummy_id): Delete.
9129 (m32r_gdbarch_init): Don't register deleted functions with
9132 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9134 * m32c-tdep.c (m32c_unwind_pc): Delete.
9135 (m32c_unwind_sp): Delete.
9136 (m32c_dummy_id): Delete.
9137 (m32c_gdbarch_init): Don't register deleted functions with
9140 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9142 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9143 (lm32_unwind_pc): Delete.
9144 (lm32_dummy_id): Delete.
9145 (lm32_gdbarch_init): Don't register deleted functions with
9148 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9150 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9151 (iq2000_unwind_pc): Delete.
9152 (iq2000_dummy_id): Delete.
9153 (iq2000_gdbarch_init): Don't register deleted functions with
9156 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9158 * nds32-tdep.c (nds32_type_align): Delete.
9159 (nds32_push_dummy_call): Use type_align instead.
9161 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9163 * arm-tdep.c (arm_type_align): Only handle vector override case.
9164 (arm_push_dummy_call): Use type_align.
9165 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9167 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9169 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9171 (pass_on_stack): Use type_align.
9172 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9175 2019-04-23 Tom Tromey <tromey@adacore.com>
9177 * dwarf2read.c (line_header::file_name_at): Remove unused
9180 2019-04-23 Tom de Vries <tdevries@suse.de>
9183 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9187 2019-03-27 Ali Tamur <tamur@google.com>
9189 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9190 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9191 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9192 (dwarf_expr_context::get_addr_index): Likewise
9193 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9194 (symbol_needs_eval_context::get_addr_index): Likewise
9195 (disassemble_dwarf_expression): Add DW_OP_addrx
9196 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9197 (read_cutu_die_from_dwo): Update comment
9198 (skip_one_die): Add DW_FORM_addrx
9199 (read_attribute_value): Likewise
9200 (var_decode_location): Add DW_OP_addrx
9201 (dwarf2_const_value_attr): Add DW_FORM_addrx
9202 (dump_die_shallow): Likewise
9203 (dwarf2_fetch_constant_bytes): Likewise
9204 (decode_locdesc): Add DW_OP_addrx
9205 (skip_form_bytes): Add DW_FORM_addrx
9207 2019-04-22 Ali Tamur <tamur@google.com>
9209 * MAINTAINERS (Write After Approval): Add self.
9211 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9213 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9214 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9215 (open_symbol_file_object): Likewise.
9216 (svr4_default_sos): Add info parameter.
9217 (svr4_read_so_list): Likewise.
9218 (svr4_current_sos_direct): Adjust functions calls to pass down
9220 (svr4_current_sos_1): Add info parameter.
9221 (svr4_current_sos): Call get_svr4_info, pass info down to
9223 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9225 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9227 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9229 (probes_table_remove_objfile_probes): Likewise.
9230 (register_solib_event_probe): Add info parameter.
9231 (solist_update_incremental): Pass info parameter down to
9233 (disable_probes_interface): Add info parameter.
9234 (svr4_handle_solib_event): Pass current_program_space to
9235 get_svr4_info. Adjust disable_probes_interface cleanup.
9236 (svr4_create_probe_breakpoints): Add info parameter, pass it
9237 down to register_solib_event_probe.
9238 (svr4_create_solib_event_breakpoints): Add info parameter,
9239 pass it down to svr4_create_probe_breakpoints.
9240 (enable_break): Pass info down to
9241 svr4_create_solib_event_breakpoints.
9242 (svr4_solib_create_inferior_hook): Pass current_program_space to
9244 (svr4_clear_solib): Likewise.
9246 2019-04-22 Pedro Alves <palves@redhat.com>
9248 * solib-svr4.c (svr4_free_objfile_observer): New.
9249 (probe_and_action::objfile): New field.
9250 (probes_table_htab_remove_objfile_probes)
9251 (probes_table_remove_objfile_probes): New functions.
9252 (register_solib_event_probe): Add 'objfile' parameter. Store it
9253 in the new probe_and_action. Don't store the probe in 'lookup'.
9254 (svr4_create_probe_breakpoints): Pass objfile to
9255 register_solib_event_probe.
9256 (_initialize_svr4_solib): Register a free_objfile observer.
9258 2019-04-19 Tom Tromey <tom@tromey.com>
9260 * common/queue.h: Remove.
9262 2019-04-19 Tom Tromey <tom@tromey.com>
9264 * event-loop.c: Don't include "common/queue.h".
9266 2019-04-19 Tom Tromey <tom@tromey.com>
9268 * remote.c (remote_target): Use delete.
9269 * remote-notif.h: Include <list>, not "common/queue.h".
9270 (notif_client_p): Remove typedef.
9271 (remote_notif_state): Add constructor, destructor, initializer.
9272 <notif_queue>: Now a std::list.
9273 (remote_notif_state_xfree): Don't declare.
9274 * remote-notif.c (remote_notif_process, handle_notification)
9275 (remote_notif_state_allocate): Update.
9276 (~remote_notif_state): Rename from remote_notif_state_xfree.
9278 2019-04-19 Tom Tromey <tom@tromey.com>
9280 * symfile.c (reread_symbols): Update.
9281 * objfiles.c (objfile_register_static_link)
9282 (objfile_lookup_static_link): Update
9283 (~objfile) Don't delete static_links.
9284 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9286 2019-04-19 Tom Tromey <tom@tromey.com>
9288 * type-stack.h (struct type_stack) <insert>: Constify string.
9289 * type-stack.c (type_stack::insert): Constify string.
9290 * gdbtypes.h (lookup_template_type): Update.
9291 (address_space_name_to_int): Update.
9292 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9294 (lookup_template_type): Make name const.
9295 * c-exp.y: Update rules.
9296 (lex_one_token, classify_name, classify_inner_name)
9297 (c_print_token): Update.
9298 * p-exp.y: Update rules.
9300 * f-exp.y: Update rules.
9302 * d-exp.y: Update rules.
9303 (lex_one_token, classify_name, classify_inner_name): Update.
9304 * parse.c (write_dollar_variable, copy_name): Return std::string.
9305 * parser-defs.h (copy_name): Change return type.
9306 * m2-exp.y: Update rules.
9308 * go-exp.y (lex_one_token): Update.
9310 (classify_unsafe_function, classify_packaged_name)
9311 (classify_name, yylex): Update.
9313 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9315 * configure.ac: add --enable-source-highlight switch.
9316 * configure: Regenerate.
9317 * top.c (print_gdb_version): plumb --enable-source-highlight
9318 status to "show configuration".
9320 2019-04-19 Tom Tromey <tromey@adacore.com>
9322 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9324 (empty_record, ada_template_to_fixed_record_type_1)
9325 (template_to_static_fixed_type)
9326 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9327 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9328 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9331 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9334 * source.c (print_source_lines_base): Advance "iter" when a
9335 control character is seen.
9337 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9339 * inferior.h (struct infcall_suspend_state_deleter):
9340 Catch exception in destructor to avoid crash.
9342 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9344 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9345 close to the add_com "shell".
9347 2019-04-18 Tom Tromey <tromey@adacore.com>
9349 * process-stratum-target.h (class process_stratum_target)
9350 <stratum>: Add "final".
9352 2019-04-17 Tom Tromey <tromey@adacore.com>
9354 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9355 against nullptr before use.
9357 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9359 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9361 2019-04-17 Jim Wilson <jimw@sifive.com>
9362 Andrew Burgess <andrew.burgess@embecosm.com>
9364 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9365 code read might fail, assume 4-byte breakpoint in that case.
9367 2019-04-15 Leszek Swirski <leszeks@google.com>
9369 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9370 rather than a hand-rolled POD check when checking for forced MEMORY
9373 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9375 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9376 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9378 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9379 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9380 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9383 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9385 * aarch64-linux-nat.c
9386 (aarch64_linux_nat_target::thread_architecture): Add override.
9387 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9390 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9392 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9394 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9396 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9397 target types of size 96-bits, add some additional comments, and
9398 check that the builtin type we found was the correct size.
9400 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9402 * utils.c (prompt_for_continue): Don't restore the styling at the
9403 end, as applied_style has the wrong value. This fixes styling in
9404 long lists of file names that are interrupted by the "Continue?"
9407 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9409 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9410 * c-lang.c (c_language_defn): Likewise.
9411 (cplus_language_defn): Likewise.
9412 (asm_language_defn): Likewise.
9413 (minimal_language_defn): Likewise.
9414 * d-lang.c (d_language_defn): Likewise.
9415 * f-lang.c (f_language_defn): Likewise.
9416 * go-lang.c (go_language_defn): Likewise.
9417 * language.c (unknown_language_defn): Likewise.
9418 (auto_language_defn): Likewise.
9419 * language.h (struct language_defn): Remove la_magic field.
9420 (LANG_MAGIC): Delete.
9421 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9422 * objc-lang.c (objc_language_defn): Likewise.
9423 * opencl-lang.c (opencl_language_defn): Likewise.
9424 * p-lang.c (pascal_language_defn): Likewise.
9425 * rust-lang.c (rust_language_defn): Likewise.
9427 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9429 * riscv-tdep.c (riscv_type_align): New function.
9430 (riscv_type_alignment): Delete.
9431 (riscv_arg_location): Use 'type_align'.
9432 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9434 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9436 * gdbtypes.c (type_align): A struct with no non-static fields also
9439 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9441 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9443 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9445 (riscv_struct_info::analyse): New implementation using new
9446 analyse_inner member function.
9447 (riscv_struct_info::field_offset): New member function.
9448 (riscv_struct_info::m_offsets): New member variable.
9449 (riscv_struct_info::analyse_inner): New private member function,
9450 takes the old implementation of riscv_struct_info::analyse but
9451 extended to track field offsets.
9452 (riscv_call_arg_struct): Update the struct folding special cases
9453 to handle cases where empty C++ structs, which are non-zero
9455 (riscv_arg_location): Initialise the length of each location, a
9456 non-zero length now indicates the location is in use.
9457 (riscv_push_dummy_call): Allow for the first location having a
9458 non-zero offset when setting up arguments.
9459 (riscv_return_value): Likewise, but for return values.
9461 2019-04-11 Tom Tromey <tromey@adacore.com>
9463 * utils.c (internal_vproblem): Make "msg" const.
9465 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9467 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9468 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9469 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9470 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9472 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9474 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9476 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9477 of amd64_collect_native_gregset.
9478 (amd64_linux_nat_target::store_registers): Likewise.
9480 2019-04-10 Tom Tromey <tom@tromey.com>
9482 * symtab.c (lookup_global_symbol_from_objfile)
9483 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9484 * objfiles.h (class separate_debug_iterator): New.
9485 (class separate_debug_range): New.
9486 (struct objfile) <separate_debug_objfiles>: New method.
9487 (objfile_separate_debug_iterate): Don't declare.
9488 * objfiles.c (separate_debug_iterator::operator++): Rename from
9489 objfile_separate_debug_iterate.
9490 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9492 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9495 2019-04-10 Tom Tromey <tom@tromey.com>
9497 * symfile.c (reread_symbols): Remove old comment.
9498 * objfiles.c (free_all_objfiles): Fix a typo.
9500 2019-04-10 Tom Tromey <tom@tromey.com>
9502 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9503 * minsyms.c (lookup_minimal_symbol): Use foreach.
9504 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9505 (lookup_minimal_symbol_solib_trampoline): Likewise.
9506 * symfile.c (reread_symbols): Use foreach.
9508 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9509 Tom Tromey <tromey@adacore.com>
9512 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9513 (rust_lex_int_test): Change "value" to be LONGEST.
9514 (rust_lex_tests): Add test for long integer literal.
9516 2019-04-09 Tom Tromey <tromey@adacore.com>
9518 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9520 (extended_remote_target::attach): Update.
9521 (remote_target::remote_notice_new_inferior): Update.
9522 (remote_target::add_current_inferior_and_thread): Update.
9523 * inferior.c (exit_inferior_1): Use "false".
9524 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9526 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9528 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9529 the "start" command.
9531 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9533 * python/py-inferior.c (infpy_thread_from_thread_handle):
9534 Adjust comments to reflect renaming of thread_from_thread_handle
9535 to thread_from_handle. Adjust keywords. Fix type error message.
9536 (inferior_object_methods): Add thread_from_handle. Retain
9537 thread_from_thread_handle, but mark it as deprecated.
9539 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9541 * gdbthread.h (find_thread_by_handle): Revise declaration.
9542 * thread.c (find_thread_by_handle): Likewise. Adjust
9544 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9545 support for buffer objects as handles.
9547 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9549 * python/py-infthread.c (thpy_thread_handle): New function.
9550 (thread_object_methods): Register thpy_thread_handle.
9552 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9554 * gdbthread.h (thread_to_thread_handle): Declare.
9555 * thread.c (gdbtypes.h): Include.
9556 (thread_to_thread_handle): New function.
9558 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9559 (target_thread_info_to_thread_handle): Declare.
9560 * target.c (target_thread_info_to_thread_handle): New function.
9561 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9562 * target-delegates.c: Regenerate.
9564 * linux-thread-db.c (class thread_db_target): Add method
9565 thread_info_to_thread_handle.
9566 (thread_db_target::thread_info_to_thread_handle): Define.
9567 * remote.c (class remote_target): Add new method
9568 thread_info_to_thread_handle.
9569 (remote_target::thread_info_to_thread_handle): Define.
9571 2019-04-08 Pedro Alves <palves@redhat.com>
9573 * common/common-exceptions.c (throw_exception): Don't create
9574 named object to throw; throw directly.
9575 (throw_it): Likewise. Don't initialize gdb_exception::message
9576 here, with new; pass FMT and AP to the ctor instead.
9577 * common/common-exceptions.h: Include <string>.
9578 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9579 const char *, va_list)): New ctor. Use std::make_shared.
9580 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9582 (gdb_exception_error::gdb_exception_error(enum errors, const char
9584 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9586 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9588 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9589 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9592 2019-04-08 Tom Tromey <tom@tromey.com>
9594 * valops.c (value_rtti_indirect_type): Replace throw_exception
9596 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9598 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9600 * target.c (target_translate_tls_address): Replace throw_exception
9602 * stack.c (frame_apply_command_count): Replace throw_exception
9604 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9606 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9608 * rs6000-tdep.c (rs6000_frame_cache)
9609 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9610 * remote.c: Replace throw_exception with throw.
9611 * record-full.c (record_full_message, record_full_wait_1)
9612 (record_full_restore): Replace throw_exception with throw.
9614 (get_thread_current_frame_id, record_btrace_start_replaying)
9615 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9616 (cmd_record_btrace_start): Replace throw_exception with throw.
9617 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9619 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9620 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9622 (find_linespec_symbols): Replace throw_exception with throw.
9623 * infrun.c (displaced_step_prepare, resume): Replace
9624 throw_exception with throw.
9625 * infcmd.c (post_create_inferior): Replace throw_exception with
9627 * inf-loop.c (inferior_event_handler): Replace throw_exception
9629 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9630 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9631 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9632 (get_prev_frame_always, get_frame_pc_if_available)
9633 (get_frame_address_in_block_if_available, get_frame_language):
9634 Replace throw_exception with throw.
9635 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9636 throw_exception with throw.
9637 * eval.c (fetch_subexp_value, evaluate_var_value)
9638 (evaluate_funcall, evaluate_subexp_standard): Replace
9639 throw_exception with throw.
9640 * dwarf2loc.c (call_site_find_chain)
9641 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9642 Replace throw_exception with throw.
9643 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9645 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9647 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9648 * completer.c (complete_line_internal): Replace throw_exception
9650 * compile/compile-object-run.c (compile_object_run): Replace
9651 throw_exception with throw.
9652 * cli/cli-script.c (process_next_line): Replace throw_exception
9654 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9655 (btrace_enable, btrace_maint_update_pt_packets): Replace
9656 throw_exception with throw.
9657 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9658 throw_exception with throw.
9659 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9660 throw_exception with throw.
9661 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9662 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9663 * aarch64-tdep.c (aarch64_make_prologue_cache)
9664 (aarch64_make_stub_cache): Replace throw_exception with throw.
9666 2019-04-08 Tom Tromey <tom@tromey.com>
9668 * common/common-exceptions.c (throw_exception): Rename from
9669 throw_exception_cxx. Remove old copy. Make argument const.
9670 (throw_it): Create and throw exception objects directly.
9671 * common/common-exceptions.h (throw_exception): Make argument
9673 (struct gdb_exception_error): Add constructor.
9674 (struct gdb_exception_quit): Add constructor.
9676 2019-04-08 Tom Tromey <tom@tromey.com>
9678 * common/common-exceptions.h (exception_rethrow): Don't declare.
9679 (TRY_SJLJ): Update comment.
9680 (TRY, CATCH, END_CATCH): Remove.
9681 * common/common-exceptions.c (exception_rethrow): Remove.
9683 2019-04-08 Tom Tromey <tom@tromey.com>
9685 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9687 (gdb_exception_error): Rename from
9688 gdb_exception_RETURN_MASK_ERROR.
9689 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9690 (gdb_quit_bad_alloc): Update.
9691 * aarch64-tdep.c: Update.
9692 * ada-lang.c: Update.
9693 * ada-typeprint.c: Update.
9694 * ada-valprint.c: Update.
9695 * amd64-tdep.c: Update.
9696 * arch-utils.c: Update.
9697 * break-catch-throw.c: Update.
9698 * breakpoint.c: Update.
9700 * c-varobj.c: Update.
9701 * cli/cli-cmds.c: Update.
9702 * cli/cli-interp.c: Update.
9703 * cli/cli-script.c: Update.
9704 * common/common-exceptions.c: Update.
9705 * common/new-op.c: Update.
9706 * common/selftest.c: Update.
9707 * compile/compile-c-symbols.c: Update.
9708 * compile/compile-cplus-symbols.c: Update.
9709 * compile/compile-object-load.c: Update.
9710 * compile/compile-object-run.c: Update.
9711 * completer.c: Update.
9712 * corelow.c: Update.
9714 * cp-support.c: Update.
9715 * cp-valprint.c: Update.
9716 * darwin-nat.c: Update.
9717 * disasm-selftests.c: Update.
9718 * dtrace-probe.c: Update.
9719 * dwarf-index-cache.c: Update.
9720 * dwarf-index-write.c: Update.
9721 * dwarf2-frame-tailcall.c: Update.
9722 * dwarf2-frame.c: Update.
9723 * dwarf2loc.c: Update.
9724 * dwarf2read.c: Update.
9726 * event-loop.c: Update.
9727 * event-top.c: Update.
9729 * f-valprint.c: Update.
9730 * fbsd-tdep.c: Update.
9731 * frame-unwind.c: Update.
9733 * gdbtypes.c: Update.
9734 * gnu-v3-abi.c: Update.
9735 * guile/guile-internal.h: Update.
9736 * guile/scm-block.c: Update.
9737 * guile/scm-breakpoint.c: Update.
9738 * guile/scm-cmd.c: Update.
9739 * guile/scm-disasm.c: Update.
9740 * guile/scm-frame.c: Update.
9741 * guile/scm-lazy-string.c: Update.
9742 * guile/scm-math.c: Update.
9743 * guile/scm-param.c: Update.
9744 * guile/scm-ports.c: Update.
9745 * guile/scm-pretty-print.c: Update.
9746 * guile/scm-symbol.c: Update.
9747 * guile/scm-symtab.c: Update.
9748 * guile/scm-type.c: Update.
9749 * guile/scm-value.c: Update.
9750 * i386-linux-tdep.c: Update.
9751 * i386-tdep.c: Update.
9752 * inf-loop.c: Update.
9753 * infcall.c: Update.
9757 * language.c: Update.
9758 * linespec.c: Update.
9759 * linux-fork.c: Update.
9760 * linux-nat.c: Update.
9761 * linux-tdep.c: Update.
9762 * linux-thread-db.c: Update.
9764 * mi/mi-cmd-break.c: Update.
9765 * mi/mi-cmd-stack.c: Update.
9766 * mi/mi-interp.c: Update.
9767 * mi/mi-main.c: Update.
9768 * objc-lang.c: Update.
9769 * p-valprint.c: Update.
9771 * ppc-linux-tdep.c: Update.
9772 * printcmd.c: Update.
9773 * python/py-arch.c: Update.
9774 * python/py-breakpoint.c: Update.
9775 * python/py-cmd.c: Update.
9776 * python/py-finishbreakpoint.c: Update.
9777 * python/py-frame.c: Update.
9778 * python/py-framefilter.c: Update.
9779 * python/py-gdb-readline.c: Update.
9780 * python/py-inferior.c: Update.
9781 * python/py-infthread.c: Update.
9782 * python/py-lazy-string.c: Update.
9783 * python/py-linetable.c: Update.
9784 * python/py-objfile.c: Update.
9785 * python/py-param.c: Update.
9786 * python/py-prettyprint.c: Update.
9787 * python/py-progspace.c: Update.
9788 * python/py-record-btrace.c: Update.
9789 * python/py-record.c: Update.
9790 * python/py-symbol.c: Update.
9791 * python/py-type.c: Update.
9792 * python/py-unwind.c: Update.
9793 * python/py-utils.c: Update.
9794 * python/py-value.c: Update.
9795 * python/python.c: Update.
9796 * record-btrace.c: Update.
9797 * record-full.c: Update.
9798 * remote-fileio.c: Update.
9800 * riscv-tdep.c: Update.
9801 * rs6000-aix-tdep.c: Update.
9802 * rs6000-tdep.c: Update.
9803 * rust-exp.y: Update.
9804 * rust-lang.c: Update.
9805 * s390-tdep.c: Update.
9806 * selftest-arch.c: Update.
9807 * solib-dsbt.c: Update.
9808 * solib-frv.c: Update.
9809 * solib-spu.c: Update.
9810 * solib-svr4.c: Update.
9812 * sparc64-linux-tdep.c: Update.
9814 * symfile-mem.c: Update.
9815 * symmisc.c: Update.
9819 * tracefile-tfile.c: Update.
9820 * tui/tui.c: Update.
9821 * typeprint.c: Update.
9822 * unittests/cli-utils-selftests.c: Update.
9823 * unittests/parse-connection-spec-selftests.c: Update.
9825 * valprint.c: Update.
9828 * windows-nat.c: Update.
9829 * x86-linux-nat.c: Update.
9830 * xml-support.c: Update.
9832 2019-04-08 Tom Tromey <tom@tromey.com>
9834 * xml-support.c: Use C++ exception handling.
9835 * x86-linux-nat.c: Use C++ exception handling.
9836 * windows-nat.c: Use C++ exception handling.
9837 * varobj.c: Use C++ exception handling.
9838 * value.c: Use C++ exception handling.
9839 * valprint.c: Use C++ exception handling.
9840 * valops.c: Use C++ exception handling.
9841 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9843 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9844 * typeprint.c: Use C++ exception handling.
9845 * tui/tui.c: Use C++ exception handling.
9846 * tracefile-tfile.c: Use C++ exception handling.
9847 * top.c: Use C++ exception handling.
9848 * thread.c: Use C++ exception handling.
9849 * target.c: Use C++ exception handling.
9850 * symmisc.c: Use C++ exception handling.
9851 * symfile-mem.c: Use C++ exception handling.
9852 * stack.c: Use C++ exception handling.
9853 * sparc64-linux-tdep.c: Use C++ exception handling.
9854 * solib.c: Use C++ exception handling.
9855 * solib-svr4.c: Use C++ exception handling.
9856 * solib-spu.c: Use C++ exception handling.
9857 * solib-frv.c: Use C++ exception handling.
9858 * solib-dsbt.c: Use C++ exception handling.
9859 * selftest-arch.c: Use C++ exception handling.
9860 * s390-tdep.c: Use C++ exception handling.
9861 * rust-lang.c: Use C++ exception handling.
9862 * rust-exp.y: Use C++ exception handling.
9863 * rs6000-tdep.c: Use C++ exception handling.
9864 * rs6000-aix-tdep.c: Use C++ exception handling.
9865 * riscv-tdep.c: Use C++ exception handling.
9866 * remote.c: Use C++ exception handling.
9867 * remote-fileio.c: Use C++ exception handling.
9868 * record-full.c: Use C++ exception handling.
9869 * record-btrace.c: Use C++ exception handling.
9870 * python/python.c: Use C++ exception handling.
9871 * python/py-value.c: Use C++ exception handling.
9872 * python/py-utils.c: Use C++ exception handling.
9873 * python/py-unwind.c: Use C++ exception handling.
9874 * python/py-type.c: Use C++ exception handling.
9875 * python/py-symbol.c: Use C++ exception handling.
9876 * python/py-record.c: Use C++ exception handling.
9877 * python/py-record-btrace.c: Use C++ exception handling.
9878 * python/py-progspace.c: Use C++ exception handling.
9879 * python/py-prettyprint.c: Use C++ exception handling.
9880 * python/py-param.c: Use C++ exception handling.
9881 * python/py-objfile.c: Use C++ exception handling.
9882 * python/py-linetable.c: Use C++ exception handling.
9883 * python/py-lazy-string.c: Use C++ exception handling.
9884 * python/py-infthread.c: Use C++ exception handling.
9885 * python/py-inferior.c: Use C++ exception handling.
9886 * python/py-gdb-readline.c: Use C++ exception handling.
9887 * python/py-framefilter.c: Use C++ exception handling.
9888 * python/py-frame.c: Use C++ exception handling.
9889 * python/py-finishbreakpoint.c: Use C++ exception handling.
9890 * python/py-cmd.c: Use C++ exception handling.
9891 * python/py-breakpoint.c: Use C++ exception handling.
9892 * python/py-arch.c: Use C++ exception handling.
9893 * printcmd.c: Use C++ exception handling.
9894 * ppc-linux-tdep.c: Use C++ exception handling.
9895 * parse.c: Use C++ exception handling.
9896 * p-valprint.c: Use C++ exception handling.
9897 * objc-lang.c: Use C++ exception handling.
9898 * mi/mi-main.c: Use C++ exception handling.
9899 * mi/mi-interp.c: Use C++ exception handling.
9900 * mi/mi-cmd-stack.c: Use C++ exception handling.
9901 * mi/mi-cmd-break.c: Use C++ exception handling.
9902 * main.c: Use C++ exception handling.
9903 * linux-thread-db.c: Use C++ exception handling.
9904 * linux-tdep.c: Use C++ exception handling.
9905 * linux-nat.c: Use C++ exception handling.
9906 * linux-fork.c: Use C++ exception handling.
9907 * linespec.c: Use C++ exception handling.
9908 * language.c: Use C++ exception handling.
9909 * jit.c: Use C++ exception handling.
9910 * infrun.c: Use C++ exception handling.
9911 * infcmd.c: Use C++ exception handling.
9912 * infcall.c: Use C++ exception handling.
9913 * inf-loop.c: Use C++ exception handling.
9914 * i386-tdep.c: Use C++ exception handling.
9915 * i386-linux-tdep.c: Use C++ exception handling.
9916 * guile/scm-value.c: Use C++ exception handling.
9917 * guile/scm-type.c: Use C++ exception handling.
9918 * guile/scm-symtab.c: Use C++ exception handling.
9919 * guile/scm-symbol.c: Use C++ exception handling.
9920 * guile/scm-pretty-print.c: Use C++ exception handling.
9921 * guile/scm-ports.c: Use C++ exception handling.
9922 * guile/scm-param.c: Use C++ exception handling.
9923 * guile/scm-math.c: Use C++ exception handling.
9924 * guile/scm-lazy-string.c: Use C++ exception handling.
9925 * guile/scm-frame.c: Use C++ exception handling.
9926 * guile/scm-disasm.c: Use C++ exception handling.
9927 * guile/scm-cmd.c: Use C++ exception handling.
9928 * guile/scm-breakpoint.c: Use C++ exception handling.
9929 * guile/scm-block.c: Use C++ exception handling.
9930 * guile/guile-internal.h: Use C++ exception handling.
9931 * gnu-v3-abi.c: Use C++ exception handling.
9932 * gdbtypes.c: Use C++ exception handling.
9933 * frame.c: Use C++ exception handling.
9934 * frame-unwind.c: Use C++ exception handling.
9935 * fbsd-tdep.c: Use C++ exception handling.
9936 * f-valprint.c: Use C++ exception handling.
9937 * exec.c: Use C++ exception handling.
9938 * event-top.c: Use C++ exception handling.
9939 * event-loop.c: Use C++ exception handling.
9940 * eval.c: Use C++ exception handling.
9941 * dwarf2read.c: Use C++ exception handling.
9942 * dwarf2loc.c: Use C++ exception handling.
9943 * dwarf2-frame.c: Use C++ exception handling.
9944 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9945 * dwarf-index-write.c: Use C++ exception handling.
9946 * dwarf-index-cache.c: Use C++ exception handling.
9947 * dtrace-probe.c: Use C++ exception handling.
9948 * disasm-selftests.c: Use C++ exception handling.
9949 * darwin-nat.c: Use C++ exception handling.
9950 * cp-valprint.c: Use C++ exception handling.
9951 * cp-support.c: Use C++ exception handling.
9952 * cp-abi.c: Use C++ exception handling.
9953 * corelow.c: Use C++ exception handling.
9954 * completer.c: Use C++ exception handling.
9955 * compile/compile-object-run.c: Use C++ exception handling.
9956 * compile/compile-object-load.c: Use C++ exception handling.
9957 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9958 * compile/compile-c-symbols.c: Use C++ exception handling.
9959 * common/selftest.c: Use C++ exception handling.
9960 * common/new-op.c: Use C++ exception handling.
9961 * cli/cli-script.c: Use C++ exception handling.
9962 * cli/cli-interp.c: Use C++ exception handling.
9963 * cli/cli-cmds.c: Use C++ exception handling.
9964 * c-varobj.c: Use C++ exception handling.
9965 * btrace.c: Use C++ exception handling.
9966 * breakpoint.c: Use C++ exception handling.
9967 * break-catch-throw.c: Use C++ exception handling.
9968 * arch-utils.c: Use C++ exception handling.
9969 * amd64-tdep.c: Use C++ exception handling.
9970 * ada-valprint.c: Use C++ exception handling.
9971 * ada-typeprint.c: Use C++ exception handling.
9972 * ada-lang.c: Use C++ exception handling.
9973 * aarch64-tdep.c: Use C++ exception handling.
9975 2019-04-08 Tom Tromey <tom@tromey.com>
9977 * xml-support.c (gdb_xml_parser::parse): Update.
9978 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9979 * value.c (show_convenience): Update.
9980 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9981 (test_parse_flags_qcs): Update.
9982 * thread.c (thr_try_catch_cmd): Update.
9983 * target.c (target_translate_tls_address): Update.
9984 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9985 (info_frame_command_core, frame_apply_command_count): Update.
9986 * rust-exp.y (rust_lex_exception_test): Update.
9987 * riscv-tdep.c (riscv_print_one_register_info): Update.
9988 * remote.c (remote_target::enable_btrace): Update.
9989 * record-btrace.c (record_btrace_enable_warn): Update.
9990 * python/py-utils.c (gdbpy_convert_exception): Update.
9991 * printcmd.c (do_one_display, print_variable_and_value): Update.
9992 * mi/mi-main.c (mi_print_exception): Update.
9993 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9994 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9995 * linux-nat.c (linux_nat_target::attach): Update.
9996 * linux-fork.c (class scoped_switch_fork_info): Update.
9997 * infrun.c (displaced_step_prepare): Update.
9998 * infcall.c (call_function_by_hand_dummy): Update.
9999 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10000 * gnu-v3-abi.c (print_one_vtable): Update.
10001 * frame.c (get_prev_frame_always): Update.
10002 * f-valprint.c (info_common_command_for_block): Update.
10003 * exec.c (try_open_exec_file): Update.
10004 * exceptions.c (print_exception, exception_print)
10005 (exception_fprintf, exception_print_same): Update.
10006 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10007 * dwarf-index-cache.c (index_cache::store)
10008 (index_cache::lookup_gdb_index): Update.
10009 * darwin-nat.c (maybe_cache_shell): Update.
10010 * cp-valprint.c (cp_print_value_fields): Update.
10011 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10012 (gcc_cplus_symbol_address): Update.
10013 * compile/compile-c-symbols.c (gcc_convert_symbol)
10014 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10015 * common/selftest.c: Update.
10016 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10018 (exception_try_scope_entry, exception_try_scope_exit): Don't
10020 (struct exception_try_scope): Remove.
10021 (TRY): Don't use exception_try_scope.
10022 (struct gdb_exception): Add constructor, operator=.
10023 <what>: New method.
10024 (struct gdb_exception_RETURN_MASK_ALL)
10025 (struct gdb_exception_RETURN_MASK_ERROR)
10026 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10027 (struct gdb_quit_bad_alloc): Update.
10028 * common/common-exceptions.c (exception_none): Change
10030 (struct catcher) <state, exception>: Initialize inline.
10031 <prev>: Remove member.
10032 (current_catcher): Remove.
10033 (catchers): New global.
10034 (exceptions_state_mc_init): Simplify.
10035 (catcher_pop): Remove.
10036 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10037 (try_scope_depth, exception_try_scope_entry)
10038 (exception_try_scope_exit): Remove.
10039 (throw_exception_sjlj): Update.
10040 (exception_messages, exception_messages_size): Remove.
10041 (throw_it): Simplify.
10042 (gdb_exception_sliced_copy): Remove.
10043 (throw_exception_cxx): Update.
10044 * cli/cli-script.c (script_from_file): Update.
10045 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10047 * ada-valprint.c (ada_val_print): Update.
10048 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10049 (create_excep_cond_exprs): Update.
10051 2019-04-08 Tom Tromey <tom@tromey.com>
10053 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10054 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10055 (TRY, CATCH, END_CATCH): Remove some definitions.
10056 * common/common-exceptions.c: Don't use GDB_XCPT.
10057 (catcher_list_size): Remove.
10058 (throw_exception, throw_it): Simplify.
10060 2019-04-05 Tom Tromey <tom@tromey.com>
10062 Revert the header-sorting patch.
10063 * ft32-tdep.c: Revert.
10064 * frv-tdep.c: Revert.
10065 * frv-linux-tdep.c: Revert.
10067 * frame-unwind.c: Revert.
10068 * frame-base.c: Revert.
10069 * fork-child.c: Revert.
10070 * findvar.c: Revert.
10071 * findcmd.c: Revert.
10072 * filesystem.c: Revert.
10073 * filename-seen-cache.h: Revert.
10074 * filename-seen-cache.c: Revert.
10075 * fbsd-tdep.c: Revert.
10076 * fbsd-nat.h: Revert.
10077 * fbsd-nat.c: Revert.
10078 * f-valprint.c: Revert.
10079 * f-typeprint.c: Revert.
10080 * f-lang.c: Revert.
10081 * extension.h: Revert.
10082 * extension.c: Revert.
10083 * extension-priv.h: Revert.
10084 * expprint.c: Revert.
10087 * exceptions.c: Revert.
10088 * event-top.c: Revert.
10089 * event-loop.c: Revert.
10091 * elfread.c: Revert.
10092 * dwarf2read.h: Revert.
10093 * dwarf2read.c: Revert.
10094 * dwarf2loc.c: Revert.
10095 * dwarf2expr.h: Revert.
10096 * dwarf2expr.c: Revert.
10097 * dwarf2-frame.c: Revert.
10098 * dwarf2-frame-tailcall.c: Revert.
10099 * dwarf-index-write.h: Revert.
10100 * dwarf-index-write.c: Revert.
10101 * dwarf-index-common.c: Revert.
10102 * dwarf-index-cache.h: Revert.
10103 * dwarf-index-cache.c: Revert.
10104 * dummy-frame.c: Revert.
10105 * dtrace-probe.c: Revert.
10106 * disasm.h: Revert.
10107 * disasm.c: Revert.
10108 * disasm-selftests.c: Revert.
10109 * dictionary.c: Revert.
10110 * dicos-tdep.c: Revert.
10111 * demangle.c: Revert.
10112 * dcache.h: Revert.
10113 * dcache.c: Revert.
10114 * darwin-nat.h: Revert.
10115 * darwin-nat.c: Revert.
10116 * darwin-nat-info.c: Revert.
10117 * d-valprint.c: Revert.
10118 * d-namespace.c: Revert.
10119 * d-lang.c: Revert.
10121 * csky-tdep.c: Revert.
10122 * csky-linux-tdep.c: Revert.
10123 * cris-tdep.c: Revert.
10124 * cris-linux-tdep.c: Revert.
10125 * cp-valprint.c: Revert.
10126 * cp-support.c: Revert.
10127 * cp-namespace.c: Revert.
10128 * cp-abi.c: Revert.
10129 * corelow.c: Revert.
10130 * corefile.c: Revert.
10131 * continuations.c: Revert.
10132 * completer.h: Revert.
10133 * completer.c: Revert.
10134 * complaints.c: Revert.
10135 * coffread.c: Revert.
10136 * coff-pe-read.c: Revert.
10137 * cli-out.h: Revert.
10138 * cli-out.c: Revert.
10139 * charset.c: Revert.
10140 * c-varobj.c: Revert.
10141 * c-valprint.c: Revert.
10142 * c-typeprint.c: Revert.
10143 * c-lang.c: Revert.
10144 * buildsym.c: Revert.
10145 * buildsym-legacy.c: Revert.
10146 * build-id.h: Revert.
10147 * build-id.c: Revert.
10148 * btrace.c: Revert.
10149 * bsd-uthread.c: Revert.
10150 * breakpoint.h: Revert.
10151 * breakpoint.c: Revert.
10152 * break-catch-throw.c: Revert.
10153 * break-catch-syscall.c: Revert.
10154 * break-catch-sig.c: Revert.
10155 * blockframe.c: Revert.
10157 * bfin-tdep.c: Revert.
10158 * bfin-linux-tdep.c: Revert.
10159 * bfd-target.c: Revert.
10160 * bcache.c: Revert.
10161 * ax-general.c: Revert.
10162 * ax-gdb.h: Revert.
10163 * ax-gdb.c: Revert.
10164 * avr-tdep.c: Revert.
10166 * auto-load.c: Revert.
10167 * arm-wince-tdep.c: Revert.
10168 * arm-tdep.c: Revert.
10169 * arm-symbian-tdep.c: Revert.
10170 * arm-pikeos-tdep.c: Revert.
10171 * arm-obsd-tdep.c: Revert.
10172 * arm-nbsd-tdep.c: Revert.
10173 * arm-nbsd-nat.c: Revert.
10174 * arm-linux-tdep.c: Revert.
10175 * arm-linux-nat.c: Revert.
10176 * arm-fbsd-tdep.c: Revert.
10177 * arm-fbsd-nat.c: Revert.
10178 * arm-bsd-tdep.c: Revert.
10179 * arch-utils.c: Revert.
10180 * arc-tdep.c: Revert.
10181 * arc-newlib-tdep.c: Revert.
10182 * annotate.h: Revert.
10183 * annotate.c: Revert.
10184 * amd64-windows-tdep.c: Revert.
10185 * amd64-windows-nat.c: Revert.
10186 * amd64-tdep.c: Revert.
10187 * amd64-sol2-tdep.c: Revert.
10188 * amd64-obsd-tdep.c: Revert.
10189 * amd64-obsd-nat.c: Revert.
10190 * amd64-nbsd-tdep.c: Revert.
10191 * amd64-nbsd-nat.c: Revert.
10192 * amd64-nat.c: Revert.
10193 * amd64-linux-tdep.c: Revert.
10194 * amd64-linux-nat.c: Revert.
10195 * amd64-fbsd-tdep.c: Revert.
10196 * amd64-fbsd-nat.c: Revert.
10197 * amd64-dicos-tdep.c: Revert.
10198 * amd64-darwin-tdep.c: Revert.
10199 * amd64-bsd-nat.c: Revert.
10200 * alpha-tdep.c: Revert.
10201 * alpha-obsd-tdep.c: Revert.
10202 * alpha-nbsd-tdep.c: Revert.
10203 * alpha-mdebug-tdep.c: Revert.
10204 * alpha-linux-tdep.c: Revert.
10205 * alpha-linux-nat.c: Revert.
10206 * alpha-bsd-tdep.c: Revert.
10207 * alpha-bsd-nat.c: Revert.
10208 * aix-thread.c: Revert.
10210 * addrmap.c: Revert.
10211 * ada-varobj.c: Revert.
10212 * ada-valprint.c: Revert.
10213 * ada-typeprint.c: Revert.
10214 * ada-tasks.c: Revert.
10215 * ada-lang.c: Revert.
10216 * aarch64-tdep.c: Revert.
10217 * aarch64-ravenscar-thread.c: Revert.
10218 * aarch64-newlib-tdep.c: Revert.
10219 * aarch64-linux-tdep.c: Revert.
10220 * aarch64-linux-nat.c: Revert.
10221 * aarch64-fbsd-tdep.c: Revert.
10222 * aarch64-fbsd-nat.c: Revert.
10223 * aarch32-linux-nat.c: Revert.
10225 2019-04-05 Tom Tromey <tom@tromey.com>
10227 * ft32-tdep.c: Sort headers.
10228 * frv-tdep.c: Sort headers.
10229 * frv-linux-tdep.c: Sort headers.
10230 * frame.c: Sort headers.
10231 * frame-unwind.c: Sort headers.
10232 * frame-base.c: Sort headers.
10233 * fork-child.c: Sort headers.
10234 * findvar.c: Sort headers.
10235 * findcmd.c: Sort headers.
10236 * filesystem.c: Sort headers.
10237 * filename-seen-cache.h: Sort headers.
10238 * filename-seen-cache.c: Sort headers.
10239 * fbsd-tdep.c: Sort headers.
10240 * fbsd-nat.h: Sort headers.
10241 * fbsd-nat.c: Sort headers.
10242 * f-valprint.c: Sort headers.
10243 * f-typeprint.c: Sort headers.
10244 * f-lang.c: Sort headers.
10245 * extension.h: Sort headers.
10246 * extension.c: Sort headers.
10247 * extension-priv.h: Sort headers.
10248 * expprint.c: Sort headers.
10249 * exec.h: Sort headers.
10250 * exec.c: Sort headers.
10251 * exceptions.c: Sort headers.
10252 * event-top.c: Sort headers.
10253 * event-loop.c: Sort headers.
10254 * eval.c: Sort headers.
10255 * elfread.c: Sort headers.
10256 * dwarf2read.h: Sort headers.
10257 * dwarf2read.c: Sort headers.
10258 * dwarf2loc.c: Sort headers.
10259 * dwarf2expr.h: Sort headers.
10260 * dwarf2expr.c: Sort headers.
10261 * dwarf2-frame.c: Sort headers.
10262 * dwarf2-frame-tailcall.c: Sort headers.
10263 * dwarf-index-write.h: Sort headers.
10264 * dwarf-index-write.c: Sort headers.
10265 * dwarf-index-common.c: Sort headers.
10266 * dwarf-index-cache.h: Sort headers.
10267 * dwarf-index-cache.c: Sort headers.
10268 * dummy-frame.c: Sort headers.
10269 * dtrace-probe.c: Sort headers.
10270 * disasm.h: Sort headers.
10271 * disasm.c: Sort headers.
10272 * disasm-selftests.c: Sort headers.
10273 * dictionary.c: Sort headers.
10274 * dicos-tdep.c: Sort headers.
10275 * demangle.c: Sort headers.
10276 * dcache.h: Sort headers.
10277 * dcache.c: Sort headers.
10278 * darwin-nat.h: Sort headers.
10279 * darwin-nat.c: Sort headers.
10280 * darwin-nat-info.c: Sort headers.
10281 * d-valprint.c: Sort headers.
10282 * d-namespace.c: Sort headers.
10283 * d-lang.c: Sort headers.
10284 * ctf.c: Sort headers.
10285 * csky-tdep.c: Sort headers.
10286 * csky-linux-tdep.c: Sort headers.
10287 * cris-tdep.c: Sort headers.
10288 * cris-linux-tdep.c: Sort headers.
10289 * cp-valprint.c: Sort headers.
10290 * cp-support.c: Sort headers.
10291 * cp-namespace.c: Sort headers.
10292 * cp-abi.c: Sort headers.
10293 * corelow.c: Sort headers.
10294 * corefile.c: Sort headers.
10295 * continuations.c: Sort headers.
10296 * completer.h: Sort headers.
10297 * completer.c: Sort headers.
10298 * complaints.c: Sort headers.
10299 * coffread.c: Sort headers.
10300 * coff-pe-read.c: Sort headers.
10301 * cli-out.h: Sort headers.
10302 * cli-out.c: Sort headers.
10303 * charset.c: Sort headers.
10304 * c-varobj.c: Sort headers.
10305 * c-valprint.c: Sort headers.
10306 * c-typeprint.c: Sort headers.
10307 * c-lang.c: Sort headers.
10308 * buildsym.c: Sort headers.
10309 * buildsym-legacy.c: Sort headers.
10310 * build-id.h: Sort headers.
10311 * build-id.c: Sort headers.
10312 * btrace.c: Sort headers.
10313 * bsd-uthread.c: Sort headers.
10314 * breakpoint.h: Sort headers.
10315 * breakpoint.c: Sort headers.
10316 * break-catch-throw.c: Sort headers.
10317 * break-catch-syscall.c: Sort headers.
10318 * break-catch-sig.c: Sort headers.
10319 * blockframe.c: Sort headers.
10320 * block.c: Sort headers.
10321 * bfin-tdep.c: Sort headers.
10322 * bfin-linux-tdep.c: Sort headers.
10323 * bfd-target.c: Sort headers.
10324 * bcache.c: Sort headers.
10325 * ax-general.c: Sort headers.
10326 * ax-gdb.h: Sort headers.
10327 * ax-gdb.c: Sort headers.
10328 * avr-tdep.c: Sort headers.
10329 * auxv.c: Sort headers.
10330 * auto-load.c: Sort headers.
10331 * arm-wince-tdep.c: Sort headers.
10332 * arm-tdep.c: Sort headers.
10333 * arm-symbian-tdep.c: Sort headers.
10334 * arm-pikeos-tdep.c: Sort headers.
10335 * arm-obsd-tdep.c: Sort headers.
10336 * arm-nbsd-tdep.c: Sort headers.
10337 * arm-nbsd-nat.c: Sort headers.
10338 * arm-linux-tdep.c: Sort headers.
10339 * arm-linux-nat.c: Sort headers.
10340 * arm-fbsd-tdep.c: Sort headers.
10341 * arm-fbsd-nat.c: Sort headers.
10342 * arm-bsd-tdep.c: Sort headers.
10343 * arch-utils.c: Sort headers.
10344 * arc-tdep.c: Sort headers.
10345 * arc-newlib-tdep.c: Sort headers.
10346 * annotate.h: Sort headers.
10347 * annotate.c: Sort headers.
10348 * amd64-windows-tdep.c: Sort headers.
10349 * amd64-windows-nat.c: Sort headers.
10350 * amd64-tdep.c: Sort headers.
10351 * amd64-sol2-tdep.c: Sort headers.
10352 * amd64-obsd-tdep.c: Sort headers.
10353 * amd64-obsd-nat.c: Sort headers.
10354 * amd64-nbsd-tdep.c: Sort headers.
10355 * amd64-nbsd-nat.c: Sort headers.
10356 * amd64-nat.c: Sort headers.
10357 * amd64-linux-tdep.c: Sort headers.
10358 * amd64-linux-nat.c: Sort headers.
10359 * amd64-fbsd-tdep.c: Sort headers.
10360 * amd64-fbsd-nat.c: Sort headers.
10361 * amd64-dicos-tdep.c: Sort headers.
10362 * amd64-darwin-tdep.c: Sort headers.
10363 * amd64-bsd-nat.c: Sort headers.
10364 * alpha-tdep.c: Sort headers.
10365 * alpha-obsd-tdep.c: Sort headers.
10366 * alpha-nbsd-tdep.c: Sort headers.
10367 * alpha-mdebug-tdep.c: Sort headers.
10368 * alpha-linux-tdep.c: Sort headers.
10369 * alpha-linux-nat.c: Sort headers.
10370 * alpha-bsd-tdep.c: Sort headers.
10371 * alpha-bsd-nat.c: Sort headers.
10372 * aix-thread.c: Sort headers.
10373 * agent.c: Sort headers.
10374 * addrmap.c: Sort headers.
10375 * ada-varobj.c: Sort headers.
10376 * ada-valprint.c: Sort headers.
10377 * ada-typeprint.c: Sort headers.
10378 * ada-tasks.c: Sort headers.
10379 * ada-lang.c: Sort headers.
10380 * aarch64-tdep.c: Sort headers.
10381 * aarch64-ravenscar-thread.c: Sort headers.
10382 * aarch64-newlib-tdep.c: Sort headers.
10383 * aarch64-linux-tdep.c: Sort headers.
10384 * aarch64-linux-nat.c: Sort headers.
10385 * aarch64-fbsd-tdep.c: Sort headers.
10386 * aarch64-fbsd-nat.c: Sort headers.
10387 * aarch32-linux-nat.c: Sort headers.
10389 2019-04-04 Tom Tromey <tom@tromey.com>
10391 * varobj.c (varobj_create): Update.
10392 * rust-exp.y (struct rust_parser) <update_innermost_block,
10393 lookup_symbol>: New methods.
10394 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10396 (rust_parser::rust_lookup_type)
10397 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10398 * printcmd.c (display_command, do_one_display): Update.
10399 * parser-defs.h (struct parser_state) <parser_state>: Add
10400 "tracker" parameter.
10401 (block_tracker): New member.
10402 (class innermost_block_tracker) <innermost_block_tracker>: Add
10404 <reset>: Remove method.
10405 (innermost_block): Don't declare.
10406 (null_post_parser): Update.
10407 * parse.c (innermost_block): Remove global.
10408 (write_dollar_variable): Update.
10409 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10410 Remove "tracker_types" parameter.
10411 (parse_expression): Add "tracker" parameter.
10412 (parse_expression_for_completion): Update.
10413 (null_post_parser): Add "tracker" parameter.
10414 * p-exp.y: Update rules.
10415 * m2-exp.y: Update rules.
10416 * language.h (struct language_defn) <la_post_parser>: Add
10417 "tracker" parameter.
10418 * go-exp.y: Update rules.
10419 * f-exp.y: Update rules.
10420 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10422 * d-exp.y: Update rules.
10423 * c-exp.y: Update rules.
10424 * breakpoint.c (set_breakpoint_condition): Create an
10425 innermost_block_tracker.
10426 (watch_command_1): Likewise.
10427 * ada-lang.c (resolve): Add "tracker" parameter.
10428 (resolve_subexp): Likewise.
10429 * ada-exp.y (write_var_from_sym): Update.
10431 2019-04-04 Tom Tromey <tom@tromey.com>
10433 * type-stack.h: New file.
10434 * type-stack.c: New file.
10435 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10437 (insert_into_type_stack, insert_type, push_type, push_type_int)
10438 (insert_type_address_space, pop_type, pop_type_int)
10439 (pop_typelist, pop_type_stack, append_type_stack)
10440 (push_type_stack, get_type_stack, push_typelist)
10441 (follow_type_instance_flags, follow_types): Don't declare.
10442 * parse.c (type_stack): Remove global.
10443 (parse_exp_in_context): Update.
10444 (insert_into_type_stack, insert_type, push_type, push_type_int)
10445 (insert_type_address_space, pop_type, pop_type_int)
10446 (pop_typelist, pop_type_stack, append_type_stack)
10447 (push_type_stack, get_type_stack, push_typelist)
10448 (follow_type_instance_flags, follow_types): Remove (moved to
10450 * f-exp.y (type_stack): New global.
10452 (push_kind_type, f_parse): Update.
10453 * d-exp.y (type_stack): New global.
10456 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10458 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10459 (HFILES_NO_SRCDIR): Add type-stack.h.
10461 2019-04-04 Tom Tromey <tom@tromey.com>
10463 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10464 (rust_parser::convert_ast_to_expression, rust_parse)
10465 (rust_lex_test_completion, rust_lex_tests): Update.
10466 * parser-defs.h (struct expr_completion_state): New.
10467 (struct parser_state) <parser_state>: Add completion parameter.
10468 <mark_struct_expression, mark_completion_tag>: New methods.
10469 <parse_completion, m_completion_state>: New members.
10470 (prefixify_expression, null_post_parser): Update.
10471 (mark_struct_expression, mark_completion_tag): Don't declare.
10472 * parse.c (parse_completion, expout_last_struct)
10473 (expout_tag_completion_type, expout_completion_name): Remove
10475 (parser_state::mark_struct_expression)
10476 (parser_state::mark_completion_tag): Now methods.
10477 (prefixify_expression): Add last_struct parameter.
10478 (prefixify_subexp): Likewise.
10479 (parse_exp_1): Update.
10480 (parse_exp_in_context): Add cstate parameter. Update.
10481 (parse_expression_for_completion): Create an
10482 expr_completion_state.
10483 (null_post_parser): Add "completion" parameter.
10484 * p-exp.y: Update rules.
10486 * language.h (struct language_defn) <la_post_parser>: Add
10487 "completing" parameter.
10488 * go-exp.y: Update rules.
10489 (lex_one_token): Update.
10490 * expression.h (parse_completion): Don't declare.
10491 * d-exp.y: Update rules.
10492 (lex_one_token): Update rules.
10493 * c-exp.y: Update rules.
10494 (lex_one_token): Update.
10495 * ada-lang.c (resolve): Add "parse_completion" parameter.
10496 (resolve_subexp): Likewise.
10497 (ada_resolve_function): Likewise.
10499 2019-04-04 Tom Tromey <tom@tromey.com>
10501 * parser-defs.h (struct parser_state) <start_arglist,
10502 end_arglist>: New methods.
10503 <arglist_len, m_funcall_chain>: New members.
10504 (arglist_len, start_arglist, end_arglist): Don't declare.
10505 * parse.c (arglist_len, funcall_chain): Remove global.
10506 (start_arglist, end_arglist): Remove functions.
10507 (parse_exp_in_context): Update.
10508 * p-exp.y: Update rules.
10509 * m2-exp.y: Update rules.
10510 * go-exp.y: Update rules.
10511 * f-exp.y: Update rules.
10512 * d-exp.y: Update rules.
10513 * c-exp.y: Update rules.
10515 2019-04-04 Tom Tromey <tom@tromey.com>
10517 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10518 lex_operator, push_back>: New methods.
10520 (rust_parser::lex_hex, lex_escape): Rename and update.
10521 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10522 (rust_parser::lex_operator): Rename and update.
10523 (rust_parser::lex_number, rustyylex, rustyyerror)
10524 (rust_lex_test_init, rust_lex_test_sequence)
10525 (rust_lex_test_push_back, rust_lex_tests): Update.
10526 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10528 <lexptr, prev_lexptr>: New members.
10529 (lexptr, prev_lexptr): Don't declare.
10530 * parse.c (lexptr, prev_lexptr): Remove globals.
10531 (parse_exp_in_context): Update.
10532 * p-exp.y (yylex, yyerror): Update.
10533 * m2-exp.y (parse_number, yylex, yyerror): Update.
10534 * go-exp.y (lex_one_token, yyerror): Update.
10535 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10536 * d-exp.y (lex_one_token, yyerror): Update.
10537 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10538 (lex_one_token, yyerror): Update.
10539 * ada-lex.l (YY_INPUT): Update.
10540 (rewind_to_char): Update.
10541 * ada-exp.y (yyerror): Update.
10543 2019-04-04 Tom Tromey <tom@tromey.com>
10545 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10546 * parser-defs.h (struct parser_state) <parser_state>: Add new
10548 <comma_terminates>: New member.
10549 (comma_terminates): Don't declare global.
10550 * parse.c (comma_terminates): Remove global.
10551 (parse_exp_in_context): Update.
10552 * p-exp.y (yylex): Update.
10553 * m2-exp.y (yylex): Update.
10554 * go-exp.y (lex_one_token): Update.
10555 * f-exp.y (yylex): Update.
10556 * d-exp.y (lex_one_token): Update.
10557 * c-exp.y (lex_one_token): Update.
10558 * ada-lex.l: Update.
10560 2019-04-04 Tom Tromey <tom@tromey.com>
10562 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10563 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10564 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10565 * parser-defs.h (paren_depth): Don't declare.
10566 * parse.c (paren_depth): Remove global.
10567 (parse_exp_in_context): Update.
10568 * p-exp.y (paren_depth): New global.
10569 (pascal_parse): Initialize it.
10570 * m2-exp.y (paren_depth): New global.
10571 (m2_parse): Initialize it.
10572 * go-exp.y (paren_depth): New global.
10573 (go_parse): Initialize it.
10574 * f-exp.y (paren_depth): New global.
10575 (f_parse): Initialize it.
10576 * d-exp.y (paren_depth): New global.
10577 (d_parse): Initialize it.
10578 * c-exp.y (paren_depth): New global.
10579 (c_parse): Initialize it.
10580 * ada-lex.l (paren_depth): New global.
10581 (lexer_init): Initialize it.
10583 2019-04-04 Tom Tromey <tom@tromey.com>
10585 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10586 (rust_parser::convert_ast_to_type)
10587 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10588 * parser-defs.h (struct parser_state) <parser_state>: Add
10589 parameters. Initialize new members.
10590 <expression_context_block, expression_context_pc>: New members.
10591 * parse.c (expression_context_block, expression_context_pc):
10593 (parse_exp_in_context): Update.
10594 * p-exp.y: Update all rules.
10596 * m2-exp.y: Update all rules.
10598 * go-exp.y (yylex): Update.
10599 * f-exp.y (yylex): Update.
10600 * d-exp.y: Update all rules.
10602 * c-exp.y: Update all rules.
10603 (lex_one_token, classify_name, yylex, c_parse): Update.
10604 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10606 2019-04-04 Tom Tromey <tom@tromey.com>
10608 * gdbarch.h, gdbarch.c: Rebuild.
10609 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10611 (struct stap_parse_info): Replace "parser_state" with
10613 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10614 (parser_state): New class.
10615 * parse.c (expr_builder): Rename.
10616 (expr_builder::release): Rename.
10617 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10618 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10619 (write_exp_elt_longcst, write_exp_elt_floatcst)
10620 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10621 (write_exp_string_vector, write_exp_bitstring)
10622 (write_exp_msymbol, mark_struct_expression)
10623 (write_dollar_variable)
10624 (insert_type_address_space, increase_expout_size): Replace
10625 "parser_state" with "expr_builder".
10626 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10627 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10628 "parser_state" with "expr_builder".
10630 2019-04-04 Tom Tromey <tom@tromey.com>
10632 * rust-exp.y: Replace "parse_language" with method call.
10634 (yylex): Replace "parse_language" with method call.
10636 (yylex): Replace "parse_language" with method call.
10637 * go-exp.y (classify_name): Replace "parse_language" with method
10639 * f-exp.y (yylex): Replace "parse_language" with method call.
10640 * d-exp.y (lex_one_token): Replace "parse_language" with method
10643 (lex_one_token, classify_name, yylex): Replace "parse_language"
10645 * ada-exp.y (find_primitive_type, type_char)
10646 (type_system_address): Replace "parse_language" with method call.
10648 2019-04-04 Tom Tromey <tom@tromey.com>
10650 * rust-exp.y: Replace "parse_gdbarch" with method call.
10651 * parse.c (write_dollar_variable, insert_type_address_space):
10652 Replace "parse_gdbarch" with method call.
10653 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10655 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10657 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10658 "parse_gdbarch" with method call.
10659 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10661 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10662 "parse_gdbarch" with method call.
10663 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10664 "parse_gdbarch" with method call.
10665 * c-exp.y (parse_type, parse_number, classify_name): Replace
10666 "parse_gdbarch" with method call.
10667 * ada-lex.l: Replace "parse_gdbarch" with method call.
10668 * ada-exp.y (parse_type, find_primitive_type, type_char)
10669 (type_system_address): Replace "parse_gdbarch" with method call.
10671 2019-04-04 Tom Tromey <tom@tromey.com>
10673 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10674 * stap-probe.c (stap_parse_argument): Update.
10675 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10676 initial_size parameter.
10677 * rust-exp.y (rust_lex_tests): Update.
10678 * parse.c (parser_state): Update.
10679 (parse_exp_in_context): Update.
10680 * parser-defs.h (struct parser_state) <parser_state>: Remove
10681 "initial_size" parameter.
10683 2019-04-04 Tom Tromey <tom@tromey.com>
10685 * parser-defs.h (increase_expout_size): Don't declare.
10686 * parse.c (increase_expout_size): Now static.
10688 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10690 * gnu-nat.c (gnu_nat_target::wait): Fix
10691 target_waitstatus_to_string call.
10693 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10695 * eval.c (evaluate_subexp_standard): Handle internal functions
10696 during Fortran function call handling.
10698 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10700 * NEWS: Mention new internal functions.
10701 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10702 (read_base_type): Use dwarf2_init_complex_target_type.
10703 * value.c (creal_internal_fn): New function.
10704 (cimag_internal_fn): New function.
10705 (_initialize_values): Register new internal functions.
10707 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10709 * infrun.c (stop_all_threads): If debug_infrun, always
10710 trace the wait status after wait_one, using
10711 target_waitstatus_to_string and target_pid_to_str.
10712 (handle_inferior_event): Replace various trace of
10713 wait status kind by a single trace.
10714 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10715 wait status kind image by target_waitstatus_to_string.
10716 * target/waitstatus.c (target_waitstatus_to_string): Fix
10719 2019-04-01 Tom Tromey <tromey@adacore.com>
10722 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10724 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10725 Pedro Alves <palves@redhat.com>
10727 * top.c (quit_force): Call 'finalize_values'.
10728 * value.c (finalize_values): New function.
10729 * value.h (finalize_values): Declare.
10731 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10733 * NEWS: Announce $_gdb_major and $_gdb_minor.
10735 * top.c (init_gdb_version_vars): New function.
10736 (gdb_init): Call init_gdb_version_vars.
10738 2019-03-29 Tom Tromey <tromey@adacore.com>
10740 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10741 help text. Remove dead code.
10743 2019-03-29 Keith Seitz <keiths@redhat.com>
10745 From Siddhesh Poyarekar:
10746 * f-lang.h (f77_get_upperbound): Return LONGEST.
10747 (f77_get_lowerbound): Likewise.
10748 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10749 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10751 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10752 plongest to format print it.
10753 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10754 (f77_get_upperbound): Likewise.
10755 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10756 LOWER_BOUND to LONGEST.
10757 (f77_create_arrayprint_offset_tbl): Likewise.
10759 2019-03-29 Keith Seitz <keiths@redhat.com>
10761 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10762 %s/pulongest for TYPE_LENGTH instead of %d in format
10764 * ada-typerint.c (ada_print_type): Likewise.
10765 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10766 * compile/compile-c-support.c (generate_register_struct): Likewise.
10767 * gdbtypes.c (recursive_dump_type): Likewise.
10768 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10769 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10770 instead of %d in format strings.
10771 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10772 to std::min to ULONGEST.
10773 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10774 instead of %d in format strings.
10775 * tracepoint.c (info_scope_command): Likewise.
10776 * typeprint.c (print_offset_data::update)
10777 (print_offset_data::finish): Likewise.
10778 * xtensa-tdep.c (xtensa_store_return_value)
10779 (xtensa_push_dummy_call): Likewise.
10781 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10783 * windows-nat.c (display_selector): Fixed format specifications
10786 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10788 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10790 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10792 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10793 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10794 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10795 (nios2_linux_init_abi): Install it.
10797 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10799 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10801 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10803 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10805 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10806 Tom Tromey <tromey@adacore.com>
10808 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10810 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10812 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10813 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10814 method to compute the bounds of range types. Also print "[evaluated]"
10815 if the bounds' values come from a dynamic evaluation.
10817 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10819 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10820 whitespace when pretty printing is on.
10822 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10824 * ppc-linux-nat.c: Add include.
10826 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10828 * NEWS: Mention AArch64 Pointer Authentication.
10830 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10832 * arm-linux-nat.c: Add include.
10834 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10836 * source-cache.c (source_cache::get_source_lines): Re-read
10837 fullname after calling open_source_file.
10839 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10841 * NEWS: Mention TLS support for FreeBSD.
10843 2019-03-25 Tom Tromey <tromey@adacore.com>
10845 * minsyms.c (BUNCH_SIZE): Update comment.
10846 (~minimal_symbol_reader): Remove old comment.
10847 (compact_minimal_symbols): Update comment.
10848 (minimal_symbol_reader::install): Remove old comment. Update
10851 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10853 * s390-linux-nat.c: Add include.
10855 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10857 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10858 Call linux_get_hwcap.
10859 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10861 (aarch64_linux_get_hwcap): Remove function.
10862 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10864 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10866 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10867 * linux-tdep.c (linux_get_hwcap): Add function.
10868 (linux_get_hwcap2): Likewise.
10869 * linux-tdep.h (linux_get_hwcap): Add declaration.
10870 (linux_get_hwcap2): Likewise.
10871 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10872 (ppc_linux_get_hwcap2): Likewise.
10873 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10875 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10876 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10877 (ppc_linux_nat_target::read_description): Likewise.
10878 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10879 * s390-linux-nat.c: Likewise.
10880 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10882 2019-03-24 Tom Tromey <tom@tromey.com>
10884 * ada-lang.c (standard_lookup): Simplify initialization.
10885 (ada_lookup_symbol_nonlocal): Simplify return.
10886 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10887 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10888 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10889 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10891 * solib.c (solib_global_lookup): Simplify.
10892 * symtab.c (null_block_symbol): Remove.
10893 (symbol_cache_lookup): Simplify returns.
10894 (lookup_language_this): Simplify returns.
10895 (lookup_symbol_aux): Simplify return.
10896 (lookup_local_symbol): Simplify returns.
10897 (lookup_global_symbol_from_objfile): Simplify return.
10898 (lookup_symbol_in_objfile_symtabs)
10899 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10900 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10901 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10902 * cp-namespace.c (cp_lookup_bare_symbol)
10903 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10904 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10905 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10906 (cp_lookup_symbol_via_imports): Simplify initialization.
10907 (find_symbol_in_baseclass): Likewise.
10908 * symtab.h (null_block_symbol): Remove.
10909 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10910 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10911 (d_lookup_symbol_module): Likewise.
10912 (find_symbol_in_baseclass): Simplify initialization.
10914 2019-03-24 Tom Tromey <tom@tromey.com>
10916 * expression.h: Don't include symtab.h.
10917 (struct block): Forward declare.
10919 2019-03-24 Tom Tromey <tom@tromey.com>
10921 * c-exp.y (typebase): Remove casts.
10922 * gdbtypes.c (lookup_unsigned_typename, )
10923 (lookup_signed_typename): Remove cast.
10924 * eval.c (parse_to_comma_and_eval): Remove cast.
10925 * parse.c (write_dollar_variable): Remove cast.
10926 * block.h (struct block) <superblock>: Now const.
10927 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10928 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10929 (map_block): Make "block" const.
10930 * symfile.h (struct quick_symbol_functions)
10931 <map_matching_symbols>: Constify block argument to "callback".
10932 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10934 (find_pc_sect_compunit_symtab): Make "b" const.
10935 (find_symbol_at_address): Likewise.
10936 (search_symbols): Likewise.
10937 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10938 (dw2_debug_names_lookup_symbol): Likewise.
10939 (dw2_map_matching_symbols): Update.
10940 * p-valprint.c (pascal_val_print): Remove "block".
10941 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10942 (aux_add_nonlocal_symbols): Make "block" const.
10943 (resolve_subexp): Remove cast.
10944 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10946 (iterate_over_file_blocks): Likewise.
10947 * f-exp.y (%union) <bval>: Remove.
10948 * coffread.c (patch_opaque_types): Make "b" const.
10949 * spu-tdep.c (spu_catch_start): Make "block" const.
10950 * c-valprint.c (print_unpacked_pointer): Remove "block".
10951 * symmisc.c (dump_symtab_1): Make "b" const.
10952 (block_depth): Make "block" const.
10953 * d-exp.y (%union) <bval>: Remove.
10954 * cp-support.h (cp_lookup_rtti_type): Update.
10955 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10956 * psymtab.c (psym_lookup_symbol): Make "block" const.
10957 (maintenance_check_psymtabs): Make "b" const.
10958 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10959 (enumerate_locals, enumerate_args): Update.
10960 * python/py-symtab.c (stpy_global_block): Make "block" const.
10961 (stpy_static_block): Likewise.
10962 * inline-frame.c (block_starting_point_at): Make "new_block"
10964 * block.c (find_block_in_blockvector): Make return type const.
10965 (blockvector_for_pc_sect): Make "b" const.
10966 (find_block_in_blockvector): Make "b" const.
10968 2019-03-23 Tom Tromey <tom@tromey.com>
10970 * varobj.c (varobj_create): Update.
10971 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10972 * printcmd.c (display_command, do_one_display): Don't reset
10974 * parser-defs.h (enum innermost_block_tracker_type): Move to
10976 (innermost_block): Update comment.
10977 * parse.c (parse_exp_1): Add tracker_types parameter.
10978 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10979 tracker_types parameter. Reset innermost_block.
10980 (parse_exp_in_context): Remove.
10981 (parse_expression_for_completion): Update.
10982 * objfiles.c (~objfile): Don't reset expression_context_block or
10984 * expression.h (enum innermost_block_tracker_type): Move from
10986 (parse_exp_1): Add tracker_types parameter.
10987 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10988 reset innermost_block.
10990 2019-03-23 Tom Tromey <tom@tromey.com>
10992 * objfiles.h: Include bcache.h.
10994 2019-03-23 Tom Tromey <tom@tromey.com>
10996 * linespec.c (get_current_search_block): Use
10997 scoped_restore_current_language.
10998 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11000 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11001 Jiong Wang <jiong.wang@arm.com>
11003 * aarch64-linux-tdep.c
11004 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11006 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11008 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11009 Jiong Wang <jiong.wang@arm.com>
11011 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11013 (aarch64_analyze_prologue_test): Add PACIASP test.
11014 (aarch64_prologue_prev_register): Unmask PC value.
11016 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11017 Jiong Wang <jiong.wang@arm.com>
11019 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11020 (aarch64_dwarf2_prev_register): Unmask PC value.
11021 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11022 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11023 DW_CFA_AARCH64_negate_ra_state.
11024 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11026 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11027 Jiong Wang <jiong.wang@arm.com>
11029 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11031 (aarch64_pseudo_register_name): Likewise.
11032 (aarch64_pseudo_register_type): Likewise.
11033 (aarch64_pseudo_register_reggroup_p): Likewise.
11034 (aarch64_gdbarch_init): Add pauth registers.
11035 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11036 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11037 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11038 (struct gdbarch_tdep): Add regnum for ra_state.
11040 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11041 Jiong Wang <jiong.wang@arm.com>
11043 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11045 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11046 Jiong Wang <jiong.wang@arm.com>
11048 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11050 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11051 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11052 (aarch64_gdbarch_init): Add puth registers.
11053 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11054 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11055 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11057 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11058 Jiong Wang <jiong.wang@arm.com>
11060 * aarch64-linux-nat.c
11061 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11062 * aarch64-linux-tdep.c
11063 (aarch64_linux_core_read_description): Likewise.
11064 (aarch64_linux_get_hwcap): New function.
11065 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11066 (aarch64_linux_get_hwcap): New declaration.
11068 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11069 Jiong Wang <jiong.wang@arm.com>
11071 * aarch64-linux-nat.c
11072 (aarch64_linux_nat_target::read_description): Add pauth param.
11073 * aarch64-linux-tdep.c
11074 (aarch64_linux_core_read_description): Likewise.
11075 * aarch64-tdep.c (struct target_desc): Add in pauth.
11076 (aarch64_read_description): Add pauth param.
11077 (aarch64_gdbarch_init): Likewise.
11078 * aarch64-tdep.h (aarch64_read_description): Likewise.
11079 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11080 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11081 * features/Makefile: Add new files.
11082 * features/aarch64-pauth.c: New file.
11083 * features/aarch64-pauth.xml: New file.
11085 2019-03-20 Tom Tromey <tromey@adacore.com>
11087 * infrun.c (handle_inferior_event): Rename from
11088 handle_inferior_event_1. Create a scoped_value_mark.
11089 (handle_inferior_event): Remove.
11091 2019-03-19 Tom Tromey <tromey@adacore.com>
11093 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11094 * infrun.h (print_stop_event): Add "displays" parameter.
11095 * infrun.c (print_stop_event): Add "displays" parameter.
11097 2019-03-19 Pedro Alves <palves@redhat.com>
11099 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11100 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11101 to -1. Fix TABs vs spaces.
11102 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11103 * tui/tui-out.h (tui_ui_out) Add intro comments.
11104 <m_line, m_start_of_line>: In-class initialize, and add describing
11107 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11109 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11111 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11113 2019-03-18 Pedro Alves <palves@redhat.com>
11114 Eli Zaretskii <eliz@gnu.org>
11116 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11117 m_line and m_start_of_line.
11119 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11121 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11122 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11123 it returns a newline. This fixes a regression in TU mode, whereby
11124 the next line is output on the same screen line as the user input.
11126 2019-03-18 Tom Tromey <tromey@adacore.com>
11128 * minsyms.c (minimal_symbol_reader::install): Remove call to
11131 2019-03-18 Pedro Alves <palves@redhat.com>
11133 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11135 (apply_style): New, factored out from ...
11136 (apply_ansi_escape): ... this. Handle reverse video mode.
11137 (tui_set_reverse_mode): New function.
11138 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11139 * tui/tui-winsource.c (tui_show_source_line): Use
11140 tui_set_reverse_mode instead of setting A_STANDOUT.
11141 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11142 New setter methods.
11144 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11146 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11149 2019-03-18 Tom Tromey <tromey@adacore.com>
11151 * ada-lang.c (empty_array): Add "high" parameter.
11152 (ada_evaluate_subexp): Update.
11154 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11156 * unittests/string_view-selftests.c: Define
11157 _initialize_string_view_selftests unconditionally.
11159 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11162 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11164 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11167 * windows-nat.c (display_selector): Fix format specifiers.
11169 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11171 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11172 tui_refill_source_window instead of tui_refresh_win, to update the
11173 current execution line. This fixes redisplay of the current line
11174 when stepping through the code with "next" or "step".
11176 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11178 * source-cache.c (source_cache::get_source_lines): Call
11179 find_source_lines to initialize s->nlines. This fixes vertical
11180 scrolling of TUI source window when the DOWN arrow is pressed.
11182 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11184 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11185 linux-thread-db.c (_initialize_thread_db): Likewise.
11187 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11189 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11190 wclrtoeol in tui_show_source_line". This reverts changes made in
11191 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11193 2019-03-15 Tom Tromey <tom@tromey.com>
11195 * symtab.h (struct minimal_symbol): Derive from
11196 general_symbol_info.
11197 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11198 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11199 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11200 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11201 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11202 (MSYMBOL_SEARCH_NAME): Update.
11203 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11204 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11205 * minsyms.c (minimal_symbol_reader::record_full): Update.
11207 2019-03-15 Tom Tromey <tom@tromey.com>
11209 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11211 2019-03-15 Tom Tromey <tom@tromey.com>
11213 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11214 unique_xmalloc_ptr.
11215 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11217 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11218 (build_minimal_symbol_hash_tables)
11219 (minimal_symbol_reader::install): Update.
11221 2019-03-15 Tom Tromey <tom@tromey.com>
11223 * symtab.c (create_demangled_names_hash): Update.
11224 (symbol_set_names): Update.
11225 * objfiles.h (struct objfile_per_bfd_storage)
11226 <demangled_names_hash>: Now an htab_up.
11227 * objfiles.c (objfile_per_bfd_storage): Simplify.
11229 2019-03-15 Tom Tromey <tom@tromey.com>
11231 * objfiles.h (struct objfile_per_bfd_storage): Declare
11233 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11235 (get_objfile_bfd_data): Use new. Don't initialize
11237 (free_objfile_per_bfd_storage): Remove.
11238 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11240 2019-03-15 Tom Tromey <tom@tromey.com>
11242 * symfile.c (reread_symbols): Update.
11243 * objfiles.c (objfile::objfile): Update.
11244 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11245 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11247 (minimal_symbol_reader::install): Update.
11248 (terminate_minimal_symbol_table): Remove.
11249 * jit.c (jit_object_close_impl): Update.
11251 2019-03-15 Tom Tromey <tom@tromey.com>
11253 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11256 2019-03-15 Tom Tromey <tom@tromey.com>
11258 * objfiles.h (struct objfile_per_bfd_storage)
11259 <demangled_hash_languages>: Now a bitset.
11260 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11261 (lookup_minimal_symbol): Update.
11263 2019-03-15 Tom Tromey <tom@tromey.com>
11265 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11266 Don't return the symbol.
11267 * coffread.c (record_minimal_symbol): Use record_full.
11269 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11271 The MS-Windows port of ncurses fails to switch to a color pair if
11272 one or both of the colors are the implicit default colors. This
11273 change records the default colors when TUI is initialized, and
11274 then specifies them explicitly when a color pair uses the default
11275 colors. This allows color styling in TUI mode on MS-Windows.
11277 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11279 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11280 colors in ncurses_norm_attr.
11281 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11282 "none", replace it with the default color recorded in
11285 2019-03-14 Tom Tromey <tromey@adacore.com>
11287 * source-cache.h (class source_cache) <get_source_lines>: Return
11289 * source-cache.c (source_cache::extract_lines): Handle case where
11290 first_pos==npos. Return std::string.
11291 (source_cache::get_source_lines): Update.
11293 2019-03-14 Tom Tromey <tromey@adacore.com>
11295 * NEWS: Add item for "style sources" commands.
11296 * source-cache.c (source_cache::get_source_lines): Check
11298 * cli/cli-style.c (source_styling): New global.
11299 (_initialize_cli_style): Add "style sources" commands.
11300 (show_style_sources): New function.
11301 * cli/cli-style.h (source_styling): Declare.
11303 2019-03-14 Pedro Alves <palves@redhat.com>
11304 Tom Tromey <tromey@adacore.com>
11306 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11307 * tui/tui-winsource.c (tui_refill_source_window): New function,
11309 (tui_horizontal_source_scroll): ... here. Move some logic.
11310 * cli/cli-style.c (set_style_enabled): Notify new observable.
11311 * tui/tui-hooks.c (tui_redisplay_source): New function.
11312 (tui_attach_detach_observers): Attach or detach
11313 tui_redisplay_source.
11314 * observable.h (source_styling_changed): New observable.
11315 * observable.c: Define source_styling_changed observable.
11317 2019-03-13 Tom Tromey <tromey@adacore.com>
11319 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11320 (i386_gnu_nat_target::store_registers): Update.
11321 * target-debug.h (target_debug_print_std_string): New macro.
11322 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11323 * windows-tdep.c (display_one_tib): Update.
11324 * tui/tui-stack.c (tui_make_status_line): Update.
11325 * top.c (print_inferior_quit_action): Update.
11326 * thread.c (thr_try_catch_cmd): Update.
11327 (add_thread_with_info): Update.
11328 (thread_target_id_str): Update.
11329 (thr_try_catch_cmd): Update.
11330 (thread_command): Update.
11331 (thread_find_command): Update.
11332 * record-btrace.c (record_btrace_target::info_record)
11333 (record_btrace_resume_thread, record_btrace_target::resume)
11334 (record_btrace_cancel_resume, record_btrace_step_thread)
11335 (record_btrace_target::wait, record_btrace_target::wait)
11336 (record_btrace_target::wait, record_btrace_target::stop): Update.
11337 * progspace.c (print_program_space): Update.
11338 * process-stratum-target.c
11339 (process_stratum_target::thread_address_space): Update.
11340 * linux-fork.c (linux_fork_mourn_inferior)
11341 (detach_checkpoint_command, info_checkpoints_command)
11342 (linux_fork_context): Update.
11343 (linux_fork_detach): Update.
11344 (class scoped_switch_fork_info): Update.
11345 (delete_checkpoint_command): Update.
11346 * infrun.c (follow_fork_inferior): Update.
11347 (follow_fork_inferior): Update.
11348 (proceed_after_vfork_done): Update.
11349 (handle_vfork_child_exec_or_exit): Update.
11350 (follow_exec): Update.
11351 (displaced_step_prepare_throw): Update.
11352 (displaced_step_restore): Update.
11353 (start_step_over): Update.
11354 (resume_1): Update.
11355 (clear_proceed_status_thread): Update.
11357 (print_target_wait_results): Update.
11358 (do_target_wait): Update.
11359 (context_switch): Update.
11360 (stop_all_threads): Update.
11361 (restart_threads): Update.
11362 (finish_step_over): Update.
11363 (handle_signal_stop): Update.
11364 (switch_back_to_stepped_thread): Update.
11365 (keep_going_pass_signal): Update.
11366 (print_exited_reason): Update.
11367 (normal_stop): Update.
11368 * inferior.c (inferior_pid_to_str): Change return type.
11369 (print_selected_inferior): Update.
11370 (add_inferior): Update.
11371 (detach_inferior): Update.
11372 * dummy-frame.c (fprint_dummy_frames): Update.
11373 * dcache.c (dcache_info_1): Update.
11374 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11375 (btrace_fetch, btrace_clear): Update.
11376 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11377 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11379 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11380 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11381 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11382 * gdbarch.c, gdbarch.h: Rebuild.
11383 * gdbarch.sh (core_pid_to_str): Change return type.
11384 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11386 (windows_nat_target::pid_to_str): Change return type.
11387 (windows_delete_thread): Update.
11388 (windows_nat_target::attach): Update.
11389 (windows_nat_target::files_info): Update.
11390 * target-delegates.c: Rebuild.
11391 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11393 (sol_thread_target::pid_to_str): Change return type.
11394 * remote.c (class remote_target) <pid_to_str>: Change return
11396 (remote_target::pid_to_str): Change return type.
11397 (extended_remote_target::attach, remote_target::remote_stop_ns)
11398 (remote_target::remote_notif_remove_queued_reply)
11399 (remote_target::push_stop_reply, remote_target::disable_btrace):
11401 (extended_remote_target::attach): Update.
11402 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11404 (gdbsim_target::pid_to_str): Change return type.
11405 * ravenscar-thread.c (struct ravenscar_thread_target)
11406 <pid_to_str>: Change return type.
11407 (ravenscar_thread_target::pid_to_str): Change return type.
11408 * procfs.c (class procfs_target) <pid_to_str>: Change return
11410 (procfs_target::pid_to_str): Change return type.
11411 (procfs_target::attach): Update.
11412 (procfs_target::detach): Update.
11413 (procfs_target::fetch_registers): Update.
11414 (procfs_target::store_registers): Update.
11415 (procfs_target::wait): Update.
11416 (procfs_target::files_info): Update.
11417 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11418 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11420 (nto_procfs_target::pid_to_str): Change return type.
11421 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11422 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11424 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11425 (exit_lwp): Update.
11426 (attach_proc_task_lwp_callback, get_detach_signal)
11427 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11428 (linux_nat_target::resume, wait_lwp, stop_callback)
11429 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11430 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11431 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11432 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11433 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11435 (inf_ptrace_target::attach): Update.
11436 (inf_ptrace_target::files_info): Update.
11437 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11439 (go32_nat_target::pid_to_str): Change return type.
11440 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11441 (gnu_nat_target::wait): Update.
11442 (gnu_nat_target::wait): Update.
11443 (gnu_nat_target::resume): Update.
11444 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11445 (fbsd_nat_target::wait): Update.
11446 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11448 (darwin_nat_target::attach): Update.
11449 * corelow.c (class core_target) <pid_to_str>: Change return type.
11450 (core_target::pid_to_str): Change return type.
11451 * target.c (normal_pid_to_str): Change return type.
11452 (default_pid_to_str): Likewise.
11453 (target_pid_to_str): Change return type.
11454 (target_translate_tls_address): Update.
11455 (target_announce_detach): Update.
11456 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11458 (bsd_uthread_target::pid_to_str): Change return type.
11459 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11461 (bsd_kvm_target::pid_to_str): Change return type.
11462 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11464 (aix_thread_target::pid_to_str): Change return type.
11465 * target.h (struct target_ops) <pid_to_str>: Change return type.
11466 (target_pid_to_str, normal_pid_to_str): Likewise.
11467 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11469 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11471 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11473 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11475 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11477 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11480 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11482 * NEWS: Mention that the new default MI version is 3. Mention
11483 changes to the output of commands and events that deal with
11484 multi-location breakpoints.
11485 * breakpoint.c: Include "mi/mi-out.h".
11486 (print_one_breakpoint): Change output syntax if using MI version
11488 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11490 (mi_multi_location_breakpoint_output_fixed): New.
11491 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11492 (mi_cmd_fix_multi_location_breakpoint_output): New.
11493 (mi_multi_location_breakpoint_output_fixed): New.
11494 * mi/mi-cmds.c (mi_cmds): Register command
11495 -fix-multi-location-breakpoint-output.
11496 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11499 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11501 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11502 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11503 instantiate mi_ui_out based on interpreter name.
11504 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11505 * mi/mi-main.c (mi_load_progress): Likewise.
11507 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11509 * NEWS: Combine separate "New targets" sections for 8.3.
11511 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11513 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11514 (ppcfbsd_init_abi): Install gdbarch
11515 "fetch_tls_load_module_address" and "get_thread_local_address"
11518 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11520 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11521 (riscv_fbsd_init_abi): Install gdbarch
11522 "fetch_tls_load_module_address" and "get_thread_local_address"
11525 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11527 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11528 (i386fbsd_init_abi): Install gdbarch
11529 "fetch_tls_load_module_address" and "get_thread_local_address"
11532 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11534 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11535 (amd64fbsd_init_abi): Install gdbarch
11536 "fetch_tls_load_module_address" and "get_thread_local_address"
11539 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11541 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11542 (struct fbsd_pspace_data): New type.
11543 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11544 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11545 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11546 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11547 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11549 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11551 * gdbtypes.c (lookup_struct_elt): New function.
11552 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11553 * gdbtypes.h (struct struct_elt): New type.
11554 (lookup_struct_elt): New prototype.
11556 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11558 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11559 remove disabled code block.
11561 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11563 * gdbarch.sh (get_thread_local_address): New method.
11564 * gdbarch.h, gdbarch.c: Regenerate.
11565 * target.c (target_translate_tls_address): Use
11566 gdbarch_get_thread_local_address if present instead of
11567 target::get_thread_local_address.
11569 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11571 * target.h (target::get_thread_local_address): Update comment.
11573 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11575 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11576 objfile->separate_debug_objfile_backlink if not NULL.
11578 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11580 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11581 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11582 (amd64bsd_store_inferior_registers): Likewise.
11583 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11584 Enable segment base registers.
11585 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11586 PT_GETFSBASE and PT_GETGSBASE.
11587 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11589 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11590 segment base registers.
11591 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11593 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11595 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11596 Update calls to i386_target_description to add 'segments'
11598 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11599 add segment base registers.
11600 * arch/i386.c (i386_create_target_description): Add 'segments'
11601 parameter to enable segment base registers.
11602 * arch/i386.h (i386_create_target_description): Likewise.
11603 * features/i386/32bit-segments.xml: New file.
11604 * features/i386/32bit-segments.c: Generate.
11605 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11606 call to i386_target_description to add 'segments' parameter.
11607 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11608 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11609 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11610 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11611 if feature is present.
11612 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11613 Add 'segments' parameter to call to i386_target_description.
11614 (i386_target_description): Add 'segments' parameter to enable
11615 segment base registers.
11616 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11617 to call to i386_target_description.
11618 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11619 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11620 Define I386_NUM_REGS.
11621 (i386_target_description): Add 'segments' parameter to enable
11622 segment base registers.
11624 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11627 * source-cache.c: #undef open and close, to avoid unresolved
11628 externals during linking.
11630 2019-03-12 Tom Tromey <tromey@adacore.com>
11632 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11633 const. Add initializers.
11634 (_initialize_remote): Don't initialize ptid globals.
11636 2019-03-12 Pedro Alves <palves@redhat.com>
11638 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11640 2019-03-12 Pedro Alves <palves@redhat.com>
11642 * cp-name-parser.y (main): Remove unused 'len' variable.
11644 2019-03-12 Tom Tromey <tromey@adacore.com>
11646 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11647 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11649 2019-03-12 Tom Tromey <tromey@adacore.com>
11651 * linux-nat.c (iterate_over_lwps): Update.
11652 (stop_callback): Remove parameter.
11653 (stop_wait_callback, detach_callback, resume_set_callback)
11654 (select_singlestep_lwp_callback, set_ignore_sigint)
11655 (status_callback, resumed_callback, resume_clear_callback)
11656 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11658 (linux_nat_target::detach, linux_nat_target::resume)
11659 (linux_stop_and_wait_all_lwps, select_event_lwp)
11660 (linux_nat_filter_event, linux_nat_wait_1)
11661 (linux_nat_target::kill, linux_nat_target::stop)
11662 (linux_nat_target::stop): Update.
11663 (linux_nat_resume_callback): Change type.
11664 (resume_stopped_resumed_lwps, count_events_callback)
11665 (select_event_lwp_callback): Likewise.
11666 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11667 * arm-linux-nat.c (struct update_registers_data): Remove.
11668 (update_registers_callback): Change type.
11669 (arm_linux_insert_hw_breakpoint1): Update.
11670 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11672 (x86_linux_dr_set_addr): Update.
11673 (x86_linux_dr_set_control): Update.
11674 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11675 (iterate_over_lwps): Use gdb::function_view.
11676 * nat/aarch64-linux-hw-point.c (struct
11677 aarch64_dr_update_callback_param): Remove.
11678 (debug_reg_change_callback): Change type.
11679 (aarch64_notify_debug_reg_change): Update.
11680 * s390-linux-nat.c (s390_refresh_per_info): Update.
11682 2019-03-11 Tom Tromey <tromey@adacore.com>
11684 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11685 redundant assignment to "this_cu".
11687 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11689 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11691 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11693 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11695 (rank_one_type): ... this.
11697 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11699 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11701 (rank_one_type): ... this.
11703 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11705 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11707 (rank_one_type): ... this.
11709 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11711 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11713 (rank_one_type): ... this.
11715 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11717 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11719 (rank_one_type): ... this.
11721 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11723 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11725 (rank_one_type): ... this.
11727 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11729 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11731 (rank_one_type): ... this.
11733 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11735 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11737 (rank_one_type): ... this.
11739 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11741 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11743 (rank_one_type): ... this.
11745 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11747 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11749 (rank_one_type): ... this.
11751 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11753 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11755 (rank_one_type): ... this.
11757 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11759 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11761 (rank_one_type): ... this.
11763 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11765 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11766 inferior-events' shows the example events.
11768 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11770 Support styling on native MS-Windows console
11773 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11774 on MS-Windows if $TERM is not defined.
11776 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11778 * posix-hdep.c (gdb_console_fputs):
11779 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11781 * ui-file.h (gdb_console_fputs): Add prototype.
11783 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11784 back to fputs only if the former returns zero.
11786 2019-03-07 Tom Tromey <tom@tromey.com>
11788 * symmisc.c (print_symbol_bcache_statistics): Update.
11789 (print_objfile_statistics): Update.
11790 * symfile.c (allocate_symtab): Update.
11791 * stabsread.c: Don't include bcache.h.
11792 * psymtab.h (struct psymbol_bcache): Don't declare.
11793 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11794 (psymbol_bcache_init, psymbol_bcache_free)
11795 (psymbol_bcache_get_bcache): Don't declare.
11796 * psymtab.c (struct psymbol_bcache): Remove.
11797 (psymtab_storage::psymtab_storage): Update.
11798 (psymtab_storage::~psymtab_storage): Update.
11799 (psymbol_bcache_init, psymbol_bcache_free)
11800 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11801 (add_psymbol_to_bcache): Update.
11802 (allocate_psymtab): Update.
11803 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11804 macro_cache>: No longer pointers.
11805 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11806 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11807 * macrotab.c (macro_bcache): Update.
11808 * macroexp.c: Don't include bcache.h.
11809 * gdbtypes.c (check_types_worklist): Update.
11810 (types_deeply_equal): Remove TRY/CATCH. Update.
11811 * elfread.c (elf_symtab_read): Update.
11812 * dwarf2read.c: Don't include bcache.h.
11813 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11814 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11815 (print_bcache_statistics, bcache_memory_used): Don't declare.
11816 (struct bcache): Move from bcache.c. Add constructor, destructor,
11817 methods. Rename all data members.
11818 * bcache.c (struct bcache): Move to bcache.h.
11819 (bcache::expand_hash_table): Rename from expand_hash_table.
11821 (bcache::insert): Rename from bcache_full.
11822 (bcache::compare): Rename from bcache_compare.
11823 (bcache_xmalloc): Remove.
11824 (bcache::~bcache): Rename from bcache_xfree.
11825 (bcache::print_statistics): Rename from print_bcache_statistics.
11826 (bcache::memory_used): Rename from bcache_memory_used.
11828 2019-03-07 Pedro Alves <palves@redhat.com>
11830 * infrun.c (normal_stop): Also check for
11831 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11833 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11835 * f-lang.c (value_from_host_double): Moved to...
11836 * value.c (value_from_host_double): ...here.
11837 * value.h (value_from_host_double): Declare.
11838 * guile/scm-math.c (vlscm_convert_typed_number): Use
11839 value_from_host_double.
11840 (vlscm_convert_number): Likewise.
11841 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11842 * python/py-value.c (convert_value_from_python): Likewise.
11844 2019-03-06 Tom Tromey <tom@tromey.com>
11846 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11848 2019-03-06 Tom Tromey <tom@tromey.com>
11850 * utils.h (free_current_contents): Don't declare.
11851 * utils.c (free_current_contents): Remove.
11853 2019-03-06 Tom Tromey <tom@tromey.com>
11855 * top.c (quit_force): Update.
11856 * main.c (captured_command_loop): Update.
11857 * common/new-op.c (operator new): Update.
11858 * common/common-exceptions.c (struct catcher)
11859 <save_cleanup_chain>: Remove member.
11860 (exceptions_state_mc_init): Update.
11861 (exception_try_scope_entry): Return nullptr.
11862 (exception_try_scope_exit, exception_rethrow)
11863 (throw_exception_sjlj, throw_exception_cxx): Update.
11864 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11865 (all_cleanups, do_cleanups, discard_cleanups)
11866 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11867 (restore_cleanups, restore_final_cleanups): Don't declare.
11868 (do_final_cleanups): Remove parameter.
11869 * common/cleanups.c (cleanup_chain, make_cleanup)
11870 (make_cleanup_dtor, all_cleanups, do_cleanups)
11871 (discard_my_cleanups, discard_cleanups)
11872 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11873 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11874 (null_cleanup): Remove.
11875 (do_final_cleanups): Remove parameter.
11877 2019-03-06 Tom Tromey <tom@tromey.com>
11879 * remote.c (remote_target::remote_parse_stop_reply): Use
11880 unique_xmalloc_ptr.
11882 2019-03-06 Tom Tromey <tom@tromey.com>
11884 * stabsread.c (struct stabs_field_info): Rename from field_info.
11885 <list, fnlist>: Add initializers.
11886 <obstack>: New member.
11887 (read_member_functions, read_struct_fields, read_baseclasses):
11888 Allocate on obstack. Don't use cleanups.
11889 (read_one_struct_field, read_member_functions, read_struct_fields)
11890 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11891 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11892 (read_struct_type): Update.
11894 2019-03-06 Tom Tromey <tom@tromey.com>
11896 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11897 * common/filestuff.h (make_cleanup_close): Don't declare.
11898 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11901 2019-03-06 Tom Tromey <tom@tromey.com>
11903 * solib-aix.c: Use make_scope_exit.
11905 2019-03-06 Tom Tromey <tom@tromey.com>
11907 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11908 Use make_scope_exit.
11910 2019-03-06 Tom Tromey <tom@tromey.com>
11912 * solib-svr4.c (disable_probes_interface): Remove parameter.
11913 (svr4_handle_solib_event): Use make_scope_exit.
11915 2019-03-06 Tom Tromey <tom@tromey.com>
11917 * remote.c (struct stop_reply_deleter): Remove.
11918 (stop_reply_up): Update.
11919 (struct stop_reply): Derive from notif_event. Don't typedef.
11920 <regcache>: Now a std::vector.
11921 (stop_reply_xfree): Remove.
11922 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11923 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11924 (remote_target::discard_pending_stop_replies): Use delete.
11925 (remote_target::remote_parse_stop_reply): Update.
11926 (remote_target::process_stop_reply): Update.
11927 * remote-notif.h (struct notif_event): Add virtual destructor.
11928 Remove "dtr" member.
11929 (struct notif_client) <alloc_event>: Return a unique_ptr.
11930 (notif_event_xfree): Don't declare.
11931 (notif_event_up): New typedef.
11932 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11933 (notif_event_xfree, do_notif_event_xfree): Remove.
11934 (remote_notif_state_xfree): Update.
11936 2019-03-06 Tom Tromey <tom@tromey.com>
11938 * infrun.c (displaced_step_clear_cleanup): Now a
11939 forward_scope_exit type.
11940 (displaced_step_prepare_throw): Update.
11941 (displaced_step_fixup): Update.
11943 2019-03-06 Tom Tromey <tom@tromey.com>
11945 * inferior.h (class inferior): Update comment.
11946 * gdbthread.h (class thread_info): Update comment.
11948 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11949 Tom Tromey <tom@tromey.com>
11951 * stabsread.h (struct stab_section_list): Remove.
11952 (coffstab_build_psymtabs): Update.
11953 * dbxread.c (symbuf_sections): Now a std::vector.
11954 (sect_idx): New global.
11955 (fill_symbuf): Update.
11956 (coffstab_build_psymtabs): Change type of stabsects parameter.
11958 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11960 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11961 (coff_locate_sections): Update.
11962 (coff_symfile_read): Remove cleanups. Update.
11963 (init_stringtab): Add storage parameter.
11964 (free_stringtab, free_stringtab_cleanup): Remove.
11965 (init_lineno): Add storage parameter.
11966 (free_linetab, free_linetab_cleanup): Remove.
11968 2019-03-06 Pedro Alves <palves@redhat.com>
11970 * linux-fork.c (fork_info::clobber_regs): Delete.
11971 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11972 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11974 (scoped_switch_fork_info::scoped_switch_fork_info)
11975 (checkpoint_command, linux_fork_context): Adjust
11976 fork_save_infrun_state calls.
11978 2019-03-06 Pedro Alves <palves@redhat.com>
11980 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11981 (inf_has_multiple_threads): Return 'bool' and rewrite using
11982 inferior_info::threads().
11984 2019-03-06 Pedro Alves <palves@redhat.com>
11986 * linux-fork.c: Include <list>.
11987 (fork_list): Now a std::list instance.
11988 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11989 (forks_exist_p, find_last_fork): Adjust.
11990 (new_fork): Delete.
11992 (add_fork): Adjust.
11993 (free_fork): Delete, folded into fork_info::~fork_info().
11994 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11996 (init_fork_list): Delete.
11997 (linux_fork_killall, linux_fork_mourn_inferior)
11998 (linux_fork_detach, info_checkpoints_command): Adjust.
11999 (_initialize_linux_fork): No longer call init_fork_list.
12001 2019-03-06 Pedro Alves <palves@redhat.com>
12003 * linux-fork.c (new_fork): New, split out of ...
12004 (add_fork): ... this. Return void. Move "first fork" special
12005 case from here, to ...
12006 (checkpoint_command): ... here.
12007 * linux-linux.h (add_fork): Return void.
12009 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12011 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12013 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12014 Chris January <chris.january@arm.com>
12015 David Lecomber <david.lecomber@arm.com>
12017 * f-exp.y: New token, UNOP_INTRINSIC.
12018 (exp): New pattern using UNOP_INTRINSIC token.
12019 (f77_keywords): Add 'abs' keyword.
12020 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12021 (value_from_host_double): New function.
12022 (evaluate_subexp_f): Support UNOP_ABS.
12024 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12026 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12029 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12031 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12032 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12033 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12035 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12037 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12039 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12040 Chris January <chris.january@arm.com>
12042 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12043 * f-exp.y: Define 'KIND' token.
12044 (exp): New pattern for KIND expressions.
12045 (ptype): Handle types with a kind extension.
12046 (direct_abs_decl): Extend to spot kind extensions.
12047 (f77_keywords): Add 'kind' to the list.
12048 (push_kind_type): New function.
12049 (convert_to_kind_type): New function.
12050 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12051 * parse.c (operator_length_standard): Likewise.
12052 * parser-defs.h (enum type_pieces): Add tp_kind.
12053 * std-operator.def: Add UNOP_KIND.
12055 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12057 * f-exp.y (f_parse): Set yydebug.
12059 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12061 * f-lang.c (evaluate_subexp_f): New function.
12062 (exp_descriptor_f): New global.
12063 (f_language_defn): Use exp_descriptor_f instead of
12064 exp_descriptor_standard.
12066 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12068 * f-exp.y (struct token): Add comments.
12069 (dot_ops): Remove uppercase versions and the end marker.
12070 (f77_keywords): Likewise.
12071 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12072 entries in the dot_ops array are case insensitive, and use
12073 strncasecmp to compare strings. Also some whitespace cleanup in
12074 this area. Similar for the f77_keywords array, except entries in
12075 this list might be case sensitive.
12077 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12079 * f-exp.y (struct f77_boolean_val): Add comments.
12080 (boolean_values): Remove uppercase versions, and end marker.
12081 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12082 and use strncasecmp to achieve case insensitivity. Additionally,
12083 perform whitespace cleanup around this code.
12085 2019-03-06 Tom Tromey <tromey@adacore.com>
12087 * remote-sim.c (gdbsim_target_open): Use result of
12090 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12091 Dirk Schubert <dirk.schubert@arm.com>
12092 Chris January <chris.january@arm.com>
12094 * eval.c (evaluate_subexp_standard): Call Fortran argument
12096 * f-lang.c (struct value): A value which can be passed into a
12097 Fortran function call.
12098 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12100 (struct type): Value ready for a Fortran function call.
12101 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12103 * f-lang.h (fortran_argument_convert): Declaration.
12104 (fortran_preserve_arg_pointer): Declaration.
12105 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12107 2019-03-05 Tom Tromey <tromey@adacore.com>
12109 * python/py-prettyprint.c (print_string_repr): Remove #if.
12110 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12112 2019-03-05 Tom Tromey <tromey@adacore.com>
12114 * target.c (the_dummy_target): Move later. Change type to
12116 (initialize_targets): Don't initialize the_dummy_target.
12118 2019-03-05 Tom Tromey <tromey@adacore.com>
12120 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12121 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12123 2019-03-05 Tom Tromey <tromey@adacore.com>
12125 * windows-nat.c (windows_nat_target::attach)
12126 (windows_nat_target::detach): Don't call gdb_flush.
12127 * valprint.c (generic_val_print, val_print, val_print_string):
12128 Don't call gdb_flush.
12129 * utils.c (defaulted_query): Don't call gdb_flush.
12130 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12131 * target.c (target_announce_detach): Don't call gdb_flush.
12132 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12133 * remote.c (extended_remote_target::attach): Don't call
12135 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12136 * printcmd.c (do_examine): Don't call gdb_flush.
12137 (info_display_command): Don't call gdb_flush.
12138 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12139 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12140 * memattr.c (info_mem_command): Don't call gdb_flush.
12141 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12142 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12143 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12144 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12145 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12146 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12147 (gnu_nat_target::detach): Don't call gdb_flush.
12148 * f-valprint.c (f_val_print): Don't call gdb_flush.
12149 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12150 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12151 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12153 * c-valprint.c (c_val_print): Don't call gdb_flush.
12154 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12156 2019-03-05 Tom Tromey <tromey@adacore.com>
12158 * varobj.c (update_dynamic_varobj_children): Update.
12159 (install_default_visualizer): Use reset, not release.
12160 * value.c (set_internalvar): Update.
12161 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12162 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12163 ATTRIBUTE_UNUSED_RESULT.
12165 2019-03-05 Tom Tromey <tromey@adacore.com>
12167 * remote.c (class scoped_remote_fd) <release>: Add
12168 ATTRIBUTE_UNUSED_RESULT.
12170 2019-03-05 Tom Tromey <tromey@adacore.com>
12172 * macroexp.c (struct macro_buffer) <release>: Add
12173 ATTRIBUTE_UNUSED_RESULT.
12175 2019-03-05 Tom Tromey <tromey@adacore.com>
12177 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12178 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12179 ATTRIBUTE_UNUSED_RESULT.
12181 2019-03-05 Tom Tromey <tromey@adacore.com>
12183 * common/scoped_fd.h (class scoped_fd) <release>: Add
12184 ATTRIBUTE_UNUSED_RESULT.
12186 2019-03-05 Tom Tromey <tromey@adacore.com>
12188 * parser-defs.h (struct parser_state) <release>: Add
12189 ATTRIBUTE_UNUSED_RESULT.
12191 2019-03-05 Tom Tromey <tromey@adacore.com>
12193 * utils.h (class gdb_argv) <release>: Add
12194 ATTRIBUTE_UNUSED_RESULT.
12195 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12197 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12199 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12200 for-loop range, to avoid compiler warnings.
12202 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12203 avoid compiler warnings about unused variables.
12205 * NEWS: Mention end of support for native debugging on MS-Windows
12209 * common/netstuff.c:
12210 * gdbserver/gdbreplay.c
12211 * gdbserver/remote-utils.c:
12213 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12214 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12215 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12216 'getaddrinfo' and 'freeaddrinfo' were not available before
12217 Windows XP, and mingw.org's MinGW headers by default define
12218 _WIN32_WINNT to 0x500.
12220 2019-03-01 Gary Benson <gbenson@redhat.com>
12222 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12224 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12225 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12228 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12229 set_sigint_trap, clear_sigint_trap.
12231 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12233 * target.c (target_detach): Clear the regcache and the
12236 2019-02-27 Pedro Alves <palves@redhat.com>
12238 * utils.c (set_screen_size): When we cap the height/width sizes,
12239 tweak the corresponding command variable to show "unlimited":
12241 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12242 Pedro Alves <palves@redhat.com>
12244 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12245 before calling rl_set_screen_size.
12247 2019-02-27 Tom Tromey <tromey@adacore.com>
12249 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12251 * python/py-value.c: Remove Python 2.4 workaround.
12252 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12254 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12255 Python 2.4 workaround.
12256 * python/python-internal.h: Remove Python 2.4 comment.
12257 (Py_ssize_t): Don't define.
12258 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12259 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12260 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12261 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12262 * python/python.c (do_start_initialization): Remove Python 2.4
12264 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12265 (print_children): Remove Python 2.4 workaround.
12266 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12268 (CHARBUFFERPROC_NAME): Remove.
12269 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12270 Python 2.4 workaround.
12272 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12274 * NEWS: Note minimum Python version.
12276 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12278 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12279 code from these functions. Remove corresponding ifdefs. Use
12280 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12281 Remove gotos and target of gotos.
12282 (infpy_search_memory): Likewise.
12284 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12286 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12287 (hppa_gdbarch_init): Don't register deleted functions with
12290 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12292 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12293 (h8300_unwind_sp): Delete.
12294 (h8300_dummy_id): Delete.
12295 (h8300_gdbarch_init): Don't register deleted functions with
12298 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12300 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12301 (ft32_unwind_pc): Delete.
12302 (ft32_unwind_sp): Delete.
12303 (ft32_gdbarch_init): Don't register deleted functions with
12306 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12308 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12309 (frv_unwind_pc): Delete.
12310 (frv_unwind_sp): Delete.
12311 (frv_gdbarch_init): Don't register deleted functions with
12314 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12316 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12317 (riscv_unwind_pc): Delete.
12318 (riscv_unwind_sp): Delete.
12319 (riscv_gdbarch_init): Don't register deleted functions with
12322 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12324 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12325 (csky_unwind_pc): Delete.
12326 (csky_unwind_sp): Delete.
12327 (csky_gdbarch_init): Don't register deleted functions with
12330 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12332 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12333 (cris_unwind_pc): Delete.
12334 (cris_unwind_sp): Delete.
12335 (cris_gdbarch_init): Don't register deleted functions with
12338 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12340 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12341 (bfin_unwind_pc): Delete.
12342 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12344 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12346 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12347 (arm_unwind_pc): Delete.
12348 (arm_unwind_sp): Delete.
12349 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12351 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12353 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12354 (arc_unwind_pc): Delete.
12355 (arc_unwind_sp): Delete.
12356 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12358 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12360 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12361 (alpha_unwind_pc): Delete.
12362 (alpha_gdbarch_init): Don't register deleted functions with
12365 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12367 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12368 (aarch64_unwind_pc): Delete.
12369 (aarch64_unwind_sp): Delete.
12370 (aarch64_gdbarch_init): Don't register deleted functions with
12373 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12375 * gdbtypes.c (type_align): Don't consider static members when
12376 computing structure alignment.
12378 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12380 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12381 return 0 for other types.
12382 * arch-utils.c (default_type_align): Always return 0.
12383 * gdbarch.h: Regenerate.
12384 * gdbarch.sh (type_align): Extend comment.
12385 * gdbtypes.c (type_align): Add additional comments, always call
12386 gdbarch_type_align before applying the default rules.
12387 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12388 generic code will then apply a suitable default.
12389 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12390 types, return 0 for other types.
12392 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12394 * NEWS: Create a new section for the next release branch.
12395 Rename the section of the current branch, now that it has
12398 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12400 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12401 * version.in: Bump version to 8.3.50.DATE-git.
12403 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12405 * aix-thread.c (ptid_cmp): Remove unused variable.
12406 (get_signaled_thread): Likewise.
12407 (store_regs_user_thread): Likewise.
12408 (store_regs_kernel_thread): Likewise.
12409 (fetch_regs_kernel_thread): Remove shadowed variable.
12411 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12413 * features/riscv/32bit-cpu.xml: Add register numbers.
12414 * features/riscv/32bit-fpu.c: Regenerate.
12415 * features/riscv/32bit-fpu.xml: Add register numbers.
12416 * features/riscv/64bit-cpu.xml: Add register numbers.
12417 * features/riscv/64bit-fpu.c: Regenerate.
12418 * features/riscv/64bit-fpu.xml: Add register numbers.
12420 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12422 * NEWS: Mention two argument form of gdb.Value constructor.
12423 * python/py-value.c (convert_buffer_and_type_to_value): New
12425 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12426 Add support for handling an optional second argument. Call
12427 convert_buffer_and_type_to_value as appropriate.
12428 * python/python-internal.h (Py_buffer_deleter): New struct.
12429 (Py_buffer_up): New typedef.
12431 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12433 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12434 instead of releasing ownership.
12436 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12438 * dwarf2read.c (open_and_init_dwp_file): Call
12439 elf_numsections instead of bfd_count_sections to initialize
12440 dwp_file->num_sections.
12442 2019-02-25 Tom Tromey <tromey@adacore.com>
12444 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12446 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12448 * gcore.in: Add '--readnever' option when invoking GDB.
12450 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12452 * MAINTAINERS: Update my email address.
12454 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12456 * build-id.c (build_id_to_debug_bfd_1): New function.
12457 (build_id_to_debug_bfd): Look for separate debug file in
12460 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12462 * gdbarch.sh: Update the copyright year range that is placed into
12465 2019-02-22 Keith Seitz <keiths@redhat.com>
12468 * linespec.c (create_sals_line_offset): Search for the default
12469 symtab's filename instead of its fullname.
12471 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12473 * NEWS: Update style defaults.
12475 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12477 * main.c (captured_main_1): Disable styling in batch mode.
12479 2019-02-20 Tom Tromey <tom@tromey.com>
12481 * symtab.c (symtab_symbol_info): Fix typos.
12483 2019-02-20 Tom Tromey <tromey@adacore.com>
12485 * findcmd.c (_initialize_mem_search): Use upper case for
12486 metasyntactic variables.
12488 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12490 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12491 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12493 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12495 * top.h (source_file_name): Change to std::string.
12496 * top.c (source_file_name): Likewise.
12497 (command_line_input): Adjust.
12498 * cli/cli-script.c (script_from_file): Adjust.
12500 2019-02-19 Tom Tromey <tromey@adacore.com>
12502 * ravenscar-thread.c
12503 (ravenscar_thread_target::update_thread_list): Don't call
12504 ada_build_task_list.
12505 * ada-lang.h (ada_build_task_list): Don't declare.
12506 * ada-tasks.c (struct ada_tasks_inferior_data)
12507 <task_list_valid_p>: Now bool.
12508 (read_known_tasks, ada_task_list_changed)
12509 (ada_tasks_invalidate_inferior_data): Update.
12510 (read_known_tasks_array): Return bool.
12511 (read_known_tasks_list): Likewise.
12512 (read_known_tasks): Return void.
12513 (ada_build_task_list): Now static.
12515 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12517 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12518 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12520 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12522 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12523 variant for ada_tasks_pspace_data_handle and
12524 ada_tasks_inferior_data_handle.
12525 (ada_tasks_pspace_data_cleanup): New function.
12526 (ada_tasks_inferior_data_cleanup): New function.
12528 2019-02-17 Tom Tromey <tom@tromey.com>
12530 * macrotab.h (macro_source_fullname): Return a std::string.
12531 * macrotab.c (macro_include, check_for_redefinition)
12532 (macro_undef, macro_lookup_definition, foreach_macro)
12533 (foreach_macro_in_scope): Update.
12534 (macro_source_fullname): Return a std::string.
12535 * macrocmd.c (show_pp_source_pos): Update.
12537 2019-02-17 Tom Tromey <tom@tromey.com>
12539 * macrocmd.c (show_pp_source_pos): Style the file names.
12541 2019-02-17 Tom Tromey <tom@tromey.com>
12544 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12546 2019-02-17 Tom Tromey <tom@tromey.com>
12548 * ada-lang.c (user_select_syms): Use filtered printing.
12549 * utils.c (wrap_style): New global.
12550 (desired_style): Remove.
12551 (emit_style_escape): Add stream parameter.
12552 (set_output_style, reset_terminal_style, prompt_for_continue):
12554 (flush_wrap_buffer): Only flush gdb_stdout.
12555 (wrap_here): Set wrap_style.
12556 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12557 treat escape sequences as a character. Change when wrap buffer is
12559 (fputs_styled): Do not set the output style when the default is
12561 * ui-style.h (struct ui_file_style) <is_default>: New method.
12562 * source.c (print_source_lines_base): Emit escape sequences in one
12565 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12567 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12568 integers and enumeration types.
12570 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12572 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12573 instead of lookup_symbol_in_language
12574 (do_exact_match): New function.
12575 (ada_get_symbol_name_matcher): Return do_exact_match when
12576 doing a verbatim match.
12578 2019-02-15 Tom Tromey <tromey@adacore.com>
12580 * ravenscar-thread.c (ravenscar_thread_target::resume)
12581 (ravenscar_thread_target::wait): Special case wildcard requests.
12583 2019-02-15 Tom Tromey <tromey@adacore.com>
12585 * ravenscar-thread.c (base_ptid): Remove.
12586 (struct ravenscar_thread_target) <close>: New method.
12587 <m_base_ptid>: New member.
12588 <update_inferior_ptid, active_task, task_is_currently_active,
12589 runtime_initialized>: Declare methods.
12590 <ravenscar_thread_target>: Add constructor.
12591 (ravenscar_thread_target::task_is_currently_active)
12592 (ravenscar_thread_target::update_inferior_ptid)
12593 (ravenscar_runtime_initialized): Rename. Now methods.
12594 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12595 (ravenscar_thread_target::update_thread_list): Update.
12596 (ravenscar_thread_target::active_task): Now method.
12597 (ravenscar_thread_target::store_registers)
12598 (ravenscar_thread_target::prepare_to_store)
12599 (ravenscar_thread_target::prepare_to_store)
12600 (ravenscar_thread_target::mourn_inferior): Update.
12601 (ravenscar_inferior_created): Use "new" to create target.
12602 (ravenscar_thread_target::get_ada_task_ptid): Update.
12603 (_initialize_ravenscar): Don't initialize base_ptid.
12604 (ravenscar_ops): Remove global.
12606 2019-02-15 Tom Tromey <tromey@adacore.com>
12608 * target.h (push_target): Declare new overload.
12609 * target.c (push_target): New overload, taking an rvalue reference.
12610 * remote.c (remote_target::open_1): Use push_target overload.
12611 * corelow.c (core_target_open): Use push_target overload.
12613 2019-02-15 Tom Tromey <tromey@adacore.com>
12615 * ravenscar-thread.c (is_ravenscar_task)
12616 (ravenscar_task_is_currently_active): Return bool.
12617 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12618 (_initialize_ravenscar): Remove "(void)".
12619 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12622 2019-02-15 Tom Tromey <tromey@adacore.com>
12624 * ravenscar-thread.c (ravenscar_runtime_initializer)
12625 (has_ravenscar_runtime, get_running_thread_id)
12626 (ravenscar_thread_target::resume): Fix indentation.
12628 2019-02-15 Tom Tromey <tromey@adacore.com>
12630 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12631 from ravenscar_arch_ops.
12632 (sparc_ravenscar_ops::fetch_registers)
12633 (sparc_ravenscar_ops::store_registers): Now methods.
12634 (sparc_ravenscar_prepare_to_store): Remove.
12635 (sparc_ravenscar_ops): Redefine.
12636 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12637 methods and destructor. Remove members.
12638 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12639 (ravenscar_thread_target::store_registers)
12640 (ravenscar_thread_target::prepare_to_store): Update.
12641 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12643 (struct ppc_ravenscar_powerpc_ops): Derive from
12644 ravenscar_arch_ops.
12645 (ppc_ravenscar_powerpc_ops::fetch_registers)
12646 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12647 (ppc_ravenscar_powerpc_ops): Redefine.
12648 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12649 (ppc_ravenscar_e500_ops::fetch_registers)
12650 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12651 (ppc_ravenscar_e500_ops): Redefine.
12652 * aarch64-ravenscar-thread.c
12653 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12654 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12655 (aarch64_ravenscar_fetch_registers)
12656 (aarch64_ravenscar_store_registers): Now methods.
12657 (aarch64_ravenscar_ops): Redefine.
12659 2019-02-15 Tom Tromey <tromey@adacore.com>
12661 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12662 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12663 (ravenscar_thread_target::stopped_by_watchpoint)
12664 (ravenscar_thread_target::stopped_data_address)
12665 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12667 2019-02-15 Tom Tromey <tromey@adacore.com>
12669 * ravenscar-thread.c: Fix some typos.
12671 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12672 Tom Tromey <tromey@adacore.com>
12674 * ada-lang.c (ada_exception_sal): Change addr_string to a
12676 (create_ada_exception_catchpoint): Update.
12678 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12679 Tom Tromey <tromey@adacore.com>
12681 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12682 (bp_location_ops): Remove.
12683 (base_breakpoint_allocate_location): Update.
12684 (free_bp_location): Update.
12685 * ada-lang.c (class ada_catchpoint_location)
12686 <ada_catchpoint_location>: Remove ops parameter.
12687 (ada_catchpoint_location_dtor): Remove.
12688 (ada_catchpoint_location_ops): Remove.
12689 (allocate_location_exception): Update.
12690 * breakpoint.h (struct bp_location_ops): Remove.
12691 (class bp_location) <bp_location>: Remove bp_location_ops
12693 <~bp_location>: Add destructor.
12696 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12697 Pedro Alves <palves@redhat.com>
12699 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12702 2019-02-14 David Michael <fedora.dm0@gmail.com>
12703 Samuel Thibault <samuel.thibault@gnu.org>
12704 Thomas Schwinge <thomas@codesourcery.com>
12706 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12707 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12709 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12711 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12712 (check_empty): Use "const char *".
12714 * gnu-nat.c (gnu_nat_target::detach): Instead of
12715 'detach_inferior (pid)' call
12716 'detach_inferior (find_inferior_pid (pid))'.
12718 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12719 'nat/fork-inferior.o'.
12720 * gnu-nat.c: #include "nat/fork-inferior.h".
12722 * gnu-nat.c (gnu_nat_target::detach): Instead of
12723 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12724 * gnu-nat.h: #include "inf-child.h".
12725 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12726 'i386_gnu_nat_target::fetch_registers'.
12727 (gnu_store_registers): Rename/move to
12728 'i386_gnu_nat_target::store_registers'.
12730 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12731 * gnu-nat.h (mach_thread_info): New function.
12732 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12734 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12736 2019-02-14 Frederic Konrad <konrad@adacore.com>
12738 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12740 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12742 * windows-nat.c (windows_add_thread): Add new parameter
12743 "main_thread_p" with default value set to false. Update
12744 function documentation as well as all callers.
12745 (windows_delete_thread): Likewise.
12746 (fake_create_process): Update call to windows_add_thread.
12747 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12748 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12749 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12750 call to windows_delete_thread.
12752 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12754 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12756 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12758 * symfile.c (find_separate_debug_file): Use canonical path of
12759 sysroot with child_path instead of gdb_sysroot if it is valid.
12761 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12763 * symfile.c (find_separate_debug_file): Use child_path to
12764 determine if an object file is under a sysroot.
12766 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12768 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12769 unittests/child-path-selftests.c.
12770 * common/pathstuff.c (child_path): New function.
12771 * common/pathstuff.h (child_path): New prototype.
12772 * unittests/child-path-selftests.c: New file.
12774 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12776 * symfile.c (find_separate_debug_file): Look for separate debug
12777 files in debug directories under the sysroot.
12779 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12781 * symtab.h (struct minimal_symbol data_p): New const method.
12782 (struct minimal_symbol text_p): Likewise.
12783 * symtab.c (output_source_filename): Use file name style
12784 to print file name.
12785 (print_symbol_info): Likewise.
12786 (print_msymbol_info): Use address style to print addresses.
12787 Use function name style to print executable text symbols.
12788 (expand_symtab_containing_pc): Use data_p.
12789 (find_pc_sect_compunit_symtab): Likewise.
12791 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12793 * breakpoint.c (describe_other_breakpoints): Use address style
12794 to print addresses.
12795 (say_where): Likewise.
12797 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12799 * ada-typeprint.c (print_func_type): Print function name
12800 style to print function name.
12801 * c-typeprint.c (c_print_type_1): Likewise.
12803 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12805 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12808 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12810 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12813 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12815 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12816 TYPE_CODE_REF types.
12818 2019-02-08 Jim Wilson <jimw@sifive.com>
12820 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12821 (riscv_linux_fregset): New.
12822 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12824 2019-02-07 Tom Tromey <tom@tromey.com>
12826 * thread.c (thread_cancel_execution_command): Update.
12827 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12829 (struct thread_fsm_ops): Remove.
12830 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12831 (thread_fsm_should_stop, thread_fsm_return_value)
12832 (thread_fsm_set_finished, thread_fsm_finished_p)
12833 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12835 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12836 * infrun.c (clear_proceed_status_thread)
12837 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12838 (print_stop_event): Update.
12839 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12841 (step_command_fsm_ops): Remove.
12842 (new_step_command_fsm): Remove.
12844 (step_command_fsm::should_stop): Rename from
12845 step_command_fsm_should_stop.
12846 (step_command_fsm::clean_up): Rename from
12847 step_command_fsm_clean_up.
12848 (step_command_fsm::do_async_reply_reason): Rename from
12849 step_command_fsm_async_reply_reason.
12850 (struct until_next_fsm): Inherit from thread_fsm. Add
12852 (until_next_fsm_ops): Remove.
12853 (new_until_next_fsm): Remove.
12854 (until_next_fsm::should_stop): Rename from
12855 until_next_fsm_should_stop.
12856 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12857 (until_next_fsm::do_async_reply_reason): Rename from
12858 until_next_fsm_async_reply_reason.
12859 (struct finish_command_fsm): Inherit from thread_fsm. Add
12860 constructor. Change type of breakpoint.
12861 (finish_command_fsm_ops): Remove.
12862 (new_finish_command_fsm): Remove.
12863 (finish_command_fsm::should_stop): Rename from
12864 finish_command_fsm_should_stop.
12865 (finish_command_fsm::clean_up): Rename from
12866 finish_command_fsm_clean_up.
12867 (finish_command_fsm::return_value): Rename from
12868 finish_command_fsm_return_value.
12869 (finish_command_fsm::do_async_reply_reason): Rename from
12870 finish_command_fsm_async_reply_reason.
12871 (finish_command): Update.
12872 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12874 (call_thread_fsm_ops): Remove.
12875 (call_thread_fsm::call_thread_fsm): Rename from
12876 new_call_thread_fsm.
12877 (call_thread_fsm::should_stop): Rename from
12878 call_thread_fsm_should_stop.
12879 (call_thread_fsm::should_notify_stop): Rename from
12880 call_thread_fsm_should_notify_stop.
12881 (run_inferior_call, call_function_by_hand_dummy): Update.
12882 * cli/cli-interp.c (should_print_stop_to_console): Update.
12883 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12884 Add constructor. Change type of location_breakpoint,
12886 (until_break_fsm_ops): Remove.
12887 (new_until_break_fsm): Remove.
12888 (until_break_fsm::should_stop): Rename from
12889 until_break_fsm_should_stop.
12890 (until_break_fsm::clean_up): Rename from
12891 until_break_fsm_clean_up.
12892 (until_break_fsm::do_async_reply_reason): Rename from
12893 until_break_fsm_async_reply_reason.
12894 (until_break_command): Update.
12895 * thread-fsm.c: Remove.
12896 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12898 2019-02-07 Tom Tromey <tom@tromey.com>
12900 * yy-remap.h: Add include guard.
12901 * xtensa-tdep.h: Add include guard.
12902 * xcoffread.h: Rename include guard.
12903 * varobj-iter.h: Add include guard.
12904 * tui/tui.h: Rename include guard.
12905 * tui/tui-winsource.h: Rename include guard.
12906 * tui/tui-wingeneral.h: Rename include guard.
12907 * tui/tui-windata.h: Rename include guard.
12908 * tui/tui-win.h: Rename include guard.
12909 * tui/tui-stack.h: Rename include guard.
12910 * tui/tui-source.h: Rename include guard.
12911 * tui/tui-regs.h: Rename include guard.
12912 * tui/tui-out.h: Rename include guard.
12913 * tui/tui-layout.h: Rename include guard.
12914 * tui/tui-io.h: Rename include guard.
12915 * tui/tui-hooks.h: Rename include guard.
12916 * tui/tui-file.h: Rename include guard.
12917 * tui/tui-disasm.h: Rename include guard.
12918 * tui/tui-data.h: Rename include guard.
12919 * tui/tui-command.h: Rename include guard.
12920 * tic6x-tdep.h: Add include guard.
12921 * target/waitstatus.h: Rename include guard.
12922 * target/wait.h: Rename include guard.
12923 * target/target.h: Rename include guard.
12924 * target/resume.h: Rename include guard.
12925 * target-float.h: Rename include guard.
12926 * stabsread.h: Add include guard.
12927 * rs6000-tdep.h: Add include guard.
12928 * riscv-fbsd-tdep.h: Add include guard.
12929 * regformats/regdef.h: Rename include guard.
12930 * record.h: Rename include guard.
12931 * python/python.h: Rename include guard.
12932 * python/python-internal.h: Rename include guard.
12933 * python/py-stopevent.h: Rename include guard.
12934 * python/py-ref.h: Rename include guard.
12935 * python/py-record.h: Rename include guard.
12936 * python/py-record-full.h: Rename include guard.
12937 * python/py-record-btrace.h: Rename include guard.
12938 * python/py-instruction.h: Rename include guard.
12939 * python/py-events.h: Rename include guard.
12940 * python/py-event.h: Rename include guard.
12941 * procfs.h: Add include guard.
12942 * proc-utils.h: Add include guard.
12943 * p-lang.h: Add include guard.
12944 * or1k-tdep.h: Rename include guard.
12945 * observable.h: Rename include guard.
12946 * nto-tdep.h: Rename include guard.
12947 * nat/x86-linux.h: Rename include guard.
12948 * nat/x86-linux-dregs.h: Rename include guard.
12949 * nat/x86-gcc-cpuid.h: Add include guard.
12950 * nat/x86-dregs.h: Rename include guard.
12951 * nat/x86-cpuid.h: Rename include guard.
12952 * nat/ppc-linux.h: Rename include guard.
12953 * nat/mips-linux-watch.h: Rename include guard.
12954 * nat/linux-waitpid.h: Rename include guard.
12955 * nat/linux-ptrace.h: Rename include guard.
12956 * nat/linux-procfs.h: Rename include guard.
12957 * nat/linux-osdata.h: Rename include guard.
12958 * nat/linux-nat.h: Rename include guard.
12959 * nat/linux-namespaces.h: Rename include guard.
12960 * nat/linux-btrace.h: Rename include guard.
12961 * nat/glibc_thread_db.h: Rename include guard.
12962 * nat/gdb_thread_db.h: Rename include guard.
12963 * nat/gdb_ptrace.h: Rename include guard.
12964 * nat/fork-inferior.h: Rename include guard.
12965 * nat/amd64-linux-siginfo.h: Rename include guard.
12966 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12967 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12968 * nat/aarch64-linux.h: Rename include guard.
12969 * nat/aarch64-linux-hw-point.h: Rename include guard.
12970 * mn10300-tdep.h: Add include guard.
12971 * mips-linux-tdep.h: Add include guard.
12972 * mi/mi-parse.h: Rename include guard.
12973 * mi/mi-out.h: Rename include guard.
12974 * mi/mi-main.h: Rename include guard.
12975 * mi/mi-interp.h: Rename include guard.
12976 * mi/mi-getopt.h: Rename include guard.
12977 * mi/mi-console.h: Rename include guard.
12978 * mi/mi-common.h: Rename include guard.
12979 * mi/mi-cmds.h: Rename include guard.
12980 * mi/mi-cmd-break.h: Rename include guard.
12981 * m2-lang.h: Add include guard.
12982 * location.h: Rename include guard.
12983 * linux-record.h: Rename include guard.
12984 * linux-nat.h: Add include guard.
12985 * linux-fork.h: Add include guard.
12986 * i386-darwin-tdep.h: Rename include guard.
12987 * hppa-linux-offsets.h: Add include guard.
12988 * guile/guile.h: Rename include guard.
12989 * guile/guile-internal.h: Rename include guard.
12990 * gnu-nat.h: Rename include guard.
12991 * gdb-stabs.h: Rename include guard.
12992 * frv-tdep.h: Add include guard.
12993 * f-lang.h: Add include guard.
12994 * event-loop.h: Add include guard.
12995 * darwin-nat.h: Rename include guard.
12996 * cp-abi.h: Rename include guard.
12997 * config/sparc/nm-sol2.h: Rename include guard.
12998 * config/nm-nto.h: Rename include guard.
12999 * config/nm-linux.h: Add include guard.
13000 * config/i386/nm-i386gnu.h: Rename include guard.
13001 * config/djgpp/nl_types.h: Rename include guard.
13002 * config/djgpp/langinfo.h: Rename include guard.
13003 * compile/gcc-cp-plugin.h: Add include guard.
13004 * compile/gcc-c-plugin.h: Add include guard.
13005 * compile/compile.h: Rename include guard.
13006 * compile/compile-object-run.h: Rename include guard.
13007 * compile/compile-object-load.h: Rename include guard.
13008 * compile/compile-internal.h: Rename include guard.
13009 * compile/compile-cplus.h: Rename include guard.
13010 * compile/compile-c.h: Rename include guard.
13011 * common/xml-utils.h: Rename include guard.
13012 * common/x86-xstate.h: Rename include guard.
13013 * common/version.h: Rename include guard.
13014 * common/vec.h: Rename include guard.
13015 * common/tdesc.h: Rename include guard.
13016 * common/selftest.h: Rename include guard.
13017 * common/scoped_restore.h: Rename include guard.
13018 * common/scoped_mmap.h: Rename include guard.
13019 * common/scoped_fd.h: Rename include guard.
13020 * common/safe-iterator.h: Rename include guard.
13021 * common/run-time-clock.h: Rename include guard.
13022 * common/refcounted-object.h: Rename include guard.
13023 * common/queue.h: Rename include guard.
13024 * common/ptid.h: Rename include guard.
13025 * common/print-utils.h: Rename include guard.
13026 * common/preprocessor.h: Rename include guard.
13027 * common/pathstuff.h: Rename include guard.
13028 * common/observable.h: Rename include guard.
13029 * common/netstuff.h: Rename include guard.
13030 * common/job-control.h: Rename include guard.
13031 * common/host-defs.h: Rename include guard.
13032 * common/gdb_wait.h: Rename include guard.
13033 * common/gdb_vecs.h: Rename include guard.
13034 * common/gdb_unlinker.h: Rename include guard.
13035 * common/gdb_unique_ptr.h: Rename include guard.
13036 * common/gdb_tilde_expand.h: Rename include guard.
13037 * common/gdb_sys_time.h: Rename include guard.
13038 * common/gdb_string_view.h: Rename include guard.
13039 * common/gdb_splay_tree.h: Rename include guard.
13040 * common/gdb_setjmp.h: Rename include guard.
13041 * common/gdb_ref_ptr.h: Rename include guard.
13042 * common/gdb_optional.h: Rename include guard.
13043 * common/gdb_locale.h: Rename include guard.
13044 * common/gdb_assert.h: Rename include guard.
13045 * common/filtered-iterator.h: Rename include guard.
13046 * common/filestuff.h: Rename include guard.
13047 * common/fileio.h: Rename include guard.
13048 * common/environ.h: Rename include guard.
13049 * common/common-utils.h: Rename include guard.
13050 * common/common-types.h: Rename include guard.
13051 * common/common-regcache.h: Rename include guard.
13052 * common/common-inferior.h: Rename include guard.
13053 * common/common-gdbthread.h: Rename include guard.
13054 * common/common-exceptions.h: Rename include guard.
13055 * common/common-defs.h: Rename include guard.
13056 * common/common-debug.h: Rename include guard.
13057 * common/cleanups.h: Rename include guard.
13058 * common/buffer.h: Rename include guard.
13059 * common/btrace-common.h: Rename include guard.
13060 * common/break-common.h: Rename include guard.
13061 * cli/cli-utils.h: Rename include guard.
13062 * cli/cli-style.h: Rename include guard.
13063 * cli/cli-setshow.h: Rename include guard.
13064 * cli/cli-script.h: Rename include guard.
13065 * cli/cli-interp.h: Rename include guard.
13066 * cli/cli-decode.h: Rename include guard.
13067 * cli/cli-cmds.h: Rename include guard.
13068 * charset-list.h: Add include guard.
13069 * buildsym-legacy.h: Rename include guard.
13070 * bfin-tdep.h: Add include guard.
13071 * ax.h: Rename include guard.
13072 * arm-linux-tdep.h: Add include guard.
13073 * arm-fbsd-tdep.h: Add include guard.
13074 * arch/xtensa.h: Rename include guard.
13075 * arch/tic6x.h: Add include guard.
13076 * arch/i386.h: Add include guard.
13077 * arch/arm.h: Rename include guard.
13078 * arch/arm-linux.h: Rename include guard.
13079 * arch/arm-get-next-pcs.h: Rename include guard.
13080 * arch/amd64.h: Add include guard.
13081 * arch/aarch64-insn.h: Rename include guard.
13082 * arch-utils.h: Rename include guard.
13083 * annotate.h: Add include guard.
13084 * amd64-darwin-tdep.h: Rename include guard.
13085 * aarch64-linux-tdep.h: Add include guard.
13086 * aarch64-fbsd-tdep.h: Add include guard.
13087 * aarch32-linux-nat.h: Add include guard.
13089 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13091 * macrotab.c (macro_define_internal): New function that
13092 factorizes macro_define_object_internal and macro_define_function
13094 (macro_define_object_internal): Use macro_define_internal.
13095 (macro_define_function): Likewise.
13097 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13099 * macrocmd.c (extract_identifier): Return
13100 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13103 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13105 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13107 2019-02-05 Tom Tromey <tom@tromey.com>
13109 * target.c (target_stack::unpush): Move assertion earlier.
13111 2019-01-30 Tom Tromey <tom@tromey.com>
13114 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13115 (gdbpy_parse_and_eval): Likewise.
13116 * python/python-internal.h (gdbpy_allow_threads): New class.
13118 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13120 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13121 (aarch64_fbsd_fpregmap): Move earlier.
13122 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13123 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13124 instead of individual calls to trad_frame_set_reg_addr.
13125 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13127 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13128 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13129 instead of individual calls to trad_frame_set_reg_addr.
13131 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13133 * CONTRIBUTE: Replace contribution list with wiki link.
13135 2019-01-25 Tom Tromey <tom@tromey.com>
13137 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13139 2019-01-25 Tom Tromey <tom@tromey.com>
13141 * xtensa-linux-nat.c: Fix common/ includes.
13142 * xml-support.h: Fix common/ includes.
13143 * xml-support.c: Fix common/ includes.
13144 * x86-linux-nat.c: Fix common/ includes.
13145 * windows-nat.c: Fix common/ includes.
13146 * varobj.h: Fix common/ includes.
13147 * varobj.c: Fix common/ includes.
13148 * value.c: Fix common/ includes.
13149 * valops.c: Fix common/ includes.
13150 * utils.c: Fix common/ includes.
13151 * unittests/xml-utils-selftests.c: Fix common/ includes.
13152 * unittests/utils-selftests.c: Fix common/ includes.
13153 * unittests/unpack-selftests.c: Fix common/ includes.
13154 * unittests/tracepoint-selftests.c: Fix common/ includes.
13155 * unittests/style-selftests.c: Fix common/ includes.
13156 * unittests/string_view-selftests.c: Fix common/ includes.
13157 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13158 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13159 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13160 * unittests/rsp-low-selftests.c: Fix common/ includes.
13161 * unittests/parse-connection-spec-selftests.c: Fix common/
13163 * unittests/optional-selftests.c: Fix common/ includes.
13164 * unittests/offset-type-selftests.c: Fix common/ includes.
13165 * unittests/observable-selftests.c: Fix common/ includes.
13166 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13167 * unittests/memrange-selftests.c: Fix common/ includes.
13168 * unittests/memory-map-selftests.c: Fix common/ includes.
13169 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13170 * unittests/function-view-selftests.c: Fix common/ includes.
13171 * unittests/environ-selftests.c: Fix common/ includes.
13172 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13173 * unittests/common-utils-selftests.c: Fix common/ includes.
13174 * unittests/cli-utils-selftests.c: Fix common/ includes.
13175 * unittests/array-view-selftests.c: Fix common/ includes.
13176 * ui-file.c: Fix common/ includes.
13177 * tui/tui-io.c: Fix common/ includes.
13178 * tracepoint.h: Fix common/ includes.
13179 * tracepoint.c: Fix common/ includes.
13180 * tracefile-tfile.c: Fix common/ includes.
13181 * top.h: Fix common/ includes.
13182 * top.c: Fix common/ includes.
13183 * thread.c: Fix common/ includes.
13184 * target/waitstatus.h: Fix common/ includes.
13185 * target/waitstatus.c: Fix common/ includes.
13186 * target.h: Fix common/ includes.
13187 * target.c: Fix common/ includes.
13188 * target-memory.c: Fix common/ includes.
13189 * target-descriptions.c: Fix common/ includes.
13190 * symtab.h: Fix common/ includes.
13191 * symfile.c: Fix common/ includes.
13192 * stap-probe.c: Fix common/ includes.
13193 * spu-linux-nat.c: Fix common/ includes.
13194 * sparc-nat.c: Fix common/ includes.
13195 * source.c: Fix common/ includes.
13196 * solib.c: Fix common/ includes.
13197 * solib-target.c: Fix common/ includes.
13198 * ser-unix.c: Fix common/ includes.
13199 * ser-tcp.c: Fix common/ includes.
13200 * ser-pipe.c: Fix common/ includes.
13201 * ser-base.c: Fix common/ includes.
13202 * selftest-arch.c: Fix common/ includes.
13203 * s12z-tdep.c: Fix common/ includes.
13204 * rust-exp.y: Fix common/ includes.
13205 * rs6000-aix-tdep.c: Fix common/ includes.
13206 * riscv-tdep.c: Fix common/ includes.
13207 * remote.c: Fix common/ includes.
13208 * remote-notif.h: Fix common/ includes.
13209 * remote-fileio.h: Fix common/ includes.
13210 * remote-fileio.c: Fix common/ includes.
13211 * regcache.h: Fix common/ includes.
13212 * regcache.c: Fix common/ includes.
13213 * record-btrace.c: Fix common/ includes.
13214 * python/python.c: Fix common/ includes.
13215 * python/py-type.c: Fix common/ includes.
13216 * python/py-inferior.c: Fix common/ includes.
13217 * progspace.h: Fix common/ includes.
13218 * producer.c: Fix common/ includes.
13219 * procfs.c: Fix common/ includes.
13220 * proc-api.c: Fix common/ includes.
13221 * printcmd.c: Fix common/ includes.
13222 * ppc-linux-nat.c: Fix common/ includes.
13223 * parser-defs.h: Fix common/ includes.
13224 * osdata.c: Fix common/ includes.
13225 * obsd-nat.c: Fix common/ includes.
13226 * nat/x86-linux.c: Fix common/ includes.
13227 * nat/x86-linux-dregs.c: Fix common/ includes.
13228 * nat/x86-dregs.h: Fix common/ includes.
13229 * nat/x86-dregs.c: Fix common/ includes.
13230 * nat/ppc-linux.c: Fix common/ includes.
13231 * nat/mips-linux-watch.h: Fix common/ includes.
13232 * nat/mips-linux-watch.c: Fix common/ includes.
13233 * nat/linux-waitpid.c: Fix common/ includes.
13234 * nat/linux-ptrace.h: Fix common/ includes.
13235 * nat/linux-ptrace.c: Fix common/ includes.
13236 * nat/linux-procfs.c: Fix common/ includes.
13237 * nat/linux-personality.c: Fix common/ includes.
13238 * nat/linux-osdata.c: Fix common/ includes.
13239 * nat/linux-namespaces.c: Fix common/ includes.
13240 * nat/linux-btrace.h: Fix common/ includes.
13241 * nat/linux-btrace.c: Fix common/ includes.
13242 * nat/fork-inferior.c: Fix common/ includes.
13243 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13244 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13245 * nat/aarch64-linux.c: Fix common/ includes.
13246 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13247 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13248 * namespace.h: Fix common/ includes.
13249 * mips-linux-tdep.c: Fix common/ includes.
13250 * minsyms.c: Fix common/ includes.
13251 * mi/mi-parse.h: Fix common/ includes.
13252 * mi/mi-main.c: Fix common/ includes.
13253 * mi/mi-cmd-env.c: Fix common/ includes.
13254 * memrange.h: Fix common/ includes.
13255 * memattr.c: Fix common/ includes.
13256 * maint.h: Fix common/ includes.
13257 * maint.c: Fix common/ includes.
13258 * main.c: Fix common/ includes.
13259 * machoread.c: Fix common/ includes.
13260 * location.c: Fix common/ includes.
13261 * linux-thread-db.c: Fix common/ includes.
13262 * linux-nat.c: Fix common/ includes.
13263 * linux-fork.c: Fix common/ includes.
13264 * inline-frame.c: Fix common/ includes.
13265 * infrun.c: Fix common/ includes.
13266 * inflow.c: Fix common/ includes.
13267 * inferior.h: Fix common/ includes.
13268 * inferior.c: Fix common/ includes.
13269 * infcmd.c: Fix common/ includes.
13270 * inf-ptrace.c: Fix common/ includes.
13271 * inf-child.c: Fix common/ includes.
13272 * ia64-linux-nat.c: Fix common/ includes.
13273 * i387-tdep.c: Fix common/ includes.
13274 * i386-tdep.c: Fix common/ includes.
13275 * i386-linux-tdep.c: Fix common/ includes.
13276 * i386-linux-nat.c: Fix common/ includes.
13277 * i386-go32-tdep.c: Fix common/ includes.
13278 * i386-fbsd-tdep.c: Fix common/ includes.
13279 * i386-fbsd-nat.c: Fix common/ includes.
13280 * guile/scm-type.c: Fix common/ includes.
13281 * guile/guile.c: Fix common/ includes.
13282 * go32-nat.c: Fix common/ includes.
13283 * gnu-nat.c: Fix common/ includes.
13284 * gdbthread.h: Fix common/ includes.
13285 * gdbarch-selftests.c: Fix common/ includes.
13286 * gdb_usleep.c: Fix common/ includes.
13287 * gdb_select.h: Fix common/ includes.
13288 * gdb_bfd.c: Fix common/ includes.
13289 * gcore.c: Fix common/ includes.
13290 * fork-child.c: Fix common/ includes.
13291 * findvar.c: Fix common/ includes.
13292 * fbsd-nat.c: Fix common/ includes.
13293 * event-top.c: Fix common/ includes.
13294 * event-loop.c: Fix common/ includes.
13295 * dwarf2read.c: Fix common/ includes.
13296 * dwarf2loc.c: Fix common/ includes.
13297 * dwarf2-frame.c: Fix common/ includes.
13298 * dwarf-index-cache.c: Fix common/ includes.
13299 * dtrace-probe.c: Fix common/ includes.
13300 * disasm-selftests.c: Fix common/ includes.
13301 * defs.h: Fix common/ includes.
13302 * csky-tdep.c: Fix common/ includes.
13303 * cp-valprint.c: Fix common/ includes.
13304 * cp-support.h: Fix common/ includes.
13305 * cp-support.c: Fix common/ includes.
13306 * corelow.c: Fix common/ includes.
13307 * completer.h: Fix common/ includes.
13308 * completer.c: Fix common/ includes.
13309 * compile/compile.c: Fix common/ includes.
13310 * compile/compile-loc2c.c: Fix common/ includes.
13311 * compile/compile-cplus-types.c: Fix common/ includes.
13312 * compile/compile-cplus-symbols.c: Fix common/ includes.
13313 * command.h: Fix common/ includes.
13314 * cli/cli-dump.c: Fix common/ includes.
13315 * cli/cli-cmds.c: Fix common/ includes.
13316 * charset.c: Fix common/ includes.
13317 * build-id.c: Fix common/ includes.
13318 * btrace.h: Fix common/ includes.
13319 * btrace.c: Fix common/ includes.
13320 * breakpoint.h: Fix common/ includes.
13321 * breakpoint.c: Fix common/ includes.
13323 (enum agent_op): Fix common/ includes.
13324 * ax-general.c (struct aop_map): Fix common/ includes.
13325 * ax-gdb.c: Fix common/ includes.
13326 * auxv.c: Fix common/ includes.
13327 * auto-load.c: Fix common/ includes.
13328 * arm-tdep.c: Fix common/ includes.
13329 * arch/riscv.c: Fix common/ includes.
13330 * arch/ppc-linux-common.c: Fix common/ includes.
13331 * arch/i386.c: Fix common/ includes.
13332 * arch/arm.c: Fix common/ includes.
13333 * arch/arm-linux.c: Fix common/ includes.
13334 * arch/arm-get-next-pcs.c: Fix common/ includes.
13335 * arch/amd64.c: Fix common/ includes.
13336 * arch/aarch64.c: Fix common/ includes.
13337 * arch/aarch64-insn.c: Fix common/ includes.
13338 * arch-utils.c: Fix common/ includes.
13339 * amd64-windows-tdep.c: Fix common/ includes.
13340 * amd64-tdep.c: Fix common/ includes.
13341 * amd64-sol2-tdep.c: Fix common/ includes.
13342 * amd64-obsd-tdep.c: Fix common/ includes.
13343 * amd64-nbsd-tdep.c: Fix common/ includes.
13344 * amd64-linux-tdep.c: Fix common/ includes.
13345 * amd64-linux-nat.c: Fix common/ includes.
13346 * amd64-fbsd-tdep.c: Fix common/ includes.
13347 * amd64-fbsd-nat.c: Fix common/ includes.
13348 * amd64-dicos-tdep.c: Fix common/ includes.
13349 * amd64-darwin-tdep.c: Fix common/ includes.
13350 * agent.c: Fix common/ includes.
13351 * ada-lang.h: Fix common/ includes.
13352 * ada-lang.c: Fix common/ includes.
13353 * aarch64-tdep.c: Fix common/ includes.
13355 2019-01-25 Tom Tromey <tom@tromey.com>
13357 * common/create-version.sh: Use common/version.h.
13359 2019-01-24 Pedro Alves <palves@redhat.com>
13361 * infrun.c (signal_stop, signal_print, signal_program)
13362 (signal_catch, signal_pass): Now arrays instead of pointers.
13363 (update_signals_program_target, do_target_resume)
13364 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13365 * linux-nat.c (linux_nat_target::pass_signals)
13366 (linux_nat_target::create_inferior, linux_nat_target::attach):
13368 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13369 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13370 * procfs.c (procfs_target::pass_signals): Adjust.
13371 * record-full.c (record_full_target::resume): Adjust.
13372 * remote.c (remote_target::pass_signals)
13373 (remote_target::program_signals): Adjust.
13374 * target-debug.h (target_debug_print_signals): Now takes a
13375 gdb::array_view as parameter. Adjust.
13376 * target.h (target_ops) <pass_signals, program_signals>: Replace
13377 pointer and length parameters with gdb::array_view.
13378 (target_pass_signals, target_program_signals): Likewise.
13379 * target-delegates.c: Regenerate.
13381 2019-01-24 Pedro Alves <palves@redhat.com>
13383 * common/forward-scope-exit.h
13384 (forward_scope_exit::forward_scope_exit): Pass arguments to
13385 m_bind_function directly, instead of creating a std::bind and
13388 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13390 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13391 for static members.
13392 (pass_in_v_vfp_candidate): Likewise.
13394 2019-01-23 Tom Tromey <tom@tromey.com>
13395 Pedro Alves <palves@redhat.com>
13397 * regcache.c (class regcache_invalidator): Remove.
13398 (regcache::raw_write): Use make_scope_exit.
13400 2019-01-23 Tom Tromey <tom@tromey.com>
13402 * ui-out.h (class ui_out_emit_type): Update comment.
13404 2019-01-23 Tom Tromey <tom@tromey.com>
13406 * infrun.c (fetch_inferior_event): Update comment.
13408 2019-01-23 Tom Tromey <tom@tromey.com>
13409 Pedro Alves <palves@redhat.com>
13411 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13413 (fetch_inferior_event): Use SCOPE_EXIT.
13416 2019-01-23 Tom Tromey <tom@tromey.com>
13417 Pedro Alves <palves@redhat.com>
13419 * infrun.c (disable_thread_events): Delete.
13420 (stop_all_threads): Use SCOPE_EXIT.
13422 2019-01-23 Tom Tromey <tom@tromey.com>
13423 Pedro Alves <palves@redhat.com>
13425 * symfile.c: Include forward-scope-exit.h.
13426 (clear_symtab_users_cleanup): Replace forward declaration with
13427 a FORWARD_SCOPE_EXIT.
13428 (syms_from_objfile_1): Use the forward_scope_exit and
13429 gdb::optional instead of cleanup_function.
13430 (reread_symbols): Use the forward_scope_exit instead of
13432 (clear_symtab_users_cleanup): Remove function.
13434 2019-01-23 Tom Tromey <tom@tromey.com>
13435 Pedro Alves <palves@redhat.com>
13437 * linux-nat.c: Include scope-exit.h.
13438 (cleanup_target_stop): Remove.
13439 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13442 2019-01-23 Tom Tromey <tom@tromey.com>
13443 Pedro Alves <palves@redhat.com>
13445 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13446 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13448 2019-01-23 Tom Tromey <tom@tromey.com>
13449 Andrew Burgess <andrew.burgess@embecosm.com>
13450 Pedro Alves <palves@redhat.com>
13452 * infrun.c (fetch_inferior_event): Use scope_exit.
13453 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13454 * top.c (execute_command): Use scope_exit.
13455 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13456 * utils.c (do_bpstat_clear_actions_cleanup)
13457 (make_bpstat_clear_actions_cleanup): Remove.
13459 2019-01-23 Tom Tromey <tom@tromey.com>
13460 Pedro Alves <palves@redhat.com>
13462 * infrun.c: Include "common/scope-exit.h"
13463 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13464 (wait_for_inferior): Use SCOPE_EXIT.
13465 (fetch_inferior_event): Use scope_exit.
13467 2019-01-23 Tom Tromey <tom@tromey.com>
13468 Pedro Alves <palves@redhat.com>
13470 * breakpoint.c (create_breakpoint): Remove cleanup.
13472 2019-01-23 Tom Tromey <tom@tromey.com>
13473 Andrew Burgess <andrew.burgess@embecosm.com>
13474 Pedro Alves <palves@redhat.com>
13476 2019-01-23 Pedro Alves <palves@redhat.com>
13478 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13480 2019-01-23 Pedro Alves <palves@redhat.com>
13481 Andrew Burgess <andrew.burgess@embecosm.com>
13483 * gdbthread.h: Include "common/forward-scope-exit.h".
13484 (scoped_finish_thread_state): Redefine custom class in terms of
13485 forward_scope_exit.
13487 2019-01-23 Pedro Alves <palves@redhat.com>
13488 Andrew Burgess <andrew.burgess@embecosm.com>
13490 * common/forward-scope-exit.h: New file.
13492 2019-01-23 Pedro Alves <palves@redhat.com>
13493 Andrew Burgess <andrew.burgess@embecosm.com>
13494 Tom Tromey <tom@tromey.com>
13496 * common/scope-exit.h: New file.
13498 2019-01-23 Pedro Alves <palves@redhat.com>
13500 * common/preprocessor.h (ESC): Rename to ...
13501 (ESC_PARENS): ... this.
13502 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13503 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13505 2019-01-23 Tom Tromey <tom@tromey.com>
13507 * language.h (class scoped_switch_to_sym_language_if_auto):
13508 Initialize m_lang in both cases.
13510 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13512 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13515 2019-01-22 Tom Tromey <tom@tromey.com>
13517 * corelow.c: Do not include sys/file.h.
13519 2019-01-22 Tom Tromey <tom@tromey.com>
13521 * tui/tui-wingeneral.h: Include gdb_curses.h.
13523 2019-01-22 Tom Tromey <tom@tromey.com>
13525 * source-cache.h (class source_cache) <get_source_lines,
13526 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13528 2019-01-22 Tom Tromey <tom@tromey.com>
13530 * remote-fileio.h (struct remote_target): Declare.
13532 2019-01-22 Tom Tromey <tom@tromey.com>
13534 * python/py-arch.c: Do not include py-ref.h.
13535 * python/py-bpevent.c: Do not include py-ref.h.
13536 * python/py-cmd.c: Do not include py-ref.h.
13537 * python/py-continueevent.c: Do not include py-ref.h.
13538 * python/py-event.h: Do not include py-ref.h.
13539 * python/py-evtregistry.c: Do not include py-ref.h.
13540 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13541 * python/py-frame.c: Do not include py-ref.h.
13542 * python/py-framefilter.c: Do not include py-ref.h.
13543 * python/py-function.c: Do not include py-ref.h.
13544 * python/py-infevents.c: Do not include py-ref.h.
13545 * python/py-linetable.c: Do not include py-ref.h.
13546 * python/py-objfile.c: Do not include py-ref.h.
13547 * python/py-param.c: Do not include py-ref.h.
13548 * python/py-prettyprint.c: Do not include py-ref.h.
13549 * python/py-progspace.c: Do not include py-ref.h.
13550 * python/py-symbol.c: Do not include py-ref.h.
13551 * python/py-symtab.c: Do not include py-ref.h.
13552 * python/py-type.c: Do not include py-ref.h.
13553 * python/py-unwind.c: Do not include py-ref.h.
13554 * python/py-utils.c: Do not include py-ref.h.
13555 * python/py-value.c: Do not include py-ref.h.
13556 * python/py-varobj.c: Do not include py-ref.h.
13557 * python/py-xmethods.c: Do not include py-ref.h.
13558 * python/python.c: Do not include py-ref.h.
13559 * varobj.c: Do not include py-ref.h.
13561 2019-01-22 Tom Tromey <tom@tromey.com>
13563 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13564 keyword for bcache.
13566 2019-01-22 Tom Tromey <tom@tromey.com>
13568 * compile/compile-cplus-types.c: Remove a comment by #include.
13570 2019-01-22 Tom Tromey <tom@tromey.com>
13572 * compile/gcc-c-plugin.h: Include compile-internal.h.
13574 2019-01-22 Tom Tromey <tom@tromey.com>
13576 * stabsread.c (EXTERN): Do not define.
13577 (symnum, next_symbol_text_func, processing_gcc_compilation)
13578 (within_function, global_sym_chain, global_stabs)
13579 (previous_stab_code, this_object_header_files)
13580 (n_this_object_header_files)
13581 (n_allocated_this_object_header_files): Define.
13582 * stabsread.h (EXTERN): Never define. Use "extern".
13584 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13586 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13589 2019-01-21 Tom Tromey <tom@tromey.com>
13591 * ui-out.c: Fix includes.
13592 * tui/tui-source.c: Fix includes.
13593 * target.c: Fix includes.
13594 * remote.c: Fix includes.
13595 * regcache.c: Fix includes.
13596 * python/py-block.c: Fix includes.
13597 * printcmd.c: Fix includes.
13598 * or1k-tdep.c: Fix includes.
13599 * mi/mi-main.c: Fix includes.
13600 * m32r-tdep.c: Fix includes.
13601 * csky-tdep.c: Fix includes.
13602 * compile/compile-cplus-types.c: Fix includes.
13603 * cli/cli-interp.c: Fix includes.
13605 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13607 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13610 2019-01-16 Tom Tromey <tom@tromey.com>
13612 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13614 (struct objfile) <msymbols_range>: Move from top level.
13615 <msymbols>: New method.
13616 (class objfile_msymbols): Remove.
13617 * symtab.c (default_collect_symbol_completion_matches_break_on):
13619 * symmisc.c (dump_msymbols): Update.
13620 * stabsread.c (scan_file_globals): Update.
13621 * objc-lang.c (info_selectors_command, info_classes_command)
13622 (find_methods): Update.
13623 * minsyms.c (find_solib_trampoline_target): Update.
13624 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13625 * coffread.c (coff_symfile_read): Update.
13626 * ada-lang.c (ada_lookup_simple_minsym)
13627 (ada_collect_symbol_completion_matches): Update.
13629 2019-01-16 Tom Tromey <tom@tromey.com>
13631 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13632 type. Remove no-argument constructor.
13633 <iterator::operator++>: Simplify.
13635 <end>: Use minimal_symbol_count.
13637 2019-01-16 Tom Tromey <tom@tromey.com>
13639 * objfiles.h (struct objfile) <psymtabs>: New method.
13640 (class objfile_psymtabs): Remove.
13641 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13643 <range>: New method.
13644 (require_partial_symbols): Change return type.
13645 * psymtab.c (require_partial_symbols)
13646 (psym_expand_symtabs_matching): Update.
13647 * mdebugread.c (parse_partial_symbols): Update.
13648 * dbxread.c (dbx_end_psymtab): Update.
13650 2019-01-15 Tom Tromey <tom@tromey.com>
13652 * symtab.c (lookup_objfile_from_block)
13653 (lookup_symbol_in_objfile_symtabs)
13654 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13655 (find_line_symtab, info_sources_command)
13656 (default_collect_symbol_completion_matches_break_on)
13657 (make_source_files_completion_list): Update.
13658 * symmisc.c (print_objfile_statistics, dump_objfile)
13659 (maintenance_print_symbols, maintenance_info_symtabs)
13660 (maintenance_check_symtabs, maintenance_info_line_tables):
13662 * source.c (select_source_symtab)
13663 (forget_cached_source_info_for_objfile): Update.
13664 * objfiles.h (class objfile_compunits): Remove.
13665 (struct objfile) <compunits_range>: New typedef.
13666 (compunits): New method.
13667 * objfiles.c (objfile_relocate1): Update.
13668 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13669 * maint.c (count_symtabs_and_blocks): Update.
13670 * linespec.c (iterate_over_all_matching_symtabs): Update.
13671 * cp-support.c (add_symbol_overload_list_qualified): Update.
13672 * coffread.c (coff_symtab_read): Update.
13673 * ada-lang.c (add_nonlocal_symbols)
13674 (ada_collect_symbol_completion_matches)
13675 (ada_add_global_exceptions): Update.
13677 2019-01-15 Tom Tromey <tom@tromey.com>
13679 * progspace.h (program_space) <objfiles_safe_range>: New
13681 <objfiles_safe>: New method.
13682 * objfiles.h (class all_objfiles_safe): Remove.
13683 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13684 * jit.c (jit_inferior_exit_hook): Update.
13686 2019-01-17 Tom Tromey <tom@tromey.com>
13688 * progspace.h (program_space) <objfiles_range>: New typedef.
13689 <objfiles>: New method.
13690 <objfiles_head>: Rename from objfiles.
13691 (object_files): Update.
13692 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13693 * guile/scm-pretty-print.c
13694 (ppscm_find_pretty_printer_from_objfiles): Update.
13695 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13696 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13698 * python/py-progspace.c (pspy_get_objfiles): Update.
13699 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13701 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13702 (objfpy_lookup_objfile_by_build_id): Update.
13703 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13704 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13706 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13707 (expand_symtab_containing_pc, lookup_objfile_from_block)
13708 (lookup_static_symbol, basic_lookup_transparent_type)
13709 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13710 (find_line_symtab, info_sources_command)
13711 (default_collect_symbol_completion_matches_break_on)
13712 (make_source_files_completion_list, find_main_name): Update.
13713 * symmisc.c (print_symbol_bcache_statistics)
13714 (print_objfile_statistics, maintenance_print_symbols)
13715 (maintenance_print_msymbols, maintenance_print_objfiles)
13716 (maintenance_info_symtabs, maintenance_check_symtabs)
13717 (maintenance_expand_symtabs, maintenance_info_line_tables):
13719 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13720 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13721 (map_overlay_command, unmap_overlay_command)
13722 (simple_overlay_update, expand_symtabs_matching)
13723 (map_symbol_filenames): Update.
13724 * symfile-debug.c (set_debug_symfile): Update.
13725 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13727 * source.c (select_source_symtab, forget_cached_source_info):
13729 * solib.c (solib_read_symbols): Update.
13730 * solib-spu.c (append_ocl_sos): Update.
13731 * psymtab.c (maintenance_print_psymbols)
13732 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13733 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13734 * printcmd.c (info_symbol_command): Update.
13735 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13737 * objfiles.h (class all_objfiles): Remove.
13738 * objfiles.c (have_partial_symbols, have_full_symbols)
13739 (have_minimal_symbols, qsort_cmp, update_section_map)
13740 (shared_objfile_contains_address_p)
13741 (default_iterate_over_objfiles_in_search_order): Update.
13742 * objc-lang.c (info_selectors_command, info_classes_command)
13743 (find_methods): Update.
13744 * minsyms.c (find_solib_trampoline_target): Update.
13745 * maint.c (maintenance_info_sections)
13746 (maintenance_translate_address, count_symtabs_and_blocks):
13748 * main.c (captured_main_1): Update.
13749 * linux-thread-db.c (try_thread_db_load_from_pdir)
13750 (has_libpthread): Update.
13751 * linespec.c (iterate_over_all_matching_symtabs)
13752 (search_minsyms_for_name): Update.
13753 * jit.c (jit_find_objf_with_entry_addr): Update.
13754 * hppa-tdep.c (find_unwind_entry)
13755 (hppa_lookup_stub_minimal_symbol): Update.
13756 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13758 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13759 (elf_gnu_ifunc_resolve_by_got): Update.
13760 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13761 * dwarf-index-write.c (save_gdb_index_command): Update.
13762 * cp-support.c (add_symbol_overload_list_qualified): Update.
13763 * breakpoint.c (create_overlay_event_breakpoint)
13764 (create_longjmp_master_breakpoint)
13765 (create_std_terminate_master_breakpoint)
13766 (create_exception_master_breakpoint): Update.
13767 * blockframe.c (find_pc_partial_function): Update.
13768 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13769 (ada_collect_symbol_completion_matches)
13770 (ada_add_global_exceptions): Update.
13772 2019-01-17 Tom Tromey <tom@tromey.com>
13774 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13776 (solib_target_parse_libraries): Change return type.
13777 (library_list_start_segment, library_list_start_section)
13778 (library_list_end_library, library_list_start_library); Update.
13779 (solib_target_free_library_list): Remove.
13780 (solib_target_parse_libraries): Remove cleanup. Change return
13782 (solib_target_current_sos): Update.
13784 2019-01-17 Tom Tromey <tromey@bapiya>
13786 * valprint.c: Replace "the the" with "the".
13787 * symtab.c: Replace "the the" with "the".
13788 * solib.c: Replace "the the" with "the".
13789 * solib-dsbt.c: Replace "the the" with "the".
13790 * linespec.c: Replace "the the" with "the".
13791 * dwarf2loc.h: Replace "the the" with "the".
13792 * amd64-windows-tdep.c: Replace "the the" with "the".
13793 * aarch64-tdep.c: Replace "the the" with "the".
13795 2019-01-16 Keith Seitz <keiths@redhat.com>
13798 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13799 <builder>: Rename to ..
13800 <m_builder>: ... this and make private.
13801 (dwarf2_cu::get_builder): New method. Change all users of
13802 `builder' to use this method.
13803 (dwarf2_start_symtab): Move to ...
13804 (dwarf2_cu::start_symtab): ... here. Update all callers
13805 (setup_type_unit_groups): Move to ...
13806 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13808 (dwarf2_cu::reset_builder): New method.
13809 (process_full_compunit, process_full_type_unit): Use
13810 dwarf2_cu::reset_builder.
13811 (follow_die_offset): Record the ancestor CU if it is different
13812 from the followed DIE's CU.
13813 (follow_die_sig_1): Likewise.
13815 2019-01-15 Tom Tromey <tom@tromey.com>
13817 * remote.c (class remote_state) <buf>: Now a char_vector.
13818 <buf_size>: Remove.
13819 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13821 (remote_target::getpkt_or_notif_sane_1)
13822 (remote_target::getpkt_sane)
13823 (remote_target::getpkt_or_notif_sane): Likewise.
13824 (class remote_target) <putpkt>: New overload.
13825 (remote_target::read_frame): Change type of "buf_p". Remove
13826 sizeof_p parameter.
13827 (packet_ok): New overload.
13828 (packet_check_result): New overload.
13831 2019-01-14 Tom Tromey <tom@tromey.com>
13833 * remote-notif.c (handle_notification, remote_notif_ack)
13834 (remote_notif_parse): Make "buf" const.
13835 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13837 (remote_notif_parse, remote_notif_ack, handle_notification):
13839 * remote.c (remote_notif_stop_parse): Make "buf" const.
13840 (remote_target::remote_parse_stop_reply): Make "buf" const.
13841 (remote_notif_stop_ack): Make "buf" const.
13843 2019-01-14 Tom Tromey <tom@tromey.com>
13845 * remote.c (remote_console_output): Make parameter const.
13847 2019-01-14 Tom Tromey <tom@tromey.com>
13849 * target-debug.h (target_debug_print_signals): Constify.
13850 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13851 * procfs.c (procfs_target::pass_signals): Update.
13852 * linux-nat.c (linux_nat_target::pass_signals): Update.
13853 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13854 * target-delegates.c: Rebuild.
13855 * remote.c (remote_target::program_signals): Update.
13856 (remote_target::pass_signals): Update.
13857 * target.c (target_pass_signals): Constify argument.
13858 (target_program_signals): Likewise.
13859 * target.h (struct target_ops) <pass_signals, program_signals>:
13861 (target_pass_signals, target_program_signals): Constify argument.
13863 2019-01-14 Tom Tromey <tom@tromey.com>
13866 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13868 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13870 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13872 * rs6000-tdep.c: Include reggroups.h.
13873 (IS_V_ALIAS_PSEUDOREG): Define.
13874 (rs6000_register_name): Return names for the "vX" aliases.
13875 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13876 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13877 aliases. Call default_register_reggroup_p for all other
13879 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13881 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13882 Handle "vX" aliases.
13883 (v_alias_pseudo_register_collect): New function.
13884 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13885 (rs6000_gdbarch_init): Initialize "vX" aliases as
13886 pseudo-registers. Restore registration of
13887 rs6000_pseudo_register_reggroup_p with
13888 set_tdesc_pseudo_register_reggroup_p.
13890 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13892 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13893 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13894 set_gdbarch_num_pseudo_regs.
13896 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13898 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13899 Remove arg prefixname, add do_set and do_show.
13900 Add member functions set_list and show_list.
13901 * cli/cli-style.c (class cli_style_option): Update accordingly.
13902 (style_set_list): Move to file scope.
13903 (style_show_list): Likewise.
13904 (set_style): Call help_list.
13905 (show_style): Call cmd_show_list.
13906 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13907 Update to use the new macro.
13909 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13911 * ada-lang.c (_initialize_ada_language): Expand the help text
13912 for the "catch exception" command.
13914 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13916 * symtab.c (matching_obj_sections): Initialize obj,
13917 declare it closer to its usage.
13919 2019-01-10 Tom Tromey <tom@tromey.com>
13921 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13922 (basic_inf_threads_range): Remove.
13923 (inf_threads_range, inf_non_exited_threads_range)
13924 (safe_inf_threads_range): Use next_adapter.
13926 2019-01-10 Keith Seitz <keiths@redhat.com>
13930 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13931 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13933 2019-01-10 Keith Seitz <keiths@redhat.com>
13937 * dictionary.c (pending_to_vector): Remove.
13938 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13939 Remove _1 suffix, replacing functions of the same name. Update
13941 (dict_create_hashed, dict_create_hashed_expandable)
13942 (dict_create_linear, dict_create_linear_expandable, dict_free)
13943 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13944 Make functions static.
13946 2019-01-10 Keith Seitz <keiths@redhat.com>
13950 * dictionary.h (struct dictionary): Replace declaration with
13952 (dict_create_hashed, dict_create_hashed_expandable)
13953 (dict_create_linear, dict_create_linear_expandable)
13954 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13955 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13956 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13957 taking multidictionary argument.
13958 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13959 * block.h (struct block) <dict>: Change to multidictionary
13960 and rename `multidict'.
13961 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13962 symmisc.c: Update all dictionary references to multidictionary.
13964 2019-01-10 Keith Seitz <keiths@redhat.com>
13968 * dictionary.c: Include unordered_map.
13969 (pending_to_vector): New function.
13970 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13971 Rewrite the non-"_1" functions to take vector instead
13973 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13974 "new" _1 versions of the same name.
13975 (multidictionary): Define.
13976 (std::hash<enum language): New definition.
13977 (collate_pending_symbols_by_language, mdict_create_hashed)
13978 (mdict_create_hashed_expandable, mdict_create_linear)
13979 (mdict_create_linear_expandable, mdict_free)
13980 (find_language_dictionary, create_new_language_dictionary)
13981 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13982 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13983 (mdict_size, mdict_empty): New functions.
13984 * dictionary.h (mdict_iterator): Define.
13986 2019-01-10 Pedro Alves <palves@redhat.com>
13988 * breakpoint.c (read_uploaded_action)
13989 (create_tracepoint_from_upload): Adjust to use
13990 gdb::unique_xmalloc_ptr.
13991 * ctf.c (ctf_write_uploaded_tp):
13992 (SET_ARRAY_FIELD): Use emplace_back.
13993 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13994 * tracefile-tfile.c (tfile_write_uploaded_tp):
13995 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13996 gdb::unique_xmalloc_ptr.
13997 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13998 at_string, cond_string, cmd_strings>: Replace char pointers
13999 with gdb::unique_xmalloc_ptr.
14001 2019-01-10 Pedro Alves <palves@redhat.com>
14003 * solib-target.c (library_list_start_library): Don't xstrdup name.
14005 2019-01-10 Pedro Alves <palves@redhat.com>
14007 * mdebugread.c (parse_partial_symbols): Use
14008 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14010 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14012 * linux-fork.c (scoped_switch_fork_info)
14013 <~scoped_switch_fork_info>: Fix incorrect variable name.
14015 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14017 * linux-fork.c (scoped_switch_fork_info)
14018 <scoped_switch_fork_info>: Make explicit.
14019 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14021 2019-01-10 Tom Tromey <tom@tromey.com>
14023 * objfiles.h (objfile::reset_psymtabs): Update.
14024 * objfiles.c (objfile::objfile): Update.
14025 * psymtab.h (psymtab_storage::obstack): Update.
14026 (psymtab_storage::m_obstack): Use gdb::optional.
14027 (class psymtab_storage): Update comment. Remove objfile
14029 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14031 2019-01-10 Tom Tromey <tom@tromey.com>
14033 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14034 <free_psymtabs>: Now private.
14035 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14036 (allocate_psymtab): Use new method.
14038 2019-01-10 Tom Tromey <tom@tromey.com>
14040 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14041 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14042 * mdebugread.c (parse_partial_symbols): Use
14043 allocate_dependencies.
14044 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14045 allocate_dependencies.
14046 (process_psymtab_comp_unit_reader)
14047 (build_type_psymtab_dependencies): Likewise.
14048 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14050 2019-01-10 Tom Tromey <tom@tromey.com>
14052 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14053 PSYMBOL_SET_LANGUAGE.
14054 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14056 2019-01-10 Tom Tromey <tom@tromey.com>
14058 * psymtab.h (psymtab_storage::obstack): New method.
14059 <m_obstack>: Rename from obstack; now private.
14060 * psymtab.c (psymtab_storage): Update.
14061 * dwarf2read.c (create_addrmap_from_index)
14062 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14065 2019-01-10 Tom Tromey <tom@tromey.com>
14067 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14068 * objfiles.h (objfile::reset_psymtabs): New method.
14070 2019-01-10 Tom Tromey <tom@tromey.com>
14072 * symmisc.c (print_symbol_bcache_statistics): Update.
14073 (print_objfile_statistics): Update.
14074 * symfile.c (reread_symbols): Update.
14075 * psymtab.h (class psymtab_storage): New.
14076 * psymtab.c (psymtab_storage): New constructor.
14077 (~psymtab_storage): New destructor.
14078 (require_partial_symbols): Update.
14079 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14080 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14081 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14082 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14083 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14084 (start_psymtab_common, end_psymtab_common)
14085 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14086 (allocate_psymtab): Update.
14087 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14089 (dump_psymtab_addrmap, maintenance_print_psymbols)
14090 (maintenance_check_psymtabs): Update.
14091 (class objfile_psymtabs): Move to objfiles.h.
14092 * psympriv.h (discard_psymtab): Now inline.
14093 (psymtab_discarder::psymtab_discarder): Update.
14094 (psymtab_discarder::~psymtab_discarder): Update.
14095 (ALL_OBJFILE_PSYMTABS): Rewrite.
14096 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14097 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14099 <partial_symtabs>: New field.
14100 (class objfile_psymtabs): Move from psymtab.h. Update.
14101 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14103 (objfile::~objfile): Don't destroy psymbol_cache.
14104 * mdebugread.c (parse_partial_symbols): Update.
14105 * dwarf2read.c (create_addrmap_from_index)
14106 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14107 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14108 (add_partial_subprogram, dwarf2_ranges_read): Update.
14109 * dwarf-index-write.c (write_address_map)
14110 (write_one_signatured_type, recursively_write_psymbols)
14111 (class debug_names, class debug_names, write_psymtabs_to_index):
14114 2019-01-10 Tom Tromey <tom@tromey.com>
14116 * symtab.h (SYMBOL_SET_NAMES): Update.
14117 (symbol_set_names): Update.
14118 (MSYMBOL_SET_NAMES): Update.
14119 * symtab.c (symbol_set_names): Change argument to be an
14120 objfile_per_bfd_storage.
14121 * psymtab.c (add_psymbol_to_bcache): Update.
14122 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14124 2019-01-10 Tom Tromey <tom@tromey.com>
14126 * symtab.c (create_demangled_names_hash): Change argument to be an
14127 objfile_per_bfd_storage.
14128 (symbol_set_names): Update.
14130 2019-01-10 Tom Tromey <tom@tromey.com>
14132 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14134 * psymtab.c (init_psymbol_list): Do nothing if already called.
14135 * psympriv.h (init_psymbol_list): Add comment.
14136 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14138 * dbxread.c (dbx_symfile_read): Unconditionally call
14141 2019-01-10 Tom Tromey <tom@tromey.com>
14143 * xcoffread.c (scan_xcoff_symtab): Update.
14144 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14146 * mdebugread.c (parse_partial_symbols)
14147 (handle_psymbol_enumerators): Update.
14148 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14149 * dbxread.c (read_dbx_symtab): Update.
14150 * psympriv.h (psymbol_placement): New enum.
14151 (add_psymbol_to_list): Update.
14153 2019-01-10 Tom Tromey <tom@tromey.com>
14155 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14156 static_psymbols parameters.
14157 (scan_xcoff_symtab): Update.
14158 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14159 static_psymbols parameters.
14160 * psympriv.h (start_psymtab_common): Update.
14161 * mdebugread.c (parse_partial_symbols): Update.
14162 * dwarf2read.c (create_partial_symtab): Update.
14163 * dbxread.c (read_dbx_symtab): Update.
14164 (start_psymtab): Remove global_psymbols and static_psymbols
14167 2019-01-10 Tom Tromey <tom@tromey.com>
14169 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14170 * psymtab.c (allocate_psymtab): Add comment.
14171 * psympriv.h (allocate_psymtab): Add comment.
14172 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14174 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14176 2019-01-10 Tom Tromey <tom@tromey.com>
14178 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14180 * mipsread.c: Include mdebugread.h.
14181 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14183 * elfread.c: Include mdebugread.h.
14185 2019-01-09 Tom Tromey <tom@tromey.com>
14187 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14188 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14189 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14190 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14191 (psym_lookup_symbol, psym_find_last_source_symtab)
14192 (psym_forget_cached_source_info, psym_print_stats)
14193 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14194 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14195 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14196 (psym_find_compunit_symtab_by_address)
14197 (maintenance_print_psymbols, maintenance_info_psymtabs)
14198 (maintenance_check_psymtabs): Use ranged for.
14199 * psymtab.h (class objfile_psymtabs): New.
14200 (require_partial_symbols): Return objfile_psymtabs.
14201 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14203 2019-01-09 Tom Tromey <tom@tromey.com>
14205 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14206 (find_pc_mapped_section, list_overlays_command)
14207 (map_overlay_command, unmap_overlay_command)
14208 (simple_overlay_update): Use all_objfiles.
14209 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14210 * printcmd.c (info_symbol_command): Use all_objfiles.
14211 * objfiles.h (ALL_OBJSECTIONS): Remove.
14212 * maint.c (maintenance_translate_address): Use all_objfiles.
14213 * gcore.c (gcore_create_callback): Use all_objfiles.
14214 (objfile_find_memory_regions): Likewise.
14216 2019-01-09 Tom Tromey <tom@tromey.com>
14218 * symtab.c (find_line_symtab, info_sources_command)
14219 (make_source_files_completion_list): Use objfile_compunits.
14220 * source.c (select_source_symtab): Use objfile_compunits.
14221 * objfiles.h (struct objfile): Update comment.
14222 (ALL_OBJFILES): Remove.
14223 (ALL_FILETABS): Remove.
14224 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14227 2019-01-09 Tom Tromey <tom@tromey.com>
14229 * symmisc.c (print_objfile_statistics, dump_objfile)
14230 (maintenance_print_symbols): Use compunit_filetabs.
14231 * source.c (forget_cached_source_info_for_objfile): Use
14233 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14234 (ALL_FILETABS): Use compunit_filetabs.
14235 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14236 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14238 2019-01-09 Tom Tromey <tom@tromey.com>
14240 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14241 (compunit_filetabs): New.
14242 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14244 (info_sources_command, make_source_files_completion_list): Remove
14246 * symmisc.c (print_objfile_statistics, dump_objfile)
14247 (maintenance_print_symbols): Remove declaration.
14248 (maintenance_info_symtabs): Use compunit_filetabs.
14249 (maintenance_info_line_tables): Likewise.
14250 * source.c (select_source_symtab): Change local variable name.
14251 (forget_cached_source_info_for_objfile): Remove declaration.
14252 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14253 * objfiles.c (objfile_relocate1): Remove declaration.
14254 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14256 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14257 * coffread.c (coff_symtab_read): Remove declaration.
14258 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14261 2019-01-09 Tom Tromey <tom@tromey.com>
14263 * symtab.c (lookup_objfile_from_block)
14264 (find_pc_sect_compunit_symtab, search_symbols)
14265 (default_collect_symbol_completion_matches_break_on): Use
14267 * objfiles.h (ALL_COMPUNITS): Remove.
14268 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14269 * cp-support.c (add_symbol_overload_list_qualified): Use
14271 * ada-lang.c (ada_collect_symbol_completion_matches)
14272 (ada_add_global_exceptions): Use objfile_compunits.
14274 2019-01-09 Tom Tromey <tom@tromey.com>
14276 * source.c (select_source_symtab)
14277 (forget_cached_source_info_for_objfile): Remove declaration.
14278 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14280 * maint.c (count_symtabs_and_blocks): Remove declaration.
14281 * cp-support.c (add_symbol_overload_list_qualified): Remove
14283 * coffread.c (coff_symtab_read): Remove declaration.
14284 * symtab.c (lookup_symbol_in_objfile_symtabs)
14285 (basic_lookup_transparent_type_1): Use objfile_compunits.
14286 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14287 (info_sources_command, search_symbols)
14288 (default_collect_symbol_completion_matches_break_on)
14289 (make_source_files_completion_list): Remove declaration.
14290 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14291 (ada_collect_symbol_completion_matches)
14292 (ada_add_global_exceptions): Remove declaration.
14293 * linespec.c (iterate_over_all_matching_symtabs): Use
14295 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14296 (class objfile_compunits): New.
14297 (ALL_COMPUNITS): Use objfile_compunits.
14298 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14299 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14301 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14303 2019-01-09 Tom Tromey <tom@tromey.com>
14305 * symtab.c (search_symbols)
14306 (default_collect_symbol_completion_matches_break_on): Use
14308 * ada-lang.c (ada_lookup_simple_minsym)
14309 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14310 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14311 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14313 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14314 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14315 * objc-lang.c (find_methods): Use objfile_msymbols.
14316 (info_selectors_command, info_classes_command): Likewise.
14317 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14318 * objfiles.h (class objfile_msymbols): New.
14319 (ALL_OBJFILE_MSYMBOLS): Remove.
14320 (ALL_MSYMBOLS): Remove.
14322 2019-01-09 Tom Tromey <tom@tromey.com>
14324 * common/next-iterator.h (next_adapter): Add Iterator template
14326 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14327 (class all_objfiles_safe): New.
14328 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14329 * objfiles.c (put_objfile_before): Update comment.
14330 (add_separate_debug_objfile): Likewise.
14331 (free_all_objfiles): Use all_objfiles_safe.
14332 (objfile_purge_solibs): Likewise.
14334 2019-01-09 Tom Tromey <tom@tromey.com>
14336 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14337 (expand_symtab_containing_pc, lookup_static_symbol)
14338 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14339 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14341 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14342 * breakpoint.c (create_overlay_event_breakpoint)
14343 (create_longjmp_master_breakpoint)
14344 (create_std_terminate_master_breakpoint)
14345 (create_exception_master_breakpoint): Use all_objfiles.
14346 * linux-thread-db.c (try_thread_db_load_from_pdir)
14347 (has_libpthread): Use all_objfiles.
14348 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14349 * linespec.c (iterate_over_all_matching_symtabs)
14350 (search_minsyms_for_name): Use all_objfiles.
14351 * maint.c (maintenance_info_sections): Use all_objfiles.
14352 * main.c (captured_main_1): Use all_objfiles.
14353 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14354 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14355 * guile/scm-pretty-print.c
14356 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14357 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14358 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14359 (maintenance_print_msymbols): Use all_objfiles.
14360 * source.c (select_source_symtab): Use all_objfiles.
14361 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14362 * symfile.c (remove_symbol_file_command)
14363 (expand_symtabs_matching, map_symbol_filenames): Use
14365 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14367 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14368 * objc-lang.c (find_methods): Use all_objfiles.
14369 * objfiles.c (have_partial_symbols, have_full_symbols)
14370 (have_minimal_symbols, qsort_cmp)
14371 (default_iterate_over_objfiles_in_search_order): Use
14373 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14374 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14375 (maintenance_check_psymtabs): Use all_objfiles.
14376 (ALL_PSYMTABS): Remove.
14377 * compile/compile-object-run.c (do_module_cleanup): Use
14379 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14380 * cp-support.c (add_symbol_overload_list_qualified): Use
14382 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14384 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14385 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14387 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14388 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14389 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14391 * solib.c (solib_read_symbols): Use all_objfiles
14393 2019-01-09 Tom Tromey <tom@tromey.com>
14395 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14396 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14398 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14399 * symmisc.c (print_symbol_bcache_statistics)
14400 (print_objfile_statistics, maintenance_print_objfiles)
14401 (maintenance_info_symtabs, maintenance_check_symtabs)
14402 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14404 * source.c (forget_cached_source_info): Use all_objfiles.
14405 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14406 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14407 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14408 * objfiles.c (update_section_map): Use all_objfiles.
14409 (shared_objfile_contains_address_p): Likewise.
14410 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14411 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14413 2019-01-09 Tom Tromey <tom@tromey.com>
14415 * common/next-iterator.h: New file.
14416 * objfiles.h (class all_objfiles): New.
14417 (struct objfile_iterator): New.
14419 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14421 * NEWS: Move the description of the changed "frame", "select-frame",
14422 and "info frame" commands to the Changed commands section.
14424 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14426 * gdbtypes.c (check_stub_method_group): Remove handling of old
14428 * linespec.c (find_methods): Likewise.
14429 * stabsread.c (read_member_functions): Likewise.
14430 * valops.c (search_struct_method): Likewise.
14431 (value_struct_elt_for_reference): Likewise.
14432 * NEWS: Mention this change.
14434 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14436 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14437 print_source_lines.
14438 * source.c (print_source_lines_base): Update line number check.
14439 (print_source_lines): New function.
14440 (source_lines_range::source_lines_range): New function.
14441 * source.h (class source_lines_range): New class.
14442 (print_source_lines): New declaration.
14444 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14446 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14448 2019-01-08 Tom Tromey <tom@tromey.com>
14449 Simon Marchi <simon.marchi@ericsson.com>
14452 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14453 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14454 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14455 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14456 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14457 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14459 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14461 * source.c (select_source_symtab): Move header comment to
14462 declaration in source.h.
14463 (forget_cached_source_info_for_objfile): Likewise.
14464 (forget_cached_source_info): Likewise.
14465 (identify_source_line): Likewise.
14466 * source.h (identify_source_line): Move declaration from symtab.h
14467 and add comment from source.c
14468 (print_source_lines): Likewise.
14469 (forget_cached_source_info_for_objfile): Likewise.
14470 (forget_cached_source_info): Likewise.
14471 (select_source_symtab): Likewise.
14472 (enum print_source_lines_flag): Move definition from symtab.h.
14473 * symtab.h (identify_source_line): Move declaration to source.h.
14474 (print_source_lines): Likewise.
14475 (forget_cached_source_info_for_objfile): Likewise.
14476 (forget_cached_source_info): Likewise.
14477 (select_source_symtab): Likewise.
14478 (enum print_source_lines_flag): Move definition to source.h.
14479 * tui/tui-hooks.c: Add 'source.h' include.
14481 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14483 * source.c (print_source_lines_base): Handle requests to print
14484 reverse line number sequences, and guard against empty lines
14487 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14489 * source.c (print_source_lines_base): Fix skip of '\r' if next
14492 2019-01-06 Tom Tromey <tom@tromey.com>
14494 * c-exp.y (struct c_parse_state) <macro_original_text,
14495 expansion_obstack>: New member.
14496 (macro_original_text, expansion_obstack): Remove globals.
14497 (scan_macro_expansion, scanning_macro_expansion)
14498 (finished_macro_expansion): Update.
14499 (scan_macro_cleanup): Remove.
14500 (yylex, c_parse): Update.
14502 2019-01-06 Tom Tromey <tom@tromey.com>
14504 * c-exp.y (struct c_parse_state) <strings>: New member.
14505 (operator_stoken): Update.
14507 2019-01-06 Tom Tromey <tom@tromey.com>
14509 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14510 (union type_stack_elt) <typelist_val>: Now a pointer to
14512 (type_stack_cleanup): Don't declare.
14513 (push_typelist): Update.
14514 * parse.c (pop_typelist): Return a std::vector.
14515 (push_typelist): Take a std::vector.
14516 (follow_types): Update. Do not free args.
14517 (type_stack_cleanup): Remove.
14518 * c-exp.y (struct c_parse_state): New.
14519 (cpstate): New global.
14520 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14521 (nonempty_typelist): Update.
14522 (func_mod): Create a new vector.
14523 (c_parse): Create a c_parse_state.
14524 (check_parameter_typelist): Do not delete params.
14525 (function_method): Update. Do not delete type_list.
14527 2019-01-06 Tom Tromey <tom@tromey.com>
14530 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14532 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14533 (print_return_value): Likewise.
14535 2019-01-05 Tom Tromey <tom@tromey.com>
14537 * contrib/cleanup_check.py: Remove.
14538 * contrib/gcc-with-excheck: Remove.
14539 * contrib/exsummary.py: Remove.
14540 * contrib/excheck.py: Remove.
14542 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14544 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14545 NULL. Initialize tpprev to NULL instead of assigning it
14546 to NULL on the next statement.
14547 * windows-nat.c (windows_delete_thread): Remove check for
14548 main_thread_id before printing thread exit notifications.
14549 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14550 Remove thread ID check against main_thread_id.
14551 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14552 windows_delete_thread.
14553 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14555 2019-01-04 Tom Tromey <tom@tromey.com>
14557 * compile/compile.c (_initialize_compile): Use upper case for
14558 metasyntactic variables.
14559 * symmisc.c (_initialize_symmisc): Use upper case for
14560 metasyntactic variables.
14561 * psymtab.c (_initialize_psymtab): Use upper case for
14562 metasyntactic variables.
14563 * demangle.c (demangle_command): Use upper case for metasyntactic
14565 (_initialize_demangler): Likewise.
14566 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14569 2019-01-03 Tom Tromey <tom@tromey.com>
14571 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14573 2019-01-03 Tom Tromey <tom@tromey.com>
14575 * python/py-symtab.c (salpy_str): Update.
14576 (struct salpy_sal_object) <symtab>: Now a PyObject.
14577 (salpy_dealloc): Update.
14578 (del_objfile_sal): Use gdbpy_ref.
14580 2019-01-03 Tom Tromey <tom@tromey.com>
14582 * python/py-type.c (convert_field): Use new_reference. Return
14584 (make_fielditem): Return gdbpy_ref.
14585 (typy_fields): Update.
14586 (typy_getitem): Update.
14587 (field_name): Return gdbpy_ref. Use new_reference.
14588 (typy_iterator_iternext): Update.
14590 2019-01-03 Tom Tromey <tom@tromey.com>
14592 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14594 2019-01-03 Tom Tromey <tom@tromey.com>
14596 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14597 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14598 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14599 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14600 (pspy_set_type_printers): Likewise.
14601 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14602 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14603 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14604 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14605 (objfpy_set_type_printers): Likewise.
14607 2019-01-03 Tom Tromey <tom@tromey.com>
14609 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14610 (gdbpy_print_stack): Use gdbpy_err_fetch.
14611 * python/python-internal.h (class gdbpy_err_fetch): New class.
14612 (class gdbpy_enter) <m_error_type, m_error_value,
14613 m_error_traceback>: Remove.
14614 <m_error>: New member.
14615 (gdbpy_exception_to_string): Don't declare.
14616 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14617 * python/py-value.c (convert_value_from_python): Use
14619 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14620 gdbpy_exception_to_string.
14621 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14622 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14625 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14627 * linux-nat.c (delete_lwp_cleanup): Delete.
14628 (struct lwp_deleter): New struct.
14629 (lwp_info_up): New typedef.
14630 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14633 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14635 * linux-fork.c (class scoped_switch_fork_info): New class.
14636 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14638 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14640 * valops.c (find_overload_match): Remove use of null_cleanup, and
14641 calls to do_cleanups.
14643 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14645 * compile/compile-cplus-types.c
14646 (compile_cplus_instance::decl_name): Handle changes to
14648 * cp-support.c (cp_func_name): Update header comment, update
14650 * cp-support.h (cp_func_name): Update return type in declaration.
14651 * valops.c (find_overload_match): Move temp_func local to top
14652 level of function and change its type. Use temp_func to hold and
14653 delete temporary string obtained from cp_func_name.
14655 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14657 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14658 gdb::char_vector, remove cleanup, and update uses of `msg`.
14660 2019-01-03 Jim Wilson <jimw@sifive.com>
14662 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14664 2019-01-02 Tom Tromey <tom@tromey.com>
14666 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14667 (tdesc_parse_xml): Remove cleanups.
14668 * target-descriptions.h (make_cleanup_free_target_description):
14670 (target_desc_deleter): New struct.
14671 (target_desc_up): New typedef.
14672 * target-descriptions.c (target_desc_deleter::operator()): Rename
14673 from free_target_description.
14674 (make_cleanup_free_target_description): Remove.
14676 2019-01-02 Tom Tromey <tom@tromey.com>
14678 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14679 constructor, destructor.
14680 (linespec_parser): Remove typedef.
14681 (~linespec_parser): Rename from linespec_parser_delete.
14682 (linespec_lex_to_end, linespec_complete_label)
14683 (linespec_complete): Update.
14684 (decode_line_full): Remove cleanups.
14685 (decode_line_1): Update.
14687 2019-01-02 Tom Tromey <tom@tromey.com>
14689 * python/python-internal.h (inferior_to_inferior_object): Change
14691 * python/py-exitedevent.c (create_exited_event_object): Update.
14692 * python/py-inferior.c (inferior_to_inferior_object): Return
14694 (python_new_inferior, python_inferior_deleted)
14695 (thread_to_thread_object, delete_thread_object)
14696 (build_inferior_list, gdbpy_selected_inferior): Update.
14697 * python/py-infthread.c (create_thread_object): Update. Also fail
14698 if inferior_to_inferior_object fails.
14700 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14702 * inferior.h (class inferior) <displaced_step_state>: New field.
14703 * infrun.h (struct displaced_step_state): Move here from
14704 infrun.c. Initialize fields, add constructor.
14705 <inf>: Remove field.
14706 <reset>: New method.
14707 * infrun.c (struct displaced_step_inferior_state): Move to
14709 (displaced_step_inferior_states): Remove.
14710 (get_displaced_stepping_state): Adust.
14711 (displaced_step_in_progress_any_inferior): Adjust.
14712 (displaced_step_in_progress_thread): Adjust.
14713 (displaced_step_in_progress): Adjust.
14714 (add_displaced_stepping_state): Remove.
14715 (get_displaced_step_closure_by_addr): Adjust.
14716 (remove_displaced_stepping_state): Remove.
14717 (infrun_inferior_exit): Call displaced_step_state.reset.
14718 (use_displaced_stepping): Don't check for NULL.
14719 (displaced_step_prepare_throw): Call
14720 get_displaced_stepping_state.
14721 (displaced_step_fixup): Don't check for NULL.
14722 (prepare_for_detach): Don't check for NULL.
14724 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14726 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14727 in case of call that did not complete.
14729 2019-01-02 Andrey Utkin <autkin@undo.io>
14731 * symfile.c (find_separate_debug_file): Fix search of debug files for
14734 2019-01-02 Tom Tromey <tom@tromey.com>
14736 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14738 * python/py-frame.c (frapy_older): Remove cast.
14739 (frapy_newer): Likewise.
14740 * python/py-breakpoint.c (local_setattro): Remove cast.
14741 * python/py-arch.c (archpy_name): Remove local variable.
14742 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14744 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14746 * unittests/basic_string_view/element_access/char/empty.cc:
14747 Fix year range in copyright header.
14749 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14751 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14753 <operator==>: Update with for removed field.
14755 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14756 <isa_features>: ...this.
14757 <abi_features>: New field.
14758 (riscv_isa_flen): Update comment.
14759 (riscv_abi_xlen): New declaration.
14760 (riscv_abi_flen): New declaration.
14761 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14763 (riscv_abi_xlen): New function.
14764 (riscv_isa_flen): Update to get answer from isa_features.
14765 (riscv_abi_flen): New function.
14766 (riscv_has_fp_abi): Update to get answer from abi_features.
14767 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14769 (riscv_call_info) <xlen, flen>: Update comment.
14770 (riscv_call_arg_struct): Remove invalid assertions
14771 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14773 (riscv_gdbarch_init): Gather isa features and abi features
14774 separately, ensure both match on the gdbarch when reusing an old
14775 gdbarch. Relax an error check to allow 32-bit abi float to run on
14776 a target with 64-bit float hardware.
14778 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14780 * source.c (search_command_helper): Stop reverse search
14781 when line 1 has been searched.
14783 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14785 * record-full.c (record_full_base_target::close): Rewrite
14786 record_full_core_buf_list free logic.
14788 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14790 * break-catch-syscall.c (print_one_catch_syscall): xfree
14793 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14795 * top.c (print_gdb_version): Update Copyright year in version
14798 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14800 Update copyright year range in all GDB files.
14802 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14804 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14806 For older changes see ChangeLog-2018.
14812 version-control: never