1 2019-11-10 Tom Tromey <tom@tromey.com>
3 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
4 Remove unused declaration.
6 2019-11-08 Tom Tromey <tromey@adacore.com>
8 * top.c (read_command_file): Update.
9 (command_line_input): Make return type const.
10 * python/py-gdb-readline.c: Update.
11 * linespec.c (decode_line_2): Update.
12 * defs.h (command_line_input): Make return type const.
13 * cli/cli-script.c (read_next_line): Make return type const.
14 * ada-lang.c (get_selections): Update.
16 2019-11-06 Christian Biesinger <cbiesinger@google.com>
18 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
19 * mi/mi-main.c (output_cores): Likewise.
20 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
21 (linux_xfer_osdata_modules): Likewise.
22 * remote.c (register_remote_support_xml): Likewise.
23 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
24 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
26 2019-11-06 Tom Tromey <tom@tromey.com>
28 * tui/tui-interp.c: Don't include readline.h.
29 * tui/tui-hooks.c: Don't include readline.h.
30 * symmisc.c: Include tilde.h, not readline.h.
31 * symfile.c: Include tilde.h, not readline.h.
32 * source.c: Include tilde.h, not readline.h.
33 * solib.c: Include tilde.h, not readline.h.
34 * psymtab.c: Include tilde.h, not readline.h.
35 * exec.c: Include tilde.h, not readline.h.
36 * corelow.c: Include tilde.h, not readline.h.
37 * cli/cli-dump.c: Include tilde.h, not readline.h.
38 * cli/cli-cmds.c: Don't include readline.h.
40 2019-11-05 Tom Tromey <tom@tromey.com>
42 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
43 (tui_disassemble): Set addr_size.
44 (tui_disasm_window::set_contents): Use addr_size.
46 2019-11-05 Tom Tromey <tom@tromey.com>
48 * rust-lang.c (rust_language_defn): Update.
49 * python/py-value.c (valpy_string): Call c_get_string.
50 * p-lang.c (pascal_language_defn): Update.
51 * opencl-lang.c (opencl_language_defn): Update.
52 * objc-lang.c (objc_language_defn): Update.
53 * m2-lang.c (m2_language_defn): Update.
54 * language.c (unknown_language_defn, auto_language_defn): Update.
55 (default_get_string): Remove.
56 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
57 * go-lang.c (go_language_defn): Update.
58 * f-lang.c (f_language_defn): Update.
59 * d-lang.c (d_language_defn): Update.
60 * c-lang.c (c_language_defn, cplus_language_defn)
61 (asm_language_defn, minimal_language_defn): Update.
62 * ada-lang.c (ada_language_defn): Update.
63 * language.h (struct language_defn) <la_get_string>: Remove.
64 (LA_GET_STRING): Remove.
65 (default_get_string): Don't declare.
67 2019-11-05 Tom Tromey <tom@tromey.com>
69 * tui/tui-source.h (struct tui_source_window): Inline
70 constructor. Remove destructor.
71 <style_changed, m_observable>: Move to superclass.
72 * tui/tui-winsource.h (tui_copy_source_line): Declare.
73 (struct tui_source_window_base): Move private members to end.
74 <style_changed, m_observable>: Move from tui_source_window.
75 * tui/tui-winsource.c (tui_copy_source_line): Move from
76 tui-source.c. Rename from copy_source_line. Add special handling
77 for negative line number.
78 (tui_source_window_base::style_changed): Move from
80 (tui_source_window_base): Register observer.
81 (~tui_source_window_base): New.
82 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
84 (tui_source_window::set_contents): Use tui_copy_source_line.
85 (tui_source_window::tui_source_window): Move to tui-source.h.
86 (tui_source_window::~tui_source_window): Remove.
87 (tui_source_window::style_changed): Move to superclass.
88 * tui/tui-disasm.c (tui_disassemble): Create string file with
89 styling, when possible. Add "addr_size" parameter.
90 (tui_disasm_window::set_contents): Use tui_copy_source_line.
91 Don't compute maximum size.
92 (len_without_escapes): New function
94 2019-11-05 Tom Tromey <tom@tromey.com>
96 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
98 * tui/tui-winsource.c (tui_show_source_line): Update.
99 * tui/tui-source.c (tui_source_window::set_contents): Update.
100 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
102 2019-11-05 Christian Biesinger <cbiesinger@google.com>
104 * symtab.h (gdb_static_assert): Put && operator at the beginning
105 of the line instead of the end.
107 2019-11-04 Christian Biesinger <cbiesinger@google.com>
109 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
111 * symtab.h: Add a static_assert for sizeof (partial_symbol).
113 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
115 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
116 * configure.host: Mark *-*-solaris2.10* obsolete.
117 * configure.tgt: Mark Solaris < 11 obsolete.
118 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
119 Update target triplet.
121 2019-11-01 Tom Tromey <tromey@adacore.com>
123 * utils.c (print_sys_errmsg): Simplify.
125 2019-11-01 Tom Tromey <tromey@adacore.com>
127 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
129 2019-11-01 Christian Biesinger <cbiesinger@google.com>
131 * configure: Regenerate.
132 * configure.ac: Remove check for strerror_r.
133 * gdbsupport/common.m4: Check for strerror_r.
135 2019-11-01 Luis Machado <luis.machado@linaro.org>
139 * arm-tdep.c (arm_per_objfile): Rename to ...
140 (arm_per_bfd): ... this.
141 (arm_objfile_data_key): Rename to ...
142 (arm_bfd_data_key): ... this.
143 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
145 (arm_record_special_symbol): Likewise.
147 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
149 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
151 * c-typeprint.c (c_print_typedef): Likewise.
152 * f-typeprint.c (f_print_typedef): Likewise.
153 * m2-typeprint.c (m2_print_typedef): Likewise.
154 * p-typeprint.c (pascal_print_typedef): Likewise.
155 * rust-lang.c (rust_print_typedef): Likewise.
156 * symtab.c (print_symbol_info): Print a newline after calling
159 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
161 * symtab.c (info_module_cmdlist): New variable.
162 (info_module_command): New function.
163 (search_module_symbols): New function.
164 (info_module_subcommand): New function.
165 (struct info_modules_var_func_options): New struct.
166 (info_modules_var_func_options_defs): New variable.
167 (make_info_modules_var_func_options_def_group): New function.
168 (info_module_functions_command): New function.
169 (info_module_variables_command): New function.
170 (info_module_var_func_command_completer): New function.
171 (_initialize_symtab): Register new 'info module functions' and
172 'info module variables' commands.
173 * symtab.h (typedef symbol_search_in_module): New typedef.
174 (search_module_symbols): Declare new function.
175 * NEWS: Mention new commands.
177 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
179 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
180 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
181 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
183 (scan_partial_symbols): Only create partial module symbols for non
185 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
187 * symtab.c (search_domain_name): Likewise.
188 (search_symbols): Likewise.
189 (print_symbol_info): Likewise.
190 (symtab_symbol_info): Likewise.
191 (info_modules_command): New function.
192 (_initialize_symtab): Register 'info modules' command.
193 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
194 * NEWS: Mention new 'info modules' command.
196 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
198 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
199 and $_gdb_maint_setting_str.
201 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
203 * cli/cli-cmds.c (setting_cmd, value_from_setting)
204 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
205 (str_value_from_setting, gdb_setting_str_internal_fn)
206 (gdb_maint_setting_str_internal_fn): New functions.
207 (_initialize_cli_cmds): Define the new convenience functions.
208 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
209 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
211 2019-10-31 Christian Biesinger <cbiesinger@google.com>
213 * agent.c (set_can_use_agent): When the setting is turned on,
214 look up agent symbols if we don't have them yet.
215 (agent_new_objfile): Don't look up agent symbols when the agent
218 2019-10-31 Christian Biesinger <cbiesinger@google.com>
220 * config.in: Regenerate.
222 2019-10-31 Christian Biesinger <cbiesinger@google.com>
224 * configure: Regenerate.
225 * configure.ac: Check for strerror_r.
226 * gdbsupport/common-utils.h (safe_strerror): Change return value
227 to const char * and document that this function is now threadsafe.
228 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
229 thread_local and call strerror_r, if available.
230 * utils.c (perror_string): Update.
231 (print_sys_errmsg): Update.
233 2019-10-31 Luis Machado <luis.machado@linaro.org>
235 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
237 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
238 objfile to fetch per-bfd data.
239 (arm_find_exidx_entry): Likewise.
241 2019-10-31 Christian Biesinger <cbiesinger@google.com>
243 * gdbsupport/agent.c (debug_agent): Change type to bool.
244 (use_agent): Likewise.
245 (all_agent_symbols_look_up): Likewise.
246 (agent_loaded_p): Change return value to bool.
247 (agent_look_up_symbols): Update.
248 (agent_capability_check): Change return value to bool.
249 * gdbsupport/agent.h (agent_loaded_p): Likewise.
250 (debug_agent): Change type to bool.
251 (use_agent): Likewise.
252 (agent_capability_check): Change return value to bool.
254 2019-10-30 Christian Biesinger <cbiesinger@google.com>
256 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
257 (build_minimal_symbol_hash_tables): Code to clear the table moved
258 to clear_minimal_symbol_hash_tables.
259 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
262 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
264 * infcmd.c: Remove includes.
265 * infrun.c: Remove includes.
267 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
269 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
270 (grow_vect): Remove declaration.
271 (ada_type_of_array): Remove declaration.
272 (ada_update_initial_language): Remove declaration.
273 (ada_fold_name): Remove declaration.
274 (ada_fill_in_ada_prototype): Remove declaration.
275 (user_select_syms): Remove declaration.
276 (get_selections): Remove declaration.
277 (ada_tag_type): Remove declaration.
278 (ada_value_tag): Remove declaration.
279 (ada_is_others_clause): Remove declaration.
280 (ada_in_variant): Remove declaration.
281 (ada_value_struct_elt): Remove declaration.
282 (ada_attribute_name): Remove declaration.
283 (ada_system_address_type): Remove declaration.
284 * ada-lang.c (ada_watch_location_expression): Make static.
285 (GROW_VECT): Move here from ada-lang.h.
286 (grow_vect): Make static.
287 (ada_update_initial_language): Make static.
288 (ada_fold_name): Make static.
289 (ada_type_of_array): Make static.
290 (encoded_ordered_before): Move up.
291 (sort_choices): Move up.
292 (print_signatures): Move up.
293 (ada_print_symbol_signature): Move up.
294 (get_selections): Move up and make static.
295 (user_select_syms): Move up and make static.
296 (ada_value_struct_elt): Move up and make static.
297 (ada_tag_type): Make static.
298 (ada_value_tag): Make static.
299 (ada_is_others_clause): Make static.
300 (ada_in_variant): Make static.
301 (ada_attribute_name): Make static.
303 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
305 * ada-lang.c: Remove includes.
306 * ada-typeprint.c: Remove includes.
307 * ada-valprint.c: Remove includes.
309 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
311 * addrmap.c: Add static assertions of type size, moved from
313 (_initialize_addrmap): Remove.
315 2019-10-29 Christian Biesinger <cbiesinger@google.com>
317 * coffread.c (record_minimal_symbol): Update.
318 (process_coff_symbol): Update.
319 * dbxread.c (read_dbx_symtab): Update.
320 * dwarf2read.c (add_partial_symbol): Update.
321 (fixup_go_packaging): Update.
322 (load_partial_dies): Update.
323 (new_symbol): Update.
324 * elfread.c (record_minimal_symbol): Change signature to use
325 gdb::string_view instead of name+len.
326 (elf_symtab_read): Update.
327 (elf_rel_plt_read): Update.
328 * mdebugread.c (parse_partial_symbols): Update.
329 (handle_psymbol_enumerators): Update.
330 (new_symbol): Update.
331 * minsyms.c (minimal_symbol_reader::record_full): Change signature
332 to use gdb::string_view instead of name+len.
333 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
334 * psympriv.h (add_psymbol_to_list): Likewise.
335 * psymtab.c (add_psymbol_to_bcache): Likewise.
336 (add_psymbol_to_list): Likewise.
337 * stabsread.c (define_symbol): Update.
338 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
339 * symtab.h (SYMBOL_SET_NAMES): Likewise.
340 (symbol_set_names): Likewise.
341 * xcoffread.c (scan_xcoff_symtab): Update.
343 2019-10-29 Christian Biesinger <cbiesinger@google.com>
345 * symtab.h (symbol_set_names): Document that copy_name must be
346 set to true for non-nullterminated strings.
347 * symtab.c (symbol_set_names): Only make a nullterminated copy of
348 linkage_name if the entry was not found and we need to demangle.
350 2019-10-29 Christian Biesinger <cbiesinger@google.com>
352 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
353 * dwarf2-frame.c (bsearch_fde_cmp): Update.
354 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
355 * gdbsupport/gdb_binary_search.h: New file.
357 2019-10-29 Christian Biesinger <cbiesinger@google.com>
359 * NEWS: Mention new --with-system-gdbinit-dir option.
360 * config.in: Regenerate.
361 * configure: Regenerate.
362 * configure.ac: Add new option --with-system-gdbinit-dir.
363 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
365 * main.c (get_init_files): Change system_gdbinit argument to
366 a vector and return the files in SYSTEM_GDBINIT_DIR in
367 addition to SYSTEM_GDBINIT.
368 (captured_main_1): Update.
369 (print_gdb_help): Update.
370 * top.c (print_gdb_configuration): Also print the value of
373 2019-10-28 Christian Biesinger <cbiesinger@google.com>
375 * gdbsupport/common-utils.h (startswith): Add an overloaded version
376 that takes gdb::string_view arguments.
378 2019-10-26 Tom de Vries <tdevries@suse.de>
380 * aarch64-linux-tdep.c: Fix typos in comments.
381 * aarch64-tdep.c: Same.
385 * arch/aarch64-insn.c: Same.
387 * breakpoint.h: Same.
390 * cli/cli-decode.c: Same.
391 * cli/cli-script.c: Same.
392 * cli/cli-utils.h: Same.
393 * coff-pe-read.c: Same.
395 * compile/compile-cplus-symbols.c: Same.
396 * compile/compile-object-run.c: Same.
399 * cp-support.c: Same.
401 * dwarf-index-write.c: Same.
402 * dwarf2-frame.c: Same.
403 * dwarf2-frame.h: Same.
405 * frame-base.h: Same.
410 * guile/scm-objfile.c: Same.
419 * mi/mi-cmd-disas.c: Same.
420 * mi/mi-getopt.h: Same.
421 * mi/mi-main.c: Same.
423 * nat/aarch64-sve-linux-sigcontext.h: Same.
425 * ppc-linux-nat.c: Same.
426 * ppc-linux-tdep.c: Same.
429 * prologue-value.h: Same.
430 * python/py-evtregistry.c: Same.
431 * python/py-instruction.h: Same.
432 * record-btrace.c: Same.
433 * record-full.c: Same.
435 * rs6000-tdep.c: Same.
437 * sol-thread.c: Same.
438 * sparc-sol2-tdep.c: Same.
439 * sparc64-tdep.c: Same.
444 * tracepoint.c: Same.
445 * tui/tui-data.h: Same.
446 * tui/tui-io.c: Same.
447 * tui/tui-win.c: Same.
449 * unittests/rsp-low-selftests.c: Same.
461 * xtensa-tdep.c: Same.
463 2019-10-25 Ali Tamur <tamur@google.com>
465 * charset.c (find_charset_names): Reflect API change.
467 2019-10-25 Christian Biesinger <cbiesinger@google.com>
469 * symtab.c (struct demangled_name_entry): Change demangled name
470 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
471 part of the struct anymore.
472 (symbol_set_names): No longer obstack allocate + copy the demangled
473 name, just store the allocated name from bfd.
475 2019-10-25 Tom Tromey <tromey@adacore.com>
477 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
478 (bsearch_cie_cmp, add_cie): Remove.
479 (find_cie): Reimplement.
480 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
481 (dwarf2_build_frame_info): Update.
483 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
486 * symfile.c (reread_symbols): Call forget_cached_source_info to
487 clear the stale source cache.
489 2019-10-24 Christian Biesinger <cbiesinger@google.com>
491 * configure: Regenerate.
492 * configure.ac: Remove code that sets python_has_threads.
494 2019-10-24 Christian Biesinger <cbiesinger@google.com>
496 * config.in: Regenerate.
497 * configure: Regenerate.
498 * configure.ac: Remove the code that uses sed to get the python
499 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
501 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
503 * python/py-progspace.c (pspy_block_for_pc): Return None for all
506 2019-10-23 Tom Tromey <tom@tromey.com>
508 * arc-tdep.c: Remove ".." from include.
509 * frv-tdep.c: Remove ".." from include.
510 * lm32-tdep.c: Remove ".." from include.
511 * microblaze-tdep.c: Remove ".." from include.
512 * or1k-tdep.h: Remove ".." from include.
513 * s12z-tdep.c: Remove ".." from include.
514 * Makefile.in (OPCODES_CFLAGS): Add comment.
515 (TOP_CFLAGS): New variable.
516 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
518 2019-10-23 Tom Tromey <tom@tromey.com>
520 * Makefile.in (READLINE_DIR): Update.
522 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
524 * infcall.c (call_function_by_hand_dummy): Fix the function
525 comment. And extract out a code section into...
526 (reserve_stack_space): ...this new function.
528 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530 * infcall.c (value_arg_coerce): Remove an unused parameter.
531 (call_function_by_hand_dummy): Update the call to
534 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
536 * infcall.c (call_function_by_hand_dummy): Refactor.
538 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
540 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
542 2019-10-23 Tom Tromey <tom@tromey.com>
544 * configure: Rebuild.
545 * configure.ac: Don't check for sigprocmask.
546 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
548 2019-10-23 Tom Tromey <tom@tromey.com>
550 * configure: Rebuild.
551 * acinclude.m4: Use m4_include, not sinclude.
553 2019-10-23 Tom de Vries <tdevries@suse.de>
556 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
558 2019-10-22 Christian Biesinger <cbiesinger@google.com>
560 * symtab.c (struct demangled_name_entry) <language>: Change from
561 bitfield to regular variable.
563 2019-10-22 Christian Biesinger <cbiesinger@google.com>
565 * symtab.c (struct demangled_name_entry): Add a constructor.
566 (free_demangled_name_entry): New function to call the destructor
567 for demangled_name_entry.
568 (create_demangled_names_hash): Pass free_demangled_name_entry to
570 (symbol_set_names): Call placement new for demangled_name_entry.
571 * utils.c: No longer include xxhash.h here, now that fast_hash
572 is inlined in the header.
573 * utils.h: Instead, include it here.
575 2019-10-22 Christian Biesinger <cbiesinger@google.com>
577 * Makefile.in: Link with libxxhash.
578 * config.in: Regenerate.
579 * configure: Regenerate.
580 * configure.ac: Search for libxxhash.
581 * utils.c (fast_hash): Use xxhash if present.
583 2019-10-22 Christian Biesinger <cbiesinger@google.com>
585 * utils.h (fast_hash): New function.
586 * symtab.c (hash_demangled_name_entry): Call new function
589 2019-10-22 Christian Biesinger <cbiesinger@google.com>
591 * symtab.c (struct demangled_name_entry): Change type of mangled
592 to gdb::string_view. Also adds a constructor that takes the
594 (hash_demangled_name_entry): Update.
595 (eq_demangled_name_entry): Update.
596 (free_demangled_name_entry): New function to call the destructor
597 now that this is not a POD anymore.
598 (create_demangled_names_hash): Pass free_demangled_name_entry to
600 (symbol_set_names): Update.
602 2019-10-21 Ali Tamur <tamu@google.com>
604 * dwarf2read.c (dir_index): Change type.
605 (file_name_index): Likewise.
606 (line_header::include_dir_at): Change comment and implementation on
607 whether it is DWARF 5.
608 (line_header::is_valid_file_index): New function.
609 (line_header::file_name_at): Change comment and implementation on
610 whether it is DWARF 5.
611 (line_header::file_names): Change to private field renamed as
612 m_file_names and introduce a new accessor method.
613 (line_header::file_names_size): New method.
614 (line_header::include_dirs): Change to private field and rename as
616 (dw2_get_file_names_reader): Define local var at a smaller scope and
618 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
619 (process_structure_scope): Likewise.
620 (line_header::add_include_dir): Change message and reflect renaming.
621 (line_header::add_file_name): Likewise.
622 (read_formatted_entries): Handle DW_FORM_data16.
623 (dwarf_decode_line_header): Fix line header length calculation.
624 (psymtab_include_file_name): Change comment and API.
625 (lnp_state_machine::m_file): Update comment and reflect type change.
626 (lnp_state_machine::record_line): Reflect type change.
627 (dwarf_decode_lines): Reflect API change.
628 (file_file_name): Likewise.
629 (file_full_name): Likewise.
631 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
633 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
635 2019-10-21 Tom Tromey <tom@tromey.com>
637 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
639 2019-10-21 Tom Tromey <tom@tromey.com>
641 * configure.ac (nm.h): Conditionally create nm.h link. Subst
642 NM_H. Use AC_CONFIG_LINKS.
643 * configure: Rebuild.
644 * Makefile.in (NM_H): New variable.
645 (generated_files): Add NM_H. Remove gcore.
646 (nm.h, stamp-nmh): New targets.
648 2019-10-20 Tom Tromey <tom@tromey.com>
650 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
651 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
653 (put_objfile_before): Now static.
655 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
657 * gdbsupport/common-utils.h (startswith): Change return type to
660 2019-10-19 Christian Biesinger <cbiesinger@google.com>
662 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
663 * breakpoint.c (bp_locations_compare): Rename to...
664 (bp_location_is_less_than): ...this, and change to std::sort semantics.
665 (update_global_location_list): Use std::sort instead of qsort.
666 * buildsym.c (compare_line_numbers): Rename to...
667 (lte_is_less_than): ...this, and change to std::sort semantics.
668 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
670 * disasm.c (compare_lines): Rename to...
671 (line_is_less_than): ...this, and change to std::sort semantics.
672 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
674 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
675 (fde_is_less_than): ...this, and change to std::sort semantics.
676 (dwarf2_build_frame_info): Call std::sort instead of qsort.
677 * mdebugread.c (compare_blocks):
678 (block_is_less_than): ...this, and change to std::sort semantics.
679 (sort_blocks): Call std::sort instead of qsort.
680 * objfiles.c (qsort_cmp): Rename to...
681 (sort_cmp): ...this, and change to std::sort semantics.
682 (update_section_map): Call std::sort instead of qsort.
683 * remote.c (compare_pnums): Remove.
684 (map_regcache_remote_table): Call std::sort instead of qsort.
685 * utils.c (compare_positive_ints): Remove.
686 * utils.h (compare_positive_ints): Remove.
687 * xcoffread.c (compare_lte): Remove.
688 (arrange_linetable): Call std::sort instead of qsort.
690 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
692 * symfile.c (init_entry_point_info): Fix typo.
693 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
695 2019-10-18 Tom de Vries <tdevries@suse.de>
697 * aarch64-tdep.c: Fix typos in comments.
700 * alpha-tdep.c: Same.
701 * alpha-tdep.h: Same.
703 * amd64-windows-tdep.c: Same.
706 * arch-utils.c: Same.
707 * arm-nbsd-tdep.c: Same.
710 * blockframe.c: Same.
713 * coff-pe-read.c: Same.
716 * darwin-nat.c: Same.
720 * dtrace-probe.c: Same.
721 * dwarf-index-write.c: Same.
722 * dwarf2-frame-tailcall.c: Same.
723 * dwarf2-frame.c: Same.
724 * dwarf2read.c: Same.
726 * exceptions.c: Same.
731 * gnu-v3-abi.c: Same.
733 * h8300-tdep.c: Same.
735 * i386-linux-tdep.c: Same.
737 * ia64-libunwind-tdep.c: Same.
743 * linux-thread-db.c: Same.
745 * mdebugread.c: Same.
747 * mn10300-tdep.c: Same.
750 * opencl-lang.c: Same.
753 * ppc-linux-nat.c: Same.
754 * ppc-linux-tdep.c: Same.
755 * ppc-sysv-tdep.c: Same.
758 * record-btrace.c: Same.
759 * record-full.c: Same.
760 * remote-fileio.c: Same.
762 * rs6000-tdep.c: Same.
764 * score-tdep.c: Same.
768 * sol-thread.c: Same.
769 * solib-svr4.c: Same.
773 * sparc-sol2-tdep.c: Same.
774 * sparc-tdep.c: Same.
775 * sparc64-tdep.c: Same.
780 * target-descriptions.c: Same.
781 * target-float.c: Same.
788 * windows-nat.c: Same.
790 * xstormy16-tdep.c: Same.
791 * xtensa-tdep.c: Same.
793 2019-10-17 Tom Tromey <tromey@adacore.com>
795 * configure: Rebuild.
796 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
797 in AC_CONFIG_FILES invocation.
798 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
799 new-style config.status invocation.
801 2019-10-17 Tom de Vries <tdevries@suse.de>
803 * arm-nbsd-nat.c: Fix typos in comments.
805 * darwin-nat-info.c: Same.
806 * dwarf2read.c: Same.
815 * mdebugread.c: Same.
816 * moxie-tdep.c: Same.
817 * nto-procfs.c: Same.
819 * ppc-linux-tdep.c: Same.
821 * riscv-tdep.c: Same.
824 * sparc-linux-tdep.c: Same.
827 * target-descriptions.c: Same.
831 2019-10-16 Tom Tromey <tom@tromey.com>
833 * objfiles.h (struct objfile) <original_name>: Now const.
835 2019-10-16 Christian Biesinger <cbiesinger@google.com>
837 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
838 pass on to sigsetjmp's second argument.
839 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
841 2019-10-16 Keith Seitz <keiths@redhat.com>
844 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
845 sections whose size is greater than the file size.
847 2019-10-16 Jim Wilson <jimw@sifive.com>
849 * riscv-tdep.c (riscv_gcc_target_options): New.
850 (riscv_gnu_triplet_regexp): New.
851 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
852 set_gdbarch_gnu_triplet_regexp.
854 2019-10-16 Christian Biesinger <cbiesinger@google.com>
856 * Makefile.in: Add xml-builtin.h.
857 * features/feature_to_c.sh: Add an include for xml-builtin.h
858 to ensure that the compiler checks that the types match.
859 * xml-builtin.h: New file.
860 * xml-support.c (fetch_xml_builtin): Add missing const.
861 * xml-support.h: Remove declaration of xml_builtins.
863 2019-10-16 Tom de Vries <tdevries@suse.de>
866 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
867 (amd64_classify_aggregate): ... here.
868 (amd64_classify_aggregate_field): Handled fiels of nested structs
871 2019-10-16 Tom de Vries <tdevries@suse.de>
874 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
875 that handles 'theclass'.
877 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
879 * linespec.c (decode_digits_ordinary): Update comment.
880 * make-target-delegates: No longer need to handle VEC case.
881 * memrange.c (normalize_mem_ranges): Update comment.
882 * namespace.c (add_using_directive): Update comment.
883 * objc-lang.c (uniquify_strings): Update comment.
884 * ppc-linux-nat.c (struct thread_points): Update comment.
885 * probe.h (find_probes_in_objfile): Update comment.
886 * target.h (enum flash_preserve_mode): Update comment.
887 * varobj.c (varobj_restrict_range): Update comment.
888 * varobj.h (varobj_list_children): Update comment.
890 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
892 * Makefile.in: Remove references to vec.h and vec.c.
893 * aarch64-tdep.c: No longer include vec.h.
894 * ada-lang.c: Likewise.
895 * ada-lang.h: Likewise.
896 * arm-tdep.c: Likewise.
898 * breakpoint.h: Likewise.
899 * charset.c: Likewise.
900 * cp-support.h: Likewise.
901 * dtrace-probe.c: Likewise.
902 * dwarf2read.c: Likewise.
903 * extension.h: Likewise.
904 * gdb_bfd.c: Likewise.
905 * gdbsupport/gdb_vecs.h: Likewise.
906 * gdbsupport/vec.c: Remove.
907 * gdbsupport/vec.h: Remove.
908 * gdbthread.h: Likewise.
909 * guile/scm-type.c: Likewise.
910 * inline-frame.c: Likewise.
911 * machoread.c: Likewise.
912 * memattr.c: Likewise.
913 * memrange.h: Likewise.
914 * namespace.h: Likewise.
915 * nat/linux-btrace.h: Likewise.
916 * osdata.c: Likewise.
917 * parser-defs.h: Likewise.
918 * progspace.h: Likewise.
919 * python/py-type.c: Likewise.
920 * record-btrace.c: Likewise.
921 * rust-exp.y: Likewise.
922 * solib-target.c: Likewise.
923 * stap-probe.c: Likewise.
924 * target-descriptions.c: Likewise.
925 * target-memory.c: Likewise.
926 * target.h: Likewise.
927 * varobj.c: Likewise.
928 * varobj.h: Likewise.
929 * xml-support.h: Likewise.
931 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
933 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
934 Update for new std::vector based implementation.
935 (process_psymtab_comp_unit_reader): Likewise.
936 (scan_partial_symbols): Likewise.
937 (recursively_compute_inclusions): Likewise.
938 (compute_compunit_symtab_includes): Likewise.
939 (process_imported_unit_die): Likewise.
940 (queue_and_load_dwo_tu): Likewise.
941 (follow_die_sig_1): Likewise.
942 * gdb/dwarf2read.h: Remove DEF_VEC_P.
943 (typedef dwarf2_per_cu_ptr): Remove.
944 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
946 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
947 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
948 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
949 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
952 2019-10-15 Tom Tromey <tromey@adacore.com>
954 * windows-nat.c (windows_nat_target::resume): Use %x when logging
957 2019-10-15 Tom Tromey <tromey@adacore.com>
959 * windows-nat.c (windows_nat_target::fetch_registers)
960 (windows_nat_target::store_registers): Rename "pid" to "tid".
962 2019-10-15 Tom Tromey <tromey@adacore.com>
964 * gdbarch.h, gdbarch.c: Rebuild.
965 * gdbarch.sh (gcc_target_options): Change return type to
967 * compile/compile.c (get_args): Update.
968 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
969 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
971 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
973 * arch-utils.c (default_gcc_target_options): Return std::string.
974 * arch-utils.h (default_gcc_target_options): Return std::string.
975 * s390-tdep.c (s390_gcc_target_options): Return std::string.
977 2019-10-15 Christian Biesinger <cbiesinger@google.com>
979 * breakpoint.c (breakpoint_chain): Make static.
980 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
981 of accessing breakpoint_chain.
983 2019-10-15 Christian Biesinger <cbiesinger@google.com>
985 * breakpoint.c (iterate_over_breakpoints): Change function pointer
986 to a gdb::function_view and return value to bool.
987 * breakpoint.h (iterate_over_breakpoints): Likewise.
988 * dummy-frame.c (pop_dummy_frame_bpt): Update.
989 (pop_dummy_frame): Update.
990 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
991 (gdbscm_breakpoints): Update.
992 * python/py-breakpoint.c (build_bp_list): Update.
993 (gdbpy_breakpoints): Update.
994 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
996 (bpfinishpy_handle_stop): Update.
997 (bpfinishpy_handle_exit): Update.
998 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
999 (svr4_update_solib_event_breakpoints): Update.
1001 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1003 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1004 when unwrapping single-field structs.
1006 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1008 * dwarf2read.c: Remove includes.
1010 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1012 * ui-out.c (ui_out::call_do_message): Silence
1013 -Wformat-nonliteral warning.
1015 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1017 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1018 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1019 include: readline/tilde.h.
1021 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1023 * remote.c (remote_target::get_trace_status): Remove declaration of
1024 trace_regblock_size.
1026 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1028 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1029 (show_user): Remove declaration of cmdlist.
1030 * cli/cli-cmds.h (max_user_call_depth): Declare.
1031 * cli/cli-script.c (execute_user_command): Remove declaration
1032 of max_user_call_depth.
1034 2019-10-11 Jim Wilson <jimw@sifive.com>
1036 * gdbsupport/print-utils.h (pulongest): Fix comment.
1037 (plongest): Likewise.
1038 (phex): Add missing comment, mention leading zeros.
1039 (phex_nz): Add mention of no leading zeros to comment.
1041 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1042 plongest instead of unsigned long long cast.
1044 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1046 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1047 for external_editor_command and gdbtk_test.
1049 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1051 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1052 * varobj.c (varobjdebug): Move comment to...
1053 * varobj.h (varobjdebug): ...here, and declare.
1055 2019-10-09 Tom Tromey <tom@tromey.com>
1057 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1060 2019-10-09 Tom Tromey <tom@tromey.com>
1062 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1063 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1064 * tui/tui-command.c (tui_cmd_window::resize)
1065 (tui_refresh_cmd_win): Update.
1066 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1067 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1068 * tui/tui-data.c (~tui_gen_win_info): Remove.
1069 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1070 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1071 (tui_redisplay_readline, tui_mld_flush)
1072 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1073 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1074 (tui_data_window::erase_data_content)
1075 (tui_data_item_window::rerender)
1076 (tui_data_item_window::refresh_window): Update.
1077 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1078 (box_win, tui_gen_win_info::make_window)
1079 (tui_gen_win_info::make_visible): Update.
1080 (tui_delete_win): Remove.
1081 * tui/tui-winsource.c
1082 (tui_source_window_base::do_erase_source_content): Update.
1083 (tui_show_source_line, tui_source_window_base::update_tab_width)
1084 (tui_source_window_base::update_exec_info): Update.
1085 * tui/tui-data.h (struct curses_deleter): New.
1086 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1087 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1089 2019-10-09 Tom Tromey <tom@tromey.com>
1091 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1093 2019-10-09 Tom Tromey <tom@tromey.com>
1095 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1096 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1098 2019-10-09 Tom Tromey <tom@tromey.com>
1100 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1101 window height directly.
1102 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1104 * tui/tui-layout.c (tui_default_win_height): Remove.
1105 (tui_default_win_viewport_height): Remove.
1107 2019-10-09 Tom Tromey <tom@tromey.com>
1109 * tui/tui.h: Remove comments.
1111 2019-10-09 Tom de Vries <tdevries@suse.de>
1113 * python/lib/gdb/printer/bound_registers.py: Use
1114 '^builtin_type_bound128' as regexp argument for
1115 add_builtin_pretty_printer.
1117 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1119 * guile/guile.c (guile_extension_script_ops): Remove forward
1120 declaration and mark as static.
1121 (guile_script_ops): Likewise.
1122 (extension_language_guile): Move further down in the file so
1123 it can reference the definitions for guile_{extension_,}script_ops.
1125 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1127 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1128 except SORTL, DFLTCC, and KDSA.
1130 2019-10-08 Tom Tromey <tromey@adacore.com>
1132 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1133 (struct safe_symbol_file_add_args): Remove.
1135 2019-10-08 Tom Tromey <tromey@adacore.com>
1137 * windows-nat.c: Don't include buildsym-legacy.h.
1139 2019-10-08 Tom Tromey <tromey@adacore.com>
1141 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1143 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1145 * gdbtypes.c (overload_debug): Move comment to header.
1146 * gdbtypes.h (overload_debug): Declare.
1147 * valops.c: Remove declaration of overload_debug, instead
1150 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1152 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1154 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1156 * language.h (lang_frame_mismatch_warn): ... here. Also add
1158 * top.c (lang_frame_mismatch_warn): Remove declaration.
1159 (check_frame_language_change): Pass lang_frame_mismatch_warn
1162 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1164 * c-lang.h (vtbl_ptr_name): Declare.
1165 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1167 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1169 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1171 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1174 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1176 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1177 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1178 * ctfread.c: New file.
1179 * ctfread.h: New file.
1180 * elfread.c: Include ctfread.h.
1181 (struct elfinfo text_p): New member ctfsect.
1182 (elf_locate_sections): Mark CTF section.
1183 (elf_symfile_read): Call elfctf_build_psymtabs.
1184 * Makefile.in (LIBCTF): Add.
1187 (DIST): Add ctfread.c.
1189 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1191 * ctfread.c (struct nextfield): Renamed to ...
1192 (struct ctf_nextfield): ... this.
1193 (struct field_info): Renamed to ...
1194 (strut ctf_field_info): ... this.
1195 (attach_fields_to_type): Update for renamed structures.
1196 (ctf_add_member_cb): Likewise.
1197 (ctf_add_enum_member_cb): Likewise.
1198 (process_struct_members): Likewise.
1199 (process_enum_type): Likewise.
1201 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1203 * tracectf.h: Rename, was ctf.h.
1204 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1205 * tracefile.c: Likewise.
1206 * tracepoint.c: Remove unused include ctf.h.
1207 * mi/mi-main.c: Likewise.
1208 * Makefile.in Replace ctf.c with tracectf.c.
1210 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1212 * version.in: Change version number to "9.0.50.DATE-git".
1214 2019-10-03 Tom Tromey <tom@tromey.com>
1217 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1219 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1221 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1222 cp_search_name_hash.
1223 * NEWS: Add entry about nested function support.
1225 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1226 Andrew Burgess <andrew.burgess@embecosm.com>
1228 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1229 for nested static variables when searchin VAR_DOMAIN.
1230 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1231 global scope, update comment.
1232 (add_partial_subprogram): Call add_partial_subprogram recursively
1233 for nested subroutines when processinng Fortran.
1234 (load_partial_dies): Process the child entities of a subprogram
1235 when processing Fortran.
1236 (partial_die_parent_scope): Handle building scope
1237 for Fortran nested functions.
1238 (process_die): Record that nested functions have a scope.
1239 (new_symbol): Always record Fortran subprograms on the global
1241 (determine_prefix): How to build the prefix for Fortran
1244 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1246 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1247 have just sent the thread a SIGSTOP and are waiting for it to
1250 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1252 * btrace.c (btrace_add_pc): Remove whitespace before the template
1253 parameter in 'std::vector <...>'.
1254 (parse_xml_btrace_block): Likewise.
1255 (btrace_maint_decode_pt): Likewise.
1256 (btrace_maint_update_packets): Likewise.
1257 (btrace_maint_print_packets): Likewise.
1258 * btrace.h (struct btrace_maint_info): Likewise.
1259 * dwarf2read.c (struct type_unit_group): Likewise.
1260 (build_type_psymtabs_reader): Likewise.
1261 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
1262 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
1263 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
1265 2019-10-03 Tom de Vries <tdevries@suse.de>
1267 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
1268 the first line of the help text for set/show style metadata.
1270 2019-10-02 Tom Tromey <tromey@adacore.com>
1272 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
1273 * gdbsupport/common-inferior.c: New file.
1274 * infcmd.c (startup_with_shell): Don't define.
1275 * nat/fork-inferior.h (startup_with_shell): Don't declare.
1276 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
1277 * inferior.h (startup_with_shell): Don't declare.
1279 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1281 * gdbsupport/gdb_assert.h: Include errors.h.
1282 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
1284 2019-10-02 Tom Tromey <tromey@adacore.com>
1286 * NEWS: Add $_ada_exception entry.
1287 * ada-lang.c (struct ada_catchpoint): Add constructor.
1288 <m_kind>: New member.
1289 (allocate_location_exception, re_set_exception): Remove
1291 (should_stop_exception): Compute $_ada_exception.
1292 (check_status_exception, print_it_exception)
1293 (print_one_exception, print_mention_exception): Remove
1295 (allocate_location_catch_exception, re_set_catch_exception)
1296 (check_status_exception, print_it_catch_exception)
1297 (print_one_catch_exception, print_mention_catch_exception)
1298 (print_recreate_catch_exception)
1299 (allocate_location_catch_exception_unhandled)
1300 (re_set_catch_exception_unhandled)
1301 (check_status_exception, print_it_catch_exception_unhandled)
1302 (print_one_catch_exception_unhandled)
1303 (print_mention_catch_exception_unhandled)
1304 (print_recreate_catch_exception_unhandled)
1305 (allocate_location_catch_assert, re_set_catch_assert)
1306 (check_status_assert, print_it_catch_assert)
1307 (print_one_catch_assert, print_mention_catch_assert)
1308 (print_recreate_catch_assert)
1309 (allocate_location_catch_handlers, re_set_catch_handlers)
1310 (check_status_handlers, print_it_catch_handlers)
1311 (print_one_catch_handlers, print_mention_catch_handlers)
1312 (print_recreate_catch_handlers): Remove.
1313 (create_ada_exception_catchpoint): Update.
1314 (initialize_ada_catchpoint_ops): Update.
1316 2019-10-02 Tom Tromey <tromey@adacore.com>
1318 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
1319 (create_excep_cond_exprs): Simplify exception string computation.
1320 (ada_exception_catchpoint_cond_string): Likewise.
1322 2019-10-02 Tom Tromey <tromey@adacore.com>
1324 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
1325 * ada-lang.c (lesseq_defined_than): Handle
1327 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
1329 (dwarf2_has_info): Likewise.
1330 (new_symbol): Set maybe_copied on symbol when
1332 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
1334 <can_copy>: New member.
1335 * elfread.c (record_minimal_symbol): Set maybe_copied
1336 on symbol when appropriate.
1337 (elf_symfile_read): Update call to dwarf2_has_info.
1338 * minsyms.c (lookup_minimal_symbol_linkage): New
1340 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
1341 * symtab.c (get_symbol_address, get_msymbol_address):
1343 * symtab.h (get_symbol_address, get_msymbol_address):
1345 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1347 (struct symbol, struct minimal_symbol) <maybe_copied>:
1350 2019-10-02 Tom Tromey <tromey@adacore.com>
1352 * source.c (struct current_source_location): New.
1353 (current_source_key): New global.
1354 (current_source_symtab, current_source_line)
1355 (current_source_pspace): Remove.
1356 (get_source_location): New function.
1357 (get_current_source_symtab_and_line)
1358 (set_default_source_symtab_and_line)
1359 (set_current_source_symtab_and_line)
1360 (clear_current_source_symtab_and_line, select_source_symtab)
1361 (info_source_command, print_source_lines_base)
1362 (info_line_command, search_command_helper, _initialize_source):
1365 2019-10-02 Tom Tromey <tromey@adacore.com>
1367 * source.c (select_source_symtab): Don't call
1368 decode_line_with_current_source.
1370 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1372 * symtab.c (lookup_global_symbol): Search global block.
1374 2019-10-02 Tom Tromey <tromey@adacore.com>
1376 * coffread.c (process_coff_symbol): Update.
1377 * dwarf2read.c (var_decode_location, new_symbol): Update.
1378 * mdebugread.c (parse_symbol): Update.
1379 * objfiles.c (relocate_one_symbol): Update.
1380 * stabsread.c (define_symbol, fix_common_block)
1381 (scan_file_globals): Update.
1382 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1383 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1384 * xcoffread.c (process_xcoff_symbol): Update.
1386 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1388 * MAINTAINERS: Update my email address.
1390 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1392 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1394 (build_type_psymtabs_reader): Update for std::vector.
1395 (build_type_psymtab_dependencies): Likewise.
1396 * dwarf2read.h: Remove use of DEF_VEC_P.
1397 (typedef sig_type_ptr): Delete.
1399 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1401 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1403 (btrace_maint_decode_pt): Likewise, and move allocation of the
1404 vector outside of the loop.
1405 (btrace_maint_update_packets): Update to handle change from VEC to
1407 (btrace_maint_print_packets): Likewise.
1408 (maint_info_btrace_cmd): Likewise.
1409 * btrace.h: Remove use of DEF_VEC_O.
1410 (typedef btrace_pt_packet_s): Delete.
1411 (struct btrace_maint_info) <packets>: Change fromm VEC to
1413 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1415 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1417 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1418 make accesses into the vector constant references.
1419 (btrace_add_pc): Update for std::vector.
1420 (btrace_stitch_bts): Likewise.
1421 (parse_xml_btrace_block): Likewise.
1422 (btrace_maint_update_packets): Likewise.
1423 (btrace_maint_print_packets): Likewise.
1424 (maint_info_btrace_cmd): Likewise.
1425 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1427 (btrace_data::empty): Likewise.
1428 (btrace_data_append): Likewise.
1429 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1430 (typedef btrace_block_s): Delete.
1431 (struct btrace_block): Add constructor.
1432 (struct btrace_data_bts) <blocks>: Change to std::vector.
1433 * nat/linux-btrace.c (perf_event_read_bts): Update for
1435 (linux_read_bts): Likewise.
1437 2019-10-01 Tom Tromey <tom@tromey.com>
1439 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1441 2019-10-01 Tom Tromey <tom@tromey.com>
1443 * stack.c (print_frame, info_frame_command_core): Use
1445 * linux-thread-db.c (try_thread_db_load_1)
1446 (try_thread_db_load_from_pdir_1): Use styled_string.
1447 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1448 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1449 (maybe_print_unsupported_script_warning)
1450 (maybe_print_script_not_found_warning): Use styled_string.
1451 * ada-lang.c (user_select_syms): Use styled_string.
1453 2019-10-01 Tom Tromey <tom@tromey.com>
1455 * p-lang.c (pascal_printstr): Use metadata style.
1456 * value.c (show_convenience): Use metadata style.
1457 * valprint.c (valprint_check_validity, val_print_optimized_out)
1458 (val_print_not_saved, val_print_unavailable)
1459 (val_print_invalid_address, generic_val_print, val_print)
1460 (value_check_printable, val_print_array_elements): Use metadata
1462 * ui-out.h (class ui_out) <field_fmt>: New overload.
1463 <do_field_fmt>: Add style parameter.
1464 * ui-out.c (ui_out::field_fmt): New overload.
1465 * typeprint.c (type_print_unknown_return_type)
1466 (val_print_not_allocated, val_print_not_associated): Use metadata
1468 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1470 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1471 * tracepoint.c (tvariables_info_1): Use metadata style.
1472 * stack.c (print_frame_arg, print_frame_info, print_frame)
1473 (info_frame_command_core): Use metadata style.
1474 * skip.c (info_skip_command): Use metadata style.
1475 * rust-lang.c (rust_print_enum): Use metadata style.
1476 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1478 * python/py-framefilter.c (py_print_single_arg): Use metadata
1480 * printcmd.c (do_one_display, print_variable_and_value): Use
1482 * p-valprint.c (pascal_val_print)
1483 (pascal_object_print_value_fields): Use metadata style.
1484 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1485 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1487 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1488 * m2-valprint.c (m2_print_long_set): Use metadata style.
1489 * m2-typeprint.c (m2_print_type): Use metadata style.
1490 * infcmd.c (print_return_value_1): Use metadata style.
1491 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1492 * f-valprint.c (info_common_command_for_block): Use metadata
1494 * f-typeprint.c (f_type_print_base): Use metadata style.
1495 * expprint.c (print_subexp_standard): Use metadata style.
1496 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1497 * cli/cli-style.h (class cli_style_option): Add constructor.
1498 (metadata_style): Declare.
1499 * cli/cli-style.c (metadata_style): New global.
1500 (_initialize_cli_style): Register metadata style.
1501 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1503 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1504 * c-typeprint.c (c_type_print_base_struct_union)
1505 (c_type_print_base_1): Use metadata style.
1506 * breakpoint.c (watchpoint_value_print)
1507 (print_one_breakpoint_location): Use metadata style.
1508 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1510 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1512 * ada-valprint.c (val_print_packed_array_elements, printstr)
1513 (print_field_values, ada_val_print_ref, ada_val_print): Use
1515 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1517 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1519 * ada-lang.c (user_select_syms): Use metadata style.
1521 2019-10-01 Tom Tromey <tom@tromey.com>
1523 * cli/cli-cmds.c (pwd_command): Style output.
1525 2019-10-01 Pedro Alves <palves@redhat.com>
1526 Tom Tromey <tom@tromey.com>
1528 * symtab.c (print_symbol_info): Use %ps.
1529 (print_msymbol_info): Use %ps.
1530 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1531 * printcmd.c (print_variable_and_value): Use %ps.
1532 * macrocmd.c (show_pp_source_pos): Use %ps.
1533 * infrun.c (print_exited_reason): Use ui_out::message.
1534 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1535 (describe_other_breakpoints): Use ui_out::message and new
1537 (say_where): Use new formats.
1538 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1541 2019-10-01 Pedro Alves <palves@redhat.com>
1542 Tom Tromey <tom@tromey.com>
1544 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1545 (test_gdb_formats): New function.
1546 (run_tests): Call it.
1547 (test_format_specifier): Update.
1548 * utils.h (fputs_filtered): Update comment.
1549 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1550 (fputs_styled_unfiltered): Declare.
1551 * utils.c (fputs_styled_unfiltered): New function.
1552 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1553 (vfprintf_filtered): Update.
1554 (vfprintf_unfiltered, vprintf_filtered): Update.
1555 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1556 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1557 disallow_ui_out_field>: New constants.
1558 (enum class field_kind): New.
1559 (struct base_field_s, struct signed_field_s): New.
1560 (signed_field): New function.
1561 (struct string_field_s): New.
1562 (string_field): New function.
1563 (struct styled_string_s): New.
1564 (styled_string): New function.
1565 (class ui_out) <message>: Add comment.
1566 <vmessage, call_do_message>: New methods.
1567 <do_message>: Add style parameter.
1568 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1570 (ui_out::message): Rewrite.
1571 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1573 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1574 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1575 gdb_extensions parameter.
1576 (class format_piece): Add parameter to constructor.
1577 (n_int_args): New field.
1578 * gdbsupport/format.c (format_pieces::format_pieces): Add
1579 gdb_extensions parameter. Handle '*'.
1580 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1581 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1582 vfprintf_styled_no_gdbfmt.
1583 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1584 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1586 * ui-style.h (struct ui_file_style) <ptr>: New method.
1588 2019-10-01 Tom Tromey <tom@tromey.com>
1590 * unittests/format_pieces-selftests.c: Update. Add final format.
1591 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1592 empty literal pieces.
1594 2019-10-01 Tom Tromey <tom@tromey.com>
1596 * ui-out.h (enum class ui_out_style_kind): Remove.
1597 (class ui_out) <field_string, field_stsream, do_field_string>:
1598 Change type of "style".
1599 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1600 (ui_out::field_string): Update.
1601 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1603 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1604 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1605 * stack.c (print_frame_arg, print_frame_info, print_frame):
1607 * source.c (print_source_lines_base): Update.
1608 * solib.c (info_sharedlibrary_command): Update.
1609 * skip.c (info_skip_command): Update.
1610 * record-btrace.c (btrace_call_history_src_line)
1611 (btrace_call_history): Update.
1612 * python/py-framefilter.c (py_print_frame): Update.
1613 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1615 * mi/mi-out.c (mi_ui_out::do_table_header)
1616 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1617 (mi_ui_out::do_field_string): Update.
1618 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1620 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1622 * cli-out.c (cli_ui_out::do_table_header)
1623 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1624 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1625 (cli_ui_out::do_field_fmt): Update.
1626 * breakpoint.c (print_breakpoint_location): Update.
1627 (update_static_tracepoint): Update.
1629 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1631 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1632 conversion of gdb_datadir.
1633 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1634 remove not needed c_str ().
1636 2019-09-30 Ali Tamur <tamur@google.com>
1638 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1639 (dwarf2_string_attr): Likewise.
1641 2019-09-30 Ali Tamur <tamur@google.com>
1643 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1644 (process_full_type_unit): Likewise.
1645 (dump_die_shallow): Likewise.
1646 (cu_debug_loc_section): Likewise.
1648 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1650 * minsyms.c (compare_minimal_symbols): Rename to...
1651 (minimal_symbol_is_less_than): ...this, and adjust to STL
1652 conventions (return bool, take arguments as references)
1653 (minimal_symbol_reader::install): Call std::sort instead
1656 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1658 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1660 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1661 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1663 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1665 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1666 * psympriv.h (add_psymbol_to_list): Move comment here and update
1669 2019-09-29 Tom de Vries <tdevries@suse.de>
1671 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1672 Use $tmpdir/$(basename "$output_file").dwz instead of
1673 "${output_file}.dwz".
1675 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1678 * hppa-linux-nat.c: Include gdbarch.h.
1680 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1682 * blockframe.c (find_pc_partial_function): Change return type to bool.
1683 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1684 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1685 (stub_gnu_ifunc_resolve_name): Likewise.
1686 * symtab.c (compare_filenames_for_search): Likewise.
1687 (compare_glob_filenames_for_search): Likewise.
1688 (matching_obj_sections): Likewise.
1689 (symbol_matches_domain): Likewise.
1690 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1691 (find_line_pc): Change return type to bool.
1692 (find_line_pc_range): Likewise.
1693 (producer_is_realview): Likewise.
1694 * symtab.h (symbol_matches_domain): Likewise.
1695 (find_pc_partial_function): Likewise.
1696 (find_pc_line_pc_range): Likewise.
1697 (in_gnu_ifunc_stub): Likewise.
1698 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1699 (find_line_pc): Likewise.
1700 (find_line_pc_range): Likewise.
1701 (matching_obj_sections): Likewise.
1702 (find_line_symtab): Change out parameter to bool.
1703 (producer_is_realview): Change return type to bool.
1704 (compare_filenames_for_search): Likewise.
1705 (compare_glob_filenames_for_search): Likewise.
1707 2019-09-26 Tom Tromey <tom@tromey.com>
1709 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1710 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1711 * gdb_usleep.h: Remove.
1712 * gdb_usleep.c: Remove.
1713 * utils.c: Don't include gdb_usleep.h.
1715 2019-09-26 Tom Tromey <tromey@adacore.com>
1717 * python/py-type.c (type_to_type_object): Call check_typedef
1720 2019-09-26 Tom Tromey <tom@tromey.com>
1722 * utils.h (initialize_utils): Don't declare.
1723 * top.c (gdb_init): Don't call initialize_utils.
1724 * utils.c (initialize_utils): Remove. Move contents...
1725 (_initialize_utils): ... here.
1727 2019-09-25 Tom Tromey <tom@tromey.com>
1729 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1730 * utils.h (make_hex_string): Don't declare.
1731 * utils.c (make_hex_string): Remove.
1733 2019-09-24 Tom de Vries <tdevries@suse.de>
1736 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1737 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1739 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1741 * NEWS: Mention new simulator port for PRU.
1743 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1745 * ada-exp.y (write_object_remaining): Update.
1746 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1747 and eliminate the static buffer.
1748 (ada_decode_symbol): Update.
1749 (ada_la_decode): Update.
1750 (ada_sniff_from_mangled_name): Update.
1751 (is_valid_name_for_wild_match): Update.
1752 (ada_lookup_name_info::matches): Update and simplify.
1753 (name_matches_regex): Update.
1754 (ada_add_global_exceptions): Update.
1755 * ada-lang.h (ada_decode): Update signature.
1756 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1757 * dwarf-index-write.c (debug_names::insert): Update.
1759 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1761 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1764 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1766 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1767 Change "nonzero" to "true" in documentation.
1769 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1771 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1772 (_initialize_darwin_solib): Don't set
1773 darwin_so_ops.lookup_lib_global_symbol.
1774 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1775 set_gdbarch_iterate_over_objfiles_in_search_order.
1776 (elf_lookup_lib_symbol): Rename to...
1777 (svr4_iterate_over_objfiles_in_search_order): this, and update
1778 to iterate semantics.
1779 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1780 * solib.c (solib_global_lookup): Remove.
1781 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1782 (solib_global_lookup): Remove.
1783 * symtab.c (lookup_global_or_static_symbol): Remove call to
1784 solib_global_lookup.
1786 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1788 * NEWS: Move entries about default MI version now being
1789 version 3, and about the GDB/MI fix for multi-location
1790 breakpoints to the "since GDB 8.3" section.
1792 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1796 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1798 * NEWS: Mention that Cell/B.E. debugging support was removed.
1799 * MAINTAINERS: Remove spu target.
1801 * config/djgpp/fnchange.lst: Remove entries for removed files.
1803 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1804 spu-multiarch.o, and spu-tdep.o.
1805 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1806 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1807 spu-multiarch.c, and spu-tdep.c.
1808 * spu-linux-nat.c: Remove file.
1809 * spu-multiarch.c: Remove file.
1810 * spu-tdep.c: Remove file.
1811 * spu-tdep.h: Remove file.
1812 * solib-spu.c: Remove file.
1813 * solib-spu.h: Remove file.
1815 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1816 * configure.nat (spu-linux): Remove.
1817 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1818 solib-multiarch.o from gdb_target_obs.
1821 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1823 (ppc_linux_no_features): Update.
1824 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1826 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1827 (tdesc_powerpc_cell64l): Likewise.
1828 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1829 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1831 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1832 Do not include "features/rs6000/powerpc-cell32l.c" or
1833 "features/rs6000/powerpc-cell64l.c".
1834 (ppc_linux_spu_section): Remove.
1835 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1836 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1837 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1838 (ppc_linux_spe_context_lookup): Remove.
1839 (ppc_linux_spe_context_inferior_created): Remove.
1840 (ppc_linux_spe_context_solib_loaded): Remove.
1841 (ppc_linux_spe_context_solib_unloaded): Remove.
1842 (ppc_linux_spe_context): Remove.
1843 (struct ppu2spu_cache): Remove.
1844 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1845 (struct ppu2spu_data): Remove.
1846 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1847 ppu2spu_unwind): Remove.
1848 (ppc_linux_init_abi): Remove Cell/B.E. support.
1849 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1851 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1852 (rs6000/powerpc-cell64l-expedite): Likewise
1853 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1854 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1855 rs6000/powerpc-cell64l.xml.
1856 * features/rs6000/powerpc-cell32l.xml: Remove.
1857 * features/rs6000/powerpc-cell64l.xml: Likewise.
1858 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1859 * features/rs6000/powerpc-cell64l.c: Likewise.
1860 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1861 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1862 * regformats/reg-spu.dat: Remove.
1864 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1865 * corelow.c (struct spuid_list): Remove.
1866 (add_to_spuid_list): Remove.
1867 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1868 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1869 (remote_protocol_features): Remove associated entries.
1870 (_initialize_remote): No longer initialize them.
1871 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1872 * linux-nat.c (SPUFS_MAGIC): Remove.
1873 (linux_proc_xfer_spu): Remove.
1874 (spu_enumerate_spu_ids): Remove.
1875 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1876 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1877 (linux_make_corefile_notes): No longer call it.
1879 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1880 (cooked_write_test): Likewise.
1882 2019-09-20 Tom Tromey <tom@tromey.com>
1884 * NEWS: Mention case-sensitivity of TUI commands.
1885 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1886 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1887 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1889 2019-09-20 Tom Tromey <tom@tromey.com>
1891 * tui/tui-source.c (tui_source_window::set_contents): Use
1892 make_unique_xstrdup.
1893 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1894 make_unique_xstrdup.
1896 2019-09-20 Tom Tromey <tom@tromey.com>
1898 * tui/tui-data.c: Remove separator comments.
1899 * tui/tui-layout.c: Remove separator comments.
1900 * tui/tui-win.c: Remove separator comments.
1901 * tui/tui-wingeneral.c: Remove separator comments.
1903 2019-09-20 Tom Tromey <tom@tromey.com>
1905 * tui/tui.h (strcat_to_buf): Don't declare.
1906 * tui/tui.c (strcat_to_buf): Remove.
1908 2019-09-20 Tom Tromey <tom@tromey.com>
1910 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1912 * tui/tui-source.c (tui_source_window::set_contents)
1913 (tui_source_window::location_matches_p)
1914 (tui_source_window::maybe_update): Update.
1916 2019-09-20 Tom Tromey <tom@tromey.com>
1918 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1920 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1922 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1923 (tui_data_window::line_from_reg_element_no)
1924 (tui_data_window::first_reg_element_no_inline)
1925 (tui_data_window::show_registers)
1926 (tui_data_window::show_register_group)
1927 (tui_data_window::display_registers_from)
1928 (tui_data_window::display_registers_from_line)
1929 (tui_data_window::first_data_item_displayed)
1930 (tui_data_window::delete_data_content_windows)
1931 (tui_data_window::erase_data_content)
1932 (tui_data_window::do_scroll_vertical)
1933 (tui_data_window::refresh_window)
1934 (tui_data_window::check_register_values): Update.
1936 2019-09-20 Tom Tromey <tom@tromey.com>
1938 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1939 (struct tui_locator_window) <full_name, proc_name>: Now
1941 * tui/tui-stack.c (tui_locator_window::make_status_line)
1942 (tui_locator_window::set_locator_fullname)
1943 (tui_locator_window::set_locator_info): Update.
1944 * tui/tui-source.c (tui_source_window::set_contents)
1945 (tui_source_window::showing_source_p): Update.
1947 2019-09-20 Tom Tromey <tom@tromey.com>
1949 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1950 Don't call tui_locator_win_info_ptr.
1952 2019-09-20 Tom Tromey <tom@tromey.com>
1954 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1956 2019-09-20 Tom Tromey <tom@tromey.com>
1958 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1960 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1961 * tui/tui-layout.c (show_source_disasm_command, show_data)
1962 (show_source_or_disasm_and_command): Use 1 as height for locator.
1964 2019-09-20 Tom Tromey <tom@tromey.com>
1966 * tui/tui.c (tui_enable): Update.
1967 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1969 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1971 * tui/tui-data.c (win_resized): Now bool.
1972 (tui_win_resized): Return bool.
1973 (tui_set_win_resized_to): Accept a bool.
1975 2019-09-20 Tom Tromey <tom@tromey.com>
1977 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1978 Change type of "refresh_values_only".
1979 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1980 type of "refresh_values_only".
1982 2019-09-20 Tom Tromey <tom@tromey.com>
1984 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1986 (tui_disassemble): Add "pos" parameter.
1987 (tui_disasm_window::set_contents): Simplify.
1989 2019-09-20 Tom Tromey <tom@tromey.com>
1991 * tui/tui-winsource.h (struct tui_source_window_base)
1992 <show_source_content>: Now private.
1993 * tui/tui-winsource.c
1994 (tui_source_window_base::show_source_content): Don't handle empty
1997 2019-09-20 Tom Tromey <tom@tromey.com>
1999 * tui/tui-layout.c (show_source_disasm_command)
2000 (show_source_or_disasm_and_command): Don't call
2001 show_source_content.
2003 2019-09-20 Tom Tromey <tom@tromey.com>
2005 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2007 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2008 from tui_make_status_line.
2009 (tui_locator_window::rerender): Update.
2011 2019-09-20 Tom Tromey <tom@tromey.com>
2013 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2014 (tui_locator_window::rerender): Update.
2016 2019-09-20 Tom Tromey <tom@tromey.com>
2018 * tui/tui-winsource.h (struct tui_source_window_base)
2019 <~tui_source_window_base>: Don't declare.
2021 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2022 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2024 * tui/tui-source.c (tui_source_window::set_contents): Update.
2025 (tui_source_window::location_matches_p)
2026 (tui_source_window::maybe_update): Update.
2028 2019-09-20 Tom Tromey <tom@tromey.com>
2030 * tui/tui-winsource.h (~tui_source_element): Remove.
2031 (tui_source_element): Update.
2032 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2033 * tui/tui-winsource.c (tui_show_source_line): Update.
2034 * tui/tui-source.c (tui_source_window::set_contents): Update.
2035 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2037 2019-09-20 Tom Tromey <tom@tromey.com>
2039 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2041 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2042 tui_clear_source_windows_detail.
2043 * tui/tui-winsource.h (struct tui_source_window_base)
2044 <clear_detail>: Don't declare.
2045 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2047 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2049 2019-09-20 Tom Tromey <tromey@adacore.com>
2052 * block.c (contained_in): Fix final return value.
2054 2019-09-20 Alan Modra <amodra@gmail.com>
2056 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2057 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2058 (read_indirect_string_from_dwz): Use bfd accessor.
2059 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2060 * machoread.c (macho_symfile_read_all_oso): Likewise.
2061 * solib.c (solib_bfd_open): Likewise.
2063 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2065 * eval.c: Move declaration of overload_resolution to...
2068 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2070 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2071 * arm-linux-tdep.c: Likewise.
2072 * arm-nbsd-nat.c: Likewise.
2073 * arm-tdep.h: Declare arm_apcs_32.
2074 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2076 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2078 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2079 * dwarf2read.h: Declare dwarf_always_disassemble.
2081 2019-09-19 Tom de Vries <tdevries@suse.de>
2084 * source-cache.c (source_cache::ensure): Catch exception thrown during
2085 construction of the highlighter.
2087 2019-09-18 Alan Modra <amodra@gmail.com>
2089 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2090 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2091 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2092 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2093 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2094 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2095 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2096 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2097 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2098 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2099 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2100 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2101 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2102 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2103 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2104 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2105 * mi/mi-interp.c: Update throughout for bfd section macro and
2107 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2108 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2110 2019-09-18 Tom Tromey <tom@tromey.com>
2113 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2115 (tui_enable): Do not call rl_initialize.
2117 2019-09-18 Christian Groessler <chris@groessler.org>
2119 * alpha-linux-nat.c: Include gdbarch.h.
2121 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2123 * ui-file.c: Include cli/cli-style.h.
2124 (term_cli_styling): Remove cli_styling declaration.
2126 2019-09-18 Alan Modra <amodra@gmail.com>
2128 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2129 to bfd_asymbol_section.
2131 2019-09-18 Alan Modra <amodra@gmail.com>
2133 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2134 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2135 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2137 2019-09-18 Alan Modra <amodra@gmail.com>
2139 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2140 * spu-linux-nat.c (spu_bfd_open): Likewise.
2142 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2144 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2145 to bool to match definition in dwarf2read.c.
2147 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2149 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2150 (print_signatures): Likewise.
2151 (trust_pad_over_xvs): Likewise.
2152 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2153 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2154 * arm-linux-nat.c (arm_apcs_32): Likewise.
2155 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2156 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2157 * arm-tdep.c (arm_debug): Likewise.
2158 (arm_apcs_32): Likewise.
2159 * auto-load.c (debug_auto_load): Likewise.
2160 (auto_load_gdb_scripts): Likewise.
2161 (global_auto_load): Likewise.
2162 (auto_load_local_gdbinit): Likewise.
2163 (auto_load_local_gdbinit_loaded): Likewise.
2164 * auto-load.h (global_auto_load): Likewise.
2165 (auto_load_local_gdbinit): Likewise.
2166 (auto_load_local_gdbinit_loaded): Likewise.
2167 * breakpoint.c (disconnected_dprintf): Likewise.
2168 (breakpoint_proceeded): Likewise.
2169 (automatic_hardware_breakpoints): Likewise.
2170 (always_inserted_mode): Likewise.
2171 (target_exact_watchpoints): Likewise.
2172 (_initialize_breakpoint): Update.
2173 * breakpoint.h (target_exact_watchpoints): Change to bool.
2174 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2175 * cli/cli-cmds.c (trace_commands): Likewise.
2176 * cli/cli-cmds.h (trace_commands): Likewise.
2177 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2179 * cli/cli-logging.c (logging_overwrite): Change to bool.
2180 (logging_redirect): Likewise.
2181 (debug_redirect): Likewise.
2182 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2183 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2185 <boolean_option_def>: Update.
2186 (struct flag_option_def): Change default type of Context to bool
2188 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2189 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2190 (get_setshow_command_value_string): Likewise.
2191 * cli/cli-style.c (cli_styling): Change to bool.
2192 (source_styling): Likewise.
2193 * cli/cli-style.h (source_styling): Likewise.
2194 (cli_styling): Likewise.
2195 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2197 * command.h (var_types): Update comment.
2198 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2199 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2201 (debug_compile_cplus_scopes): Likewise.
2202 * compile/compile-internal.h (compile_debug): Likewise.
2203 * compile/compile.c (compile_debug): Likewise.
2204 (struct compile_options) <raw>: Likewise.
2205 * cp-support.c (catch_demangler_crashes): Likewise.
2206 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2207 (usr_cmd_cris_dwarf2_cfi): Likewise.
2208 * csky-tdep.c (csky_debug): Likewise.
2209 * darwin-nat.c (enable_mach_exceptions): Likewise.
2210 * dcache.c (dcache_enabled_p): Likewise.
2211 * defs.h (info_verbose): Likewise.
2212 * demangle.c (demangle): Likewise.
2213 (asm_demangle): Likewise.
2214 * dwarf-index-cache.c (debug_index_cache): Likewise.
2215 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2216 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2217 * dwarf2read.c (check_physname): Likewise.
2218 (use_deprecated_index_sections): Likewise.
2219 (dwarf_always_disassemble): Likewise.
2220 * eval.c (overload_resolution): Likewise.
2221 * event-top.c (set_editing_cmd_var): Likewise.
2222 (exec_done_display_p): Likewise.
2223 * event-top.h (set_editing_cmd_var): Likewise.
2224 (exec_done_display_p): Likewise.
2225 * exec.c (write_files): Likewise.
2226 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2227 (debug_fbsd_nat): Likewise.
2228 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2230 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2231 <backtrace_past_entry> Likewise.
2232 * gdb-demangle.h (demangle): Likewise.
2233 (asm_demangle): Likewise.
2234 * gdb_bfd.c (bfd_sharing): Likewise.
2235 * gdbcore.h (write_files): Likewise.
2236 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2237 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2238 * gdbthread.h (print_thread_events): Likewise.
2239 * gdbtypes.c (opaque_type_resolution): Likewise.
2240 (strict_type_checking): Likewise.
2241 * gnu-nat.c (gnu_debug_flag): Likewise.
2242 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2243 * guile/scm-param.c (pascm_variable): Add boolval.
2244 (add_setshow_generic): Update.
2245 (pascm_param_value): Update.
2246 (pascm_set_param_value_x): Update.
2247 * hppa-tdep.c (hppa_debug): Change to bool..
2248 * infcall.c (may_call_functions_p): Likewise.
2249 (coerce_float_to_double_p): Likewise.
2250 (unwind_on_signal_p): Likewise.
2251 (unwind_on_terminating_exception_p): Likewise.
2252 * infcmd.c (startup_with_shell): Likewise.
2253 * inferior.c (print_inferior_events): Likewise.
2254 * inferior.h (startup_with_shell): Likewise.
2255 (print_inferior_events): Likewise.
2256 * infrun.c (step_stop_if_no_debug): Likewise.
2257 (detach_fork): Likewise.
2258 (debug_displaced): Likewise.
2259 (disable_randomization): Likewise.
2260 (non_stop): Likewise.
2261 (non_stop_1): Likewise.
2262 (observer_mode): Likewise.
2263 (observer_mode_1): Likewise.
2264 (set_observer_mode): Update.
2265 (sched_multi): Change to bool.
2266 * infrun.h (debug_displaced): Likewise.
2267 (sched_multi): Likewise.
2268 (step_stop_if_no_debug): Likewise.
2269 (non_stop): Likewise.
2270 (disable_randomization): Likewise.
2271 * linux-tdep.c (use_coredump_filter): Likewise.
2272 (dump_excluded_mappings): Likewise.
2273 * linux-thread-db.c (auto_load_thread_db): Likewise.
2274 (check_thread_db_on_load): Likewise.
2275 * main.c (captured_main_1): Update.
2276 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
2277 xx2_opt, boolean_opt>: Change to bool.
2278 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
2279 * maint.c (maintenance_profile_p): Likewise.
2280 (per_command_time): Likewise.
2281 (per_command_space): Likewise.
2282 (per_command_symtab): Likewise.
2283 * memattr.c (inaccessible_by_default): Likewise.
2284 * mi/mi-main.c (mi_async): Likewise.
2285 (mi_async_1): Likewise.
2286 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
2287 * nat/fork-inferior.h (startup_with_shell): Likewise.
2288 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
2289 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
2290 * nios2-tdep.c (nios2_debug): Likewise.
2291 * or1k-tdep.c (or1k_debug): Likewise.
2292 * parse.c (parser_debug): Likewise.
2293 * parser-defs.h (parser_debug): Likewise.
2294 * printcmd.c (print_symbol_filename): Likewise.
2295 * proc-api.c (procfs_trace): Likewise.
2296 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
2297 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
2298 (set_parameter_value): Update.
2299 (add_setshow_generic): Update.
2300 * python/py-value.c (copy_py_bool_obj): Change argument from int*
2302 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
2304 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
2305 * record-btrace.c (record_btrace_target::store_registers): Update.
2306 * record-full.c (record_full_memory_query): Change to bool.
2307 (record_full_stop_at_limit): Likewise.
2308 * record-full.h (record_full_memory_query): Likewise.
2309 * remote-notif.c (notif_debug): Likewise.
2310 * remote-notif.h (notif_debug): Likewise.
2311 * remote.c (use_range_stepping): Likewise.
2312 (interrupt_on_connect): Likewise.
2313 (remote_break): Likewise.
2314 * ser-tcp.c (tcp_auto_retry): Likewise.
2315 * ser-unix.c (serial_hwflow): Likewise.
2316 * skip.c (debug_skip): Likewise.
2317 * solib-aix.c (solib_aix_debug): Likewise.
2318 * spu-tdep.c (spu_stop_on_load_p): Likewise.
2319 (spu_auto_flush_cache_p): Likewise.
2320 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
2322 (struct info_print_options) <quiet>: Likewise.
2323 * symfile-debug.c (debug_symfile): Likewise.
2324 * symfile.c (auto_solib_add): Likewise.
2325 (separate_debug_file_debug): Likewise.
2326 * symfile.h (auto_solib_add): Likewise.
2327 (separate_debug_file_debug): Likewise.
2328 * symtab.c (basenames_may_differ): Likewise.
2329 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
2330 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
2331 (struct info_types_options) <quiet>: Likewise.
2332 * symtab.h (demangle): Likewise.
2333 (basenames_may_differ): Likewise.
2334 * target-dcache.c (stack_cache_enabled_1): Likewise.
2335 (code_cache_enabled_1): Likewise.
2336 * target.c (trust_readonly): Likewise.
2337 (may_write_registers): Likewise.
2338 (may_write_memory): Likewise.
2339 (may_insert_breakpoints): Likewise.
2340 (may_insert_tracepoints): Likewise.
2341 (may_insert_fast_tracepoints): Likewise.
2342 (may_stop): Likewise.
2343 (auto_connect_native_target): Likewise.
2344 (target_stop_and_wait): Update.
2345 (target_async_permitted): Change to bool.
2346 (target_async_permitted_1): Likewise.
2347 (may_write_registers_1): Likewise.
2348 (may_write_memory_1): Likewise.
2349 (may_insert_breakpoints_1): Likewise.
2350 (may_insert_tracepoints_1): Likewise.
2351 (may_insert_fast_tracepoints_1): Likewise.
2352 (may_stop_1): Likewise.
2353 * target.h (target_async_permitted): Likewise.
2354 (may_write_registers): Likewise.
2355 (may_write_memory): Likewise.
2356 (may_insert_breakpoints): Likewise.
2357 (may_insert_tracepoints): Likewise.
2358 (may_insert_fast_tracepoints): Likewise.
2359 (may_stop): Likewise.
2360 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2361 (make_thread_apply_all_options_def_group): Change argument from int*
2363 (thread_apply_all_command): Update.
2364 (print_thread_events): Change to bool.
2365 * top.c (confirm): Likewise.
2366 (command_editing_p): Likewise.
2367 (history_expansion_p): Likewise.
2368 (write_history_p): Likewise.
2369 (info_verbose): Likewise.
2370 * top.h (confirm): Likewise.
2371 (history_expansion_p): Likewise.
2372 * tracepoint.c (disconnected_tracing): Likewise.
2373 (circular_trace_buffer): Likewise.
2374 * typeprint.c (print_methods): Likewise.
2375 (print_typedefs): Likewise.
2376 * utils.c (debug_timestamp): Likewise.
2377 (sevenbit_strings): Likewise.
2378 (pagination_enabled): Likewise.
2379 * utils.h (sevenbit_strings): Likewise.
2380 (pagination_enabled): Likewise.
2381 * valops.c (overload_resolution): Likewise.
2382 * valprint.h (struct value_print_options) <prettyformat_arrays,
2383 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2384 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2385 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2387 * windows-nat.c (new_console): Likewise.
2388 (cygwin_exceptions): Likewise.
2389 (new_group): Likewise.
2390 (debug_exec): Likewise.
2391 (debug_events): Likewise.
2392 (debug_memory): Likewise.
2393 (debug_exceptions): Likewise.
2394 (useshell): Likewise.
2395 * windows-tdep.c (maint_display_all_tib): Likewise.
2396 * xml-support.c (debug_xml): Likewise.
2398 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2400 * source.c (prepare_path_for_appending): New function.
2401 (openp): Make use of new function.
2402 (find_and_open_source): Search for the compilation directory and
2403 source file as a relative path beneath the directory search path.
2405 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2407 * source-cache.c (source_cache::get_line_charpos): Catch
2408 exceptions and return false, this matches the behaviour documented
2411 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2413 * ada-tasks.c (info_task): Remove quoting of the task's name.
2415 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2417 * symfile.c (auto_solib_add): Replace comment with a reference
2420 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2422 * NEWS: Mention that gdb can now be compiled with Python 3
2425 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2427 * maint.c (maint_print_section_data::maint_print_section_data):
2428 Force use of 'float log10 (float)' by casting the argument to
2431 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2433 * maint.c: Add 'cmath' include.
2434 (struct maint_print_section_data): New structure.
2435 (print_section_index): New function.
2436 (print_bfd_section_info): Add header comment, small whitespace
2437 cleanup, and update to call new print_section_index function.
2438 (print_objfile_section_info): Likewise.
2439 (maint_obj_section_from_bfd_section): New function.
2440 (print_bfd_section_info_maybe_relocated): New function.
2441 (maintenance_info_sections): Add header comment, always use
2442 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2444 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2446 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2447 inner scope, add check that the objfile has psymtabs before
2448 checking psymtabs_addrmap.
2449 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2451 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2453 * NEWS: Announce that Ada task names are now shown at more places,
2454 and between quotes (except in info task output).
2455 * gdb/ada-tasks.c (task_to_str): New function.
2456 (display_current_task_id): Call task_to_str.
2457 (task_command_1): Likewise.
2458 (print_ada_task_info): In non-mi mode, Properly align headers and data
2459 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2461 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2463 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2464 prstatus.pr_lwp.pr_info instead of making it up.
2466 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2468 * auto-load.c (auto_load_expand_dir_vars): Update.
2469 * defs.h (gdb_datadir): Change to std::string.
2470 (python_libdir): Likewise.
2471 (relocate_gdb_directory): Change return type to std::string.
2472 * guile/guile.c (gdbscm_data_directory): Update.
2473 (initialize_scheme_side): Update.
2474 * jit.c (jit_reader_dir): Change to std::string.
2475 (jit_reader_load_command): Update.
2476 * main.c (gdb_datadir): Change to std::string.
2477 (python_libdir): Likewise.
2478 (set_gdb_data_directory): Update.
2479 (relocate_path): Change to return std::string.
2480 (relocate_gdb_directory): Change to return std::string.
2481 (relocate_gdbinit_path_maybe_in_datadir): Update.
2482 (captured_main_1): Update.
2483 * python/python.c (do_start_initialization): Update.
2484 * top.c (show_gdb_datadir): Update.
2485 * xml-syscall.c (xml_init_syscalls_info): Update.
2486 (init_syscalls_info): Update.
2488 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2490 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2491 out of get_init_files.
2492 (get_init_files): Update.
2494 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2496 * main.c (get_init_files): Change to use std::string.
2497 (captured_main_1): Update.
2498 (print_gdb_help): Update.
2500 2019-09-11 Ali Tamur <tamur@google.com>
2502 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2505 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2507 * dbxread.c (read_dbx_symtab): Update.
2508 * dwarf2read.c (load_partial_dies): Update.
2509 * mdebugread.c (parse_partial_symbols): Update.
2510 (handle_psymbol_enumerators): Update.
2511 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2512 * psymtab.c (add_psymbol_to_bcache): Likewise.
2513 (add_psymbol_to_list): Likewise.
2514 * symtab.c (symbol_set_names): Likewise.
2515 * symtab.h (symbol_set_names): Likewise.
2516 * xcoffread.c (scan_xcoff_symtab): Update.
2518 2019-09-11 Tom Tromey <tom@tromey.com>
2520 * symfile-mem.c (symbol_file_add_from_memory): Use
2522 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2523 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2525 2019-09-10 Tom Tromey <tromey@adacore.com>
2527 * dwarf-index-write.c (write_psymbols): Extend error message.
2528 (debug_names::insert): Add Ada code.
2529 (debug_names::write_psymbols): Remove Ada check.
2530 (debug_names) <m_string_obstack>: New member.
2531 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2532 (gdb_index_symbol_name_matcher::matches): Remove.
2533 (mapped_index_base::find_name_components_bounds): Add "lang"
2535 (mapped_index_base::build_name_components): Also split names
2536 according to Ada syntax.
2537 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2538 type of "match_callback".
2539 (check_match, check_find_bounds_finds)
2540 (dw2_expand_symtabs_matching): Update.
2541 (dw2_debug_names_iterator): Add new constructor.
2542 (dw2_debug_names_map_matching_symbols): New function.
2543 (dw2_debug_names_expand_symtabs_matching): Update.
2544 (dwarf2_debug_names_functions): Use
2545 dw2_debug_names_map_matching_symbols.
2547 2019-09-10 Tom Tromey <tromey@adacore.com>
2549 * dwarf2read.c (dw2_get_file_names_reader): Add the
2550 CU's file name to the results.
2552 2019-09-10 Tom Tromey <tromey@adacore.com>
2554 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2555 map_matching_symbols. Update.
2556 * dwarf2read.c (dw2_map_matching_symbols): Update.
2557 * psymtab.c (match_partial_symbol): Change type; update.
2558 (psym_map_matching_symbols): Likewise.
2559 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2561 * symfile.h (struct quick_symbol_functions)
2562 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2565 2019-09-10 Tom Tromey <tromey@adacore.com>
2567 * psymtab.c (map_block): Remove.
2568 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2569 * symtab.c (iterate_over_symbols_terminated): New function.
2570 * symtab.c (iterate_over_symbols_terminated): Declare.
2572 2019-09-10 Tom Tromey <tromey@adacore.com>
2574 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2575 * language.h (struct language_defn) <la_iterate_over_symbols>:
2577 * symtab.c (iterate_over_symbols): Return bool.
2578 * symtab.h (iterate_over_symbols): Return bool.
2580 2019-09-10 Tom Tromey <tromey@adacore.com>
2582 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2583 (add_nonlocal_symbols): Update.
2584 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2585 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2586 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2587 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2588 Change type of "callback". Remove "data".
2591 2019-09-09 Ali Tamur <tamur@google.com>
2593 * dwarf2read.c (comp_unit_head): Update comment.
2594 (dwarf2_dwo_name): New function declaration.
2595 (dwarf_unit_type_name): New function declaration.
2596 (read_comp_unit_head): Add support for new compilation units,
2597 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2598 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2599 (currently named as "signature") in their header. Also clarify error
2601 (lookup_dwo_id): New function. Returns the dwo id of the given
2603 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2604 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2606 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2607 (dwarf2_dwo_name): Get the dwo name if present.
2608 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2611 2019-09-09 Tom Tromey <tom@tromey.com>
2613 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2615 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2617 * python/python.c (do_start_initialization): Make progname_copy static,
2618 to avoid a leak report.
2620 2019-09-08 Tom Tromey <tom@tromey.com>
2622 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2624 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2626 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2627 Change type to gdb::optional<block_enum>.
2628 (dw2_symtab_iter_init): Change block_index parameter type
2629 to gdb::optional<block_enum>.
2630 (dw2_lookup_symbol): Change block_index parameter
2631 type to block_enum.c
2632 (dw2_debug_names_lookup_symbol): Likewise.
2633 * psymtab.c (psym_lookup_symbol): Likewise.
2634 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2635 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2638 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2640 * defs.h (relocate_gdb_directory): Change int to bool in
2641 signature and rename flag to relocatable.
2642 * main.c (relocate_path): Likewise.
2643 (relocate_gdb_directory): Likewise.
2645 2019-09-06 Alan Modra <amodra@gmail.com>
2647 * coffread.c (coff_symfile_read): Constify filename variable.
2648 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2649 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2650 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2651 * solib.c (reload_shared_libraries_1): Likewise.
2652 * symfile.c (reread_symbols): Likewise.
2653 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2654 * solib-darwin.c (darwin_bfd_open): Likewise.
2655 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2657 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2659 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2660 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2662 2019-09-03 Tom Tromey <tromey@adacore.com>
2664 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2666 (has_negatives): Unbias a range type bound.
2667 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2668 * gdbtypes.c (operator==): Handle new field.
2669 (create_range_type): Add "bias" parameter.
2670 (create_static_range_type, resolve_dynamic_range): Update.
2671 * gdbtypes.h (struct range_bounds) <bias>: New member.
2672 (create_range_type): Add bias parameter.
2673 * printcmd.c (print_scalar_formatted): Unbias range types.
2674 * value.c (unpack_long): Unbias range types.
2675 (pack_long): Bias range types.
2677 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2679 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2682 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2684 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2685 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2686 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2687 (compile_probe_arg): Likewise.
2688 * probe.h (get_argument_count): Likewise.
2689 * solib-svr4.c (solib_event_probe_action): Likewise.
2690 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2692 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2694 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2696 (svr4_create_solib_event_breakpoints): ...from here.
2698 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2700 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2701 suffix from warning message.
2703 2019-08-30 Tom Tromey <tom@tromey.com>
2705 * tui/tui-winsource.h (struct tui_source_window_base)
2706 <refresh_all>: Don't declare.
2707 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2709 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2710 tui_show_locator_content.
2711 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2713 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2714 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2717 2019-08-30 Tom Tromey <tom@tromey.com>
2719 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2721 2019-08-30 Tom Tromey <tom@tromey.com>
2723 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2724 Remove unnecessary forward declarations.
2726 2019-08-30 Tom Tromey <tom@tromey.com>
2728 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2730 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2731 tui_show_locator_content.
2733 2019-08-30 Tom Tromey <tom@tromey.com>
2735 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2736 (tui_locator_window::rerender): Rewrite using body of previous
2737 tui_show_locator_content.
2739 2019-08-30 Tom Tromey <tom@tromey.com>
2741 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2742 set_locator_fullname>: New methods.
2743 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2744 Rename from tui_set_locator_fullname.
2745 (tui_locator_window::set_locator_info): Rename from
2746 tui_set_locator_info. Return bool.
2747 (tui_update_locator_fullname, tui_show_frame_info): Update.
2749 2019-08-30 Tom Tromey <tom@tromey.com>
2751 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2753 2019-08-30 Tom Tromey <tom@tromey.com>
2755 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2758 2019-08-30 Tom Tromey <tom@tromey.com>
2760 * tui/tui-wingeneral.c (box_win): Assume win_info and
2761 win_info->handle cannot be NULL.
2763 2019-08-30 Tom Tromey <tom@tromey.com>
2765 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2766 refresh_window>: Declare.
2767 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2769 (tui_data_item_window::rerender): Rename from
2770 tui_display_register.
2771 (tui_data_item_window::refresh_window): New method.
2772 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2775 2019-08-30 Tom Tromey <tom@tromey.com>
2777 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2778 regs_column_count, current_group>: Move later. Now private.
2779 <get_current_group>: New method.
2780 * tui/tui-regs.c (tui_reg_command): Update.
2781 * tui/tui-layout.c (tui_set_layout): Update.
2783 2019-08-30 Tom Tromey <tom@tromey.com>
2785 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2786 (tui_data_window::rerender): Don't call
2787 check_and_display_highlight_if_needed.
2788 (tui_data_window::refresh_all): Remove call to
2791 2019-08-30 Tom Tromey <tom@tromey.com>
2793 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2794 (tui_data_window::display_registers_from)
2795 (tui_data_window::display_reg_element_at_line)
2796 (tui_data_window::display_registers_from_line): Remove checks of
2799 2019-08-30 Tom Tromey <tom@tromey.com>
2801 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2803 * tui/tui-regs.c (tui_data_window::show_registers): Call
2805 (tui_data_window::rerender): Rename from display_all_data.
2806 (tui_data_window::rerender): Remove old implementation.
2808 2019-08-30 Tom Tromey <tom@tromey.com>
2810 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2812 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2814 2019-08-29 Bernhard Wodok <barto@gmx.net>
2815 Sergio Durigan Junior <sergiodj@redhat.com>
2818 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2820 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2822 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2823 when searching for types.
2825 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2827 * f-lang.c (f_language_defn): Use f_print_typedef.
2828 * f-lang.h (f_print_typedef): Declare.
2829 * f-typeprint.c (f_print_typedef): Define.
2831 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2833 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2835 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2837 * cli/cli-utils.c (info_print_options_defs): Delete.
2838 (make_info_print_options_def_group): Delete.
2839 (extract_info_print_options): Delete.
2840 (info_print_command_completer): Delete.
2841 (info_print_args_help): Add extra parameter, and optionally
2842 include text about -n flag.
2843 * cli/cli-utils.h (struct info_print_options): Delete.
2844 (extract_info_print_options): Delete declaration.
2845 (info_print_command_completer): Delete declaration.
2846 (info_print_args_help): Add extra parameter, extend header
2848 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2850 * stack.c (struct info_print_options): New type.
2851 (info_print_options_defs): New file scoped variable.
2852 (make_info_print_options_def_group): New static function.
2853 (info_print_command_completer): New static function.
2854 (info_locals_command): Update to use new local functions.
2855 (info_args_command): Likewise.
2856 (_initialize_stack): Add extra parameter to calls to
2857 info_print_args_help.
2858 * symtab.c (search_symbols): Add extra parameter, use this to
2859 possibly excluse non-debug symbols.
2860 (symtab_symbol_info): Add extra parameter, which is passed on to
2862 (struct info_print_options): New type.
2863 (info_print_options_defs): New file scoped variable.
2864 (make_info_print_options_def_group): New static function.
2865 (info_print_command_completer): New static function.
2866 (info_variables_command): Update to use local functions, and pass
2867 extra parameter through to symtab_symbol_info.
2868 (info_functions_command): Likewise.
2869 (info_types_command): Pass additional argument through to
2871 (rbreak_command): Pass extra argument to search_symbols.
2872 (_initialize_symtab): Add extra arguments for calls to
2873 info_print_args_help, and update help text for 'info variables',
2874 'whereis', and 'info functions' commands.
2875 * symtab.h (search_symbols): Add extra argument to declaration.
2876 * NEWS: Mention new flags.
2878 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2880 * symtab.c (lookup_static_symbol): Call the new function (and move
2881 it down to be next to lookup_global_symbol).
2882 (struct global_sym_lookup_data): Add block_enum member and rename to...
2883 (struct global_or_static_sym_lookup_data): ...this.
2884 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2885 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2886 (lookup_symbol_global_or_static_iterator_cb): ...this.
2887 (lookup_global_or_static_symbol): New function.
2888 (lookup_global_symbol): Call new function.
2890 2019-08-26 Tom de Vries <tdevries@suse.de>
2893 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2894 when pc_probe.prob == NULL.
2896 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2898 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2899 variable symbol_linkage to symbol_linkage_.
2901 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2903 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2904 represent whether the symbol is static, dynamic, or we don't
2907 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2909 * gdb/rx-tdep.c (rx_register_names): New.
2910 (rx_register_name): Delete.
2911 (rx_psw_type): Delete.
2912 (rx_fpsw_type): Delete.
2913 (rx_register_type): Delete.
2914 (rx_gdbarch_init): Convert target-descriptions.
2915 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2916 * gdb/features/Makefile: Add rx.xml.
2917 * gdb/features/rx.xml: New.
2918 * gdb/features/rx.c: Generated.
2919 * gdb/NEWS: Mention target description support.
2921 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2923 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2926 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2928 * configure.ac: Don't check for 'dlfcn.h' (moved to
2929 gdbsupport/common.m4).
2930 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2932 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2933 * compile/compile-c-support.c: Include
2934 'gdbsupport/gdb-dlfcn.h'.
2935 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2936 * gdb-dlfcn.c: Move to...
2937 * gdbsupport/gdb-dlfcn.c: ... here.
2938 * gdb-dlfcn.h: Move to...
2939 * gdbsupport/gdb-dlfcn.h: ... here.
2941 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2943 * nios2-tdep.c (struct reg_value): Improve comments. Make
2944 the offset field signed.
2946 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2948 * python/lib/gdb/__init__.py (_execute_file): New function.
2949 * python/python.c (python_run_simple_file): Call gdb._execute_file
2952 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2954 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2955 all uses as this was never set to anything but a zero value.
2957 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2959 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2961 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2963 * tui/tui-data.h (tui_gen_win_info): Add an =default
2964 move constructor, required by some GCC versions.
2966 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2968 * go32-nat.c (go32_sysinfo): Add hygon_p.
2970 2019-08-20 Tom Tromey <tom@tromey.com>
2972 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2973 line_from_reg_element_no, first_reg_element_no_inline,
2974 display_all_data, delete_data_content_windows,
2975 erase_data_content>: Now private.
2977 2019-08-20 Tom Tromey <tom@tromey.com>
2979 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2980 (tui_unhighlight_win, tui_highlight_win)
2981 (tui_win_info::make_window): Update.
2982 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2984 2019-08-20 Tom Tromey <tom@tromey.com>
2986 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2987 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2988 (MAX_PID_WIDTH): Move to tui-stack.c.
2989 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2990 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2991 (MAX_PID_WIDTH): Move from tui-data.h.
2993 2019-08-20 Tom Tromey <tom@tromey.com>
2995 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2996 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2998 (tui_gen_win_info::make_window): Rename from tui_make_window.
2999 (tui_win_info::make_window): New method.
3000 (tui_gen_win_info::make_visible): Update.
3001 * tui/tui-source.c (tui_source_window::set_contents): Update.
3002 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3003 (tui_data_window::display_registers_from): Update.
3004 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3005 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3009 (struct tui_win_info) <make_window>: Declare.
3010 <can_box>: Now virtual.
3011 <title>: New member.
3012 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3013 * tui/tui-command.c (tui_cmd_window::resize): Update.
3015 2019-08-20 Tom Tromey <tom@tromey.com>
3017 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3018 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3019 (tui_data_window::check_register_values): Update.
3021 2019-08-20 Tom Tromey <tom@tromey.com>
3023 * tui/tui-regs.h (struct tui_data_window): Use
3024 DISABLE_COPY_AND_ASSIGN.
3025 <regs_content>: Change type, removing unique_ptr.
3026 <tui_data_window>: Add move constructor.
3027 * tui/tui-regs.c (tui_data_window::show_registers)
3028 (tui_data_window::show_register_group)
3029 (tui_data_window::display_registers_from)
3030 (tui_data_window::display_registers_from)
3031 (tui_data_window::first_data_item_displayed)
3032 (tui_data_window::delete_data_content_windows)
3033 (tui_data_window::rerender, tui_data_window::refresh_window)
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) <show_registers,
3039 show_register_group>: Declare.
3040 (tui_show_register_group): Don't declare.
3041 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3043 (tui_data_window::show_register_group): Rename from
3044 tui_show_register_group.
3045 (tui_data_window::check_register_values, tui_reg_command):
3047 * tui/tui-layout.c (tui_set_layout): Update.
3049 2019-08-20 Tom Tromey <tom@tromey.com>
3051 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3053 (tui_check_register_values): Don't declare.
3054 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3055 from tui_check_register_values.
3056 * tui/tui-hooks.c (tui_register_changed): Update.
3058 2019-08-20 Tom Tromey <tom@tromey.com>
3060 * tui/tui-regs.c (tui_reg_layout): Move later.
3061 (tui_show_registers): Don't enable TUI mode or change layout.
3063 2019-08-20 Tom Tromey <tom@tromey.com>
3065 * tui/tui-regs.h (struct tui_data_item_window)
3066 <~tui_data_item_window>: Remove.
3067 <content>: Now a unique_xmalloc_ptr.
3068 * tui/tui-regs.c (tui_register_format): Return a
3070 (tui_get_register): Update.
3071 (~tui_data_item_window): Remove.
3072 (tui_data_window::display_registers_from, tui_display_register):
3074 * tui/tui-io.h (tui_expand_tabs): Update.
3075 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3076 Remove "col" parameter.
3078 2019-08-20 Tom Tromey <tom@tromey.com>
3080 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3082 * tui/tui-regs.c (~tui_data_item_window): Update.
3084 2019-08-20 Tom Tromey <tom@tromey.com>
3086 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3089 2019-08-20 Tom Tromey <tom@tromey.com>
3091 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3093 2019-08-20 Tom Tromey <tom@tromey.com>
3095 * tui/tui-source.h (struct tui_source_window): Update.
3096 * tui/tui-regs.c (tui_show_registers): Update.
3097 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3098 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3099 (NO_REGS_STRING): Remove defines.
3101 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3103 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3104 unnecessary thread walk if remote doesn't support the packet.
3106 2019-08-19 Tom Tromey <tromey@adacore.com>
3108 * python/py-value.c (value_has_field): Fix indentation.
3110 2019-08-19 Tom Tromey <tromey@adacore.com>
3112 * printcmd.c (do_one_display, info_display_command): Update.
3113 * block.h (contained_in): Return bool. Add allow_nested
3115 * block.c (contained_in): Return bool. Add allow_nested
3118 2019-08-19 Tom Tromey <tom@tromey.com>
3120 * configure: Rebuild.
3121 * configure.ac: Disallow the combination of -static-libstdc++ and
3123 * source-cache.c (get_language_name): Handle rust.
3124 (source_cache::get_source_lines): Ignore highlighting exceptions.
3126 2019-08-16 Tom Tromey <tom@tromey.com>
3128 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3129 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3130 (struct tui_source_window_base) <make_visible, refresh_window,
3131 resize>: Remove methods.
3132 <execution_info>: Remove field.
3133 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3134 (tui_show_source_line, tui_source_window_base)
3135 (~tui_source_window_base): Update.
3136 (tui_source_window_base::resize)
3137 (tui_source_window_base::make_visible)
3138 (tui_source_window_base::refresh_window): Remove.
3139 (tui_source_window_base::update_exec_info): Update.
3140 * tui/tui-source.c (tui_source_window::set_contents): Update.
3141 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3143 2019-08-16 Tom Tromey <tom@tromey.com>
3145 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3146 deprecated_query_hook.
3148 2019-08-16 Tom Tromey <tom@tromey.com>
3150 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3151 (tui_update_source_windows_with_line): Update.
3152 * tui/tui-source.h (struct tui_source_window)
3153 <show_symtab_source>: Declare.
3154 (tui_show_symtab_source): Don't declare.
3155 * tui/tui-source.c (tui_show_symtab_source): Rename from
3156 tui_show_symtab_source.
3158 2019-08-16 Tom Tromey <tom@tromey.com>
3160 * tui/tui-winsource.h (struct tui_source_window_base)
3161 <set_contents>: Declare.
3162 * tui/tui-winsource.c
3163 (tui_source_window_base::update_source_window_as_is): Update.
3164 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3166 (tui_set_source_content): Don't declare.
3167 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3168 tui_set_source_content.
3169 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3171 (tui_set_disassem_content): Don't declare.
3172 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3173 tui_set_disassem_content.
3175 2019-08-16 Tom Tromey <tom@tromey.com>
3177 * tui/tui-winsource.h (struct tui_source_window_base)
3178 <update_breakpoint_info>: Declare.
3179 (tui_update_breakpoint_info): Don't declare.
3180 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3181 (tui_update_all_breakpoint_info): Update.
3182 (tui_source_window_base::update_breakpoint_info): Rename from
3183 tui_update_breakpoint_info.
3184 (tui_source_window_base::update_exec_info): Update.
3186 2019-08-16 Tom Tromey <tom@tromey.com>
3188 * tui/tui-winsource.h (struct tui_source_window_base)
3189 <update_source_window>: Declare.
3190 (tui_update_source_window): Don't declare.
3191 * tui/tui-winsource.c
3192 (tui_source_window_base::update_source_window): Rename from
3193 tui_update_source_window.
3194 (tui_source_window_base::rerender): Update.
3195 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3196 * tui/tui-disasm.c (tui_show_disassem)
3197 (tui_show_disassem_and_update_source)
3198 (tui_disasm_window::maybe_update): Update.
3200 2019-08-16 Tom Tromey <tom@tromey.com>
3202 * tui/tui-winsource.h (struct tui_source_window_base)
3203 <update_source_window_as_is>: Declare.
3204 (tui_update_source_window_as_is): Don't declare.
3205 * tui/tui-winsource.c (tui_update_source_window): Update
3206 (tui_source_window_base::update_source_window_as_is): Rename from
3207 tui_update_source_window_as_is.
3208 (tui_source_window_base::refill): Update.
3209 * tui/tui-source.c (tui_show_symtab_source): Update.
3210 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3213 2019-08-16 Tom Tromey <tom@tromey.com>
3215 * tui/tui-winsource.h (tui_update_source_window)
3216 (tui_update_source_window_as_is): Remove "noerror" parameter.
3217 * tui/tui-winsource.c (tui_update_source_window)
3218 (tui_update_source_window_as_is): Remove "noerror" parameter.
3219 (tui_update_source_windows_with_addr)
3220 (tui_update_source_windows_with_line)
3221 (tui_source_window_base::rerender)
3222 (tui_source_window_base::refill): Update.
3223 * tui/tui-source.h (tui_set_source_content)
3224 (tui_show_symtab_source): Remove "noerror" parameter.
3225 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3227 (tui_show_symtab_source): Likewise.
3228 (tui_source_window::maybe_update): Update.
3229 * tui/tui-disasm.c (tui_show_disassem)
3230 (tui_show_disassem_and_update_source)
3231 (tui_disasm_window::do_scroll_vertical)
3232 (tui_disasm_window::maybe_update): Update.
3234 2019-08-16 Tom Tromey <tom@tromey.com>
3236 * tui/tui.c (tui_is_window_visible): Update.
3237 * tui/tui-wingeneral.c (tui_make_window)
3238 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3239 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3240 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3241 (tui_set_win_height_command, parse_scrolling_args): Update.
3242 * tui/tui-source.c (tui_source_window::style_changed): Update.
3243 * tui/tui-regs.c (tui_show_registers)
3244 (tui_data_window::first_data_item_displayed)
3245 (tui_data_window::delete_data_content_windows)
3246 (tui_check_register_values, tui_reg_command): Update.
3247 * tui/tui-disasm.c (tui_show_disassem): Update.
3248 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3250 <is_visible>: Remove field.
3251 * tui/tui-data.c (tui_next_win, tui_prev_win)
3252 (tui_delete_invisible_windows): Update.
3254 2019-08-16 Tom Tromey <tom@tromey.com>
3256 * tui/tui-winsource.h (struct tui_source_window_base)
3257 <m_has_locator>: Remove.
3258 * tui/tui-layout.c (show_source_disasm_command, show_data)
3259 (show_source_or_disasm_and_command): Update.
3261 2019-08-16 Alan Hayward <alan.hayward@arm.com>
3263 * NEWS (Other MI changes): New subsection.
3264 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
3265 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
3266 * arch-utils.c (default_get_pc_address_flags): New function.
3267 * arch-utils.h (default_get_pc_address_flags): New declaration.
3268 * gdbarch.sh: Add get_pc_address_flags.
3269 * gdbarch.c: Regenerate.
3270 * gdbarch.h: Likewise.
3271 * stack.c (print_pc): New function.
3272 (print_frame_info) (print_frame): Call print_pc.
3274 2019-08-16 Tom de Vries <tdevries@suse.de>
3276 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
3277 print_objfile_section_info.
3279 2019-08-15 Tom Tromey <tom@tromey.com>
3281 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
3282 calling update_cmdwin_start_line.
3283 * tui/tui-winsource.h (struct tui_source_window_base)
3284 <do_make_visible_with_new_height, set_new_height>: Don't declare.
3285 <rerender>: Declare.
3286 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
3288 (tui_source_window_base::set_new_height): Remove.
3289 (tui_source_window_base::rerender): Rename from
3290 do_make_visible_with_new_height.
3291 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
3293 (tui_win_info::make_invisible_and_set_new_height)
3294 (tui_win_info::make_visible_with_new_height): Remove.
3295 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
3297 * tui/tui-stack.c (tui_locator_window::rerender): New method.
3298 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
3299 do_make_visible_with_new_height>: Don't declare.
3300 <rerender>: Declare.
3301 * tui/tui-regs.c (tui_data_window::rerender): Rename from
3303 (tui_data_window::do_make_visible_with_new_height): Remove.
3304 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
3305 call tui_show_locator_content.
3306 (tui_gen_win_info::resize): Call rerender.
3307 (show_source_or_disasm_and_command): Don't call
3308 tui_show_locator_content.
3309 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
3311 (struct tui_win_info) <rerender>: Declare.
3312 <set_new_height, make_invisible_and_set_new_height,
3313 make_visible_with_new_height>: Don't declare.
3314 * tui/tui-data.c (tui_win_list::rerender): New method.
3315 * tui/tui-command.h (struct tui_cmd_window)
3316 <do_make_visible_with_new_height>: Don't declare.
3318 (tui_cmd_window::do_make_visible_with_new_height): Remove.
3320 2019-08-15 Tom Tromey <tromey@adacore.com>
3322 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
3323 * ada-lang.c (ada_enum_name): Likewise.
3325 2019-08-15 Christian Biesinger <cbiesinger@google.com>
3327 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
3329 (GdbOutputErrorFile): Likewise.
3330 (global scope): Adjust constructor calls to GdbOutput{,Error}File
3332 (execute_unwinders): Rename to have a leading underscore.
3333 (auto_load_packages): Likewise.
3334 (global scope): Adjust call to auto_load_packages accordingly.
3335 (GdbSetPythonDirectory): Likewise.
3336 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
3337 instead of execute_unwinders.
3339 2019-08-15 Tom Tromey <tom@tromey.com>
3341 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3342 (show_data): Don't change window visibility.
3343 (tui_gen_win_info::resize): Remove special case for command
3344 window. Use wresize, when available.
3345 (show_source_or_disasm_and_command): Don't change window
3347 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3348 <make_visible>: New method.
3349 * tui/tui-command.c (tui_cmd_window::resize): New method.
3351 2019-08-15 Tom Tromey <tom@tromey.com>
3353 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3354 (struct tui_source_windows): New.
3355 * tui/tui-winsource.c (tui_display_main): Update.
3356 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3357 (new_height_ok, parse_scrolling_args): Update.
3358 * tui/tui-layout.c (show_layout, show_data): Update.
3359 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3360 (tui_add_to_source_windows): Don't declare.
3361 * tui/tui-data.c (source_windows, tui_source_windows)
3362 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3364 2019-08-15 Tom Tromey <tom@tromey.com>
3366 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3368 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3369 * tui/tui-layout.c (show_source_disasm_command, show_data):
3371 (tui_gen_win_info::resize): Rename.
3372 (show_source_or_disasm_and_command): Update.
3373 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3376 2019-08-15 Tom Tromey <tom@tromey.com>
3378 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3379 * tui/tui-interp.c (tui_interp::init): Don't call
3380 tui_initialize_static_data.
3381 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3383 2019-08-15 Tom Tromey <tom@tromey.com>
3385 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3386 examine tui_win_list.
3388 2019-08-15 Tom Tromey <tom@tromey.com>
3390 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3391 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3392 tui_clear_source_content.
3393 (tui_clear_source_content): Remove.
3394 (tui_source_window_base::do_erase_source_content): Hoist call to
3396 * tui/tui-stack.c (tui_show_frame_info): Don't call
3397 tui_clear_source_content.
3399 2019-08-15 Tom Tromey <tom@tromey.com>
3401 * tui/tui-winsource.h (struct tui_source_window_base)
3402 <do_erase_source_content>: New method.
3403 <erase_source_content>: New method.
3404 (tui_erase_source_content): Don't declare.
3405 * tui/tui-winsource.c (tui_clear_source_content): Update.
3406 (tui_source_window_base::do_erase_source_content): Rename from
3407 tui_erase_source_content.
3408 (tui_source_window_base::show_source_content): Update.
3409 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3410 * tui/tui-source.h (struct tui_source_window)
3411 <erase_source_content>: New method.
3412 * tui/tui-disasm.h (struct tui_disasm_window)
3413 <erase_source_content>: New method.
3415 2019-08-15 Tom Tromey <tom@tromey.com>
3417 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3418 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3420 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3421 * tui/tui-source.c (tui_set_source_content): Update.
3422 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3424 2019-08-15 Tom Tromey <tom@tromey.com>
3426 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3427 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3429 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3431 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3433 (tui_source_window::maybe_update): Update.
3435 2019-08-15 Tom Tromey <tom@tromey.com>
3437 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3438 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3440 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3442 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3444 (tui_disasm_window::maybe_update): Update.
3446 2019-08-15 Tom Tromey <tom@tromey.com>
3448 * tui/tui-winsource.h (struct tui_source_window_base)
3449 <maybe_update>: Declare.
3450 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3452 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3454 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3455 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3457 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3459 2019-08-15 Tom Tromey <tom@tromey.com>
3461 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3463 2019-08-15 Tom Tromey <tom@tromey.com>
3465 * tui/tui-wingeneral.c: Include tui-stack.h.
3466 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3467 (struct tui_locator_window): Move from tui-data.h.
3468 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3469 (tui_initialize_static_data): Move from tui-data.c.
3470 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3471 (struct tui_locator_window): Move to tui-stack.c.
3472 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3473 (tui_initialize_static_data): Move to tui-stack.c.
3475 2019-08-15 Tom Tromey <tom@tromey.com>
3477 * tui/tui-layout.c (show_source_disasm_command)
3478 (show_source_or_disasm_and_command): Use make_visible method, not
3480 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3483 2019-08-15 Tom Tromey <tom@tromey.com>
3485 * tui/tui-wingeneral.h (tui_make_window): Update.
3486 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3488 (tui_gen_win_info::make_visible): Update.
3489 * tui/tui-regs.c (tui_data_window::display_registers_from):
3491 * tui/tui-layout.c (show_source_disasm_command)
3492 (show_source_or_disasm_and_command): Update.
3493 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3494 (enum tui_box): Remove.
3495 (struct tui_win_info) <can_box>: New method.
3496 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3499 2019-08-15 Tom de Vries <tdevries@suse.de>
3501 * linux-nat-trad.c: Include gdbarch.h.
3503 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3505 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3508 2019-08-14 Tom Tromey <tromey@adacore.com>
3510 * darwin-nat.c: Include gdbarch.h.
3511 * darwin-nat-info.c: Include gdbarch.h.
3513 2019-08-13 Tom Tromey <tom@tromey.com>
3515 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3517 * tui/tui-data.c (tui_initialize_static_data): Update.
3519 2019-08-13 Tom Tromey <tom@tromey.com>
3521 * tui/tui-winsource.h (struct tui_exec_info_window)
3522 <~tui_exec_info_window, maybe_allocate_content, get_content,
3524 (struct tui_source_window_base) <set_exec_info_content,
3525 show_exec_info_content>: Don't declare.
3526 * tui/tui-winsource.c
3527 (tui_exec_info_window::maybe_allocate_content): Remove.
3528 (tui_source_window_base::update_exec_info): Rename from
3529 set_exec_info_content.
3530 (tui_source_window_base::show_exec_info_content)
3531 (tui_source_window_base::update_exec_info): Remove.
3533 2019-08-13 Tom Tromey <tom@tromey.com>
3535 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3537 * tui/tui-winsource.c (tui_update_source_window_as_is)
3538 (tui_update_source_windows_with_addr, tui_erase_source_content):
3540 (tui_clear_exec_info_content): Remove.
3542 2019-08-13 Tom Tromey <tom@tromey.com>
3544 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3546 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3547 call tui_erase_exec_info_content.
3548 (tui_clear_exec_info_content): Rename from
3549 tui_erase_exec_info_content.
3550 (tui_clear_exec_info_content): Delete.
3552 2019-08-13 Tom Tromey <tom@tromey.com>
3554 * tui/tui-winsource.h (struct tui_source_window_base)
3555 <show_exec_info_content>: Declare.
3556 (tui_show_exec_info_content): Don't declare.
3557 * tui/tui-winsource.c
3558 (tui_source_window_base::show_exec_info_content): Rename from
3559 tui_show_exec_info_content.
3560 (tui_source_window_base::update_exec_info): Update.
3562 2019-08-13 Tom Tromey <tom@tromey.com>
3564 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3565 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3566 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3567 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3568 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3569 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3572 2019-08-13 Tom Tromey <tom@tromey.com>
3574 * tui/tui-winsource.h (struct tui_source_window_base)
3575 <update_exec_info>: Declare.
3576 (tui_update_exec_info): Don't declare.
3577 * tui/tui-winsource.c (tui_update_source_window_as_is)
3578 (tui_source_window_base::refresh_all)
3579 (tui_update_all_breakpoint_info): Update.
3580 (tui_source_window_base::update_exec_info): Rename from
3581 tui_update_exec_info.
3582 * tui/tui-stack.c (tui_show_frame_info): Update.
3584 2019-08-13 Tom Tromey <tom@tromey.com>
3586 * tui/tui-winsource.h (struct tui_source_window_base)
3587 <set_exec_info_content>: Declare.
3588 (tui_set_exec_info_content): Don't declare.
3589 * tui/tui-winsource.c
3590 (tui_source_window_base::set_exec_info_content): Rename from
3591 tui_set_exec_info_content.
3592 (tui_update_exec_info): Update.
3594 2019-08-13 Tom Tromey <tom@tromey.com>
3596 * tui/tui-winsource.h (struct tui_source_window_base)
3597 <show_source_content>: Declare.
3598 (tui_show_source_content): Don't declare.
3599 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3600 (tui_source_window_base::show_source_content): Rename from
3601 tui_show_source_content.
3602 (tui_source_window_base::refresh_all): Update.
3603 * tui/tui-layout.c (show_source_disasm_command)
3604 (show_source_or_disasm_and_command): Update.
3606 2019-08-13 Tom Tromey <tom@tromey.com>
3608 * tui/tui-winsource.c (tui_erase_source_content)
3609 (tui_show_source_content, tui_source_window_base::refresh_all):
3611 * tui/tui-wingeneral.h
3612 (tui_check_and_display_highlight_if_needed): Don't declare.
3613 * tui/tui-wingeneral.c
3614 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3615 check_and_display_highlight_if_needed.
3616 * tui/tui-win.c (tui_rehighlight_all)
3617 (tui_win_info::make_visible_with_new_height): Update.
3618 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3619 (tui_data_window::erase_data_content)
3620 (tui_data_window::display_all_data): Update.
3621 * tui/tui-data.h (struct tui_win_info)
3622 <check_and_display_highlight_if_needed>: Declare.
3624 2019-08-13 Tom Tromey <tom@tromey.com>
3626 * tui/tui-win.c (tui_resize_all): Call
3627 tui_delete_invisible_windows.
3628 * tui/tui-layout.c (show_layout): Call
3629 tui_delete_invisible_windows.
3630 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3631 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3633 2019-08-13 Tom Tromey <tom@tromey.com>
3635 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3636 tui_add_win_to_layout.
3638 2019-08-13 Tom Tromey <tom@tromey.com>
3640 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3641 * tui/tui-layout.c (tui_default_win_height): Now static.
3643 2019-08-13 Tom Tromey <tom@tromey.com>
3645 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3647 (show_source_disasm_command, show_source_or_disasm_and_command):
3648 Don't check current layout.
3650 2019-08-13 Tom Tromey <tom@tromey.com>
3652 * tui/tui-wingeneral.c (make_all_visible): Remove.
3653 (tui_make_all_invisible): Simplify.
3654 * tui/tui-layout.c (tui_make_all_invisible): Move from
3655 tui-wingeneral.c; simplify.
3656 (show_layout): Hoist call to tui_make_all_invisible.
3657 (show_data): Don't call tui_make_all_invisible.
3659 2019-08-13 Tom Tromey <tom@tromey.com>
3661 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3662 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3664 2019-08-13 Tom Tromey <tom@tromey.com>
3666 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3668 (show_source_disasm_command, show_data)
3669 (show_source_or_disasm_and_command): Don't use
3670 tui_set_current_layout_to.
3671 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3672 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3674 (tui_set_current_layout_to): Remove.
3676 2019-08-13 Tom Tromey <tom@tromey.com>
3678 * tui/tui-layout.c (tui_set_layout): Update.
3679 * tui/tui-data.h (struct tui_layout_def): Remove.
3680 (tui_layout_def): Don't declare.
3681 * tui/tui-data.c (layout_def): Remove.
3682 (tui_layout_def): Remove.
3684 2019-08-13 Tom Tromey <tom@tromey.com>
3686 * tui/tui-winsource.h (struct tui_source_window_base)
3687 <clear_detail>: No longer "override".
3688 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3689 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3690 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3691 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3693 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3695 2019-08-13 Tom Tromey <tromey@adacore.com>
3697 * tracepoint.c: Don't include readline.h or history.h.
3699 2019-08-12 Tom Tromey <tom@tromey.com>
3701 * configure: Rebuild.
3702 * configure.ac: Check for readline 7.
3703 * NEWS: Mention readline 7 requirement.
3706 2019-08-12 Tom Tromey <tom@tromey.com>
3708 * mingw-hdep.c (gdb_select): Remove readline hack.
3710 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3712 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3713 when the function fails.
3715 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3717 * s390-tdep.c (s390_type_align): New function.
3718 (s390_gdbarch_init): Set it as type_align gdbarch method.
3720 2019-08-09 Tom de Vries <tdevries@suse.de>
3723 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3724 pc_low with relocation offset.
3726 2019-08-07 Tom Tromey <tromey@adacore.com>
3728 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3729 (print_frame_args): Update.
3730 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3732 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3733 * frame.h (struct frame_arg): Add initializers.
3734 <error>: Now a unique_xmalloc_ptr.
3736 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3738 * NEWS: Expand the Pointer Authentication entry.
3739 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3740 (aarch64_frame_unmask_lr): ... to this.
3741 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3742 Call aarch64_frame_unmask_lr.
3743 * frame.c (struct frame_info): Add "masked" variable.
3744 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3745 (fprint_frame): Check for masked pc.
3746 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3748 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3749 * stack.c (print_frame): Check for masked pc.
3751 2019-08-06 Tom Tromey <tom@tromey.com>
3753 * stabsread.c (patch_block_stabs, read_one_struct_field)
3754 (read_enum_type): Use obstack_strndup.
3755 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3756 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3757 * dwarf2read.c (guess_full_die_structure_name)
3758 (anonymous_struct_prefix): Use obstack_strndup.
3759 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3760 * c-exp.y (yylex): Use obstack_strndup.
3761 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3762 (write_var_or_type): Use obstack_strndup.
3764 2019-08-06 Tom Tromey <tom@tromey.com>
3766 * symfile.c (reread_symbols): Use obstack_strdup.
3767 * stabsread.c (read_type): Use obstack_strdup.
3768 * gdb_obstack.h (obstack_strdup): New overload.
3769 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3770 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3771 (dwarf2_canonicalize_name): Use obstack_strdup.
3772 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3773 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3776 2019-08-06 Tom Tromey <tom@tromey.com>
3778 * gdb_obstack.h (obstack_strdup): Define.
3779 * gdb_obstack.c (obstack_strdup): Don't define.
3781 2019-08-06 Tom Tromey <tom@tromey.com>
3783 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3785 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3787 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3788 * stabsread.c (common_block_start): Use obstack_strdup.
3789 * objfiles.c (set_objfile_main_name, objfile): Use
3791 * namespace.c (add_using_directive): Use obstack_strdup.
3792 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3793 * jit.c (finalize_symtab): Use obstack_strdup.
3794 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3795 (guess_partial_die_structure_name, partial_die_info::fixup)
3796 (dwarf2_name): Use obstack_strdup.
3797 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3799 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3800 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3802 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3804 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3806 * unittests/help-doc-selftests.c: New file.
3807 * Makefile.in: Add the new file.
3809 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3811 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3812 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3813 the full first line, except when FOR_VALUE_PREFIX. In this case,
3814 the trailing '.' is not output, and the first character is uppercased.
3815 (print_help_for_command): Update call to print_doc_line.
3816 (print_doc_of_command): Likewise.
3817 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3818 * cli/cli-option.c (append_indented_doc): Do not append newline.
3819 (build_help_option): Append newline after first appended_indented_doc
3820 only if a second call is done.
3821 (build_help): Append 2 new lines before each option, except the first
3823 * compile/compile.c (_initialize_compile): Add new lines after
3824 %OPTIONS%, when not at the end of the help.
3825 Change help doc or code
3826 producing the help doc to respect the invariants.
3827 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3828 Also removed the new line after 'Options:', as all other commands
3829 do not put an empty line between 'Options:' and the first option.
3830 * printcmd.c (_initialize_printcmd): Likewise.
3831 * stack.c (_initialize_stack): Likewise.
3832 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3833 incorrectly telling COMMAND is optional.
3834 * ada-lang.c (_initialize_ada_language): Change help doc or code
3835 producing the help doc to respect the invariants.
3836 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3837 * breakpoint.c (_initialize_breakpoint): Likewise.
3838 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3839 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3840 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3841 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3842 _initialize_cli_style): Likewise.
3843 * corelow.c (core_target_info): Likewise.
3844 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3845 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3846 * filesystem.c (_initialize_filesystem): Likewise.
3847 * frame.c (_initialize_frame): Likewise.
3848 * gnu-nat.c (add_task_commands): Likewise.
3849 * infcall.c (_initialize_infcall): Likewise.
3850 * infcmd.c (_initialize_infcmd): Likewise.
3851 * interps.c (_initialize_interpreter): Likewise.
3852 * language.c (_initialize_language): Likewise.
3853 * linux-fork.c (_initialize_linux_fork): Likewise.
3854 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3855 * maint.c (_initialize_maint_cmds): Likewise.
3856 * memattr.c (_initialize_mem): Likewise.
3857 * printcmd.c (_initialize_printcmd): Likewise.
3858 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3860 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3861 * record-btrace.c (_initialize_record_btrace): Likewise.
3862 * record-full.c (_initialize_record_full): Likewise.
3863 * record.c (_initialize_record): Likewise.
3864 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3865 * regcache.c (_initialize_regcache): Likewise.
3866 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3867 _initialize_remote): Likewise.
3868 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3869 * serial.c (_initialize_serial): Likewise.
3870 * skip.c (_initialize_step_skip): Likewise.
3871 * source.c (_initialize_source): Likewise.
3872 * stack.c (_initialize_stack): Likewise.
3873 * symfile.c (_initialize_symfile): Likewise.
3874 * symtab.c (_initialize_symtab): Likewise.
3875 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3876 * top.c (init_main): Likewise.
3877 * tracefile-tfile.c (tfile_target_info): Likewise.
3878 * tracepoint.c (_initialize_tracepoint): Likewise.
3879 * tui/tui-win.c (_initialize_tui_win): Likewise.
3880 * utils.c (add_internal_problem_command): Likewise.
3881 * valprint.c (value_print_option_defs): Likewise.
3883 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3886 * configure.ac: Drop enable-libmcheck support.
3887 * configure, config.in: Rebuild.
3888 * libmcheck.m4: Remove.
3889 * acinclude.m4: Don't include it.
3890 * Makefile.in: Don't distribute it.
3891 * top.c (print_gdb_configuration): Don't mention it.
3893 2019-08-06 Tom Tromey <tom@tromey.com>
3895 * utils.c (set_output_style): Sometimes pass stream to
3897 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3898 * record-btrace.c (btrace_insn_history): Update.
3899 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3901 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3902 Update initializers.
3903 <m_uiout>: New field.
3905 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3906 Remove "uiout" parameter.
3907 (dump_insns): Update.
3908 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3909 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3911 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3913 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3914 (error_in_psymtab_expansion): Likewise.
3915 (lookup_symbol_via_quick_fns): Likewise.
3916 (basic_lookup_transparent_type_quick): Likewise.
3917 (basic_lookup_transparent_type_1): Likewise.
3919 2019-08-06 Tom Tromey <tromey@adacore.com>
3921 * source.c (last_source_error): Now bool.
3922 (print_source_lines_base): Make "noprint" bool. Only open
3923 source file when last_source_visited changes.
3925 2019-08-06 Tom Tromey <tromey@adacore.com>
3927 * annotate.c (annotate_source_line): Use g_source_cache.
3928 * source-cache.c (source_cache::get_plain_source_lines): Change
3929 parameters. Populate m_offset_cache.
3930 (source_cache::ensure): New method.
3931 (source_cache::get_line_charpos): New method.
3932 (extract_lines): Move lower. Change parameters.
3933 (source_cache::get_source_lines): Move lower.
3934 * source-cache.h (class source_cache): Update comment.
3935 <get_line_charpos>: New method.
3936 <get_source_lines>: Update comment.
3937 <clear>: Clear m_offset_cache.
3938 <get_plain_source_lines>: Change parameters.
3939 <ensure>: New method
3940 <m_offset_cache>: New member.
3941 * source.c (forget_cached_source_info_for_objfile): Update.
3942 (info_source_command): Use g_source_cache.
3943 (find_source_lines, open_source_file_with_line_charpos): Remove.
3944 (print_source_lines_base, search_command_helper): Use g_source_cache.
3945 * source.h (open_source_file_with_line_charpos): Don't declare.
3946 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3947 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3950 2019-08-06 Tom Tromey <tromey@adacore.com>
3952 * source-cache.c (source_cache::get_plain_source_lines):
3953 Remove "first_line" and "last_line" parameters.
3954 (source_cache::get_source_lines): Cache plain text.
3955 * source-cache.h (class source_cache)
3956 <get_plain_source_lines>: Update.
3958 2019-08-06 Tom Tromey <tromey@adacore.com>
3960 * source-cache.c (extract_lines): No longer a method.
3961 Changed type of parameter. Include final newline.
3962 (selftests::extract_lines_test): New function.
3963 (_initialize_source_cache): Likewise.
3964 * source-cache.h (class source_cache)
3965 <extract_lines>: Don't declare.
3967 2019-08-06 Tom Tromey <tromey@adacore.com>
3969 * breakpoint.c (init_breakpoint_sal): Update.
3970 (breakpoint): Update.
3971 * breakpoint.h (struct breakpoint) <filter>: Now a
3974 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3976 * NEWS: Mention dictionary access on blocks.
3977 * python/py-block.c (blpy_getitem): New function.
3978 (block_object_as_mapping): New struct.
3979 (block_object_type): Use new struct for tp_as_mapping field.
3981 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3983 * objfiles.h (objfile): Add a comment describing partial symbols.
3985 2019-08-05 Tom Tromey <tromey@adacore.com>
3987 * compile/compile.c (_initialize_compile): Use _(), not N_().
3988 * thread.c (_initialize_thread): Use _(), not N_().
3989 * stack.c (_initialize_stack): Use _(), not N_().
3990 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3992 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3994 * dwarf2read.c (struct dw2_symtab_iterator):
3995 <want_specific_block>: Remove.
3996 <block_index>: Change type to gdb::optional.
3997 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3998 change type of BLOCK_INDEX parameter to gdb::optional.
3999 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4000 (dw2_lookup_symbol): Don't pass argument for
4001 WANT_SPECIFIC_BLOCK.
4002 (dw2_expand_symtabs_for_function): Don't pass argument for
4003 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4004 (class dw2_debug_names_iterator)
4005 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4006 parameter, change BLOCK_INDEX type to gdb::optional.
4007 <m_want_specific_block>: Remove.
4008 <m_block_index>: Change type to gdb::optional.
4009 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4010 gdb::optional. Re-write in function of gdb::optional.
4011 (dw2_debug_names_lookup_symbol): Don't pass argument for
4012 WANT_SPECIFIC_BLOCK.
4013 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4014 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4017 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4019 * NEWS: Mention changes to "info sources" command.
4021 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4023 * symtab.c (filename_partial_match_opts): New struct type.
4024 (struct output_source_filename_data): New members
4025 regexp, c_regexp, partial_match.
4026 (output_source_filename): Use new members to decide to print file.
4027 (info_sources_option_defs): New variable.
4028 (make_info_sources_options_def_group, print_info_sources_header,
4029 info_sources_command_completer):
4031 (info_sources_command): Read new optional arguments.
4032 (_initialize_symtab): Update info sources help.
4034 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4036 * ada-lang.c (exception_support_info_v0): Renamed from...
4037 (default_exception_support_info): ... this. Create new
4039 (ada_has_this_exception_support): Look up catch_handlers_sym.
4040 (ada_exception_support_info_sniffer): Try v0 after default.
4042 2019-08-01 Tom Tromey <tromey@adacore.com>
4044 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4047 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4049 * s12z-tdep.c: Fix include path for s12z-opc.h.
4051 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4053 * NEWS: Require GNU make 3.82.
4055 2019-07-16 Tom Tromey <tom@tromey.com>
4057 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4060 2019-07-30 Tom Tromey <tromey@adacore.com>
4062 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4064 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4066 * printcmd.c (print_address_symbolic): Print negative offsets.
4067 (build_address_symbolic): Force signed arithmetic when computing
4070 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4072 PR/24474: Add a function to lookup static variables.
4073 * NEWS: Mention this new function.
4074 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4075 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4076 * python/python.c (python_GdbMethods): Add new function.
4078 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4080 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4081 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4082 (objfpy_lookup_static_symbol): New function.
4083 (objfile_object_methods): Add new functions.
4085 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4087 * NEWS: Mention 'set|show print frame-info'. Mention new
4088 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4089 backtrace argument. Mention that python frame filtering code
4090 is now consistent with what 'backtrace' command prints.
4092 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4094 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4096 (print_frame_info_auto, print_frame_info_source_line,
4097 print_frame_info_location, print_frame_info_source_and_location,
4098 print_frame_info_location_and_address, print_frame_info_short_location):
4100 (struct frame_print_options): New member print_frame_info.
4101 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4102 * stack.h (get_user_print_what_frame_info): New declaration.
4103 (frame_show_address): New declaration.
4104 * stack.c (print_frame_arguments_choices): New value 'presence'.
4105 (print_frame_info_auto, print_frame_info_source_line,
4106 print_frame_info_location, print_frame_info_source_and_location,
4107 print_frame_info_location_and_address, print_frame_info_short_location,
4108 print_frame_info_choices, print_frame_info_print_what): New definitions.
4109 (print_frame_args): Only print dots for args if print frame-arguments
4111 (frame_print_option_defs): New element for "frame-info".
4112 (get_user_print_what_frame_info): New function.
4113 (frame_show_address): Make non static. Move comment to stack.h.
4114 (print_frame_info_to_print_what): New function.
4115 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4116 to decide what to print.
4117 (backtrace_command_1): Handle the new print_frame_arguments_presence
4119 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4120 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4121 (py_print_frame): In non-mi mode, use LOCATION as default for
4122 print_what, similarly to frame information printed directly by
4123 backtrace command. Handle frame-info user option in non MI mode.
4125 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4127 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4128 Add case for debugging 32-bit target on 64-bit host. Revise
4131 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4133 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4134 instead of find_function_entry_range_from_pc.
4136 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4138 * stack.c (find_frame_funname): Remove code which preferred
4139 minsym over symtab sym in "certain pathological cases".
4141 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4142 parameter. Change type of "do_demangle" to bool.
4143 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4144 Pass suitable "prefer_sym_over_minsym" flag to
4145 build_address_symbolic(). Don't output "+" for negative offsets.
4146 * printcmd.c (print_address_symbolic): Update invocation of
4147 build_address_symbolic to include a "prefer_sym_over_minsym"
4149 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4150 Restrict cases in which use of minimal symbol is preferred to that
4151 of a found symbol. Update comments.
4153 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4154 for entry pc when entry pc is out of range for that FDE.
4156 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4159 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4162 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4164 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4165 this function's Python signature.
4168 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4170 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4171 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4172 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4173 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4174 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4177 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4179 * h8300-tdep.c (h8300_register_name_common): New.
4180 h8300_register_name): Use h8300_register_name_common.
4181 (h8300s_register_name): Likewise.
4182 (h8300sx_register_name): Likewise.
4183 (h8300h_register_nam): New.
4184 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4187 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4189 * arm-tdep.c (arm_skip_cmse_entry): New function.
4190 (arm_is_sgstubs_section): New function.
4191 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4193 2019-07-22 Tom Tromey <tom@tromey.com>
4195 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4198 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4200 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4203 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4205 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4206 so that GDB doesn't match any msymbols when searching in the
4208 (print_symbol_info): Print using typedef_print or type_print based
4209 on the type of the symbol. Add updated FIXME comment moved from...
4210 (_initialize_symtab): ... move and update FIXME comment to above.
4212 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4214 * NEWS: Mention adding -q option to "info types".
4215 * symtab.c (struct info_types_options): New struct.
4216 (info_types_options_defs): New variable.
4217 (make_info_types_options_def_group): New function.
4218 (info_types_command): Use gdb::option framework to parse options.
4219 (info_types_command_completer): New function.
4220 (_initialize_symtab): Extend the help text on "info types" and
4221 register command completer.
4223 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4225 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4226 (lookup_symbol_in_objfile): Change int to block_enum and add a
4227 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4229 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4231 * MAINTAINERS (Write After Approval): Add self.
4233 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4235 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4236 instruction to the dummy code region.
4238 2019-07-19 Tom Tromey <tromey@adacore.com>
4240 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4241 (ARGSUSED, PARAMS, __func__): Remove rules.
4243 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4245 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4246 * features/arm/arm-with-iwmmxt.c: Remove.
4247 * features/arm/arm-with-iwmmxt.xml: Remove.
4248 * features/arm/arm-with-m-fpa-layout.c: Remove.
4249 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4250 * features/arm/arm-with-m-vfp-d16.c: Remove.
4251 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4252 * features/arm/arm-with-m.c: Remove.
4253 * features/arm/arm-with-m.xml: Remove.
4254 * features/arm/arm-with-neon.c: Remove.
4255 * features/arm/arm-with-neon.xml: Remove.
4256 * features/arm/arm-with-vfpv2.c: Remove.
4257 * features/arm/arm-with-vfpv2.xml: Remove.
4258 * features/arm/arm-with-vfpv3.c: Remove.
4259 * features/arm/arm-with-vfpv3.xml: Remove.
4261 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4263 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
4265 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4267 * arch/aarch32.c (aarch32_create_target_description): Create
4268 target descriptions using features.
4269 * arch/arm.c (arm_create_target_description)
4270 (arm_create_mprofile_target_description): Likewise.
4271 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
4273 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4275 * Makefile.in: Add new files.
4276 * aarch32-tdep.c: New file.
4277 * aarch32-tdep.h: New file.
4278 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
4279 Call aarch32_read_description.
4280 * arch/aarch32.c: New file.
4281 * arch/aarch32.h: New file.
4282 * arch/arm.c (arm_create_target_description)
4283 (arm_create_mprofile_target_description): New function.
4284 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
4285 (arm_create_target_description)
4286 (arm_create_mprofile_target_description): New declaration.
4287 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
4288 read_description functions.
4289 * arm-linux-nat.c (arm_linux_nat_target::read_description):
4291 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
4292 * arm-tdep.c (tdesc_arm_list): New variable.
4293 (arm_register_g_packet_guesses): Call create description functions.
4294 (arm_read_description) (arm_read_mprofile_description): New
4296 * arm-tdep.h (arm_read_description)
4297 (arm_read_mprofile_description): Add declaration.
4298 * configure.tgt: Add new files.
4300 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
4302 * top.c (new_ui_command): Open specified terminal just once.
4304 2019-07-18 Tom Tromey <tromey@adacore.com>
4306 * symtab.c (main_name): Constify return type.
4307 * symfile.c (set_initial_language): Update.
4308 * symtab.h (main_name): Constify return type.
4310 2019-07-17 Tom Tromey <tom@tromey.com>
4312 * tui/tui-winsource.c (tui_update_source_window)
4313 (tui_update_source_window_as_is)
4314 (tui_update_source_windows_with_line): Remove return.
4315 * tui/tui-disasm.c (tui_show_disassem)
4316 (tui_show_disassem_and_update_source): Remove return.
4317 * tui/tui.c (tui_reset): Remove return.
4318 * tui/tui-wingeneral.c
4319 (tui_check_and_display_highlight_if_needed): Remove return.
4321 2019-07-17 Tom Tromey <tom@tromey.com>
4323 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
4325 2019-07-17 Tom Tromey <tom@tromey.com>
4327 * tui/tui-winsource.h (struct tui_exec_info_window)
4328 (struct tui_source_window_base): Move from tui-data.h.
4329 * tui/tui-winsource.c: Move many method definitions from
4330 elsewhere. Remove "structuring" comments.
4331 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
4332 (tui_source_window_base::refresh_window): Move to
4334 * tui/tui-win.c (tui_source_window_base::refresh_all)
4335 (tui_source_window_base::update_tab_width)
4336 (tui_source_window_base::set_new_height)
4337 (tui_source_window_base::do_make_visible_with_new_height): Move to
4339 * tui/tui-source.h: Update.
4340 * tui/tui-source.c (tui_source_window_base::reset): Move to
4342 * tui/tui-disasm.h: Update.
4343 * tui/tui-data.h (struct tui_exec_info_window): Move to
4345 (struct tui_source_window_base): Likewise.
4346 * tui/tui-data.c (tui_source_window_base::clear_detail)
4347 (tui_source_window_base, ~tui_source_window_base): Move to
4350 2019-07-17 Tom Tromey <tom@tromey.com>
4352 * tui/tui-win.c (tui_resize_all)
4353 (tui_source_window_base::update_tab_width)
4354 (tui_adjust_win_heights): Update.
4355 (tui_win_info::make_invisible_and_set_new_height): Rename from
4356 make_invisible_and_set_new_height.
4357 * tui/tui-data.h (struct tui_win_info)
4358 <make_invisible_and_set_new_height>: New method.
4360 2019-07-17 Tom Tromey <tom@tromey.com>
4362 * tui/tui.c: Update.
4363 * tui/tui-source.h (struct tui_source_window): Move from
4365 * tui/tui-layout.c: Update.
4366 * tui/tui-disasm.c: Update.
4367 * tui/tui-data.h (struct tui_source_window): Move to
4370 2019-07-17 Tom Tromey <tom@tromey.com>
4372 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4374 * tui/tui-data.h (struct tui_disasm_window): Move to
4377 2019-07-17 Tom Tromey <tom@tromey.com>
4379 * tui/tui-regs.h (struct tui_data_item_window): Move from
4381 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4382 * tui/tui-data.h (struct tui_data_item_window): Move to
4384 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4386 2019-07-17 Tom Tromey <tom@tromey.com>
4388 * tui/tui.c: Update.
4389 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4390 (tui_cmd_window::max_height): Move to tui-command.c.
4391 * tui/tui-layout.c: Update.
4392 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4393 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4395 * tui/tui-command.h (struct tui_cmd_window): Move from
4397 * tui/tui-command.c: Remove "structuring" comments.
4398 (tui_cmd_window::clear_detail)
4399 (tui_cmd_window::do_make_visible_with_new_height)
4400 (tui_cmd_window::max_height): Move from elsewhere.
4402 2019-07-17 Tom Tromey <tom@tromey.com>
4404 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4406 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4407 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4409 2019-07-17 Tom Tromey <tom@tromey.com>
4411 * tui/tui.c: Update.
4412 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4414 * tui/tui-windata.h: Remove file.
4415 * tui/tui-windata.c: Remove file.
4416 * tui/tui-win.c (tui_data_window::set_new_height)
4417 (tui_data_window::do_make_visible_with_new_height): Move to
4419 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4420 * tui/tui-regs.c: Remove "structuring" comments.
4421 (tui_data_window::first_data_item_displayed)
4422 (tui_data_window::delete_data_content_windows)
4423 (tui_data_window::erase_data_content)
4424 (tui_data_window::display_all_data)
4425 (tui_data_window::refresh_all)
4426 (tui_data_window::do_scroll_vertical)
4427 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4428 (tui_data_window::do_make_visible_with_new_height)
4429 (tui_data_window::refresh_window): Move from elsewhere.
4430 (_initialize_tui_regs): Move to end of file.
4431 * tui/tui-layout.c: Update.
4432 * tui/tui-hooks.c: Update.
4433 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4434 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4436 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4438 2019-07-17 Tom Tromey <tom@tromey.com>
4440 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4443 2019-07-17 Tom Tromey <tom@tromey.com>
4445 * tui/tui-win.c (tui_source_window_base::set_new_height)
4446 (tui_source_window_base::do_make_visible_with_new_height): Use
4447 m_has_locator field directly.
4448 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4450 (struct tui_source_window_base) <has_locator>: Likewise.
4452 2019-07-17 Tom Tromey <tom@tromey.com>
4454 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4456 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4458 * tui/tui-win.c (tui_source_window_base::set_new_height)
4459 (tui_source_window_base::set_new_height)
4460 (make_invisible_and_set_new_height)
4461 (tui_source_window_base::do_make_visible_with_new_height)
4462 (tui_source_window_base::do_make_visible_with_new_height):
4464 * tui/tui-layout.c (show_source_disasm_command, show_data)
4465 (show_source_or_disasm_and_command): Update.
4466 * tui/tui-layout.c (show_layout): Update.
4468 2019-07-17 Tom Tromey <tom@tromey.com>
4470 * tui/tui-layout.c (make_data_window): Remove.
4471 (show_data): Unify creation and re-initialization cases.
4473 2019-07-17 Tom Tromey <tom@tromey.com>
4475 * tui/tui-layout.c (make_source_window, make_disasm_window):
4477 (show_data): Unify creation and re-initialization cases.
4479 2019-07-17 Tom Tromey <tom@tromey.com>
4481 * tui/tui-layout.c (make_command_window): Remove.
4482 (show_source_disasm_command, show_source_or_disasm_and_command):
4483 Unify creation and re-initialization cases.
4485 2019-07-17 Tom Tromey <tom@tromey.com>
4487 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4488 creation and re-initialization cases.
4490 2019-07-17 Tom Tromey <tom@tromey.com>
4492 * tui/tui-regs.c (tui_get_register): Return void.
4494 2019-07-17 Tom Tromey <tom@tromey.com>
4496 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4499 2019-07-17 Tom Tromey <tom@tromey.com>
4501 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4504 2019-07-17 Tom Tromey <tom@tromey.com>
4506 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4507 * tui/tui-regs.c (tui_reg_layout): New function.
4508 (tui_show_registers, tui_reg_command): Use it.
4509 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4510 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4512 (tui_layout_command): Remove.
4514 2019-07-17 Tom Tromey <tom@tromey.com>
4516 * tui/tui-layout.h (tui/tui-layout): Return void.
4517 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4519 2019-07-17 Tom Tromey <tom@tromey.com>
4521 * tui/tui-layout.c (show_source_disasm_command, show_data):
4523 (reset_locator): Remove.
4524 (show_source_or_disasm_and_command): Update.
4526 2019-07-17 Tom Tromey <tom@tromey.com>
4528 * tui/tui-source.c (tui_source_window_base::reset): Remove
4530 * tui/tui-layout.c (make_command_window, make_source_window)
4531 (make_disasm_window, make_data_window)
4532 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4533 (reset_locator, show_source_or_disasm_and_command): Update.
4534 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4536 (struct tui_source_window_base) <reset>: Likewise.
4538 2019-07-17 Tom Tromey <tom@tromey.com>
4540 * tui/tui-layout.c (show_source_disasm_command): Use
4542 (reset_locator): New function.
4543 (init_and_make_win): Remove.
4544 (show_source_or_disasm_and_command): Use reset_locator.
4546 2019-07-17 Tom Tromey <tom@tromey.com>
4548 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4550 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4552 * tui/tui-source.c (tui_source_window_base::reset): New method.
4553 * tui/tui-layout.c (make_command_window): Don't call
4555 (make_source_window, make_disasm_window): Don't call
4556 make_source_or_disasm_window.
4557 (make_data_window): Don't call init_and_make_win. Change calling
4559 (show_source_disasm_command, show_data): Simplify.
4560 (make_source_or_disasm_window): Remove.
4561 (show_source_or_disasm_and_command): Simplify.
4562 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4563 (struct tui_source_window_base) <reset>: Likewise.
4564 <execution_info>: Remove initializer.
4565 * tui/tui-data.c (tui_source_window_base): Initialize
4568 2019-07-17 Tom Tromey <tom@tromey.com>
4570 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4573 2019-07-17 Tom Tromey <tom@tromey.com>
4575 * tui/tui.c (tui_rl_other_window): Update.
4576 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4577 superclass method first. Always iterate over regs_content.
4578 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4580 * tui/tui-win.c (tui_set_focus_command): Update.
4582 2019-07-17 Tom Tromey <tom@tromey.com>
4584 * tui/tui-win.c (tui_set_focus_command): Rename from
4585 tui_set_focus. Call tui_enable.
4586 (tui_set_focus_command): Remove.
4588 2019-07-17 Tom Tromey <tom@tromey.com>
4590 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4592 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4594 (tui_data_window::refresh_window): Call refresh_window on data
4595 items. Always call superclass refresh_window.
4596 (tui_win_info::refresh): Remove.
4597 (tui_source_window_base::refresh_window): Update.
4598 (tui_refresh_all): Update.
4599 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4601 (show_source_or_disasm_and_command): Likewise.
4602 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4603 (struct tui_source_window_base) <refresh>: Likewise.
4605 2019-07-17 Tom Tromey <tom@tromey.com>
4607 * tui/tui-winsource.c (tui_clear_source_content)
4608 (tui_show_source_content): Update.
4609 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4610 whether content is empty.
4611 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4614 2019-07-17 Tom Tromey <tom@tromey.com>
4616 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4618 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4619 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4621 2019-07-17 Tom Tromey <tom@tromey.com>
4623 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4624 (struct tui_data_item_window): Update.
4626 2019-07-17 Tom Tromey <tom@tromey.com>
4628 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4629 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4632 2019-07-17 Tom Tromey <tom@tromey.com>
4634 * tui/tui-winsource.h (tui_erase_source_content)
4635 (tui_clear_source_content): Remove "display_prompt" parameter.
4636 * tui/tui-winsource.c (tui_update_source_window_as_is)
4637 (tui_update_source_windows_with_addr): Update.
4638 (tui_clear_source_content): Remove "display_prompt" parameter.
4639 (tui_erase_source_content): Likewise. Simplify.
4640 (tui_show_source_content): Update.
4641 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4642 * tui/tui-stack.c (tui_show_frame_info): Update.
4643 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4646 2019-07-17 Tom Tromey <tom@tromey.com>
4648 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4649 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4651 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4654 2019-07-17 Tom Tromey <tom@tromey.com>
4656 * tui/tui-winsource.c (tui_clear_source_content)
4657 (tui_show_source_content, tui_show_exec_info_content)
4658 (tui_clear_exec_info_content): Update.
4659 * tui/tui-stack.c (tui_show_locator_content): Update.
4660 (tui_show_frame_info): Update.
4661 * tui/tui-source.h (tui_source_window): Don't declare.
4662 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4663 from tui_source_is_displayed.
4664 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4666 (struct tui_source_window_base) <content_in_use>: New field. Now
4668 (struct tui_source_window) <showing_source_p>: New method.
4669 (TUI_SRC_WIN): Change cast.
4670 * tui/tui-data.c (tui_initialize_static_data): Update.
4672 2019-07-17 Tom Tromey <tom@tromey.com>
4674 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4676 * tui/tui-source.c (tui_source_window::location_matches_p): New
4678 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4680 * tui/tui-data.h (struct tui_source_window_base)
4681 <location_matches_p>: New method.
4682 (struct tui_source_window, struct tui_disasm_window)
4683 <location_matches_p>: Likewise.
4685 2019-07-17 Tom Tromey <tom@tromey.com>
4687 * tui/tui-win.c (tui_set_win_height_command): Rename from
4689 (tui_set_win_height_command): Remove.
4691 2019-07-17 Tom Tromey <tom@tromey.com>
4693 * tui/tui-source.c (tui_source_window): New constructor. Add
4695 (~tui_source_window): New destructor.
4696 (tui_source_window::style_changed): New method.
4697 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4698 (tui_attach_detach_observers): Update.
4699 * tui/tui-data.h (struct tui_source_window): Make constructor not
4700 inline. Add destructor.
4701 (struct tui_source_window) <style_changed>: New method.
4702 <m_observable>: New member.
4704 2019-07-17 Tom Tromey <tom@tromey.com>
4706 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4707 * tui/tui-win.c (tui_resize_all): Fix typo.
4709 2019-07-17 Tom Tromey <tom@tromey.com>
4711 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4712 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4713 (tui_refresh_all): Remove "list" parameter. Use foreach.
4714 * tui/tui-win.c (window_name_completer): Use foreach.
4715 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4716 (update_tab_width): Likewise.
4717 * tui/tui-layout.c (show_layout): Update.
4718 * tui/tui-data.h (class tui_window_iterator): New.
4719 (struct all_tui_windows): New.
4720 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4722 2019-07-17 Tom Tromey <tom@tromey.com>
4724 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4725 parameter. Don't reference globals.
4726 (tui_reg_command): Update.
4728 2019-07-17 Tom Tromey <tom@tromey.com>
4730 * tui/tui-regs.c (tui_show_registers): Simplify.
4732 2019-07-17 Tom Tromey <tom@tromey.com>
4734 * tui/tui-regs.c (tui_show_registers): Update.
4735 (tui_show_register_group): Add win_info parameter.
4737 2019-07-17 Tom Tromey <tom@tromey.com>
4739 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4740 Rename from tui_display_reg_element_at_line.
4741 (tui_data_window::display_registers_from_line): Update.
4742 * tui/tui-data.h (struct tui_data_window)
4743 <display_reg_element_at_line>: New method.
4745 2019-07-17 Tom Tromey <tom@tromey.com>
4747 * tui/tui-regs.h (tui_display_registers_from)
4748 (tui_display_registers_from_line): Don't declare.
4749 * tui/tui-windata.c (tui_data_window::display_all_data)
4750 (tui_data_window::refresh_all)
4751 (tui_data_window::do_scroll_vertical): Update.
4752 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4753 from tui_display_registers_from.
4754 (tui_display_reg_element_at_line): Update.
4755 (tui_data_window::display_registers_from_line): Rename from
4756 tui_display_registers_from_line.
4757 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4758 display_registers_from_line>: New methods.
4760 2019-07-17 Tom Tromey <tom@tromey.com>
4762 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4763 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4764 from tui_erase_data_content.
4765 (tui_data_window::display_all_data)
4766 (tui_data_window::refresh_all)
4767 (tui_data_window::do_scroll_vertical): Update.
4768 * tui/tui-regs.c (tui_show_registers): Update.
4769 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4772 2019-07-17 Tom Tromey <tom@tromey.com>
4774 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4777 (tui_data_window::delete_data_content_windows): Rename from
4778 tui_delete_data_content_windows.
4779 (tui_data_window::display_all_data)
4780 (tui_data_window::do_scroll_vertical): Update.
4781 * tui/tui-data.h (struct tui_data_window)
4782 <delete_data_content_windows>: New method.
4784 2019-07-17 Tom Tromey <tom@tromey.com>
4786 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4787 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4789 2019-07-17 Tom Tromey <tom@tromey.com>
4791 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4792 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4793 from tui_display_all_data.
4795 (tui_data_window::do_make_visible_with_new_height): Update.
4796 * tui/tui-regs.c (tui_show_registers): Update.
4797 * tui/tui-layout.c (tui_set_layout): Update.
4798 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4801 2019-07-17 Tom Tromey <tom@tromey.com>
4803 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4804 * tui/tui-windata.c (tui_display_data_from): Remove.
4805 (tui_data_window::refresh_all): Update.
4807 2019-07-17 Tom Tromey <tom@tromey.com>
4809 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4810 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4811 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4812 tui_display_registers_from_line.
4813 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4814 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4815 "force_display" parameter.
4817 2019-07-17 Tom Tromey <tom@tromey.com>
4819 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4821 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4822 Rename from tui_first_reg_element_no_inline.
4823 (tui_display_reg_element_at_line)
4824 (tui_display_registers_from_line): Update.
4825 * tui/tui-data.h (struct tui_data_window)
4826 <first_reg_element_no_inline>: New method.
4828 2019-07-17 Tom Tromey <tom@tromey.com>
4830 * tui/tui-windata.c (tui_display_data_from)
4831 (tui_data_window::do_scroll_vertical): Update.
4832 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4833 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4834 Rename from tui_line_from_reg_element_no.
4835 (tui_display_registers_from_line): Update.
4836 * tui/tui-data.h (struct tui_data_window)
4837 <line_from_reg_element_no>: New method.
4839 2019-07-17 Tom Tromey <tom@tromey.com>
4841 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4842 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4843 tui_last_regs_line_no.
4844 (tui_display_reg_element_at_line)
4845 (tui_display_registers_from_line): Update.
4846 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4849 2019-07-17 Tom Tromey <tom@tromey.com>
4852 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4853 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4854 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4855 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4856 (tui_update_breakpoint_info): Likewise.
4857 * tui/tui-hooks.c (tui_event_create_breakpoint)
4858 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4861 2019-07-17 Tom Tromey <tom@tromey.com>
4863 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4865 2019-07-17 Tom Tromey <tom@tromey.com>
4867 * tui/tui-winsource.c (tui_update_source_window_as_is)
4868 (tui_update_source_windows_with_addr): Update.
4869 * tui/tui-source.h (tui_set_source_content)
4870 (tui_show_symtab_source): Add "win_info" parameter.
4871 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4873 (tui_show_symtab_source): Likewise.
4875 2019-07-17 Tom Tromey <tom@tromey.com>
4877 * tui/tui-wingeneral.c
4878 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4880 2019-07-17 Tom Tromey <tom@tromey.com>
4882 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4883 (struct tui_cmd_window) <can_scroll>: New method.
4884 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4887 2019-07-17 Tom Tromey <tromey@adacore.com>
4889 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4890 do_field_signed>: Rename. Change type of "value".
4891 * ui-out.c (ui_out::field_signed): Rename from field_int.
4892 Change type of "value".
4893 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4895 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4896 do_field_int. Change type of "value".
4897 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4898 do_field_int. Change type of "value".
4899 * tracepoint.c (trace_status_mi, tfind_1)
4900 (print_one_static_tracepoint_marker): Update.
4901 * thread.c (print_thread_info_1, print_selected_thread_frame):
4903 * stack.c (print_frame, print_frame_info): Update.
4904 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4906 * source.c (print_source_lines_base): Update.
4907 * skip.c (info_skip_command): Update.
4908 * record-btrace.c (btrace_ui_out_decode_error)
4909 (btrace_call_history_src_line): Update.
4910 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4912 * progspace.c (print_program_space): Update.
4913 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4914 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4915 do_field_int. Change type of "value".
4916 * mi/mi-out.c (mi_ui_out::do_table_begin)
4917 (mi_ui_out::do_table_header): Update.
4918 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4920 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4921 (mi_cmd_data_list_changed_registers, output_register)
4922 (mi_cmd_data_read_memory, mi_load_progress)
4923 (mi_cmd_trace_frame_collected): Update.
4924 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4926 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4927 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4928 (mi_cmd_var_list_children, varobj_update_one): Update.
4929 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4930 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4931 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4932 * inferior.c (print_inferior): Update.
4933 * gdb_bfd.c (print_one_bfd): Update.
4934 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4936 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4937 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4938 do_field_int. Change type of "value".
4939 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4940 do_field_int. Change type of "value".
4941 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4942 (print_one_breakpoint_location, print_it_catch_fork)
4943 (print_one_catch_fork, print_it_catch_vfork)
4944 (print_one_catch_vfork, print_it_catch_solib)
4945 (print_it_catch_exec, print_it_ranged_breakpoint)
4946 (print_mention_watchpoint, print_mention_masked_watchpoint)
4947 (bkpt_print_it, update_static_tracepoint): Update.
4948 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4949 * break-catch-syscall.c (print_it_catch_syscall): Update.
4950 * ada-tasks.c (print_ada_task_info): Update.
4951 * ada-lang.c (print_it_exception, print_mention_exception):
4954 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4956 PR breakpoints/24541
4957 * gdbarch.c: Regenerate.
4958 * gdbarch.h: Regenerate.
4959 * gdbarch.sh: Adjust return type and parameter types for
4960 'stap_adjust_register'.
4961 (i386_stap_adjust_register): Adjust signature and return new
4963 * stap-probe.c (stap_parse_register_operand): Adjust use of
4964 'gdbarch_stap_adjust_register'.
4966 2019-07-17 Tom Tromey <tromey@adacore.com>
4968 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4970 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4972 (struct s390_process_info): Add initializers.
4973 (s390_add_process): Use new.
4974 (s390_linux_nat_target::low_forget_process): Use delete.
4975 (s390_linux_nat_target::low_new_fork)
4976 (s390_linux_nat_target::stopped_by_watchpoint)
4977 (s390_linux_nat_target::low_prepare_to_resume)
4978 (s390_linux_nat_target::insert_watchpoint)
4979 (s390_linux_nat_target::insert_hw_breakpoint)
4980 (s390_linux_nat_target::remove_watchpoint)
4981 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4983 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4985 * aarch64-fbsd-nat.c: Include regcache.h.
4986 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4988 (aarch64_fbsd_nat_target::fetch_registers)
4989 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4991 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4993 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4995 * fbsd-nat.c: Include gdbarch.h.
4997 2019-07-15 Tom Tromey <tromey@adacore.com>
4999 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5001 2019-07-15 Tom Tromey <tromey@adacore.com>
5003 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5004 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5005 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5006 * cli-out.c (cli_ui_out::do_field_int): New method.
5007 * ui-out.c (ui_out::field_unsigned): New method.
5008 * symfile.c (generic_load): Use field_unsigned.
5009 (print_transfer_performance): Likewise.
5010 * record-btrace.c (ui_out_field_uint): Remove.
5011 (btrace_call_history_insn_range, btrace_call_history): Use
5013 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5015 * ui-out.h (class ui_out) <field_unsigned>: New method.
5016 <do_field_unsigned>: Likewise.
5018 2019-07-15 Tom Tromey <tromey@adacore.com>
5020 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5021 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5022 * target.c (flash_erase_command): Use field_string.
5023 * infrun.c (print_signal_received_reason): Use field_string.
5024 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5025 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5027 * ada-tasks.c (print_ada_task_info): Use field_string.
5029 2019-07-15 Tom Tromey <tromey@adacore.com>
5031 * target.c (flash_erase_command): Use field_core_addr.
5032 * symfile.c (generic_load): Use field_core_addr.
5033 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5034 Use field_core_addr.
5035 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5038 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5040 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5041 value if its desired type is smaller than a CORE_ADDR and signed.
5043 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5045 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5046 of changes to field names, and use new is_reference field to
5047 decide if a property is a reference or not.
5048 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5050 (struct dwarf2_property_baton): Update header comment, rename
5051 'referenced_type' to 'property_type' and update comments.
5052 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5053 default property type, store in property baton, update to take
5054 accound of renamed field.
5055 (read_func_scope): Update call to attr_to_dynamic_prop.
5056 (read_array_type): Likewise.
5057 (dwarf2_per_cu_addr_sized_int_type): New function.
5058 (read_subrange_index_type): Move type finding code to
5059 dwarf2_per_cu_addr_sized_int_type.
5060 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5061 (dwarf2_per_cu_addr_type): New function.
5062 (set_die_type): Update calls to attr_to_dynamic_prop.
5064 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5066 * dwarf2read.c (read_subrange_index_type): New function.
5067 (read_subrange_type): Move code into new function and call it.
5068 * gdbtypes.c (create_range_type): Add some asserts.
5070 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5072 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5073 update return statements.
5074 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5075 declaration, and update comment to match.
5076 * gdbtypes.c (resolve_dynamic_array): Update call to
5077 dwarf2_evaluate_property to match new return type.
5079 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5081 * valarith.c (value_subscripted_rvalue): Change lowerbound
5082 parameter type from int to LONGEST.
5083 * value.h (value_subscripted_rvalue): Likewise in declaration.
5085 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5087 * cli/cli-utils.c (info_print_command_completer): New function.
5088 * cli/cli-utils.h: Add 'completer.h' include, and forward
5089 declaration for 'struct cmd_list_element'.
5090 (info_print_command_completer): Declare.
5091 * stack.c (_initialize_stack): Add completer for 'info locals' and
5093 * symtab.c (_initialize_symtab): Add completer for 'info
5094 variables' and 'info functions'.
5095 * NEWS: Mention completion for additional info commands.
5097 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5099 * cli/cli-utils.c (extract_info_print_args): Delete.
5100 (extract_arg_maybe_quoted): Delete.
5101 (info_print_options_defs): New variable.
5102 (make_info_print_options_def_group): New function.
5103 (extract_info_print_options): Define new function.
5104 * cli/cli-utils.h (extract_info_print_args): Delete.
5105 (struct info_print_options): New structure.
5106 (extract_info_print_options): Declare new function.
5107 * stack.c (info_locals_command): Update to use new
5108 extract_info_print_options, also add a header comment.
5109 (info_args_command): Likewise.
5110 * symtab.c (info_variables_command): Likewise.
5111 (info_functions_command): Likewise.
5113 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5115 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5116 to extract string arguments.
5117 * common/common-utils.c (extract_string_maybe_quoted): New function.
5118 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5120 2019-07-11 Tom Tromey <tromey@adacore.com>
5122 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5123 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5124 * top.h (gdbinit): Don't declare.
5125 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5127 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5128 * top.c (gdb_init): Don't call init_cli_cmds.
5130 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5132 2019-07-11 Tom Tromey <tromey@adacore.com>
5134 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5135 after it has been moved.
5137 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5139 * valops.c (value_must_coerce_to_target): Change return type to
5141 * value.h (value_must_coerce_to_target): Likewise.
5143 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5145 * breakpoint.c (is_hardware_watchpoint): Remove
5146 forward-declaration.
5147 (is_masked_watchpoint): Change return type to bool.
5148 (is_tracepoint): Likewise.
5149 (is_breakpoint): Likewise.
5150 (is_hardware_watchpoint): Likewise.
5151 (is_watchpoint): Likewise.
5152 (is_no_memory_software_watchpoint): Likewise.
5153 (is_catchpoint): Likewise.
5154 (breakpoint_1): Make FILTER parameter's return type bool.
5155 is_masked_watchpoint): Change return type to bool.
5156 (save_breakpoints): Make FILTER parameter's return type bool.
5157 * breakpoint.h (is_breakpoint): Change return type to bool.
5158 (is_watchpoint): Likewise.
5159 (is_catchpoint): Likewise.
5160 (is_tracepoint): Likewise.
5162 2019-07-10 Tom Tromey <tom@tromey.com>
5164 * defs.h: Don't include gdbarch.h.
5165 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5166 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5167 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5168 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5169 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5170 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5171 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5172 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5173 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5174 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5175 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5176 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5177 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5178 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5179 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5180 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5181 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5182 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5183 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5184 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5185 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5186 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5187 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5188 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5189 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5190 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5191 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5193 2019-07-10 Tom Tromey <tromey@adacore.com>
5195 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5196 * breakpoint.c (init_ada_exception_breakpoint): Register as
5198 (print_one_breakpoint_location, print_one_breakpoint): Use
5199 is_ada_exception_catchpoint.
5200 * ada-lang.c (class ada_catchpoint_location): Pass
5201 bp_loc_software_breakpoint to bp_location constructor.
5202 (is_ada_exception_catchpoint): New function.
5204 2019-07-10 Tom Tromey <tromey@adacore.com>
5206 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5208 (struct arm_exidx_entry): New method operator<.
5209 (struct arm_exidx_data) <section_maps>: Change type.
5210 (arm_exidx_data_free): Remove.
5211 (arm_exidx_data_key): Change type. Move lower.
5212 (arm_exidx_new_objfile): Update.
5213 (arm_compare_exidx_entries): Remove.
5214 (arm_find_exidx_entry, _initialize_arm_tdep)
5216 2019-07-10 Tom Tromey <tromey@adacore.com>
5218 * solib-spu.c (ocl_program_data_key): Change type.
5219 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5222 2019-07-10 Tom Tromey <tromey@adacore.com>
5224 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5225 (struct solib_aix_inferior_data) <library_list>: Change type.
5226 (solib_aix_inferior_data_handle): Change type.
5227 (get_solib_aix_inferior_data): Update.
5228 (solib_aix_free_library_list): Remove.
5229 (library_list_start_library): Update.
5230 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5232 (solib_aix_get_library_list)
5233 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5234 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5236 2019-07-10 Tom Tromey <tromey@adacore.com>
5238 * solib-dsbt.c (struct dsbt_info): Add initializers.
5239 (solib_dsbt_pspace_data): Change type.
5240 (dsbt_pspace_data_cleanup): Remove.
5241 (get_dsbt_info, _initialize_dsbt_solib): Update.
5243 2019-07-10 Tom Tromey <tromey@adacore.com>
5245 * spu-tdep.c (spu_overlay_data): Change type.
5246 (spu_get_overlay_table, spu_overlay_new_objfile)
5247 (_initialize_spu_tdep): Update.
5249 2019-07-10 Tom Tromey <tromey@adacore.com>
5251 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5253 (dbx_objfile_data_key): Change type and declare later.
5254 (DBX_SYMFILE_INFO): Rewrite.
5255 * dbxread.c (dbx_objfile_data_key): Change type.
5256 (dbx_symfile_init): Update.
5257 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5258 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5259 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5261 2019-07-10 Tom Tromey <tromey@adacore.com>
5263 * jit.c (jit_program_space_key): Change type. Move lower.
5264 (get_jit_program_space_data): Update.
5265 (jit_program_space_data_cleanup): Remove.
5266 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
5268 (struct jit_program_space_data): Add initializers.
5270 2019-07-10 Tom Tromey <tromey@adacore.com>
5272 * solib-darwin.c (struct darwin_info): Add initializers.
5273 (solib_darwin_pspace_data): Change type.
5274 (darwin_pspace_data_cleanup): Remove.
5275 (get_darwin_info, _initialize_darwin_solib): Update.
5277 2019-07-10 Tom Tromey <tromey@adacore.com>
5279 * remote-sim.c (struct sim_inferior_data): Add initializers,
5280 constructor, and destructor.
5281 (sim_inferior_data_key): Change type. Move lower.
5282 (check_for_duplicate_sim_descriptor): Update.
5283 (get_sim_inferior_data): Use new. Update.
5284 (~sim_inferior_data_cleanup): Rename from
5285 sim_inferior_data_cleanup. Simplify.
5286 (gdbsim_close_inferior, simulator_command)
5287 (sim_command_completer, _initialize_remote_sim): Update.
5288 (next_pid, INITIAL_PID): Move earlier.
5290 2019-07-10 Tom Tromey <tromey@adacore.com>
5292 * python/python-internal.h (create_thread_object): Return
5294 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
5295 * python/py-inferior.c (struct threadlist_entry): Add
5297 <thread_obj>: Now a gdbpy_ref.
5298 (thread_to_thread_object): Update.
5299 (add_thread_object): Use new.
5300 (delete_thread_object): Use delete.
5301 (infpy_threads): Update.
5302 (py_free_inferior): Update. Construct "inf_obj" after acquiring
5305 2019-07-10 Tom Tromey <tromey@adacore.com>
5307 * valops.c (value_cast): Specialize error message for Ada.
5309 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5311 * breakpoint.c (breakpoint_1): Update doc and parameter names.
5313 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5315 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
5316 bpstat_should_step): Return bool, adjust comments.
5317 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
5318 bpstat_should_step): Likewise.
5320 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5322 * features/Makefile: Use feature target descriptions for Arm.
5323 * features/arm/arm-core.c: Generate new file.
5324 * features/arm/arm-fpa.c: Likewise.
5325 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
5326 * features/arm/arm-m-profile.c: Likewise.
5327 * features/arm/arm-vfpv2.c: Likewise.
5328 * features/arm/arm-vfpv3.c: Likewise.
5329 * features/arm/xscale-iwmmxt.c: Likewise.
5330 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
5332 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5334 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
5337 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5339 * features/aarch64-pauth.c: Regenerate.
5341 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5343 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5345 (bpstat_what): Use false instead of 0.
5347 2019-07-09 Pedro Alves <palves@redhat.com>
5349 * break-catch-throw.c (is_exception_catchpoint): New.
5350 * breakpoint.c (print_one_breakpoint_location): New parameter
5351 'raw_loc'. Handle it. Use
5352 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5353 looking at the breakpoint's type.
5354 (print_one_breakpoint): If handling "maint info breakpoints", also
5355 print locations of exception catchpoints.
5356 * breakpoint.h (is_exception_catchpoint): Declare.
5358 2019-07-09 Pedro Alves <palves@redhat.com>
5360 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5362 (allocate_location_exception_catchpoint): New.
5363 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5364 (initialize_throw_catchpoint_ops): Install
5365 allocate_location_exception_catchpoint as allocate_location
5367 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5368 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5370 (breakpoint_address_is_meaningful): Delete.
5371 (bl_address_is_meaningful): New.
5372 (breakpoint_locations_match): Adjust comment.
5373 (bp_location_from_bp_type): New, factored out of...
5374 (bp_location::bp_location(breakpoint *)): ... this.
5375 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5377 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5378 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5379 breakpoint_address_is_meaningful.
5380 (bp_locations_compare): Adjust comment.
5381 (update_global_location_list): Use bl_address_is_meaningful
5382 instead of breakpoint_address_is_meaningful.
5383 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5385 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5386 * python/py-breakpoint.c (bppy_get_location): No longer check
5387 whether location is null.
5389 2019-07-09 Pedro Alves <palves@redhat.com>
5392 * breakpoint.c (print_one_breakpoint_location): Remove
5393 single-location assert.
5395 2019-07-09 Tom Tromey <tom@tromey.com>
5397 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5398 * configure: Rebuild.
5399 * configure.ac: Change common to gdbsupport.
5400 * gdbsupport: Rename from common.
5401 * acinclude.m4: Change common to gdbsupport.
5402 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5403 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5405 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5406 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5407 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5408 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5409 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5410 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5411 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5412 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5413 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5414 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5415 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5416 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5417 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5418 coff-pe-read.c, command.h, compile/compile-c-support.c,
5419 compile/compile-c.h, compile/compile-cplus-symbols.c,
5420 compile/compile-cplus-types.c, compile/compile-cplus.h,
5421 compile/compile-loc2c.c, compile/compile.c, completer.c,
5422 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5423 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5424 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5425 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5426 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5427 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5428 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5429 features/aarch64-core.c, features/aarch64-fpu.c,
5430 features/aarch64-pauth.c, features/aarch64-sve.c,
5431 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5432 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5433 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5434 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5435 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5436 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5437 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5438 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5439 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5440 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5441 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5442 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5443 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5444 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5445 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5446 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5447 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5448 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5449 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5450 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5451 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5452 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5453 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5454 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5455 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5456 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5457 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5458 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5459 minsyms.c, mips-linux-tdep.c, namespace.h,
5460 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5461 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5462 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5463 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5464 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5465 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5466 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5467 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5468 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5469 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5470 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5471 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5472 procfs.c, producer.c, progspace.h, psymtab.h,
5473 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5474 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5475 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5476 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5477 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5478 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5479 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5480 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5481 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5482 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5483 target-memory.c, target.c, target.h, target/waitstatus.c,
5484 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5485 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5486 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5487 unittests/array-view-selftests.c,
5488 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5489 unittests/common-utils-selftests.c,
5490 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5491 unittests/format_pieces-selftests.c,
5492 unittests/function-view-selftests.c,
5493 unittests/lookup_name_info-selftests.c,
5494 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5495 unittests/mkdir-recursive-selftests.c,
5496 unittests/observable-selftests.c,
5497 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5498 unittests/parse-connection-spec-selftests.c,
5499 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5500 unittests/scoped_fd-selftests.c,
5501 unittests/scoped_mmap-selftests.c,
5502 unittests/scoped_restore-selftests.c,
5503 unittests/string_view-selftests.c, unittests/style-selftests.c,
5504 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5505 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5506 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5507 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5508 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5509 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5511 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5513 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5515 (decode_digits_ordinary): Set explicit_line field in sal.
5516 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5517 symtab_and_line that was set on an explicit line number in
5518 assembler code. Do always update the recorded symtab and line if
5519 we do skip the prologue.
5521 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5523 * breakpoint.c (set_breakpoint_location_function): Remove
5524 explicit_loc parameter.
5525 (momentary_breakpoint_from_master): Update call to
5526 set_breakpoint_location_function.
5527 (add_location_to_breakpoint): Likewise.
5529 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5531 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5532 required features based on default bfd type when no specific bfd
5535 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5537 * NEWS: Mention that GDB printf and eval commands can now print
5538 C-style and Ada-style convenience var strings without
5539 calling the inferior.
5540 * printcmd.c (printf_c_string): Locally print GDB internal var
5541 instead of transiting via the inferior.
5542 (printf_wide_c_string): Likewise.
5544 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5546 PR breakpoints/25011
5547 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5549 2019-07-04 Tom Tromey <tom@tromey.com>
5552 * tui/tui-winsource.c (tui_clear_source_content): Update.
5553 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5554 (tui_update_breakpoint_info): Update.
5555 (tui_set_exec_info_content): Update.
5556 * tui/tui-source.c (tui_set_source_content_nil): Update.
5557 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5559 * tui/tui-data.h (enum tui_bp_flag): New.
5560 (tui_bp_flags): New enum flags type.
5561 (struct tui_source_element) <break_mode>: Change type. Rename
5563 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5564 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5566 * tui/tui-winsource.h: Fix comment.
5568 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5570 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5571 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5572 (store_fpregs_to_thread)
5573 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5574 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5575 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5576 (IWMMXT_REGS_SIZE): Add define.
5577 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5578 (fetch_vfp_regs, store_vfp_regs)
5579 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5580 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5582 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5584 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5586 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5587 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5588 (ARM_INT_REGISTER_SIZE): ...to this.
5589 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5590 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5591 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5592 (arm_linux_collect_gregset, supply_nwfpe_register)
5593 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5595 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5596 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5597 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5598 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5599 (arm_return_in_memory, arm_store_return_value)
5600 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5601 (arm_record_ld_st_multiple): Likewise.
5602 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5603 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5605 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5607 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5608 AARCH64_DISPLACED_MODIFIED_INSNS.
5609 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5610 (aarch64_displaced_step_copy_insn): Likewise.
5611 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5612 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5613 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5614 ARM_DISPLACED_MODIFIED_INSNS.
5615 * arm-tdep.c (arm_gdbarch_init): Likewise.
5616 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5617 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5618 (struct arm_displaced_step_closure): Use
5619 ARM_DISPLACED_MODIFIED_INSNS.
5621 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5623 * features/Makefile: Remove unused xml files.
5624 * features/aarch64.xml: Remove.
5625 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5626 * features/i386/amd64-avx-avx512.xml: Remove.
5627 * features/i386/amd64-avx-linux.xml: Remove.
5628 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5629 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5630 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5631 * features/i386/amd64-avx-mpx.xml: Remove.
5632 * features/i386/amd64-avx.xml: Remove.
5633 * features/i386/amd64-linux.xml: Remove.
5634 * features/i386/amd64-mpx-linux.xml: Remove.
5635 * features/i386/amd64-mpx.xml: Remove.
5636 * features/i386/amd64.xml: Remove.
5637 * features/i386/i386-avx-avx512-linux.xml: Remove.
5638 * features/i386/i386-avx-avx512.xml: Remove.
5639 * features/i386/i386-avx-linux.xml: Remove.
5640 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5641 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5642 * features/i386/i386-avx-mpx-linux.xml: Remove.
5643 * features/i386/i386-avx-mpx.xml: Remove.
5644 * features/i386/i386-avx.xml: Remove.
5645 * features/i386/i386-linux.xml: Remove.
5646 * features/i386/i386-mmx-linux.xml: Remove.
5647 * features/i386/i386-mmx.xml: Remove.
5648 * features/i386/i386-mpx-linux.xml: Remove.
5649 * features/i386/i386-mpx.xml: Remove.
5650 * features/i386/i386.xml: Remove.
5651 * features/i386/x32-avx-avx512-linux.xml: Remove.
5652 * features/i386/x32-avx-linux.xml: Remove.
5653 * features/i386/x32-linux.xml: Remove.
5655 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5657 * regformats/aarch64.dat: Remove.
5658 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5659 * regformats/i386/amd64-avx-linux.dat: Remove.
5660 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5661 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5662 * regformats/i386/amd64-linux.dat: Remove.
5663 * regformats/i386/amd64-mpx-linux.dat: Remove.
5664 * regformats/i386/amd64.dat: Remove.
5665 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5666 * regformats/i386/i386-avx-linux.dat: Remove.
5667 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5668 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5669 * regformats/i386/i386-linux.dat: Remove.
5670 * regformats/i386/i386-mmx-linux.dat: Remove.
5671 * regformats/i386/i386-mpx-linux.dat: Remove.
5672 * regformats/i386/i386.dat: Remove.
5673 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5674 * regformats/i386/x32-avx-linux.dat: Remove.
5675 * regformats/i386/x32-linux.dat: Remove.
5677 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5679 * aarch64-tdep.c: Remove xml self tests.
5680 * amd64-linux-tdep.c: Likewise.
5681 * amd64-tdep.c: Likewise.
5682 * i386-linux-tdep.c: Likewise.
5683 * i386-tdep.c: Likewise.
5685 2019-07-03 Pedro Alves <palves@redhat.com>
5688 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5689 (pipe_cmd_option_defs): New.
5690 (make_pipe_cmd_options_def_group): New.
5691 (pipe_command): Use gdb::option::process_options.
5692 (pipe_command_completer): New function.
5693 (_initialize_cli_cmds): Install completer for "pipe" command.
5695 2019-07-03 Pedro Alves <palves@redhat.com>
5697 * cli/cli-option.c (union option_value) <string>: New field.
5698 (struct option_def_and_value): Add ctor, move ctor, dtor and
5699 use DISABLE_COPY_AND_ASSIGN.
5700 (option_def_and_value::clear_value): New.
5701 (parse_option, save_option_value_in_ctx, get_val_type_str)
5702 (add_setshow_cmds_for_options): Handle var_string.
5703 * cli-option.h (union option_def::var_address) <string>: New
5705 (struct string_option_def): New.
5706 * maint-test-options.c (struct test_options_opts): Add default
5707 ctor and use DISABLE_COPY_AND_ASSIGN.
5708 <string_opt>: New field.
5709 (test_options_opts::~test_options_opts): New.
5710 (test_options_opts::dump): Also dump "-string".
5711 (test_options_option_defs): Install "string.
5713 2019-07-03 Pedro Alves <palves@redhat.com>
5715 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5716 option_value with a null enumeration.
5717 (complete_options): Save the option values in the context.
5718 (save_option_value_in_ctx): New, factored out from ...
5719 (process_options): ... here.
5720 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5722 * maint-test-options.c (test_options_opts::dump): New, factored
5724 (maintenance_test_options_command_mode): ... here.
5725 (maintenance_test_options_command_completion_result): Delete.
5726 (maintenance_test_options_command_completion_text): Update
5728 (maintenance_show_test_options_completion_result): Change
5729 prototype. Just print
5730 maintenance_test_options_command_completion_text.
5731 (save_completion_result): New.
5732 (maintenance_test_options_completer_mode): Pass options context to
5733 complete_options, and then save a dump.
5734 (_initialize_maint_test_options): Use add_cmd to install "maint
5735 show test-options-completion-result".
5737 2019-07-03 Pedro Alves <palves@redhat.com>
5739 * NEWS (New commands): Mention "with" and "maint with".
5740 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5741 (with_command, with_command_completer): New.
5742 (pipe_command): Adjust to new repeat_previous
5744 (_initialize_cli_cmds): Install the "with" command and its "w"
5746 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5748 * cli/cli-setshow.c (parse_cli_var_uinteger)
5749 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5750 argument strings for all var_types.
5751 (get_setshow_command_value_string): New, factored out from ...
5752 (do_show_command): ... this.
5753 * cli/cli-setshow.h: Include <string>.
5754 (get_setshow_command_value_string): Declare.
5755 * command.h (repeat_previous): Now returns const char *. Adjust
5757 * maint.c: Include "cli/cli-cmds.h".
5758 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5759 (_initialize_maint_cmds): Register the "maintenance with" command.
5760 * top.c (repeat_previous): Move bits from pipe_command here:
5761 Return the saved command line, if any; error out if there's no
5762 command to relaunch.
5764 2019-07-03 Pedro Alves <palves@redhat.com>
5766 * NEWS (New commands): Mention "maint set/show test-settings"
5767 instead of "maint test-settings".
5768 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5769 (maintenance_test_settings_set_list): Rename to ...
5770 (maintenance_set_test_settings_list): ... this.
5771 (maintenance_test_settings_show_list): Rename to ...
5772 (maintenance_show_test_settings_list): ... this.
5773 (maintenance_test_settings_cmd): Delete.
5774 (maintenance_test_settings_set_cmd): ...
5775 (maintenance_set_test_settings_cmd): ... this.
5776 (maintenance_test_settings_show_cmd): ...
5777 (maintenance_show_test_settings_cmd): ... this.
5778 (maintenance_test_settings_show_value_cmd):
5779 (maintenance_show_test_settings_value_cmd): ... this.
5780 (_initialize_maint_test_settings): No longer install the "maint
5781 test-settings" prefix command. Rename "maint test-settings set"
5782 to "maint set test-settings", and "maint test-settings show" to
5783 "maint show test-settings". Adjust all subcommands.
5785 2019-07-03 Pedro Alves <palves@redhat.com>
5787 * maint-test-settings.c: Fix file's intro comment. Replace all
5788 references to "test-options" with references to "test-settings",
5791 2019-07-03 Pedro Alves <palves@redhat.com>
5793 * maint-test-settings.c (maintenance_test_settings_xxx)
5794 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5796 (maintenance_test_settings_enums): Use them.
5797 (maintenance_test_settings_enum): Default to
5798 maintenance_test_settings_xxx.
5799 (_initialize_maint_test_settings): Initialize
5800 MAINTENANCE_TEST_SETTINGS_FILENAME.
5802 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5804 * breakpoint.h (remove_breakpoints_inf): Change return type to
5805 void, move function documentation here.
5806 * breakpoint.c (remove_breakpoints_inf): Change return type to
5807 void, move function documentation to header.
5809 2019-07-02 Pedro Alves <palves@redhat.com>
5811 * NEWS (Completion improvements): Mention "info threads".
5812 * thread.c (struct info_threads_opts, info_threads_option_defs)
5813 (make_info_threads_options_def_group): New.
5814 (info_threads_command): Use gdb::option::process_options.
5815 (info_threads_command_completer): New.
5816 (_initialize_thread): Use gdb::option::build_help to build the
5817 help text for "info threads".
5819 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5821 * defs.h (generic_load): Move from here...
5822 * symfile.h (generic_load): ... to here. Rename name parameter
5824 * symfile.c (generic_load): Add comment.
5826 2019-07-01 Tom Tromey <tromey@adacore.com>
5829 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5830 declaration of without_params. Fix formatting.
5832 2019-07-01 Tom Tromey <tromey@adacore.com>
5834 * ada-exp.y (find_primitive_type): Update.
5835 * ada-lang.h (ada_lookup_symbol): Update.
5836 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5838 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5840 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5842 PR breakpoints/24541
5843 * gdbarch.c: Regenerate.
5844 * gdbarch.h: Regenerate.
5845 * gdbarch.sh: Add 'stap_adjust_register'.
5846 * i386-tdep.c: Include '<unordered_set>'.
5847 (i386_stap_adjust_register): New function.
5848 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5849 * stap-probe.c (stap_parse_register_operand): Call
5850 'gdbarch_stap_adjust_register'.
5852 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5855 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5856 * python/python.c (do_start_initialization): Use 'xmalloc'
5857 instead of 'PyMem_Malloc'.
5859 2019-06-28 Tom Tromey <tromey@adacore.com>
5861 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5864 2019-06-27 Tom Tromey <tromey@adacore.com>
5866 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5868 (arm_find_mapping_symbol, arm_record_special_symbol)
5869 (_initialize_arm_tdep): Update.
5870 (arm_objfile_data_free): Remove.
5872 2019-06-27 Tom Tromey <tromey@adacore.com>
5874 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5875 to cp_print_static_field.
5877 2019-06-26 Tom Tromey <tromey@adacore.com>
5879 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5880 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5883 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5885 * features/aarch64-core.c (create_feature_aarch64_core):
5887 * features/aarch64-core.xml: Add cpsr flags.
5889 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5891 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5892 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5894 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5896 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5898 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5900 (arm_record_special_symbol): Don't insert new symbol in sorted
5901 position, push it at the end.
5903 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5905 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5906 (arm_mapping_symbol_s): Remove.
5907 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5908 (arm_mapping_symbol_vec): New typedef.
5909 (struct arm_per_objfile): Add constructor.
5910 <section_maps>: Change type to
5911 std::unique_ptr<arm_mapping_symbol_vec[]>.
5912 (arm_compare_mapping_symbols): Remove.
5913 (arm_find_mapping_symbol): Adjust to section_maps type change.
5914 (arm_objfile_data_free): Call delete on arm_per_objfile.
5915 (arm_record_special_symbol): Adjust to section_maps type change.
5916 Allocate arm_per_objfile with new.
5918 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5920 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5921 with the command prefix.
5923 2019-06-25 Tom Tromey <tom@tromey.com>
5925 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5926 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5928 2019-06-25 Tom Tromey <tom@tromey.com>
5930 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5932 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5935 2019-06-25 Tom Tromey <tom@tromey.com>
5937 * tui/tui-winsource.c
5938 (tui_source_window_base::set_is_exec_point_at): Add check against
5941 2019-06-25 Tom Tromey <tom@tromey.com>
5943 * tui/tui-source.c (tui_set_source_content): Don't check before
5945 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5947 2019-06-25 Tom Tromey <tom@tromey.com>
5949 * tui/tui-winsource.h (tui_update_source_window_as_is)
5950 (tui_alloc_source_buffer, tui_line_is_displayed)
5951 (tui_addr_is_displayed): Change type of win_info.
5952 * tui/tui-winsource.c (tui_update_source_window_as_is)
5953 (tui_clear_source_content, tui_show_source_line)
5954 (tui_show_source_content, tui_source_window_base::refill)
5955 (tui_source_window_base::set_is_exec_point_at)
5956 (tui_source_window_base::set_is_exec_point_at)
5957 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5958 (tui_alloc_source_buffer, tui_line_is_displayed)
5959 (tui_addr_is_displayed): Change type of win_info. Update.
5960 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5961 (tui_source_window_base::do_make_visible_with_new_height):
5963 * tui/tui-source.c (tui_set_source_content)
5964 (tui_set_source_content_nil)
5965 (tui_source_window::do_scroll_vertical): Update.
5966 * tui/tui-layout.c (show_layout): Update.
5967 * tui/tui-disasm.c (tui_set_disassem_content)
5968 (tui_disasm_window::do_scroll_vertical): Update.
5969 * tui/tui-data.h (tui_win_content): Remove.
5970 (struct tui_gen_win_info) <content, content_size>: Remove.
5971 (struct tui_source_element): Add initializers and destructor.
5972 (union tui_which_element, struct tui_win_element): Remove.
5973 (struct tui_source_window_base) <content>: New field.
5974 (struct tui_data_window): Remove destructor.
5975 (tui_alloc_content, tui_free_win_content)
5976 (tui_free_all_source_wins_content): Don't declare.
5977 * tui/tui-data.c (tui_initialize_static_data): Update.
5978 (init_content_element, tui_alloc_content): Remove.
5979 (~tui_gen_win_info): Update.
5980 (~tui_data_window, tui_free_all_source_wins_content)
5981 (tui_free_win_content, free_content, free_content_elements):
5984 2019-06-25 Tom Tromey <tom@tromey.com>
5986 * tui/tui-winsource.h (tui_clear_source_content)
5987 (tui_erase_source_content, tui_show_source_content): Change type
5989 * tui/tui-winsource.c (tui_clear_source_content)
5990 (tui_erase_source_content, tui_show_source_content): Change type
5992 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5993 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5995 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5997 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5999 2019-06-25 Tom Tromey <tom@tromey.com>
6001 * tui/tui-winsource.c (tui_clear_source_content)
6002 (tui_source_window_base::set_is_exec_point_at): Update.
6003 * tui/tui-source.c (tui_set_source_content_nil): Update.
6004 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6006 * tui/tui-data.c (init_content_element): Update.
6008 2019-06-25 Tom Tromey <tom@tromey.com>
6010 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6011 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6012 * tui/tui-layout.c (init_and_make_win): Update.
6013 * tui/tui.h (enum tui_win_type): Update.
6014 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6015 tui_win_is_auxillary.
6016 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6017 tui_win_is_auxillary.
6019 2019-06-25 Tom Tromey <tom@tromey.com>
6021 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6022 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6023 (tui_delete_data_content_windows, tui_display_all_data)
6024 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6026 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6027 * tui/tui-regs.c (tui_last_regs_line_no)
6028 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6029 (tui_show_registers): Update.
6030 (tui_show_register_group): Return void. Update.
6031 (tui_display_registers_from, tui_display_reg_element_at_line)
6032 (tui_display_registers_from_line, tui_check_register_values):
6034 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6036 (struct tui_data_window) <regs_content>: Now a std::vector.
6037 <regs_content_count>: Remove.
6038 (tui_add_content_elements, tui_free_data_content): Don't declare.
6039 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6040 (init_content_element): Remove DATA_WIN case. Add assert.
6041 (tui_add_content_elements): Remove.
6042 (tui_data_window): Update.
6043 (tui_free_data_content): Remove.
6044 (free_content_elements): Remove DATA_WIN case.
6046 2019-06-25 Tom Tromey <tom@tromey.com>
6048 * tui/tui-data.c (tui_data_item_window): Update.
6049 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6050 * tui/tui-windata.c (tui_display_all_data)
6051 (tui_display_data_from_line): Update.
6052 (tui_check_data_values): Remove.
6053 * tui/tui-regs.c (tui_show_register_group)
6054 (tui_display_reg_element_at_line): Update.
6055 * tui/tui-hooks.c (tui_register_changed)
6056 (tui_refresh_frame_and_register_information): Call
6057 tui_check_register_values.
6058 * tui/tui-data.h (struct tui_data_window) <data_content,
6059 data_content_count, data_type>: Remove.
6060 (enum tui_data_type): Remove.
6062 * tui/tui-data.c (tui_data_window::clear_detail)
6063 (~tui_data_window): Update.
6065 2019-06-25 Tom Tromey <tom@tromey.com>
6067 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6069 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6070 Rename from tui_first_data_item_displayed. Update.
6071 (tui_data_window::refresh_all)
6072 (tui_data_window::do_scroll_vertical): Update.
6073 * tui/tui-data.h (struct tui_data_window)
6074 <first_data_item_displayed>: Declare new method.
6076 2019-06-25 Tom Tromey <tom@tromey.com>
6078 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6079 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6081 (tui_initialize_static_data): ...here.
6083 2019-06-25 Tom Tromey <tom@tromey.com>
6085 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6086 (tui_display_registers_from, tui_check_register_values): Update.
6087 (tui_display_register): Remove win_info parameter; update.
6088 (tui_get_register): Change type of parameters.
6089 * tui/tui-data.h (struct tui_data_element): Remove.
6090 (union tui_which_element) <data>: Remove.
6091 <data_window>: Change type.
6092 (struct tui_data_item_window): New.
6093 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6095 (~tui_data_item_window): New destructor.
6096 (free_content_elements): Remove DATA_ITEM_WIN case.
6098 2019-06-25 Tom Tromey <tom@tromey.com>
6100 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6103 2019-06-25 Tom Tromey <tom@tromey.com>
6105 * tui/tui-data.h (struct tui_command_element): Remove.
6106 (union tui_which_element) <command>: Remove.
6107 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6109 (free_content_elements): Remove CMD_WIN case.
6111 2019-06-25 Tom Tromey <tom@tromey.com>
6113 * tui/tui-layout.c (tui_set_layout): Update.
6114 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6115 * tui/tui-data.c (layout_def): Update.
6117 2019-06-25 Tom Tromey <tom@tromey.com>
6119 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6120 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6121 (tui_source_window_base::set_new_height): Update.
6122 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6124 (tui_set_locator_fullname, tui_set_locator_info)
6125 (tui_show_frame_info): Update.
6126 * tui/tui-source.c (tui_set_source_content)
6127 (tui_source_is_displayed): Update.
6128 * tui/tui-layout.c (show_source_disasm_command, show_data)
6129 (show_source_or_disasm_and_command): Update.
6130 * tui/tui-disasm.c (tui_set_disassem_content)
6131 (tui_get_begin_asm_address): Update.
6132 * tui/tui-data.h (struct tui_locator_element): Remove.
6133 (union tui_which_element) <locator>: Remove.
6134 (struct tui_locator_window): New.
6135 (tui_locator_win_info_ptr): Change return type.
6136 * tui/tui-data.c (_locator): Change type.
6137 (tui_locator_win_info_ptr): Change return type.
6138 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6139 (tui_alloc_content): Add assert.
6141 2019-06-25 Tom Tromey <tom@tromey.com>
6143 * tui/tui-winsource.c
6144 (tui_exec_info_window::maybe_allocate_content): New method.
6145 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6146 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6147 (make_source_or_disasm_window): Add cast.
6148 * tui/tui-data.h (union tui_which_element) <simple_string>:
6150 (struct tui_source_info): New.
6151 (struct tui_source_window_base) <execution_info>: Change type.
6152 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6153 case, and add assert.
6154 (tui_alloc_content): Add assert.
6156 2019-06-25 Tom Tromey <tom@tromey.com>
6158 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6159 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6160 * tui/tui-data.c (tui_alloc_win_info): Remove.
6162 2019-06-25 Tom Tromey <tom@tromey.com>
6164 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6165 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6168 2019-06-25 Tom Tromey <tom@tromey.com>
6170 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6171 make_visible_with_new_height method.
6172 (tui_win_info::make_visible_with_new_height): New method.
6173 (tui_source_window_base::do_make_visible_with_new_height)
6174 (tui_data_window::do_make_visible_with_new_height)
6175 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6176 (make_visible_with_new_height): Remove.
6177 (tui_resize_all, tui_adjust_win_heights): Use
6178 make_visible_with_new_height method.
6179 * tui/tui-data.h (struct tui_win_info)
6180 <do_make_visible_with_new_height, make_visible_with_new_height>:
6182 (struct tui_source_window_base, struct tui_data_window)
6183 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6186 2019-06-25 Tom Tromey <tom@tromey.com>
6188 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6190 (update_tab_width): Call update_tab_width method.
6191 * tui/tui-data.h (struct tui_win_info)
6192 (struct tui_source_window_base) <update_tab_width>: New methods.
6194 2019-06-25 Tom Tromey <tom@tromey.com>
6196 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6198 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6200 (tui_gen_win_info::make_visible): Update.
6201 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6203 * tui/tui-data.h (enum tui_box): New enum.
6204 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6206 2019-06-25 Tom Tromey <tom@tromey.com>
6208 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6209 init_and_make_win for EXEC_INFO_WIN.
6210 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6212 (struct tui_win_info) <~tui_win_info>: Inline.
6213 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6215 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6216 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6218 (tui_initialize_static_data): Update.
6219 (~tui_gen_win_info): Handle more cleanup here.
6220 (~tui_source_window_base): Delete "execution_info".
6221 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6223 2019-06-25 Tom Tromey <tom@tromey.com>
6225 * tui/tui-layout.c (make_command_window): Don't set
6227 (show_source_disasm_command): Call the reset method.
6228 (show_data): Don't set can_highlight. Call the reset method.
6229 (tui_gen_win_info::reset): Rename from init_gen_win_info
6230 (init_and_make_win): Simplify. Return tui_gen_win_info.
6231 (show_source_or_disasm_and_command): Call the reset method.
6232 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6233 (struct tui_cmd_window): Set can_highlight.
6235 2019-06-25 Tom Tromey <tom@tromey.com>
6237 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6239 (tui_make_visible, tui_make_invisible): Rewrite.
6240 (tui_win_info::make_visible): Remove.
6241 (tui_source_window_base::make_visible): Update.
6242 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6243 method. Moved from...
6244 (struct tui_win_info) <make_visible>: ...here.
6246 2019-06-25 Tom Tromey <tom@tromey.com>
6248 * tui/tui-winsource.c
6249 (tui_source_window_base::do_scroll_horizontal): Remove direction
6251 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6252 direction parameter.
6253 * tui/tui-win.c (tui_win_info::forward_scroll)
6254 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6255 (tui_win_info::right_scroll): Update.
6256 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6257 direction parameter.
6258 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6259 direction parameter.
6260 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6261 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
6262 Remove direction parameter.
6263 (struct tui_source_window_base, struct tui_source_window)
6264 (struct tui_disasm_window, struct tui_data_window)
6265 (struct tui_cmd_window): Update.
6267 2019-06-25 Tom Tromey <tom@tromey.com>
6269 * tui/tui-winsource.h (tui_set_exec_info_content)
6270 (tui_show_exec_info_content, tui_erase_exec_info_content)
6271 (tui_clear_exec_info_content, tui_update_exec_info): Change
6272 argument to tui_source_window_base.
6273 * tui/tui-winsource.c (tui_set_exec_info_content)
6274 (tui_show_exec_info_content, tui_erase_exec_info_content)
6275 (tui_clear_exec_info_content, tui_update_exec_info): Change
6276 argument to tui_source_window_base.
6278 2019-06-25 Tom Tromey <tom@tromey.com>
6280 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
6281 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
6283 2019-06-25 Tom Tromey <tom@tromey.com>
6285 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
6288 2019-06-25 Tom Tromey <tom@tromey.com>
6290 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
6292 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
6294 * tui/tui-source.c (tui_set_source_content): Update.
6295 * tui/tui-disasm.c (tui_set_disassem_content): Update.
6297 2019-06-25 Tom Tromey <tom@tromey.com>
6299 * tui/tui-win.c (window_name_completer, tui_set_focus)
6300 (tui_all_windows_info): Use name method.
6301 * tui/tui-data.h (struct tui_gen_win_info)
6302 (struct tui_source_window, struct tui_disasm_window)
6303 (struct tui_data_window, struct tui_cmd_window) <name>: New
6305 (tui_win_name): Don't declare.
6306 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
6307 (tui_win_name): Remove.
6309 2019-06-25 Tom Tromey <tom@tromey.com>
6311 * tui/tui-winsource.h (tui_update_source_window)
6312 (tui_update_source_window_as_is): Change parameter type.
6313 * tui/tui-winsource.c (tui_update_source_window): Change win_info
6314 to be a tui_source_window_base.
6315 (tui_update_source_window_as_is): Likewise.
6316 * tui/tui-win.c (make_visible_with_new_height): Update.
6318 2019-06-25 Tom Tromey <tom@tromey.com>
6320 * tui/tui-winsource.c (tui_erase_source_content)
6321 (tui_show_source_content, tui_show_exec_info_content)
6322 (tui_erase_exec_info_content): Use refresh_window method.
6323 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
6324 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
6325 from tui_refresh_win.
6326 (tui_data_window::refresh_window): New method.
6327 (tui_win_info::refresh, tui_source_window_base::refresh)
6328 (tui_refresh_all): Use refresh_window method.
6329 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
6331 * tui/tui-regs.c (tui_display_register): Call refresh_window
6333 * tui/tui-layout.c (show_source_disasm_command)
6334 (show_source_or_disasm_and_command): Call refresh_window method.
6335 * tui/tui-data.h (struct tui_gen_win_info)
6336 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
6339 2019-06-25 Tom Tromey <tom@tromey.com>
6341 * tui/tui.c (tui_rl_other_window, tui_enable)
6342 (tui_is_window_visible, tui_get_command_dimension): Update.
6343 * tui/tui-winsource.c (tui_update_source_window_as_is)
6344 (tui_clear_source_content, tui_erase_source_content)
6345 (tui_show_source_line, tui_source_window_base::refill)
6346 (tui_source_window_base::do_scroll_horizontal)
6347 (tui_source_window_base::set_is_exec_point_at)
6348 (tui_update_breakpoint_info, tui_set_exec_info_content)
6349 (tui_alloc_source_buffer, tui_line_is_displayed)
6350 (tui_addr_is_displayed): Update.
6351 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6352 (tui_check_and_display_highlight_if_needed)
6353 (tui_win_info::make_visible, tui_win_info::refresh)
6354 (tui_refresh_all): Update.
6355 * tui/tui-windata.c (tui_first_data_item_displayed)
6356 (tui_delete_data_content_windows, tui_erase_data_content)
6357 (tui_display_all_data, tui_data_window::refresh_all)
6358 (tui_check_data_values): Update.
6359 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6360 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6361 (tui_win_info::backward_scroll, tui_refresh_all_win)
6362 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6363 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6364 (tui_source_window_base::set_new_height)
6365 (tui_data_window::set_new_height)
6366 (make_invisible_and_set_new_height)
6367 (make_visible_with_new_height, new_height_ok)
6368 (parse_scrolling_args): Update.
6369 * tui/tui-stack.c (tui_show_frame_info): Update.
6370 * tui/tui-source.c (tui_set_source_content)
6371 (tui_set_source_content_nil, tui_source_is_displayed)
6372 (tui_source_window::do_scroll_vertical): Update.
6373 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6374 (tui_display_registers_from, tui_display_reg_element_at_line)
6375 (tui_check_register_values, tui_reg_command): Update.
6376 * tui/tui-layout.c (tui_default_win_height)
6377 (show_source_disasm_command, show_data, init_and_make_win)
6378 (show_source_or_disasm_and_command): Update.
6379 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6380 (tui_redisplay_readline, tui_mld_flush)
6381 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6383 * tui/tui-disasm.c (tui_set_disassem_content)
6384 (tui_disasm_window::do_scroll_vertical): Update.
6385 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6387 (struct tui_win_info): Derive from tui_gen_win_info.
6388 <~tui_win_info>: Mark as override.
6389 <generic>: Remove member.
6390 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6391 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6392 (~tui_data_window, ~tui_win_info)
6393 (tui_free_all_source_wins_content): Update.
6394 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6396 2019-06-25 Tom Tromey <tom@tromey.com>
6398 * tui/tui-layout.c (init_and_make_win): Use new.
6399 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6400 destructor, initializers.
6401 (tui_alloc_generic_win_info): Don't declare.
6402 * tui/tui-data.c (_locator): Add argument to constructor.
6403 (source_win, disasm_win): New globals.
6404 (exec_info): Remove.
6405 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6407 (tui_alloc_generic_win_info): Remove.
6408 (init_content_element): Use new.
6409 (tui_win_info::tui_win_info): Update.
6410 (free_content_elements) <case DATA_WIN>: Use delete.
6412 2019-06-25 Tom Tromey <tom@tromey.com>
6414 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6415 * tui/tui-windata.c (tui_first_data_item_displayed)
6416 (tui_delete_data_content_windows): Update.
6417 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6418 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6419 (tui_display_registers_from, tui_check_register_values): Update.
6420 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6422 * tui/tui-data.c (init_content_element): Update. Allocate the new
6424 (tui_free_data_content): Update.
6425 (free_content_elements) <case DATA_WIN>: Free the window.
6427 2019-06-25 Tom Tromey <tom@tromey.com>
6429 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6431 * tui/tui-layout.c (make_command_window)
6432 (show_source_disasm_command, show_data, init_and_make_win)
6433 (show_source_or_disasm_and_command): Update.
6434 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6436 <can_highight, is_highlighted>: Now bool.
6437 (tui_set_win_highlight): Don't declare.
6438 * tui/tui-data.c (tui_set_win_highlight): Remove.
6440 2019-06-25 Tom Tromey <tom@tromey.com>
6442 * tui/tui-wingeneral.c (make_visible): Remove check of window
6445 2019-06-25 Tom Tromey <tom@tromey.com>
6447 * tui/tui-win.c (tui_win_info::max_height)
6448 (tui_cmd_window::max_height): New methods.
6449 (new_height_ok): Call max_height.
6450 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6451 <max_height>: New method.
6453 2019-06-25 Tom Tromey <tom@tromey.com>
6455 * tui/tui-win.c (tui_source_window_base::set_new_height)
6456 (tui_data_window::set_new_height): New methods.
6457 (make_invisible_and_set_new_height): Call set_new_height method.
6458 * tui/tui-data.h (struct tui_win_info)
6459 (struct tui_source_window_base, struct tui_data_window)
6460 <set_new_height>: New method.
6462 2019-06-25 Tom Tromey <tom@tromey.com>
6464 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6465 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6466 tui_refresh_data_win.
6467 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6469 (tui_refresh_all_win): Call the refresh_all method.
6470 (tui_set_focus): Likewise.
6471 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6472 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6475 2019-06-25 Tom Tromey <tom@tromey.com>
6477 * tui/tui-winsource.h (tui_refill_source_window)
6478 (tui_set_is_exec_point_at): Don't declare.
6479 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6480 (tui_source_window_base::refill): Rename from
6481 tui_refill_source_window.
6482 (tui_source_window_base::do_scroll_horizontal): Update.
6483 (tui_source_window_base::set_is_exec_point_at): Rename from
6484 tui_set_is_exec_point_at.
6485 (tui_update_all_breakpoint_info): Update.
6486 * tui/tui-stack.c (tui_show_frame_info): Update.
6487 * tui/tui-layout.c (show_data): Add cast.
6488 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6489 * tui/tui-data.h (struct tui_source_window_base) <refill,
6490 set_is_exec_point_at>: New methods.
6491 (tui_source_windows, tui_add_to_source_windows): Update types.
6492 (tui_add_to_source_windows): Remove redundant declaration.
6493 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6494 (tui_source_windows): Change return type.
6495 (tui_clear_source_windows_detail): Update.
6496 (tui_add_to_source_windows): Change type of parameter.
6497 (tui_free_all_source_wins_content): Update.
6499 2019-06-25 Tom Tromey <tom@tromey.com>
6501 * tui/tui-wingeneral.c (tui_win_info::refresh)
6502 (tui_source_window_base::refresh): New methods.
6503 (tui_refresh_all): Call the refresh method.
6504 * tui/tui-data.h (struct tui_win_info)
6505 (struct tui_source_window_base) <refresh>: New method.
6507 2019-06-25 Tom Tromey <tom@tromey.com>
6509 * tui/tui.h (tui_is_window_visible): Return bool.
6510 * tui/tui.c (tui_is_window_visible): Return bool.
6511 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6512 (tui_make_visible, tui_make_invisible)
6513 (tui_win_info::make_visible)
6514 (tui_source_window_base::make_visible, make_all_visible)
6515 (tui_make_all_visible, tui_make_all_invisible): Update.
6516 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6517 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6519 (struct tui_win_info, struct tui_source_window_base)
6520 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6521 * tui/tui-data.c (tui_init_generic_part): Update.
6523 2019-06-25 Tom Tromey <tom@tromey.com>
6525 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6526 (tui_source_window_base::make_visible): New methods.
6527 (make_all_visible): Make method call.
6528 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6529 (struct tui_source_window_base, struct tui_cmd_window): Override
6531 (tui_win_is_source_type): Don't declare.
6532 * tui/tui-data.c (tui_win_is_source_type): Remove.
6534 2019-06-25 Tom Tromey <tom@tromey.com>
6536 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6539 2019-06-25 Tom Tromey <tom@tromey.com>
6541 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6542 Inline constructor. Add initializers for members.
6543 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6544 constructors; now inline in class.
6546 2019-06-25 Tom Tromey <tom@tromey.com>
6548 * tui/tui-regs.c (tui_show_registers): Update.
6549 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6551 * tui/tui-data.c (tui_data_window::clear_detail)
6552 (tui_data_window): Update.
6554 2019-06-25 Tom Tromey <tom@tromey.com>
6556 * tui/tui-windata.c (tui_display_all_data)
6557 (tui_display_data_from_line, tui_display_data_from)
6558 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6560 * tui/tui-regs.c (tui_last_regs_line_no)
6561 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6562 (tui_show_registers, tui_show_register_group)
6563 (tui_display_registers_from, tui_display_reg_element_at_line)
6564 (tui_display_registers_from_line, tui_check_register_values)
6565 (tui_reg_next, tui_reg_prev): Update.
6566 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6567 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6569 (struct tui_win_info) <detail>: Remove. Add new fields from
6571 (TUI_DATA_WIN): Add cast.
6572 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6573 (~tui_data_window): Simplify.
6575 2019-06-25 Tom Tromey <tom@tromey.com>
6577 * tui/tui-layout.c (show_source_disasm_command)
6578 (show_source_or_disasm_and_command): Update.
6579 * tui/tui-io.c (update_cmdwin_start_line)
6580 (tui_redisplay_readline): Update.
6581 * tui/tui-data.h (struct tui_command_info): Remove.
6582 (struct tui_win_info) <detail>: Remove command_info member.
6583 (struct tui_data_window) <start_line>: New member, from
6585 (TUI_CMD_WIN): Add casts.
6587 2019-06-25 Tom Tromey <tom@tromey.com>
6589 * tui/tui-winsource.c (tui_update_source_window)
6590 (tui_refill_source_window)
6591 (tui_source_window_base::do_scroll_horizontal)
6592 (tui_update_breakpoint_info, tui_set_exec_info_content)
6593 (tui_show_exec_info_content, tui_erase_exec_info_content)
6594 (tui_clear_exec_info_content): Update.
6595 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6597 * tui/tui-win.c (make_invisible_and_set_new_height)
6598 (make_visible_with_new_height): Update.
6599 * tui/tui-source.c (tui_set_source_content)
6600 (tui_show_symtab_source): Update.
6601 * tui/tui-layout.c (extract_display_start_addr)
6602 (show_source_disasm_command, show_data)
6603 (make_source_or_disasm_window)
6604 (show_source_or_disasm_and_command): Update.
6605 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6606 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6608 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6609 to tui_source_window_base.
6610 (struct tui_win_info) <detail>: Remove source_info member.
6611 (struct tui_source_window_base) <has_locator>: Inline.
6612 Move contents from tui_source_info; rename has_locator member to
6614 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6615 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6617 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6619 (tui_free_all_source_wins_content): Cast to
6620 tui_source_window_base.
6622 2019-06-25 Tom Tromey <tom@tromey.com>
6624 * tui/tui-win.c (make_invisible_and_set_new_height)
6625 (make_visible_with_new_height): Call has_locator method.
6626 * tui/tui-layout.c (show_source_disasm_command, show_data)
6627 (show_source_or_disasm_and_command): Update for bool change.
6628 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6629 (tui_win_info) <has_locator>: New method.
6630 (struct tui_source_window_base) <has_locator>: New method.
6631 (tui_win_has_locator): Don't declare.
6632 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6633 from tui_win_has_locator.
6634 (tui_source_window_base): Use false, not FALSE.
6636 2019-06-25 Tom Tromey <tom@tromey.com>
6638 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6639 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6640 clear_detail method directly.
6641 (tui_clear_win_detail): Remove.
6643 2019-06-25 Tom Tromey <tom@tromey.com>
6645 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6646 "this", not TUI_DISASM_WIN.
6648 2019-06-25 Tom Tromey <tom@tromey.com>
6650 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6652 * tui/tui-winsource.c
6653 (tui_source_window_base::do_scroll_horizontal): Rename from
6654 tui_horizontal_source_scroll.
6655 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6656 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6657 from tui_vertical_data_scroll.
6658 * tui/tui-win.h (tui_scroll): Don't declare.
6659 * tui/tui-win.c (tui_win_info::forward_scroll)
6660 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6661 (tui_win_info::right_scroll): Rename and update.
6662 (tui_scroll_forward_command, tui_scroll_backward_command)
6663 (tui_scroll_left_command, tui_scroll_right_command): Update.
6664 (tui_scroll): Remove.
6665 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6666 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6667 from tui_vertical_source_scroll.
6668 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6669 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6670 from tui_vertical_disassem_scroll.
6671 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6672 do_scroll_horizontal>: New methods.
6673 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6675 (struct tui_source_window_base): Add do_scroll_horizontal.
6676 (struct tui_source_window, struct tui_disasm_window): Add
6678 (struct tui_data_window, struct tui_cmd_window): Add
6679 do_scroll_horizontal and do_scroll_vertical.
6680 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6682 2019-06-25 Tom Tromey <tom@tromey.com>
6684 * tui/tui-data.h (struct tui_source_window_base): New struct.
6685 (struct tui_source_window): Derive from tui_source_window_base.
6686 (struct tui_disasm_window): New struct.
6687 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6688 from tui_source_window::clear_detail.
6689 (tui_source_window_base): Rename from tui_source_window.
6690 (~tui_source_window_base): Rename from ~tui_source_window.
6691 (tui_alloc_win_info): Create a tui_disasm_window.
6693 2019-06-25 Tom Tromey <tom@tromey.com>
6695 * tui/tui-data.h (struct tui_source_window)
6696 (struct tui_data_window): Declare destructors.
6697 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6699 (tui_win_info): Simplify.
6701 2019-06-25 Tom Tromey <tom@tromey.com>
6703 * tui/tui-winsource.c (tui_display_main)
6704 (tui_update_source_windows_with_addr)
6705 (tui_update_all_breakpoint_info): Update.
6706 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6707 (new_height_ok, parse_scrolling_args): Update.
6708 * tui/tui-stack.c (tui_show_frame_info): Update.
6709 * tui/tui-data.h (struct tui_list): Remove.
6710 (tui_source_windows): Return a reference to a std::vector.
6711 * tui/tui-data.c (source_windows): Now a std::vector.
6712 (tui_source_windows): Change return type.
6713 (tui_clear_source_windows): Rewrite.
6714 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6715 (tui_free_all_source_wins_content): Rewrite.
6717 2019-06-25 Tom Tromey <tom@tromey.com>
6719 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6720 (struct tui_data_window, struct tui_cmd_window): Declare
6721 clear_detail method.
6722 * tui/tui-data.c (tui_source_window::clear_detail)
6723 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6725 (tui_clear_win_detail): Simplify.
6727 2019-06-25 Tom Tromey <tom@tromey.com>
6729 * tui/tui-layout.c (make_source_window, make_disasm_window)
6730 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6731 Return the new window.
6732 (show_source_disasm_command, show_data)
6733 (show_source_or_disasm_and_command): Update.
6735 2019-06-25 Tom Tromey <tom@tromey.com>
6737 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6738 parameter. Return the new window.
6739 (show_source_disasm_command): Update and remove NULL check.
6740 (show_source_or_disasm_and_command): Update.
6742 2019-06-25 Tom Tromey <tom@tromey.com>
6744 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6746 2019-06-25 Tom Tromey <tom@tromey.com>
6748 * tui/tui-data.h (struct tui_win_info): Make constructor
6749 protected. Make destructor virtual. Add initializers.
6750 (tui_source_window, tui_data_window, tui_cmd_window): New
6752 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6753 constructor. Add "type" parameter.
6754 (tui_source_window, tui_data_window, tui_cmd_window): New
6756 (tui_alloc_win_info): Instantiate the appropriate subclass.
6758 2019-06-25 Tom Tromey <tom@tromey.com>
6760 * tui/tui-win.c (tui_resize_all): Use delete.
6761 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6763 (tui_free_window): Don't declare.
6764 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6767 2019-06-25 Tom Tromey <tom@tromey.com>
6769 * tui/tui-data.h (struct tui_win_info): Add constructor.
6770 * tui/tui-data.c (tui_alloc_win_info): Use new.
6771 (tui_free_window): Use delete.
6773 2019-06-22 Tom Tromey <tom@tromey.com>
6775 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6777 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6779 2019-06-22 Tom Tromey <tom@tromey.com>
6781 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6783 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6785 2019-06-22 Tom de Vries <tdevries@suse.de>
6787 * dwarf2read.c (create_addrmap_from_aranges)
6788 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6791 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6793 * dwarf2read.h (dwarf2_section_info_def): Remove.
6794 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6795 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6796 std::vector<dwarf2_section_info>.
6797 (struct dwo_file) <~dwo_file>: Remove.
6798 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6800 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6801 (dwarf2_read_debug_names): Likewise.
6802 (create_debug_types_hash_table): Change parameter type to
6803 array_view, adjust code accordingly.
6804 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6805 (partial_die_info::fixup): Likewise.
6806 (determine_prefix): Likewise.
6807 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6809 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6811 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6813 <~dwo_file>: Remove call to gdb_bfd_unref.
6814 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6815 gdb_bfd_ref_ptr::get.
6817 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6819 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6821 * dwarf2read.c (struct dwo_file): Initialize fields.
6823 (free_dwo_file): Remove, move content to ~dwo_file.
6824 (struct dwo_file_deleter): Remove.
6825 (dwo_file_up>: Remove custom deleter.
6826 (free_dwo_files): Remove.
6827 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6829 (process_skeletonless_type_units): Call unique_ptr::get.
6830 (allocate_dwo_file_hash_table): Add deleter to created hash
6831 table. Change return type to htab_up.
6832 (lookup_dwo_file_slot): Don't memset dwo_file, call
6834 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6835 (create_dwo_unit_in_dwp_v2): Likewise.
6836 (open_and_init_dwo_file): Likewise.
6837 (free_dwo_file_from_slot): Remove.
6839 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6841 * dwarf2read.h (struct dwarf2_section_info) <readin,
6842 is_virtual>: Change type to bool.
6843 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6846 2019-06-19 Tom Tromey <tom@tromey.com>
6848 * tui/tui-data.h (tui_init_content_element): Don't declare.
6850 2019-06-19 Tom Tromey <tom@tromey.com>
6852 * tui/tui-data.h (tui_init_win_info): Don't declare.
6854 2019-06-19 Tom de Vries <tdevries@suse.de>
6856 * dwarf2read.h (abstract_to_concrete): Change type to
6857 std::unordered_map<sect_offset, std::vector<sect_offset>,
6858 gdb::hash_enum<sect_offset>>.
6860 2019-06-19 Tom Tromey <tromey@adacore.com>
6862 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6863 EVAL_AVOID_SIDE_EFFECTS specially.
6865 2019-06-19 Tom Tromey <tromey@adacore.com>
6867 * source-cache.c (highlighter): New global.
6868 (source_cache::get_source_lines): Create a highlighter on demand.
6870 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6872 * defs.h (deprecated_interactive_hook): Delete declaration.
6873 * interps.c (clear_interpreter_hooks): Remove use of
6874 deprecated_interactive_hook.
6875 * top.c (deprecated_interactive_hook): Delete definition.
6876 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6878 2019-06-18 Tom de Vries <tdevries@suse.de>
6881 * dwarf2read.h (abstract_to_concrete): Change type from
6882 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6883 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6884 * dwarf2read.c (read_variable): Update.
6885 (dwarf2_fetch_die_loc_sect_off): Update.
6887 2019-06-17 Tom de Vries <tdevries@suse.de>
6890 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6891 accessing parent[parent_len - 1].
6893 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6896 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6897 call dtrace_process_dof with NULL dof.
6899 2019-06-16 Tom de Vries <tdevries@suse.de>
6902 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6904 2019-06-16 Tom Tromey <tom@tromey.com>
6906 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6907 (make_all_visible): Use address of member.
6909 2019-06-16 Tom Tromey <tom@tromey.com>
6911 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6912 (tui_free_window, free_content, free_content_elements): Remove
6914 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6916 * tui/tui-regs.c (tui_show_register_group)
6917 (tui_display_registers_from, tui_display_reg_element_at_line):
6918 Remove unnecessary cast.
6920 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6922 * linux-nat.c (normal_mask): Delete.
6923 (_initialize_linux_nat): Don't initialise normal_mask.
6925 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6928 * dwarf-index-write.h (write_psymtabs_to_index): Add
6929 dwz_basename parameter.
6930 * dwarf-index-write.c (write_gdbindex): Move file writing to
6931 write_gdbindex_1. Change return type void.
6932 (assert_file_size): Move up, remove filename parameter.
6933 (write_gdbindex_1): New function.
6934 (write_debug_names): Change return type to void, call
6936 (struct index_wip_file): New struct.
6937 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6938 file logic to index_wip_file. Write index for dwz file if
6940 (save_gdb_index_command): Pass basename of dwz file, if present.
6941 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6942 build-id of dwz file, if present.
6943 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6944 (dwarf2_get_dwz_file): Likewise.
6945 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6946 (dwarf2_get_dwz_file): Likewise.
6948 2019-06-16 Tom Tromey <tom@tromey.com>
6950 * coffread.c (process_coff_symbol): Use xstrdup.
6951 * value.c (create_internalvar): Use xstrdup.
6953 2019-06-16 Tom Tromey <tom@tromey.com>
6955 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6956 * breakpoint.c (stopin_command, stopat_command)
6957 (until_break_command, decode_location_default): Remove unnecessary
6959 * utils.c (subset_compare): Remove unnecessary cast.
6960 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6962 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6964 * infcmd.c (path_command): Remove unnecessary cast.
6965 * coffread.c (decode_type): Remove unnecessary cast.
6966 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6967 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6968 * tui/tui-stack.c (tui_show_locator_content)
6969 (tui_show_frame_info): Remove unnecessary cast.
6970 * tui/tui-win.c (tui_scroll_forward_command)
6971 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6972 (parse_scrolling_args): Remove unnecessary cast.
6973 * tui/tui-data.c (init_win_info, tui_del_window)
6974 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6975 (free_content_elements): Remove unnecessary cast.
6976 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6978 * tui/tui-source.c (tui_set_source_content)
6979 (tui_vertical_source_scroll): Remove unnecessary cast.
6980 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6982 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6983 * tui/tui-regs.c (tui_display_registers_from)
6984 (tui_display_register): Remove unnecessary cast.
6985 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6986 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6987 (make_visible): Remove unnecessary cast.
6988 * tui/tui-winsource.c (tui_erase_source_content)
6989 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6991 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6992 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6993 * stabsread.c (read_type, read_array_type, read_range_type):
6994 Remove unnecessary cast.
6995 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6996 (parse_symbol, parse_type, upgrade_type, parse_external)
6997 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6999 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7001 2019-06-16 Tom Tromey <tom@tromey.com>
7003 * tui/tui-data.c (tui_alloc_generic_win_info)
7004 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7007 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7008 Andrew Burgess <andrew.burgess@embecosm.com>
7010 * f-typeprint.c (f_print_type): Don't return early for not
7011 associated or not allocated types.
7012 (f_type_print_varspec_suffix): Add print_rank parameter and print
7013 ranks of array types in case they dangling.
7014 (f_type_print_base): Add print_rank parameter.
7016 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7018 * NEWS: Mention new MI commands.
7019 * break-catch-throw.c (enum exception_event_kind): Move to
7021 (print_mention_exception_catchpoint): Output text as a single
7023 (catch_exception_command_1): Rename to...
7024 (catch_exception_event): ...this, make non-static, update header
7025 command, and change some parameter types.
7026 (catch_catch_command): Update for changes to
7027 catch_exception_command_1.
7028 (catch_throw_command): Likewise.
7029 (catch_rethrow_command): Likewise.
7030 * breakpoint.c (enum exception_event_kind): Delete.
7031 * breakpoint.h (enum exception_event_kind): Moved here from
7032 break-catch-throw.c.
7033 (catch_exception_event): Declare.
7034 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7035 (mi_cmd_catch_throw): New function.
7036 (mi_cmd_catch_rethrow): New function.
7037 (mi_cmd_catch_catch): New function.
7038 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7039 'catch-catch' entries.
7040 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7041 (mi_cmd_catch_rethrow): Declare.
7042 (mi_cmd_catch_catch): Declare.
7044 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7046 * annotate.c (annotate_source_line): Change return type to void,
7047 update implementation to match.
7048 * annotate.h (annotate_source_line): Change return type to void,
7049 update header comment.
7050 * stack.c (print_frame_info): Don't change what frame information
7051 is printed based on whether annotations are on or not.
7053 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7055 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7056 (annotate_source): Make static.
7057 (annotate_source_line): Moved from source.c and renamed from
7058 identify_source_line. Update the return type.
7059 * annotate.h (annotate_source): Delete declaration.
7060 (annotate_source_line): Declaration moved from source.h, and
7061 renamed from identify_source_line. Return type updated.
7062 * source.c (identify_source_line): Moved to annotate.c and renamed
7063 to annotate_source_line.
7064 (info_line_command): Remove check of annotation_level.
7065 * source.h (identify_source_line): Move declaration to annotate.h
7066 and rename to annotate_source_line.
7067 * stack.c: Add 'annotate.h' include.
7068 (print_frame_info): Remove check of annotation_level before
7069 calling annotate_source_line.
7071 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7073 * source-cache.c (source_cache::get_plain_source_lines): Use
7074 open_source_file_with_line_charpos instead of just
7075 open_source_file, remove call to find_source_lines.
7076 (source_cache::get_source_lines): Likewise.
7077 * source.c (find_source_lines): Make static.
7078 (get_filename_and_charpos): Renamed into...
7079 (open_source_file_with_line_charpos): ..this along with changes to
7080 return a scoped_fd, and some other minor clean ups.
7081 (identify_source_line): Use open_source_file_with_line_charpos.
7082 (search_command_helper): Use open_source_file_with_line_charpos
7083 instead of just open_source_file, remove call to
7085 * source.h (open_source_file_with_line_charpos): Declare new
7087 (find_source_lines): Delete declaration.
7089 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7091 * source.c (get_filename_and_charpos): Remove fullname
7093 (identify_source_line): Update call to get_filename_and_charpos.
7095 2019-06-14 Tom Tromey <tromey@adacore.com>
7098 * ui-style.h (skip_ansi_escape): Update comment.
7099 * ui-file.h (class no_terminal_escape_file): New class.
7100 * ui-file.c (no_terminal_escape_file::write)
7101 (no_terminal_escape_file::puts): New methods.
7102 * cli/cli-logging.c (handle_redirections): Use
7103 no_terminal_escape_file.
7105 2019-06-14 Tom Tromey <tromey@adacore.com>
7107 * NEWS: Move convenience variable news above Python news.
7109 2019-06-14 Tom Tromey <tom@tromey.com>
7111 * gnulib: Move directory to top-level.
7112 * configure.ac: Don't configure gnulib.
7113 * configure: Rebuild.
7114 * common/common-defs.h: Use new path to gnulib.
7115 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7117 (INCGNU): Look in new gnulib location.
7118 (HFILES_NO_SRCDIR): Remove gnulib files.
7119 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7120 (generated_files): Remove GNULIB_H.
7121 ($(LIBGNU), all-lib): Remove targets.
7122 (distclean): Don't mention GNULIB_BUILDDIR.
7123 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7125 2019-06-14 Tom Tromey <tromey@adacore.com>
7127 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7128 Warn if symbol file does not provide any symbols.
7130 2019-06-14 Tom Tromey <tromey@adacore.com>
7132 * source.c (find_and_open_source): Respect basenames_may_differ.
7134 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7136 * annotate.c (annotate_breakpoints_invalid): Make use of
7137 scoped_restore_terminal_state.
7138 (annotate_frames_invalid): Likewise.
7140 2019-06-14 Tom Tromey <tromey@adacore.com>
7142 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7143 allow assignment to an internalvar.
7145 2019-06-14 Tom Tromey <tromey@adacore.com>
7147 * ada-lex.l: Allow "_" in attribute names.
7149 2019-06-14 Tom Tromey <tromey@adacore.com>
7152 * regcache.c (registers_changed): Don't call alloca.
7153 * top.c (execute_command): Don't call alloca.
7155 2019-06-13 Pedro Alves <palves@redhat.com>
7157 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7158 'expression'. When parsing an expression, error out if there's
7159 junk after "unlimited".
7160 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7161 (do_set_command): Adjust calls to is_unlimited_literal.
7163 2019-06-13 Pedro Alves <palves@redhat.com>
7165 * compile/compile.c (make_compile_options_def_group): Add braces
7166 around array_view initializer.
7167 * thread.c (make_thread_apply_all_options_def_group)
7168 (make_thread_apply_all_options_def_group): Likewise.
7170 2019-06-13 Pedro Alves <palves@redhat.com>
7172 * NEWS (New commands): Mention "maint test-options
7173 require-delimiter", "maint test-options unknown-is-error", "maint
7174 test-options unknown-is-operand" and "maint show
7175 test-options-completion-result".
7176 (New command options, command completion): New section.
7177 (Completion improvements): New section.
7178 Mention that you can abbreviate "unlimited".
7180 2019-06-13 Pedro Alves <palves@redhat.com>
7182 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7183 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7184 * unittests/cli-utils-selftests.c (test_parse_flags)
7185 (test_parse_flags_qcs): Delete.
7186 (test_cli_utils): Don't call deleted functions.
7188 2019-06-13 Pedro Alves <palves@redhat.com>
7190 * thread.c: Include "cli/cli-option.h".
7191 (tp_array_compar_ascending): Global.
7192 (tp_array_compar): Delete function.
7193 (tp_array_compar_ascending, tp_array_compar_descending): New
7195 (ascending_option_def, qcs_flag_option_def)
7196 (thr_qcs_flags_option_defs)
7197 (make_thread_apply_all_options_def_group)
7198 (make_thread_apply_options_def_group): New.
7199 (thread_apply_all_command): Use gdb::option::process_options.
7200 (thread_apply_command_completer)
7201 (thread_apply_all_command_completer): New.
7202 (thread_apply_command): Use gdb::option::process_options.
7203 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7204 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7205 to generate help text of "thread apply". Adjust "taas"'s help.
7206 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7207 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7209 2019-06-13 Pedro Alves <palves@redhat.com>
7211 * thread.c (thread_apply_command): Check for invalid TID with
7212 isdigit instead of !isalpha.
7214 2019-06-13 Pedro Alves <palves@redhat.com>
7216 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7217 (validate_flags_qcs): New.
7218 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7219 (validate_flags_qcs): Declare.
7220 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7221 (make_frame_apply_options_def_group): New.
7222 (frame_apply_command_count): Process options with
7223 gdb::option::process_options.
7224 (frame_apply_completer): New.
7225 (frame_apply_level_completer, frame_apply_all_completer)
7226 (frame_apply_completer): New.
7227 (_initialize_stack): Update help of "frame apply", "frame apply
7228 level", "frame apply all" and "faas" to mention supported options
7229 and install command completers.
7230 * stack.h (frame_apply_all_completer): Declare.
7231 * thread.c: Include "stack.h".
7232 (tfaas_command): Add "--".
7233 (_initialize_thread): Update help "tfaas" to mention supported
7234 options and install command completer.
7236 2019-06-13 Pedro Alves <palves@redhat.com>
7238 * completer.c (complete_nested_command_line): New.
7239 (gdb_completion_word_break_characters_throw): Add assertion.
7240 * completer.h (complete_nested_command_line): Declare.
7242 2019-06-13 Pedro Alves <palves@redhat.com>
7244 * stack.c (parse_backtrace_qualifiers): New.
7245 (backtrace_command): Use it.
7246 (backtrace_command_completer): Complete on qualifiers.
7248 2019-06-13 Pedro Alves <palves@redhat.com>
7250 * frame.c: Include "cli/cli-option.h.
7251 (user_set_backtrace_options): New.
7252 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7254 (get_prev_frame): Adjust.
7255 (boolean_option_def, uinteger_option_def)
7256 (set_backtrace_option_defs): New.
7257 (_initialize_frame): Adjust and use
7258 gdb::option::add_setshow_cmds_for_options to install "set
7259 backtrace past-main" and "set backtrace past-entry".
7260 * frame.h: Include "cli/cli-option.h".
7261 (struct frame_print_options): Forward declare.
7262 (print_frame_arguments_all, print_frame_arguments_scalars)
7263 (print_frame_arguments_none): Declare.
7264 (print_entry_values): Delete declaration.
7265 (struct frame_print_options, user_frame_print_options): New.
7266 (struct set_backtrace_options): New.
7267 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
7268 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7269 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7270 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
7271 (list_args_or_locals): Add frame_print_options parameter.
7272 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7273 * python/py-framefilter.c (enumerate_args): Pass down
7274 USER_FRAME_PRINT_OPTIONS.
7275 * stack.c: Include "cli/cli-option.h".
7276 (print_frame_arguments_all, print_frame_arguments_scalars)
7277 (print_frame_arguments_none): Declare.
7278 (print_raw_frame_arguments, print_entry_values): Delete.
7279 (user_frame_print_options): New.
7280 (boolean_option_def, enum_option_def, frame_print_option_defs):
7282 (struct backtrace_cmd_options): New.
7283 (bt_flag_option_def): New.
7284 (backtrace_command_option_defs): New.
7285 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
7286 (print_frame_arg, read_frame_arg, print_frame_args)
7287 (print_frame_info, print_frame): Add frame_print_options parameter
7289 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
7290 (backtrace_command_1): Add frame_print_options and
7291 backtrace_cmd_options parameters and use them.
7292 (make_backtrace_options_def_group): New.
7293 (backtrace_command): Process command options with
7294 gdb::option::process_options.
7295 (backtrace_command_completer): New.
7296 (_initialize_stack): Extend "backtrace"'s help to mention
7297 supported options. Install completer for "backtrace".
7298 Install some settings commands with add_setshow_cmds_for_options.
7300 2019-06-13 Pedro Alves <palves@redhat.com>
7302 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
7303 and that "set/show print raw frame-arguments" are now deprecated.
7305 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
7307 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
7308 * stack.c (_initialize_stack): Install "set/show print
7309 raw-frame-arguments", and deprecate "set/show print raw
7311 * valprint.c (_initialize_valprint): Deprecate "set/show print
7314 2019-06-13 Pedro Alves <palves@redhat.com>
7316 * compile/compile.c (struct compile_options): New.
7317 (compile_flag_option_def, compile_command_option_defs)
7318 (make_compile_options_def_group): New.
7319 (compile_file_command): Handle options with
7320 gdb::option::process_options.
7321 (compile_file_command_completer): New function.
7322 (compile_code_command): Handle options with
7323 gdb::option::process_options.
7324 (compile_code_command_completer): New function.
7325 (_initialize_compiler): Install completers for "compile code" and
7326 "compile file". Mention available options in "compile code" and
7327 "compile code"'s help.
7328 * completer.c (advance_to_completion_word): New, factored out from
7330 (advance_to_expression_complete_word_point): ... this.
7331 (advance_to_filename_complete_word_point): New.
7332 * completer.h (advance_to_filename_complete_word_point): New
7335 2019-06-13 Pedro Alves <palves@redhat.com>
7337 * compile/compile.c: Include "cli/cli-option.h".
7338 (compile_print_value): Scope data pointer is now a
7339 value_print_options pointer; adjust.
7340 (compile_print_command): Process options. Scope data pointer is
7341 now a value_print_options pointer; adjust.
7342 (_initialize_compile): Update "compile print"'s help to include
7343 supported options. Install a completer for "compile print".
7344 * cp-valprint.c (show_vtblprint, show_objectprint)
7345 (show_static_field_print): Delete.
7346 (_initialize_cp_valprint): Don't install "set print
7347 static-members", "set print vtbl", "set print object" here.
7348 * printcmd.c: Include "cli/cli-option.h" and
7349 "common/gdb_optional.h".
7350 (print_command_parse_format): Rework to fill in a
7351 value_print_options instead of a format_data.
7352 (print_value): Change parameter type from format_data pointer to
7353 value_print_options reference. Adjust.
7354 (print_command_1): Process options. Adjust to pass down a
7355 value_print_options.
7356 (print_command_completer): New.
7357 (_initialize_printcmd): Install print_command_completer as
7358 handle_brkchars completer for the "print" command. Update
7359 "print"'s help to include supported options.
7360 * valprint.c: Include "cli/cli-option.h".
7361 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7362 here from cp-valprint.c.
7363 (boolean_option_def, uinteger_option_def)
7364 (value_print_option_defs, make_value_print_options_def_group):
7365 New. Use gdb::option::add_setshow_cmds_for_options to install
7366 "set print elements", "set print null-stop", "set print repeats",
7367 "set print pretty", "set print union", "set print array", "set
7368 print address", "set print symbol", "set print array-indexes".
7369 * valprint.h: Include <string> and "cli/cli-option.h".
7370 (make_value_print_options_def_group): Declare.
7371 (print_value): Change parameter type from format_data pointer to
7372 value_print_options reference.
7373 (print_command_completer): Declare.
7375 2019-06-13 Pedro Alves <palves@redhat.com>
7377 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7378 (COMMON_SFILES): Add maint-test-settings.c.
7379 * cli/cli-decode.c (boolean_enums): New global, factored out from
7381 (add_setshow_boolean_cmd): ... here.
7382 * cli/cli-decode.h (boolean_enums): Declare.
7383 * cli/cli-option.c: New file.
7384 * cli/cli-option.h: New file.
7385 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7386 factored out from ...
7387 (parse_cli_boolean_value(const char *)): ... this.
7388 (is_unlimited_literal): Change parameter type to pointer to
7389 pointer. Adjust and advance ARG pointer.
7390 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7391 (parse_cli_var_enum): New, factored out from ...
7392 (do_set_command): ... this. Adjust.
7393 * cli/cli-setshow.h (parse_cli_boolean_value)
7394 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7395 (parse_cli_var_enum): Declare.
7396 * cli/cli-utils.c: Include "cli/cli-option.h".
7397 (get_ulongest): New.
7398 * cli/cli-utils.h (get_ulongest): Declare.
7399 (check_for_argument): New overloads.
7400 * maint-test-options.c: New file.
7402 2019-06-13 Pedro Alves <palves@redhat.com>
7404 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7405 parse a range if "-" is at the end of the string.
7407 2019-06-13 Pedro Alves <palves@redhat.com>
7409 * cli/cli-setshow.c (parse_auto_binary_operation)
7410 (parse_cli_boolean_value): Don't allow "o".
7412 2019-06-13 Pedro Alves <palves@redhat.com>
7414 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7415 * NEWS: Mention maint test-settings KIND.
7416 * maint-test-settings.c: New file.
7418 2019-06-13 Pedro Alves <palves@redhat.com>
7420 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7422 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7425 2019-06-13 Pedro Alves <palves@redhat.com>
7427 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7430 2019-06-13 Pedro Alves <palves@redhat.com>
7432 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7434 2019-06-13 Pedro Alves <palves@redhat.com>
7436 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7437 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7439 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7440 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7442 (check_for_argument): Skip spaces after argument.
7444 2019-06-13 Pedro Alves <palves@redhat.com>
7446 * thread.c (thread_apply_command): Adjust TID parsing.
7447 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7448 detected before end of string.
7449 (tid_is_in_list): Error out if LIST is invalid.
7451 2019-06-13 Pedro Alves <palves@redhat.com>
7453 * completer.c (complete_line_internal_1): Rewind completion word
7455 (completion_tracker::advance_custom_word_point_by): Change
7456 parameter type to int.
7457 * completer.h (completion_tracker::advance_custom_word_point_by):
7460 2019-06-13 Pedro Alves <palves@redhat.com>
7462 * completer.c (advance_to_completion_word): Handle delimiters.
7464 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7466 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7468 2019-06-11 Tom Tromey <tom@tromey.com>
7470 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7471 (xmalloc_failed): Move to alloc.c.
7472 * alloc.c: New file.
7473 * Makefile.in (COMMON_SFILES): Add alloc.c.
7475 2019-06-11 Tom Tromey <tom@tromey.com>
7477 * nat/linux-waitpid.c: Don't include server.h.
7478 (linux_debug): Remove.
7479 (my_waitpid): Update.
7481 2019-06-11 Tom Tromey <tromey@adacore.com>
7483 * infcall.c (_initialize_infcall): Remove trailing newline from
7485 * user-regs.c (_initialize_user_regs): Remove trailing newline
7487 * typeprint.c (_initialize_typeprint): Remove trailing newline
7489 * reverse.c (_initialize_reverse): Remove trailing newlines from
7491 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7493 * language.c (add_set_language_command): Remove trailing newline
7495 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7497 * disasm.c (_initialize_disasm): Remove trailing newline from
7499 * top.c (init_main): Remove trailing newline from help.
7500 * interps.c (_initialize_interpreter): Remove trailing newline
7502 * btrace.c (_initialize_btrace): Remove trailing newlines from
7504 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7506 * python/python.c (_initialize_python): Remove trailing newline
7508 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7510 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7511 from help. Reformat some text.
7512 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7514 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7517 2019-06-11 Tom Tromey <tromey@adacore.com>
7519 * darwin-nat.c (darwin_decode_exception_message)
7520 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7522 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7524 * valops.c (value_slice): Check for not allocated or not
7527 2019-06-10 Tom de Vries <tdevries@suse.de>
7530 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7531 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7534 2019-06-10 Tom de Vries <tdevries@suse.de>
7537 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7538 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7540 2019-06-10 Tom de Vries <tdevries@suse.de>
7543 * symtab.c (struct demangled_name_entry): Add language field.
7544 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7545 static minimal symbol". Set and use language field.
7547 2019-06-10 Tom Tromey <tromey@adacore.com>
7549 * ada-lang.c (_initialize_ada_language): Update help text.
7551 2019-06-10 Tom Tromey <tromey@adacore.com>
7553 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7555 * guile/guile.c (handle_boot_error): Don't end warning with a
7557 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7558 warning with a newline.
7559 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7561 (s12z_frame_cache): Likewise.
7562 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7564 * solib-svr4.c (disable_probes_interface): Don't end warning with
7566 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7568 * python/python.c (do_finish_initialization): Don't end warning
7571 2019-06-10 Tom Tromey <tom@tromey.com>
7573 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7574 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7577 2019-06-10 Tom Tromey <tromey@adacore.com>
7579 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7581 (elf_new_init): Don't call stabsread_new_init.
7582 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7583 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7584 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7586 2019-06-10 Tom de Vries <tdevries@suse.de>
7590 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7592 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7594 * source.c (find_and_open_source): Also rewrite relative file
7597 2019-04-26 Amos Bird <amosbird@gmail.com>
7599 * annotate.c (annotate_thread_exited): Add "thread-exited"
7602 2019-06-06 Tom Tromey <tromey@adacore.com>
7604 * maint.h (class scoped_command_stats): Use
7605 DISABLE_COPY_AND_ASSIGN.
7606 <print_time>: New method.
7607 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7609 (scoped_command_stats::print_time): New method.
7611 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7613 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7614 instructions of lengths 6 or 8 bytes.
7616 2019-06-04 Pedro Alves <palves@redhat.com>
7618 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7620 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7621 * breakpoint.c (condition_completer): Likewise.
7622 * cli/cli-dump.c (scan_expression): Likewise.
7623 * common/filestuff.c (mkdir_recursive): Likewise.
7624 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7625 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7626 (gdb_abspath): Likewise.
7627 * compile/compile-cplus-types.c
7628 (compile_cplus_instance::decl_name): Likewise.
7629 * completer.c (complete_explicit_location):
7630 (signal_completer, reg_or_group_completer_1): Likewise.
7631 * cp-support.c (cp_remove_params_if_any): Likewise.
7632 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7633 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7634 * infcmd.c (strip_bg_char): Likewise.
7635 * linespec.c (copy_token_string): Likewise.
7636 * mi/mi-main.c (output_cores): Likewise.
7637 * psymtab.c (psymtab_search_name):
7638 * symfile.c (test_set_ext_lang_command): Likewise.
7639 * target.c (target_fileio_read_stralloc): Likewise.
7640 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7641 * value.c (complete_internalvar): Likewise.
7643 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7645 Add objfile property to gdb.Type.
7646 * NEWS: Mention Python API addition.
7647 * python/py-type.c (typy_get_objfile): New method.
7649 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7651 * NEWS: Mention the new set|show style [title|highlight].
7652 Mention changes to "show style", "help" and "apropos".
7654 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7656 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7657 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7658 instead of print_help_for_command.
7659 (print_doc_of_command): New function.
7660 (help_list): Add 'apropos -v word' suggestion.
7661 (print_help_for_command): Style the command name using title style.
7662 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7663 (_initialize_cli_cmds): Describe -v in apropos_command help.
7665 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7667 * cli/cli-style.h (cli_style_option): Add name in constructor,
7668 add m_name class member, add constructor with intensity,
7669 add name class function.
7670 (cli_style_option::add_setshow_commands): Remove name argument.
7671 (highlight_style, title_style): New styles.
7672 * cli/cli-style.c (do_show): New function that shows a style
7673 characteristic styling the style name with itself.
7674 (set_style_name): New function.
7675 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7676 Update all callers according to the changes in cli/cli-style.h.
7677 * utils.h (fputs_highlighted): New function.
7678 * utils.c (fputs_highlighted): Likewise.
7680 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7682 * NEWS: Mention new pipe command and new convenience variables.
7684 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7686 * cli/cli-cmds.c (pipe_command): New function.
7687 (_initialize_cli_cmds): Call add_com for pipe_command.
7688 Define | as an alias for pipe.
7689 (exit_status_set_internal_vars): New function.
7690 (shell_escape): Call exit_status_set_internal_vars.
7691 cli/cli-decode.c (find_command_name_length): Recognize | as
7692 a single character command.
7694 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7696 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7697 top.c (execute_command_to_ui_file): New function, mostly a copy
7698 of execute_command_to_string.
7699 (execute_command_to_string): Implement by calling
7700 execute_command_to_ui_file.
7702 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7704 * top.h (saved_command_line): Remove declaration.
7705 * top.c (previous_saved_command_line, previous_repeat_arguments):
7707 (saved_command_line): Make static, define together with other
7709 (dont_repeat): Clear repeat_arguments.
7710 (repeat_previous, get_saved_command_line, save_command_line):
7712 (gdb_init): Initialize saved_command_line
7713 and previous_saved_command_line.
7714 * main.c (captured_main_1): Remove saved_command_line initialization.
7715 * event-top.c (handle_line_of_input): Update to use
7716 the new 'repeat' related functions instead of direct access to
7718 * command.h (repeat_previous, get_saved_command_line,
7719 save_command_line): New declarations.
7720 (dont_repeat): Add comment.
7722 2019-05-30 Tom Tromey <tromey@adacore.com>
7724 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7726 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7728 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7731 * completer.c (complete): Initialize variable word.
7733 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7735 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7736 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7737 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7738 'body' is NULL to the outter 'if', protecting the '!is_define'
7741 2019-05-29 Tom Tromey <tromey@adacore.com>
7743 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7744 (dwarf_unknown): New function.
7745 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7746 (dwarf_type_encoding_name): Use dwarf_unknown.
7748 2019-05-29 Tom Tromey <tromey@adacore.com>
7751 * cp-valprint.c (cp_print_value_fields): Call
7752 cp_print_static_field inside "try".
7754 2019-05-29 Tom Tromey <tromey@adacore.com>
7756 * inflow.c (struct terminal_info): Add default operator=.
7757 * configure: Rebuild.
7758 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7759 -Wdeprecated-copy-dtor, -Wredundant-move.
7761 2019-05-29 Tom Tromey <tromey@adacore.com>
7764 * infcmd.c (print_return_value_1): Handle finish_print
7766 (show_print_finish): New function.
7767 (_initialize_infcmd): Add "set/show print finish" commands.
7768 * valprint.c (user_print_options): Initialize new member.
7769 * valprint.h (struct value_print_options) <finish_print>: New
7772 2019-05-28 Tom Tromey <tromey@adacore.com>
7774 * ada-lang.c (ada_remove_Xbn_suffix)
7775 (find_old_style_renaming_symbol)
7776 (parse_old_style_renaming): Remove.
7777 (ada_find_renaming_symbol): Don't call
7778 find_old_style_renaming_symbol.
7779 (ada_is_renaming_symbol): Rename from
7780 ada_find_renaming_symbol. Remove "block" parameter. Return
7782 (ada_read_var_value): Update and simplify.
7783 * ada-exp.y (write_var_or_type): Remove old code.
7785 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7788 * event-top.c: Remove include comment.
7789 * inflow.c (class scoped_ignore_sigttou): Move from here...
7790 * inflow.h (class scoped_ignore_sigttou): ...to here.
7791 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7792 * top.c: Remove include comment.
7794 2019-05-27 Tom Tromey <tom@tromey.com>
7798 2019-05-22 Tom Tromey <tromey@adacore.com>
7800 * target.c (target_follow_exec): Constify parameter.
7801 * target-delegates.c: Rebuild.
7802 * remote.c (remote_target::follow_exec): Constify parameter.
7803 * infrun.c (follow_exec): Constify parameter.
7804 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7805 (target_follow_exec): Likewise.
7807 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7809 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7810 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7812 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7814 * NEWS: Add debugredirect and testsuite sections.
7816 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7818 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7819 target descriptions using exclusively floating point register name
7822 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7825 * f-lang.c (build_fortran_types): Handle the case where
7826 gdbarch_floatformat_for_type returns a nullptr.
7828 2019-05-21 Tom de Vries <tdevries@suse.de>
7831 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7833 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7836 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7838 * i386-tdep.c (i386_floatformat_for_type): Use
7839 floatformats_ia64_quad for the 16-byte floating point component
7840 within a fortran 32-byte complex number.
7842 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7844 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7845 delete default constructor.
7846 (find_partial_die): Update to return const struct.
7847 (partial_die_parent_scope): Move variable declaration into scope
7848 of its use and change its type to auto.
7849 (guess_partial_die_structure_name): Likewise.
7850 (partial_die_info::fixup): Likewise.
7852 2019-05-17 Tom Tromey <tromey@adacore.com>
7854 * source.c (find_and_open_source): Remove cast.
7856 2019-05-17 Tom Tromey <tromey@adacore.com>
7858 * annotate.c (annotate_source): Make "filename" const.
7859 * annotate.h (annotate_source): Use const.
7861 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7863 * disasm.c (set_disassembler_options): Send errors to stderr.
7865 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7867 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7868 (cli_interp_base::set_logging): Check debug_redirect.
7869 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7870 * cli/cli-logging.c (debug_redirect): Add static variable.
7871 (pop_output_files): Add default param.
7872 (handle_redirections): Print debug setting.
7873 (show_logging_command): Likewise.
7874 (_initialize_cli_logging): Add debugredirect command.
7875 * interps.c (current_interp_set_logging): Add debug_redirect
7877 * interps.h (set_logging): Add debug_redirect parameter.
7878 (current_interp_set_logging): Likewise.
7879 * mi/mi-common.h: Likewise.
7880 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7882 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7883 Tom Tromey <tromey@adacore.com>
7885 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7887 * cli/cli-interp.h (make_logging_output): Remove declaration.
7888 * cli/cli-logging.c (make_logging_output): Remove function.
7889 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7891 * ui-file.c (tee_file::tee_file): Remove bools.
7892 (tee_file::~tee_file): Remove deletes.
7893 * ui-file.h (tee_file): Remove bools.
7895 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7897 * mi/mi-cmds.h (mi_cmd_complete): New function.
7898 * mi/mi-main.c (mi_cmd_complete): Likewise.
7899 * mi/mi-cmds.c: Define new MI command -complete.
7900 * NEWS: Mention new -complete command.
7902 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7904 * completer.h (complete): New function.
7905 * completer.c (complete): Likewise.
7906 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7907 function defined in completer.h.
7909 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7911 * MAINTAINERS (Write After Approval): Add myself.
7913 2019-05-17 Tom de Vries <tdevries@suse.de>
7916 * dwarf2read.c (struct cu_partial_die_info): New struct.
7917 (find_partial_die): Return cu_partial_die_info.
7918 (partial_die_parent_scope, guess_partial_die_structure_name)
7919 (partial_die_info::fixup): Handle new return type of find_partial_die.
7921 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7923 PR breakpoints/24541
7924 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7925 "std::string", simplifying the algorithm.
7927 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7929 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7930 (stap_static_probe_ops::get_probes): Likewise.
7932 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7934 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7935 '-')" and "else if".
7936 (stap_parse_single_operand): Join checks for
7937 "gdbarch_stap_parse_special_token_p" and
7938 "gdbarch_stap_parse_special_token" in the same "if" statement.
7939 Invert check when verifying for operation on register
7942 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7944 * stap-probe.c (stap_get_opcode): Update comment.
7945 (stap_get_expected_argument_type): Likewise.
7946 (handle_stap_probe): Likewise.
7948 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7950 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7951 return type to 'bool'. Adjust comment. Use 'bool' when
7953 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7954 * stap-probe.c (stap_parse_argument_1): Likewise.
7955 (stap_is_operator): Likewise.
7956 (stap_is_generic_prefix): Likewise.
7957 (stap_is_register_prefix): Likewise.
7958 (stap_is_register_indirection_prefix): Likewise.
7959 (stap_is_integer_prefix): Likewise.
7960 (stap_generic_check_suffix): Likewise.
7961 (stap_check_integer_suffix): Likewise.
7962 (stap_check_register_suffix): Likewise.
7963 (stap_check_register_indirection_suffix): Likewise.
7964 (stap_parse_register_operand): Likewise.
7965 (stap_parse_single_operand): Likewise.
7966 (stap_parse_argument_1): Likewise.
7967 (stap_probe::get_argument_count): Likewise.
7968 (stap_is_operator): Likewise.
7970 2019-05-16 Tom Tromey <tromey@adacore.com>
7972 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7975 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7977 * linux-thread-db.c (try_thread_db_load_1): Change return type
7979 (try_thread_db_load): Likewise.
7980 (try_thread_db_load_from_pdir_1): Likewise.
7981 (try_thread_db_load_from_pdir): Likewise.
7982 (try_thread_db_load_from_sdir): Likewise.
7983 (try_thread_db_load_from_dir): Likewise.
7984 (thread_db_load_search): Likewise.
7985 (has_libpthread): Likewise.
7986 (thread_db_load): Likewise.
7988 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7990 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7991 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7992 NULL, and complain/return if that's the case.
7994 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7996 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7997 (advance, posn, abstract_read_memory): New functions.
7998 [struct mem_read_abstraction]: New struct.
7999 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8001 2019-05-14 Tom Tromey <tromey@adacore.com>
8003 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8004 value is not lval_memory.
8006 2019-05-14 Tom Tromey <tromey@adacore.com>
8008 * solib.c (info_sharedlibrary_command): Style the file name.
8010 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8012 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8013 (aarch64_vnv_type): Likewise.
8014 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8015 * common/tdesc.c: Likewise.
8016 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8017 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8018 * features/aarch64-fpu.xml: Add ieee half view.
8019 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8020 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8021 * gdbtypes.h (struct builtin_type): Likewise.
8022 (struct objfile_type): Likewise.
8024 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8026 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8028 * location.h (string_to_event_location): Likewise.
8030 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8034 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8036 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8037 New variable declaration.
8038 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8040 (print_one_breakpoint): Use ui_out::test_flags and new global
8041 variable to compute use_fixed_output.
8042 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8044 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8045 (mi_multi_location_breakpoint_output_fixed): Remove.
8046 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8048 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8049 fix_multi_location_breakpoint_output flag if version >= 3.
8050 * ui-out.h (enum ui_out_flag)
8051 <fix_multi_location_breakpoint_output>: New enumerator.
8053 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8055 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8057 2019-05-10 Tom Tromey <tromey@adacore.com>
8059 * ada-lang.c (catch_ada_completer): New function.
8060 (_initialize_ada_language): Use it.
8062 2019-05-10 Tom Tromey <tromey@adacore.com>
8064 * thread.c (print_thread_info): Make "requested_threads" const.
8065 * gdbthread.h (print_thread_info): Make "requested_threads"
8067 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8068 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8070 2019-05-08 Tom Tromey <tom@tromey.com>
8072 * gdbtypes.c (objfile_type_data): Change type.
8073 (objfile_type, _initialize_gdbtypes): Update.
8075 2019-05-08 Tom Tromey <tom@tromey.com>
8077 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8078 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8079 (_initialize_dwarf2_frame): Update.
8081 2019-05-08 Tom Tromey <tom@tromey.com>
8083 * objc-lang.c (objc_objfile_data): Change type.
8084 (find_methods): Update.
8085 (_initialize_objc_lang): Remove.
8087 2019-05-08 Tom Tromey <tom@tromey.com>
8089 * stabsread.c (rs6000_builtin_type_data): Change type.
8090 (rs6000_builtin_type, _initialize_stabsread): Update.
8092 2019-05-08 Tom Tromey <tom@tromey.com>
8094 * mips-tdep.c (mips_pdr_data): Remove.
8095 (_initialize_mips_tdep): Update.
8097 2019-05-08 Tom Tromey <tom@tromey.com>
8099 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8100 (hppa_init_objfile_priv_data, read_unwind_info)
8101 (find_unwind_entry, _initialize_hppa_tdep): Update.
8103 2019-05-08 Tom Tromey <tom@tromey.com>
8105 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8106 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8108 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8110 2019-05-08 Tom Tromey <tom@tromey.com>
8112 * mdebugread.c (basic_type_data): Change type.
8113 (basic_type, _initialize_mdebugread): Update.
8115 2019-05-08 Tom Tromey <tom@tromey.com>
8117 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8119 2019-05-08 Tom Tromey <tom@tromey.com>
8121 * nto-tdep.c (nto_inferior_data_reg): Change type.
8122 (nto_inferior_data): Update.
8123 (nto_inferior_data_cleanup, nto_new_inferior_data)
8124 (_initialize_nto_tdep): Remove.
8125 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8127 2019-05-08 Tom Tromey <tom@tromey.com>
8129 * ada-lang.c (struct ada_inferior_data): Add initializers.
8130 (ada_inferior_data): Change type.
8131 (ada_inferior_data_cleanup): Remove.
8132 (get_ada_inferior_data, ada_inferior_exit)
8133 (struct ada_pspace_data): Add initializers, destructor.
8134 (ada_pspace_data_handle): Change type.
8135 (get_ada_pspace_data): Update.
8136 (ada_pspace_data_cleanup): Remove.
8138 2019-05-08 Tom Tromey <tom@tromey.com>
8140 * coffread.c (struct coff_symfile_info): Add initializers.
8141 (coff_objfile_data_key): Move lower. Change type.
8142 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8144 (coff_free_info): Remove.
8146 2019-05-08 Tom Tromey <tom@tromey.com>
8148 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8149 (fbsd_pspace_data_handle): Move lower. Change type.
8150 (get_fbsd_pspace_data): Update.
8151 (fbsd_pspace_data_cleanup): Remove.
8152 (_initialize_fbsd_tdep): Update.
8154 2019-05-08 Tom Tromey <tom@tromey.com>
8156 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8157 (get_ada_tasks_pspace_data): Update.
8158 (ada_tasks_pspace_data_cleanup): Remove.
8159 (_initialize_tasks): Update.
8160 (ada_tasks_inferior_data_handle): Change type.
8161 (get_ada_tasks_inferior_data): Update.
8162 (ada_tasks_inferior_data_cleanup): Remove.
8163 (struct ada_tasks_pspace_data): Add initializers.
8165 2019-05-08 Tom Tromey <tom@tromey.com>
8167 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8168 * symfile-debug.c (debug_sym_get_probes): Change type.
8169 * stap-probe.c (handle_stap_probe):
8170 (stap_static_probe_ops::get_probes): Change type.
8171 * probe.h (class static_probe_ops) <get_probes>: Change type.
8172 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8173 (parse_probes_in_pspace): Update.
8174 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8176 (any_static_probe_ops::get_probes): Change type.
8177 * elfread.c (elfread_data): New typedef.
8178 (probe_key): Change type.
8179 (elf_get_probes): Likewise. Update.
8180 (probe_key_free): Remove.
8181 (_initialize_elfread): Update.
8182 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8184 (dtrace_process_dof_probe, dtrace_process_dof)
8185 (dtrace_static_probe_ops::get_probe): Change type.
8187 2019-05-08 Tom Tromey <tom@tromey.com>
8189 * xcoffread.c (struct xcoff_symfile_info): Rename from
8190 coff_symfile_info. Add initializers.
8191 (xcoff_objfile_data_key): Move lower. Change type.
8192 (XCOFF_DATA): Rewrite.
8193 (xcoff_free_info): Remove.
8194 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8195 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8196 (xcoff_initial_scan): Update.
8198 2019-05-08 Tom Tromey <tom@tromey.com>
8200 * solib-svr4.c (struct svr4_info): Add initializers and
8202 <probes_table>: Now an htab_up.
8203 (solib_svr4_pspace_data): Change type.
8204 (free_probes_table): Simplify.
8205 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8206 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8207 (probes_table_remove_objfile_probes, register_solib_event_probe)
8208 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8209 (_initialize_svr4_solib): Update.
8211 2019-05-08 Tom Tromey <tom@tromey.com>
8213 * remote.c (remote_pspace_data): Change type.
8214 (remote_pspace_data_cleanup): Remove.
8215 (get_remote_exec_file, set_pspace_remote_exec_file)
8216 (_initialize_remote): Update.
8218 2019-05-08 Tom Tromey <tom@tromey.com>
8220 * breakpoint.c (breakpoint_objfile_key): Change type.
8221 (get_breakpoint_objfile_data): Update.
8222 (free_breakpoint_objfile_data): Remove.
8223 (_initialize_breakpoint): Update.
8225 2019-05-08 Tom Tromey <tom@tromey.com>
8227 * linux-tdep.c (struct linux_info): Add initializers.
8228 (linux_inferior_data): Move. Change type.
8229 (invalidate_linux_cache_inf): Update.
8230 (linux_inferior_data_cleanup): Remove.
8231 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8233 2019-05-08 Tom Tromey <tom@tromey.com>
8235 * auxv.c (auxv_inferior_data): Move. Change type.
8236 (auxv_inferior_data_cleanup): Remove.
8237 (invalidate_auxv_cache_inf): Rewrite.
8238 (get_auxv_inferior_data, _initialize_auxv): Update.
8240 2019-05-08 Tom Tromey <tom@tromey.com>
8242 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8243 (symfile_debug_objfile_data_key): Change type.
8244 (symfile_debug_installed, debug_qf_has_symbols)
8245 (debug_qf_find_last_source_symtab)
8246 (debug_qf_forget_cached_source_info)
8247 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8248 (debug_qf_print_stats, debug_qf_dump)
8249 (debug_qf_expand_symtabs_for_function)
8250 (debug_qf_expand_all_symtabs)
8251 (debug_qf_expand_symtabs_with_fullname)
8252 (debug_qf_map_matching_symbols)
8253 (debug_qf_expand_symtabs_matching)
8254 (debug_qf_find_pc_sect_compunit_symtab)
8255 (debug_qf_map_symbol_filenames)
8256 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8257 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8258 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8259 (debug_sym_read_linetable, debug_sym_relocate): Update.
8260 (symfile_debug_free_objfile): Remove.
8261 (install_symfile_debug_logging, _initialize_symfile_debug):
8264 2019-05-08 Tom Tromey <tom@tromey.com>
8266 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
8267 allocate_on_obstack.
8268 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
8269 (get_dwarf2_per_objfile): Update.
8270 (set_dwarf2_per_objfile): Remove.
8271 (dwarf2_has_info, dwarf2_get_section_info): Update.
8272 (dwarf2_free_objfile): Remove.
8273 (_initialize_dwarf2_read): Update.
8275 2019-05-08 Tom Tromey <tom@tromey.com>
8277 * auto-load.c (struct auto_load_pspace_info): Add destructor and
8279 <unsupported_script_warning_printed,
8280 script_not_found_warning_printed>: Now bool.
8281 (auto_load_pspace_data): Change type.
8282 (~auto_load_pspace_info): Rename from
8283 auto_load_pspace_data_cleanup.
8284 (get_auto_load_pspace_data, init_loaded_scripts_info)
8285 (clear_section_scripts, maybe_print_unsupported_script_warning)
8286 (maybe_print_script_not_found_warning, _initialize_auto_load):
8289 2019-05-08 Tom Tromey <tom@tromey.com>
8291 * objfiles.c (objfile_pspace_info): Add destructor and
8293 (objfiles_pspace_data): Change type.
8294 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
8295 (get_objfile_pspace_data): Update.
8296 (objfiles_bfd_data): Change type.
8297 (get_objfile_bfd_data): Update.
8298 (objfile_bfd_data_free, _initialize_objfiles): Remove.
8300 2019-05-08 Tom Tromey <tom@tromey.com>
8302 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
8304 (get_catch_syscall_inferior_data): Update.
8305 (catch_syscall_inferior_data_cleanup): Remove.
8306 (_initialize_break_catch_syscall): Update.
8308 2019-05-08 Tom Tromey <tom@tromey.com>
8310 * inflow.c (struct terminal_info): Add destructor and
8312 (inflow_inferior_data): Change type.
8313 (~terminal_info): Rename from inflow_inferior_data_cleanup.
8314 (get_inflow_inferior_data, inflow_inferior_exit)
8315 (swap_terminal_info, _initialize_inflow): Update.
8317 2019-05-08 Tom Tromey <tom@tromey.com>
8319 * target-dcache.c (target_dcache_cleanup): Remove.
8320 (target_dcache_aspace_key): Change type.
8321 (target_dcache_init_p, target_dcache_invalidate)
8322 (target_dcache_get, target_dcache_get_or_init)
8323 (_initialize_target_dcache): Update.
8324 * dcache.h (struct dcache_deleter): New.
8326 2019-05-08 Tom Tromey <tom@tromey.com>
8328 * symtab.c (struct symbol_cache): Add destructor and
8330 (symbol_cache_key): Move. Change type.
8331 (make_symbol_cache, free_symbol_cache): Remove.
8332 (get_symbol_cache): Update.
8333 (symbol_cache_cleanup): Remove.
8334 (ALL_PSPACES, symbol_cache_flush)
8335 (maintenance_print_symbol_cache)
8336 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
8339 2019-05-08 Tom Tromey <tom@tromey.com>
8341 * symtab.c (struct main_info): Add destructor and initializers.
8342 (main_progspace_key): Move. Change type.
8343 (get_main_info): Update.
8344 (main_info_cleanup): Remove.
8345 (_initialize_symtab): Update.
8347 2019-05-08 Tom Tromey <tom@tromey.com>
8349 * registry.h (DECLARE_REGISTRY): Define the _key class.
8351 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8353 * NEWS: Merge two 'New commands' sections.
8355 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8357 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8358 parameter and use Ada language definition instead.
8359 (ada_val_print_ptr): Remove unused language parameter.
8360 (ada_val_print_num): Remove language parameter and use Ada language
8362 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8364 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8365 parameter and use Ada language definition instead.
8366 (ada_val_print_1): Update all ada_val_print_xxx calls.
8367 Remove language parameter.
8368 (ada_val_print): Update ada_val_print_1 call.
8370 2019-05-08 Tom Tromey <tromey@adacore.com>
8372 * remote.c (remote_hw_watchpoint_limit)
8373 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8376 2019-05-08 Tom Tromey <tromey@adacore.com>
8378 * maint.c (_initialize_maint_cmds): Move initialization code to
8380 (watchdog, show_watchdog): Move to remote.c.
8381 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8383 (_initialize_remote): Move initialization code from maint.c.
8384 * defs.h (watchdog): Don't declare.
8386 2019-05-08 Tom Tromey <tromey@adacore.com>
8388 * tui/tui-interp.c: Include main.h.
8389 * interps.c: Include main.h.
8390 * main.h (interpreter_p): Declare.
8391 * defs.h (interpreter_p): Don't declare.
8393 2019-05-08 Tom Tromey <tromey@adacore.com>
8395 * dwarf2loc.c: Include dwarf2read.h.
8396 * defs.h (read_unsigned_leb128): Don't declare.
8397 * dwarf2read.h (read_unsigned_leb128): Declare.
8399 2019-05-08 Tom Tromey <tromey@adacore.com>
8401 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8404 2019-05-08 Tom Tromey <tromey@adacore.com>
8406 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8407 when no wrap column is set.
8409 2019-05-08 Tom Tromey <tromey@adacore.com>
8411 * c-lang.c (c_get_string): Handle non-C-style arrays.
8413 2019-05-08 Tom Tromey <tromey@adacore.com>
8415 * typeprint.c (print_offset_data::update): Print the bit offset,
8416 not the number of bits remaining.
8418 2019-05-08 Tom Tromey <tromey@adacore.com>
8420 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8421 padding at end of comment.
8423 2019-05-08 Tom Tromey <tromey@adacore.com>
8425 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8428 2019-05-06 Tom Tromey <tom@tromey.com>
8430 * common/scoped_mmap.c: Include common-defs.h.
8431 * common/scoped_mmap.h: Don't include config.h.
8433 2019-05-04 Tom Tromey <tom@tromey.com>
8435 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8436 (struct aarch64_call_info): Add initializers.
8437 <si>: Now a std::vector.
8438 (pass_on_stack, aarch64_push_dummy_call): Update.
8440 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8441 Tom Tromey <tom@tromey.com>
8443 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8444 (ppc_threads): Now a std::vector. Now static.
8445 (hwdebug_find_thread_points_by_tid)
8446 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8449 2019-05-04 Tom Tromey <tom@tromey.com>
8451 * arc-tdep.c (arc_tdesc_init): Return bool.
8453 2019-05-04 Tom Tromey <tom@tromey.com>
8455 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8456 Use gdb_assert_not_reached.
8458 2019-05-04 Tom Tromey <tom@tromey.com>
8460 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8463 2019-05-04 Tom Tromey <tom@tromey.com>
8465 * arc-tdep.c (arc_tdesc_init): Use bool.
8467 2019-05-04 Tom Tromey <tom@tromey.com>
8469 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8471 2019-05-04 Tom Tromey <tom@tromey.com>
8473 * cli/cli-cmds.c (valid_command_p): Return bool.
8475 2019-05-04 Tom Tromey <tom@tromey.com>
8477 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8478 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8480 2019-05-04 Raul Tambre <raul@tambre.ee>
8482 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8483 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8484 operator for comparison.
8486 2019-05-04 Tom Tromey <tom@tromey.com>
8488 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8489 (lookup_partial_symbol, print_partial_symbols)
8490 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8491 (psymbol_compare): Update.
8492 (add_psymbol_to_bcache): Clear the entire psymbol.
8493 (maintenance_check_psymtabs): Update.
8494 * psympriv.h (struct partial_symbol): Don't derive from
8495 general_symbol_info.
8496 <obj_section, unrelocated_address, address,
8497 set_unrelocated_address>: Update.
8498 <ginfo>: New member.
8499 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8500 (debug_names::write_psymbols): Update.
8502 2019-05-04 Tom de Vries <tdevries@suse.de>
8504 * contrib/cc-with-tweaks.sh: Support -n arg.
8506 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8508 * corelow.c (core_target::detach): Ensure frame cache and
8509 register caches are cleared.
8510 inferior.c (exit_inferior_1): Likewise.
8512 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8513 Tom Tromey <tom@tromey.com>
8515 * dictionary.c (collate_pending_symbols_by_language): Remove
8516 "struct" from foreach.
8517 * symtab.c (lookup_global_symbol_from_objfile)
8518 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8520 * ser-tcp.c (net_open): Remove "struct" from foreach.
8521 * objfiles.c (objfile_relocate, objfile_rebase)
8522 (objfile_has_symbols): Remove "struct" from foreach.
8523 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8525 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8527 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8528 "struct" from foreach.
8529 * ada-lang.c (create_excep_cond_exprs)
8530 (ada_exception_catchpoint_cond_string): Remove "struct" from
8533 2019-05-03 Tom Tromey <tromey@adacore.com>
8535 * ada-exp.y (convert_char_literal): Check suffix of each
8538 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8541 * ada-exp.y (yywrap): Don't define.
8542 * ada-lex.l (%option): Add noyywrap
8545 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8547 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8548 _WIN32_WINNT to the XP level, unless already defined to a higher
8551 * unittests/parse-connection-spec-selftests.c:
8553 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8556 * symfile.c (find_separate_debug_file): Remove colon from the
8557 drive spec of DOS/Windows file names of the target, so that the
8558 file name produced from DEBUGDIR and the target's directory will
8559 be valid on DOS/Windows systems.
8561 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8563 * rust-lang.c (val_print_struct): Handle printing structures
8566 2019-05-02 Tom Tromey <tromey@adacore.com>
8568 * valarith.c (_initialize_valarith): Remove.
8570 2019-05-01 Tom Tromey <tromey@adacore.com>
8572 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8575 2019-05-01 Tom Tromey <tromey@adacore.com>
8577 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8578 for big-endian copies.
8580 2019-04-30 Ali Tamur <tamur@google.com>
8581 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8582 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8583 (read_3_bytes): New function.
8585 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8587 * windows-nat.c (main_thread_id): Delete.
8588 (handle_output_debug_string): Replace main_thread_id by
8589 current_event.dwThreadId.
8590 (fake_create_process): Likewise.
8591 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8592 Do not set main_thread_id.
8593 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8594 current_event.dwThreadId.
8595 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8597 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8599 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8600 Use current_event.dwThreadId instead of main_thread_id.
8602 2019-04-30 Tom Tromey <tromey@adacore.com>
8604 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8605 (create_excep_cond_exprs): Iterate over program spaces.
8606 (ada_exception_catchpoint_cond_string): Examine all minimal
8607 symbols for exception types.
8609 2019-04-30 Tom Tromey <tromey@adacore.com>
8612 * dwarf2read.c (process_structure_scope): Handle case where type
8613 has template parameters but no symbol was created.
8615 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8616 Chris January <chris.january@arm.com>
8618 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8620 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8622 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8624 * f-typeprint.c (f_print_type): Update rules for printing
8626 (f_type_print_varspec_suffix): Likewise.
8628 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8629 Chris January <chris.january@arm.com>
8631 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8634 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8636 * f-lang.c (build_fortran_types): Change name of void type to
8638 * f-typeprint.c (f_type_print_base): Print the name of the void
8639 type, rather than a fixed string.
8640 * f-valprint.c (f_decorations): Use lower case void string.
8642 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8643 Chris January <chris.january@arm.com>
8645 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8648 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8649 Chris January <chris.january@arm.com>
8650 David Lecomber <david.lecomber@arm.com>
8652 * f-exp.y (BINOP_INTRINSIC): New token.
8653 (exp): New parser rule handling BINOP_INTRINSIC.
8654 (f77_keywords): Add new builtin procedures.
8655 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8656 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8657 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8658 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8659 (print_unop_subexp_f): New function.
8660 (print_binop_subexp_f): New function.
8661 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8662 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8663 (dump_subexp_body_f): Likewise.
8664 (operator_check_f): Likewise.
8665 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8666 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8668 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8670 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8672 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8673 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8674 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8675 (operator_length_f): New fuction.
8676 (print_subexp_f): New function.
8677 (op_name_f): New function.
8678 (dump_subexp_body_f): New function.
8679 (operator_check_f): New function.
8680 (exp_descriptor_f): Replace standard expression handling functions
8682 * gdb/fortran-operator.def: New file.
8683 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8684 * gdb/std-operator.def: Remove UNOP_KIND.
8686 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8688 * std-operator.def: Remove unbalanced, stray double quote
8691 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8692 Chris January <chris.january@arm.com>
8693 Daniel Everett <daniel.everett@arm.com>
8694 Nick Forrington <nick.forrington@arm.com>
8695 Richard Bunt <richard.bunt@arm.com>
8697 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8698 of depth when printing anonymous structs or unions.
8699 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8700 Don't print either the top-level value, or the children if the
8701 max-depth is exceeded.
8702 (ppscm_print_children): When printing the key of a map, allow one
8703 extra level of depth.
8704 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8705 print either the top-level value, or the children if the max-depth
8707 (print_children): When printing the key of a map, allow one extra
8709 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8710 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8711 (user_print_options): Initialise max_depth field.
8712 (val_print_scalar_or_string_type_p): New function.
8713 (val_print): Check to see if the max depth has been reached.
8714 (val_print_check_max_depth): Define new function.
8715 (show_print_max_depth): New function.
8716 (_initialize_valprint): Add 'print max-depth' option.
8717 * valprint.h (struct value_print_options) <max_depth>: New field.
8718 (val_print_check_max_depth): Declare new function.
8719 * NEWS: Document new feature.
8721 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8723 * ada-lang.c (ada_language_defn): Initialise new field.
8724 * c-lang.c (c_is_string_type_p): New function.
8725 (c_language_defn): Initialise new field.
8726 (cplus_language_defn): Initialise new field.
8727 (asm_language_defn): Initialise new field.
8728 (minimal_language_defn): Initialise new field.
8729 * c-lang.h (c_is_string_type_p): Declare new function.
8730 * d-lang.c (d_language_defn): Initialise new field.
8731 * f-lang.c (f_is_string_type_p): New function.
8732 (f_language_defn): Initialise new field.
8733 * go-lang.c (go_is_string_type_p): New function.
8734 (go_language_defn): Initialise new field.
8735 * language.c (default_is_string_type_p): New function.
8736 (unknown_language_defn): Initialise new field.
8737 (auto_language_defn): Initialise new field.
8738 * language.h (struct language_defn) <la_is_string_type_p>: New
8740 (default_is_string_type_p): Declare new function.
8741 * m2-lang.c (m2_language_defn): Initialise new field.
8742 * objc-lang.c (objc_language_defn): Initialise new field.
8743 * opencl-lang.c (opencl_language_defn): Initialise new field.
8744 * p-lang.c (pascal_is_string_type_p): New function.
8745 (pascal_language_defn): Initialise new field.
8746 * rust-lang.c (rust_is_string_type_p): New function.
8747 (rust_language_defn): Initialise new field.
8749 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8751 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8753 * ada-lang.c (ada_language_defn): Initialise new field.
8754 * c-lang.c (c_language_defn): Likewise.
8755 (cplus_language_defn): Likewise.
8756 (asm_language_defn): Likewise.
8757 (minimal_language_defn): Likewise.
8758 * d-lang.c (d_language_defn): Likewise.
8759 * f-lang.c (f_language_defn): Likewise.
8760 * go-lang.c (go_language_defn): Likewise.
8761 * language.c (unknown_language_defn): Likewise.
8762 (auto_language_defn): Likewise.
8763 * m2-lang.c (m2_language_defn): Likewise.
8764 * objc-lang.c (objc_language_defn): Likewise.
8765 * opencl-lang.c (opencl_language_defn): Likewise.
8766 * p-lang.c (pascal_language_defn): Likewise.
8767 * rust-lang.c (rust_language_defn): Likewise.
8769 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8771 * ada-lang.c (ada_is_character_type): Change return type to bool.
8772 (ada_is_string_type): Likewise.
8773 * ada-lang.h (ada_is_character_type): Update declaration
8774 (ada_is_string_type): Likewise.
8776 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8778 Support style in 'frame|thread apply'
8780 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8781 * record.c (record_start, record_stop): Update callers of
8782 execute_command_to_string with false.
8783 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8784 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8786 (class string_file): New constructor with term_out parameter.
8787 Override methods term_out and can_emit_style_escape. New member
8789 (class stdio_file): Override can_emit_style_escape.
8790 (class tee_file): Override term_out and can_emit_style_escape.
8791 * utils.h (can_emit_style_escape): Remove.
8792 * utils.c (can_emit_style_escape): Likewise.
8793 Update all callers of can_emit_style_escape (SOMESTREAM) to
8794 SOMESTREAM->can_emit_style_escape.
8795 * source-cache.c (source_cache::get_source_lines): Likewise.
8796 * stack.c (frame_apply_command_count): Call execute_command_to_string
8797 passing the term_out characteristic of the current gdb_stdout.
8798 * thread.c (thr_try_catch_cmd): Likewise.
8799 * top.c (execute_command_to_string): pass term_out parameter
8800 to construct the string_file for the command output.
8801 * ui-file.c (term_cli_styling): New function (most code moved
8802 from utils.c can_emit_style_escape).
8803 (string_file::string_file, string_file::can_emit_style_escape,
8804 stdio_file::can_emit_style_escape, tee_file::term_out,
8805 tee_file::can_emit_style_escape): New functions.
8807 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8809 * NEWS: Mention the new set|show may-call-functions.
8810 * infcall.c (may_call_functions_p): New variable.
8811 (show_may_call_functions_p): New function.
8812 (call_function_by_hand_dummy): Throws an error if not
8814 (_initialize_infcall): Call add_setshow_boolean_cmd for
8817 2019-04-25 Keith Seitz <keiths@redhat.com>
8820 * cp-support.c (inspect_type): Don't attempt substitutions
8821 of symbol with the same name.
8823 2019-04-25 Tom Tromey <tromey@adacore.com>
8826 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8829 2019-04-25 Tom Tromey <tromey@adacore.com>
8831 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8833 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8834 (gdb_xml_parser::parse): Use std::move.
8835 * python/python-internal.h (gdbpy_convert_exception): Take a const
8837 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8839 * python/py-utils.c (gdbpy_convert_exception): Take a const
8841 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8843 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8845 * mi/mi-main.c (mi_print_exception): Take a const reference.
8846 * main.c (handle_command_errors): Take a const reference.
8847 * linespec.c (parse_linespec): Use std::move.
8848 * infcall.c (run_inferior_call): Use std::move.
8849 (call_function_by_hand_dummy): Use std::move.
8850 * exec.c (try_open_exec_file): Use std::move.
8851 * exceptions.h (exception_print, exception_fprintf)
8852 (exception_print_same): Update.
8853 * exceptions.c (print_exception, exception_print)
8854 (exception_fprintf, exception_print_same): Change parameters to
8856 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8857 * common/new-op.c: Use std::move.
8858 * common/common-exceptions.h (struct gdb_exception): Add move
8860 (struct gdb_exception_error, struct gdb_exception_quit, struct
8861 gdb_quit_bad_alloc): Change constructor to move constructor.
8862 (throw_exception): Change parameter to rvalue reference.
8863 * common/common-exceptions.c (throw_exception): Take rvalue
8865 * cli/cli-interp.c (safe_execute_command): Use std::move.
8866 * breakpoint.c (insert_bp_location, location_to_sals): Use
8869 2019-04-25 Tom Tromey <tromey@adacore.com>
8871 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8872 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8873 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8874 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8875 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8876 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8877 guile/scm-value.c: Use unpack.
8878 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8879 gdbscm_gdb_exception.
8880 (gdbscm_throw_gdb_exception): Likewise.
8881 (struct gdbscm_gdb_exception): New.
8882 (unpack): New function.
8883 (gdbscm_wrap): Use unpack.
8885 2019-04-25 Tom Tromey <tromey@adacore.com>
8887 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8888 (gdb_rl_callback_handler): Use std::move.
8889 * common/common-exceptions.h (struct gdb_exception): Add move
8890 assignment operator.
8891 (throw_exception_sjlj): Change "exception" to const reference.
8892 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8893 (throw_exception_sjlj): Change "exception" to const reference.
8895 2019-04-25 Tom Tromey <tromey@adacore.com>
8897 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8898 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8899 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8901 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8903 * mi/mi-interp.c (mi_interp::exec): Update.
8904 * linespec.c (parse_linespec): Update.
8905 * infcall.c (run_inferior_call): Update.
8906 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8907 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8908 (gdbscm_lookup_global_symbol): Update.
8909 * guile/scm-param.c (gdbscm_parameter_value): Update.
8910 * guile/scm-frame.c (gdbscm_frame_read_register)
8911 (gdbscm_frame_read_var): Update.
8912 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8913 * exec.c (try_open_exec_file): Update.
8914 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8915 (gdb_rl_callback_handler): Update.
8916 * common/common-exceptions.h (exception_none): Don't declare.
8917 * common/common-exceptions.c (exception_none): Don't define.
8918 (struct catcher) <exception>: Update.
8919 * cli/cli-interp.c (safe_execute_command): Update.
8920 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8922 2019-04-25 Ali Tamur <tamur@google.com>
8924 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8925 (read_attribute_value): Likewise.
8926 (dwarf2_read_addr_index): Update comment.
8927 (read_str_index): Add DW_FORM_strx.
8928 (dwarf2_string_attr): Likewise.
8929 (dwarf2_const_value_attr): Likewise.
8930 (dump_die_shallow): Likewise.
8931 (dwarf2_fetch_constant_bytes): Likewise.
8932 (skip_form_bytes): Likewise.
8933 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8935 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8939 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8940 OFFSET. Verify if current mapping contains an ELF header.
8941 (linux_find_memory_regions_full): Adjust call to
8944 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8945 Kang Li <kanglictf@gmail.com>
8949 * dwarf2-frame.c (read_initial_length): Be consistent about using
8950 unsigned representation of length.
8951 (decode_frame_entry_1): Likewise. Check for wraparound of
8952 end pointer as well as buffer overflow.
8954 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8956 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8959 2019-04-24 Tom Tromey <tromey@adacore.com>
8961 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8965 * s12z-tdep.c (s12z_unwind_pc): Delete.
8966 (s12z_unwind_sp): Delete.
8967 (s12z_gdbarch_init): Don't register deleted functions with
8970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8972 * rl78-tdep.c (rl78_unwind_sp): Delete.
8973 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8975 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8977 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8978 (xstormy16_unwind_pc): Delete.
8979 (xstormy16_dummy_id): Delete.
8980 (xstormy16_gdbarch_init): Don't register deleted functions with
8983 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8985 * vax-tdep.c (vax_unwind_pc): Delete.
8986 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8988 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8990 * v850-tdep.c (v850_unwind_sp): Delete.
8991 (v850_unwind_pc): Delete.
8992 (v850_dummy_id): Delete.
8993 (v850_gdbarch_init): Don't register deleted functions with
8996 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8998 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8999 (tilegx_unwind_pc): Delete.
9000 (tilegx_unwind_dummy_id): Delete.
9001 (tilegx_gdbarch_init): Don't register deleted functions with
9004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9006 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9007 (tic6x_dummy_id): Delete.
9008 (tic6x_gdbarch_init): Don't register deleted functions with
9011 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9013 * sparc-tdep.c (sparc_unwind_pc): Delete.
9014 (sparc32_gdbarch_init): Don't register deleted function with
9017 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9019 * sh-tdep.c (sh_unwind_sp): Delete.
9020 (sh_unwind_pc): Delete.
9021 (sh_dummy_id): Delete.
9022 (sh_gdbarch_init): Don't register deleted functions with
9025 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9027 * score-tdep.c (score_unwind_sp): Delete.
9028 (score_unwind_pc): Delete.
9029 (score_dummy_id): Delete.
9030 (score_gdbarch_init): Don't register deleted functions with
9033 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9035 * rx-tdep.c (rx_unwind_pc): Delete.
9036 (rx_unwind_sp): Delete.
9037 (rx_dummy_id): Delete.
9038 (rx_gdbarch_init): Don't register deleted functions with
9039 gdbarch. Update comment.
9041 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9043 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9044 (rs6000_dummy_id): Delete.
9045 (rs6000_gdbarch_init): Don't register deleted functions with
9048 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9050 * or1k-tdep.c (or1k_dummy_id): Delete.
9051 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9053 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9055 * nios2-tdep.c (nios2_dummy_id): Delete.
9056 (nios2_unwind_sp): Delete.
9057 (nios2_gdbarch_init): Don't register deleted functions with
9060 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9062 * nds32-tdep.c (nds32_dummy_id): Delete.
9063 (nds32_unwind_pc): Delete.
9064 (nds32_unwind_sp): Delete.
9065 (nds32_gdbarch_init): Don't register deleted functions with
9068 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9070 * msp430-tdep.c (msp430_unwind_pc): Delete.
9071 (msp430_unwind_sp): Delete.
9072 (msp430_dummy_id): Delete.
9073 (msp430_gdbarch_init): Don't register deleted functions with
9076 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9078 * moxie-tdep.c (moxie_unwind_sp): Delete.
9079 (moxie_unwind_pc): Delete.
9080 (moxie_dummy_id): Delete.
9081 (moxie_gdbarch_init): Don't register deleted functions with
9084 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9086 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9087 (mn10300_unwind_pc): Delete.
9088 (mn10300_unwind_sp): Delete.
9089 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9091 (mn10300_frame_unwind_init): Don't register deleted functions with
9094 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9096 * mep-tdep.c (mep_unwind_pc): Delete.
9097 (mep_unwind_sp): Delete.
9098 (mep_dummy_id): Delete.
9099 (mep_gdbarch_init): Don't register deleted functions with
9102 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9104 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9105 (m68hc11_unwind_sp): Delete.
9106 (m68hc11_gdbarch_init): Don't register deleted functions with
9109 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9111 * m32r-tdep.c (m32r_unwind_sp): Delete.
9112 (m32r_unwind_pc): Delete.
9113 (m32r_dummy_id): Delete.
9114 (m32r_gdbarch_init): Don't register deleted functions with
9117 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9119 * m32c-tdep.c (m32c_unwind_pc): Delete.
9120 (m32c_unwind_sp): Delete.
9121 (m32c_dummy_id): Delete.
9122 (m32c_gdbarch_init): Don't register deleted functions with
9125 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9127 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9128 (lm32_unwind_pc): Delete.
9129 (lm32_dummy_id): Delete.
9130 (lm32_gdbarch_init): Don't register deleted functions with
9133 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9135 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9136 (iq2000_unwind_pc): Delete.
9137 (iq2000_dummy_id): Delete.
9138 (iq2000_gdbarch_init): Don't register deleted functions with
9141 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9143 * nds32-tdep.c (nds32_type_align): Delete.
9144 (nds32_push_dummy_call): Use type_align instead.
9146 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9148 * arm-tdep.c (arm_type_align): Only handle vector override case.
9149 (arm_push_dummy_call): Use type_align.
9150 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9152 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9154 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9156 (pass_on_stack): Use type_align.
9157 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9160 2019-04-23 Tom Tromey <tromey@adacore.com>
9162 * dwarf2read.c (line_header::file_name_at): Remove unused
9165 2019-04-23 Tom de Vries <tdevries@suse.de>
9168 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9172 2019-03-27 Ali Tamur <tamur@google.com>
9174 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9175 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9176 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9177 (dwarf_expr_context::get_addr_index): Likewise
9178 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9179 (symbol_needs_eval_context::get_addr_index): Likewise
9180 (disassemble_dwarf_expression): Add DW_OP_addrx
9181 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9182 (read_cutu_die_from_dwo): Update comment
9183 (skip_one_die): Add DW_FORM_addrx
9184 (read_attribute_value): Likewise
9185 (var_decode_location): Add DW_OP_addrx
9186 (dwarf2_const_value_attr): Add DW_FORM_addrx
9187 (dump_die_shallow): Likewise
9188 (dwarf2_fetch_constant_bytes): Likewise
9189 (decode_locdesc): Add DW_OP_addrx
9190 (skip_form_bytes): Add DW_FORM_addrx
9192 2019-04-22 Ali Tamur <tamur@google.com>
9194 * MAINTAINERS (Write After Approval): Add self.
9196 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9198 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9199 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9200 (open_symbol_file_object): Likewise.
9201 (svr4_default_sos): Add info parameter.
9202 (svr4_read_so_list): Likewise.
9203 (svr4_current_sos_direct): Adjust functions calls to pass down
9205 (svr4_current_sos_1): Add info parameter.
9206 (svr4_current_sos): Call get_svr4_info, pass info down to
9208 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9210 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9212 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9214 (probes_table_remove_objfile_probes): Likewise.
9215 (register_solib_event_probe): Add info parameter.
9216 (solist_update_incremental): Pass info parameter down to
9218 (disable_probes_interface): Add info parameter.
9219 (svr4_handle_solib_event): Pass current_program_space to
9220 get_svr4_info. Adjust disable_probes_interface cleanup.
9221 (svr4_create_probe_breakpoints): Add info parameter, pass it
9222 down to register_solib_event_probe.
9223 (svr4_create_solib_event_breakpoints): Add info parameter,
9224 pass it down to svr4_create_probe_breakpoints.
9225 (enable_break): Pass info down to
9226 svr4_create_solib_event_breakpoints.
9227 (svr4_solib_create_inferior_hook): Pass current_program_space to
9229 (svr4_clear_solib): Likewise.
9231 2019-04-22 Pedro Alves <palves@redhat.com>
9233 * solib-svr4.c (svr4_free_objfile_observer): New.
9234 (probe_and_action::objfile): New field.
9235 (probes_table_htab_remove_objfile_probes)
9236 (probes_table_remove_objfile_probes): New functions.
9237 (register_solib_event_probe): Add 'objfile' parameter. Store it
9238 in the new probe_and_action. Don't store the probe in 'lookup'.
9239 (svr4_create_probe_breakpoints): Pass objfile to
9240 register_solib_event_probe.
9241 (_initialize_svr4_solib): Register a free_objfile observer.
9243 2019-04-19 Tom Tromey <tom@tromey.com>
9245 * common/queue.h: Remove.
9247 2019-04-19 Tom Tromey <tom@tromey.com>
9249 * event-loop.c: Don't include "common/queue.h".
9251 2019-04-19 Tom Tromey <tom@tromey.com>
9253 * remote.c (remote_target): Use delete.
9254 * remote-notif.h: Include <list>, not "common/queue.h".
9255 (notif_client_p): Remove typedef.
9256 (remote_notif_state): Add constructor, destructor, initializer.
9257 <notif_queue>: Now a std::list.
9258 (remote_notif_state_xfree): Don't declare.
9259 * remote-notif.c (remote_notif_process, handle_notification)
9260 (remote_notif_state_allocate): Update.
9261 (~remote_notif_state): Rename from remote_notif_state_xfree.
9263 2019-04-19 Tom Tromey <tom@tromey.com>
9265 * symfile.c (reread_symbols): Update.
9266 * objfiles.c (objfile_register_static_link)
9267 (objfile_lookup_static_link): Update
9268 (~objfile) Don't delete static_links.
9269 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
9271 2019-04-19 Tom Tromey <tom@tromey.com>
9273 * type-stack.h (struct type_stack) <insert>: Constify string.
9274 * type-stack.c (type_stack::insert): Constify string.
9275 * gdbtypes.h (lookup_template_type): Update.
9276 (address_space_name_to_int): Update.
9277 * gdbtypes.c (address_space_name_to_int): Make space_identifier
9279 (lookup_template_type): Make name const.
9280 * c-exp.y: Update rules.
9281 (lex_one_token, classify_name, classify_inner_name)
9282 (c_print_token): Update.
9283 * p-exp.y: Update rules.
9285 * f-exp.y: Update rules.
9287 * d-exp.y: Update rules.
9288 (lex_one_token, classify_name, classify_inner_name): Update.
9289 * parse.c (write_dollar_variable, copy_name): Return std::string.
9290 * parser-defs.h (copy_name): Change return type.
9291 * m2-exp.y: Update rules.
9293 * go-exp.y (lex_one_token): Update.
9295 (classify_unsafe_function, classify_packaged_name)
9296 (classify_name, yylex): Update.
9298 2019-04-19 Sergei Trofimovich <siarheit@google.com>
9300 * configure.ac: add --enable-source-highlight switch.
9301 * configure: Regenerate.
9302 * top.c (print_gdb_version): plumb --enable-source-highlight
9303 status to "show configuration".
9305 2019-04-19 Tom Tromey <tromey@adacore.com>
9307 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
9309 (empty_record, ada_template_to_fixed_record_type_1)
9310 (template_to_static_fixed_type)
9311 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
9312 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
9313 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
9316 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
9319 * source.c (print_source_lines_base): Advance "iter" when a
9320 control character is seen.
9322 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9324 * inferior.h (struct infcall_suspend_state_deleter):
9325 Catch exception in destructor to avoid crash.
9327 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9329 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
9330 close to the add_com "shell".
9332 2019-04-18 Tom Tromey <tromey@adacore.com>
9334 * process-stratum-target.h (class process_stratum_target)
9335 <stratum>: Add "final".
9337 2019-04-17 Tom Tromey <tromey@adacore.com>
9339 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
9340 against nullptr before use.
9342 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9344 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9346 2019-04-17 Jim Wilson <jimw@sifive.com>
9347 Andrew Burgess <andrew.burgess@embecosm.com>
9349 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9350 code read might fail, assume 4-byte breakpoint in that case.
9352 2019-04-15 Leszek Swirski <leszeks@google.com>
9354 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9355 rather than a hand-rolled POD check when checking for forced MEMORY
9358 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9360 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9361 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9363 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9364 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9365 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9368 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9370 * aarch64-linux-nat.c
9371 (aarch64_linux_nat_target::thread_architecture): Add override.
9372 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9375 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9377 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9379 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9381 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9382 target types of size 96-bits, add some additional comments, and
9383 check that the builtin type we found was the correct size.
9385 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9387 * utils.c (prompt_for_continue): Don't restore the styling at the
9388 end, as applied_style has the wrong value. This fixes styling in
9389 long lists of file names that are interrupted by the "Continue?"
9392 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9394 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9395 * c-lang.c (c_language_defn): Likewise.
9396 (cplus_language_defn): Likewise.
9397 (asm_language_defn): Likewise.
9398 (minimal_language_defn): Likewise.
9399 * d-lang.c (d_language_defn): Likewise.
9400 * f-lang.c (f_language_defn): Likewise.
9401 * go-lang.c (go_language_defn): Likewise.
9402 * language.c (unknown_language_defn): Likewise.
9403 (auto_language_defn): Likewise.
9404 * language.h (struct language_defn): Remove la_magic field.
9405 (LANG_MAGIC): Delete.
9406 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9407 * objc-lang.c (objc_language_defn): Likewise.
9408 * opencl-lang.c (opencl_language_defn): Likewise.
9409 * p-lang.c (pascal_language_defn): Likewise.
9410 * rust-lang.c (rust_language_defn): Likewise.
9412 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9414 * riscv-tdep.c (riscv_type_align): New function.
9415 (riscv_type_alignment): Delete.
9416 (riscv_arg_location): Use 'type_align'.
9417 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9419 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9421 * gdbtypes.c (type_align): A struct with no non-static fields also
9424 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9426 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9428 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9430 (riscv_struct_info::analyse): New implementation using new
9431 analyse_inner member function.
9432 (riscv_struct_info::field_offset): New member function.
9433 (riscv_struct_info::m_offsets): New member variable.
9434 (riscv_struct_info::analyse_inner): New private member function,
9435 takes the old implementation of riscv_struct_info::analyse but
9436 extended to track field offsets.
9437 (riscv_call_arg_struct): Update the struct folding special cases
9438 to handle cases where empty C++ structs, which are non-zero
9440 (riscv_arg_location): Initialise the length of each location, a
9441 non-zero length now indicates the location is in use.
9442 (riscv_push_dummy_call): Allow for the first location having a
9443 non-zero offset when setting up arguments.
9444 (riscv_return_value): Likewise, but for return values.
9446 2019-04-11 Tom Tromey <tromey@adacore.com>
9448 * utils.c (internal_vproblem): Make "msg" const.
9450 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9452 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9453 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9454 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9455 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9457 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9459 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9461 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9462 of amd64_collect_native_gregset.
9463 (amd64_linux_nat_target::store_registers): Likewise.
9465 2019-04-10 Tom Tromey <tom@tromey.com>
9467 * symtab.c (lookup_global_symbol_from_objfile)
9468 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9469 * objfiles.h (class separate_debug_iterator): New.
9470 (class separate_debug_range): New.
9471 (struct objfile) <separate_debug_objfiles>: New method.
9472 (objfile_separate_debug_iterate): Don't declare.
9473 * objfiles.c (separate_debug_iterator::operator++): Rename from
9474 objfile_separate_debug_iterate.
9475 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9477 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9480 2019-04-10 Tom Tromey <tom@tromey.com>
9482 * symfile.c (reread_symbols): Remove old comment.
9483 * objfiles.c (free_all_objfiles): Fix a typo.
9485 2019-04-10 Tom Tromey <tom@tromey.com>
9487 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9488 * minsyms.c (lookup_minimal_symbol): Use foreach.
9489 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9490 (lookup_minimal_symbol_solib_trampoline): Likewise.
9491 * symfile.c (reread_symbols): Use foreach.
9493 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9494 Tom Tromey <tromey@adacore.com>
9497 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9498 (rust_lex_int_test): Change "value" to be LONGEST.
9499 (rust_lex_tests): Add test for long integer literal.
9501 2019-04-09 Tom Tromey <tromey@adacore.com>
9503 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9505 (extended_remote_target::attach): Update.
9506 (remote_target::remote_notice_new_inferior): Update.
9507 (remote_target::add_current_inferior_and_thread): Update.
9508 * inferior.c (exit_inferior_1): Use "false".
9509 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9511 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9513 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9514 the "start" command.
9516 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9518 * python/py-inferior.c (infpy_thread_from_thread_handle):
9519 Adjust comments to reflect renaming of thread_from_thread_handle
9520 to thread_from_handle. Adjust keywords. Fix type error message.
9521 (inferior_object_methods): Add thread_from_handle. Retain
9522 thread_from_thread_handle, but mark it as deprecated.
9524 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9526 * gdbthread.h (find_thread_by_handle): Revise declaration.
9527 * thread.c (find_thread_by_handle): Likewise. Adjust
9529 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9530 support for buffer objects as handles.
9532 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9534 * python/py-infthread.c (thpy_thread_handle): New function.
9535 (thread_object_methods): Register thpy_thread_handle.
9537 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9539 * gdbthread.h (thread_to_thread_handle): Declare.
9540 * thread.c (gdbtypes.h): Include.
9541 (thread_to_thread_handle): New function.
9543 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9544 (target_thread_info_to_thread_handle): Declare.
9545 * target.c (target_thread_info_to_thread_handle): New function.
9546 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9547 * target-delegates.c: Regenerate.
9549 * linux-thread-db.c (class thread_db_target): Add method
9550 thread_info_to_thread_handle.
9551 (thread_db_target::thread_info_to_thread_handle): Define.
9552 * remote.c (class remote_target): Add new method
9553 thread_info_to_thread_handle.
9554 (remote_target::thread_info_to_thread_handle): Define.
9556 2019-04-08 Pedro Alves <palves@redhat.com>
9558 * common/common-exceptions.c (throw_exception): Don't create
9559 named object to throw; throw directly.
9560 (throw_it): Likewise. Don't initialize gdb_exception::message
9561 here, with new; pass FMT and AP to the ctor instead.
9562 * common/common-exceptions.h: Include <string>.
9563 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9564 const char *, va_list)): New ctor. Use std::make_shared.
9565 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9567 (gdb_exception_error::gdb_exception_error(enum errors, const char
9569 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9571 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9573 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9574 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9577 2019-04-08 Tom Tromey <tom@tromey.com>
9579 * valops.c (value_rtti_indirect_type): Replace throw_exception
9581 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9583 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9585 * target.c (target_translate_tls_address): Replace throw_exception
9587 * stack.c (frame_apply_command_count): Replace throw_exception
9589 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9591 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9593 * rs6000-tdep.c (rs6000_frame_cache)
9594 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9595 * remote.c: Replace throw_exception with throw.
9596 * record-full.c (record_full_message, record_full_wait_1)
9597 (record_full_restore): Replace throw_exception with throw.
9599 (get_thread_current_frame_id, record_btrace_start_replaying)
9600 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9601 (cmd_record_btrace_start): Replace throw_exception with throw.
9602 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9604 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9605 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9607 (find_linespec_symbols): Replace throw_exception with throw.
9608 * infrun.c (displaced_step_prepare, resume): Replace
9609 throw_exception with throw.
9610 * infcmd.c (post_create_inferior): Replace throw_exception with
9612 * inf-loop.c (inferior_event_handler): Replace throw_exception
9614 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9615 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9616 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9617 (get_prev_frame_always, get_frame_pc_if_available)
9618 (get_frame_address_in_block_if_available, get_frame_language):
9619 Replace throw_exception with throw.
9620 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9621 throw_exception with throw.
9622 * eval.c (fetch_subexp_value, evaluate_var_value)
9623 (evaluate_funcall, evaluate_subexp_standard): Replace
9624 throw_exception with throw.
9625 * dwarf2loc.c (call_site_find_chain)
9626 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9627 Replace throw_exception with throw.
9628 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9630 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9632 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9633 * completer.c (complete_line_internal): Replace throw_exception
9635 * compile/compile-object-run.c (compile_object_run): Replace
9636 throw_exception with throw.
9637 * cli/cli-script.c (process_next_line): Replace throw_exception
9639 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9640 (btrace_enable, btrace_maint_update_pt_packets): Replace
9641 throw_exception with throw.
9642 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9643 throw_exception with throw.
9644 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9645 throw_exception with throw.
9646 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9647 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9648 * aarch64-tdep.c (aarch64_make_prologue_cache)
9649 (aarch64_make_stub_cache): Replace throw_exception with throw.
9651 2019-04-08 Tom Tromey <tom@tromey.com>
9653 * common/common-exceptions.c (throw_exception): Rename from
9654 throw_exception_cxx. Remove old copy. Make argument const.
9655 (throw_it): Create and throw exception objects directly.
9656 * common/common-exceptions.h (throw_exception): Make argument
9658 (struct gdb_exception_error): Add constructor.
9659 (struct gdb_exception_quit): Add constructor.
9661 2019-04-08 Tom Tromey <tom@tromey.com>
9663 * common/common-exceptions.h (exception_rethrow): Don't declare.
9664 (TRY_SJLJ): Update comment.
9665 (TRY, CATCH, END_CATCH): Remove.
9666 * common/common-exceptions.c (exception_rethrow): Remove.
9668 2019-04-08 Tom Tromey <tom@tromey.com>
9670 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9672 (gdb_exception_error): Rename from
9673 gdb_exception_RETURN_MASK_ERROR.
9674 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9675 (gdb_quit_bad_alloc): Update.
9676 * aarch64-tdep.c: Update.
9677 * ada-lang.c: Update.
9678 * ada-typeprint.c: Update.
9679 * ada-valprint.c: Update.
9680 * amd64-tdep.c: Update.
9681 * arch-utils.c: Update.
9682 * break-catch-throw.c: Update.
9683 * breakpoint.c: Update.
9685 * c-varobj.c: Update.
9686 * cli/cli-cmds.c: Update.
9687 * cli/cli-interp.c: Update.
9688 * cli/cli-script.c: Update.
9689 * common/common-exceptions.c: Update.
9690 * common/new-op.c: Update.
9691 * common/selftest.c: Update.
9692 * compile/compile-c-symbols.c: Update.
9693 * compile/compile-cplus-symbols.c: Update.
9694 * compile/compile-object-load.c: Update.
9695 * compile/compile-object-run.c: Update.
9696 * completer.c: Update.
9697 * corelow.c: Update.
9699 * cp-support.c: Update.
9700 * cp-valprint.c: Update.
9701 * darwin-nat.c: Update.
9702 * disasm-selftests.c: Update.
9703 * dtrace-probe.c: Update.
9704 * dwarf-index-cache.c: Update.
9705 * dwarf-index-write.c: Update.
9706 * dwarf2-frame-tailcall.c: Update.
9707 * dwarf2-frame.c: Update.
9708 * dwarf2loc.c: Update.
9709 * dwarf2read.c: Update.
9711 * event-loop.c: Update.
9712 * event-top.c: Update.
9714 * f-valprint.c: Update.
9715 * fbsd-tdep.c: Update.
9716 * frame-unwind.c: Update.
9718 * gdbtypes.c: Update.
9719 * gnu-v3-abi.c: Update.
9720 * guile/guile-internal.h: Update.
9721 * guile/scm-block.c: Update.
9722 * guile/scm-breakpoint.c: Update.
9723 * guile/scm-cmd.c: Update.
9724 * guile/scm-disasm.c: Update.
9725 * guile/scm-frame.c: Update.
9726 * guile/scm-lazy-string.c: Update.
9727 * guile/scm-math.c: Update.
9728 * guile/scm-param.c: Update.
9729 * guile/scm-ports.c: Update.
9730 * guile/scm-pretty-print.c: Update.
9731 * guile/scm-symbol.c: Update.
9732 * guile/scm-symtab.c: Update.
9733 * guile/scm-type.c: Update.
9734 * guile/scm-value.c: Update.
9735 * i386-linux-tdep.c: Update.
9736 * i386-tdep.c: Update.
9737 * inf-loop.c: Update.
9738 * infcall.c: Update.
9742 * language.c: Update.
9743 * linespec.c: Update.
9744 * linux-fork.c: Update.
9745 * linux-nat.c: Update.
9746 * linux-tdep.c: Update.
9747 * linux-thread-db.c: Update.
9749 * mi/mi-cmd-break.c: Update.
9750 * mi/mi-cmd-stack.c: Update.
9751 * mi/mi-interp.c: Update.
9752 * mi/mi-main.c: Update.
9753 * objc-lang.c: Update.
9754 * p-valprint.c: Update.
9756 * ppc-linux-tdep.c: Update.
9757 * printcmd.c: Update.
9758 * python/py-arch.c: Update.
9759 * python/py-breakpoint.c: Update.
9760 * python/py-cmd.c: Update.
9761 * python/py-finishbreakpoint.c: Update.
9762 * python/py-frame.c: Update.
9763 * python/py-framefilter.c: Update.
9764 * python/py-gdb-readline.c: Update.
9765 * python/py-inferior.c: Update.
9766 * python/py-infthread.c: Update.
9767 * python/py-lazy-string.c: Update.
9768 * python/py-linetable.c: Update.
9769 * python/py-objfile.c: Update.
9770 * python/py-param.c: Update.
9771 * python/py-prettyprint.c: Update.
9772 * python/py-progspace.c: Update.
9773 * python/py-record-btrace.c: Update.
9774 * python/py-record.c: Update.
9775 * python/py-symbol.c: Update.
9776 * python/py-type.c: Update.
9777 * python/py-unwind.c: Update.
9778 * python/py-utils.c: Update.
9779 * python/py-value.c: Update.
9780 * python/python.c: Update.
9781 * record-btrace.c: Update.
9782 * record-full.c: Update.
9783 * remote-fileio.c: Update.
9785 * riscv-tdep.c: Update.
9786 * rs6000-aix-tdep.c: Update.
9787 * rs6000-tdep.c: Update.
9788 * rust-exp.y: Update.
9789 * rust-lang.c: Update.
9790 * s390-tdep.c: Update.
9791 * selftest-arch.c: Update.
9792 * solib-dsbt.c: Update.
9793 * solib-frv.c: Update.
9794 * solib-spu.c: Update.
9795 * solib-svr4.c: Update.
9797 * sparc64-linux-tdep.c: Update.
9799 * symfile-mem.c: Update.
9800 * symmisc.c: Update.
9804 * tracefile-tfile.c: Update.
9805 * tui/tui.c: Update.
9806 * typeprint.c: Update.
9807 * unittests/cli-utils-selftests.c: Update.
9808 * unittests/parse-connection-spec-selftests.c: Update.
9810 * valprint.c: Update.
9813 * windows-nat.c: Update.
9814 * x86-linux-nat.c: Update.
9815 * xml-support.c: Update.
9817 2019-04-08 Tom Tromey <tom@tromey.com>
9819 * xml-support.c: Use C++ exception handling.
9820 * x86-linux-nat.c: Use C++ exception handling.
9821 * windows-nat.c: Use C++ exception handling.
9822 * varobj.c: Use C++ exception handling.
9823 * value.c: Use C++ exception handling.
9824 * valprint.c: Use C++ exception handling.
9825 * valops.c: Use C++ exception handling.
9826 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9828 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9829 * typeprint.c: Use C++ exception handling.
9830 * tui/tui.c: Use C++ exception handling.
9831 * tracefile-tfile.c: Use C++ exception handling.
9832 * top.c: Use C++ exception handling.
9833 * thread.c: Use C++ exception handling.
9834 * target.c: Use C++ exception handling.
9835 * symmisc.c: Use C++ exception handling.
9836 * symfile-mem.c: Use C++ exception handling.
9837 * stack.c: Use C++ exception handling.
9838 * sparc64-linux-tdep.c: Use C++ exception handling.
9839 * solib.c: Use C++ exception handling.
9840 * solib-svr4.c: Use C++ exception handling.
9841 * solib-spu.c: Use C++ exception handling.
9842 * solib-frv.c: Use C++ exception handling.
9843 * solib-dsbt.c: Use C++ exception handling.
9844 * selftest-arch.c: Use C++ exception handling.
9845 * s390-tdep.c: Use C++ exception handling.
9846 * rust-lang.c: Use C++ exception handling.
9847 * rust-exp.y: Use C++ exception handling.
9848 * rs6000-tdep.c: Use C++ exception handling.
9849 * rs6000-aix-tdep.c: Use C++ exception handling.
9850 * riscv-tdep.c: Use C++ exception handling.
9851 * remote.c: Use C++ exception handling.
9852 * remote-fileio.c: Use C++ exception handling.
9853 * record-full.c: Use C++ exception handling.
9854 * record-btrace.c: Use C++ exception handling.
9855 * python/python.c: Use C++ exception handling.
9856 * python/py-value.c: Use C++ exception handling.
9857 * python/py-utils.c: Use C++ exception handling.
9858 * python/py-unwind.c: Use C++ exception handling.
9859 * python/py-type.c: Use C++ exception handling.
9860 * python/py-symbol.c: Use C++ exception handling.
9861 * python/py-record.c: Use C++ exception handling.
9862 * python/py-record-btrace.c: Use C++ exception handling.
9863 * python/py-progspace.c: Use C++ exception handling.
9864 * python/py-prettyprint.c: Use C++ exception handling.
9865 * python/py-param.c: Use C++ exception handling.
9866 * python/py-objfile.c: Use C++ exception handling.
9867 * python/py-linetable.c: Use C++ exception handling.
9868 * python/py-lazy-string.c: Use C++ exception handling.
9869 * python/py-infthread.c: Use C++ exception handling.
9870 * python/py-inferior.c: Use C++ exception handling.
9871 * python/py-gdb-readline.c: Use C++ exception handling.
9872 * python/py-framefilter.c: Use C++ exception handling.
9873 * python/py-frame.c: Use C++ exception handling.
9874 * python/py-finishbreakpoint.c: Use C++ exception handling.
9875 * python/py-cmd.c: Use C++ exception handling.
9876 * python/py-breakpoint.c: Use C++ exception handling.
9877 * python/py-arch.c: Use C++ exception handling.
9878 * printcmd.c: Use C++ exception handling.
9879 * ppc-linux-tdep.c: Use C++ exception handling.
9880 * parse.c: Use C++ exception handling.
9881 * p-valprint.c: Use C++ exception handling.
9882 * objc-lang.c: Use C++ exception handling.
9883 * mi/mi-main.c: Use C++ exception handling.
9884 * mi/mi-interp.c: Use C++ exception handling.
9885 * mi/mi-cmd-stack.c: Use C++ exception handling.
9886 * mi/mi-cmd-break.c: Use C++ exception handling.
9887 * main.c: Use C++ exception handling.
9888 * linux-thread-db.c: Use C++ exception handling.
9889 * linux-tdep.c: Use C++ exception handling.
9890 * linux-nat.c: Use C++ exception handling.
9891 * linux-fork.c: Use C++ exception handling.
9892 * linespec.c: Use C++ exception handling.
9893 * language.c: Use C++ exception handling.
9894 * jit.c: Use C++ exception handling.
9895 * infrun.c: Use C++ exception handling.
9896 * infcmd.c: Use C++ exception handling.
9897 * infcall.c: Use C++ exception handling.
9898 * inf-loop.c: Use C++ exception handling.
9899 * i386-tdep.c: Use C++ exception handling.
9900 * i386-linux-tdep.c: Use C++ exception handling.
9901 * guile/scm-value.c: Use C++ exception handling.
9902 * guile/scm-type.c: Use C++ exception handling.
9903 * guile/scm-symtab.c: Use C++ exception handling.
9904 * guile/scm-symbol.c: Use C++ exception handling.
9905 * guile/scm-pretty-print.c: Use C++ exception handling.
9906 * guile/scm-ports.c: Use C++ exception handling.
9907 * guile/scm-param.c: Use C++ exception handling.
9908 * guile/scm-math.c: Use C++ exception handling.
9909 * guile/scm-lazy-string.c: Use C++ exception handling.
9910 * guile/scm-frame.c: Use C++ exception handling.
9911 * guile/scm-disasm.c: Use C++ exception handling.
9912 * guile/scm-cmd.c: Use C++ exception handling.
9913 * guile/scm-breakpoint.c: Use C++ exception handling.
9914 * guile/scm-block.c: Use C++ exception handling.
9915 * guile/guile-internal.h: Use C++ exception handling.
9916 * gnu-v3-abi.c: Use C++ exception handling.
9917 * gdbtypes.c: Use C++ exception handling.
9918 * frame.c: Use C++ exception handling.
9919 * frame-unwind.c: Use C++ exception handling.
9920 * fbsd-tdep.c: Use C++ exception handling.
9921 * f-valprint.c: Use C++ exception handling.
9922 * exec.c: Use C++ exception handling.
9923 * event-top.c: Use C++ exception handling.
9924 * event-loop.c: Use C++ exception handling.
9925 * eval.c: Use C++ exception handling.
9926 * dwarf2read.c: Use C++ exception handling.
9927 * dwarf2loc.c: Use C++ exception handling.
9928 * dwarf2-frame.c: Use C++ exception handling.
9929 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9930 * dwarf-index-write.c: Use C++ exception handling.
9931 * dwarf-index-cache.c: Use C++ exception handling.
9932 * dtrace-probe.c: Use C++ exception handling.
9933 * disasm-selftests.c: Use C++ exception handling.
9934 * darwin-nat.c: Use C++ exception handling.
9935 * cp-valprint.c: Use C++ exception handling.
9936 * cp-support.c: Use C++ exception handling.
9937 * cp-abi.c: Use C++ exception handling.
9938 * corelow.c: Use C++ exception handling.
9939 * completer.c: Use C++ exception handling.
9940 * compile/compile-object-run.c: Use C++ exception handling.
9941 * compile/compile-object-load.c: Use C++ exception handling.
9942 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9943 * compile/compile-c-symbols.c: Use C++ exception handling.
9944 * common/selftest.c: Use C++ exception handling.
9945 * common/new-op.c: Use C++ exception handling.
9946 * cli/cli-script.c: Use C++ exception handling.
9947 * cli/cli-interp.c: Use C++ exception handling.
9948 * cli/cli-cmds.c: Use C++ exception handling.
9949 * c-varobj.c: Use C++ exception handling.
9950 * btrace.c: Use C++ exception handling.
9951 * breakpoint.c: Use C++ exception handling.
9952 * break-catch-throw.c: Use C++ exception handling.
9953 * arch-utils.c: Use C++ exception handling.
9954 * amd64-tdep.c: Use C++ exception handling.
9955 * ada-valprint.c: Use C++ exception handling.
9956 * ada-typeprint.c: Use C++ exception handling.
9957 * ada-lang.c: Use C++ exception handling.
9958 * aarch64-tdep.c: Use C++ exception handling.
9960 2019-04-08 Tom Tromey <tom@tromey.com>
9962 * xml-support.c (gdb_xml_parser::parse): Update.
9963 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9964 * value.c (show_convenience): Update.
9965 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9966 (test_parse_flags_qcs): Update.
9967 * thread.c (thr_try_catch_cmd): Update.
9968 * target.c (target_translate_tls_address): Update.
9969 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9970 (info_frame_command_core, frame_apply_command_count): Update.
9971 * rust-exp.y (rust_lex_exception_test): Update.
9972 * riscv-tdep.c (riscv_print_one_register_info): Update.
9973 * remote.c (remote_target::enable_btrace): Update.
9974 * record-btrace.c (record_btrace_enable_warn): Update.
9975 * python/py-utils.c (gdbpy_convert_exception): Update.
9976 * printcmd.c (do_one_display, print_variable_and_value): Update.
9977 * mi/mi-main.c (mi_print_exception): Update.
9978 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9979 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9980 * linux-nat.c (linux_nat_target::attach): Update.
9981 * linux-fork.c (class scoped_switch_fork_info): Update.
9982 * infrun.c (displaced_step_prepare): Update.
9983 * infcall.c (call_function_by_hand_dummy): Update.
9984 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9985 * gnu-v3-abi.c (print_one_vtable): Update.
9986 * frame.c (get_prev_frame_always): Update.
9987 * f-valprint.c (info_common_command_for_block): Update.
9988 * exec.c (try_open_exec_file): Update.
9989 * exceptions.c (print_exception, exception_print)
9990 (exception_fprintf, exception_print_same): Update.
9991 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9992 * dwarf-index-cache.c (index_cache::store)
9993 (index_cache::lookup_gdb_index): Update.
9994 * darwin-nat.c (maybe_cache_shell): Update.
9995 * cp-valprint.c (cp_print_value_fields): Update.
9996 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9997 (gcc_cplus_symbol_address): Update.
9998 * compile/compile-c-symbols.c (gcc_convert_symbol)
9999 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10000 * common/selftest.c: Update.
10001 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10003 (exception_try_scope_entry, exception_try_scope_exit): Don't
10005 (struct exception_try_scope): Remove.
10006 (TRY): Don't use exception_try_scope.
10007 (struct gdb_exception): Add constructor, operator=.
10008 <what>: New method.
10009 (struct gdb_exception_RETURN_MASK_ALL)
10010 (struct gdb_exception_RETURN_MASK_ERROR)
10011 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10012 (struct gdb_quit_bad_alloc): Update.
10013 * common/common-exceptions.c (exception_none): Change
10015 (struct catcher) <state, exception>: Initialize inline.
10016 <prev>: Remove member.
10017 (current_catcher): Remove.
10018 (catchers): New global.
10019 (exceptions_state_mc_init): Simplify.
10020 (catcher_pop): Remove.
10021 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10022 (try_scope_depth, exception_try_scope_entry)
10023 (exception_try_scope_exit): Remove.
10024 (throw_exception_sjlj): Update.
10025 (exception_messages, exception_messages_size): Remove.
10026 (throw_it): Simplify.
10027 (gdb_exception_sliced_copy): Remove.
10028 (throw_exception_cxx): Update.
10029 * cli/cli-script.c (script_from_file): Update.
10030 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10032 * ada-valprint.c (ada_val_print): Update.
10033 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10034 (create_excep_cond_exprs): Update.
10036 2019-04-08 Tom Tromey <tom@tromey.com>
10038 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10039 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10040 (TRY, CATCH, END_CATCH): Remove some definitions.
10041 * common/common-exceptions.c: Don't use GDB_XCPT.
10042 (catcher_list_size): Remove.
10043 (throw_exception, throw_it): Simplify.
10045 2019-04-05 Tom Tromey <tom@tromey.com>
10047 Revert the header-sorting patch.
10048 * ft32-tdep.c: Revert.
10049 * frv-tdep.c: Revert.
10050 * frv-linux-tdep.c: Revert.
10052 * frame-unwind.c: Revert.
10053 * frame-base.c: Revert.
10054 * fork-child.c: Revert.
10055 * findvar.c: Revert.
10056 * findcmd.c: Revert.
10057 * filesystem.c: Revert.
10058 * filename-seen-cache.h: Revert.
10059 * filename-seen-cache.c: Revert.
10060 * fbsd-tdep.c: Revert.
10061 * fbsd-nat.h: Revert.
10062 * fbsd-nat.c: Revert.
10063 * f-valprint.c: Revert.
10064 * f-typeprint.c: Revert.
10065 * f-lang.c: Revert.
10066 * extension.h: Revert.
10067 * extension.c: Revert.
10068 * extension-priv.h: Revert.
10069 * expprint.c: Revert.
10072 * exceptions.c: Revert.
10073 * event-top.c: Revert.
10074 * event-loop.c: Revert.
10076 * elfread.c: Revert.
10077 * dwarf2read.h: Revert.
10078 * dwarf2read.c: Revert.
10079 * dwarf2loc.c: Revert.
10080 * dwarf2expr.h: Revert.
10081 * dwarf2expr.c: Revert.
10082 * dwarf2-frame.c: Revert.
10083 * dwarf2-frame-tailcall.c: Revert.
10084 * dwarf-index-write.h: Revert.
10085 * dwarf-index-write.c: Revert.
10086 * dwarf-index-common.c: Revert.
10087 * dwarf-index-cache.h: Revert.
10088 * dwarf-index-cache.c: Revert.
10089 * dummy-frame.c: Revert.
10090 * dtrace-probe.c: Revert.
10091 * disasm.h: Revert.
10092 * disasm.c: Revert.
10093 * disasm-selftests.c: Revert.
10094 * dictionary.c: Revert.
10095 * dicos-tdep.c: Revert.
10096 * demangle.c: Revert.
10097 * dcache.h: Revert.
10098 * dcache.c: Revert.
10099 * darwin-nat.h: Revert.
10100 * darwin-nat.c: Revert.
10101 * darwin-nat-info.c: Revert.
10102 * d-valprint.c: Revert.
10103 * d-namespace.c: Revert.
10104 * d-lang.c: Revert.
10106 * csky-tdep.c: Revert.
10107 * csky-linux-tdep.c: Revert.
10108 * cris-tdep.c: Revert.
10109 * cris-linux-tdep.c: Revert.
10110 * cp-valprint.c: Revert.
10111 * cp-support.c: Revert.
10112 * cp-namespace.c: Revert.
10113 * cp-abi.c: Revert.
10114 * corelow.c: Revert.
10115 * corefile.c: Revert.
10116 * continuations.c: Revert.
10117 * completer.h: Revert.
10118 * completer.c: Revert.
10119 * complaints.c: Revert.
10120 * coffread.c: Revert.
10121 * coff-pe-read.c: Revert.
10122 * cli-out.h: Revert.
10123 * cli-out.c: Revert.
10124 * charset.c: Revert.
10125 * c-varobj.c: Revert.
10126 * c-valprint.c: Revert.
10127 * c-typeprint.c: Revert.
10128 * c-lang.c: Revert.
10129 * buildsym.c: Revert.
10130 * buildsym-legacy.c: Revert.
10131 * build-id.h: Revert.
10132 * build-id.c: Revert.
10133 * btrace.c: Revert.
10134 * bsd-uthread.c: Revert.
10135 * breakpoint.h: Revert.
10136 * breakpoint.c: Revert.
10137 * break-catch-throw.c: Revert.
10138 * break-catch-syscall.c: Revert.
10139 * break-catch-sig.c: Revert.
10140 * blockframe.c: Revert.
10142 * bfin-tdep.c: Revert.
10143 * bfin-linux-tdep.c: Revert.
10144 * bfd-target.c: Revert.
10145 * bcache.c: Revert.
10146 * ax-general.c: Revert.
10147 * ax-gdb.h: Revert.
10148 * ax-gdb.c: Revert.
10149 * avr-tdep.c: Revert.
10151 * auto-load.c: Revert.
10152 * arm-wince-tdep.c: Revert.
10153 * arm-tdep.c: Revert.
10154 * arm-symbian-tdep.c: Revert.
10155 * arm-pikeos-tdep.c: Revert.
10156 * arm-obsd-tdep.c: Revert.
10157 * arm-nbsd-tdep.c: Revert.
10158 * arm-nbsd-nat.c: Revert.
10159 * arm-linux-tdep.c: Revert.
10160 * arm-linux-nat.c: Revert.
10161 * arm-fbsd-tdep.c: Revert.
10162 * arm-fbsd-nat.c: Revert.
10163 * arm-bsd-tdep.c: Revert.
10164 * arch-utils.c: Revert.
10165 * arc-tdep.c: Revert.
10166 * arc-newlib-tdep.c: Revert.
10167 * annotate.h: Revert.
10168 * annotate.c: Revert.
10169 * amd64-windows-tdep.c: Revert.
10170 * amd64-windows-nat.c: Revert.
10171 * amd64-tdep.c: Revert.
10172 * amd64-sol2-tdep.c: Revert.
10173 * amd64-obsd-tdep.c: Revert.
10174 * amd64-obsd-nat.c: Revert.
10175 * amd64-nbsd-tdep.c: Revert.
10176 * amd64-nbsd-nat.c: Revert.
10177 * amd64-nat.c: Revert.
10178 * amd64-linux-tdep.c: Revert.
10179 * amd64-linux-nat.c: Revert.
10180 * amd64-fbsd-tdep.c: Revert.
10181 * amd64-fbsd-nat.c: Revert.
10182 * amd64-dicos-tdep.c: Revert.
10183 * amd64-darwin-tdep.c: Revert.
10184 * amd64-bsd-nat.c: Revert.
10185 * alpha-tdep.c: Revert.
10186 * alpha-obsd-tdep.c: Revert.
10187 * alpha-nbsd-tdep.c: Revert.
10188 * alpha-mdebug-tdep.c: Revert.
10189 * alpha-linux-tdep.c: Revert.
10190 * alpha-linux-nat.c: Revert.
10191 * alpha-bsd-tdep.c: Revert.
10192 * alpha-bsd-nat.c: Revert.
10193 * aix-thread.c: Revert.
10195 * addrmap.c: Revert.
10196 * ada-varobj.c: Revert.
10197 * ada-valprint.c: Revert.
10198 * ada-typeprint.c: Revert.
10199 * ada-tasks.c: Revert.
10200 * ada-lang.c: Revert.
10201 * aarch64-tdep.c: Revert.
10202 * aarch64-ravenscar-thread.c: Revert.
10203 * aarch64-newlib-tdep.c: Revert.
10204 * aarch64-linux-tdep.c: Revert.
10205 * aarch64-linux-nat.c: Revert.
10206 * aarch64-fbsd-tdep.c: Revert.
10207 * aarch64-fbsd-nat.c: Revert.
10208 * aarch32-linux-nat.c: Revert.
10210 2019-04-05 Tom Tromey <tom@tromey.com>
10212 * ft32-tdep.c: Sort headers.
10213 * frv-tdep.c: Sort headers.
10214 * frv-linux-tdep.c: Sort headers.
10215 * frame.c: Sort headers.
10216 * frame-unwind.c: Sort headers.
10217 * frame-base.c: Sort headers.
10218 * fork-child.c: Sort headers.
10219 * findvar.c: Sort headers.
10220 * findcmd.c: Sort headers.
10221 * filesystem.c: Sort headers.
10222 * filename-seen-cache.h: Sort headers.
10223 * filename-seen-cache.c: Sort headers.
10224 * fbsd-tdep.c: Sort headers.
10225 * fbsd-nat.h: Sort headers.
10226 * fbsd-nat.c: Sort headers.
10227 * f-valprint.c: Sort headers.
10228 * f-typeprint.c: Sort headers.
10229 * f-lang.c: Sort headers.
10230 * extension.h: Sort headers.
10231 * extension.c: Sort headers.
10232 * extension-priv.h: Sort headers.
10233 * expprint.c: Sort headers.
10234 * exec.h: Sort headers.
10235 * exec.c: Sort headers.
10236 * exceptions.c: Sort headers.
10237 * event-top.c: Sort headers.
10238 * event-loop.c: Sort headers.
10239 * eval.c: Sort headers.
10240 * elfread.c: Sort headers.
10241 * dwarf2read.h: Sort headers.
10242 * dwarf2read.c: Sort headers.
10243 * dwarf2loc.c: Sort headers.
10244 * dwarf2expr.h: Sort headers.
10245 * dwarf2expr.c: Sort headers.
10246 * dwarf2-frame.c: Sort headers.
10247 * dwarf2-frame-tailcall.c: Sort headers.
10248 * dwarf-index-write.h: Sort headers.
10249 * dwarf-index-write.c: Sort headers.
10250 * dwarf-index-common.c: Sort headers.
10251 * dwarf-index-cache.h: Sort headers.
10252 * dwarf-index-cache.c: Sort headers.
10253 * dummy-frame.c: Sort headers.
10254 * dtrace-probe.c: Sort headers.
10255 * disasm.h: Sort headers.
10256 * disasm.c: Sort headers.
10257 * disasm-selftests.c: Sort headers.
10258 * dictionary.c: Sort headers.
10259 * dicos-tdep.c: Sort headers.
10260 * demangle.c: Sort headers.
10261 * dcache.h: Sort headers.
10262 * dcache.c: Sort headers.
10263 * darwin-nat.h: Sort headers.
10264 * darwin-nat.c: Sort headers.
10265 * darwin-nat-info.c: Sort headers.
10266 * d-valprint.c: Sort headers.
10267 * d-namespace.c: Sort headers.
10268 * d-lang.c: Sort headers.
10269 * ctf.c: Sort headers.
10270 * csky-tdep.c: Sort headers.
10271 * csky-linux-tdep.c: Sort headers.
10272 * cris-tdep.c: Sort headers.
10273 * cris-linux-tdep.c: Sort headers.
10274 * cp-valprint.c: Sort headers.
10275 * cp-support.c: Sort headers.
10276 * cp-namespace.c: Sort headers.
10277 * cp-abi.c: Sort headers.
10278 * corelow.c: Sort headers.
10279 * corefile.c: Sort headers.
10280 * continuations.c: Sort headers.
10281 * completer.h: Sort headers.
10282 * completer.c: Sort headers.
10283 * complaints.c: Sort headers.
10284 * coffread.c: Sort headers.
10285 * coff-pe-read.c: Sort headers.
10286 * cli-out.h: Sort headers.
10287 * cli-out.c: Sort headers.
10288 * charset.c: Sort headers.
10289 * c-varobj.c: Sort headers.
10290 * c-valprint.c: Sort headers.
10291 * c-typeprint.c: Sort headers.
10292 * c-lang.c: Sort headers.
10293 * buildsym.c: Sort headers.
10294 * buildsym-legacy.c: Sort headers.
10295 * build-id.h: Sort headers.
10296 * build-id.c: Sort headers.
10297 * btrace.c: Sort headers.
10298 * bsd-uthread.c: Sort headers.
10299 * breakpoint.h: Sort headers.
10300 * breakpoint.c: Sort headers.
10301 * break-catch-throw.c: Sort headers.
10302 * break-catch-syscall.c: Sort headers.
10303 * break-catch-sig.c: Sort headers.
10304 * blockframe.c: Sort headers.
10305 * block.c: Sort headers.
10306 * bfin-tdep.c: Sort headers.
10307 * bfin-linux-tdep.c: Sort headers.
10308 * bfd-target.c: Sort headers.
10309 * bcache.c: Sort headers.
10310 * ax-general.c: Sort headers.
10311 * ax-gdb.h: Sort headers.
10312 * ax-gdb.c: Sort headers.
10313 * avr-tdep.c: Sort headers.
10314 * auxv.c: Sort headers.
10315 * auto-load.c: Sort headers.
10316 * arm-wince-tdep.c: Sort headers.
10317 * arm-tdep.c: Sort headers.
10318 * arm-symbian-tdep.c: Sort headers.
10319 * arm-pikeos-tdep.c: Sort headers.
10320 * arm-obsd-tdep.c: Sort headers.
10321 * arm-nbsd-tdep.c: Sort headers.
10322 * arm-nbsd-nat.c: Sort headers.
10323 * arm-linux-tdep.c: Sort headers.
10324 * arm-linux-nat.c: Sort headers.
10325 * arm-fbsd-tdep.c: Sort headers.
10326 * arm-fbsd-nat.c: Sort headers.
10327 * arm-bsd-tdep.c: Sort headers.
10328 * arch-utils.c: Sort headers.
10329 * arc-tdep.c: Sort headers.
10330 * arc-newlib-tdep.c: Sort headers.
10331 * annotate.h: Sort headers.
10332 * annotate.c: Sort headers.
10333 * amd64-windows-tdep.c: Sort headers.
10334 * amd64-windows-nat.c: Sort headers.
10335 * amd64-tdep.c: Sort headers.
10336 * amd64-sol2-tdep.c: Sort headers.
10337 * amd64-obsd-tdep.c: Sort headers.
10338 * amd64-obsd-nat.c: Sort headers.
10339 * amd64-nbsd-tdep.c: Sort headers.
10340 * amd64-nbsd-nat.c: Sort headers.
10341 * amd64-nat.c: Sort headers.
10342 * amd64-linux-tdep.c: Sort headers.
10343 * amd64-linux-nat.c: Sort headers.
10344 * amd64-fbsd-tdep.c: Sort headers.
10345 * amd64-fbsd-nat.c: Sort headers.
10346 * amd64-dicos-tdep.c: Sort headers.
10347 * amd64-darwin-tdep.c: Sort headers.
10348 * amd64-bsd-nat.c: Sort headers.
10349 * alpha-tdep.c: Sort headers.
10350 * alpha-obsd-tdep.c: Sort headers.
10351 * alpha-nbsd-tdep.c: Sort headers.
10352 * alpha-mdebug-tdep.c: Sort headers.
10353 * alpha-linux-tdep.c: Sort headers.
10354 * alpha-linux-nat.c: Sort headers.
10355 * alpha-bsd-tdep.c: Sort headers.
10356 * alpha-bsd-nat.c: Sort headers.
10357 * aix-thread.c: Sort headers.
10358 * agent.c: Sort headers.
10359 * addrmap.c: Sort headers.
10360 * ada-varobj.c: Sort headers.
10361 * ada-valprint.c: Sort headers.
10362 * ada-typeprint.c: Sort headers.
10363 * ada-tasks.c: Sort headers.
10364 * ada-lang.c: Sort headers.
10365 * aarch64-tdep.c: Sort headers.
10366 * aarch64-ravenscar-thread.c: Sort headers.
10367 * aarch64-newlib-tdep.c: Sort headers.
10368 * aarch64-linux-tdep.c: Sort headers.
10369 * aarch64-linux-nat.c: Sort headers.
10370 * aarch64-fbsd-tdep.c: Sort headers.
10371 * aarch64-fbsd-nat.c: Sort headers.
10372 * aarch32-linux-nat.c: Sort headers.
10374 2019-04-04 Tom Tromey <tom@tromey.com>
10376 * varobj.c (varobj_create): Update.
10377 * rust-exp.y (struct rust_parser) <update_innermost_block,
10378 lookup_symbol>: New methods.
10379 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10381 (rust_parser::rust_lookup_type)
10382 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10383 * printcmd.c (display_command, do_one_display): Update.
10384 * parser-defs.h (struct parser_state) <parser_state>: Add
10385 "tracker" parameter.
10386 (block_tracker): New member.
10387 (class innermost_block_tracker) <innermost_block_tracker>: Add
10389 <reset>: Remove method.
10390 (innermost_block): Don't declare.
10391 (null_post_parser): Update.
10392 * parse.c (innermost_block): Remove global.
10393 (write_dollar_variable): Update.
10394 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10395 Remove "tracker_types" parameter.
10396 (parse_expression): Add "tracker" parameter.
10397 (parse_expression_for_completion): Update.
10398 (null_post_parser): Add "tracker" parameter.
10399 * p-exp.y: Update rules.
10400 * m2-exp.y: Update rules.
10401 * language.h (struct language_defn) <la_post_parser>: Add
10402 "tracker" parameter.
10403 * go-exp.y: Update rules.
10404 * f-exp.y: Update rules.
10405 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10407 * d-exp.y: Update rules.
10408 * c-exp.y: Update rules.
10409 * breakpoint.c (set_breakpoint_condition): Create an
10410 innermost_block_tracker.
10411 (watch_command_1): Likewise.
10412 * ada-lang.c (resolve): Add "tracker" parameter.
10413 (resolve_subexp): Likewise.
10414 * ada-exp.y (write_var_from_sym): Update.
10416 2019-04-04 Tom Tromey <tom@tromey.com>
10418 * type-stack.h: New file.
10419 * type-stack.c: New file.
10420 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10422 (insert_into_type_stack, insert_type, push_type, push_type_int)
10423 (insert_type_address_space, pop_type, pop_type_int)
10424 (pop_typelist, pop_type_stack, append_type_stack)
10425 (push_type_stack, get_type_stack, push_typelist)
10426 (follow_type_instance_flags, follow_types): Don't declare.
10427 * parse.c (type_stack): Remove global.
10428 (parse_exp_in_context): Update.
10429 (insert_into_type_stack, insert_type, push_type, push_type_int)
10430 (insert_type_address_space, pop_type, pop_type_int)
10431 (pop_typelist, pop_type_stack, append_type_stack)
10432 (push_type_stack, get_type_stack, push_typelist)
10433 (follow_type_instance_flags, follow_types): Remove (moved to
10435 * f-exp.y (type_stack): New global.
10437 (push_kind_type, f_parse): Update.
10438 * d-exp.y (type_stack): New global.
10441 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10443 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10444 (HFILES_NO_SRCDIR): Add type-stack.h.
10446 2019-04-04 Tom Tromey <tom@tromey.com>
10448 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10449 (rust_parser::convert_ast_to_expression, rust_parse)
10450 (rust_lex_test_completion, rust_lex_tests): Update.
10451 * parser-defs.h (struct expr_completion_state): New.
10452 (struct parser_state) <parser_state>: Add completion parameter.
10453 <mark_struct_expression, mark_completion_tag>: New methods.
10454 <parse_completion, m_completion_state>: New members.
10455 (prefixify_expression, null_post_parser): Update.
10456 (mark_struct_expression, mark_completion_tag): Don't declare.
10457 * parse.c (parse_completion, expout_last_struct)
10458 (expout_tag_completion_type, expout_completion_name): Remove
10460 (parser_state::mark_struct_expression)
10461 (parser_state::mark_completion_tag): Now methods.
10462 (prefixify_expression): Add last_struct parameter.
10463 (prefixify_subexp): Likewise.
10464 (parse_exp_1): Update.
10465 (parse_exp_in_context): Add cstate parameter. Update.
10466 (parse_expression_for_completion): Create an
10467 expr_completion_state.
10468 (null_post_parser): Add "completion" parameter.
10469 * p-exp.y: Update rules.
10471 * language.h (struct language_defn) <la_post_parser>: Add
10472 "completing" parameter.
10473 * go-exp.y: Update rules.
10474 (lex_one_token): Update.
10475 * expression.h (parse_completion): Don't declare.
10476 * d-exp.y: Update rules.
10477 (lex_one_token): Update rules.
10478 * c-exp.y: Update rules.
10479 (lex_one_token): Update.
10480 * ada-lang.c (resolve): Add "parse_completion" parameter.
10481 (resolve_subexp): Likewise.
10482 (ada_resolve_function): Likewise.
10484 2019-04-04 Tom Tromey <tom@tromey.com>
10486 * parser-defs.h (struct parser_state) <start_arglist,
10487 end_arglist>: New methods.
10488 <arglist_len, m_funcall_chain>: New members.
10489 (arglist_len, start_arglist, end_arglist): Don't declare.
10490 * parse.c (arglist_len, funcall_chain): Remove global.
10491 (start_arglist, end_arglist): Remove functions.
10492 (parse_exp_in_context): Update.
10493 * p-exp.y: Update rules.
10494 * m2-exp.y: Update rules.
10495 * go-exp.y: Update rules.
10496 * f-exp.y: Update rules.
10497 * d-exp.y: Update rules.
10498 * c-exp.y: Update rules.
10500 2019-04-04 Tom Tromey <tom@tromey.com>
10502 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10503 lex_operator, push_back>: New methods.
10505 (rust_parser::lex_hex, lex_escape): Rename and update.
10506 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10507 (rust_parser::lex_operator): Rename and update.
10508 (rust_parser::lex_number, rustyylex, rustyyerror)
10509 (rust_lex_test_init, rust_lex_test_sequence)
10510 (rust_lex_test_push_back, rust_lex_tests): Update.
10511 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10513 <lexptr, prev_lexptr>: New members.
10514 (lexptr, prev_lexptr): Don't declare.
10515 * parse.c (lexptr, prev_lexptr): Remove globals.
10516 (parse_exp_in_context): Update.
10517 * p-exp.y (yylex, yyerror): Update.
10518 * m2-exp.y (parse_number, yylex, yyerror): Update.
10519 * go-exp.y (lex_one_token, yyerror): Update.
10520 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10521 * d-exp.y (lex_one_token, yyerror): Update.
10522 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10523 (lex_one_token, yyerror): Update.
10524 * ada-lex.l (YY_INPUT): Update.
10525 (rewind_to_char): Update.
10526 * ada-exp.y (yyerror): Update.
10528 2019-04-04 Tom Tromey <tom@tromey.com>
10530 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10531 * parser-defs.h (struct parser_state) <parser_state>: Add new
10533 <comma_terminates>: New member.
10534 (comma_terminates): Don't declare global.
10535 * parse.c (comma_terminates): Remove global.
10536 (parse_exp_in_context): Update.
10537 * p-exp.y (yylex): Update.
10538 * m2-exp.y (yylex): Update.
10539 * go-exp.y (lex_one_token): Update.
10540 * f-exp.y (yylex): Update.
10541 * d-exp.y (lex_one_token): Update.
10542 * c-exp.y (lex_one_token): Update.
10543 * ada-lex.l: Update.
10545 2019-04-04 Tom Tromey <tom@tromey.com>
10547 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10548 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10549 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10550 * parser-defs.h (paren_depth): Don't declare.
10551 * parse.c (paren_depth): Remove global.
10552 (parse_exp_in_context): Update.
10553 * p-exp.y (paren_depth): New global.
10554 (pascal_parse): Initialize it.
10555 * m2-exp.y (paren_depth): New global.
10556 (m2_parse): Initialize it.
10557 * go-exp.y (paren_depth): New global.
10558 (go_parse): Initialize it.
10559 * f-exp.y (paren_depth): New global.
10560 (f_parse): Initialize it.
10561 * d-exp.y (paren_depth): New global.
10562 (d_parse): Initialize it.
10563 * c-exp.y (paren_depth): New global.
10564 (c_parse): Initialize it.
10565 * ada-lex.l (paren_depth): New global.
10566 (lexer_init): Initialize it.
10568 2019-04-04 Tom Tromey <tom@tromey.com>
10570 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10571 (rust_parser::convert_ast_to_type)
10572 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10573 * parser-defs.h (struct parser_state) <parser_state>: Add
10574 parameters. Initialize new members.
10575 <expression_context_block, expression_context_pc>: New members.
10576 * parse.c (expression_context_block, expression_context_pc):
10578 (parse_exp_in_context): Update.
10579 * p-exp.y: Update all rules.
10581 * m2-exp.y: Update all rules.
10583 * go-exp.y (yylex): Update.
10584 * f-exp.y (yylex): Update.
10585 * d-exp.y: Update all rules.
10587 * c-exp.y: Update all rules.
10588 (lex_one_token, classify_name, yylex, c_parse): Update.
10589 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10591 2019-04-04 Tom Tromey <tom@tromey.com>
10593 * gdbarch.h, gdbarch.c: Rebuild.
10594 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10596 (struct stap_parse_info): Replace "parser_state" with
10598 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10599 (parser_state): New class.
10600 * parse.c (expr_builder): Rename.
10601 (expr_builder::release): Rename.
10602 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10603 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10604 (write_exp_elt_longcst, write_exp_elt_floatcst)
10605 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10606 (write_exp_string_vector, write_exp_bitstring)
10607 (write_exp_msymbol, mark_struct_expression)
10608 (write_dollar_variable)
10609 (insert_type_address_space, increase_expout_size): Replace
10610 "parser_state" with "expr_builder".
10611 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10612 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10613 "parser_state" with "expr_builder".
10615 2019-04-04 Tom Tromey <tom@tromey.com>
10617 * rust-exp.y: Replace "parse_language" with method call.
10619 (yylex): Replace "parse_language" with method call.
10621 (yylex): Replace "parse_language" with method call.
10622 * go-exp.y (classify_name): Replace "parse_language" with method
10624 * f-exp.y (yylex): Replace "parse_language" with method call.
10625 * d-exp.y (lex_one_token): Replace "parse_language" with method
10628 (lex_one_token, classify_name, yylex): Replace "parse_language"
10630 * ada-exp.y (find_primitive_type, type_char)
10631 (type_system_address): Replace "parse_language" with method call.
10633 2019-04-04 Tom Tromey <tom@tromey.com>
10635 * rust-exp.y: Replace "parse_gdbarch" with method call.
10636 * parse.c (write_dollar_variable, insert_type_address_space):
10637 Replace "parse_gdbarch" with method call.
10638 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10640 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10642 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10643 "parse_gdbarch" with method call.
10644 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10646 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10647 "parse_gdbarch" with method call.
10648 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10649 "parse_gdbarch" with method call.
10650 * c-exp.y (parse_type, parse_number, classify_name): Replace
10651 "parse_gdbarch" with method call.
10652 * ada-lex.l: Replace "parse_gdbarch" with method call.
10653 * ada-exp.y (parse_type, find_primitive_type, type_char)
10654 (type_system_address): Replace "parse_gdbarch" with method call.
10656 2019-04-04 Tom Tromey <tom@tromey.com>
10658 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10659 * stap-probe.c (stap_parse_argument): Update.
10660 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10661 initial_size parameter.
10662 * rust-exp.y (rust_lex_tests): Update.
10663 * parse.c (parser_state): Update.
10664 (parse_exp_in_context): Update.
10665 * parser-defs.h (struct parser_state) <parser_state>: Remove
10666 "initial_size" parameter.
10668 2019-04-04 Tom Tromey <tom@tromey.com>
10670 * parser-defs.h (increase_expout_size): Don't declare.
10671 * parse.c (increase_expout_size): Now static.
10673 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10675 * gnu-nat.c (gnu_nat_target::wait): Fix
10676 target_waitstatus_to_string call.
10678 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10680 * eval.c (evaluate_subexp_standard): Handle internal functions
10681 during Fortran function call handling.
10683 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10685 * NEWS: Mention new internal functions.
10686 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10687 (read_base_type): Use dwarf2_init_complex_target_type.
10688 * value.c (creal_internal_fn): New function.
10689 (cimag_internal_fn): New function.
10690 (_initialize_values): Register new internal functions.
10692 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10694 * infrun.c (stop_all_threads): If debug_infrun, always
10695 trace the wait status after wait_one, using
10696 target_waitstatus_to_string and target_pid_to_str.
10697 (handle_inferior_event): Replace various trace of
10698 wait status kind by a single trace.
10699 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10700 wait status kind image by target_waitstatus_to_string.
10701 * target/waitstatus.c (target_waitstatus_to_string): Fix
10704 2019-04-01 Tom Tromey <tromey@adacore.com>
10707 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10709 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10710 Pedro Alves <palves@redhat.com>
10712 * top.c (quit_force): Call 'finalize_values'.
10713 * value.c (finalize_values): New function.
10714 * value.h (finalize_values): Declare.
10716 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10718 * NEWS: Announce $_gdb_major and $_gdb_minor.
10720 * top.c (init_gdb_version_vars): New function.
10721 (gdb_init): Call init_gdb_version_vars.
10723 2019-03-29 Tom Tromey <tromey@adacore.com>
10725 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10726 help text. Remove dead code.
10728 2019-03-29 Keith Seitz <keiths@redhat.com>
10730 From Siddhesh Poyarekar:
10731 * f-lang.h (f77_get_upperbound): Return LONGEST.
10732 (f77_get_lowerbound): Likewise.
10733 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10734 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10736 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10737 plongest to format print it.
10738 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10739 (f77_get_upperbound): Likewise.
10740 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10741 LOWER_BOUND to LONGEST.
10742 (f77_create_arrayprint_offset_tbl): Likewise.
10744 2019-03-29 Keith Seitz <keiths@redhat.com>
10746 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10747 %s/pulongest for TYPE_LENGTH instead of %d in format
10749 * ada-typerint.c (ada_print_type): Likewise.
10750 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10751 * compile/compile-c-support.c (generate_register_struct): Likewise.
10752 * gdbtypes.c (recursive_dump_type): Likewise.
10753 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10754 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10755 instead of %d in format strings.
10756 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10757 to std::min to ULONGEST.
10758 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10759 instead of %d in format strings.
10760 * tracepoint.c (info_scope_command): Likewise.
10761 * typeprint.c (print_offset_data::update)
10762 (print_offset_data::finish): Likewise.
10763 * xtensa-tdep.c (xtensa_store_return_value)
10764 (xtensa_push_dummy_call): Likewise.
10766 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10768 * windows-nat.c (display_selector): Fixed format specifications
10771 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10773 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10775 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10777 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10778 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10779 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10780 (nios2_linux_init_abi): Install it.
10782 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10784 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10786 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10788 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10790 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10791 Tom Tromey <tromey@adacore.com>
10793 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10795 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10797 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10798 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10799 method to compute the bounds of range types. Also print "[evaluated]"
10800 if the bounds' values come from a dynamic evaluation.
10802 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10804 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10805 whitespace when pretty printing is on.
10807 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10809 * ppc-linux-nat.c: Add include.
10811 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10813 * NEWS: Mention AArch64 Pointer Authentication.
10815 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10817 * arm-linux-nat.c: Add include.
10819 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10821 * source-cache.c (source_cache::get_source_lines): Re-read
10822 fullname after calling open_source_file.
10824 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10826 * NEWS: Mention TLS support for FreeBSD.
10828 2019-03-25 Tom Tromey <tromey@adacore.com>
10830 * minsyms.c (BUNCH_SIZE): Update comment.
10831 (~minimal_symbol_reader): Remove old comment.
10832 (compact_minimal_symbols): Update comment.
10833 (minimal_symbol_reader::install): Remove old comment. Update
10836 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10838 * s390-linux-nat.c: Add include.
10840 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10842 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10843 Call linux_get_hwcap.
10844 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10846 (aarch64_linux_get_hwcap): Remove function.
10847 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10849 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10851 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10852 * linux-tdep.c (linux_get_hwcap): Add function.
10853 (linux_get_hwcap2): Likewise.
10854 * linux-tdep.h (linux_get_hwcap): Add declaration.
10855 (linux_get_hwcap2): Likewise.
10856 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10857 (ppc_linux_get_hwcap2): Likewise.
10858 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10860 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10861 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10862 (ppc_linux_nat_target::read_description): Likewise.
10863 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10864 * s390-linux-nat.c: Likewise.
10865 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10867 2019-03-24 Tom Tromey <tom@tromey.com>
10869 * ada-lang.c (standard_lookup): Simplify initialization.
10870 (ada_lookup_symbol_nonlocal): Simplify return.
10871 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10872 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10873 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10874 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10876 * solib.c (solib_global_lookup): Simplify.
10877 * symtab.c (null_block_symbol): Remove.
10878 (symbol_cache_lookup): Simplify returns.
10879 (lookup_language_this): Simplify returns.
10880 (lookup_symbol_aux): Simplify return.
10881 (lookup_local_symbol): Simplify returns.
10882 (lookup_global_symbol_from_objfile): Simplify return.
10883 (lookup_symbol_in_objfile_symtabs)
10884 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10885 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10886 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10887 * cp-namespace.c (cp_lookup_bare_symbol)
10888 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10889 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10890 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10891 (cp_lookup_symbol_via_imports): Simplify initialization.
10892 (find_symbol_in_baseclass): Likewise.
10893 * symtab.h (null_block_symbol): Remove.
10894 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10895 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10896 (d_lookup_symbol_module): Likewise.
10897 (find_symbol_in_baseclass): Simplify initialization.
10899 2019-03-24 Tom Tromey <tom@tromey.com>
10901 * expression.h: Don't include symtab.h.
10902 (struct block): Forward declare.
10904 2019-03-24 Tom Tromey <tom@tromey.com>
10906 * c-exp.y (typebase): Remove casts.
10907 * gdbtypes.c (lookup_unsigned_typename, )
10908 (lookup_signed_typename): Remove cast.
10909 * eval.c (parse_to_comma_and_eval): Remove cast.
10910 * parse.c (write_dollar_variable): Remove cast.
10911 * block.h (struct block) <superblock>: Now const.
10912 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10913 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10914 (map_block): Make "block" const.
10915 * symfile.h (struct quick_symbol_functions)
10916 <map_matching_symbols>: Constify block argument to "callback".
10917 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10919 (find_pc_sect_compunit_symtab): Make "b" const.
10920 (find_symbol_at_address): Likewise.
10921 (search_symbols): Likewise.
10922 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10923 (dw2_debug_names_lookup_symbol): Likewise.
10924 (dw2_map_matching_symbols): Update.
10925 * p-valprint.c (pascal_val_print): Remove "block".
10926 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10927 (aux_add_nonlocal_symbols): Make "block" const.
10928 (resolve_subexp): Remove cast.
10929 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10931 (iterate_over_file_blocks): Likewise.
10932 * f-exp.y (%union) <bval>: Remove.
10933 * coffread.c (patch_opaque_types): Make "b" const.
10934 * spu-tdep.c (spu_catch_start): Make "block" const.
10935 * c-valprint.c (print_unpacked_pointer): Remove "block".
10936 * symmisc.c (dump_symtab_1): Make "b" const.
10937 (block_depth): Make "block" const.
10938 * d-exp.y (%union) <bval>: Remove.
10939 * cp-support.h (cp_lookup_rtti_type): Update.
10940 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10941 * psymtab.c (psym_lookup_symbol): Make "block" const.
10942 (maintenance_check_psymtabs): Make "b" const.
10943 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10944 (enumerate_locals, enumerate_args): Update.
10945 * python/py-symtab.c (stpy_global_block): Make "block" const.
10946 (stpy_static_block): Likewise.
10947 * inline-frame.c (block_starting_point_at): Make "new_block"
10949 * block.c (find_block_in_blockvector): Make return type const.
10950 (blockvector_for_pc_sect): Make "b" const.
10951 (find_block_in_blockvector): Make "b" const.
10953 2019-03-23 Tom Tromey <tom@tromey.com>
10955 * varobj.c (varobj_create): Update.
10956 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10957 * printcmd.c (display_command, do_one_display): Don't reset
10959 * parser-defs.h (enum innermost_block_tracker_type): Move to
10961 (innermost_block): Update comment.
10962 * parse.c (parse_exp_1): Add tracker_types parameter.
10963 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10964 tracker_types parameter. Reset innermost_block.
10965 (parse_exp_in_context): Remove.
10966 (parse_expression_for_completion): Update.
10967 * objfiles.c (~objfile): Don't reset expression_context_block or
10969 * expression.h (enum innermost_block_tracker_type): Move from
10971 (parse_exp_1): Add tracker_types parameter.
10972 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10973 reset innermost_block.
10975 2019-03-23 Tom Tromey <tom@tromey.com>
10977 * objfiles.h: Include bcache.h.
10979 2019-03-23 Tom Tromey <tom@tromey.com>
10981 * linespec.c (get_current_search_block): Use
10982 scoped_restore_current_language.
10983 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10985 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10986 Jiong Wang <jiong.wang@arm.com>
10988 * aarch64-linux-tdep.c
10989 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10991 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10993 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10994 Jiong Wang <jiong.wang@arm.com>
10996 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10998 (aarch64_analyze_prologue_test): Add PACIASP test.
10999 (aarch64_prologue_prev_register): Unmask PC value.
11001 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11002 Jiong Wang <jiong.wang@arm.com>
11004 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11005 (aarch64_dwarf2_prev_register): Unmask PC value.
11006 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11007 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11008 DW_CFA_AARCH64_negate_ra_state.
11009 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11011 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11012 Jiong Wang <jiong.wang@arm.com>
11014 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11016 (aarch64_pseudo_register_name): Likewise.
11017 (aarch64_pseudo_register_type): Likewise.
11018 (aarch64_pseudo_register_reggroup_p): Likewise.
11019 (aarch64_gdbarch_init): Add pauth registers.
11020 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11021 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11022 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11023 (struct gdbarch_tdep): Add regnum for ra_state.
11025 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11026 Jiong Wang <jiong.wang@arm.com>
11028 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11030 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11031 Jiong Wang <jiong.wang@arm.com>
11033 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11035 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11036 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11037 (aarch64_gdbarch_init): Add puth registers.
11038 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11039 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11040 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11042 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11043 Jiong Wang <jiong.wang@arm.com>
11045 * aarch64-linux-nat.c
11046 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11047 * aarch64-linux-tdep.c
11048 (aarch64_linux_core_read_description): Likewise.
11049 (aarch64_linux_get_hwcap): New function.
11050 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11051 (aarch64_linux_get_hwcap): New declaration.
11053 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11054 Jiong Wang <jiong.wang@arm.com>
11056 * aarch64-linux-nat.c
11057 (aarch64_linux_nat_target::read_description): Add pauth param.
11058 * aarch64-linux-tdep.c
11059 (aarch64_linux_core_read_description): Likewise.
11060 * aarch64-tdep.c (struct target_desc): Add in pauth.
11061 (aarch64_read_description): Add pauth param.
11062 (aarch64_gdbarch_init): Likewise.
11063 * aarch64-tdep.h (aarch64_read_description): Likewise.
11064 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11065 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11066 * features/Makefile: Add new files.
11067 * features/aarch64-pauth.c: New file.
11068 * features/aarch64-pauth.xml: New file.
11070 2019-03-20 Tom Tromey <tromey@adacore.com>
11072 * infrun.c (handle_inferior_event): Rename from
11073 handle_inferior_event_1. Create a scoped_value_mark.
11074 (handle_inferior_event): Remove.
11076 2019-03-19 Tom Tromey <tromey@adacore.com>
11078 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11079 * infrun.h (print_stop_event): Add "displays" parameter.
11080 * infrun.c (print_stop_event): Add "displays" parameter.
11082 2019-03-19 Pedro Alves <palves@redhat.com>
11084 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11085 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11086 to -1. Fix TABs vs spaces.
11087 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11088 * tui/tui-out.h (tui_ui_out) Add intro comments.
11089 <m_line, m_start_of_line>: In-class initialize, and add describing
11092 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11094 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11096 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11098 2019-03-18 Pedro Alves <palves@redhat.com>
11099 Eli Zaretskii <eliz@gnu.org>
11101 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11102 m_line and m_start_of_line.
11104 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11106 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11107 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11108 it returns a newline. This fixes a regression in TU mode, whereby
11109 the next line is output on the same screen line as the user input.
11111 2019-03-18 Tom Tromey <tromey@adacore.com>
11113 * minsyms.c (minimal_symbol_reader::install): Remove call to
11116 2019-03-18 Pedro Alves <palves@redhat.com>
11118 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11120 (apply_style): New, factored out from ...
11121 (apply_ansi_escape): ... this. Handle reverse video mode.
11122 (tui_set_reverse_mode): New function.
11123 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11124 * tui/tui-winsource.c (tui_show_source_line): Use
11125 tui_set_reverse_mode instead of setting A_STANDOUT.
11126 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11127 New setter methods.
11129 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11131 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11134 2019-03-18 Tom Tromey <tromey@adacore.com>
11136 * ada-lang.c (empty_array): Add "high" parameter.
11137 (ada_evaluate_subexp): Update.
11139 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11141 * unittests/string_view-selftests.c: Define
11142 _initialize_string_view_selftests unconditionally.
11144 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11147 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11149 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11152 * windows-nat.c (display_selector): Fix format specifiers.
11154 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11156 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11157 tui_refill_source_window instead of tui_refresh_win, to update the
11158 current execution line. This fixes redisplay of the current line
11159 when stepping through the code with "next" or "step".
11161 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11163 * source-cache.c (source_cache::get_source_lines): Call
11164 find_source_lines to initialize s->nlines. This fixes vertical
11165 scrolling of TUI source window when the DOWN arrow is pressed.
11167 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11169 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11170 linux-thread-db.c (_initialize_thread_db): Likewise.
11172 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11174 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11175 wclrtoeol in tui_show_source_line". This reverts changes made in
11176 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11178 2019-03-15 Tom Tromey <tom@tromey.com>
11180 * symtab.h (struct minimal_symbol): Derive from
11181 general_symbol_info.
11182 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11183 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11184 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11185 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11186 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11187 (MSYMBOL_SEARCH_NAME): Update.
11188 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11189 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11190 * minsyms.c (minimal_symbol_reader::record_full): Update.
11192 2019-03-15 Tom Tromey <tom@tromey.com>
11194 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11196 2019-03-15 Tom Tromey <tom@tromey.com>
11198 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11199 unique_xmalloc_ptr.
11200 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11202 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11203 (build_minimal_symbol_hash_tables)
11204 (minimal_symbol_reader::install): Update.
11206 2019-03-15 Tom Tromey <tom@tromey.com>
11208 * symtab.c (create_demangled_names_hash): Update.
11209 (symbol_set_names): Update.
11210 * objfiles.h (struct objfile_per_bfd_storage)
11211 <demangled_names_hash>: Now an htab_up.
11212 * objfiles.c (objfile_per_bfd_storage): Simplify.
11214 2019-03-15 Tom Tromey <tom@tromey.com>
11216 * objfiles.h (struct objfile_per_bfd_storage): Declare
11218 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11220 (get_objfile_bfd_data): Use new. Don't initialize
11222 (free_objfile_per_bfd_storage): Remove.
11223 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11225 2019-03-15 Tom Tromey <tom@tromey.com>
11227 * symfile.c (reread_symbols): Update.
11228 * objfiles.c (objfile::objfile): Update.
11229 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11230 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11232 (minimal_symbol_reader::install): Update.
11233 (terminate_minimal_symbol_table): Remove.
11234 * jit.c (jit_object_close_impl): Update.
11236 2019-03-15 Tom Tromey <tom@tromey.com>
11238 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11241 2019-03-15 Tom Tromey <tom@tromey.com>
11243 * objfiles.h (struct objfile_per_bfd_storage)
11244 <demangled_hash_languages>: Now a bitset.
11245 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11246 (lookup_minimal_symbol): Update.
11248 2019-03-15 Tom Tromey <tom@tromey.com>
11250 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11251 Don't return the symbol.
11252 * coffread.c (record_minimal_symbol): Use record_full.
11254 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11256 The MS-Windows port of ncurses fails to switch to a color pair if
11257 one or both of the colors are the implicit default colors. This
11258 change records the default colors when TUI is initialized, and
11259 then specifies them explicitly when a color pair uses the default
11260 colors. This allows color styling in TUI mode on MS-Windows.
11262 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
11264 (tui_initialize_io) [__MINGW32__]: Record the default terminal
11265 colors in ncurses_norm_attr.
11266 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
11267 "none", replace it with the default color recorded in
11270 2019-03-14 Tom Tromey <tromey@adacore.com>
11272 * source-cache.h (class source_cache) <get_source_lines>: Return
11274 * source-cache.c (source_cache::extract_lines): Handle case where
11275 first_pos==npos. Return std::string.
11276 (source_cache::get_source_lines): Update.
11278 2019-03-14 Tom Tromey <tromey@adacore.com>
11280 * NEWS: Add item for "style sources" commands.
11281 * source-cache.c (source_cache::get_source_lines): Check
11283 * cli/cli-style.c (source_styling): New global.
11284 (_initialize_cli_style): Add "style sources" commands.
11285 (show_style_sources): New function.
11286 * cli/cli-style.h (source_styling): Declare.
11288 2019-03-14 Pedro Alves <palves@redhat.com>
11289 Tom Tromey <tromey@adacore.com>
11291 * tui/tui-winsource.h (tui_refill_source_window): Declare.
11292 * tui/tui-winsource.c (tui_refill_source_window): New function,
11294 (tui_horizontal_source_scroll): ... here. Move some logic.
11295 * cli/cli-style.c (set_style_enabled): Notify new observable.
11296 * tui/tui-hooks.c (tui_redisplay_source): New function.
11297 (tui_attach_detach_observers): Attach or detach
11298 tui_redisplay_source.
11299 * observable.h (source_styling_changed): New observable.
11300 * observable.c: Define source_styling_changed observable.
11302 2019-03-13 Tom Tromey <tromey@adacore.com>
11304 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
11305 (i386_gnu_nat_target::store_registers): Update.
11306 * target-debug.h (target_debug_print_std_string): New macro.
11307 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11308 * windows-tdep.c (display_one_tib): Update.
11309 * tui/tui-stack.c (tui_make_status_line): Update.
11310 * top.c (print_inferior_quit_action): Update.
11311 * thread.c (thr_try_catch_cmd): Update.
11312 (add_thread_with_info): Update.
11313 (thread_target_id_str): Update.
11314 (thr_try_catch_cmd): Update.
11315 (thread_command): Update.
11316 (thread_find_command): Update.
11317 * record-btrace.c (record_btrace_target::info_record)
11318 (record_btrace_resume_thread, record_btrace_target::resume)
11319 (record_btrace_cancel_resume, record_btrace_step_thread)
11320 (record_btrace_target::wait, record_btrace_target::wait)
11321 (record_btrace_target::wait, record_btrace_target::stop): Update.
11322 * progspace.c (print_program_space): Update.
11323 * process-stratum-target.c
11324 (process_stratum_target::thread_address_space): Update.
11325 * linux-fork.c (linux_fork_mourn_inferior)
11326 (detach_checkpoint_command, info_checkpoints_command)
11327 (linux_fork_context): Update.
11328 (linux_fork_detach): Update.
11329 (class scoped_switch_fork_info): Update.
11330 (delete_checkpoint_command): Update.
11331 * infrun.c (follow_fork_inferior): Update.
11332 (follow_fork_inferior): Update.
11333 (proceed_after_vfork_done): Update.
11334 (handle_vfork_child_exec_or_exit): Update.
11335 (follow_exec): Update.
11336 (displaced_step_prepare_throw): Update.
11337 (displaced_step_restore): Update.
11338 (start_step_over): Update.
11339 (resume_1): Update.
11340 (clear_proceed_status_thread): Update.
11342 (print_target_wait_results): Update.
11343 (do_target_wait): Update.
11344 (context_switch): Update.
11345 (stop_all_threads): Update.
11346 (restart_threads): Update.
11347 (finish_step_over): Update.
11348 (handle_signal_stop): Update.
11349 (switch_back_to_stepped_thread): Update.
11350 (keep_going_pass_signal): Update.
11351 (print_exited_reason): Update.
11352 (normal_stop): Update.
11353 * inferior.c (inferior_pid_to_str): Change return type.
11354 (print_selected_inferior): Update.
11355 (add_inferior): Update.
11356 (detach_inferior): Update.
11357 * dummy-frame.c (fprint_dummy_frames): Update.
11358 * dcache.c (dcache_info_1): Update.
11359 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11360 (btrace_fetch, btrace_clear): Update.
11361 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11362 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11364 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11365 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11366 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11367 * gdbarch.c, gdbarch.h: Rebuild.
11368 * gdbarch.sh (core_pid_to_str): Change return type.
11369 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11371 (windows_nat_target::pid_to_str): Change return type.
11372 (windows_delete_thread): Update.
11373 (windows_nat_target::attach): Update.
11374 (windows_nat_target::files_info): Update.
11375 * target-delegates.c: Rebuild.
11376 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11378 (sol_thread_target::pid_to_str): Change return type.
11379 * remote.c (class remote_target) <pid_to_str>: Change return
11381 (remote_target::pid_to_str): Change return type.
11382 (extended_remote_target::attach, remote_target::remote_stop_ns)
11383 (remote_target::remote_notif_remove_queued_reply)
11384 (remote_target::push_stop_reply, remote_target::disable_btrace):
11386 (extended_remote_target::attach): Update.
11387 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11389 (gdbsim_target::pid_to_str): Change return type.
11390 * ravenscar-thread.c (struct ravenscar_thread_target)
11391 <pid_to_str>: Change return type.
11392 (ravenscar_thread_target::pid_to_str): Change return type.
11393 * procfs.c (class procfs_target) <pid_to_str>: Change return
11395 (procfs_target::pid_to_str): Change return type.
11396 (procfs_target::attach): Update.
11397 (procfs_target::detach): Update.
11398 (procfs_target::fetch_registers): Update.
11399 (procfs_target::store_registers): Update.
11400 (procfs_target::wait): Update.
11401 (procfs_target::files_info): Update.
11402 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11403 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11405 (nto_procfs_target::pid_to_str): Change return type.
11406 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11407 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11409 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11410 (exit_lwp): Update.
11411 (attach_proc_task_lwp_callback, get_detach_signal)
11412 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11413 (linux_nat_target::resume, wait_lwp, stop_callback)
11414 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11415 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11416 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11417 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11418 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11420 (inf_ptrace_target::attach): Update.
11421 (inf_ptrace_target::files_info): Update.
11422 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11424 (go32_nat_target::pid_to_str): Change return type.
11425 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11426 (gnu_nat_target::wait): Update.
11427 (gnu_nat_target::wait): Update.
11428 (gnu_nat_target::resume): Update.
11429 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11430 (fbsd_nat_target::wait): Update.
11431 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11433 (darwin_nat_target::attach): Update.
11434 * corelow.c (class core_target) <pid_to_str>: Change return type.
11435 (core_target::pid_to_str): Change return type.
11436 * target.c (normal_pid_to_str): Change return type.
11437 (default_pid_to_str): Likewise.
11438 (target_pid_to_str): Change return type.
11439 (target_translate_tls_address): Update.
11440 (target_announce_detach): Update.
11441 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11443 (bsd_uthread_target::pid_to_str): Change return type.
11444 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11446 (bsd_kvm_target::pid_to_str): Change return type.
11447 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11449 (aix_thread_target::pid_to_str): Change return type.
11450 * target.h (struct target_ops) <pid_to_str>: Change return type.
11451 (target_pid_to_str, normal_pid_to_str): Likewise.
11452 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11454 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11456 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11458 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11460 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11462 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11465 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11467 * NEWS: Mention that the new default MI version is 3. Mention
11468 changes to the output of commands and events that deal with
11469 multi-location breakpoints.
11470 * breakpoint.c: Include "mi/mi-out.h".
11471 (print_one_breakpoint): Change output syntax if using MI version
11473 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11475 (mi_multi_location_breakpoint_output_fixed): New.
11476 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11477 (mi_cmd_fix_multi_location_breakpoint_output): New.
11478 (mi_multi_location_breakpoint_output_fixed): New.
11479 * mi/mi-cmds.c (mi_cmds): Register command
11480 -fix-multi-location-breakpoint-output.
11481 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11484 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11486 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11487 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11488 instantiate mi_ui_out based on interpreter name.
11489 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11490 * mi/mi-main.c (mi_load_progress): Likewise.
11492 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11494 * NEWS: Combine separate "New targets" sections for 8.3.
11496 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11498 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11499 (ppcfbsd_init_abi): Install gdbarch
11500 "fetch_tls_load_module_address" and "get_thread_local_address"
11503 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11505 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11506 (riscv_fbsd_init_abi): Install gdbarch
11507 "fetch_tls_load_module_address" and "get_thread_local_address"
11510 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11512 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11513 (i386fbsd_init_abi): Install gdbarch
11514 "fetch_tls_load_module_address" and "get_thread_local_address"
11517 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11519 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11520 (amd64fbsd_init_abi): Install gdbarch
11521 "fetch_tls_load_module_address" and "get_thread_local_address"
11524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11526 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11527 (struct fbsd_pspace_data): New type.
11528 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11529 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11530 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11531 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11532 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11534 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11536 * gdbtypes.c (lookup_struct_elt): New function.
11537 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11538 * gdbtypes.h (struct struct_elt): New type.
11539 (lookup_struct_elt): New prototype.
11541 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11543 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11544 remove disabled code block.
11546 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11548 * gdbarch.sh (get_thread_local_address): New method.
11549 * gdbarch.h, gdbarch.c: Regenerate.
11550 * target.c (target_translate_tls_address): Use
11551 gdbarch_get_thread_local_address if present instead of
11552 target::get_thread_local_address.
11554 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11556 * target.h (target::get_thread_local_address): Update comment.
11558 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11560 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11561 objfile->separate_debug_objfile_backlink if not NULL.
11563 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11565 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11566 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11567 (amd64bsd_store_inferior_registers): Likewise.
11568 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11569 Enable segment base registers.
11570 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11571 PT_GETFSBASE and PT_GETGSBASE.
11572 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11574 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11575 segment base registers.
11576 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11578 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11580 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11581 Update calls to i386_target_description to add 'segments'
11583 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11584 add segment base registers.
11585 * arch/i386.c (i386_create_target_description): Add 'segments'
11586 parameter to enable segment base registers.
11587 * arch/i386.h (i386_create_target_description): Likewise.
11588 * features/i386/32bit-segments.xml: New file.
11589 * features/i386/32bit-segments.c: Generate.
11590 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11591 call to i386_target_description to add 'segments' parameter.
11592 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11593 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11594 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11595 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11596 if feature is present.
11597 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11598 Add 'segments' parameter to call to i386_target_description.
11599 (i386_target_description): Add 'segments' parameter to enable
11600 segment base registers.
11601 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11602 to call to i386_target_description.
11603 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11604 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11605 Define I386_NUM_REGS.
11606 (i386_target_description): Add 'segments' parameter to enable
11607 segment base registers.
11609 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11612 * source-cache.c: #undef open and close, to avoid unresolved
11613 externals during linking.
11615 2019-03-12 Tom Tromey <tromey@adacore.com>
11617 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11618 const. Add initializers.
11619 (_initialize_remote): Don't initialize ptid globals.
11621 2019-03-12 Pedro Alves <palves@redhat.com>
11623 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11625 2019-03-12 Pedro Alves <palves@redhat.com>
11627 * cp-name-parser.y (main): Remove unused 'len' variable.
11629 2019-03-12 Tom Tromey <tromey@adacore.com>
11631 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11632 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11634 2019-03-12 Tom Tromey <tromey@adacore.com>
11636 * linux-nat.c (iterate_over_lwps): Update.
11637 (stop_callback): Remove parameter.
11638 (stop_wait_callback, detach_callback, resume_set_callback)
11639 (select_singlestep_lwp_callback, set_ignore_sigint)
11640 (status_callback, resumed_callback, resume_clear_callback)
11641 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11643 (linux_nat_target::detach, linux_nat_target::resume)
11644 (linux_stop_and_wait_all_lwps, select_event_lwp)
11645 (linux_nat_filter_event, linux_nat_wait_1)
11646 (linux_nat_target::kill, linux_nat_target::stop)
11647 (linux_nat_target::stop): Update.
11648 (linux_nat_resume_callback): Change type.
11649 (resume_stopped_resumed_lwps, count_events_callback)
11650 (select_event_lwp_callback): Likewise.
11651 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11652 * arm-linux-nat.c (struct update_registers_data): Remove.
11653 (update_registers_callback): Change type.
11654 (arm_linux_insert_hw_breakpoint1): Update.
11655 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11657 (x86_linux_dr_set_addr): Update.
11658 (x86_linux_dr_set_control): Update.
11659 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11660 (iterate_over_lwps): Use gdb::function_view.
11661 * nat/aarch64-linux-hw-point.c (struct
11662 aarch64_dr_update_callback_param): Remove.
11663 (debug_reg_change_callback): Change type.
11664 (aarch64_notify_debug_reg_change): Update.
11665 * s390-linux-nat.c (s390_refresh_per_info): Update.
11667 2019-03-11 Tom Tromey <tromey@adacore.com>
11669 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11670 redundant assignment to "this_cu".
11672 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11674 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11676 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11678 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11680 (rank_one_type): ... this.
11682 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11684 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11686 (rank_one_type): ... this.
11688 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11690 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11692 (rank_one_type): ... this.
11694 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11696 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11698 (rank_one_type): ... this.
11700 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11702 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11704 (rank_one_type): ... this.
11706 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11708 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11710 (rank_one_type): ... this.
11712 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11714 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11716 (rank_one_type): ... this.
11718 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11720 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11722 (rank_one_type): ... this.
11724 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11726 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11728 (rank_one_type): ... this.
11730 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11732 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11734 (rank_one_type): ... this.
11736 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11738 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11740 (rank_one_type): ... this.
11742 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11744 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11746 (rank_one_type): ... this.
11748 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11750 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11751 inferior-events' shows the example events.
11753 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11755 Support styling on native MS-Windows console
11758 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11759 on MS-Windows if $TERM is not defined.
11761 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11763 * posix-hdep.c (gdb_console_fputs):
11764 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11766 * ui-file.h (gdb_console_fputs): Add prototype.
11768 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11769 back to fputs only if the former returns zero.
11771 2019-03-07 Tom Tromey <tom@tromey.com>
11773 * symmisc.c (print_symbol_bcache_statistics): Update.
11774 (print_objfile_statistics): Update.
11775 * symfile.c (allocate_symtab): Update.
11776 * stabsread.c: Don't include bcache.h.
11777 * psymtab.h (struct psymbol_bcache): Don't declare.
11778 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11779 (psymbol_bcache_init, psymbol_bcache_free)
11780 (psymbol_bcache_get_bcache): Don't declare.
11781 * psymtab.c (struct psymbol_bcache): Remove.
11782 (psymtab_storage::psymtab_storage): Update.
11783 (psymtab_storage::~psymtab_storage): Update.
11784 (psymbol_bcache_init, psymbol_bcache_free)
11785 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11786 (add_psymbol_to_bcache): Update.
11787 (allocate_psymtab): Update.
11788 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11789 macro_cache>: No longer pointers.
11790 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11791 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11792 * macrotab.c (macro_bcache): Update.
11793 * macroexp.c: Don't include bcache.h.
11794 * gdbtypes.c (check_types_worklist): Update.
11795 (types_deeply_equal): Remove TRY/CATCH. Update.
11796 * elfread.c (elf_symtab_read): Update.
11797 * dwarf2read.c: Don't include bcache.h.
11798 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11799 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11800 (print_bcache_statistics, bcache_memory_used): Don't declare.
11801 (struct bcache): Move from bcache.c. Add constructor, destructor,
11802 methods. Rename all data members.
11803 * bcache.c (struct bcache): Move to bcache.h.
11804 (bcache::expand_hash_table): Rename from expand_hash_table.
11806 (bcache::insert): Rename from bcache_full.
11807 (bcache::compare): Rename from bcache_compare.
11808 (bcache_xmalloc): Remove.
11809 (bcache::~bcache): Rename from bcache_xfree.
11810 (bcache::print_statistics): Rename from print_bcache_statistics.
11811 (bcache::memory_used): Rename from bcache_memory_used.
11813 2019-03-07 Pedro Alves <palves@redhat.com>
11815 * infrun.c (normal_stop): Also check for
11816 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11818 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11820 * f-lang.c (value_from_host_double): Moved to...
11821 * value.c (value_from_host_double): ...here.
11822 * value.h (value_from_host_double): Declare.
11823 * guile/scm-math.c (vlscm_convert_typed_number): Use
11824 value_from_host_double.
11825 (vlscm_convert_number): Likewise.
11826 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11827 * python/py-value.c (convert_value_from_python): Likewise.
11829 2019-03-06 Tom Tromey <tom@tromey.com>
11831 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11833 2019-03-06 Tom Tromey <tom@tromey.com>
11835 * utils.h (free_current_contents): Don't declare.
11836 * utils.c (free_current_contents): Remove.
11838 2019-03-06 Tom Tromey <tom@tromey.com>
11840 * top.c (quit_force): Update.
11841 * main.c (captured_command_loop): Update.
11842 * common/new-op.c (operator new): Update.
11843 * common/common-exceptions.c (struct catcher)
11844 <save_cleanup_chain>: Remove member.
11845 (exceptions_state_mc_init): Update.
11846 (exception_try_scope_entry): Return nullptr.
11847 (exception_try_scope_exit, exception_rethrow)
11848 (throw_exception_sjlj, throw_exception_cxx): Update.
11849 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11850 (all_cleanups, do_cleanups, discard_cleanups)
11851 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11852 (restore_cleanups, restore_final_cleanups): Don't declare.
11853 (do_final_cleanups): Remove parameter.
11854 * common/cleanups.c (cleanup_chain, make_cleanup)
11855 (make_cleanup_dtor, all_cleanups, do_cleanups)
11856 (discard_my_cleanups, discard_cleanups)
11857 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11858 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11859 (null_cleanup): Remove.
11860 (do_final_cleanups): Remove parameter.
11862 2019-03-06 Tom Tromey <tom@tromey.com>
11864 * remote.c (remote_target::remote_parse_stop_reply): Use
11865 unique_xmalloc_ptr.
11867 2019-03-06 Tom Tromey <tom@tromey.com>
11869 * stabsread.c (struct stabs_field_info): Rename from field_info.
11870 <list, fnlist>: Add initializers.
11871 <obstack>: New member.
11872 (read_member_functions, read_struct_fields, read_baseclasses):
11873 Allocate on obstack. Don't use cleanups.
11874 (read_one_struct_field, read_member_functions, read_struct_fields)
11875 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11876 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11877 (read_struct_type): Update.
11879 2019-03-06 Tom Tromey <tom@tromey.com>
11881 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11882 * common/filestuff.h (make_cleanup_close): Don't declare.
11883 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11886 2019-03-06 Tom Tromey <tom@tromey.com>
11888 * solib-aix.c: Use make_scope_exit.
11890 2019-03-06 Tom Tromey <tom@tromey.com>
11892 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11893 Use make_scope_exit.
11895 2019-03-06 Tom Tromey <tom@tromey.com>
11897 * solib-svr4.c (disable_probes_interface): Remove parameter.
11898 (svr4_handle_solib_event): Use make_scope_exit.
11900 2019-03-06 Tom Tromey <tom@tromey.com>
11902 * remote.c (struct stop_reply_deleter): Remove.
11903 (stop_reply_up): Update.
11904 (struct stop_reply): Derive from notif_event. Don't typedef.
11905 <regcache>: Now a std::vector.
11906 (stop_reply_xfree): Remove.
11907 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11908 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11909 (remote_target::discard_pending_stop_replies): Use delete.
11910 (remote_target::remote_parse_stop_reply): Update.
11911 (remote_target::process_stop_reply): Update.
11912 * remote-notif.h (struct notif_event): Add virtual destructor.
11913 Remove "dtr" member.
11914 (struct notif_client) <alloc_event>: Return a unique_ptr.
11915 (notif_event_xfree): Don't declare.
11916 (notif_event_up): New typedef.
11917 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11918 (notif_event_xfree, do_notif_event_xfree): Remove.
11919 (remote_notif_state_xfree): Update.
11921 2019-03-06 Tom Tromey <tom@tromey.com>
11923 * infrun.c (displaced_step_clear_cleanup): Now a
11924 forward_scope_exit type.
11925 (displaced_step_prepare_throw): Update.
11926 (displaced_step_fixup): Update.
11928 2019-03-06 Tom Tromey <tom@tromey.com>
11930 * inferior.h (class inferior): Update comment.
11931 * gdbthread.h (class thread_info): Update comment.
11933 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11934 Tom Tromey <tom@tromey.com>
11936 * stabsread.h (struct stab_section_list): Remove.
11937 (coffstab_build_psymtabs): Update.
11938 * dbxread.c (symbuf_sections): Now a std::vector.
11939 (sect_idx): New global.
11940 (fill_symbuf): Update.
11941 (coffstab_build_psymtabs): Change type of stabsects parameter.
11943 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11945 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11946 (coff_locate_sections): Update.
11947 (coff_symfile_read): Remove cleanups. Update.
11948 (init_stringtab): Add storage parameter.
11949 (free_stringtab, free_stringtab_cleanup): Remove.
11950 (init_lineno): Add storage parameter.
11951 (free_linetab, free_linetab_cleanup): Remove.
11953 2019-03-06 Pedro Alves <palves@redhat.com>
11955 * linux-fork.c (fork_info::clobber_regs): Delete.
11956 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11957 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11959 (scoped_switch_fork_info::scoped_switch_fork_info)
11960 (checkpoint_command, linux_fork_context): Adjust
11961 fork_save_infrun_state calls.
11963 2019-03-06 Pedro Alves <palves@redhat.com>
11965 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11966 (inf_has_multiple_threads): Return 'bool' and rewrite using
11967 inferior_info::threads().
11969 2019-03-06 Pedro Alves <palves@redhat.com>
11971 * linux-fork.c: Include <list>.
11972 (fork_list): Now a std::list instance.
11973 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11974 (forks_exist_p, find_last_fork): Adjust.
11975 (new_fork): Delete.
11977 (add_fork): Adjust.
11978 (free_fork): Delete, folded into fork_info::~fork_info().
11979 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11981 (init_fork_list): Delete.
11982 (linux_fork_killall, linux_fork_mourn_inferior)
11983 (linux_fork_detach, info_checkpoints_command): Adjust.
11984 (_initialize_linux_fork): No longer call init_fork_list.
11986 2019-03-06 Pedro Alves <palves@redhat.com>
11988 * linux-fork.c (new_fork): New, split out of ...
11989 (add_fork): ... this. Return void. Move "first fork" special
11990 case from here, to ...
11991 (checkpoint_command): ... here.
11992 * linux-linux.h (add_fork): Return void.
11994 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11996 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11998 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11999 Chris January <chris.january@arm.com>
12000 David Lecomber <david.lecomber@arm.com>
12002 * f-exp.y: New token, UNOP_INTRINSIC.
12003 (exp): New pattern using UNOP_INTRINSIC token.
12004 (f77_keywords): Add 'abs' keyword.
12005 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12006 (value_from_host_double): New function.
12007 (evaluate_subexp_f): Support UNOP_ABS.
12009 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12011 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12014 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12016 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12017 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12018 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12020 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12022 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12024 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12025 Chris January <chris.january@arm.com>
12027 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12028 * f-exp.y: Define 'KIND' token.
12029 (exp): New pattern for KIND expressions.
12030 (ptype): Handle types with a kind extension.
12031 (direct_abs_decl): Extend to spot kind extensions.
12032 (f77_keywords): Add 'kind' to the list.
12033 (push_kind_type): New function.
12034 (convert_to_kind_type): New function.
12035 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12036 * parse.c (operator_length_standard): Likewise.
12037 * parser-defs.h (enum type_pieces): Add tp_kind.
12038 * std-operator.def: Add UNOP_KIND.
12040 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12042 * f-exp.y (f_parse): Set yydebug.
12044 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12046 * f-lang.c (evaluate_subexp_f): New function.
12047 (exp_descriptor_f): New global.
12048 (f_language_defn): Use exp_descriptor_f instead of
12049 exp_descriptor_standard.
12051 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12053 * f-exp.y (struct token): Add comments.
12054 (dot_ops): Remove uppercase versions and the end marker.
12055 (f77_keywords): Likewise.
12056 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12057 entries in the dot_ops array are case insensitive, and use
12058 strncasecmp to compare strings. Also some whitespace cleanup in
12059 this area. Similar for the f77_keywords array, except entries in
12060 this list might be case sensitive.
12062 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12064 * f-exp.y (struct f77_boolean_val): Add comments.
12065 (boolean_values): Remove uppercase versions, and end marker.
12066 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12067 and use strncasecmp to achieve case insensitivity. Additionally,
12068 perform whitespace cleanup around this code.
12070 2019-03-06 Tom Tromey <tromey@adacore.com>
12072 * remote-sim.c (gdbsim_target_open): Use result of
12075 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12076 Dirk Schubert <dirk.schubert@arm.com>
12077 Chris January <chris.january@arm.com>
12079 * eval.c (evaluate_subexp_standard): Call Fortran argument
12081 * f-lang.c (struct value): A value which can be passed into a
12082 Fortran function call.
12083 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12085 (struct type): Value ready for a Fortran function call.
12086 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12088 * f-lang.h (fortran_argument_convert): Declaration.
12089 (fortran_preserve_arg_pointer): Declaration.
12090 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12092 2019-03-05 Tom Tromey <tromey@adacore.com>
12094 * python/py-prettyprint.c (print_string_repr): Remove #if.
12095 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12097 2019-03-05 Tom Tromey <tromey@adacore.com>
12099 * target.c (the_dummy_target): Move later. Change type to
12101 (initialize_targets): Don't initialize the_dummy_target.
12103 2019-03-05 Tom Tromey <tromey@adacore.com>
12105 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12106 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12108 2019-03-05 Tom Tromey <tromey@adacore.com>
12110 * windows-nat.c (windows_nat_target::attach)
12111 (windows_nat_target::detach): Don't call gdb_flush.
12112 * valprint.c (generic_val_print, val_print, val_print_string):
12113 Don't call gdb_flush.
12114 * utils.c (defaulted_query): Don't call gdb_flush.
12115 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12116 * target.c (target_announce_detach): Don't call gdb_flush.
12117 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12118 * remote.c (extended_remote_target::attach): Don't call
12120 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12121 * printcmd.c (do_examine): Don't call gdb_flush.
12122 (info_display_command): Don't call gdb_flush.
12123 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12124 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12125 * memattr.c (info_mem_command): Don't call gdb_flush.
12126 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12127 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12128 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12129 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12130 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12131 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12132 (gnu_nat_target::detach): Don't call gdb_flush.
12133 * f-valprint.c (f_val_print): Don't call gdb_flush.
12134 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12135 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12136 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12138 * c-valprint.c (c_val_print): Don't call gdb_flush.
12139 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12141 2019-03-05 Tom Tromey <tromey@adacore.com>
12143 * varobj.c (update_dynamic_varobj_children): Update.
12144 (install_default_visualizer): Use reset, not release.
12145 * value.c (set_internalvar): Update.
12146 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12147 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12148 ATTRIBUTE_UNUSED_RESULT.
12150 2019-03-05 Tom Tromey <tromey@adacore.com>
12152 * remote.c (class scoped_remote_fd) <release>: Add
12153 ATTRIBUTE_UNUSED_RESULT.
12155 2019-03-05 Tom Tromey <tromey@adacore.com>
12157 * macroexp.c (struct macro_buffer) <release>: Add
12158 ATTRIBUTE_UNUSED_RESULT.
12160 2019-03-05 Tom Tromey <tromey@adacore.com>
12162 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12163 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12164 ATTRIBUTE_UNUSED_RESULT.
12166 2019-03-05 Tom Tromey <tromey@adacore.com>
12168 * common/scoped_fd.h (class scoped_fd) <release>: Add
12169 ATTRIBUTE_UNUSED_RESULT.
12171 2019-03-05 Tom Tromey <tromey@adacore.com>
12173 * parser-defs.h (struct parser_state) <release>: Add
12174 ATTRIBUTE_UNUSED_RESULT.
12176 2019-03-05 Tom Tromey <tromey@adacore.com>
12178 * utils.h (class gdb_argv) <release>: Add
12179 ATTRIBUTE_UNUSED_RESULT.
12180 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12182 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12184 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12185 for-loop range, to avoid compiler warnings.
12187 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12188 avoid compiler warnings about unused variables.
12190 * NEWS: Mention end of support for native debugging on MS-Windows
12194 * common/netstuff.c:
12195 * gdbserver/gdbreplay.c
12196 * gdbserver/remote-utils.c:
12198 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12199 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12200 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12201 'getaddrinfo' and 'freeaddrinfo' were not available before
12202 Windows XP, and mingw.org's MinGW headers by default define
12203 _WIN32_WINNT to 0x500.
12205 2019-03-01 Gary Benson <gbenson@redhat.com>
12207 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12209 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12210 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12213 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12214 set_sigint_trap, clear_sigint_trap.
12216 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12218 * target.c (target_detach): Clear the regcache and the
12221 2019-02-27 Pedro Alves <palves@redhat.com>
12223 * utils.c (set_screen_size): When we cap the height/width sizes,
12224 tweak the corresponding command variable to show "unlimited":
12226 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12227 Pedro Alves <palves@redhat.com>
12229 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12230 before calling rl_set_screen_size.
12232 2019-02-27 Tom Tromey <tromey@adacore.com>
12234 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12236 * python/py-value.c: Remove Python 2.4 workaround.
12237 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12239 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12240 Python 2.4 workaround.
12241 * python/python-internal.h: Remove Python 2.4 comment.
12242 (Py_ssize_t): Don't define.
12243 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12244 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12245 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12246 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12247 * python/python.c (do_start_initialization): Remove Python 2.4
12249 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12250 (print_children): Remove Python 2.4 workaround.
12251 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12253 (CHARBUFFERPROC_NAME): Remove.
12254 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12255 Python 2.4 workaround.
12257 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12259 * NEWS: Note minimum Python version.
12261 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12263 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
12264 code from these functions. Remove corresponding ifdefs. Use
12265 Py_buffer_up instead of explicit calls to PyBuffer_Release.
12266 Remove gotos and target of gotos.
12267 (infpy_search_memory): Likewise.
12269 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12271 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
12272 (hppa_gdbarch_init): Don't register deleted functions with
12275 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12277 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
12278 (h8300_unwind_sp): Delete.
12279 (h8300_dummy_id): Delete.
12280 (h8300_gdbarch_init): Don't register deleted functions with
12283 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12285 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
12286 (ft32_unwind_pc): Delete.
12287 (ft32_unwind_sp): Delete.
12288 (ft32_gdbarch_init): Don't register deleted functions with
12291 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12293 * gdb/frv-tdep.c (frv_dummy_id): Delete.
12294 (frv_unwind_pc): Delete.
12295 (frv_unwind_sp): Delete.
12296 (frv_gdbarch_init): Don't register deleted functions with
12299 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12301 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
12302 (riscv_unwind_pc): Delete.
12303 (riscv_unwind_sp): Delete.
12304 (riscv_gdbarch_init): Don't register deleted functions with
12307 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12309 * gdb/csky-tdep.c (csky_dummy_id): Delete.
12310 (csky_unwind_pc): Delete.
12311 (csky_unwind_sp): Delete.
12312 (csky_gdbarch_init): Don't register deleted functions with
12315 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12317 * gdb/cris-tdep.c (cris_dummy_id): Delete.
12318 (cris_unwind_pc): Delete.
12319 (cris_unwind_sp): Delete.
12320 (cris_gdbarch_init): Don't register deleted functions with
12323 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12325 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
12326 (bfin_unwind_pc): Delete.
12327 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
12329 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12331 * gdb/arm-tdep.c (arm_dummy_id): Delete.
12332 (arm_unwind_pc): Delete.
12333 (arm_unwind_sp): Delete.
12334 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
12336 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12338 * gdb/arc-tdep.c (arc_dummy_id): Delete.
12339 (arc_unwind_pc): Delete.
12340 (arc_unwind_sp): Delete.
12341 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12343 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12345 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12346 (alpha_unwind_pc): Delete.
12347 (alpha_gdbarch_init): Don't register deleted functions with
12350 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12352 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12353 (aarch64_unwind_pc): Delete.
12354 (aarch64_unwind_sp): Delete.
12355 (aarch64_gdbarch_init): Don't register deleted functions with
12358 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12360 * gdbtypes.c (type_align): Don't consider static members when
12361 computing structure alignment.
12363 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12365 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12366 return 0 for other types.
12367 * arch-utils.c (default_type_align): Always return 0.
12368 * gdbarch.h: Regenerate.
12369 * gdbarch.sh (type_align): Extend comment.
12370 * gdbtypes.c (type_align): Add additional comments, always call
12371 gdbarch_type_align before applying the default rules.
12372 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12373 generic code will then apply a suitable default.
12374 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12375 types, return 0 for other types.
12377 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12379 * NEWS: Create a new section for the next release branch.
12380 Rename the section of the current branch, now that it has
12383 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12385 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12386 * version.in: Bump version to 8.3.50.DATE-git.
12388 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12390 * aix-thread.c (ptid_cmp): Remove unused variable.
12391 (get_signaled_thread): Likewise.
12392 (store_regs_user_thread): Likewise.
12393 (store_regs_kernel_thread): Likewise.
12394 (fetch_regs_kernel_thread): Remove shadowed variable.
12396 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12398 * features/riscv/32bit-cpu.xml: Add register numbers.
12399 * features/riscv/32bit-fpu.c: Regenerate.
12400 * features/riscv/32bit-fpu.xml: Add register numbers.
12401 * features/riscv/64bit-cpu.xml: Add register numbers.
12402 * features/riscv/64bit-fpu.c: Regenerate.
12403 * features/riscv/64bit-fpu.xml: Add register numbers.
12405 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12407 * NEWS: Mention two argument form of gdb.Value constructor.
12408 * python/py-value.c (convert_buffer_and_type_to_value): New
12410 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12411 Add support for handling an optional second argument. Call
12412 convert_buffer_and_type_to_value as appropriate.
12413 * python/python-internal.h (Py_buffer_deleter): New struct.
12414 (Py_buffer_up): New typedef.
12416 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12418 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12419 instead of releasing ownership.
12421 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12423 * dwarf2read.c (open_and_init_dwp_file): Call
12424 elf_numsections instead of bfd_count_sections to initialize
12425 dwp_file->num_sections.
12427 2019-02-25 Tom Tromey <tromey@adacore.com>
12429 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12431 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12433 * gcore.in: Add '--readnever' option when invoking GDB.
12435 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12437 * MAINTAINERS: Update my email address.
12439 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12441 * build-id.c (build_id_to_debug_bfd_1): New function.
12442 (build_id_to_debug_bfd): Look for separate debug file in
12445 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12447 * gdbarch.sh: Update the copyright year range that is placed into
12450 2019-02-22 Keith Seitz <keiths@redhat.com>
12453 * linespec.c (create_sals_line_offset): Search for the default
12454 symtab's filename instead of its fullname.
12456 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12458 * NEWS: Update style defaults.
12460 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12462 * main.c (captured_main_1): Disable styling in batch mode.
12464 2019-02-20 Tom Tromey <tom@tromey.com>
12466 * symtab.c (symtab_symbol_info): Fix typos.
12468 2019-02-20 Tom Tromey <tromey@adacore.com>
12470 * findcmd.c (_initialize_mem_search): Use upper case for
12471 metasyntactic variables.
12473 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12475 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12476 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12478 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12480 * top.h (source_file_name): Change to std::string.
12481 * top.c (source_file_name): Likewise.
12482 (command_line_input): Adjust.
12483 * cli/cli-script.c (script_from_file): Adjust.
12485 2019-02-19 Tom Tromey <tromey@adacore.com>
12487 * ravenscar-thread.c
12488 (ravenscar_thread_target::update_thread_list): Don't call
12489 ada_build_task_list.
12490 * ada-lang.h (ada_build_task_list): Don't declare.
12491 * ada-tasks.c (struct ada_tasks_inferior_data)
12492 <task_list_valid_p>: Now bool.
12493 (read_known_tasks, ada_task_list_changed)
12494 (ada_tasks_invalidate_inferior_data): Update.
12495 (read_known_tasks_array): Return bool.
12496 (read_known_tasks_list): Likewise.
12497 (read_known_tasks): Return void.
12498 (ada_build_task_list): Now static.
12500 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12502 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12503 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12505 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12507 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12508 variant for ada_tasks_pspace_data_handle and
12509 ada_tasks_inferior_data_handle.
12510 (ada_tasks_pspace_data_cleanup): New function.
12511 (ada_tasks_inferior_data_cleanup): New function.
12513 2019-02-17 Tom Tromey <tom@tromey.com>
12515 * macrotab.h (macro_source_fullname): Return a std::string.
12516 * macrotab.c (macro_include, check_for_redefinition)
12517 (macro_undef, macro_lookup_definition, foreach_macro)
12518 (foreach_macro_in_scope): Update.
12519 (macro_source_fullname): Return a std::string.
12520 * macrocmd.c (show_pp_source_pos): Update.
12522 2019-02-17 Tom Tromey <tom@tromey.com>
12524 * macrocmd.c (show_pp_source_pos): Style the file names.
12526 2019-02-17 Tom Tromey <tom@tromey.com>
12529 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12531 2019-02-17 Tom Tromey <tom@tromey.com>
12533 * ada-lang.c (user_select_syms): Use filtered printing.
12534 * utils.c (wrap_style): New global.
12535 (desired_style): Remove.
12536 (emit_style_escape): Add stream parameter.
12537 (set_output_style, reset_terminal_style, prompt_for_continue):
12539 (flush_wrap_buffer): Only flush gdb_stdout.
12540 (wrap_here): Set wrap_style.
12541 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12542 treat escape sequences as a character. Change when wrap buffer is
12544 (fputs_styled): Do not set the output style when the default is
12546 * ui-style.h (struct ui_file_style) <is_default>: New method.
12547 * source.c (print_source_lines_base): Emit escape sequences in one
12550 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12552 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12553 integers and enumeration types.
12555 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12557 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12558 instead of lookup_symbol_in_language
12559 (do_exact_match): New function.
12560 (ada_get_symbol_name_matcher): Return do_exact_match when
12561 doing a verbatim match.
12563 2019-02-15 Tom Tromey <tromey@adacore.com>
12565 * ravenscar-thread.c (ravenscar_thread_target::resume)
12566 (ravenscar_thread_target::wait): Special case wildcard requests.
12568 2019-02-15 Tom Tromey <tromey@adacore.com>
12570 * ravenscar-thread.c (base_ptid): Remove.
12571 (struct ravenscar_thread_target) <close>: New method.
12572 <m_base_ptid>: New member.
12573 <update_inferior_ptid, active_task, task_is_currently_active,
12574 runtime_initialized>: Declare methods.
12575 <ravenscar_thread_target>: Add constructor.
12576 (ravenscar_thread_target::task_is_currently_active)
12577 (ravenscar_thread_target::update_inferior_ptid)
12578 (ravenscar_runtime_initialized): Rename. Now methods.
12579 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12580 (ravenscar_thread_target::update_thread_list): Update.
12581 (ravenscar_thread_target::active_task): Now method.
12582 (ravenscar_thread_target::store_registers)
12583 (ravenscar_thread_target::prepare_to_store)
12584 (ravenscar_thread_target::prepare_to_store)
12585 (ravenscar_thread_target::mourn_inferior): Update.
12586 (ravenscar_inferior_created): Use "new" to create target.
12587 (ravenscar_thread_target::get_ada_task_ptid): Update.
12588 (_initialize_ravenscar): Don't initialize base_ptid.
12589 (ravenscar_ops): Remove global.
12591 2019-02-15 Tom Tromey <tromey@adacore.com>
12593 * target.h (push_target): Declare new overload.
12594 * target.c (push_target): New overload, taking an rvalue reference.
12595 * remote.c (remote_target::open_1): Use push_target overload.
12596 * corelow.c (core_target_open): Use push_target overload.
12598 2019-02-15 Tom Tromey <tromey@adacore.com>
12600 * ravenscar-thread.c (is_ravenscar_task)
12601 (ravenscar_task_is_currently_active): Return bool.
12602 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12603 (_initialize_ravenscar): Remove "(void)".
12604 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12607 2019-02-15 Tom Tromey <tromey@adacore.com>
12609 * ravenscar-thread.c (ravenscar_runtime_initializer)
12610 (has_ravenscar_runtime, get_running_thread_id)
12611 (ravenscar_thread_target::resume): Fix indentation.
12613 2019-02-15 Tom Tromey <tromey@adacore.com>
12615 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12616 from ravenscar_arch_ops.
12617 (sparc_ravenscar_ops::fetch_registers)
12618 (sparc_ravenscar_ops::store_registers): Now methods.
12619 (sparc_ravenscar_prepare_to_store): Remove.
12620 (sparc_ravenscar_ops): Redefine.
12621 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12622 methods and destructor. Remove members.
12623 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12624 (ravenscar_thread_target::store_registers)
12625 (ravenscar_thread_target::prepare_to_store): Update.
12626 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12628 (struct ppc_ravenscar_powerpc_ops): Derive from
12629 ravenscar_arch_ops.
12630 (ppc_ravenscar_powerpc_ops::fetch_registers)
12631 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12632 (ppc_ravenscar_powerpc_ops): Redefine.
12633 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12634 (ppc_ravenscar_e500_ops::fetch_registers)
12635 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12636 (ppc_ravenscar_e500_ops): Redefine.
12637 * aarch64-ravenscar-thread.c
12638 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12639 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12640 (aarch64_ravenscar_fetch_registers)
12641 (aarch64_ravenscar_store_registers): Now methods.
12642 (aarch64_ravenscar_ops): Redefine.
12644 2019-02-15 Tom Tromey <tromey@adacore.com>
12646 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12647 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12648 (ravenscar_thread_target::stopped_by_watchpoint)
12649 (ravenscar_thread_target::stopped_data_address)
12650 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12652 2019-02-15 Tom Tromey <tromey@adacore.com>
12654 * ravenscar-thread.c: Fix some typos.
12656 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12657 Tom Tromey <tromey@adacore.com>
12659 * ada-lang.c (ada_exception_sal): Change addr_string to a
12661 (create_ada_exception_catchpoint): Update.
12663 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12664 Tom Tromey <tromey@adacore.com>
12666 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12667 (bp_location_ops): Remove.
12668 (base_breakpoint_allocate_location): Update.
12669 (free_bp_location): Update.
12670 * ada-lang.c (class ada_catchpoint_location)
12671 <ada_catchpoint_location>: Remove ops parameter.
12672 (ada_catchpoint_location_dtor): Remove.
12673 (ada_catchpoint_location_ops): Remove.
12674 (allocate_location_exception): Update.
12675 * breakpoint.h (struct bp_location_ops): Remove.
12676 (class bp_location) <bp_location>: Remove bp_location_ops
12678 <~bp_location>: Add destructor.
12681 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12682 Pedro Alves <palves@redhat.com>
12684 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12687 2019-02-14 David Michael <fedora.dm0@gmail.com>
12688 Samuel Thibault <samuel.thibault@gnu.org>
12689 Thomas Schwinge <thomas@codesourcery.com>
12691 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12692 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12694 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12696 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12697 (check_empty): Use "const char *".
12699 * gnu-nat.c (gnu_nat_target::detach): Instead of
12700 'detach_inferior (pid)' call
12701 'detach_inferior (find_inferior_pid (pid))'.
12703 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12704 'nat/fork-inferior.o'.
12705 * gnu-nat.c: #include "nat/fork-inferior.h".
12707 * gnu-nat.c (gnu_nat_target::detach): Instead of
12708 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12709 * gnu-nat.h: #include "inf-child.h".
12710 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12711 'i386_gnu_nat_target::fetch_registers'.
12712 (gnu_store_registers): Rename/move to
12713 'i386_gnu_nat_target::store_registers'.
12715 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12716 * gnu-nat.h (mach_thread_info): New function.
12717 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12719 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12721 2019-02-14 Frederic Konrad <konrad@adacore.com>
12723 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12725 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12727 * windows-nat.c (windows_add_thread): Add new parameter
12728 "main_thread_p" with default value set to false. Update
12729 function documentation as well as all callers.
12730 (windows_delete_thread): Likewise.
12731 (fake_create_process): Update call to windows_add_thread.
12732 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12733 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12734 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12735 call to windows_delete_thread.
12737 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12739 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12741 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12743 * symfile.c (find_separate_debug_file): Use canonical path of
12744 sysroot with child_path instead of gdb_sysroot if it is valid.
12746 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12748 * symfile.c (find_separate_debug_file): Use child_path to
12749 determine if an object file is under a sysroot.
12751 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12753 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12754 unittests/child-path-selftests.c.
12755 * common/pathstuff.c (child_path): New function.
12756 * common/pathstuff.h (child_path): New prototype.
12757 * unittests/child-path-selftests.c: New file.
12759 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12761 * symfile.c (find_separate_debug_file): Look for separate debug
12762 files in debug directories under the sysroot.
12764 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12766 * symtab.h (struct minimal_symbol data_p): New const method.
12767 (struct minimal_symbol text_p): Likewise.
12768 * symtab.c (output_source_filename): Use file name style
12769 to print file name.
12770 (print_symbol_info): Likewise.
12771 (print_msymbol_info): Use address style to print addresses.
12772 Use function name style to print executable text symbols.
12773 (expand_symtab_containing_pc): Use data_p.
12774 (find_pc_sect_compunit_symtab): Likewise.
12776 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12778 * breakpoint.c (describe_other_breakpoints): Use address style
12779 to print addresses.
12780 (say_where): Likewise.
12782 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12784 * ada-typeprint.c (print_func_type): Print function name
12785 style to print function name.
12786 * c-typeprint.c (c_print_type_1): Likewise.
12788 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12790 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12793 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12795 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12798 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12800 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12801 TYPE_CODE_REF types.
12803 2019-02-08 Jim Wilson <jimw@sifive.com>
12805 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12806 (riscv_linux_fregset): New.
12807 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12809 2019-02-07 Tom Tromey <tom@tromey.com>
12811 * thread.c (thread_cancel_execution_command): Update.
12812 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12814 (struct thread_fsm_ops): Remove.
12815 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12816 (thread_fsm_should_stop, thread_fsm_return_value)
12817 (thread_fsm_set_finished, thread_fsm_finished_p)
12818 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12820 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12821 * infrun.c (clear_proceed_status_thread)
12822 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12823 (print_stop_event): Update.
12824 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12826 (step_command_fsm_ops): Remove.
12827 (new_step_command_fsm): Remove.
12829 (step_command_fsm::should_stop): Rename from
12830 step_command_fsm_should_stop.
12831 (step_command_fsm::clean_up): Rename from
12832 step_command_fsm_clean_up.
12833 (step_command_fsm::do_async_reply_reason): Rename from
12834 step_command_fsm_async_reply_reason.
12835 (struct until_next_fsm): Inherit from thread_fsm. Add
12837 (until_next_fsm_ops): Remove.
12838 (new_until_next_fsm): Remove.
12839 (until_next_fsm::should_stop): Rename from
12840 until_next_fsm_should_stop.
12841 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12842 (until_next_fsm::do_async_reply_reason): Rename from
12843 until_next_fsm_async_reply_reason.
12844 (struct finish_command_fsm): Inherit from thread_fsm. Add
12845 constructor. Change type of breakpoint.
12846 (finish_command_fsm_ops): Remove.
12847 (new_finish_command_fsm): Remove.
12848 (finish_command_fsm::should_stop): Rename from
12849 finish_command_fsm_should_stop.
12850 (finish_command_fsm::clean_up): Rename from
12851 finish_command_fsm_clean_up.
12852 (finish_command_fsm::return_value): Rename from
12853 finish_command_fsm_return_value.
12854 (finish_command_fsm::do_async_reply_reason): Rename from
12855 finish_command_fsm_async_reply_reason.
12856 (finish_command): Update.
12857 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12859 (call_thread_fsm_ops): Remove.
12860 (call_thread_fsm::call_thread_fsm): Rename from
12861 new_call_thread_fsm.
12862 (call_thread_fsm::should_stop): Rename from
12863 call_thread_fsm_should_stop.
12864 (call_thread_fsm::should_notify_stop): Rename from
12865 call_thread_fsm_should_notify_stop.
12866 (run_inferior_call, call_function_by_hand_dummy): Update.
12867 * cli/cli-interp.c (should_print_stop_to_console): Update.
12868 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12869 Add constructor. Change type of location_breakpoint,
12871 (until_break_fsm_ops): Remove.
12872 (new_until_break_fsm): Remove.
12873 (until_break_fsm::should_stop): Rename from
12874 until_break_fsm_should_stop.
12875 (until_break_fsm::clean_up): Rename from
12876 until_break_fsm_clean_up.
12877 (until_break_fsm::do_async_reply_reason): Rename from
12878 until_break_fsm_async_reply_reason.
12879 (until_break_command): Update.
12880 * thread-fsm.c: Remove.
12881 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12883 2019-02-07 Tom Tromey <tom@tromey.com>
12885 * yy-remap.h: Add include guard.
12886 * xtensa-tdep.h: Add include guard.
12887 * xcoffread.h: Rename include guard.
12888 * varobj-iter.h: Add include guard.
12889 * tui/tui.h: Rename include guard.
12890 * tui/tui-winsource.h: Rename include guard.
12891 * tui/tui-wingeneral.h: Rename include guard.
12892 * tui/tui-windata.h: Rename include guard.
12893 * tui/tui-win.h: Rename include guard.
12894 * tui/tui-stack.h: Rename include guard.
12895 * tui/tui-source.h: Rename include guard.
12896 * tui/tui-regs.h: Rename include guard.
12897 * tui/tui-out.h: Rename include guard.
12898 * tui/tui-layout.h: Rename include guard.
12899 * tui/tui-io.h: Rename include guard.
12900 * tui/tui-hooks.h: Rename include guard.
12901 * tui/tui-file.h: Rename include guard.
12902 * tui/tui-disasm.h: Rename include guard.
12903 * tui/tui-data.h: Rename include guard.
12904 * tui/tui-command.h: Rename include guard.
12905 * tic6x-tdep.h: Add include guard.
12906 * target/waitstatus.h: Rename include guard.
12907 * target/wait.h: Rename include guard.
12908 * target/target.h: Rename include guard.
12909 * target/resume.h: Rename include guard.
12910 * target-float.h: Rename include guard.
12911 * stabsread.h: Add include guard.
12912 * rs6000-tdep.h: Add include guard.
12913 * riscv-fbsd-tdep.h: Add include guard.
12914 * regformats/regdef.h: Rename include guard.
12915 * record.h: Rename include guard.
12916 * python/python.h: Rename include guard.
12917 * python/python-internal.h: Rename include guard.
12918 * python/py-stopevent.h: Rename include guard.
12919 * python/py-ref.h: Rename include guard.
12920 * python/py-record.h: Rename include guard.
12921 * python/py-record-full.h: Rename include guard.
12922 * python/py-record-btrace.h: Rename include guard.
12923 * python/py-instruction.h: Rename include guard.
12924 * python/py-events.h: Rename include guard.
12925 * python/py-event.h: Rename include guard.
12926 * procfs.h: Add include guard.
12927 * proc-utils.h: Add include guard.
12928 * p-lang.h: Add include guard.
12929 * or1k-tdep.h: Rename include guard.
12930 * observable.h: Rename include guard.
12931 * nto-tdep.h: Rename include guard.
12932 * nat/x86-linux.h: Rename include guard.
12933 * nat/x86-linux-dregs.h: Rename include guard.
12934 * nat/x86-gcc-cpuid.h: Add include guard.
12935 * nat/x86-dregs.h: Rename include guard.
12936 * nat/x86-cpuid.h: Rename include guard.
12937 * nat/ppc-linux.h: Rename include guard.
12938 * nat/mips-linux-watch.h: Rename include guard.
12939 * nat/linux-waitpid.h: Rename include guard.
12940 * nat/linux-ptrace.h: Rename include guard.
12941 * nat/linux-procfs.h: Rename include guard.
12942 * nat/linux-osdata.h: Rename include guard.
12943 * nat/linux-nat.h: Rename include guard.
12944 * nat/linux-namespaces.h: Rename include guard.
12945 * nat/linux-btrace.h: Rename include guard.
12946 * nat/glibc_thread_db.h: Rename include guard.
12947 * nat/gdb_thread_db.h: Rename include guard.
12948 * nat/gdb_ptrace.h: Rename include guard.
12949 * nat/fork-inferior.h: Rename include guard.
12950 * nat/amd64-linux-siginfo.h: Rename include guard.
12951 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12952 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12953 * nat/aarch64-linux.h: Rename include guard.
12954 * nat/aarch64-linux-hw-point.h: Rename include guard.
12955 * mn10300-tdep.h: Add include guard.
12956 * mips-linux-tdep.h: Add include guard.
12957 * mi/mi-parse.h: Rename include guard.
12958 * mi/mi-out.h: Rename include guard.
12959 * mi/mi-main.h: Rename include guard.
12960 * mi/mi-interp.h: Rename include guard.
12961 * mi/mi-getopt.h: Rename include guard.
12962 * mi/mi-console.h: Rename include guard.
12963 * mi/mi-common.h: Rename include guard.
12964 * mi/mi-cmds.h: Rename include guard.
12965 * mi/mi-cmd-break.h: Rename include guard.
12966 * m2-lang.h: Add include guard.
12967 * location.h: Rename include guard.
12968 * linux-record.h: Rename include guard.
12969 * linux-nat.h: Add include guard.
12970 * linux-fork.h: Add include guard.
12971 * i386-darwin-tdep.h: Rename include guard.
12972 * hppa-linux-offsets.h: Add include guard.
12973 * guile/guile.h: Rename include guard.
12974 * guile/guile-internal.h: Rename include guard.
12975 * gnu-nat.h: Rename include guard.
12976 * gdb-stabs.h: Rename include guard.
12977 * frv-tdep.h: Add include guard.
12978 * f-lang.h: Add include guard.
12979 * event-loop.h: Add include guard.
12980 * darwin-nat.h: Rename include guard.
12981 * cp-abi.h: Rename include guard.
12982 * config/sparc/nm-sol2.h: Rename include guard.
12983 * config/nm-nto.h: Rename include guard.
12984 * config/nm-linux.h: Add include guard.
12985 * config/i386/nm-i386gnu.h: Rename include guard.
12986 * config/djgpp/nl_types.h: Rename include guard.
12987 * config/djgpp/langinfo.h: Rename include guard.
12988 * compile/gcc-cp-plugin.h: Add include guard.
12989 * compile/gcc-c-plugin.h: Add include guard.
12990 * compile/compile.h: Rename include guard.
12991 * compile/compile-object-run.h: Rename include guard.
12992 * compile/compile-object-load.h: Rename include guard.
12993 * compile/compile-internal.h: Rename include guard.
12994 * compile/compile-cplus.h: Rename include guard.
12995 * compile/compile-c.h: Rename include guard.
12996 * common/xml-utils.h: Rename include guard.
12997 * common/x86-xstate.h: Rename include guard.
12998 * common/version.h: Rename include guard.
12999 * common/vec.h: Rename include guard.
13000 * common/tdesc.h: Rename include guard.
13001 * common/selftest.h: Rename include guard.
13002 * common/scoped_restore.h: Rename include guard.
13003 * common/scoped_mmap.h: Rename include guard.
13004 * common/scoped_fd.h: Rename include guard.
13005 * common/safe-iterator.h: Rename include guard.
13006 * common/run-time-clock.h: Rename include guard.
13007 * common/refcounted-object.h: Rename include guard.
13008 * common/queue.h: Rename include guard.
13009 * common/ptid.h: Rename include guard.
13010 * common/print-utils.h: Rename include guard.
13011 * common/preprocessor.h: Rename include guard.
13012 * common/pathstuff.h: Rename include guard.
13013 * common/observable.h: Rename include guard.
13014 * common/netstuff.h: Rename include guard.
13015 * common/job-control.h: Rename include guard.
13016 * common/host-defs.h: Rename include guard.
13017 * common/gdb_wait.h: Rename include guard.
13018 * common/gdb_vecs.h: Rename include guard.
13019 * common/gdb_unlinker.h: Rename include guard.
13020 * common/gdb_unique_ptr.h: Rename include guard.
13021 * common/gdb_tilde_expand.h: Rename include guard.
13022 * common/gdb_sys_time.h: Rename include guard.
13023 * common/gdb_string_view.h: Rename include guard.
13024 * common/gdb_splay_tree.h: Rename include guard.
13025 * common/gdb_setjmp.h: Rename include guard.
13026 * common/gdb_ref_ptr.h: Rename include guard.
13027 * common/gdb_optional.h: Rename include guard.
13028 * common/gdb_locale.h: Rename include guard.
13029 * common/gdb_assert.h: Rename include guard.
13030 * common/filtered-iterator.h: Rename include guard.
13031 * common/filestuff.h: Rename include guard.
13032 * common/fileio.h: Rename include guard.
13033 * common/environ.h: Rename include guard.
13034 * common/common-utils.h: Rename include guard.
13035 * common/common-types.h: Rename include guard.
13036 * common/common-regcache.h: Rename include guard.
13037 * common/common-inferior.h: Rename include guard.
13038 * common/common-gdbthread.h: Rename include guard.
13039 * common/common-exceptions.h: Rename include guard.
13040 * common/common-defs.h: Rename include guard.
13041 * common/common-debug.h: Rename include guard.
13042 * common/cleanups.h: Rename include guard.
13043 * common/buffer.h: Rename include guard.
13044 * common/btrace-common.h: Rename include guard.
13045 * common/break-common.h: Rename include guard.
13046 * cli/cli-utils.h: Rename include guard.
13047 * cli/cli-style.h: Rename include guard.
13048 * cli/cli-setshow.h: Rename include guard.
13049 * cli/cli-script.h: Rename include guard.
13050 * cli/cli-interp.h: Rename include guard.
13051 * cli/cli-decode.h: Rename include guard.
13052 * cli/cli-cmds.h: Rename include guard.
13053 * charset-list.h: Add include guard.
13054 * buildsym-legacy.h: Rename include guard.
13055 * bfin-tdep.h: Add include guard.
13056 * ax.h: Rename include guard.
13057 * arm-linux-tdep.h: Add include guard.
13058 * arm-fbsd-tdep.h: Add include guard.
13059 * arch/xtensa.h: Rename include guard.
13060 * arch/tic6x.h: Add include guard.
13061 * arch/i386.h: Add include guard.
13062 * arch/arm.h: Rename include guard.
13063 * arch/arm-linux.h: Rename include guard.
13064 * arch/arm-get-next-pcs.h: Rename include guard.
13065 * arch/amd64.h: Add include guard.
13066 * arch/aarch64-insn.h: Rename include guard.
13067 * arch-utils.h: Rename include guard.
13068 * annotate.h: Add include guard.
13069 * amd64-darwin-tdep.h: Rename include guard.
13070 * aarch64-linux-tdep.h: Add include guard.
13071 * aarch64-fbsd-tdep.h: Add include guard.
13072 * aarch32-linux-nat.h: Add include guard.
13074 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13076 * macrotab.c (macro_define_internal): New function that
13077 factorizes macro_define_object_internal and macro_define_function
13079 (macro_define_object_internal): Use macro_define_internal.
13080 (macro_define_function): Likewise.
13082 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13084 * macrocmd.c (extract_identifier): Return
13085 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13088 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13090 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13092 2019-02-05 Tom Tromey <tom@tromey.com>
13094 * target.c (target_stack::unpush): Move assertion earlier.
13096 2019-01-30 Tom Tromey <tom@tromey.com>
13099 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13100 (gdbpy_parse_and_eval): Likewise.
13101 * python/python-internal.h (gdbpy_allow_threads): New class.
13103 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13105 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13106 (aarch64_fbsd_fpregmap): Move earlier.
13107 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13108 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13109 instead of individual calls to trad_frame_set_reg_addr.
13110 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13112 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13113 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13114 instead of individual calls to trad_frame_set_reg_addr.
13116 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13118 * CONTRIBUTE: Replace contribution list with wiki link.
13120 2019-01-25 Tom Tromey <tom@tromey.com>
13122 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13124 2019-01-25 Tom Tromey <tom@tromey.com>
13126 * xtensa-linux-nat.c: Fix common/ includes.
13127 * xml-support.h: Fix common/ includes.
13128 * xml-support.c: Fix common/ includes.
13129 * x86-linux-nat.c: Fix common/ includes.
13130 * windows-nat.c: Fix common/ includes.
13131 * varobj.h: Fix common/ includes.
13132 * varobj.c: Fix common/ includes.
13133 * value.c: Fix common/ includes.
13134 * valops.c: Fix common/ includes.
13135 * utils.c: Fix common/ includes.
13136 * unittests/xml-utils-selftests.c: Fix common/ includes.
13137 * unittests/utils-selftests.c: Fix common/ includes.
13138 * unittests/unpack-selftests.c: Fix common/ includes.
13139 * unittests/tracepoint-selftests.c: Fix common/ includes.
13140 * unittests/style-selftests.c: Fix common/ includes.
13141 * unittests/string_view-selftests.c: Fix common/ includes.
13142 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13143 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13144 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13145 * unittests/rsp-low-selftests.c: Fix common/ includes.
13146 * unittests/parse-connection-spec-selftests.c: Fix common/
13148 * unittests/optional-selftests.c: Fix common/ includes.
13149 * unittests/offset-type-selftests.c: Fix common/ includes.
13150 * unittests/observable-selftests.c: Fix common/ includes.
13151 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13152 * unittests/memrange-selftests.c: Fix common/ includes.
13153 * unittests/memory-map-selftests.c: Fix common/ includes.
13154 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13155 * unittests/function-view-selftests.c: Fix common/ includes.
13156 * unittests/environ-selftests.c: Fix common/ includes.
13157 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13158 * unittests/common-utils-selftests.c: Fix common/ includes.
13159 * unittests/cli-utils-selftests.c: Fix common/ includes.
13160 * unittests/array-view-selftests.c: Fix common/ includes.
13161 * ui-file.c: Fix common/ includes.
13162 * tui/tui-io.c: Fix common/ includes.
13163 * tracepoint.h: Fix common/ includes.
13164 * tracepoint.c: Fix common/ includes.
13165 * tracefile-tfile.c: Fix common/ includes.
13166 * top.h: Fix common/ includes.
13167 * top.c: Fix common/ includes.
13168 * thread.c: Fix common/ includes.
13169 * target/waitstatus.h: Fix common/ includes.
13170 * target/waitstatus.c: Fix common/ includes.
13171 * target.h: Fix common/ includes.
13172 * target.c: Fix common/ includes.
13173 * target-memory.c: Fix common/ includes.
13174 * target-descriptions.c: Fix common/ includes.
13175 * symtab.h: Fix common/ includes.
13176 * symfile.c: Fix common/ includes.
13177 * stap-probe.c: Fix common/ includes.
13178 * spu-linux-nat.c: Fix common/ includes.
13179 * sparc-nat.c: Fix common/ includes.
13180 * source.c: Fix common/ includes.
13181 * solib.c: Fix common/ includes.
13182 * solib-target.c: Fix common/ includes.
13183 * ser-unix.c: Fix common/ includes.
13184 * ser-tcp.c: Fix common/ includes.
13185 * ser-pipe.c: Fix common/ includes.
13186 * ser-base.c: Fix common/ includes.
13187 * selftest-arch.c: Fix common/ includes.
13188 * s12z-tdep.c: Fix common/ includes.
13189 * rust-exp.y: Fix common/ includes.
13190 * rs6000-aix-tdep.c: Fix common/ includes.
13191 * riscv-tdep.c: Fix common/ includes.
13192 * remote.c: Fix common/ includes.
13193 * remote-notif.h: Fix common/ includes.
13194 * remote-fileio.h: Fix common/ includes.
13195 * remote-fileio.c: Fix common/ includes.
13196 * regcache.h: Fix common/ includes.
13197 * regcache.c: Fix common/ includes.
13198 * record-btrace.c: Fix common/ includes.
13199 * python/python.c: Fix common/ includes.
13200 * python/py-type.c: Fix common/ includes.
13201 * python/py-inferior.c: Fix common/ includes.
13202 * progspace.h: Fix common/ includes.
13203 * producer.c: Fix common/ includes.
13204 * procfs.c: Fix common/ includes.
13205 * proc-api.c: Fix common/ includes.
13206 * printcmd.c: Fix common/ includes.
13207 * ppc-linux-nat.c: Fix common/ includes.
13208 * parser-defs.h: Fix common/ includes.
13209 * osdata.c: Fix common/ includes.
13210 * obsd-nat.c: Fix common/ includes.
13211 * nat/x86-linux.c: Fix common/ includes.
13212 * nat/x86-linux-dregs.c: Fix common/ includes.
13213 * nat/x86-dregs.h: Fix common/ includes.
13214 * nat/x86-dregs.c: Fix common/ includes.
13215 * nat/ppc-linux.c: Fix common/ includes.
13216 * nat/mips-linux-watch.h: Fix common/ includes.
13217 * nat/mips-linux-watch.c: Fix common/ includes.
13218 * nat/linux-waitpid.c: Fix common/ includes.
13219 * nat/linux-ptrace.h: Fix common/ includes.
13220 * nat/linux-ptrace.c: Fix common/ includes.
13221 * nat/linux-procfs.c: Fix common/ includes.
13222 * nat/linux-personality.c: Fix common/ includes.
13223 * nat/linux-osdata.c: Fix common/ includes.
13224 * nat/linux-namespaces.c: Fix common/ includes.
13225 * nat/linux-btrace.h: Fix common/ includes.
13226 * nat/linux-btrace.c: Fix common/ includes.
13227 * nat/fork-inferior.c: Fix common/ includes.
13228 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13229 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13230 * nat/aarch64-linux.c: Fix common/ includes.
13231 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13232 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13233 * namespace.h: Fix common/ includes.
13234 * mips-linux-tdep.c: Fix common/ includes.
13235 * minsyms.c: Fix common/ includes.
13236 * mi/mi-parse.h: Fix common/ includes.
13237 * mi/mi-main.c: Fix common/ includes.
13238 * mi/mi-cmd-env.c: Fix common/ includes.
13239 * memrange.h: Fix common/ includes.
13240 * memattr.c: Fix common/ includes.
13241 * maint.h: Fix common/ includes.
13242 * maint.c: Fix common/ includes.
13243 * main.c: Fix common/ includes.
13244 * machoread.c: Fix common/ includes.
13245 * location.c: Fix common/ includes.
13246 * linux-thread-db.c: Fix common/ includes.
13247 * linux-nat.c: Fix common/ includes.
13248 * linux-fork.c: Fix common/ includes.
13249 * inline-frame.c: Fix common/ includes.
13250 * infrun.c: Fix common/ includes.
13251 * inflow.c: Fix common/ includes.
13252 * inferior.h: Fix common/ includes.
13253 * inferior.c: Fix common/ includes.
13254 * infcmd.c: Fix common/ includes.
13255 * inf-ptrace.c: Fix common/ includes.
13256 * inf-child.c: Fix common/ includes.
13257 * ia64-linux-nat.c: Fix common/ includes.
13258 * i387-tdep.c: Fix common/ includes.
13259 * i386-tdep.c: Fix common/ includes.
13260 * i386-linux-tdep.c: Fix common/ includes.
13261 * i386-linux-nat.c: Fix common/ includes.
13262 * i386-go32-tdep.c: Fix common/ includes.
13263 * i386-fbsd-tdep.c: Fix common/ includes.
13264 * i386-fbsd-nat.c: Fix common/ includes.
13265 * guile/scm-type.c: Fix common/ includes.
13266 * guile/guile.c: Fix common/ includes.
13267 * go32-nat.c: Fix common/ includes.
13268 * gnu-nat.c: Fix common/ includes.
13269 * gdbthread.h: Fix common/ includes.
13270 * gdbarch-selftests.c: Fix common/ includes.
13271 * gdb_usleep.c: Fix common/ includes.
13272 * gdb_select.h: Fix common/ includes.
13273 * gdb_bfd.c: Fix common/ includes.
13274 * gcore.c: Fix common/ includes.
13275 * fork-child.c: Fix common/ includes.
13276 * findvar.c: Fix common/ includes.
13277 * fbsd-nat.c: Fix common/ includes.
13278 * event-top.c: Fix common/ includes.
13279 * event-loop.c: Fix common/ includes.
13280 * dwarf2read.c: Fix common/ includes.
13281 * dwarf2loc.c: Fix common/ includes.
13282 * dwarf2-frame.c: Fix common/ includes.
13283 * dwarf-index-cache.c: Fix common/ includes.
13284 * dtrace-probe.c: Fix common/ includes.
13285 * disasm-selftests.c: Fix common/ includes.
13286 * defs.h: Fix common/ includes.
13287 * csky-tdep.c: Fix common/ includes.
13288 * cp-valprint.c: Fix common/ includes.
13289 * cp-support.h: Fix common/ includes.
13290 * cp-support.c: Fix common/ includes.
13291 * corelow.c: Fix common/ includes.
13292 * completer.h: Fix common/ includes.
13293 * completer.c: Fix common/ includes.
13294 * compile/compile.c: Fix common/ includes.
13295 * compile/compile-loc2c.c: Fix common/ includes.
13296 * compile/compile-cplus-types.c: Fix common/ includes.
13297 * compile/compile-cplus-symbols.c: Fix common/ includes.
13298 * command.h: Fix common/ includes.
13299 * cli/cli-dump.c: Fix common/ includes.
13300 * cli/cli-cmds.c: Fix common/ includes.
13301 * charset.c: Fix common/ includes.
13302 * build-id.c: Fix common/ includes.
13303 * btrace.h: Fix common/ includes.
13304 * btrace.c: Fix common/ includes.
13305 * breakpoint.h: Fix common/ includes.
13306 * breakpoint.c: Fix common/ includes.
13308 (enum agent_op): Fix common/ includes.
13309 * ax-general.c (struct aop_map): Fix common/ includes.
13310 * ax-gdb.c: Fix common/ includes.
13311 * auxv.c: Fix common/ includes.
13312 * auto-load.c: Fix common/ includes.
13313 * arm-tdep.c: Fix common/ includes.
13314 * arch/riscv.c: Fix common/ includes.
13315 * arch/ppc-linux-common.c: Fix common/ includes.
13316 * arch/i386.c: Fix common/ includes.
13317 * arch/arm.c: Fix common/ includes.
13318 * arch/arm-linux.c: Fix common/ includes.
13319 * arch/arm-get-next-pcs.c: Fix common/ includes.
13320 * arch/amd64.c: Fix common/ includes.
13321 * arch/aarch64.c: Fix common/ includes.
13322 * arch/aarch64-insn.c: Fix common/ includes.
13323 * arch-utils.c: Fix common/ includes.
13324 * amd64-windows-tdep.c: Fix common/ includes.
13325 * amd64-tdep.c: Fix common/ includes.
13326 * amd64-sol2-tdep.c: Fix common/ includes.
13327 * amd64-obsd-tdep.c: Fix common/ includes.
13328 * amd64-nbsd-tdep.c: Fix common/ includes.
13329 * amd64-linux-tdep.c: Fix common/ includes.
13330 * amd64-linux-nat.c: Fix common/ includes.
13331 * amd64-fbsd-tdep.c: Fix common/ includes.
13332 * amd64-fbsd-nat.c: Fix common/ includes.
13333 * amd64-dicos-tdep.c: Fix common/ includes.
13334 * amd64-darwin-tdep.c: Fix common/ includes.
13335 * agent.c: Fix common/ includes.
13336 * ada-lang.h: Fix common/ includes.
13337 * ada-lang.c: Fix common/ includes.
13338 * aarch64-tdep.c: Fix common/ includes.
13340 2019-01-25 Tom Tromey <tom@tromey.com>
13342 * common/create-version.sh: Use common/version.h.
13344 2019-01-24 Pedro Alves <palves@redhat.com>
13346 * infrun.c (signal_stop, signal_print, signal_program)
13347 (signal_catch, signal_pass): Now arrays instead of pointers.
13348 (update_signals_program_target, do_target_resume)
13349 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13350 * linux-nat.c (linux_nat_target::pass_signals)
13351 (linux_nat_target::create_inferior, linux_nat_target::attach):
13353 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13354 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13355 * procfs.c (procfs_target::pass_signals): Adjust.
13356 * record-full.c (record_full_target::resume): Adjust.
13357 * remote.c (remote_target::pass_signals)
13358 (remote_target::program_signals): Adjust.
13359 * target-debug.h (target_debug_print_signals): Now takes a
13360 gdb::array_view as parameter. Adjust.
13361 * target.h (target_ops) <pass_signals, program_signals>: Replace
13362 pointer and length parameters with gdb::array_view.
13363 (target_pass_signals, target_program_signals): Likewise.
13364 * target-delegates.c: Regenerate.
13366 2019-01-24 Pedro Alves <palves@redhat.com>
13368 * common/forward-scope-exit.h
13369 (forward_scope_exit::forward_scope_exit): Pass arguments to
13370 m_bind_function directly, instead of creating a std::bind and
13373 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13375 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13376 for static members.
13377 (pass_in_v_vfp_candidate): Likewise.
13379 2019-01-23 Tom Tromey <tom@tromey.com>
13380 Pedro Alves <palves@redhat.com>
13382 * regcache.c (class regcache_invalidator): Remove.
13383 (regcache::raw_write): Use make_scope_exit.
13385 2019-01-23 Tom Tromey <tom@tromey.com>
13387 * ui-out.h (class ui_out_emit_type): Update comment.
13389 2019-01-23 Tom Tromey <tom@tromey.com>
13391 * infrun.c (fetch_inferior_event): Update comment.
13393 2019-01-23 Tom Tromey <tom@tromey.com>
13394 Pedro Alves <palves@redhat.com>
13396 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13398 (fetch_inferior_event): Use SCOPE_EXIT.
13401 2019-01-23 Tom Tromey <tom@tromey.com>
13402 Pedro Alves <palves@redhat.com>
13404 * infrun.c (disable_thread_events): Delete.
13405 (stop_all_threads): Use SCOPE_EXIT.
13407 2019-01-23 Tom Tromey <tom@tromey.com>
13408 Pedro Alves <palves@redhat.com>
13410 * symfile.c: Include forward-scope-exit.h.
13411 (clear_symtab_users_cleanup): Replace forward declaration with
13412 a FORWARD_SCOPE_EXIT.
13413 (syms_from_objfile_1): Use the forward_scope_exit and
13414 gdb::optional instead of cleanup_function.
13415 (reread_symbols): Use the forward_scope_exit instead of
13417 (clear_symtab_users_cleanup): Remove function.
13419 2019-01-23 Tom Tromey <tom@tromey.com>
13420 Pedro Alves <palves@redhat.com>
13422 * linux-nat.c: Include scope-exit.h.
13423 (cleanup_target_stop): Remove.
13424 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13427 2019-01-23 Tom Tromey <tom@tromey.com>
13428 Pedro Alves <palves@redhat.com>
13430 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13431 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13433 2019-01-23 Tom Tromey <tom@tromey.com>
13434 Andrew Burgess <andrew.burgess@embecosm.com>
13435 Pedro Alves <palves@redhat.com>
13437 * infrun.c (fetch_inferior_event): Use scope_exit.
13438 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13439 * top.c (execute_command): Use scope_exit.
13440 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13441 * utils.c (do_bpstat_clear_actions_cleanup)
13442 (make_bpstat_clear_actions_cleanup): Remove.
13444 2019-01-23 Tom Tromey <tom@tromey.com>
13445 Pedro Alves <palves@redhat.com>
13447 * infrun.c: Include "common/scope-exit.h"
13448 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13449 (wait_for_inferior): Use SCOPE_EXIT.
13450 (fetch_inferior_event): Use scope_exit.
13452 2019-01-23 Tom Tromey <tom@tromey.com>
13453 Pedro Alves <palves@redhat.com>
13455 * breakpoint.c (create_breakpoint): Remove cleanup.
13457 2019-01-23 Tom Tromey <tom@tromey.com>
13458 Andrew Burgess <andrew.burgess@embecosm.com>
13459 Pedro Alves <palves@redhat.com>
13461 2019-01-23 Pedro Alves <palves@redhat.com>
13463 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13465 2019-01-23 Pedro Alves <palves@redhat.com>
13466 Andrew Burgess <andrew.burgess@embecosm.com>
13468 * gdbthread.h: Include "common/forward-scope-exit.h".
13469 (scoped_finish_thread_state): Redefine custom class in terms of
13470 forward_scope_exit.
13472 2019-01-23 Pedro Alves <palves@redhat.com>
13473 Andrew Burgess <andrew.burgess@embecosm.com>
13475 * common/forward-scope-exit.h: New file.
13477 2019-01-23 Pedro Alves <palves@redhat.com>
13478 Andrew Burgess <andrew.burgess@embecosm.com>
13479 Tom Tromey <tom@tromey.com>
13481 * common/scope-exit.h: New file.
13483 2019-01-23 Pedro Alves <palves@redhat.com>
13485 * common/preprocessor.h (ESC): Rename to ...
13486 (ESC_PARENS): ... this.
13487 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13488 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13490 2019-01-23 Tom Tromey <tom@tromey.com>
13492 * language.h (class scoped_switch_to_sym_language_if_auto):
13493 Initialize m_lang in both cases.
13495 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13497 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13500 2019-01-22 Tom Tromey <tom@tromey.com>
13502 * corelow.c: Do not include sys/file.h.
13504 2019-01-22 Tom Tromey <tom@tromey.com>
13506 * tui/tui-wingeneral.h: Include gdb_curses.h.
13508 2019-01-22 Tom Tromey <tom@tromey.com>
13510 * source-cache.h (class source_cache) <get_source_lines,
13511 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13513 2019-01-22 Tom Tromey <tom@tromey.com>
13515 * remote-fileio.h (struct remote_target): Declare.
13517 2019-01-22 Tom Tromey <tom@tromey.com>
13519 * python/py-arch.c: Do not include py-ref.h.
13520 * python/py-bpevent.c: Do not include py-ref.h.
13521 * python/py-cmd.c: Do not include py-ref.h.
13522 * python/py-continueevent.c: Do not include py-ref.h.
13523 * python/py-event.h: Do not include py-ref.h.
13524 * python/py-evtregistry.c: Do not include py-ref.h.
13525 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13526 * python/py-frame.c: Do not include py-ref.h.
13527 * python/py-framefilter.c: Do not include py-ref.h.
13528 * python/py-function.c: Do not include py-ref.h.
13529 * python/py-infevents.c: Do not include py-ref.h.
13530 * python/py-linetable.c: Do not include py-ref.h.
13531 * python/py-objfile.c: Do not include py-ref.h.
13532 * python/py-param.c: Do not include py-ref.h.
13533 * python/py-prettyprint.c: Do not include py-ref.h.
13534 * python/py-progspace.c: Do not include py-ref.h.
13535 * python/py-symbol.c: Do not include py-ref.h.
13536 * python/py-symtab.c: Do not include py-ref.h.
13537 * python/py-type.c: Do not include py-ref.h.
13538 * python/py-unwind.c: Do not include py-ref.h.
13539 * python/py-utils.c: Do not include py-ref.h.
13540 * python/py-value.c: Do not include py-ref.h.
13541 * python/py-varobj.c: Do not include py-ref.h.
13542 * python/py-xmethods.c: Do not include py-ref.h.
13543 * python/python.c: Do not include py-ref.h.
13544 * varobj.c: Do not include py-ref.h.
13546 2019-01-22 Tom Tromey <tom@tromey.com>
13548 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13549 keyword for bcache.
13551 2019-01-22 Tom Tromey <tom@tromey.com>
13553 * compile/compile-cplus-types.c: Remove a comment by #include.
13555 2019-01-22 Tom Tromey <tom@tromey.com>
13557 * compile/gcc-c-plugin.h: Include compile-internal.h.
13559 2019-01-22 Tom Tromey <tom@tromey.com>
13561 * stabsread.c (EXTERN): Do not define.
13562 (symnum, next_symbol_text_func, processing_gcc_compilation)
13563 (within_function, global_sym_chain, global_stabs)
13564 (previous_stab_code, this_object_header_files)
13565 (n_this_object_header_files)
13566 (n_allocated_this_object_header_files): Define.
13567 * stabsread.h (EXTERN): Never define. Use "extern".
13569 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13571 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13574 2019-01-21 Tom Tromey <tom@tromey.com>
13576 * ui-out.c: Fix includes.
13577 * tui/tui-source.c: Fix includes.
13578 * target.c: Fix includes.
13579 * remote.c: Fix includes.
13580 * regcache.c: Fix includes.
13581 * python/py-block.c: Fix includes.
13582 * printcmd.c: Fix includes.
13583 * or1k-tdep.c: Fix includes.
13584 * mi/mi-main.c: Fix includes.
13585 * m32r-tdep.c: Fix includes.
13586 * csky-tdep.c: Fix includes.
13587 * compile/compile-cplus-types.c: Fix includes.
13588 * cli/cli-interp.c: Fix includes.
13590 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13592 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13595 2019-01-16 Tom Tromey <tom@tromey.com>
13597 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13599 (struct objfile) <msymbols_range>: Move from top level.
13600 <msymbols>: New method.
13601 (class objfile_msymbols): Remove.
13602 * symtab.c (default_collect_symbol_completion_matches_break_on):
13604 * symmisc.c (dump_msymbols): Update.
13605 * stabsread.c (scan_file_globals): Update.
13606 * objc-lang.c (info_selectors_command, info_classes_command)
13607 (find_methods): Update.
13608 * minsyms.c (find_solib_trampoline_target): Update.
13609 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13610 * coffread.c (coff_symfile_read): Update.
13611 * ada-lang.c (ada_lookup_simple_minsym)
13612 (ada_collect_symbol_completion_matches): Update.
13614 2019-01-16 Tom Tromey <tom@tromey.com>
13616 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13617 type. Remove no-argument constructor.
13618 <iterator::operator++>: Simplify.
13620 <end>: Use minimal_symbol_count.
13622 2019-01-16 Tom Tromey <tom@tromey.com>
13624 * objfiles.h (struct objfile) <psymtabs>: New method.
13625 (class objfile_psymtabs): Remove.
13626 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13628 <range>: New method.
13629 (require_partial_symbols): Change return type.
13630 * psymtab.c (require_partial_symbols)
13631 (psym_expand_symtabs_matching): Update.
13632 * mdebugread.c (parse_partial_symbols): Update.
13633 * dbxread.c (dbx_end_psymtab): Update.
13635 2019-01-15 Tom Tromey <tom@tromey.com>
13637 * symtab.c (lookup_objfile_from_block)
13638 (lookup_symbol_in_objfile_symtabs)
13639 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13640 (find_line_symtab, info_sources_command)
13641 (default_collect_symbol_completion_matches_break_on)
13642 (make_source_files_completion_list): Update.
13643 * symmisc.c (print_objfile_statistics, dump_objfile)
13644 (maintenance_print_symbols, maintenance_info_symtabs)
13645 (maintenance_check_symtabs, maintenance_info_line_tables):
13647 * source.c (select_source_symtab)
13648 (forget_cached_source_info_for_objfile): Update.
13649 * objfiles.h (class objfile_compunits): Remove.
13650 (struct objfile) <compunits_range>: New typedef.
13651 (compunits): New method.
13652 * objfiles.c (objfile_relocate1): Update.
13653 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13654 * maint.c (count_symtabs_and_blocks): Update.
13655 * linespec.c (iterate_over_all_matching_symtabs): Update.
13656 * cp-support.c (add_symbol_overload_list_qualified): Update.
13657 * coffread.c (coff_symtab_read): Update.
13658 * ada-lang.c (add_nonlocal_symbols)
13659 (ada_collect_symbol_completion_matches)
13660 (ada_add_global_exceptions): Update.
13662 2019-01-15 Tom Tromey <tom@tromey.com>
13664 * progspace.h (program_space) <objfiles_safe_range>: New
13666 <objfiles_safe>: New method.
13667 * objfiles.h (class all_objfiles_safe): Remove.
13668 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13669 * jit.c (jit_inferior_exit_hook): Update.
13671 2019-01-17 Tom Tromey <tom@tromey.com>
13673 * progspace.h (program_space) <objfiles_range>: New typedef.
13674 <objfiles>: New method.
13675 <objfiles_head>: Rename from objfiles.
13676 (object_files): Update.
13677 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13678 * guile/scm-pretty-print.c
13679 (ppscm_find_pretty_printer_from_objfiles): Update.
13680 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13681 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13683 * python/py-progspace.c (pspy_get_objfiles): Update.
13684 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13686 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13687 (objfpy_lookup_objfile_by_build_id): Update.
13688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13689 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13691 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13692 (expand_symtab_containing_pc, lookup_objfile_from_block)
13693 (lookup_static_symbol, basic_lookup_transparent_type)
13694 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13695 (find_line_symtab, info_sources_command)
13696 (default_collect_symbol_completion_matches_break_on)
13697 (make_source_files_completion_list, find_main_name): Update.
13698 * symmisc.c (print_symbol_bcache_statistics)
13699 (print_objfile_statistics, maintenance_print_symbols)
13700 (maintenance_print_msymbols, maintenance_print_objfiles)
13701 (maintenance_info_symtabs, maintenance_check_symtabs)
13702 (maintenance_expand_symtabs, maintenance_info_line_tables):
13704 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13705 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13706 (map_overlay_command, unmap_overlay_command)
13707 (simple_overlay_update, expand_symtabs_matching)
13708 (map_symbol_filenames): Update.
13709 * symfile-debug.c (set_debug_symfile): Update.
13710 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13712 * source.c (select_source_symtab, forget_cached_source_info):
13714 * solib.c (solib_read_symbols): Update.
13715 * solib-spu.c (append_ocl_sos): Update.
13716 * psymtab.c (maintenance_print_psymbols)
13717 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13718 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13719 * printcmd.c (info_symbol_command): Update.
13720 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13722 * objfiles.h (class all_objfiles): Remove.
13723 * objfiles.c (have_partial_symbols, have_full_symbols)
13724 (have_minimal_symbols, qsort_cmp, update_section_map)
13725 (shared_objfile_contains_address_p)
13726 (default_iterate_over_objfiles_in_search_order): Update.
13727 * objc-lang.c (info_selectors_command, info_classes_command)
13728 (find_methods): Update.
13729 * minsyms.c (find_solib_trampoline_target): Update.
13730 * maint.c (maintenance_info_sections)
13731 (maintenance_translate_address, count_symtabs_and_blocks):
13733 * main.c (captured_main_1): Update.
13734 * linux-thread-db.c (try_thread_db_load_from_pdir)
13735 (has_libpthread): Update.
13736 * linespec.c (iterate_over_all_matching_symtabs)
13737 (search_minsyms_for_name): Update.
13738 * jit.c (jit_find_objf_with_entry_addr): Update.
13739 * hppa-tdep.c (find_unwind_entry)
13740 (hppa_lookup_stub_minimal_symbol): Update.
13741 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13743 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13744 (elf_gnu_ifunc_resolve_by_got): Update.
13745 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13746 * dwarf-index-write.c (save_gdb_index_command): Update.
13747 * cp-support.c (add_symbol_overload_list_qualified): Update.
13748 * breakpoint.c (create_overlay_event_breakpoint)
13749 (create_longjmp_master_breakpoint)
13750 (create_std_terminate_master_breakpoint)
13751 (create_exception_master_breakpoint): Update.
13752 * blockframe.c (find_pc_partial_function): Update.
13753 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13754 (ada_collect_symbol_completion_matches)
13755 (ada_add_global_exceptions): Update.
13757 2019-01-17 Tom Tromey <tom@tromey.com>
13759 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13761 (solib_target_parse_libraries): Change return type.
13762 (library_list_start_segment, library_list_start_section)
13763 (library_list_end_library, library_list_start_library); Update.
13764 (solib_target_free_library_list): Remove.
13765 (solib_target_parse_libraries): Remove cleanup. Change return
13767 (solib_target_current_sos): Update.
13769 2019-01-17 Tom Tromey <tromey@bapiya>
13771 * valprint.c: Replace "the the" with "the".
13772 * symtab.c: Replace "the the" with "the".
13773 * solib.c: Replace "the the" with "the".
13774 * solib-dsbt.c: Replace "the the" with "the".
13775 * linespec.c: Replace "the the" with "the".
13776 * dwarf2loc.h: Replace "the the" with "the".
13777 * amd64-windows-tdep.c: Replace "the the" with "the".
13778 * aarch64-tdep.c: Replace "the the" with "the".
13780 2019-01-16 Keith Seitz <keiths@redhat.com>
13783 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13784 <builder>: Rename to ..
13785 <m_builder>: ... this and make private.
13786 (dwarf2_cu::get_builder): New method. Change all users of
13787 `builder' to use this method.
13788 (dwarf2_start_symtab): Move to ...
13789 (dwarf2_cu::start_symtab): ... here. Update all callers
13790 (setup_type_unit_groups): Move to ...
13791 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13793 (dwarf2_cu::reset_builder): New method.
13794 (process_full_compunit, process_full_type_unit): Use
13795 dwarf2_cu::reset_builder.
13796 (follow_die_offset): Record the ancestor CU if it is different
13797 from the followed DIE's CU.
13798 (follow_die_sig_1): Likewise.
13800 2019-01-15 Tom Tromey <tom@tromey.com>
13802 * remote.c (class remote_state) <buf>: Now a char_vector.
13803 <buf_size>: Remove.
13804 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13806 (remote_target::getpkt_or_notif_sane_1)
13807 (remote_target::getpkt_sane)
13808 (remote_target::getpkt_or_notif_sane): Likewise.
13809 (class remote_target) <putpkt>: New overload.
13810 (remote_target::read_frame): Change type of "buf_p". Remove
13811 sizeof_p parameter.
13812 (packet_ok): New overload.
13813 (packet_check_result): New overload.
13816 2019-01-14 Tom Tromey <tom@tromey.com>
13818 * remote-notif.c (handle_notification, remote_notif_ack)
13819 (remote_notif_parse): Make "buf" const.
13820 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13822 (remote_notif_parse, remote_notif_ack, handle_notification):
13824 * remote.c (remote_notif_stop_parse): Make "buf" const.
13825 (remote_target::remote_parse_stop_reply): Make "buf" const.
13826 (remote_notif_stop_ack): Make "buf" const.
13828 2019-01-14 Tom Tromey <tom@tromey.com>
13830 * remote.c (remote_console_output): Make parameter const.
13832 2019-01-14 Tom Tromey <tom@tromey.com>
13834 * target-debug.h (target_debug_print_signals): Constify.
13835 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13836 * procfs.c (procfs_target::pass_signals): Update.
13837 * linux-nat.c (linux_nat_target::pass_signals): Update.
13838 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13839 * target-delegates.c: Rebuild.
13840 * remote.c (remote_target::program_signals): Update.
13841 (remote_target::pass_signals): Update.
13842 * target.c (target_pass_signals): Constify argument.
13843 (target_program_signals): Likewise.
13844 * target.h (struct target_ops) <pass_signals, program_signals>:
13846 (target_pass_signals, target_program_signals): Constify argument.
13848 2019-01-14 Tom Tromey <tom@tromey.com>
13851 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13853 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13855 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13857 * rs6000-tdep.c: Include reggroups.h.
13858 (IS_V_ALIAS_PSEUDOREG): Define.
13859 (rs6000_register_name): Return names for the "vX" aliases.
13860 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13861 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13862 aliases. Call default_register_reggroup_p for all other
13864 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13866 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13867 Handle "vX" aliases.
13868 (v_alias_pseudo_register_collect): New function.
13869 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13870 (rs6000_gdbarch_init): Initialize "vX" aliases as
13871 pseudo-registers. Restore registration of
13872 rs6000_pseudo_register_reggroup_p with
13873 set_tdesc_pseudo_register_reggroup_p.
13875 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13877 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13878 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13879 set_gdbarch_num_pseudo_regs.
13881 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13883 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13884 Remove arg prefixname, add do_set and do_show.
13885 Add member functions set_list and show_list.
13886 * cli/cli-style.c (class cli_style_option): Update accordingly.
13887 (style_set_list): Move to file scope.
13888 (style_show_list): Likewise.
13889 (set_style): Call help_list.
13890 (show_style): Call cmd_show_list.
13891 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13892 Update to use the new macro.
13894 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13896 * ada-lang.c (_initialize_ada_language): Expand the help text
13897 for the "catch exception" command.
13899 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13901 * symtab.c (matching_obj_sections): Initialize obj,
13902 declare it closer to its usage.
13904 2019-01-10 Tom Tromey <tom@tromey.com>
13906 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13907 (basic_inf_threads_range): Remove.
13908 (inf_threads_range, inf_non_exited_threads_range)
13909 (safe_inf_threads_range): Use next_adapter.
13911 2019-01-10 Keith Seitz <keiths@redhat.com>
13915 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13916 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13918 2019-01-10 Keith Seitz <keiths@redhat.com>
13922 * dictionary.c (pending_to_vector): Remove.
13923 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13924 Remove _1 suffix, replacing functions of the same name. Update
13926 (dict_create_hashed, dict_create_hashed_expandable)
13927 (dict_create_linear, dict_create_linear_expandable, dict_free)
13928 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13929 Make functions static.
13931 2019-01-10 Keith Seitz <keiths@redhat.com>
13935 * dictionary.h (struct dictionary): Replace declaration with
13937 (dict_create_hashed, dict_create_hashed_expandable)
13938 (dict_create_linear, dict_create_linear_expandable)
13939 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13940 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13941 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13942 taking multidictionary argument.
13943 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13944 * block.h (struct block) <dict>: Change to multidictionary
13945 and rename `multidict'.
13946 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13947 symmisc.c: Update all dictionary references to multidictionary.
13949 2019-01-10 Keith Seitz <keiths@redhat.com>
13953 * dictionary.c: Include unordered_map.
13954 (pending_to_vector): New function.
13955 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13956 Rewrite the non-"_1" functions to take vector instead
13958 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13959 "new" _1 versions of the same name.
13960 (multidictionary): Define.
13961 (std::hash<enum language): New definition.
13962 (collate_pending_symbols_by_language, mdict_create_hashed)
13963 (mdict_create_hashed_expandable, mdict_create_linear)
13964 (mdict_create_linear_expandable, mdict_free)
13965 (find_language_dictionary, create_new_language_dictionary)
13966 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13967 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13968 (mdict_size, mdict_empty): New functions.
13969 * dictionary.h (mdict_iterator): Define.
13971 2019-01-10 Pedro Alves <palves@redhat.com>
13973 * breakpoint.c (read_uploaded_action)
13974 (create_tracepoint_from_upload): Adjust to use
13975 gdb::unique_xmalloc_ptr.
13976 * ctf.c (ctf_write_uploaded_tp):
13977 (SET_ARRAY_FIELD): Use emplace_back.
13978 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13979 * tracefile-tfile.c (tfile_write_uploaded_tp):
13980 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13981 gdb::unique_xmalloc_ptr.
13982 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13983 at_string, cond_string, cmd_strings>: Replace char pointers
13984 with gdb::unique_xmalloc_ptr.
13986 2019-01-10 Pedro Alves <palves@redhat.com>
13988 * solib-target.c (library_list_start_library): Don't xstrdup name.
13990 2019-01-10 Pedro Alves <palves@redhat.com>
13992 * mdebugread.c (parse_partial_symbols): Use
13993 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13995 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13997 * linux-fork.c (scoped_switch_fork_info)
13998 <~scoped_switch_fork_info>: Fix incorrect variable name.
14000 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14002 * linux-fork.c (scoped_switch_fork_info)
14003 <scoped_switch_fork_info>: Make explicit.
14004 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14006 2019-01-10 Tom Tromey <tom@tromey.com>
14008 * objfiles.h (objfile::reset_psymtabs): Update.
14009 * objfiles.c (objfile::objfile): Update.
14010 * psymtab.h (psymtab_storage::obstack): Update.
14011 (psymtab_storage::m_obstack): Use gdb::optional.
14012 (class psymtab_storage): Update comment. Remove objfile
14014 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14016 2019-01-10 Tom Tromey <tom@tromey.com>
14018 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14019 <free_psymtabs>: Now private.
14020 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14021 (allocate_psymtab): Use new method.
14023 2019-01-10 Tom Tromey <tom@tromey.com>
14025 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14026 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14027 * mdebugread.c (parse_partial_symbols): Use
14028 allocate_dependencies.
14029 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14030 allocate_dependencies.
14031 (process_psymtab_comp_unit_reader)
14032 (build_type_psymtab_dependencies): Likewise.
14033 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14035 2019-01-10 Tom Tromey <tom@tromey.com>
14037 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14038 PSYMBOL_SET_LANGUAGE.
14039 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14041 2019-01-10 Tom Tromey <tom@tromey.com>
14043 * psymtab.h (psymtab_storage::obstack): New method.
14044 <m_obstack>: Rename from obstack; now private.
14045 * psymtab.c (psymtab_storage): Update.
14046 * dwarf2read.c (create_addrmap_from_index)
14047 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14050 2019-01-10 Tom Tromey <tom@tromey.com>
14052 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14053 * objfiles.h (objfile::reset_psymtabs): New method.
14055 2019-01-10 Tom Tromey <tom@tromey.com>
14057 * symmisc.c (print_symbol_bcache_statistics): Update.
14058 (print_objfile_statistics): Update.
14059 * symfile.c (reread_symbols): Update.
14060 * psymtab.h (class psymtab_storage): New.
14061 * psymtab.c (psymtab_storage): New constructor.
14062 (~psymtab_storage): New destructor.
14063 (require_partial_symbols): Update.
14064 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14065 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14066 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14067 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14068 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14069 (start_psymtab_common, end_psymtab_common)
14070 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14071 (allocate_psymtab): Update.
14072 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14074 (dump_psymtab_addrmap, maintenance_print_psymbols)
14075 (maintenance_check_psymtabs): Update.
14076 (class objfile_psymtabs): Move to objfiles.h.
14077 * psympriv.h (discard_psymtab): Now inline.
14078 (psymtab_discarder::psymtab_discarder): Update.
14079 (psymtab_discarder::~psymtab_discarder): Update.
14080 (ALL_OBJFILE_PSYMTABS): Rewrite.
14081 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14082 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14084 <partial_symtabs>: New field.
14085 (class objfile_psymtabs): Move from psymtab.h. Update.
14086 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14088 (objfile::~objfile): Don't destroy psymbol_cache.
14089 * mdebugread.c (parse_partial_symbols): Update.
14090 * dwarf2read.c (create_addrmap_from_index)
14091 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14092 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14093 (add_partial_subprogram, dwarf2_ranges_read): Update.
14094 * dwarf-index-write.c (write_address_map)
14095 (write_one_signatured_type, recursively_write_psymbols)
14096 (class debug_names, class debug_names, write_psymtabs_to_index):
14099 2019-01-10 Tom Tromey <tom@tromey.com>
14101 * symtab.h (SYMBOL_SET_NAMES): Update.
14102 (symbol_set_names): Update.
14103 (MSYMBOL_SET_NAMES): Update.
14104 * symtab.c (symbol_set_names): Change argument to be an
14105 objfile_per_bfd_storage.
14106 * psymtab.c (add_psymbol_to_bcache): Update.
14107 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14109 2019-01-10 Tom Tromey <tom@tromey.com>
14111 * symtab.c (create_demangled_names_hash): Change argument to be an
14112 objfile_per_bfd_storage.
14113 (symbol_set_names): Update.
14115 2019-01-10 Tom Tromey <tom@tromey.com>
14117 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14119 * psymtab.c (init_psymbol_list): Do nothing if already called.
14120 * psympriv.h (init_psymbol_list): Add comment.
14121 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14123 * dbxread.c (dbx_symfile_read): Unconditionally call
14126 2019-01-10 Tom Tromey <tom@tromey.com>
14128 * xcoffread.c (scan_xcoff_symtab): Update.
14129 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14131 * mdebugread.c (parse_partial_symbols)
14132 (handle_psymbol_enumerators): Update.
14133 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14134 * dbxread.c (read_dbx_symtab): Update.
14135 * psympriv.h (psymbol_placement): New enum.
14136 (add_psymbol_to_list): Update.
14138 2019-01-10 Tom Tromey <tom@tromey.com>
14140 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14141 static_psymbols parameters.
14142 (scan_xcoff_symtab): Update.
14143 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14144 static_psymbols parameters.
14145 * psympriv.h (start_psymtab_common): Update.
14146 * mdebugread.c (parse_partial_symbols): Update.
14147 * dwarf2read.c (create_partial_symtab): Update.
14148 * dbxread.c (read_dbx_symtab): Update.
14149 (start_psymtab): Remove global_psymbols and static_psymbols
14152 2019-01-10 Tom Tromey <tom@tromey.com>
14154 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14155 * psymtab.c (allocate_psymtab): Add comment.
14156 * psympriv.h (allocate_psymtab): Add comment.
14157 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14159 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14161 2019-01-10 Tom Tromey <tom@tromey.com>
14163 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14165 * mipsread.c: Include mdebugread.h.
14166 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14168 * elfread.c: Include mdebugread.h.
14170 2019-01-09 Tom Tromey <tom@tromey.com>
14172 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14173 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14174 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14175 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14176 (psym_lookup_symbol, psym_find_last_source_symtab)
14177 (psym_forget_cached_source_info, psym_print_stats)
14178 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14179 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14180 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14181 (psym_find_compunit_symtab_by_address)
14182 (maintenance_print_psymbols, maintenance_info_psymtabs)
14183 (maintenance_check_psymtabs): Use ranged for.
14184 * psymtab.h (class objfile_psymtabs): New.
14185 (require_partial_symbols): Return objfile_psymtabs.
14186 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14188 2019-01-09 Tom Tromey <tom@tromey.com>
14190 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14191 (find_pc_mapped_section, list_overlays_command)
14192 (map_overlay_command, unmap_overlay_command)
14193 (simple_overlay_update): Use all_objfiles.
14194 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14195 * printcmd.c (info_symbol_command): Use all_objfiles.
14196 * objfiles.h (ALL_OBJSECTIONS): Remove.
14197 * maint.c (maintenance_translate_address): Use all_objfiles.
14198 * gcore.c (gcore_create_callback): Use all_objfiles.
14199 (objfile_find_memory_regions): Likewise.
14201 2019-01-09 Tom Tromey <tom@tromey.com>
14203 * symtab.c (find_line_symtab, info_sources_command)
14204 (make_source_files_completion_list): Use objfile_compunits.
14205 * source.c (select_source_symtab): Use objfile_compunits.
14206 * objfiles.h (struct objfile): Update comment.
14207 (ALL_OBJFILES): Remove.
14208 (ALL_FILETABS): Remove.
14209 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14212 2019-01-09 Tom Tromey <tom@tromey.com>
14214 * symmisc.c (print_objfile_statistics, dump_objfile)
14215 (maintenance_print_symbols): Use compunit_filetabs.
14216 * source.c (forget_cached_source_info_for_objfile): Use
14218 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14219 (ALL_FILETABS): Use compunit_filetabs.
14220 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14221 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14223 2019-01-09 Tom Tromey <tom@tromey.com>
14225 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14226 (compunit_filetabs): New.
14227 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14229 (info_sources_command, make_source_files_completion_list): Remove
14231 * symmisc.c (print_objfile_statistics, dump_objfile)
14232 (maintenance_print_symbols): Remove declaration.
14233 (maintenance_info_symtabs): Use compunit_filetabs.
14234 (maintenance_info_line_tables): Likewise.
14235 * source.c (select_source_symtab): Change local variable name.
14236 (forget_cached_source_info_for_objfile): Remove declaration.
14237 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14238 * objfiles.c (objfile_relocate1): Remove declaration.
14239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14241 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14242 * coffread.c (coff_symtab_read): Remove declaration.
14243 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14246 2019-01-09 Tom Tromey <tom@tromey.com>
14248 * symtab.c (lookup_objfile_from_block)
14249 (find_pc_sect_compunit_symtab, search_symbols)
14250 (default_collect_symbol_completion_matches_break_on): Use
14252 * objfiles.h (ALL_COMPUNITS): Remove.
14253 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14254 * cp-support.c (add_symbol_overload_list_qualified): Use
14256 * ada-lang.c (ada_collect_symbol_completion_matches)
14257 (ada_add_global_exceptions): Use objfile_compunits.
14259 2019-01-09 Tom Tromey <tom@tromey.com>
14261 * source.c (select_source_symtab)
14262 (forget_cached_source_info_for_objfile): Remove declaration.
14263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14265 * maint.c (count_symtabs_and_blocks): Remove declaration.
14266 * cp-support.c (add_symbol_overload_list_qualified): Remove
14268 * coffread.c (coff_symtab_read): Remove declaration.
14269 * symtab.c (lookup_symbol_in_objfile_symtabs)
14270 (basic_lookup_transparent_type_1): Use objfile_compunits.
14271 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
14272 (info_sources_command, search_symbols)
14273 (default_collect_symbol_completion_matches_break_on)
14274 (make_source_files_completion_list): Remove declaration.
14275 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
14276 (ada_collect_symbol_completion_matches)
14277 (ada_add_global_exceptions): Remove declaration.
14278 * linespec.c (iterate_over_all_matching_symtabs): Use
14280 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
14281 (class objfile_compunits): New.
14282 (ALL_COMPUNITS): Use objfile_compunits.
14283 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
14284 (maintenance_check_symtabs, maintenance_info_line_tables): Use
14286 * objfiles.c (objfile_relocate1): Use objfile_compunits.
14288 2019-01-09 Tom Tromey <tom@tromey.com>
14290 * symtab.c (search_symbols)
14291 (default_collect_symbol_completion_matches_break_on): Use
14293 * ada-lang.c (ada_lookup_simple_minsym)
14294 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
14295 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
14296 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
14298 * coffread.c (coff_symfile_read): Use objfile_msymbols.
14299 * symmisc.c (dump_msymbols): Use objfile_msymbols.
14300 * objc-lang.c (find_methods): Use objfile_msymbols.
14301 (info_selectors_command, info_classes_command): Likewise.
14302 * stabsread.c (scan_file_globals): Use objfile_msymbols.
14303 * objfiles.h (class objfile_msymbols): New.
14304 (ALL_OBJFILE_MSYMBOLS): Remove.
14305 (ALL_MSYMBOLS): Remove.
14307 2019-01-09 Tom Tromey <tom@tromey.com>
14309 * common/next-iterator.h (next_adapter): Add Iterator template
14311 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
14312 (class all_objfiles_safe): New.
14313 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
14314 * objfiles.c (put_objfile_before): Update comment.
14315 (add_separate_debug_objfile): Likewise.
14316 (free_all_objfiles): Use all_objfiles_safe.
14317 (objfile_purge_solibs): Likewise.
14319 2019-01-09 Tom Tromey <tom@tromey.com>
14321 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14322 (expand_symtab_containing_pc, lookup_static_symbol)
14323 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
14324 (find_symbol_at_address, find_line_symtab, find_main_name): Use
14326 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
14327 * breakpoint.c (create_overlay_event_breakpoint)
14328 (create_longjmp_master_breakpoint)
14329 (create_std_terminate_master_breakpoint)
14330 (create_exception_master_breakpoint): Use all_objfiles.
14331 * linux-thread-db.c (try_thread_db_load_from_pdir)
14332 (has_libpthread): Use all_objfiles.
14333 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
14334 * linespec.c (iterate_over_all_matching_symtabs)
14335 (search_minsyms_for_name): Use all_objfiles.
14336 * maint.c (maintenance_info_sections): Use all_objfiles.
14337 * main.c (captured_main_1): Use all_objfiles.
14338 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
14339 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
14340 * guile/scm-pretty-print.c
14341 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14342 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14343 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14344 (maintenance_print_msymbols): Use all_objfiles.
14345 * source.c (select_source_symtab): Use all_objfiles.
14346 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14347 * symfile.c (remove_symbol_file_command)
14348 (expand_symtabs_matching, map_symbol_filenames): Use
14350 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14352 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14353 * objc-lang.c (find_methods): Use all_objfiles.
14354 * objfiles.c (have_partial_symbols, have_full_symbols)
14355 (have_minimal_symbols, qsort_cmp)
14356 (default_iterate_over_objfiles_in_search_order): Use
14358 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14359 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14360 (maintenance_check_psymtabs): Use all_objfiles.
14361 (ALL_PSYMTABS): Remove.
14362 * compile/compile-object-run.c (do_module_cleanup): Use
14364 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14365 * cp-support.c (add_symbol_overload_list_qualified): Use
14367 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14369 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14370 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14372 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14373 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14374 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14376 * solib.c (solib_read_symbols): Use all_objfiles
14378 2019-01-09 Tom Tromey <tom@tromey.com>
14380 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14381 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14383 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14384 * symmisc.c (print_symbol_bcache_statistics)
14385 (print_objfile_statistics, maintenance_print_objfiles)
14386 (maintenance_info_symtabs, maintenance_check_symtabs)
14387 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14389 * source.c (forget_cached_source_info): Use all_objfiles.
14390 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14391 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14392 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14393 * objfiles.c (update_section_map): Use all_objfiles.
14394 (shared_objfile_contains_address_p): Likewise.
14395 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14396 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14398 2019-01-09 Tom Tromey <tom@tromey.com>
14400 * common/next-iterator.h: New file.
14401 * objfiles.h (class all_objfiles): New.
14402 (struct objfile_iterator): New.
14404 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14406 * NEWS: Move the description of the changed "frame", "select-frame",
14407 and "info frame" commands to the Changed commands section.
14409 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14411 * gdbtypes.c (check_stub_method_group): Remove handling of old
14413 * linespec.c (find_methods): Likewise.
14414 * stabsread.c (read_member_functions): Likewise.
14415 * valops.c (search_struct_method): Likewise.
14416 (value_struct_elt_for_reference): Likewise.
14417 * NEWS: Mention this change.
14419 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14421 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14422 print_source_lines.
14423 * source.c (print_source_lines_base): Update line number check.
14424 (print_source_lines): New function.
14425 (source_lines_range::source_lines_range): New function.
14426 * source.h (class source_lines_range): New class.
14427 (print_source_lines): New declaration.
14429 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14431 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14433 2019-01-08 Tom Tromey <tom@tromey.com>
14434 Simon Marchi <simon.marchi@ericsson.com>
14437 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14438 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14439 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14440 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14441 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14442 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14444 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14446 * source.c (select_source_symtab): Move header comment to
14447 declaration in source.h.
14448 (forget_cached_source_info_for_objfile): Likewise.
14449 (forget_cached_source_info): Likewise.
14450 (identify_source_line): Likewise.
14451 * source.h (identify_source_line): Move declaration from symtab.h
14452 and add comment from source.c
14453 (print_source_lines): Likewise.
14454 (forget_cached_source_info_for_objfile): Likewise.
14455 (forget_cached_source_info): Likewise.
14456 (select_source_symtab): Likewise.
14457 (enum print_source_lines_flag): Move definition from symtab.h.
14458 * symtab.h (identify_source_line): Move declaration to source.h.
14459 (print_source_lines): Likewise.
14460 (forget_cached_source_info_for_objfile): Likewise.
14461 (forget_cached_source_info): Likewise.
14462 (select_source_symtab): Likewise.
14463 (enum print_source_lines_flag): Move definition to source.h.
14464 * tui/tui-hooks.c: Add 'source.h' include.
14466 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14468 * source.c (print_source_lines_base): Handle requests to print
14469 reverse line number sequences, and guard against empty lines
14472 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14474 * source.c (print_source_lines_base): Fix skip of '\r' if next
14477 2019-01-06 Tom Tromey <tom@tromey.com>
14479 * c-exp.y (struct c_parse_state) <macro_original_text,
14480 expansion_obstack>: New member.
14481 (macro_original_text, expansion_obstack): Remove globals.
14482 (scan_macro_expansion, scanning_macro_expansion)
14483 (finished_macro_expansion): Update.
14484 (scan_macro_cleanup): Remove.
14485 (yylex, c_parse): Update.
14487 2019-01-06 Tom Tromey <tom@tromey.com>
14489 * c-exp.y (struct c_parse_state) <strings>: New member.
14490 (operator_stoken): Update.
14492 2019-01-06 Tom Tromey <tom@tromey.com>
14494 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14495 (union type_stack_elt) <typelist_val>: Now a pointer to
14497 (type_stack_cleanup): Don't declare.
14498 (push_typelist): Update.
14499 * parse.c (pop_typelist): Return a std::vector.
14500 (push_typelist): Take a std::vector.
14501 (follow_types): Update. Do not free args.
14502 (type_stack_cleanup): Remove.
14503 * c-exp.y (struct c_parse_state): New.
14504 (cpstate): New global.
14505 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14506 (nonempty_typelist): Update.
14507 (func_mod): Create a new vector.
14508 (c_parse): Create a c_parse_state.
14509 (check_parameter_typelist): Do not delete params.
14510 (function_method): Update. Do not delete type_list.
14512 2019-01-06 Tom Tromey <tom@tromey.com>
14515 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14517 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14518 (print_return_value): Likewise.
14520 2019-01-05 Tom Tromey <tom@tromey.com>
14522 * contrib/cleanup_check.py: Remove.
14523 * contrib/gcc-with-excheck: Remove.
14524 * contrib/exsummary.py: Remove.
14525 * contrib/excheck.py: Remove.
14527 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14529 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14530 NULL. Initialize tpprev to NULL instead of assigning it
14531 to NULL on the next statement.
14532 * windows-nat.c (windows_delete_thread): Remove check for
14533 main_thread_id before printing thread exit notifications.
14534 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14535 Remove thread ID check against main_thread_id.
14536 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14537 windows_delete_thread.
14538 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14540 2019-01-04 Tom Tromey <tom@tromey.com>
14542 * compile/compile.c (_initialize_compile): Use upper case for
14543 metasyntactic variables.
14544 * symmisc.c (_initialize_symmisc): Use upper case for
14545 metasyntactic variables.
14546 * psymtab.c (_initialize_psymtab): Use upper case for
14547 metasyntactic variables.
14548 * demangle.c (demangle_command): Use upper case for metasyntactic
14550 (_initialize_demangler): Likewise.
14551 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14554 2019-01-03 Tom Tromey <tom@tromey.com>
14556 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14558 2019-01-03 Tom Tromey <tom@tromey.com>
14560 * python/py-symtab.c (salpy_str): Update.
14561 (struct salpy_sal_object) <symtab>: Now a PyObject.
14562 (salpy_dealloc): Update.
14563 (del_objfile_sal): Use gdbpy_ref.
14565 2019-01-03 Tom Tromey <tom@tromey.com>
14567 * python/py-type.c (convert_field): Use new_reference. Return
14569 (make_fielditem): Return gdbpy_ref.
14570 (typy_fields): Update.
14571 (typy_getitem): Update.
14572 (field_name): Return gdbpy_ref. Use new_reference.
14573 (typy_iterator_iternext): Update.
14575 2019-01-03 Tom Tromey <tom@tromey.com>
14577 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14579 2019-01-03 Tom Tromey <tom@tromey.com>
14581 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14582 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14583 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14584 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14585 (pspy_set_type_printers): Likewise.
14586 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14587 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14588 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14589 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14590 (objfpy_set_type_printers): Likewise.
14592 2019-01-03 Tom Tromey <tom@tromey.com>
14594 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14595 (gdbpy_print_stack): Use gdbpy_err_fetch.
14596 * python/python-internal.h (class gdbpy_err_fetch): New class.
14597 (class gdbpy_enter) <m_error_type, m_error_value,
14598 m_error_traceback>: Remove.
14599 <m_error>: New member.
14600 (gdbpy_exception_to_string): Don't declare.
14601 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14602 * python/py-value.c (convert_value_from_python): Use
14604 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14605 gdbpy_exception_to_string.
14606 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14607 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14610 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14612 * linux-nat.c (delete_lwp_cleanup): Delete.
14613 (struct lwp_deleter): New struct.
14614 (lwp_info_up): New typedef.
14615 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14618 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14620 * linux-fork.c (class scoped_switch_fork_info): New class.
14621 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14623 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14625 * valops.c (find_overload_match): Remove use of null_cleanup, and
14626 calls to do_cleanups.
14628 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14630 * compile/compile-cplus-types.c
14631 (compile_cplus_instance::decl_name): Handle changes to
14633 * cp-support.c (cp_func_name): Update header comment, update
14635 * cp-support.h (cp_func_name): Update return type in declaration.
14636 * valops.c (find_overload_match): Move temp_func local to top
14637 level of function and change its type. Use temp_func to hold and
14638 delete temporary string obtained from cp_func_name.
14640 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14642 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14643 gdb::char_vector, remove cleanup, and update uses of `msg`.
14645 2019-01-03 Jim Wilson <jimw@sifive.com>
14647 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14649 2019-01-02 Tom Tromey <tom@tromey.com>
14651 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14652 (tdesc_parse_xml): Remove cleanups.
14653 * target-descriptions.h (make_cleanup_free_target_description):
14655 (target_desc_deleter): New struct.
14656 (target_desc_up): New typedef.
14657 * target-descriptions.c (target_desc_deleter::operator()): Rename
14658 from free_target_description.
14659 (make_cleanup_free_target_description): Remove.
14661 2019-01-02 Tom Tromey <tom@tromey.com>
14663 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14664 constructor, destructor.
14665 (linespec_parser): Remove typedef.
14666 (~linespec_parser): Rename from linespec_parser_delete.
14667 (linespec_lex_to_end, linespec_complete_label)
14668 (linespec_complete): Update.
14669 (decode_line_full): Remove cleanups.
14670 (decode_line_1): Update.
14672 2019-01-02 Tom Tromey <tom@tromey.com>
14674 * python/python-internal.h (inferior_to_inferior_object): Change
14676 * python/py-exitedevent.c (create_exited_event_object): Update.
14677 * python/py-inferior.c (inferior_to_inferior_object): Return
14679 (python_new_inferior, python_inferior_deleted)
14680 (thread_to_thread_object, delete_thread_object)
14681 (build_inferior_list, gdbpy_selected_inferior): Update.
14682 * python/py-infthread.c (create_thread_object): Update. Also fail
14683 if inferior_to_inferior_object fails.
14685 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14687 * inferior.h (class inferior) <displaced_step_state>: New field.
14688 * infrun.h (struct displaced_step_state): Move here from
14689 infrun.c. Initialize fields, add constructor.
14690 <inf>: Remove field.
14691 <reset>: New method.
14692 * infrun.c (struct displaced_step_inferior_state): Move to
14694 (displaced_step_inferior_states): Remove.
14695 (get_displaced_stepping_state): Adust.
14696 (displaced_step_in_progress_any_inferior): Adjust.
14697 (displaced_step_in_progress_thread): Adjust.
14698 (displaced_step_in_progress): Adjust.
14699 (add_displaced_stepping_state): Remove.
14700 (get_displaced_step_closure_by_addr): Adjust.
14701 (remove_displaced_stepping_state): Remove.
14702 (infrun_inferior_exit): Call displaced_step_state.reset.
14703 (use_displaced_stepping): Don't check for NULL.
14704 (displaced_step_prepare_throw): Call
14705 get_displaced_stepping_state.
14706 (displaced_step_fixup): Don't check for NULL.
14707 (prepare_for_detach): Don't check for NULL.
14709 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14711 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14712 in case of call that did not complete.
14714 2019-01-02 Andrey Utkin <autkin@undo.io>
14716 * symfile.c (find_separate_debug_file): Fix search of debug files for
14719 2019-01-02 Tom Tromey <tom@tromey.com>
14721 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14723 * python/py-frame.c (frapy_older): Remove cast.
14724 (frapy_newer): Likewise.
14725 * python/py-breakpoint.c (local_setattro): Remove cast.
14726 * python/py-arch.c (archpy_name): Remove local variable.
14727 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14729 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14731 * unittests/basic_string_view/element_access/char/empty.cc:
14732 Fix year range in copyright header.
14734 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14736 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14738 <operator==>: Update with for removed field.
14740 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14741 <isa_features>: ...this.
14742 <abi_features>: New field.
14743 (riscv_isa_flen): Update comment.
14744 (riscv_abi_xlen): New declaration.
14745 (riscv_abi_flen): New declaration.
14746 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14748 (riscv_abi_xlen): New function.
14749 (riscv_isa_flen): Update to get answer from isa_features.
14750 (riscv_abi_flen): New function.
14751 (riscv_has_fp_abi): Update to get answer from abi_features.
14752 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14754 (riscv_call_info) <xlen, flen>: Update comment.
14755 (riscv_call_arg_struct): Remove invalid assertions
14756 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14758 (riscv_gdbarch_init): Gather isa features and abi features
14759 separately, ensure both match on the gdbarch when reusing an old
14760 gdbarch. Relax an error check to allow 32-bit abi float to run on
14761 a target with 64-bit float hardware.
14763 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14765 * source.c (search_command_helper): Stop reverse search
14766 when line 1 has been searched.
14768 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14770 * record-full.c (record_full_base_target::close): Rewrite
14771 record_full_core_buf_list free logic.
14773 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14775 * break-catch-syscall.c (print_one_catch_syscall): xfree
14778 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14780 * top.c (print_gdb_version): Update Copyright year in version
14783 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14785 Update copyright year range in all GDB files.
14787 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14789 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14791 For older changes see ChangeLog-2018.
14797 version-control: never