1 2019-10-29 Christian Biesinger <cbiesinger@google.com>
3 * symtab.h (symbol_set_names): Document that copy_name must be
4 set to true for non-nullterminated strings.
5 * symtab.c (symbol_set_names): Only make a nullterminated copy of
6 linkage_name if the entry was not found and we need to demangle.
8 2019-10-29 Christian Biesinger <cbiesinger@google.com>
10 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
11 * dwarf2-frame.c (bsearch_fde_cmp): Update.
12 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
13 * gdbsupport/gdb_binary_search.h: New file.
15 2019-10-29 Christian Biesinger <cbiesinger@google.com>
17 * NEWS: Mention new --with-system-gdbinit-dir option.
18 * config.in: Regenerate.
19 * configure: Regenerate.
20 * configure.ac: Add new option --with-system-gdbinit-dir.
21 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
23 * main.c (get_init_files): Change system_gdbinit argument to
24 a vector and return the files in SYSTEM_GDBINIT_DIR in
25 addition to SYSTEM_GDBINIT.
26 (captured_main_1): Update.
27 (print_gdb_help): Update.
28 * top.c (print_gdb_configuration): Also print the value of
31 2019-10-28 Christian Biesinger <cbiesinger@google.com>
33 * gdbsupport/common-utils.h (startswith): Add an overloaded version
34 that takes gdb::string_view arguments.
36 2019-10-26 Tom de Vries <tdevries@suse.de>
38 * aarch64-linux-tdep.c: Fix typos in comments.
39 * aarch64-tdep.c: Same.
43 * arch/aarch64-insn.c: Same.
48 * cli/cli-decode.c: Same.
49 * cli/cli-script.c: Same.
50 * cli/cli-utils.h: Same.
51 * coff-pe-read.c: Same.
53 * compile/compile-cplus-symbols.c: Same.
54 * compile/compile-object-run.c: Same.
59 * dwarf-index-write.c: Same.
60 * dwarf2-frame.c: Same.
61 * dwarf2-frame.h: Same.
68 * guile/scm-objfile.c: Same.
77 * mi/mi-cmd-disas.c: Same.
78 * mi/mi-getopt.h: Same.
81 * nat/aarch64-sve-linux-sigcontext.h: Same.
83 * ppc-linux-nat.c: Same.
84 * ppc-linux-tdep.c: Same.
87 * prologue-value.h: Same.
88 * python/py-evtregistry.c: Same.
89 * python/py-instruction.h: Same.
90 * record-btrace.c: Same.
91 * record-full.c: Same.
93 * rs6000-tdep.c: Same.
96 * sparc-sol2-tdep.c: Same.
97 * sparc64-tdep.c: Same.
102 * tracepoint.c: Same.
103 * tui/tui-data.h: Same.
104 * tui/tui-io.c: Same.
105 * tui/tui-win.c: Same.
107 * unittests/rsp-low-selftests.c: Same.
119 * xtensa-tdep.c: Same.
121 2019-10-25 Ali Tamur <tamur@google.com>
123 * charset.c (find_charset_names): Reflect API change.
125 2019-10-25 Christian Biesinger <cbiesinger@google.com>
127 * symtab.c (struct demangled_name_entry): Change demangled name
128 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
129 part of the struct anymore.
130 (symbol_set_names): No longer obstack allocate + copy the demangled
131 name, just store the allocated name from bfd.
133 2019-10-25 Tom Tromey <tromey@adacore.com>
135 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
136 (bsearch_cie_cmp, add_cie): Remove.
137 (find_cie): Reimplement.
138 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
139 (dwarf2_build_frame_info): Update.
141 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
144 * symfile.c (reread_symbols): Call forget_cached_source_info to
145 clear the stale source cache.
147 2019-10-24 Christian Biesinger <cbiesinger@google.com>
149 * configure: Regenerate.
150 * configure.ac: Remove code that sets python_has_threads.
152 2019-10-24 Christian Biesinger <cbiesinger@google.com>
154 * config.in: Regenerate.
155 * configure: Regenerate.
156 * configure.ac: Remove the code that uses sed to get the python
157 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
159 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
161 * python/py-progspace.c (pspy_block_for_pc): Return None for all
164 2019-10-23 Tom Tromey <tom@tromey.com>
166 * arc-tdep.c: Remove ".." from include.
167 * frv-tdep.c: Remove ".." from include.
168 * lm32-tdep.c: Remove ".." from include.
169 * microblaze-tdep.c: Remove ".." from include.
170 * or1k-tdep.h: Remove ".." from include.
171 * s12z-tdep.c: Remove ".." from include.
172 * Makefile.in (OPCODES_CFLAGS): Add comment.
173 (TOP_CFLAGS): New variable.
174 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
176 2019-10-23 Tom Tromey <tom@tromey.com>
178 * Makefile.in (READLINE_DIR): Update.
180 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
182 * infcall.c (call_function_by_hand_dummy): Fix the function
183 comment. And extract out a code section into...
184 (reserve_stack_space): ...this new function.
186 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
188 * infcall.c (value_arg_coerce): Remove an unused parameter.
189 (call_function_by_hand_dummy): Update the call to
192 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
194 * infcall.c (call_function_by_hand_dummy): Refactor.
196 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
198 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
200 2019-10-23 Tom Tromey <tom@tromey.com>
202 * configure: Rebuild.
203 * configure.ac: Don't check for sigprocmask.
204 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
206 2019-10-23 Tom Tromey <tom@tromey.com>
208 * configure: Rebuild.
209 * acinclude.m4: Use m4_include, not sinclude.
211 2019-10-23 Tom de Vries <tdevries@suse.de>
214 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
216 2019-10-22 Christian Biesinger <cbiesinger@google.com>
218 * symtab.c (struct demangled_name_entry) <language>: Change from
219 bitfield to regular variable.
221 2019-10-22 Christian Biesinger <cbiesinger@google.com>
223 * symtab.c (struct demangled_name_entry): Add a constructor.
224 (free_demangled_name_entry): New function to call the destructor
225 for demangled_name_entry.
226 (create_demangled_names_hash): Pass free_demangled_name_entry to
228 (symbol_set_names): Call placement new for demangled_name_entry.
229 * utils.c: No longer include xxhash.h here, now that fast_hash
230 is inlined in the header.
231 * utils.h: Instead, include it here.
233 2019-10-22 Christian Biesinger <cbiesinger@google.com>
235 * Makefile.in: Link with libxxhash.
236 * config.in: Regenerate.
237 * configure: Regenerate.
238 * configure.ac: Search for libxxhash.
239 * utils.c (fast_hash): Use xxhash if present.
241 2019-10-22 Christian Biesinger <cbiesinger@google.com>
243 * utils.h (fast_hash): New function.
244 * symtab.c (hash_demangled_name_entry): Call new function
247 2019-10-22 Christian Biesinger <cbiesinger@google.com>
249 * symtab.c (struct demangled_name_entry): Change type of mangled
250 to gdb::string_view. Also adds a constructor that takes the
252 (hash_demangled_name_entry): Update.
253 (eq_demangled_name_entry): Update.
254 (free_demangled_name_entry): New function to call the destructor
255 now that this is not a POD anymore.
256 (create_demangled_names_hash): Pass free_demangled_name_entry to
258 (symbol_set_names): Update.
260 2019-10-21 Ali Tamur <tamu@google.com>
262 * dwarf2read.c (dir_index): Change type.
263 (file_name_index): Likewise.
264 (line_header::include_dir_at): Change comment and implementation on
265 whether it is DWARF 5.
266 (line_header::is_valid_file_index): New function.
267 (line_header::file_name_at): Change comment and implementation on
268 whether it is DWARF 5.
269 (line_header::file_names): Change to private field renamed as
270 m_file_names and introduce a new accessor method.
271 (line_header::file_names_size): New method.
272 (line_header::include_dirs): Change to private field and rename as
274 (dw2_get_file_names_reader): Define local var at a smaller scope and
276 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
277 (process_structure_scope): Likewise.
278 (line_header::add_include_dir): Change message and reflect renaming.
279 (line_header::add_file_name): Likewise.
280 (read_formatted_entries): Handle DW_FORM_data16.
281 (dwarf_decode_line_header): Fix line header length calculation.
282 (psymtab_include_file_name): Change comment and API.
283 (lnp_state_machine::m_file): Update comment and reflect type change.
284 (lnp_state_machine::record_line): Reflect type change.
285 (dwarf_decode_lines): Reflect API change.
286 (file_file_name): Likewise.
287 (file_full_name): Likewise.
289 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
291 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
293 2019-10-21 Tom Tromey <tom@tromey.com>
295 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
297 2019-10-21 Tom Tromey <tom@tromey.com>
299 * configure.ac (nm.h): Conditionally create nm.h link. Subst
300 NM_H. Use AC_CONFIG_LINKS.
301 * configure: Rebuild.
302 * Makefile.in (NM_H): New variable.
303 (generated_files): Add NM_H. Remove gcore.
304 (nm.h, stamp-nmh): New targets.
306 2019-10-20 Tom Tromey <tom@tromey.com>
308 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
309 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
311 (put_objfile_before): Now static.
313 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
315 * gdbsupport/common-utils.h (startswith): Change return type to
318 2019-10-19 Christian Biesinger <cbiesinger@google.com>
320 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
321 * breakpoint.c (bp_locations_compare): Rename to...
322 (bp_location_is_less_than): ...this, and change to std::sort semantics.
323 (update_global_location_list): Use std::sort instead of qsort.
324 * buildsym.c (compare_line_numbers): Rename to...
325 (lte_is_less_than): ...this, and change to std::sort semantics.
326 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
328 * disasm.c (compare_lines): Rename to...
329 (line_is_less_than): ...this, and change to std::sort semantics.
330 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
332 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
333 (fde_is_less_than): ...this, and change to std::sort semantics.
334 (dwarf2_build_frame_info): Call std::sort instead of qsort.
335 * mdebugread.c (compare_blocks):
336 (block_is_less_than): ...this, and change to std::sort semantics.
337 (sort_blocks): Call std::sort instead of qsort.
338 * objfiles.c (qsort_cmp): Rename to...
339 (sort_cmp): ...this, and change to std::sort semantics.
340 (update_section_map): Call std::sort instead of qsort.
341 * remote.c (compare_pnums): Remove.
342 (map_regcache_remote_table): Call std::sort instead of qsort.
343 * utils.c (compare_positive_ints): Remove.
344 * utils.h (compare_positive_ints): Remove.
345 * xcoffread.c (compare_lte): Remove.
346 (arrange_linetable): Call std::sort instead of qsort.
348 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
350 * symfile.c (init_entry_point_info): Fix typo.
351 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
353 2019-10-18 Tom de Vries <tdevries@suse.de>
355 * aarch64-tdep.c: Fix typos in comments.
358 * alpha-tdep.c: Same.
359 * alpha-tdep.h: Same.
361 * amd64-windows-tdep.c: Same.
364 * arch-utils.c: Same.
365 * arm-nbsd-tdep.c: Same.
368 * blockframe.c: Same.
371 * coff-pe-read.c: Same.
374 * darwin-nat.c: Same.
378 * dtrace-probe.c: Same.
379 * dwarf-index-write.c: Same.
380 * dwarf2-frame-tailcall.c: Same.
381 * dwarf2-frame.c: Same.
382 * dwarf2read.c: Same.
384 * exceptions.c: Same.
389 * gnu-v3-abi.c: Same.
391 * h8300-tdep.c: Same.
393 * i386-linux-tdep.c: Same.
395 * ia64-libunwind-tdep.c: Same.
401 * linux-thread-db.c: Same.
403 * mdebugread.c: Same.
405 * mn10300-tdep.c: Same.
408 * opencl-lang.c: Same.
411 * ppc-linux-nat.c: Same.
412 * ppc-linux-tdep.c: Same.
413 * ppc-sysv-tdep.c: Same.
416 * record-btrace.c: Same.
417 * record-full.c: Same.
418 * remote-fileio.c: Same.
420 * rs6000-tdep.c: Same.
422 * score-tdep.c: Same.
426 * sol-thread.c: Same.
427 * solib-svr4.c: Same.
431 * sparc-sol2-tdep.c: Same.
432 * sparc-tdep.c: Same.
433 * sparc64-tdep.c: Same.
438 * target-descriptions.c: Same.
439 * target-float.c: Same.
446 * windows-nat.c: Same.
448 * xstormy16-tdep.c: Same.
449 * xtensa-tdep.c: Same.
451 2019-10-17 Tom Tromey <tromey@adacore.com>
453 * configure: Rebuild.
454 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
455 in AC_CONFIG_FILES invocation.
456 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
457 new-style config.status invocation.
459 2019-10-17 Tom de Vries <tdevries@suse.de>
461 * arm-nbsd-nat.c: Fix typos in comments.
463 * darwin-nat-info.c: Same.
464 * dwarf2read.c: Same.
473 * mdebugread.c: Same.
474 * moxie-tdep.c: Same.
475 * nto-procfs.c: Same.
477 * ppc-linux-tdep.c: Same.
479 * riscv-tdep.c: Same.
482 * sparc-linux-tdep.c: Same.
485 * target-descriptions.c: Same.
489 2019-10-16 Tom Tromey <tom@tromey.com>
491 * objfiles.h (struct objfile) <original_name>: Now const.
493 2019-10-16 Christian Biesinger <cbiesinger@google.com>
495 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
496 pass on to sigsetjmp's second argument.
497 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
499 2019-10-16 Keith Seitz <keiths@redhat.com>
502 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
503 sections whose size is greater than the file size.
505 2019-10-16 Jim Wilson <jimw@sifive.com>
507 * riscv-tdep.c (riscv_gcc_target_options): New.
508 (riscv_gnu_triplet_regexp): New.
509 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
510 set_gdbarch_gnu_triplet_regexp.
512 2019-10-16 Christian Biesinger <cbiesinger@google.com>
514 * Makefile.in: Add xml-builtin.h.
515 * features/feature_to_c.sh: Add an include for xml-builtin.h
516 to ensure that the compiler checks that the types match.
517 * xml-builtin.h: New file.
518 * xml-support.c (fetch_xml_builtin): Add missing const.
519 * xml-support.h: Remove declaration of xml_builtins.
521 2019-10-16 Tom de Vries <tdevries@suse.de>
524 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
525 (amd64_classify_aggregate): ... here.
526 (amd64_classify_aggregate_field): Handled fiels of nested structs
529 2019-10-16 Tom de Vries <tdevries@suse.de>
532 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
533 that handles 'theclass'.
535 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
537 * linespec.c (decode_digits_ordinary): Update comment.
538 * make-target-delegates: No longer need to handle VEC case.
539 * memrange.c (normalize_mem_ranges): Update comment.
540 * namespace.c (add_using_directive): Update comment.
541 * objc-lang.c (uniquify_strings): Update comment.
542 * ppc-linux-nat.c (struct thread_points): Update comment.
543 * probe.h (find_probes_in_objfile): Update comment.
544 * target.h (enum flash_preserve_mode): Update comment.
545 * varobj.c (varobj_restrict_range): Update comment.
546 * varobj.h (varobj_list_children): Update comment.
548 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
550 * Makefile.in: Remove references to vec.h and vec.c.
551 * aarch64-tdep.c: No longer include vec.h.
552 * ada-lang.c: Likewise.
553 * ada-lang.h: Likewise.
554 * arm-tdep.c: Likewise.
556 * breakpoint.h: Likewise.
557 * charset.c: Likewise.
558 * cp-support.h: Likewise.
559 * dtrace-probe.c: Likewise.
560 * dwarf2read.c: Likewise.
561 * extension.h: Likewise.
562 * gdb_bfd.c: Likewise.
563 * gdbsupport/gdb_vecs.h: Likewise.
564 * gdbsupport/vec.c: Remove.
565 * gdbsupport/vec.h: Remove.
566 * gdbthread.h: Likewise.
567 * guile/scm-type.c: Likewise.
568 * inline-frame.c: Likewise.
569 * machoread.c: Likewise.
570 * memattr.c: Likewise.
571 * memrange.h: Likewise.
572 * namespace.h: Likewise.
573 * nat/linux-btrace.h: Likewise.
574 * osdata.c: Likewise.
575 * parser-defs.h: Likewise.
576 * progspace.h: Likewise.
577 * python/py-type.c: Likewise.
578 * record-btrace.c: Likewise.
579 * rust-exp.y: Likewise.
580 * solib-target.c: Likewise.
581 * stap-probe.c: Likewise.
582 * target-descriptions.c: Likewise.
583 * target-memory.c: Likewise.
584 * target.h: Likewise.
585 * varobj.c: Likewise.
586 * varobj.h: Likewise.
587 * xml-support.h: Likewise.
589 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
591 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
592 Update for new std::vector based implementation.
593 (process_psymtab_comp_unit_reader): Likewise.
594 (scan_partial_symbols): Likewise.
595 (recursively_compute_inclusions): Likewise.
596 (compute_compunit_symtab_includes): Likewise.
597 (process_imported_unit_die): Likewise.
598 (queue_and_load_dwo_tu): Likewise.
599 (follow_die_sig_1): Likewise.
600 * gdb/dwarf2read.h: Remove DEF_VEC_P.
601 (typedef dwarf2_per_cu_ptr): Remove.
602 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
604 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
605 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
606 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
607 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
610 2019-10-15 Tom Tromey <tromey@adacore.com>
612 * windows-nat.c (windows_nat_target::resume): Use %x when logging
615 2019-10-15 Tom Tromey <tromey@adacore.com>
617 * windows-nat.c (windows_nat_target::fetch_registers)
618 (windows_nat_target::store_registers): Rename "pid" to "tid".
620 2019-10-15 Tom Tromey <tromey@adacore.com>
622 * gdbarch.h, gdbarch.c: Rebuild.
623 * gdbarch.sh (gcc_target_options): Change return type to
625 * compile/compile.c (get_args): Update.
626 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
627 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
629 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
631 * arch-utils.c (default_gcc_target_options): Return std::string.
632 * arch-utils.h (default_gcc_target_options): Return std::string.
633 * s390-tdep.c (s390_gcc_target_options): Return std::string.
635 2019-10-15 Christian Biesinger <cbiesinger@google.com>
637 * breakpoint.c (breakpoint_chain): Make static.
638 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
639 of accessing breakpoint_chain.
641 2019-10-15 Christian Biesinger <cbiesinger@google.com>
643 * breakpoint.c (iterate_over_breakpoints): Change function pointer
644 to a gdb::function_view and return value to bool.
645 * breakpoint.h (iterate_over_breakpoints): Likewise.
646 * dummy-frame.c (pop_dummy_frame_bpt): Update.
647 (pop_dummy_frame): Update.
648 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
649 (gdbscm_breakpoints): Update.
650 * python/py-breakpoint.c (build_bp_list): Update.
651 (gdbpy_breakpoints): Update.
652 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
654 (bpfinishpy_handle_stop): Update.
655 (bpfinishpy_handle_exit): Update.
656 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
657 (svr4_update_solib_event_breakpoints): Update.
659 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
661 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
662 when unwrapping single-field structs.
664 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
666 * dwarf2read.c: Remove includes.
668 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
670 * ui-out.c (ui_out::call_do_message): Silence
671 -Wformat-nonliteral warning.
673 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
675 * breakpoint.c: Remove some includes: continuations.h, skip.h,
676 mi/mi-main.h, readline/readline.h, readline/history.h. Add
677 include: readline/tilde.h.
679 2019-10-12 Christian Biesinger <cbiesinger@google.com>
681 * remote.c (remote_target::get_trace_status): Remove declaration of
684 2019-10-12 Christian Biesinger <cbiesinger@google.com>
686 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
687 (show_user): Remove declaration of cmdlist.
688 * cli/cli-cmds.h (max_user_call_depth): Declare.
689 * cli/cli-script.c (execute_user_command): Remove declaration
690 of max_user_call_depth.
692 2019-10-11 Jim Wilson <jimw@sifive.com>
694 * gdbsupport/print-utils.h (pulongest): Fix comment.
695 (plongest): Likewise.
696 (phex): Add missing comment, mention leading zeros.
697 (phex_nz): Add mention of no leading zeros to comment.
699 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
700 plongest instead of unsigned long long cast.
702 2019-10-10 Christian Biesinger <cbiesinger@google.com>
704 * main.c (captured_main_1): Include gdbtk.h and remove declarations
705 for external_editor_command and gdbtk_test.
707 2019-10-10 Christian Biesinger <cbiesinger@google.com>
709 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
710 * varobj.c (varobjdebug): Move comment to...
711 * varobj.h (varobjdebug): ...here, and declare.
713 2019-10-09 Tom Tromey <tom@tromey.com>
715 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
718 2019-10-09 Tom Tromey <tom@tromey.com>
720 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
721 * tui/tui-stack.c (tui_locator_window::rerender): Update.
722 * tui/tui-command.c (tui_cmd_window::resize)
723 (tui_refresh_cmd_win): Update.
724 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
725 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
726 * tui/tui-data.c (~tui_gen_win_info): Remove.
727 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
728 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
729 (tui_redisplay_readline, tui_mld_flush)
730 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
731 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
732 (tui_data_window::erase_data_content)
733 (tui_data_item_window::rerender)
734 (tui_data_item_window::refresh_window): Update.
735 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
736 (box_win, tui_gen_win_info::make_window)
737 (tui_gen_win_info::make_visible): Update.
738 (tui_delete_win): Remove.
739 * tui/tui-winsource.c
740 (tui_source_window_base::do_erase_source_content): Update.
741 (tui_show_source_line, tui_source_window_base::update_tab_width)
742 (tui_source_window_base::update_exec_info): Update.
743 * tui/tui-data.h (struct curses_deleter): New.
744 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
745 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
747 2019-10-09 Tom Tromey <tom@tromey.com>
749 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
751 2019-10-09 Tom Tromey <tom@tromey.com>
753 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
754 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
756 2019-10-09 Tom Tromey <tom@tromey.com>
758 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
759 window height directly.
760 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
762 * tui/tui-layout.c (tui_default_win_height): Remove.
763 (tui_default_win_viewport_height): Remove.
765 2019-10-09 Tom Tromey <tom@tromey.com>
767 * tui/tui.h: Remove comments.
769 2019-10-09 Tom de Vries <tdevries@suse.de>
771 * python/lib/gdb/printer/bound_registers.py: Use
772 '^builtin_type_bound128' as regexp argument for
773 add_builtin_pretty_printer.
775 2019-10-09 Christian Biesinger <cbiesinger@google.com>
777 * guile/guile.c (guile_extension_script_ops): Remove forward
778 declaration and mark as static.
779 (guile_script_ops): Likewise.
780 (extension_language_guile): Move further down in the file so
781 it can reference the definitions for guile_{extension_,}script_ops.
783 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
785 * s390-tdep.c (390_process_record): Handle new arch13 instructions
786 except SORTL, DFLTCC, and KDSA.
788 2019-10-08 Tom Tromey <tromey@adacore.com>
790 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
791 (struct safe_symbol_file_add_args): Remove.
793 2019-10-08 Tom Tromey <tromey@adacore.com>
795 * windows-nat.c: Don't include buildsym-legacy.h.
797 2019-10-08 Tom Tromey <tromey@adacore.com>
799 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
801 2019-10-08 Christian Biesinger <cbiesinger@google.com>
803 * gdbtypes.c (overload_debug): Move comment to header.
804 * gdbtypes.h (overload_debug): Declare.
805 * valops.c: Remove declaration of overload_debug, instead
808 2019-10-08 Christian Biesinger <cbiesinger@google.com>
810 * language.c (show_language_command): Pass lang_frame_mismatch_warn
812 (lang_frame_mismatch_warn): Make const, mark with N_(), and
814 * language.h (lang_frame_mismatch_warn): ... here. Also add
816 * top.c (lang_frame_mismatch_warn): Remove declaration.
817 (check_frame_language_change): Pass lang_frame_mismatch_warn
820 2019-10-07 Christian Biesinger <cbiesinger@google.com>
822 * c-lang.h (vtbl_ptr_name): Declare.
823 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
825 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
827 2019-10-07 Christian Biesinger <cbiesinger@google.com>
829 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
832 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
834 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
835 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
836 * ctfread.c: New file.
837 * ctfread.h: New file.
838 * elfread.c: Include ctfread.h.
839 (struct elfinfo text_p): New member ctfsect.
840 (elf_locate_sections): Mark CTF section.
841 (elf_symfile_read): Call elfctf_build_psymtabs.
842 * Makefile.in (LIBCTF): Add.
845 (DIST): Add ctfread.c.
847 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
849 * ctfread.c (struct nextfield): Renamed to ...
850 (struct ctf_nextfield): ... this.
851 (struct field_info): Renamed to ...
852 (strut ctf_field_info): ... this.
853 (attach_fields_to_type): Update for renamed structures.
854 (ctf_add_member_cb): Likewise.
855 (ctf_add_enum_member_cb): Likewise.
856 (process_struct_members): Likewise.
857 (process_enum_type): Likewise.
859 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
861 * tracectf.h: Rename, was ctf.h.
862 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
863 * tracefile.c: Likewise.
864 * tracepoint.c: Remove unused include ctf.h.
865 * mi/mi-main.c: Likewise.
866 * Makefile.in Replace ctf.c with tracectf.c.
868 2019-10-06 Joel Brobecker <brobecker@adacore.com>
870 * version.in: Change version number to "9.0.50.DATE-git".
872 2019-10-03 Tom Tromey <tom@tromey.com>
875 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
877 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
879 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
881 * NEWS: Add entry about nested function support.
883 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
884 Andrew Burgess <andrew.burgess@embecosm.com>
886 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
887 for nested static variables when searchin VAR_DOMAIN.
888 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
889 global scope, update comment.
890 (add_partial_subprogram): Call add_partial_subprogram recursively
891 for nested subroutines when processinng Fortran.
892 (load_partial_dies): Process the child entities of a subprogram
893 when processing Fortran.
894 (partial_die_parent_scope): Handle building scope
895 for Fortran nested functions.
896 (process_die): Record that nested functions have a scope.
897 (new_symbol): Always record Fortran subprograms on the global
899 (determine_prefix): How to build the prefix for Fortran
902 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
904 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
905 have just sent the thread a SIGSTOP and are waiting for it to
908 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
910 * btrace.c (btrace_add_pc): Remove whitespace before the template
911 parameter in 'std::vector <...>'.
912 (parse_xml_btrace_block): Likewise.
913 (btrace_maint_decode_pt): Likewise.
914 (btrace_maint_update_packets): Likewise.
915 (btrace_maint_print_packets): Likewise.
916 * btrace.h (struct btrace_maint_info): Likewise.
917 * dwarf2read.c (struct type_unit_group): Likewise.
918 (build_type_psymtabs_reader): Likewise.
919 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
920 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
921 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
923 2019-10-03 Tom de Vries <tdevries@suse.de>
925 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
926 the first line of the help text for set/show style metadata.
928 2019-10-02 Tom Tromey <tromey@adacore.com>
930 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
931 * gdbsupport/common-inferior.c: New file.
932 * infcmd.c (startup_with_shell): Don't define.
933 * nat/fork-inferior.h (startup_with_shell): Don't declare.
934 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
935 * inferior.h (startup_with_shell): Don't declare.
937 2019-10-02 Christian Biesinger <cbiesinger@google.com>
939 * gdbsupport/gdb_assert.h: Include errors.h.
940 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
942 2019-10-02 Tom Tromey <tromey@adacore.com>
944 * NEWS: Add $_ada_exception entry.
945 * ada-lang.c (struct ada_catchpoint): Add constructor.
946 <m_kind>: New member.
947 (allocate_location_exception, re_set_exception): Remove
949 (should_stop_exception): Compute $_ada_exception.
950 (check_status_exception, print_it_exception)
951 (print_one_exception, print_mention_exception): Remove
953 (allocate_location_catch_exception, re_set_catch_exception)
954 (check_status_exception, print_it_catch_exception)
955 (print_one_catch_exception, print_mention_catch_exception)
956 (print_recreate_catch_exception)
957 (allocate_location_catch_exception_unhandled)
958 (re_set_catch_exception_unhandled)
959 (check_status_exception, print_it_catch_exception_unhandled)
960 (print_one_catch_exception_unhandled)
961 (print_mention_catch_exception_unhandled)
962 (print_recreate_catch_exception_unhandled)
963 (allocate_location_catch_assert, re_set_catch_assert)
964 (check_status_assert, print_it_catch_assert)
965 (print_one_catch_assert, print_mention_catch_assert)
966 (print_recreate_catch_assert)
967 (allocate_location_catch_handlers, re_set_catch_handlers)
968 (check_status_handlers, print_it_catch_handlers)
969 (print_one_catch_handlers, print_mention_catch_handlers)
970 (print_recreate_catch_handlers): Remove.
971 (create_ada_exception_catchpoint): Update.
972 (initialize_ada_catchpoint_ops): Update.
974 2019-10-02 Tom Tromey <tromey@adacore.com>
976 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
977 (create_excep_cond_exprs): Simplify exception string computation.
978 (ada_exception_catchpoint_cond_string): Likewise.
980 2019-10-02 Tom Tromey <tromey@adacore.com>
982 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
983 * ada-lang.c (lesseq_defined_than): Handle
985 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
987 (dwarf2_has_info): Likewise.
988 (new_symbol): Set maybe_copied on symbol when
990 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
992 <can_copy>: New member.
993 * elfread.c (record_minimal_symbol): Set maybe_copied
994 on symbol when appropriate.
995 (elf_symfile_read): Update call to dwarf2_has_info.
996 * minsyms.c (lookup_minimal_symbol_linkage): New
998 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
999 * symtab.c (get_symbol_address, get_msymbol_address):
1001 * symtab.h (get_symbol_address, get_msymbol_address):
1003 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
1005 (struct symbol, struct minimal_symbol) <maybe_copied>:
1008 2019-10-02 Tom Tromey <tromey@adacore.com>
1010 * source.c (struct current_source_location): New.
1011 (current_source_key): New global.
1012 (current_source_symtab, current_source_line)
1013 (current_source_pspace): Remove.
1014 (get_source_location): New function.
1015 (get_current_source_symtab_and_line)
1016 (set_default_source_symtab_and_line)
1017 (set_current_source_symtab_and_line)
1018 (clear_current_source_symtab_and_line, select_source_symtab)
1019 (info_source_command, print_source_lines_base)
1020 (info_line_command, search_command_helper, _initialize_source):
1023 2019-10-02 Tom Tromey <tromey@adacore.com>
1025 * source.c (select_source_symtab): Don't call
1026 decode_line_with_current_source.
1028 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1030 * symtab.c (lookup_global_symbol): Search global block.
1032 2019-10-02 Tom Tromey <tromey@adacore.com>
1034 * coffread.c (process_coff_symbol): Update.
1035 * dwarf2read.c (var_decode_location, new_symbol): Update.
1036 * mdebugread.c (parse_symbol): Update.
1037 * objfiles.c (relocate_one_symbol): Update.
1038 * stabsread.c (define_symbol, fix_common_block)
1039 (scan_file_globals): Update.
1040 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1041 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1042 * xcoffread.c (process_xcoff_symbol): Update.
1044 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1046 * MAINTAINERS: Update my email address.
1048 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1050 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1052 (build_type_psymtabs_reader): Update for std::vector.
1053 (build_type_psymtab_dependencies): Likewise.
1054 * dwarf2read.h: Remove use of DEF_VEC_P.
1055 (typedef sig_type_ptr): Delete.
1057 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1059 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1061 (btrace_maint_decode_pt): Likewise, and move allocation of the
1062 vector outside of the loop.
1063 (btrace_maint_update_packets): Update to handle change from VEC to
1065 (btrace_maint_print_packets): Likewise.
1066 (maint_info_btrace_cmd): Likewise.
1067 * btrace.h: Remove use of DEF_VEC_O.
1068 (typedef btrace_pt_packet_s): Delete.
1069 (struct btrace_maint_info) <packets>: Change fromm VEC to
1071 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1073 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1075 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1076 make accesses into the vector constant references.
1077 (btrace_add_pc): Update for std::vector.
1078 (btrace_stitch_bts): Likewise.
1079 (parse_xml_btrace_block): Likewise.
1080 (btrace_maint_update_packets): Likewise.
1081 (btrace_maint_print_packets): Likewise.
1082 (maint_info_btrace_cmd): Likewise.
1083 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1085 (btrace_data::empty): Likewise.
1086 (btrace_data_append): Likewise.
1087 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1088 (typedef btrace_block_s): Delete.
1089 (struct btrace_block): Add constructor.
1090 (struct btrace_data_bts) <blocks>: Change to std::vector.
1091 * nat/linux-btrace.c (perf_event_read_bts): Update for
1093 (linux_read_bts): Likewise.
1095 2019-10-01 Tom Tromey <tom@tromey.com>
1097 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1099 2019-10-01 Tom Tromey <tom@tromey.com>
1101 * stack.c (print_frame, info_frame_command_core): Use
1103 * linux-thread-db.c (try_thread_db_load_1)
1104 (try_thread_db_load_from_pdir_1): Use styled_string.
1105 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1106 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1107 (maybe_print_unsupported_script_warning)
1108 (maybe_print_script_not_found_warning): Use styled_string.
1109 * ada-lang.c (user_select_syms): Use styled_string.
1111 2019-10-01 Tom Tromey <tom@tromey.com>
1113 * p-lang.c (pascal_printstr): Use metadata style.
1114 * value.c (show_convenience): Use metadata style.
1115 * valprint.c (valprint_check_validity, val_print_optimized_out)
1116 (val_print_not_saved, val_print_unavailable)
1117 (val_print_invalid_address, generic_val_print, val_print)
1118 (value_check_printable, val_print_array_elements): Use metadata
1120 * ui-out.h (class ui_out) <field_fmt>: New overload.
1121 <do_field_fmt>: Add style parameter.
1122 * ui-out.c (ui_out::field_fmt): New overload.
1123 * typeprint.c (type_print_unknown_return_type)
1124 (val_print_not_allocated, val_print_not_associated): Use metadata
1126 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1128 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1129 * tracepoint.c (tvariables_info_1): Use metadata style.
1130 * stack.c (print_frame_arg, print_frame_info, print_frame)
1131 (info_frame_command_core): Use metadata style.
1132 * skip.c (info_skip_command): Use metadata style.
1133 * rust-lang.c (rust_print_enum): Use metadata style.
1134 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1136 * python/py-framefilter.c (py_print_single_arg): Use metadata
1138 * printcmd.c (do_one_display, print_variable_and_value): Use
1140 * p-valprint.c (pascal_val_print)
1141 (pascal_object_print_value_fields): Use metadata style.
1142 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1143 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1145 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1146 * m2-valprint.c (m2_print_long_set): Use metadata style.
1147 * m2-typeprint.c (m2_print_type): Use metadata style.
1148 * infcmd.c (print_return_value_1): Use metadata style.
1149 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1150 * f-valprint.c (info_common_command_for_block): Use metadata
1152 * f-typeprint.c (f_type_print_base): Use metadata style.
1153 * expprint.c (print_subexp_standard): Use metadata style.
1154 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1155 * cli/cli-style.h (class cli_style_option): Add constructor.
1156 (metadata_style): Declare.
1157 * cli/cli-style.c (metadata_style): New global.
1158 (_initialize_cli_style): Register metadata style.
1159 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1161 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1162 * c-typeprint.c (c_type_print_base_struct_union)
1163 (c_type_print_base_1): Use metadata style.
1164 * breakpoint.c (watchpoint_value_print)
1165 (print_one_breakpoint_location): Use metadata style.
1166 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1168 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1170 * ada-valprint.c (val_print_packed_array_elements, printstr)
1171 (print_field_values, ada_val_print_ref, ada_val_print): Use
1173 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1175 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1177 * ada-lang.c (user_select_syms): Use metadata style.
1179 2019-10-01 Tom Tromey <tom@tromey.com>
1181 * cli/cli-cmds.c (pwd_command): Style output.
1183 2019-10-01 Pedro Alves <palves@redhat.com>
1184 Tom Tromey <tom@tromey.com>
1186 * symtab.c (print_symbol_info): Use %ps.
1187 (print_msymbol_info): Use %ps.
1188 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1189 * printcmd.c (print_variable_and_value): Use %ps.
1190 * macrocmd.c (show_pp_source_pos): Use %ps.
1191 * infrun.c (print_exited_reason): Use ui_out::message.
1192 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1193 (describe_other_breakpoints): Use ui_out::message and new
1195 (say_where): Use new formats.
1196 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1199 2019-10-01 Pedro Alves <palves@redhat.com>
1200 Tom Tromey <tom@tromey.com>
1202 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1203 (test_gdb_formats): New function.
1204 (run_tests): Call it.
1205 (test_format_specifier): Update.
1206 * utils.h (fputs_filtered): Update comment.
1207 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1208 (fputs_styled_unfiltered): Declare.
1209 * utils.c (fputs_styled_unfiltered): New function.
1210 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1211 (vfprintf_filtered): Update.
1212 (vfprintf_unfiltered, vprintf_filtered): Update.
1213 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1214 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1215 disallow_ui_out_field>: New constants.
1216 (enum class field_kind): New.
1217 (struct base_field_s, struct signed_field_s): New.
1218 (signed_field): New function.
1219 (struct string_field_s): New.
1220 (string_field): New function.
1221 (struct styled_string_s): New.
1222 (styled_string): New function.
1223 (class ui_out) <message>: Add comment.
1224 <vmessage, call_do_message>: New methods.
1225 <do_message>: Add style parameter.
1226 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1228 (ui_out::message): Rewrite.
1229 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1231 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1232 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1233 gdb_extensions parameter.
1234 (class format_piece): Add parameter to constructor.
1235 (n_int_args): New field.
1236 * gdbsupport/format.c (format_pieces::format_pieces): Add
1237 gdb_extensions parameter. Handle '*'.
1238 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1239 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1240 vfprintf_styled_no_gdbfmt.
1241 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1242 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1244 * ui-style.h (struct ui_file_style) <ptr>: New method.
1246 2019-10-01 Tom Tromey <tom@tromey.com>
1248 * unittests/format_pieces-selftests.c: Update. Add final format.
1249 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1250 empty literal pieces.
1252 2019-10-01 Tom Tromey <tom@tromey.com>
1254 * ui-out.h (enum class ui_out_style_kind): Remove.
1255 (class ui_out) <field_string, field_stsream, do_field_string>:
1256 Change type of "style".
1257 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1258 (ui_out::field_string): Update.
1259 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1261 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1262 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1263 * stack.c (print_frame_arg, print_frame_info, print_frame):
1265 * source.c (print_source_lines_base): Update.
1266 * solib.c (info_sharedlibrary_command): Update.
1267 * skip.c (info_skip_command): Update.
1268 * record-btrace.c (btrace_call_history_src_line)
1269 (btrace_call_history): Update.
1270 * python/py-framefilter.c (py_print_frame): Update.
1271 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1273 * mi/mi-out.c (mi_ui_out::do_table_header)
1274 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1275 (mi_ui_out::do_field_string): Update.
1276 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1278 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1280 * cli-out.c (cli_ui_out::do_table_header)
1281 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1282 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1283 (cli_ui_out::do_field_fmt): Update.
1284 * breakpoint.c (print_breakpoint_location): Update.
1285 (update_static_tracepoint): Update.
1287 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1289 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1290 conversion of gdb_datadir.
1291 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1292 remove not needed c_str ().
1294 2019-09-30 Ali Tamur <tamur@google.com>
1296 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1297 (dwarf2_string_attr): Likewise.
1299 2019-09-30 Ali Tamur <tamur@google.com>
1301 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1302 (process_full_type_unit): Likewise.
1303 (dump_die_shallow): Likewise.
1304 (cu_debug_loc_section): Likewise.
1306 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1308 * minsyms.c (compare_minimal_symbols): Rename to...
1309 (minimal_symbol_is_less_than): ...this, and adjust to STL
1310 conventions (return bool, take arguments as references)
1311 (minimal_symbol_reader::install): Call std::sort instead
1314 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1316 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1318 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1319 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1321 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1323 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1324 * psympriv.h (add_psymbol_to_list): Move comment here and update
1327 2019-09-29 Tom de Vries <tdevries@suse.de>
1329 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1330 Use $tmpdir/$(basename "$output_file").dwz instead of
1331 "${output_file}.dwz".
1333 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1336 * hppa-linux-nat.c: Include gdbarch.h.
1338 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1340 * blockframe.c (find_pc_partial_function): Change return type to bool.
1341 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1342 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1343 (stub_gnu_ifunc_resolve_name): Likewise.
1344 * symtab.c (compare_filenames_for_search): Likewise.
1345 (compare_glob_filenames_for_search): Likewise.
1346 (matching_obj_sections): Likewise.
1347 (symbol_matches_domain): Likewise.
1348 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1349 (find_line_pc): Change return type to bool.
1350 (find_line_pc_range): Likewise.
1351 (producer_is_realview): Likewise.
1352 * symtab.h (symbol_matches_domain): Likewise.
1353 (find_pc_partial_function): Likewise.
1354 (find_pc_line_pc_range): Likewise.
1355 (in_gnu_ifunc_stub): Likewise.
1356 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1357 (find_line_pc): Likewise.
1358 (find_line_pc_range): Likewise.
1359 (matching_obj_sections): Likewise.
1360 (find_line_symtab): Change out parameter to bool.
1361 (producer_is_realview): Change return type to bool.
1362 (compare_filenames_for_search): Likewise.
1363 (compare_glob_filenames_for_search): Likewise.
1365 2019-09-26 Tom Tromey <tom@tromey.com>
1367 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1368 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1369 * gdb_usleep.h: Remove.
1370 * gdb_usleep.c: Remove.
1371 * utils.c: Don't include gdb_usleep.h.
1373 2019-09-26 Tom Tromey <tromey@adacore.com>
1375 * python/py-type.c (type_to_type_object): Call check_typedef
1378 2019-09-26 Tom Tromey <tom@tromey.com>
1380 * utils.h (initialize_utils): Don't declare.
1381 * top.c (gdb_init): Don't call initialize_utils.
1382 * utils.c (initialize_utils): Remove. Move contents...
1383 (_initialize_utils): ... here.
1385 2019-09-25 Tom Tromey <tom@tromey.com>
1387 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1388 * utils.h (make_hex_string): Don't declare.
1389 * utils.c (make_hex_string): Remove.
1391 2019-09-24 Tom de Vries <tdevries@suse.de>
1394 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1395 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1397 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1399 * NEWS: Mention new simulator port for PRU.
1401 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1403 * ada-exp.y (write_object_remaining): Update.
1404 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1405 and eliminate the static buffer.
1406 (ada_decode_symbol): Update.
1407 (ada_la_decode): Update.
1408 (ada_sniff_from_mangled_name): Update.
1409 (is_valid_name_for_wild_match): Update.
1410 (ada_lookup_name_info::matches): Update and simplify.
1411 (name_matches_regex): Update.
1412 (ada_add_global_exceptions): Update.
1413 * ada-lang.h (ada_decode): Update signature.
1414 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1415 * dwarf-index-write.c (debug_names::insert): Update.
1417 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1419 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1422 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1424 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1425 Change "nonzero" to "true" in documentation.
1427 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1429 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1430 (_initialize_darwin_solib): Don't set
1431 darwin_so_ops.lookup_lib_global_symbol.
1432 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1433 set_gdbarch_iterate_over_objfiles_in_search_order.
1434 (elf_lookup_lib_symbol): Rename to...
1435 (svr4_iterate_over_objfiles_in_search_order): this, and update
1436 to iterate semantics.
1437 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1438 * solib.c (solib_global_lookup): Remove.
1439 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1440 (solib_global_lookup): Remove.
1441 * symtab.c (lookup_global_or_static_symbol): Remove call to
1442 solib_global_lookup.
1444 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1446 * NEWS: Move entries about default MI version now being
1447 version 3, and about the GDB/MI fix for multi-location
1448 breakpoints to the "since GDB 8.3" section.
1450 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1454 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1456 * NEWS: Mention that Cell/B.E. debugging support was removed.
1457 * MAINTAINERS: Remove spu target.
1459 * config/djgpp/fnchange.lst: Remove entries for removed files.
1461 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1462 spu-multiarch.o, and spu-tdep.o.
1463 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1464 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1465 spu-multiarch.c, and spu-tdep.c.
1466 * spu-linux-nat.c: Remove file.
1467 * spu-multiarch.c: Remove file.
1468 * spu-tdep.c: Remove file.
1469 * spu-tdep.h: Remove file.
1470 * solib-spu.c: Remove file.
1471 * solib-spu.h: Remove file.
1473 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1474 * configure.nat (spu-linux): Remove.
1475 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1476 solib-multiarch.o from gdb_target_obs.
1479 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1481 (ppc_linux_no_features): Update.
1482 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1484 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1485 (tdesc_powerpc_cell64l): Likewise.
1486 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1487 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1489 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1490 Do not include "features/rs6000/powerpc-cell32l.c" or
1491 "features/rs6000/powerpc-cell64l.c".
1492 (ppc_linux_spu_section): Remove.
1493 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1494 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1495 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1496 (ppc_linux_spe_context_lookup): Remove.
1497 (ppc_linux_spe_context_inferior_created): Remove.
1498 (ppc_linux_spe_context_solib_loaded): Remove.
1499 (ppc_linux_spe_context_solib_unloaded): Remove.
1500 (ppc_linux_spe_context): Remove.
1501 (struct ppu2spu_cache): Remove.
1502 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1503 (struct ppu2spu_data): Remove.
1504 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1505 ppu2spu_unwind): Remove.
1506 (ppc_linux_init_abi): Remove Cell/B.E. support.
1507 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1509 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1510 (rs6000/powerpc-cell64l-expedite): Likewise
1511 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1512 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1513 rs6000/powerpc-cell64l.xml.
1514 * features/rs6000/powerpc-cell32l.xml: Remove.
1515 * features/rs6000/powerpc-cell64l.xml: Likewise.
1516 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1517 * features/rs6000/powerpc-cell64l.c: Likewise.
1518 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1519 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1520 * regformats/reg-spu.dat: Remove.
1522 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1523 * corelow.c (struct spuid_list): Remove.
1524 (add_to_spuid_list): Remove.
1525 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1526 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1527 (remote_protocol_features): Remove associated entries.
1528 (_initialize_remote): No longer initialize them.
1529 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1530 * linux-nat.c (SPUFS_MAGIC): Remove.
1531 (linux_proc_xfer_spu): Remove.
1532 (spu_enumerate_spu_ids): Remove.
1533 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1534 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1535 (linux_make_corefile_notes): No longer call it.
1537 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1538 (cooked_write_test): Likewise.
1540 2019-09-20 Tom Tromey <tom@tromey.com>
1542 * NEWS: Mention case-sensitivity of TUI commands.
1543 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1544 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1545 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1547 2019-09-20 Tom Tromey <tom@tromey.com>
1549 * tui/tui-source.c (tui_source_window::set_contents): Use
1550 make_unique_xstrdup.
1551 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1552 make_unique_xstrdup.
1554 2019-09-20 Tom Tromey <tom@tromey.com>
1556 * tui/tui-data.c: Remove separator comments.
1557 * tui/tui-layout.c: Remove separator comments.
1558 * tui/tui-win.c: Remove separator comments.
1559 * tui/tui-wingeneral.c: Remove separator comments.
1561 2019-09-20 Tom Tromey <tom@tromey.com>
1563 * tui/tui.h (strcat_to_buf): Don't declare.
1564 * tui/tui.c (strcat_to_buf): Remove.
1566 2019-09-20 Tom Tromey <tom@tromey.com>
1568 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1570 * tui/tui-source.c (tui_source_window::set_contents)
1571 (tui_source_window::location_matches_p)
1572 (tui_source_window::maybe_update): Update.
1574 2019-09-20 Tom Tromey <tom@tromey.com>
1576 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1578 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1580 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1581 (tui_data_window::line_from_reg_element_no)
1582 (tui_data_window::first_reg_element_no_inline)
1583 (tui_data_window::show_registers)
1584 (tui_data_window::show_register_group)
1585 (tui_data_window::display_registers_from)
1586 (tui_data_window::display_registers_from_line)
1587 (tui_data_window::first_data_item_displayed)
1588 (tui_data_window::delete_data_content_windows)
1589 (tui_data_window::erase_data_content)
1590 (tui_data_window::do_scroll_vertical)
1591 (tui_data_window::refresh_window)
1592 (tui_data_window::check_register_values): Update.
1594 2019-09-20 Tom Tromey <tom@tromey.com>
1596 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1597 (struct tui_locator_window) <full_name, proc_name>: Now
1599 * tui/tui-stack.c (tui_locator_window::make_status_line)
1600 (tui_locator_window::set_locator_fullname)
1601 (tui_locator_window::set_locator_info): Update.
1602 * tui/tui-source.c (tui_source_window::set_contents)
1603 (tui_source_window::showing_source_p): Update.
1605 2019-09-20 Tom Tromey <tom@tromey.com>
1607 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1608 Don't call tui_locator_win_info_ptr.
1610 2019-09-20 Tom Tromey <tom@tromey.com>
1612 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1614 2019-09-20 Tom Tromey <tom@tromey.com>
1616 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1618 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1619 * tui/tui-layout.c (show_source_disasm_command, show_data)
1620 (show_source_or_disasm_and_command): Use 1 as height for locator.
1622 2019-09-20 Tom Tromey <tom@tromey.com>
1624 * tui/tui.c (tui_enable): Update.
1625 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1627 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1629 * tui/tui-data.c (win_resized): Now bool.
1630 (tui_win_resized): Return bool.
1631 (tui_set_win_resized_to): Accept a bool.
1633 2019-09-20 Tom Tromey <tom@tromey.com>
1635 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1636 Change type of "refresh_values_only".
1637 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1638 type of "refresh_values_only".
1640 2019-09-20 Tom Tromey <tom@tromey.com>
1642 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1644 (tui_disassemble): Add "pos" parameter.
1645 (tui_disasm_window::set_contents): Simplify.
1647 2019-09-20 Tom Tromey <tom@tromey.com>
1649 * tui/tui-winsource.h (struct tui_source_window_base)
1650 <show_source_content>: Now private.
1651 * tui/tui-winsource.c
1652 (tui_source_window_base::show_source_content): Don't handle empty
1655 2019-09-20 Tom Tromey <tom@tromey.com>
1657 * tui/tui-layout.c (show_source_disasm_command)
1658 (show_source_or_disasm_and_command): Don't call
1659 show_source_content.
1661 2019-09-20 Tom Tromey <tom@tromey.com>
1663 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1665 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1666 from tui_make_status_line.
1667 (tui_locator_window::rerender): Update.
1669 2019-09-20 Tom Tromey <tom@tromey.com>
1671 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1672 (tui_locator_window::rerender): Update.
1674 2019-09-20 Tom Tromey <tom@tromey.com>
1676 * tui/tui-winsource.h (struct tui_source_window_base)
1677 <~tui_source_window_base>: Don't declare.
1679 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1680 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1682 * tui/tui-source.c (tui_source_window::set_contents): Update.
1683 (tui_source_window::location_matches_p)
1684 (tui_source_window::maybe_update): Update.
1686 2019-09-20 Tom Tromey <tom@tromey.com>
1688 * tui/tui-winsource.h (~tui_source_element): Remove.
1689 (tui_source_element): Update.
1690 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1691 * tui/tui-winsource.c (tui_show_source_line): Update.
1692 * tui/tui-source.c (tui_source_window::set_contents): Update.
1693 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1695 2019-09-20 Tom Tromey <tom@tromey.com>
1697 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1699 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1700 tui_clear_source_windows_detail.
1701 * tui/tui-winsource.h (struct tui_source_window_base)
1702 <clear_detail>: Don't declare.
1703 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1705 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1707 2019-09-20 Tom Tromey <tromey@adacore.com>
1710 * block.c (contained_in): Fix final return value.
1712 2019-09-20 Alan Modra <amodra@gmail.com>
1714 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1715 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1716 (read_indirect_string_from_dwz): Use bfd accessor.
1717 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1718 * machoread.c (macho_symfile_read_all_oso): Likewise.
1719 * solib.c (solib_bfd_open): Likewise.
1721 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1723 * eval.c: Move declaration of overload_resolution to...
1726 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1728 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1729 * arm-linux-tdep.c: Likewise.
1730 * arm-nbsd-nat.c: Likewise.
1731 * arm-tdep.h: Declare arm_apcs_32.
1732 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1734 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1736 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1737 * dwarf2read.h: Declare dwarf_always_disassemble.
1739 2019-09-19 Tom de Vries <tdevries@suse.de>
1742 * source-cache.c (source_cache::ensure): Catch exception thrown during
1743 construction of the highlighter.
1745 2019-09-18 Alan Modra <amodra@gmail.com>
1747 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1748 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1749 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1750 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1751 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1752 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1753 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1754 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1755 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1756 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1757 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1758 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1759 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1760 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1761 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1762 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1763 * mi/mi-interp.c: Update throughout for bfd section macro and
1765 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1766 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1768 2019-09-18 Tom Tromey <tom@tromey.com>
1771 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1773 (tui_enable): Do not call rl_initialize.
1775 2019-09-18 Christian Groessler <chris@groessler.org>
1777 * alpha-linux-nat.c: Include gdbarch.h.
1779 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1781 * ui-file.c: Include cli/cli-style.h.
1782 (term_cli_styling): Remove cli_styling declaration.
1784 2019-09-18 Alan Modra <amodra@gmail.com>
1786 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1787 to bfd_asymbol_section.
1789 2019-09-18 Alan Modra <amodra@gmail.com>
1791 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1792 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1793 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1795 2019-09-18 Alan Modra <amodra@gmail.com>
1797 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1798 * spu-linux-nat.c (spu_bfd_open): Likewise.
1800 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1802 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1803 to bool to match definition in dwarf2read.c.
1805 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1807 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1808 (print_signatures): Likewise.
1809 (trust_pad_over_xvs): Likewise.
1810 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1811 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1812 * arm-linux-nat.c (arm_apcs_32): Likewise.
1813 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1814 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1815 * arm-tdep.c (arm_debug): Likewise.
1816 (arm_apcs_32): Likewise.
1817 * auto-load.c (debug_auto_load): Likewise.
1818 (auto_load_gdb_scripts): Likewise.
1819 (global_auto_load): Likewise.
1820 (auto_load_local_gdbinit): Likewise.
1821 (auto_load_local_gdbinit_loaded): Likewise.
1822 * auto-load.h (global_auto_load): Likewise.
1823 (auto_load_local_gdbinit): Likewise.
1824 (auto_load_local_gdbinit_loaded): Likewise.
1825 * breakpoint.c (disconnected_dprintf): Likewise.
1826 (breakpoint_proceeded): Likewise.
1827 (automatic_hardware_breakpoints): Likewise.
1828 (always_inserted_mode): Likewise.
1829 (target_exact_watchpoints): Likewise.
1830 (_initialize_breakpoint): Update.
1831 * breakpoint.h (target_exact_watchpoints): Change to bool.
1832 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1833 * cli/cli-cmds.c (trace_commands): Likewise.
1834 * cli/cli-cmds.h (trace_commands): Likewise.
1835 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1837 * cli/cli-logging.c (logging_overwrite): Change to bool.
1838 (logging_redirect): Likewise.
1839 (debug_redirect): Likewise.
1840 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1841 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1843 <boolean_option_def>: Update.
1844 (struct flag_option_def): Change default type of Context to bool
1846 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1847 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1848 (get_setshow_command_value_string): Likewise.
1849 * cli/cli-style.c (cli_styling): Change to bool.
1850 (source_styling): Likewise.
1851 * cli/cli-style.h (source_styling): Likewise.
1852 (cli_styling): Likewise.
1853 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1855 * command.h (var_types): Update comment.
1856 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1857 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1859 (debug_compile_cplus_scopes): Likewise.
1860 * compile/compile-internal.h (compile_debug): Likewise.
1861 * compile/compile.c (compile_debug): Likewise.
1862 (struct compile_options) <raw>: Likewise.
1863 * cp-support.c (catch_demangler_crashes): Likewise.
1864 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1865 (usr_cmd_cris_dwarf2_cfi): Likewise.
1866 * csky-tdep.c (csky_debug): Likewise.
1867 * darwin-nat.c (enable_mach_exceptions): Likewise.
1868 * dcache.c (dcache_enabled_p): Likewise.
1869 * defs.h (info_verbose): Likewise.
1870 * demangle.c (demangle): Likewise.
1871 (asm_demangle): Likewise.
1872 * dwarf-index-cache.c (debug_index_cache): Likewise.
1873 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1874 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1875 * dwarf2read.c (check_physname): Likewise.
1876 (use_deprecated_index_sections): Likewise.
1877 (dwarf_always_disassemble): Likewise.
1878 * eval.c (overload_resolution): Likewise.
1879 * event-top.c (set_editing_cmd_var): Likewise.
1880 (exec_done_display_p): Likewise.
1881 * event-top.h (set_editing_cmd_var): Likewise.
1882 (exec_done_display_p): Likewise.
1883 * exec.c (write_files): Likewise.
1884 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1885 (debug_fbsd_nat): Likewise.
1886 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1888 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1889 <backtrace_past_entry> Likewise.
1890 * gdb-demangle.h (demangle): Likewise.
1891 (asm_demangle): Likewise.
1892 * gdb_bfd.c (bfd_sharing): Likewise.
1893 * gdbcore.h (write_files): Likewise.
1894 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1895 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1896 * gdbthread.h (print_thread_events): Likewise.
1897 * gdbtypes.c (opaque_type_resolution): Likewise.
1898 (strict_type_checking): Likewise.
1899 * gnu-nat.c (gnu_debug_flag): Likewise.
1900 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1901 * guile/scm-param.c (pascm_variable): Add boolval.
1902 (add_setshow_generic): Update.
1903 (pascm_param_value): Update.
1904 (pascm_set_param_value_x): Update.
1905 * hppa-tdep.c (hppa_debug): Change to bool..
1906 * infcall.c (may_call_functions_p): Likewise.
1907 (coerce_float_to_double_p): Likewise.
1908 (unwind_on_signal_p): Likewise.
1909 (unwind_on_terminating_exception_p): Likewise.
1910 * infcmd.c (startup_with_shell): Likewise.
1911 * inferior.c (print_inferior_events): Likewise.
1912 * inferior.h (startup_with_shell): Likewise.
1913 (print_inferior_events): Likewise.
1914 * infrun.c (step_stop_if_no_debug): Likewise.
1915 (detach_fork): Likewise.
1916 (debug_displaced): Likewise.
1917 (disable_randomization): Likewise.
1918 (non_stop): Likewise.
1919 (non_stop_1): Likewise.
1920 (observer_mode): Likewise.
1921 (observer_mode_1): Likewise.
1922 (set_observer_mode): Update.
1923 (sched_multi): Change to bool.
1924 * infrun.h (debug_displaced): Likewise.
1925 (sched_multi): Likewise.
1926 (step_stop_if_no_debug): Likewise.
1927 (non_stop): Likewise.
1928 (disable_randomization): Likewise.
1929 * linux-tdep.c (use_coredump_filter): Likewise.
1930 (dump_excluded_mappings): Likewise.
1931 * linux-thread-db.c (auto_load_thread_db): Likewise.
1932 (check_thread_db_on_load): Likewise.
1933 * main.c (captured_main_1): Update.
1934 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1935 xx2_opt, boolean_opt>: Change to bool.
1936 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1937 * maint.c (maintenance_profile_p): Likewise.
1938 (per_command_time): Likewise.
1939 (per_command_space): Likewise.
1940 (per_command_symtab): Likewise.
1941 * memattr.c (inaccessible_by_default): Likewise.
1942 * mi/mi-main.c (mi_async): Likewise.
1943 (mi_async_1): Likewise.
1944 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1945 * nat/fork-inferior.h (startup_with_shell): Likewise.
1946 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1947 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1948 * nios2-tdep.c (nios2_debug): Likewise.
1949 * or1k-tdep.c (or1k_debug): Likewise.
1950 * parse.c (parser_debug): Likewise.
1951 * parser-defs.h (parser_debug): Likewise.
1952 * printcmd.c (print_symbol_filename): Likewise.
1953 * proc-api.c (procfs_trace): Likewise.
1954 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1955 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1956 (set_parameter_value): Update.
1957 (add_setshow_generic): Update.
1958 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1960 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1962 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1963 * record-btrace.c (record_btrace_target::store_registers): Update.
1964 * record-full.c (record_full_memory_query): Change to bool.
1965 (record_full_stop_at_limit): Likewise.
1966 * record-full.h (record_full_memory_query): Likewise.
1967 * remote-notif.c (notif_debug): Likewise.
1968 * remote-notif.h (notif_debug): Likewise.
1969 * remote.c (use_range_stepping): Likewise.
1970 (interrupt_on_connect): Likewise.
1971 (remote_break): Likewise.
1972 * ser-tcp.c (tcp_auto_retry): Likewise.
1973 * ser-unix.c (serial_hwflow): Likewise.
1974 * skip.c (debug_skip): Likewise.
1975 * solib-aix.c (solib_aix_debug): Likewise.
1976 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1977 (spu_auto_flush_cache_p): Likewise.
1978 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1980 (struct info_print_options) <quiet>: Likewise.
1981 * symfile-debug.c (debug_symfile): Likewise.
1982 * symfile.c (auto_solib_add): Likewise.
1983 (separate_debug_file_debug): Likewise.
1984 * symfile.h (auto_solib_add): Likewise.
1985 (separate_debug_file_debug): Likewise.
1986 * symtab.c (basenames_may_differ): Likewise.
1987 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1988 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1989 (struct info_types_options) <quiet>: Likewise.
1990 * symtab.h (demangle): Likewise.
1991 (basenames_may_differ): Likewise.
1992 * target-dcache.c (stack_cache_enabled_1): Likewise.
1993 (code_cache_enabled_1): Likewise.
1994 * target.c (trust_readonly): Likewise.
1995 (may_write_registers): Likewise.
1996 (may_write_memory): Likewise.
1997 (may_insert_breakpoints): Likewise.
1998 (may_insert_tracepoints): Likewise.
1999 (may_insert_fast_tracepoints): Likewise.
2000 (may_stop): Likewise.
2001 (auto_connect_native_target): Likewise.
2002 (target_stop_and_wait): Update.
2003 (target_async_permitted): Change to bool.
2004 (target_async_permitted_1): Likewise.
2005 (may_write_registers_1): Likewise.
2006 (may_write_memory_1): Likewise.
2007 (may_insert_breakpoints_1): Likewise.
2008 (may_insert_tracepoints_1): Likewise.
2009 (may_insert_fast_tracepoints_1): Likewise.
2010 (may_stop_1): Likewise.
2011 * target.h (target_async_permitted): Likewise.
2012 (may_write_registers): Likewise.
2013 (may_write_memory): Likewise.
2014 (may_insert_breakpoints): Likewise.
2015 (may_insert_tracepoints): Likewise.
2016 (may_insert_fast_tracepoints): Likewise.
2017 (may_stop): Likewise.
2018 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2019 (make_thread_apply_all_options_def_group): Change argument from int*
2021 (thread_apply_all_command): Update.
2022 (print_thread_events): Change to bool.
2023 * top.c (confirm): Likewise.
2024 (command_editing_p): Likewise.
2025 (history_expansion_p): Likewise.
2026 (write_history_p): Likewise.
2027 (info_verbose): Likewise.
2028 * top.h (confirm): Likewise.
2029 (history_expansion_p): Likewise.
2030 * tracepoint.c (disconnected_tracing): Likewise.
2031 (circular_trace_buffer): Likewise.
2032 * typeprint.c (print_methods): Likewise.
2033 (print_typedefs): Likewise.
2034 * utils.c (debug_timestamp): Likewise.
2035 (sevenbit_strings): Likewise.
2036 (pagination_enabled): Likewise.
2037 * utils.h (sevenbit_strings): Likewise.
2038 (pagination_enabled): Likewise.
2039 * valops.c (overload_resolution): Likewise.
2040 * valprint.h (struct value_print_options) <prettyformat_arrays,
2041 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2042 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2043 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2045 * windows-nat.c (new_console): Likewise.
2046 (cygwin_exceptions): Likewise.
2047 (new_group): Likewise.
2048 (debug_exec): Likewise.
2049 (debug_events): Likewise.
2050 (debug_memory): Likewise.
2051 (debug_exceptions): Likewise.
2052 (useshell): Likewise.
2053 * windows-tdep.c (maint_display_all_tib): Likewise.
2054 * xml-support.c (debug_xml): Likewise.
2056 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2058 * source.c (prepare_path_for_appending): New function.
2059 (openp): Make use of new function.
2060 (find_and_open_source): Search for the compilation directory and
2061 source file as a relative path beneath the directory search path.
2063 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2065 * source-cache.c (source_cache::get_line_charpos): Catch
2066 exceptions and return false, this matches the behaviour documented
2069 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2071 * ada-tasks.c (info_task): Remove quoting of the task's name.
2073 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2075 * symfile.c (auto_solib_add): Replace comment with a reference
2078 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2080 * NEWS: Mention that gdb can now be compiled with Python 3
2083 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2085 * maint.c (maint_print_section_data::maint_print_section_data):
2086 Force use of 'float log10 (float)' by casting the argument to
2089 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2091 * maint.c: Add 'cmath' include.
2092 (struct maint_print_section_data): New structure.
2093 (print_section_index): New function.
2094 (print_bfd_section_info): Add header comment, small whitespace
2095 cleanup, and update to call new print_section_index function.
2096 (print_objfile_section_info): Likewise.
2097 (maint_obj_section_from_bfd_section): New function.
2098 (print_bfd_section_info_maybe_relocated): New function.
2099 (maintenance_info_sections): Add header comment, always use
2100 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2102 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2104 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2105 inner scope, add check that the objfile has psymtabs before
2106 checking psymtabs_addrmap.
2107 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2109 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2111 * NEWS: Announce that Ada task names are now shown at more places,
2112 and between quotes (except in info task output).
2113 * gdb/ada-tasks.c (task_to_str): New function.
2114 (display_current_task_id): Call task_to_str.
2115 (task_command_1): Likewise.
2116 (print_ada_task_info): In non-mi mode, Properly align headers and data
2117 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2119 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2121 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2122 prstatus.pr_lwp.pr_info instead of making it up.
2124 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2126 * auto-load.c (auto_load_expand_dir_vars): Update.
2127 * defs.h (gdb_datadir): Change to std::string.
2128 (python_libdir): Likewise.
2129 (relocate_gdb_directory): Change return type to std::string.
2130 * guile/guile.c (gdbscm_data_directory): Update.
2131 (initialize_scheme_side): Update.
2132 * jit.c (jit_reader_dir): Change to std::string.
2133 (jit_reader_load_command): Update.
2134 * main.c (gdb_datadir): Change to std::string.
2135 (python_libdir): Likewise.
2136 (set_gdb_data_directory): Update.
2137 (relocate_path): Change to return std::string.
2138 (relocate_gdb_directory): Change to return std::string.
2139 (relocate_gdbinit_path_maybe_in_datadir): Update.
2140 (captured_main_1): Update.
2141 * python/python.c (do_start_initialization): Update.
2142 * top.c (show_gdb_datadir): Update.
2143 * xml-syscall.c (xml_init_syscalls_info): Update.
2144 (init_syscalls_info): Update.
2146 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2148 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2149 out of get_init_files.
2150 (get_init_files): Update.
2152 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2154 * main.c (get_init_files): Change to use std::string.
2155 (captured_main_1): Update.
2156 (print_gdb_help): Update.
2158 2019-09-11 Ali Tamur <tamur@google.com>
2160 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2163 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2165 * dbxread.c (read_dbx_symtab): Update.
2166 * dwarf2read.c (load_partial_dies): Update.
2167 * mdebugread.c (parse_partial_symbols): Update.
2168 (handle_psymbol_enumerators): Update.
2169 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2170 * psymtab.c (add_psymbol_to_bcache): Likewise.
2171 (add_psymbol_to_list): Likewise.
2172 * symtab.c (symbol_set_names): Likewise.
2173 * symtab.h (symbol_set_names): Likewise.
2174 * xcoffread.c (scan_xcoff_symtab): Update.
2176 2019-09-11 Tom Tromey <tom@tromey.com>
2178 * symfile-mem.c (symbol_file_add_from_memory): Use
2180 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2181 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2183 2019-09-10 Tom Tromey <tromey@adacore.com>
2185 * dwarf-index-write.c (write_psymbols): Extend error message.
2186 (debug_names::insert): Add Ada code.
2187 (debug_names::write_psymbols): Remove Ada check.
2188 (debug_names) <m_string_obstack>: New member.
2189 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2190 (gdb_index_symbol_name_matcher::matches): Remove.
2191 (mapped_index_base::find_name_components_bounds): Add "lang"
2193 (mapped_index_base::build_name_components): Also split names
2194 according to Ada syntax.
2195 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2196 type of "match_callback".
2197 (check_match, check_find_bounds_finds)
2198 (dw2_expand_symtabs_matching): Update.
2199 (dw2_debug_names_iterator): Add new constructor.
2200 (dw2_debug_names_map_matching_symbols): New function.
2201 (dw2_debug_names_expand_symtabs_matching): Update.
2202 (dwarf2_debug_names_functions): Use
2203 dw2_debug_names_map_matching_symbols.
2205 2019-09-10 Tom Tromey <tromey@adacore.com>
2207 * dwarf2read.c (dw2_get_file_names_reader): Add the
2208 CU's file name to the results.
2210 2019-09-10 Tom Tromey <tromey@adacore.com>
2212 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2213 map_matching_symbols. Update.
2214 * dwarf2read.c (dw2_map_matching_symbols): Update.
2215 * psymtab.c (match_partial_symbol): Change type; update.
2216 (psym_map_matching_symbols): Likewise.
2217 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2219 * symfile.h (struct quick_symbol_functions)
2220 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2223 2019-09-10 Tom Tromey <tromey@adacore.com>
2225 * psymtab.c (map_block): Remove.
2226 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2227 * symtab.c (iterate_over_symbols_terminated): New function.
2228 * symtab.c (iterate_over_symbols_terminated): Declare.
2230 2019-09-10 Tom Tromey <tromey@adacore.com>
2232 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2233 * language.h (struct language_defn) <la_iterate_over_symbols>:
2235 * symtab.c (iterate_over_symbols): Return bool.
2236 * symtab.h (iterate_over_symbols): Return bool.
2238 2019-09-10 Tom Tromey <tromey@adacore.com>
2240 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2241 (add_nonlocal_symbols): Update.
2242 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2243 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2244 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2245 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2246 Change type of "callback". Remove "data".
2249 2019-09-09 Ali Tamur <tamur@google.com>
2251 * dwarf2read.c (comp_unit_head): Update comment.
2252 (dwarf2_dwo_name): New function declaration.
2253 (dwarf_unit_type_name): New function declaration.
2254 (read_comp_unit_head): Add support for new compilation units,
2255 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2256 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2257 (currently named as "signature") in their header. Also clarify error
2259 (lookup_dwo_id): New function. Returns the dwo id of the given
2261 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2262 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2264 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2265 (dwarf2_dwo_name): Get the dwo name if present.
2266 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2269 2019-09-09 Tom Tromey <tom@tromey.com>
2271 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2273 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2275 * python/python.c (do_start_initialization): Make progname_copy static,
2276 to avoid a leak report.
2278 2019-09-08 Tom Tromey <tom@tromey.com>
2280 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2282 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2284 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2285 Change type to gdb::optional<block_enum>.
2286 (dw2_symtab_iter_init): Change block_index parameter type
2287 to gdb::optional<block_enum>.
2288 (dw2_lookup_symbol): Change block_index parameter
2289 type to block_enum.c
2290 (dw2_debug_names_lookup_symbol): Likewise.
2291 * psymtab.c (psym_lookup_symbol): Likewise.
2292 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2293 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2296 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2298 * defs.h (relocate_gdb_directory): Change int to bool in
2299 signature and rename flag to relocatable.
2300 * main.c (relocate_path): Likewise.
2301 (relocate_gdb_directory): Likewise.
2303 2019-09-06 Alan Modra <amodra@gmail.com>
2305 * coffread.c (coff_symfile_read): Constify filename variable.
2306 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2307 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2308 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2309 * solib.c (reload_shared_libraries_1): Likewise.
2310 * symfile.c (reread_symbols): Likewise.
2311 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2312 * solib-darwin.c (darwin_bfd_open): Likewise.
2313 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2315 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2317 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2318 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2320 2019-09-03 Tom Tromey <tromey@adacore.com>
2322 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2324 (has_negatives): Unbias a range type bound.
2325 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2326 * gdbtypes.c (operator==): Handle new field.
2327 (create_range_type): Add "bias" parameter.
2328 (create_static_range_type, resolve_dynamic_range): Update.
2329 * gdbtypes.h (struct range_bounds) <bias>: New member.
2330 (create_range_type): Add bias parameter.
2331 * printcmd.c (print_scalar_formatted): Unbias range types.
2332 * value.c (unpack_long): Unbias range types.
2333 (pack_long): Bias range types.
2335 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2337 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2340 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2342 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2343 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2344 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2345 (compile_probe_arg): Likewise.
2346 * probe.h (get_argument_count): Likewise.
2347 * solib-svr4.c (solib_event_probe_action): Likewise.
2348 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2350 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2352 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2354 (svr4_create_solib_event_breakpoints): ...from here.
2356 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2358 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2359 suffix from warning message.
2361 2019-08-30 Tom Tromey <tom@tromey.com>
2363 * tui/tui-winsource.h (struct tui_source_window_base)
2364 <refresh_all>: Don't declare.
2365 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2367 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2368 tui_show_locator_content.
2369 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2371 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2372 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2375 2019-08-30 Tom Tromey <tom@tromey.com>
2377 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2379 2019-08-30 Tom Tromey <tom@tromey.com>
2381 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2382 Remove unnecessary forward declarations.
2384 2019-08-30 Tom Tromey <tom@tromey.com>
2386 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2388 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2389 tui_show_locator_content.
2391 2019-08-30 Tom Tromey <tom@tromey.com>
2393 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2394 (tui_locator_window::rerender): Rewrite using body of previous
2395 tui_show_locator_content.
2397 2019-08-30 Tom Tromey <tom@tromey.com>
2399 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2400 set_locator_fullname>: New methods.
2401 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2402 Rename from tui_set_locator_fullname.
2403 (tui_locator_window::set_locator_info): Rename from
2404 tui_set_locator_info. Return bool.
2405 (tui_update_locator_fullname, tui_show_frame_info): Update.
2407 2019-08-30 Tom Tromey <tom@tromey.com>
2409 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2411 2019-08-30 Tom Tromey <tom@tromey.com>
2413 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2416 2019-08-30 Tom Tromey <tom@tromey.com>
2418 * tui/tui-wingeneral.c (box_win): Assume win_info and
2419 win_info->handle cannot be NULL.
2421 2019-08-30 Tom Tromey <tom@tromey.com>
2423 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2424 refresh_window>: Declare.
2425 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2427 (tui_data_item_window::rerender): Rename from
2428 tui_display_register.
2429 (tui_data_item_window::refresh_window): New method.
2430 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2433 2019-08-30 Tom Tromey <tom@tromey.com>
2435 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2436 regs_column_count, current_group>: Move later. Now private.
2437 <get_current_group>: New method.
2438 * tui/tui-regs.c (tui_reg_command): Update.
2439 * tui/tui-layout.c (tui_set_layout): Update.
2441 2019-08-30 Tom Tromey <tom@tromey.com>
2443 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2444 (tui_data_window::rerender): Don't call
2445 check_and_display_highlight_if_needed.
2446 (tui_data_window::refresh_all): Remove call to
2449 2019-08-30 Tom Tromey <tom@tromey.com>
2451 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2452 (tui_data_window::display_registers_from)
2453 (tui_data_window::display_reg_element_at_line)
2454 (tui_data_window::display_registers_from_line): Remove checks of
2457 2019-08-30 Tom Tromey <tom@tromey.com>
2459 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2461 * tui/tui-regs.c (tui_data_window::show_registers): Call
2463 (tui_data_window::rerender): Rename from display_all_data.
2464 (tui_data_window::rerender): Remove old implementation.
2466 2019-08-30 Tom Tromey <tom@tromey.com>
2468 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2470 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2472 2019-08-29 Bernhard Wodok <barto@gmx.net>
2473 Sergio Durigan Junior <sergiodj@redhat.com>
2476 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2478 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2480 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2481 when searching for types.
2483 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2485 * f-lang.c (f_language_defn): Use f_print_typedef.
2486 * f-lang.h (f_print_typedef): Declare.
2487 * f-typeprint.c (f_print_typedef): Define.
2489 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2491 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2493 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2495 * cli/cli-utils.c (info_print_options_defs): Delete.
2496 (make_info_print_options_def_group): Delete.
2497 (extract_info_print_options): Delete.
2498 (info_print_command_completer): Delete.
2499 (info_print_args_help): Add extra parameter, and optionally
2500 include text about -n flag.
2501 * cli/cli-utils.h (struct info_print_options): Delete.
2502 (extract_info_print_options): Delete declaration.
2503 (info_print_command_completer): Delete declaration.
2504 (info_print_args_help): Add extra parameter, extend header
2506 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2508 * stack.c (struct info_print_options): New type.
2509 (info_print_options_defs): New file scoped variable.
2510 (make_info_print_options_def_group): New static function.
2511 (info_print_command_completer): New static function.
2512 (info_locals_command): Update to use new local functions.
2513 (info_args_command): Likewise.
2514 (_initialize_stack): Add extra parameter to calls to
2515 info_print_args_help.
2516 * symtab.c (search_symbols): Add extra parameter, use this to
2517 possibly excluse non-debug symbols.
2518 (symtab_symbol_info): Add extra parameter, which is passed on to
2520 (struct info_print_options): New type.
2521 (info_print_options_defs): New file scoped variable.
2522 (make_info_print_options_def_group): New static function.
2523 (info_print_command_completer): New static function.
2524 (info_variables_command): Update to use local functions, and pass
2525 extra parameter through to symtab_symbol_info.
2526 (info_functions_command): Likewise.
2527 (info_types_command): Pass additional argument through to
2529 (rbreak_command): Pass extra argument to search_symbols.
2530 (_initialize_symtab): Add extra arguments for calls to
2531 info_print_args_help, and update help text for 'info variables',
2532 'whereis', and 'info functions' commands.
2533 * symtab.h (search_symbols): Add extra argument to declaration.
2534 * NEWS: Mention new flags.
2536 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2538 * symtab.c (lookup_static_symbol): Call the new function (and move
2539 it down to be next to lookup_global_symbol).
2540 (struct global_sym_lookup_data): Add block_enum member and rename to...
2541 (struct global_or_static_sym_lookup_data): ...this.
2542 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2543 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2544 (lookup_symbol_global_or_static_iterator_cb): ...this.
2545 (lookup_global_or_static_symbol): New function.
2546 (lookup_global_symbol): Call new function.
2548 2019-08-26 Tom de Vries <tdevries@suse.de>
2551 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2552 when pc_probe.prob == NULL.
2554 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2556 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2557 variable symbol_linkage to symbol_linkage_.
2559 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2561 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2562 represent whether the symbol is static, dynamic, or we don't
2565 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2567 * gdb/rx-tdep.c (rx_register_names): New.
2568 (rx_register_name): Delete.
2569 (rx_psw_type): Delete.
2570 (rx_fpsw_type): Delete.
2571 (rx_register_type): Delete.
2572 (rx_gdbarch_init): Convert target-descriptions.
2573 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2574 * gdb/features/Makefile: Add rx.xml.
2575 * gdb/features/rx.xml: New.
2576 * gdb/features/rx.c: Generated.
2577 * gdb/NEWS: Mention target description support.
2579 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2581 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2584 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2586 * configure.ac: Don't check for 'dlfcn.h' (moved to
2587 gdbsupport/common.m4).
2588 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2590 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2591 * compile/compile-c-support.c: Include
2592 'gdbsupport/gdb-dlfcn.h'.
2593 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2594 * gdb-dlfcn.c: Move to...
2595 * gdbsupport/gdb-dlfcn.c: ... here.
2596 * gdb-dlfcn.h: Move to...
2597 * gdbsupport/gdb-dlfcn.h: ... here.
2599 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2601 * nios2-tdep.c (struct reg_value): Improve comments. Make
2602 the offset field signed.
2604 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2606 * python/lib/gdb/__init__.py (_execute_file): New function.
2607 * python/python.c (python_run_simple_file): Call gdb._execute_file
2610 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2612 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2613 all uses as this was never set to anything but a zero value.
2615 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2617 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2619 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2621 * tui/tui-data.h (tui_gen_win_info): Add an =default
2622 move constructor, required by some GCC versions.
2624 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2626 * go32-nat.c (go32_sysinfo): Add hygon_p.
2628 2019-08-20 Tom Tromey <tom@tromey.com>
2630 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2631 line_from_reg_element_no, first_reg_element_no_inline,
2632 display_all_data, delete_data_content_windows,
2633 erase_data_content>: Now private.
2635 2019-08-20 Tom Tromey <tom@tromey.com>
2637 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2638 (tui_unhighlight_win, tui_highlight_win)
2639 (tui_win_info::make_window): Update.
2640 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2642 2019-08-20 Tom Tromey <tom@tromey.com>
2644 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2645 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2646 (MAX_PID_WIDTH): Move to tui-stack.c.
2647 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2648 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2649 (MAX_PID_WIDTH): Move from tui-data.h.
2651 2019-08-20 Tom Tromey <tom@tromey.com>
2653 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2654 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2656 (tui_gen_win_info::make_window): Rename from tui_make_window.
2657 (tui_win_info::make_window): New method.
2658 (tui_gen_win_info::make_visible): Update.
2659 * tui/tui-source.c (tui_source_window::set_contents): Update.
2660 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2661 (tui_data_window::display_registers_from): Update.
2662 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2663 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2667 (struct tui_win_info) <make_window>: Declare.
2668 <can_box>: Now virtual.
2669 <title>: New member.
2670 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2671 * tui/tui-command.c (tui_cmd_window::resize): Update.
2673 2019-08-20 Tom Tromey <tom@tromey.com>
2675 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2676 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2677 (tui_data_window::check_register_values): Update.
2679 2019-08-20 Tom Tromey <tom@tromey.com>
2681 * tui/tui-regs.h (struct tui_data_window): Use
2682 DISABLE_COPY_AND_ASSIGN.
2683 <regs_content>: Change type, removing unique_ptr.
2684 <tui_data_window>: Add move constructor.
2685 * tui/tui-regs.c (tui_data_window::show_registers)
2686 (tui_data_window::show_register_group)
2687 (tui_data_window::display_registers_from)
2688 (tui_data_window::display_registers_from)
2689 (tui_data_window::first_data_item_displayed)
2690 (tui_data_window::delete_data_content_windows)
2691 (tui_data_window::rerender, tui_data_window::refresh_window)
2692 (tui_data_window::check_register_values): Update.
2694 2019-08-20 Tom Tromey <tom@tromey.com>
2696 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2697 show_register_group>: Declare.
2698 (tui_show_register_group): Don't declare.
2699 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2701 (tui_data_window::show_register_group): Rename from
2702 tui_show_register_group.
2703 (tui_data_window::check_register_values, tui_reg_command):
2705 * tui/tui-layout.c (tui_set_layout): Update.
2707 2019-08-20 Tom Tromey <tom@tromey.com>
2709 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2711 (tui_check_register_values): Don't declare.
2712 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2713 from tui_check_register_values.
2714 * tui/tui-hooks.c (tui_register_changed): Update.
2716 2019-08-20 Tom Tromey <tom@tromey.com>
2718 * tui/tui-regs.c (tui_reg_layout): Move later.
2719 (tui_show_registers): Don't enable TUI mode or change layout.
2721 2019-08-20 Tom Tromey <tom@tromey.com>
2723 * tui/tui-regs.h (struct tui_data_item_window)
2724 <~tui_data_item_window>: Remove.
2725 <content>: Now a unique_xmalloc_ptr.
2726 * tui/tui-regs.c (tui_register_format): Return a
2728 (tui_get_register): Update.
2729 (~tui_data_item_window): Remove.
2730 (tui_data_window::display_registers_from, tui_display_register):
2732 * tui/tui-io.h (tui_expand_tabs): Update.
2733 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2734 Remove "col" parameter.
2736 2019-08-20 Tom Tromey <tom@tromey.com>
2738 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2740 * tui/tui-regs.c (~tui_data_item_window): Update.
2742 2019-08-20 Tom Tromey <tom@tromey.com>
2744 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2747 2019-08-20 Tom Tromey <tom@tromey.com>
2749 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2751 2019-08-20 Tom Tromey <tom@tromey.com>
2753 * tui/tui-source.h (struct tui_source_window): Update.
2754 * tui/tui-regs.c (tui_show_registers): Update.
2755 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2756 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2757 (NO_REGS_STRING): Remove defines.
2759 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2761 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2762 unnecessary thread walk if remote doesn't support the packet.
2764 2019-08-19 Tom Tromey <tromey@adacore.com>
2766 * python/py-value.c (value_has_field): Fix indentation.
2768 2019-08-19 Tom Tromey <tromey@adacore.com>
2770 * printcmd.c (do_one_display, info_display_command): Update.
2771 * block.h (contained_in): Return bool. Add allow_nested
2773 * block.c (contained_in): Return bool. Add allow_nested
2776 2019-08-19 Tom Tromey <tom@tromey.com>
2778 * configure: Rebuild.
2779 * configure.ac: Disallow the combination of -static-libstdc++ and
2781 * source-cache.c (get_language_name): Handle rust.
2782 (source_cache::get_source_lines): Ignore highlighting exceptions.
2784 2019-08-16 Tom Tromey <tom@tromey.com>
2786 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2787 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2788 (struct tui_source_window_base) <make_visible, refresh_window,
2789 resize>: Remove methods.
2790 <execution_info>: Remove field.
2791 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2792 (tui_show_source_line, tui_source_window_base)
2793 (~tui_source_window_base): Update.
2794 (tui_source_window_base::resize)
2795 (tui_source_window_base::make_visible)
2796 (tui_source_window_base::refresh_window): Remove.
2797 (tui_source_window_base::update_exec_info): Update.
2798 * tui/tui-source.c (tui_source_window::set_contents): Update.
2799 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2801 2019-08-16 Tom Tromey <tom@tromey.com>
2803 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2804 deprecated_query_hook.
2806 2019-08-16 Tom Tromey <tom@tromey.com>
2808 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2809 (tui_update_source_windows_with_line): Update.
2810 * tui/tui-source.h (struct tui_source_window)
2811 <show_symtab_source>: Declare.
2812 (tui_show_symtab_source): Don't declare.
2813 * tui/tui-source.c (tui_show_symtab_source): Rename from
2814 tui_show_symtab_source.
2816 2019-08-16 Tom Tromey <tom@tromey.com>
2818 * tui/tui-winsource.h (struct tui_source_window_base)
2819 <set_contents>: Declare.
2820 * tui/tui-winsource.c
2821 (tui_source_window_base::update_source_window_as_is): Update.
2822 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2824 (tui_set_source_content): Don't declare.
2825 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2826 tui_set_source_content.
2827 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2829 (tui_set_disassem_content): Don't declare.
2830 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2831 tui_set_disassem_content.
2833 2019-08-16 Tom Tromey <tom@tromey.com>
2835 * tui/tui-winsource.h (struct tui_source_window_base)
2836 <update_breakpoint_info>: Declare.
2837 (tui_update_breakpoint_info): Don't declare.
2838 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2839 (tui_update_all_breakpoint_info): Update.
2840 (tui_source_window_base::update_breakpoint_info): Rename from
2841 tui_update_breakpoint_info.
2842 (tui_source_window_base::update_exec_info): Update.
2844 2019-08-16 Tom Tromey <tom@tromey.com>
2846 * tui/tui-winsource.h (struct tui_source_window_base)
2847 <update_source_window>: Declare.
2848 (tui_update_source_window): Don't declare.
2849 * tui/tui-winsource.c
2850 (tui_source_window_base::update_source_window): Rename from
2851 tui_update_source_window.
2852 (tui_source_window_base::rerender): Update.
2853 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2854 * tui/tui-disasm.c (tui_show_disassem)
2855 (tui_show_disassem_and_update_source)
2856 (tui_disasm_window::maybe_update): Update.
2858 2019-08-16 Tom Tromey <tom@tromey.com>
2860 * tui/tui-winsource.h (struct tui_source_window_base)
2861 <update_source_window_as_is>: Declare.
2862 (tui_update_source_window_as_is): Don't declare.
2863 * tui/tui-winsource.c (tui_update_source_window): Update
2864 (tui_source_window_base::update_source_window_as_is): Rename from
2865 tui_update_source_window_as_is.
2866 (tui_source_window_base::refill): Update.
2867 * tui/tui-source.c (tui_show_symtab_source): Update.
2868 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2871 2019-08-16 Tom Tromey <tom@tromey.com>
2873 * tui/tui-winsource.h (tui_update_source_window)
2874 (tui_update_source_window_as_is): Remove "noerror" parameter.
2875 * tui/tui-winsource.c (tui_update_source_window)
2876 (tui_update_source_window_as_is): Remove "noerror" parameter.
2877 (tui_update_source_windows_with_addr)
2878 (tui_update_source_windows_with_line)
2879 (tui_source_window_base::rerender)
2880 (tui_source_window_base::refill): Update.
2881 * tui/tui-source.h (tui_set_source_content)
2882 (tui_show_symtab_source): Remove "noerror" parameter.
2883 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2885 (tui_show_symtab_source): Likewise.
2886 (tui_source_window::maybe_update): Update.
2887 * tui/tui-disasm.c (tui_show_disassem)
2888 (tui_show_disassem_and_update_source)
2889 (tui_disasm_window::do_scroll_vertical)
2890 (tui_disasm_window::maybe_update): Update.
2892 2019-08-16 Tom Tromey <tom@tromey.com>
2894 * tui/tui.c (tui_is_window_visible): Update.
2895 * tui/tui-wingeneral.c (tui_make_window)
2896 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2897 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2898 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2899 (tui_set_win_height_command, parse_scrolling_args): Update.
2900 * tui/tui-source.c (tui_source_window::style_changed): Update.
2901 * tui/tui-regs.c (tui_show_registers)
2902 (tui_data_window::first_data_item_displayed)
2903 (tui_data_window::delete_data_content_windows)
2904 (tui_check_register_values, tui_reg_command): Update.
2905 * tui/tui-disasm.c (tui_show_disassem): Update.
2906 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2908 <is_visible>: Remove field.
2909 * tui/tui-data.c (tui_next_win, tui_prev_win)
2910 (tui_delete_invisible_windows): Update.
2912 2019-08-16 Tom Tromey <tom@tromey.com>
2914 * tui/tui-winsource.h (struct tui_source_window_base)
2915 <m_has_locator>: Remove.
2916 * tui/tui-layout.c (show_source_disasm_command, show_data)
2917 (show_source_or_disasm_and_command): Update.
2919 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2921 * NEWS (Other MI changes): New subsection.
2922 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2923 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2924 * arch-utils.c (default_get_pc_address_flags): New function.
2925 * arch-utils.h (default_get_pc_address_flags): New declaration.
2926 * gdbarch.sh: Add get_pc_address_flags.
2927 * gdbarch.c: Regenerate.
2928 * gdbarch.h: Likewise.
2929 * stack.c (print_pc): New function.
2930 (print_frame_info) (print_frame): Call print_pc.
2932 2019-08-16 Tom de Vries <tdevries@suse.de>
2934 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2935 print_objfile_section_info.
2937 2019-08-15 Tom Tromey <tom@tromey.com>
2939 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2940 calling update_cmdwin_start_line.
2941 * tui/tui-winsource.h (struct tui_source_window_base)
2942 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2943 <rerender>: Declare.
2944 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2946 (tui_source_window_base::set_new_height): Remove.
2947 (tui_source_window_base::rerender): Rename from
2948 do_make_visible_with_new_height.
2949 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2951 (tui_win_info::make_invisible_and_set_new_height)
2952 (tui_win_info::make_visible_with_new_height): Remove.
2953 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2955 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2956 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2957 do_make_visible_with_new_height>: Don't declare.
2958 <rerender>: Declare.
2959 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2961 (tui_data_window::do_make_visible_with_new_height): Remove.
2962 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2963 call tui_show_locator_content.
2964 (tui_gen_win_info::resize): Call rerender.
2965 (show_source_or_disasm_and_command): Don't call
2966 tui_show_locator_content.
2967 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2969 (struct tui_win_info) <rerender>: Declare.
2970 <set_new_height, make_invisible_and_set_new_height,
2971 make_visible_with_new_height>: Don't declare.
2972 * tui/tui-data.c (tui_win_list::rerender): New method.
2973 * tui/tui-command.h (struct tui_cmd_window)
2974 <do_make_visible_with_new_height>: Don't declare.
2976 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2978 2019-08-15 Tom Tromey <tromey@adacore.com>
2980 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2981 * ada-lang.c (ada_enum_name): Likewise.
2983 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2985 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2987 (GdbOutputErrorFile): Likewise.
2988 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2990 (execute_unwinders): Rename to have a leading underscore.
2991 (auto_load_packages): Likewise.
2992 (global scope): Adjust call to auto_load_packages accordingly.
2993 (GdbSetPythonDirectory): Likewise.
2994 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2995 instead of execute_unwinders.
2997 2019-08-15 Tom Tromey <tom@tromey.com>
2999 * tui/tui-layout.c (show_layout, show_source_disasm_command)
3000 (show_data): Don't change window visibility.
3001 (tui_gen_win_info::resize): Remove special case for command
3002 window. Use wresize, when available.
3003 (show_source_or_disasm_and_command): Don't change window
3005 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
3006 <make_visible>: New method.
3007 * tui/tui-command.c (tui_cmd_window::resize): New method.
3009 2019-08-15 Tom Tromey <tom@tromey.com>
3011 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3012 (struct tui_source_windows): New.
3013 * tui/tui-winsource.c (tui_display_main): Update.
3014 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3015 (new_height_ok, parse_scrolling_args): Update.
3016 * tui/tui-layout.c (show_layout, show_data): Update.
3017 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3018 (tui_add_to_source_windows): Don't declare.
3019 * tui/tui-data.c (source_windows, tui_source_windows)
3020 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3022 2019-08-15 Tom Tromey <tom@tromey.com>
3024 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3026 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3027 * tui/tui-layout.c (show_source_disasm_command, show_data):
3029 (tui_gen_win_info::resize): Rename.
3030 (show_source_or_disasm_and_command): Update.
3031 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3034 2019-08-15 Tom Tromey <tom@tromey.com>
3036 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3037 * tui/tui-interp.c (tui_interp::init): Don't call
3038 tui_initialize_static_data.
3039 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3041 2019-08-15 Tom Tromey <tom@tromey.com>
3043 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3044 examine tui_win_list.
3046 2019-08-15 Tom Tromey <tom@tromey.com>
3048 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3049 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3050 tui_clear_source_content.
3051 (tui_clear_source_content): Remove.
3052 (tui_source_window_base::do_erase_source_content): Hoist call to
3054 * tui/tui-stack.c (tui_show_frame_info): Don't call
3055 tui_clear_source_content.
3057 2019-08-15 Tom Tromey <tom@tromey.com>
3059 * tui/tui-winsource.h (struct tui_source_window_base)
3060 <do_erase_source_content>: New method.
3061 <erase_source_content>: New method.
3062 (tui_erase_source_content): Don't declare.
3063 * tui/tui-winsource.c (tui_clear_source_content): Update.
3064 (tui_source_window_base::do_erase_source_content): Rename from
3065 tui_erase_source_content.
3066 (tui_source_window_base::show_source_content): Update.
3067 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3068 * tui/tui-source.h (struct tui_source_window)
3069 <erase_source_content>: New method.
3070 * tui/tui-disasm.h (struct tui_disasm_window)
3071 <erase_source_content>: New method.
3073 2019-08-15 Tom Tromey <tom@tromey.com>
3075 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3076 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3078 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3079 * tui/tui-source.c (tui_set_source_content): Update.
3080 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3082 2019-08-15 Tom Tromey <tom@tromey.com>
3084 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3085 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3087 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3089 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3091 (tui_source_window::maybe_update): Update.
3093 2019-08-15 Tom Tromey <tom@tromey.com>
3095 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3096 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3098 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3100 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3102 (tui_disasm_window::maybe_update): Update.
3104 2019-08-15 Tom Tromey <tom@tromey.com>
3106 * tui/tui-winsource.h (struct tui_source_window_base)
3107 <maybe_update>: Declare.
3108 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3110 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3112 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3113 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3115 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3117 2019-08-15 Tom Tromey <tom@tromey.com>
3119 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3121 2019-08-15 Tom Tromey <tom@tromey.com>
3123 * tui/tui-wingeneral.c: Include tui-stack.h.
3124 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3125 (struct tui_locator_window): Move from tui-data.h.
3126 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3127 (tui_initialize_static_data): Move from tui-data.c.
3128 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3129 (struct tui_locator_window): Move to tui-stack.c.
3130 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3131 (tui_initialize_static_data): Move to tui-stack.c.
3133 2019-08-15 Tom Tromey <tom@tromey.com>
3135 * tui/tui-layout.c (show_source_disasm_command)
3136 (show_source_or_disasm_and_command): Use make_visible method, not
3138 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3141 2019-08-15 Tom Tromey <tom@tromey.com>
3143 * tui/tui-wingeneral.h (tui_make_window): Update.
3144 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3146 (tui_gen_win_info::make_visible): Update.
3147 * tui/tui-regs.c (tui_data_window::display_registers_from):
3149 * tui/tui-layout.c (show_source_disasm_command)
3150 (show_source_or_disasm_and_command): Update.
3151 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3152 (enum tui_box): Remove.
3153 (struct tui_win_info) <can_box>: New method.
3154 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3157 2019-08-15 Tom de Vries <tdevries@suse.de>
3159 * linux-nat-trad.c: Include gdbarch.h.
3161 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3163 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3166 2019-08-14 Tom Tromey <tromey@adacore.com>
3168 * darwin-nat.c: Include gdbarch.h.
3169 * darwin-nat-info.c: Include gdbarch.h.
3171 2019-08-13 Tom Tromey <tom@tromey.com>
3173 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3175 * tui/tui-data.c (tui_initialize_static_data): Update.
3177 2019-08-13 Tom Tromey <tom@tromey.com>
3179 * tui/tui-winsource.h (struct tui_exec_info_window)
3180 <~tui_exec_info_window, maybe_allocate_content, get_content,
3182 (struct tui_source_window_base) <set_exec_info_content,
3183 show_exec_info_content>: Don't declare.
3184 * tui/tui-winsource.c
3185 (tui_exec_info_window::maybe_allocate_content): Remove.
3186 (tui_source_window_base::update_exec_info): Rename from
3187 set_exec_info_content.
3188 (tui_source_window_base::show_exec_info_content)
3189 (tui_source_window_base::update_exec_info): Remove.
3191 2019-08-13 Tom Tromey <tom@tromey.com>
3193 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3195 * tui/tui-winsource.c (tui_update_source_window_as_is)
3196 (tui_update_source_windows_with_addr, tui_erase_source_content):
3198 (tui_clear_exec_info_content): Remove.
3200 2019-08-13 Tom Tromey <tom@tromey.com>
3202 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3204 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3205 call tui_erase_exec_info_content.
3206 (tui_clear_exec_info_content): Rename from
3207 tui_erase_exec_info_content.
3208 (tui_clear_exec_info_content): Delete.
3210 2019-08-13 Tom Tromey <tom@tromey.com>
3212 * tui/tui-winsource.h (struct tui_source_window_base)
3213 <show_exec_info_content>: Declare.
3214 (tui_show_exec_info_content): Don't declare.
3215 * tui/tui-winsource.c
3216 (tui_source_window_base::show_exec_info_content): Rename from
3217 tui_show_exec_info_content.
3218 (tui_source_window_base::update_exec_info): Update.
3220 2019-08-13 Tom Tromey <tom@tromey.com>
3222 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3223 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3224 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3225 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3226 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3227 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3230 2019-08-13 Tom Tromey <tom@tromey.com>
3232 * tui/tui-winsource.h (struct tui_source_window_base)
3233 <update_exec_info>: Declare.
3234 (tui_update_exec_info): Don't declare.
3235 * tui/tui-winsource.c (tui_update_source_window_as_is)
3236 (tui_source_window_base::refresh_all)
3237 (tui_update_all_breakpoint_info): Update.
3238 (tui_source_window_base::update_exec_info): Rename from
3239 tui_update_exec_info.
3240 * tui/tui-stack.c (tui_show_frame_info): Update.
3242 2019-08-13 Tom Tromey <tom@tromey.com>
3244 * tui/tui-winsource.h (struct tui_source_window_base)
3245 <set_exec_info_content>: Declare.
3246 (tui_set_exec_info_content): Don't declare.
3247 * tui/tui-winsource.c
3248 (tui_source_window_base::set_exec_info_content): Rename from
3249 tui_set_exec_info_content.
3250 (tui_update_exec_info): Update.
3252 2019-08-13 Tom Tromey <tom@tromey.com>
3254 * tui/tui-winsource.h (struct tui_source_window_base)
3255 <show_source_content>: Declare.
3256 (tui_show_source_content): Don't declare.
3257 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3258 (tui_source_window_base::show_source_content): Rename from
3259 tui_show_source_content.
3260 (tui_source_window_base::refresh_all): Update.
3261 * tui/tui-layout.c (show_source_disasm_command)
3262 (show_source_or_disasm_and_command): Update.
3264 2019-08-13 Tom Tromey <tom@tromey.com>
3266 * tui/tui-winsource.c (tui_erase_source_content)
3267 (tui_show_source_content, tui_source_window_base::refresh_all):
3269 * tui/tui-wingeneral.h
3270 (tui_check_and_display_highlight_if_needed): Don't declare.
3271 * tui/tui-wingeneral.c
3272 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3273 check_and_display_highlight_if_needed.
3274 * tui/tui-win.c (tui_rehighlight_all)
3275 (tui_win_info::make_visible_with_new_height): Update.
3276 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3277 (tui_data_window::erase_data_content)
3278 (tui_data_window::display_all_data): Update.
3279 * tui/tui-data.h (struct tui_win_info)
3280 <check_and_display_highlight_if_needed>: Declare.
3282 2019-08-13 Tom Tromey <tom@tromey.com>
3284 * tui/tui-win.c (tui_resize_all): Call
3285 tui_delete_invisible_windows.
3286 * tui/tui-layout.c (show_layout): Call
3287 tui_delete_invisible_windows.
3288 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3289 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3291 2019-08-13 Tom Tromey <tom@tromey.com>
3293 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3294 tui_add_win_to_layout.
3296 2019-08-13 Tom Tromey <tom@tromey.com>
3298 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3299 * tui/tui-layout.c (tui_default_win_height): Now static.
3301 2019-08-13 Tom Tromey <tom@tromey.com>
3303 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3305 (show_source_disasm_command, show_source_or_disasm_and_command):
3306 Don't check current layout.
3308 2019-08-13 Tom Tromey <tom@tromey.com>
3310 * tui/tui-wingeneral.c (make_all_visible): Remove.
3311 (tui_make_all_invisible): Simplify.
3312 * tui/tui-layout.c (tui_make_all_invisible): Move from
3313 tui-wingeneral.c; simplify.
3314 (show_layout): Hoist call to tui_make_all_invisible.
3315 (show_data): Don't call tui_make_all_invisible.
3317 2019-08-13 Tom Tromey <tom@tromey.com>
3319 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3320 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3322 2019-08-13 Tom Tromey <tom@tromey.com>
3324 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3326 (show_source_disasm_command, show_data)
3327 (show_source_or_disasm_and_command): Don't use
3328 tui_set_current_layout_to.
3329 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3330 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3332 (tui_set_current_layout_to): Remove.
3334 2019-08-13 Tom Tromey <tom@tromey.com>
3336 * tui/tui-layout.c (tui_set_layout): Update.
3337 * tui/tui-data.h (struct tui_layout_def): Remove.
3338 (tui_layout_def): Don't declare.
3339 * tui/tui-data.c (layout_def): Remove.
3340 (tui_layout_def): Remove.
3342 2019-08-13 Tom Tromey <tom@tromey.com>
3344 * tui/tui-winsource.h (struct tui_source_window_base)
3345 <clear_detail>: No longer "override".
3346 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3347 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3348 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3349 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3351 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3353 2019-08-13 Tom Tromey <tromey@adacore.com>
3355 * tracepoint.c: Don't include readline.h or history.h.
3357 2019-08-12 Tom Tromey <tom@tromey.com>
3359 * configure: Rebuild.
3360 * configure.ac: Check for readline 7.
3361 * NEWS: Mention readline 7 requirement.
3364 2019-08-12 Tom Tromey <tom@tromey.com>
3366 * mingw-hdep.c (gdb_select): Remove readline hack.
3368 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3370 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3371 when the function fails.
3373 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3375 * s390-tdep.c (s390_type_align): New function.
3376 (s390_gdbarch_init): Set it as type_align gdbarch method.
3378 2019-08-09 Tom de Vries <tdevries@suse.de>
3381 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3382 pc_low with relocation offset.
3384 2019-08-07 Tom Tromey <tromey@adacore.com>
3386 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3387 (print_frame_args): Update.
3388 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3390 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3391 * frame.h (struct frame_arg): Add initializers.
3392 <error>: Now a unique_xmalloc_ptr.
3394 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3396 * NEWS: Expand the Pointer Authentication entry.
3397 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3398 (aarch64_frame_unmask_lr): ... to this.
3399 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3400 Call aarch64_frame_unmask_lr.
3401 * frame.c (struct frame_info): Add "masked" variable.
3402 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3403 (fprint_frame): Check for masked pc.
3404 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3406 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3407 * stack.c (print_frame): Check for masked pc.
3409 2019-08-06 Tom Tromey <tom@tromey.com>
3411 * stabsread.c (patch_block_stabs, read_one_struct_field)
3412 (read_enum_type): Use obstack_strndup.
3413 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3414 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3415 * dwarf2read.c (guess_full_die_structure_name)
3416 (anonymous_struct_prefix): Use obstack_strndup.
3417 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3418 * c-exp.y (yylex): Use obstack_strndup.
3419 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3420 (write_var_or_type): Use obstack_strndup.
3422 2019-08-06 Tom Tromey <tom@tromey.com>
3424 * symfile.c (reread_symbols): Use obstack_strdup.
3425 * stabsread.c (read_type): Use obstack_strdup.
3426 * gdb_obstack.h (obstack_strdup): New overload.
3427 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3428 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3429 (dwarf2_canonicalize_name): Use obstack_strdup.
3430 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3431 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3434 2019-08-06 Tom Tromey <tom@tromey.com>
3436 * gdb_obstack.h (obstack_strdup): Define.
3437 * gdb_obstack.c (obstack_strdup): Don't define.
3439 2019-08-06 Tom Tromey <tom@tromey.com>
3441 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3443 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3445 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3446 * stabsread.c (common_block_start): Use obstack_strdup.
3447 * objfiles.c (set_objfile_main_name, objfile): Use
3449 * namespace.c (add_using_directive): Use obstack_strdup.
3450 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3451 * jit.c (finalize_symtab): Use obstack_strdup.
3452 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3453 (guess_partial_die_structure_name, partial_die_info::fixup)
3454 (dwarf2_name): Use obstack_strdup.
3455 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3457 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3458 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3460 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3462 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3464 * unittests/help-doc-selftests.c: New file.
3465 * Makefile.in: Add the new file.
3467 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3469 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3470 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3471 the full first line, except when FOR_VALUE_PREFIX. In this case,
3472 the trailing '.' is not output, and the first character is uppercased.
3473 (print_help_for_command): Update call to print_doc_line.
3474 (print_doc_of_command): Likewise.
3475 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3476 * cli/cli-option.c (append_indented_doc): Do not append newline.
3477 (build_help_option): Append newline after first appended_indented_doc
3478 only if a second call is done.
3479 (build_help): Append 2 new lines before each option, except the first
3481 * compile/compile.c (_initialize_compile): Add new lines after
3482 %OPTIONS%, when not at the end of the help.
3483 Change help doc or code
3484 producing the help doc to respect the invariants.
3485 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3486 Also removed the new line after 'Options:', as all other commands
3487 do not put an empty line between 'Options:' and the first option.
3488 * printcmd.c (_initialize_printcmd): Likewise.
3489 * stack.c (_initialize_stack): Likewise.
3490 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3491 incorrectly telling COMMAND is optional.
3492 * ada-lang.c (_initialize_ada_language): Change help doc or code
3493 producing the help doc to respect the invariants.
3494 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3495 * breakpoint.c (_initialize_breakpoint): Likewise.
3496 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3497 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3498 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3499 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3500 _initialize_cli_style): Likewise.
3501 * corelow.c (core_target_info): Likewise.
3502 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3503 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3504 * filesystem.c (_initialize_filesystem): Likewise.
3505 * frame.c (_initialize_frame): Likewise.
3506 * gnu-nat.c (add_task_commands): Likewise.
3507 * infcall.c (_initialize_infcall): Likewise.
3508 * infcmd.c (_initialize_infcmd): Likewise.
3509 * interps.c (_initialize_interpreter): Likewise.
3510 * language.c (_initialize_language): Likewise.
3511 * linux-fork.c (_initialize_linux_fork): Likewise.
3512 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3513 * maint.c (_initialize_maint_cmds): Likewise.
3514 * memattr.c (_initialize_mem): Likewise.
3515 * printcmd.c (_initialize_printcmd): Likewise.
3516 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3518 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3519 * record-btrace.c (_initialize_record_btrace): Likewise.
3520 * record-full.c (_initialize_record_full): Likewise.
3521 * record.c (_initialize_record): Likewise.
3522 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3523 * regcache.c (_initialize_regcache): Likewise.
3524 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3525 _initialize_remote): Likewise.
3526 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3527 * serial.c (_initialize_serial): Likewise.
3528 * skip.c (_initialize_step_skip): Likewise.
3529 * source.c (_initialize_source): Likewise.
3530 * stack.c (_initialize_stack): Likewise.
3531 * symfile.c (_initialize_symfile): Likewise.
3532 * symtab.c (_initialize_symtab): Likewise.
3533 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3534 * top.c (init_main): Likewise.
3535 * tracefile-tfile.c (tfile_target_info): Likewise.
3536 * tracepoint.c (_initialize_tracepoint): Likewise.
3537 * tui/tui-win.c (_initialize_tui_win): Likewise.
3538 * utils.c (add_internal_problem_command): Likewise.
3539 * valprint.c (value_print_option_defs): Likewise.
3541 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3544 * configure.ac: Drop enable-libmcheck support.
3545 * configure, config.in: Rebuild.
3546 * libmcheck.m4: Remove.
3547 * acinclude.m4: Don't include it.
3548 * Makefile.in: Don't distribute it.
3549 * top.c (print_gdb_configuration): Don't mention it.
3551 2019-08-06 Tom Tromey <tom@tromey.com>
3553 * utils.c (set_output_style): Sometimes pass stream to
3555 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3556 * record-btrace.c (btrace_insn_history): Update.
3557 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3559 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3560 Update initializers.
3561 <m_uiout>: New field.
3563 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3564 Remove "uiout" parameter.
3565 (dump_insns): Update.
3566 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3567 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3569 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3571 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3572 (error_in_psymtab_expansion): Likewise.
3573 (lookup_symbol_via_quick_fns): Likewise.
3574 (basic_lookup_transparent_type_quick): Likewise.
3575 (basic_lookup_transparent_type_1): Likewise.
3577 2019-08-06 Tom Tromey <tromey@adacore.com>
3579 * source.c (last_source_error): Now bool.
3580 (print_source_lines_base): Make "noprint" bool. Only open
3581 source file when last_source_visited changes.
3583 2019-08-06 Tom Tromey <tromey@adacore.com>
3585 * annotate.c (annotate_source_line): Use g_source_cache.
3586 * source-cache.c (source_cache::get_plain_source_lines): Change
3587 parameters. Populate m_offset_cache.
3588 (source_cache::ensure): New method.
3589 (source_cache::get_line_charpos): New method.
3590 (extract_lines): Move lower. Change parameters.
3591 (source_cache::get_source_lines): Move lower.
3592 * source-cache.h (class source_cache): Update comment.
3593 <get_line_charpos>: New method.
3594 <get_source_lines>: Update comment.
3595 <clear>: Clear m_offset_cache.
3596 <get_plain_source_lines>: Change parameters.
3597 <ensure>: New method
3598 <m_offset_cache>: New member.
3599 * source.c (forget_cached_source_info_for_objfile): Update.
3600 (info_source_command): Use g_source_cache.
3601 (find_source_lines, open_source_file_with_line_charpos): Remove.
3602 (print_source_lines_base, search_command_helper): Use g_source_cache.
3603 * source.h (open_source_file_with_line_charpos): Don't declare.
3604 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3605 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3608 2019-08-06 Tom Tromey <tromey@adacore.com>
3610 * source-cache.c (source_cache::get_plain_source_lines):
3611 Remove "first_line" and "last_line" parameters.
3612 (source_cache::get_source_lines): Cache plain text.
3613 * source-cache.h (class source_cache)
3614 <get_plain_source_lines>: Update.
3616 2019-08-06 Tom Tromey <tromey@adacore.com>
3618 * source-cache.c (extract_lines): No longer a method.
3619 Changed type of parameter. Include final newline.
3620 (selftests::extract_lines_test): New function.
3621 (_initialize_source_cache): Likewise.
3622 * source-cache.h (class source_cache)
3623 <extract_lines>: Don't declare.
3625 2019-08-06 Tom Tromey <tromey@adacore.com>
3627 * breakpoint.c (init_breakpoint_sal): Update.
3628 (breakpoint): Update.
3629 * breakpoint.h (struct breakpoint) <filter>: Now a
3632 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3634 * NEWS: Mention dictionary access on blocks.
3635 * python/py-block.c (blpy_getitem): New function.
3636 (block_object_as_mapping): New struct.
3637 (block_object_type): Use new struct for tp_as_mapping field.
3639 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3641 * objfiles.h (objfile): Add a comment describing partial symbols.
3643 2019-08-05 Tom Tromey <tromey@adacore.com>
3645 * compile/compile.c (_initialize_compile): Use _(), not N_().
3646 * thread.c (_initialize_thread): Use _(), not N_().
3647 * stack.c (_initialize_stack): Use _(), not N_().
3648 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3650 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3652 * dwarf2read.c (struct dw2_symtab_iterator):
3653 <want_specific_block>: Remove.
3654 <block_index>: Change type to gdb::optional.
3655 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3656 change type of BLOCK_INDEX parameter to gdb::optional.
3657 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3658 (dw2_lookup_symbol): Don't pass argument for
3659 WANT_SPECIFIC_BLOCK.
3660 (dw2_expand_symtabs_for_function): Don't pass argument for
3661 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3662 (class dw2_debug_names_iterator)
3663 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3664 parameter, change BLOCK_INDEX type to gdb::optional.
3665 <m_want_specific_block>: Remove.
3666 <m_block_index>: Change type to gdb::optional.
3667 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3668 gdb::optional. Re-write in function of gdb::optional.
3669 (dw2_debug_names_lookup_symbol): Don't pass argument for
3670 WANT_SPECIFIC_BLOCK.
3671 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3672 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3675 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3677 * NEWS: Mention changes to "info sources" command.
3679 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3681 * symtab.c (filename_partial_match_opts): New struct type.
3682 (struct output_source_filename_data): New members
3683 regexp, c_regexp, partial_match.
3684 (output_source_filename): Use new members to decide to print file.
3685 (info_sources_option_defs): New variable.
3686 (make_info_sources_options_def_group, print_info_sources_header,
3687 info_sources_command_completer):
3689 (info_sources_command): Read new optional arguments.
3690 (_initialize_symtab): Update info sources help.
3692 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3694 * ada-lang.c (exception_support_info_v0): Renamed from...
3695 (default_exception_support_info): ... this. Create new
3697 (ada_has_this_exception_support): Look up catch_handlers_sym.
3698 (ada_exception_support_info_sniffer): Try v0 after default.
3700 2019-08-01 Tom Tromey <tromey@adacore.com>
3702 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3705 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3707 * s12z-tdep.c: Fix include path for s12z-opc.h.
3709 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3711 * NEWS: Require GNU make 3.82.
3713 2019-07-16 Tom Tromey <tom@tromey.com>
3715 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3718 2019-07-30 Tom Tromey <tromey@adacore.com>
3720 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3722 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3724 * printcmd.c (print_address_symbolic): Print negative offsets.
3725 (build_address_symbolic): Force signed arithmetic when computing
3728 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3730 PR/24474: Add a function to lookup static variables.
3731 * NEWS: Mention this new function.
3732 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3733 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3734 * python/python.c (python_GdbMethods): Add new function.
3736 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3738 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3739 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3740 (objfpy_lookup_static_symbol): New function.
3741 (objfile_object_methods): Add new functions.
3743 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3745 * NEWS: Mention 'set|show print frame-info'. Mention new
3746 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3747 backtrace argument. Mention that python frame filtering code
3748 is now consistent with what 'backtrace' command prints.
3750 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3752 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3754 (print_frame_info_auto, print_frame_info_source_line,
3755 print_frame_info_location, print_frame_info_source_and_location,
3756 print_frame_info_location_and_address, print_frame_info_short_location):
3758 (struct frame_print_options): New member print_frame_info.
3759 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3760 * stack.h (get_user_print_what_frame_info): New declaration.
3761 (frame_show_address): New declaration.
3762 * stack.c (print_frame_arguments_choices): New value 'presence'.
3763 (print_frame_info_auto, print_frame_info_source_line,
3764 print_frame_info_location, print_frame_info_source_and_location,
3765 print_frame_info_location_and_address, print_frame_info_short_location,
3766 print_frame_info_choices, print_frame_info_print_what): New definitions.
3767 (print_frame_args): Only print dots for args if print frame-arguments
3769 (frame_print_option_defs): New element for "frame-info".
3770 (get_user_print_what_frame_info): New function.
3771 (frame_show_address): Make non static. Move comment to stack.h.
3772 (print_frame_info_to_print_what): New function.
3773 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3774 to decide what to print.
3775 (backtrace_command_1): Handle the new print_frame_arguments_presence
3777 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3778 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3779 (py_print_frame): In non-mi mode, use LOCATION as default for
3780 print_what, similarly to frame information printed directly by
3781 backtrace command. Handle frame-info user option in non MI mode.
3783 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3785 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3786 Add case for debugging 32-bit target on 64-bit host. Revise
3789 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3791 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3792 instead of find_function_entry_range_from_pc.
3794 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3796 * stack.c (find_frame_funname): Remove code which preferred
3797 minsym over symtab sym in "certain pathological cases".
3799 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3800 parameter. Change type of "do_demangle" to bool.
3801 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3802 Pass suitable "prefer_sym_over_minsym" flag to
3803 build_address_symbolic(). Don't output "+" for negative offsets.
3804 * printcmd.c (print_address_symbolic): Update invocation of
3805 build_address_symbolic to include a "prefer_sym_over_minsym"
3807 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3808 Restrict cases in which use of minimal symbol is preferred to that
3809 of a found symbol. Update comments.
3811 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3812 for entry pc when entry pc is out of range for that FDE.
3814 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3817 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3820 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3822 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3823 this function's Python signature.
3826 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3828 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3829 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3830 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3831 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3832 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3835 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3837 * h8300-tdep.c (h8300_register_name_common): New.
3838 h8300_register_name): Use h8300_register_name_common.
3839 (h8300s_register_name): Likewise.
3840 (h8300sx_register_name): Likewise.
3841 (h8300h_register_nam): New.
3842 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3845 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3847 * arm-tdep.c (arm_skip_cmse_entry): New function.
3848 (arm_is_sgstubs_section): New function.
3849 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3851 2019-07-22 Tom Tromey <tom@tromey.com>
3853 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3856 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3858 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3861 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3863 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3864 so that GDB doesn't match any msymbols when searching in the
3866 (print_symbol_info): Print using typedef_print or type_print based
3867 on the type of the symbol. Add updated FIXME comment moved from...
3868 (_initialize_symtab): ... move and update FIXME comment to above.
3870 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3872 * NEWS: Mention adding -q option to "info types".
3873 * symtab.c (struct info_types_options): New struct.
3874 (info_types_options_defs): New variable.
3875 (make_info_types_options_def_group): New function.
3876 (info_types_command): Use gdb::option framework to parse options.
3877 (info_types_command_completer): New function.
3878 (_initialize_symtab): Extend the help text on "info types" and
3879 register command completer.
3881 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3883 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3884 (lookup_symbol_in_objfile): Change int to block_enum and add a
3885 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3887 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3889 * MAINTAINERS (Write After Approval): Add self.
3891 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3893 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3894 instruction to the dummy code region.
3896 2019-07-19 Tom Tromey <tromey@adacore.com>
3898 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3899 (ARGSUSED, PARAMS, __func__): Remove rules.
3901 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3903 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3904 * features/arm/arm-with-iwmmxt.c: Remove.
3905 * features/arm/arm-with-iwmmxt.xml: Remove.
3906 * features/arm/arm-with-m-fpa-layout.c: Remove.
3907 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3908 * features/arm/arm-with-m-vfp-d16.c: Remove.
3909 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3910 * features/arm/arm-with-m.c: Remove.
3911 * features/arm/arm-with-m.xml: Remove.
3912 * features/arm/arm-with-neon.c: Remove.
3913 * features/arm/arm-with-neon.xml: Remove.
3914 * features/arm/arm-with-vfpv2.c: Remove.
3915 * features/arm/arm-with-vfpv2.xml: Remove.
3916 * features/arm/arm-with-vfpv3.c: Remove.
3917 * features/arm/arm-with-vfpv3.xml: Remove.
3919 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3921 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3923 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3925 * arch/aarch32.c (aarch32_create_target_description): Create
3926 target descriptions using features.
3927 * arch/arm.c (arm_create_target_description)
3928 (arm_create_mprofile_target_description): Likewise.
3929 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3931 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3933 * Makefile.in: Add new files.
3934 * aarch32-tdep.c: New file.
3935 * aarch32-tdep.h: New file.
3936 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3937 Call aarch32_read_description.
3938 * arch/aarch32.c: New file.
3939 * arch/aarch32.h: New file.
3940 * arch/arm.c (arm_create_target_description)
3941 (arm_create_mprofile_target_description): New function.
3942 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3943 (arm_create_target_description)
3944 (arm_create_mprofile_target_description): New declaration.
3945 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3946 read_description functions.
3947 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3949 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3950 * arm-tdep.c (tdesc_arm_list): New variable.
3951 (arm_register_g_packet_guesses): Call create description functions.
3952 (arm_read_description) (arm_read_mprofile_description): New
3954 * arm-tdep.h (arm_read_description)
3955 (arm_read_mprofile_description): Add declaration.
3956 * configure.tgt: Add new files.
3958 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3960 * top.c (new_ui_command): Open specified terminal just once.
3962 2019-07-18 Tom Tromey <tromey@adacore.com>
3964 * symtab.c (main_name): Constify return type.
3965 * symfile.c (set_initial_language): Update.
3966 * symtab.h (main_name): Constify return type.
3968 2019-07-17 Tom Tromey <tom@tromey.com>
3970 * tui/tui-winsource.c (tui_update_source_window)
3971 (tui_update_source_window_as_is)
3972 (tui_update_source_windows_with_line): Remove return.
3973 * tui/tui-disasm.c (tui_show_disassem)
3974 (tui_show_disassem_and_update_source): Remove return.
3975 * tui/tui.c (tui_reset): Remove return.
3976 * tui/tui-wingeneral.c
3977 (tui_check_and_display_highlight_if_needed): Remove return.
3979 2019-07-17 Tom Tromey <tom@tromey.com>
3981 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3983 2019-07-17 Tom Tromey <tom@tromey.com>
3985 * tui/tui-winsource.h (struct tui_exec_info_window)
3986 (struct tui_source_window_base): Move from tui-data.h.
3987 * tui/tui-winsource.c: Move many method definitions from
3988 elsewhere. Remove "structuring" comments.
3989 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3990 (tui_source_window_base::refresh_window): Move to
3992 * tui/tui-win.c (tui_source_window_base::refresh_all)
3993 (tui_source_window_base::update_tab_width)
3994 (tui_source_window_base::set_new_height)
3995 (tui_source_window_base::do_make_visible_with_new_height): Move to
3997 * tui/tui-source.h: Update.
3998 * tui/tui-source.c (tui_source_window_base::reset): Move to
4000 * tui/tui-disasm.h: Update.
4001 * tui/tui-data.h (struct tui_exec_info_window): Move to
4003 (struct tui_source_window_base): Likewise.
4004 * tui/tui-data.c (tui_source_window_base::clear_detail)
4005 (tui_source_window_base, ~tui_source_window_base): Move to
4008 2019-07-17 Tom Tromey <tom@tromey.com>
4010 * tui/tui-win.c (tui_resize_all)
4011 (tui_source_window_base::update_tab_width)
4012 (tui_adjust_win_heights): Update.
4013 (tui_win_info::make_invisible_and_set_new_height): Rename from
4014 make_invisible_and_set_new_height.
4015 * tui/tui-data.h (struct tui_win_info)
4016 <make_invisible_and_set_new_height>: New method.
4018 2019-07-17 Tom Tromey <tom@tromey.com>
4020 * tui/tui.c: Update.
4021 * tui/tui-source.h (struct tui_source_window): Move from
4023 * tui/tui-layout.c: Update.
4024 * tui/tui-disasm.c: Update.
4025 * tui/tui-data.h (struct tui_source_window): Move to
4028 2019-07-17 Tom Tromey <tom@tromey.com>
4030 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4032 * tui/tui-data.h (struct tui_disasm_window): Move to
4035 2019-07-17 Tom Tromey <tom@tromey.com>
4037 * tui/tui-regs.h (struct tui_data_item_window): Move from
4039 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4040 * tui/tui-data.h (struct tui_data_item_window): Move to
4042 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4044 2019-07-17 Tom Tromey <tom@tromey.com>
4046 * tui/tui.c: Update.
4047 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4048 (tui_cmd_window::max_height): Move to tui-command.c.
4049 * tui/tui-layout.c: Update.
4050 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4051 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4053 * tui/tui-command.h (struct tui_cmd_window): Move from
4055 * tui/tui-command.c: Remove "structuring" comments.
4056 (tui_cmd_window::clear_detail)
4057 (tui_cmd_window::do_make_visible_with_new_height)
4058 (tui_cmd_window::max_height): Move from elsewhere.
4060 2019-07-17 Tom Tromey <tom@tromey.com>
4062 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4064 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4065 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4067 2019-07-17 Tom Tromey <tom@tromey.com>
4069 * tui/tui.c: Update.
4070 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4072 * tui/tui-windata.h: Remove file.
4073 * tui/tui-windata.c: Remove file.
4074 * tui/tui-win.c (tui_data_window::set_new_height)
4075 (tui_data_window::do_make_visible_with_new_height): Move to
4077 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4078 * tui/tui-regs.c: Remove "structuring" comments.
4079 (tui_data_window::first_data_item_displayed)
4080 (tui_data_window::delete_data_content_windows)
4081 (tui_data_window::erase_data_content)
4082 (tui_data_window::display_all_data)
4083 (tui_data_window::refresh_all)
4084 (tui_data_window::do_scroll_vertical)
4085 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4086 (tui_data_window::do_make_visible_with_new_height)
4087 (tui_data_window::refresh_window): Move from elsewhere.
4088 (_initialize_tui_regs): Move to end of file.
4089 * tui/tui-layout.c: Update.
4090 * tui/tui-hooks.c: Update.
4091 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4092 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4094 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4096 2019-07-17 Tom Tromey <tom@tromey.com>
4098 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4101 2019-07-17 Tom Tromey <tom@tromey.com>
4103 * tui/tui-win.c (tui_source_window_base::set_new_height)
4104 (tui_source_window_base::do_make_visible_with_new_height): Use
4105 m_has_locator field directly.
4106 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4108 (struct tui_source_window_base) <has_locator>: Likewise.
4110 2019-07-17 Tom Tromey <tom@tromey.com>
4112 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4114 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4116 * tui/tui-win.c (tui_source_window_base::set_new_height)
4117 (tui_source_window_base::set_new_height)
4118 (make_invisible_and_set_new_height)
4119 (tui_source_window_base::do_make_visible_with_new_height)
4120 (tui_source_window_base::do_make_visible_with_new_height):
4122 * tui/tui-layout.c (show_source_disasm_command, show_data)
4123 (show_source_or_disasm_and_command): Update.
4124 * tui/tui-layout.c (show_layout): Update.
4126 2019-07-17 Tom Tromey <tom@tromey.com>
4128 * tui/tui-layout.c (make_data_window): Remove.
4129 (show_data): Unify creation and re-initialization cases.
4131 2019-07-17 Tom Tromey <tom@tromey.com>
4133 * tui/tui-layout.c (make_source_window, make_disasm_window):
4135 (show_data): Unify creation and re-initialization cases.
4137 2019-07-17 Tom Tromey <tom@tromey.com>
4139 * tui/tui-layout.c (make_command_window): Remove.
4140 (show_source_disasm_command, show_source_or_disasm_and_command):
4141 Unify creation and re-initialization cases.
4143 2019-07-17 Tom Tromey <tom@tromey.com>
4145 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4146 creation and re-initialization cases.
4148 2019-07-17 Tom Tromey <tom@tromey.com>
4150 * tui/tui-regs.c (tui_get_register): Return void.
4152 2019-07-17 Tom Tromey <tom@tromey.com>
4154 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4157 2019-07-17 Tom Tromey <tom@tromey.com>
4159 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4162 2019-07-17 Tom Tromey <tom@tromey.com>
4164 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4165 * tui/tui-regs.c (tui_reg_layout): New function.
4166 (tui_show_registers, tui_reg_command): Use it.
4167 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4168 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4170 (tui_layout_command): Remove.
4172 2019-07-17 Tom Tromey <tom@tromey.com>
4174 * tui/tui-layout.h (tui/tui-layout): Return void.
4175 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4177 2019-07-17 Tom Tromey <tom@tromey.com>
4179 * tui/tui-layout.c (show_source_disasm_command, show_data):
4181 (reset_locator): Remove.
4182 (show_source_or_disasm_and_command): Update.
4184 2019-07-17 Tom Tromey <tom@tromey.com>
4186 * tui/tui-source.c (tui_source_window_base::reset): Remove
4188 * tui/tui-layout.c (make_command_window, make_source_window)
4189 (make_disasm_window, make_data_window)
4190 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4191 (reset_locator, show_source_or_disasm_and_command): Update.
4192 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4194 (struct tui_source_window_base) <reset>: Likewise.
4196 2019-07-17 Tom Tromey <tom@tromey.com>
4198 * tui/tui-layout.c (show_source_disasm_command): Use
4200 (reset_locator): New function.
4201 (init_and_make_win): Remove.
4202 (show_source_or_disasm_and_command): Use reset_locator.
4204 2019-07-17 Tom Tromey <tom@tromey.com>
4206 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4208 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4210 * tui/tui-source.c (tui_source_window_base::reset): New method.
4211 * tui/tui-layout.c (make_command_window): Don't call
4213 (make_source_window, make_disasm_window): Don't call
4214 make_source_or_disasm_window.
4215 (make_data_window): Don't call init_and_make_win. Change calling
4217 (show_source_disasm_command, show_data): Simplify.
4218 (make_source_or_disasm_window): Remove.
4219 (show_source_or_disasm_and_command): Simplify.
4220 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4221 (struct tui_source_window_base) <reset>: Likewise.
4222 <execution_info>: Remove initializer.
4223 * tui/tui-data.c (tui_source_window_base): Initialize
4226 2019-07-17 Tom Tromey <tom@tromey.com>
4228 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4231 2019-07-17 Tom Tromey <tom@tromey.com>
4233 * tui/tui.c (tui_rl_other_window): Update.
4234 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4235 superclass method first. Always iterate over regs_content.
4236 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4238 * tui/tui-win.c (tui_set_focus_command): Update.
4240 2019-07-17 Tom Tromey <tom@tromey.com>
4242 * tui/tui-win.c (tui_set_focus_command): Rename from
4243 tui_set_focus. Call tui_enable.
4244 (tui_set_focus_command): Remove.
4246 2019-07-17 Tom Tromey <tom@tromey.com>
4248 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4250 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4252 (tui_data_window::refresh_window): Call refresh_window on data
4253 items. Always call superclass refresh_window.
4254 (tui_win_info::refresh): Remove.
4255 (tui_source_window_base::refresh_window): Update.
4256 (tui_refresh_all): Update.
4257 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4259 (show_source_or_disasm_and_command): Likewise.
4260 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4261 (struct tui_source_window_base) <refresh>: Likewise.
4263 2019-07-17 Tom Tromey <tom@tromey.com>
4265 * tui/tui-winsource.c (tui_clear_source_content)
4266 (tui_show_source_content): Update.
4267 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4268 whether content is empty.
4269 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4272 2019-07-17 Tom Tromey <tom@tromey.com>
4274 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4276 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4277 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4279 2019-07-17 Tom Tromey <tom@tromey.com>
4281 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4282 (struct tui_data_item_window): Update.
4284 2019-07-17 Tom Tromey <tom@tromey.com>
4286 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4287 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4290 2019-07-17 Tom Tromey <tom@tromey.com>
4292 * tui/tui-winsource.h (tui_erase_source_content)
4293 (tui_clear_source_content): Remove "display_prompt" parameter.
4294 * tui/tui-winsource.c (tui_update_source_window_as_is)
4295 (tui_update_source_windows_with_addr): Update.
4296 (tui_clear_source_content): Remove "display_prompt" parameter.
4297 (tui_erase_source_content): Likewise. Simplify.
4298 (tui_show_source_content): Update.
4299 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4300 * tui/tui-stack.c (tui_show_frame_info): Update.
4301 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4304 2019-07-17 Tom Tromey <tom@tromey.com>
4306 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4307 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4309 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4312 2019-07-17 Tom Tromey <tom@tromey.com>
4314 * tui/tui-winsource.c (tui_clear_source_content)
4315 (tui_show_source_content, tui_show_exec_info_content)
4316 (tui_clear_exec_info_content): Update.
4317 * tui/tui-stack.c (tui_show_locator_content): Update.
4318 (tui_show_frame_info): Update.
4319 * tui/tui-source.h (tui_source_window): Don't declare.
4320 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4321 from tui_source_is_displayed.
4322 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4324 (struct tui_source_window_base) <content_in_use>: New field. Now
4326 (struct tui_source_window) <showing_source_p>: New method.
4327 (TUI_SRC_WIN): Change cast.
4328 * tui/tui-data.c (tui_initialize_static_data): Update.
4330 2019-07-17 Tom Tromey <tom@tromey.com>
4332 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4334 * tui/tui-source.c (tui_source_window::location_matches_p): New
4336 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4338 * tui/tui-data.h (struct tui_source_window_base)
4339 <location_matches_p>: New method.
4340 (struct tui_source_window, struct tui_disasm_window)
4341 <location_matches_p>: Likewise.
4343 2019-07-17 Tom Tromey <tom@tromey.com>
4345 * tui/tui-win.c (tui_set_win_height_command): Rename from
4347 (tui_set_win_height_command): Remove.
4349 2019-07-17 Tom Tromey <tom@tromey.com>
4351 * tui/tui-source.c (tui_source_window): New constructor. Add
4353 (~tui_source_window): New destructor.
4354 (tui_source_window::style_changed): New method.
4355 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4356 (tui_attach_detach_observers): Update.
4357 * tui/tui-data.h (struct tui_source_window): Make constructor not
4358 inline. Add destructor.
4359 (struct tui_source_window) <style_changed>: New method.
4360 <m_observable>: New member.
4362 2019-07-17 Tom Tromey <tom@tromey.com>
4364 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4365 * tui/tui-win.c (tui_resize_all): Fix typo.
4367 2019-07-17 Tom Tromey <tom@tromey.com>
4369 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4370 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4371 (tui_refresh_all): Remove "list" parameter. Use foreach.
4372 * tui/tui-win.c (window_name_completer): Use foreach.
4373 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4374 (update_tab_width): Likewise.
4375 * tui/tui-layout.c (show_layout): Update.
4376 * tui/tui-data.h (class tui_window_iterator): New.
4377 (struct all_tui_windows): New.
4378 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4380 2019-07-17 Tom Tromey <tom@tromey.com>
4382 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4383 parameter. Don't reference globals.
4384 (tui_reg_command): Update.
4386 2019-07-17 Tom Tromey <tom@tromey.com>
4388 * tui/tui-regs.c (tui_show_registers): Simplify.
4390 2019-07-17 Tom Tromey <tom@tromey.com>
4392 * tui/tui-regs.c (tui_show_registers): Update.
4393 (tui_show_register_group): Add win_info parameter.
4395 2019-07-17 Tom Tromey <tom@tromey.com>
4397 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4398 Rename from tui_display_reg_element_at_line.
4399 (tui_data_window::display_registers_from_line): Update.
4400 * tui/tui-data.h (struct tui_data_window)
4401 <display_reg_element_at_line>: New method.
4403 2019-07-17 Tom Tromey <tom@tromey.com>
4405 * tui/tui-regs.h (tui_display_registers_from)
4406 (tui_display_registers_from_line): Don't declare.
4407 * tui/tui-windata.c (tui_data_window::display_all_data)
4408 (tui_data_window::refresh_all)
4409 (tui_data_window::do_scroll_vertical): Update.
4410 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4411 from tui_display_registers_from.
4412 (tui_display_reg_element_at_line): Update.
4413 (tui_data_window::display_registers_from_line): Rename from
4414 tui_display_registers_from_line.
4415 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4416 display_registers_from_line>: New methods.
4418 2019-07-17 Tom Tromey <tom@tromey.com>
4420 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4421 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4422 from tui_erase_data_content.
4423 (tui_data_window::display_all_data)
4424 (tui_data_window::refresh_all)
4425 (tui_data_window::do_scroll_vertical): Update.
4426 * tui/tui-regs.c (tui_show_registers): Update.
4427 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4430 2019-07-17 Tom Tromey <tom@tromey.com>
4432 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4435 (tui_data_window::delete_data_content_windows): Rename from
4436 tui_delete_data_content_windows.
4437 (tui_data_window::display_all_data)
4438 (tui_data_window::do_scroll_vertical): Update.
4439 * tui/tui-data.h (struct tui_data_window)
4440 <delete_data_content_windows>: New method.
4442 2019-07-17 Tom Tromey <tom@tromey.com>
4444 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4445 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4447 2019-07-17 Tom Tromey <tom@tromey.com>
4449 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4450 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4451 from tui_display_all_data.
4453 (tui_data_window::do_make_visible_with_new_height): Update.
4454 * tui/tui-regs.c (tui_show_registers): Update.
4455 * tui/tui-layout.c (tui_set_layout): Update.
4456 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4459 2019-07-17 Tom Tromey <tom@tromey.com>
4461 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4462 * tui/tui-windata.c (tui_display_data_from): Remove.
4463 (tui_data_window::refresh_all): Update.
4465 2019-07-17 Tom Tromey <tom@tromey.com>
4467 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4468 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4469 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4470 tui_display_registers_from_line.
4471 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4472 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4473 "force_display" parameter.
4475 2019-07-17 Tom Tromey <tom@tromey.com>
4477 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4479 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4480 Rename from tui_first_reg_element_no_inline.
4481 (tui_display_reg_element_at_line)
4482 (tui_display_registers_from_line): Update.
4483 * tui/tui-data.h (struct tui_data_window)
4484 <first_reg_element_no_inline>: New method.
4486 2019-07-17 Tom Tromey <tom@tromey.com>
4488 * tui/tui-windata.c (tui_display_data_from)
4489 (tui_data_window::do_scroll_vertical): Update.
4490 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4491 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4492 Rename from tui_line_from_reg_element_no.
4493 (tui_display_registers_from_line): Update.
4494 * tui/tui-data.h (struct tui_data_window)
4495 <line_from_reg_element_no>: New method.
4497 2019-07-17 Tom Tromey <tom@tromey.com>
4499 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4500 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4501 tui_last_regs_line_no.
4502 (tui_display_reg_element_at_line)
4503 (tui_display_registers_from_line): Update.
4504 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4507 2019-07-17 Tom Tromey <tom@tromey.com>
4510 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4511 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4512 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4513 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4514 (tui_update_breakpoint_info): Likewise.
4515 * tui/tui-hooks.c (tui_event_create_breakpoint)
4516 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4519 2019-07-17 Tom Tromey <tom@tromey.com>
4521 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4523 2019-07-17 Tom Tromey <tom@tromey.com>
4525 * tui/tui-winsource.c (tui_update_source_window_as_is)
4526 (tui_update_source_windows_with_addr): Update.
4527 * tui/tui-source.h (tui_set_source_content)
4528 (tui_show_symtab_source): Add "win_info" parameter.
4529 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4531 (tui_show_symtab_source): Likewise.
4533 2019-07-17 Tom Tromey <tom@tromey.com>
4535 * tui/tui-wingeneral.c
4536 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4538 2019-07-17 Tom Tromey <tom@tromey.com>
4540 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4541 (struct tui_cmd_window) <can_scroll>: New method.
4542 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4545 2019-07-17 Tom Tromey <tromey@adacore.com>
4547 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4548 do_field_signed>: Rename. Change type of "value".
4549 * ui-out.c (ui_out::field_signed): Rename from field_int.
4550 Change type of "value".
4551 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4553 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4554 do_field_int. Change type of "value".
4555 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4556 do_field_int. Change type of "value".
4557 * tracepoint.c (trace_status_mi, tfind_1)
4558 (print_one_static_tracepoint_marker): Update.
4559 * thread.c (print_thread_info_1, print_selected_thread_frame):
4561 * stack.c (print_frame, print_frame_info): Update.
4562 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4564 * source.c (print_source_lines_base): Update.
4565 * skip.c (info_skip_command): Update.
4566 * record-btrace.c (btrace_ui_out_decode_error)
4567 (btrace_call_history_src_line): Update.
4568 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4570 * progspace.c (print_program_space): Update.
4571 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4572 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4573 do_field_int. Change type of "value".
4574 * mi/mi-out.c (mi_ui_out::do_table_begin)
4575 (mi_ui_out::do_table_header): Update.
4576 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4578 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4579 (mi_cmd_data_list_changed_registers, output_register)
4580 (mi_cmd_data_read_memory, mi_load_progress)
4581 (mi_cmd_trace_frame_collected): Update.
4582 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4584 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4585 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4586 (mi_cmd_var_list_children, varobj_update_one): Update.
4587 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4588 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4589 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4590 * inferior.c (print_inferior): Update.
4591 * gdb_bfd.c (print_one_bfd): Update.
4592 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4594 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4595 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4596 do_field_int. Change type of "value".
4597 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4598 do_field_int. Change type of "value".
4599 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4600 (print_one_breakpoint_location, print_it_catch_fork)
4601 (print_one_catch_fork, print_it_catch_vfork)
4602 (print_one_catch_vfork, print_it_catch_solib)
4603 (print_it_catch_exec, print_it_ranged_breakpoint)
4604 (print_mention_watchpoint, print_mention_masked_watchpoint)
4605 (bkpt_print_it, update_static_tracepoint): Update.
4606 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4607 * break-catch-syscall.c (print_it_catch_syscall): Update.
4608 * ada-tasks.c (print_ada_task_info): Update.
4609 * ada-lang.c (print_it_exception, print_mention_exception):
4612 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4614 PR breakpoints/24541
4615 * gdbarch.c: Regenerate.
4616 * gdbarch.h: Regenerate.
4617 * gdbarch.sh: Adjust return type and parameter types for
4618 'stap_adjust_register'.
4619 (i386_stap_adjust_register): Adjust signature and return new
4621 * stap-probe.c (stap_parse_register_operand): Adjust use of
4622 'gdbarch_stap_adjust_register'.
4624 2019-07-17 Tom Tromey <tromey@adacore.com>
4626 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4628 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4630 (struct s390_process_info): Add initializers.
4631 (s390_add_process): Use new.
4632 (s390_linux_nat_target::low_forget_process): Use delete.
4633 (s390_linux_nat_target::low_new_fork)
4634 (s390_linux_nat_target::stopped_by_watchpoint)
4635 (s390_linux_nat_target::low_prepare_to_resume)
4636 (s390_linux_nat_target::insert_watchpoint)
4637 (s390_linux_nat_target::insert_hw_breakpoint)
4638 (s390_linux_nat_target::remove_watchpoint)
4639 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4641 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4643 * aarch64-fbsd-nat.c: Include regcache.h.
4644 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4646 (aarch64_fbsd_nat_target::fetch_registers)
4647 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4649 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4651 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4653 * fbsd-nat.c: Include gdbarch.h.
4655 2019-07-15 Tom Tromey <tromey@adacore.com>
4657 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4659 2019-07-15 Tom Tromey <tromey@adacore.com>
4661 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4662 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4663 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4664 * cli-out.c (cli_ui_out::do_field_int): New method.
4665 * ui-out.c (ui_out::field_unsigned): New method.
4666 * symfile.c (generic_load): Use field_unsigned.
4667 (print_transfer_performance): Likewise.
4668 * record-btrace.c (ui_out_field_uint): Remove.
4669 (btrace_call_history_insn_range, btrace_call_history): Use
4671 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4673 * ui-out.h (class ui_out) <field_unsigned>: New method.
4674 <do_field_unsigned>: Likewise.
4676 2019-07-15 Tom Tromey <tromey@adacore.com>
4678 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4679 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4680 * target.c (flash_erase_command): Use field_string.
4681 * infrun.c (print_signal_received_reason): Use field_string.
4682 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4683 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4685 * ada-tasks.c (print_ada_task_info): Use field_string.
4687 2019-07-15 Tom Tromey <tromey@adacore.com>
4689 * target.c (flash_erase_command): Use field_core_addr.
4690 * symfile.c (generic_load): Use field_core_addr.
4691 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4692 Use field_core_addr.
4693 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4696 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4698 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4699 value if its desired type is smaller than a CORE_ADDR and signed.
4701 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4703 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4704 of changes to field names, and use new is_reference field to
4705 decide if a property is a reference or not.
4706 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4708 (struct dwarf2_property_baton): Update header comment, rename
4709 'referenced_type' to 'property_type' and update comments.
4710 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4711 default property type, store in property baton, update to take
4712 accound of renamed field.
4713 (read_func_scope): Update call to attr_to_dynamic_prop.
4714 (read_array_type): Likewise.
4715 (dwarf2_per_cu_addr_sized_int_type): New function.
4716 (read_subrange_index_type): Move type finding code to
4717 dwarf2_per_cu_addr_sized_int_type.
4718 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4719 (dwarf2_per_cu_addr_type): New function.
4720 (set_die_type): Update calls to attr_to_dynamic_prop.
4722 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4724 * dwarf2read.c (read_subrange_index_type): New function.
4725 (read_subrange_type): Move code into new function and call it.
4726 * gdbtypes.c (create_range_type): Add some asserts.
4728 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4730 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4731 update return statements.
4732 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4733 declaration, and update comment to match.
4734 * gdbtypes.c (resolve_dynamic_array): Update call to
4735 dwarf2_evaluate_property to match new return type.
4737 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4739 * valarith.c (value_subscripted_rvalue): Change lowerbound
4740 parameter type from int to LONGEST.
4741 * value.h (value_subscripted_rvalue): Likewise in declaration.
4743 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4745 * cli/cli-utils.c (info_print_command_completer): New function.
4746 * cli/cli-utils.h: Add 'completer.h' include, and forward
4747 declaration for 'struct cmd_list_element'.
4748 (info_print_command_completer): Declare.
4749 * stack.c (_initialize_stack): Add completer for 'info locals' and
4751 * symtab.c (_initialize_symtab): Add completer for 'info
4752 variables' and 'info functions'.
4753 * NEWS: Mention completion for additional info commands.
4755 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4757 * cli/cli-utils.c (extract_info_print_args): Delete.
4758 (extract_arg_maybe_quoted): Delete.
4759 (info_print_options_defs): New variable.
4760 (make_info_print_options_def_group): New function.
4761 (extract_info_print_options): Define new function.
4762 * cli/cli-utils.h (extract_info_print_args): Delete.
4763 (struct info_print_options): New structure.
4764 (extract_info_print_options): Declare new function.
4765 * stack.c (info_locals_command): Update to use new
4766 extract_info_print_options, also add a header comment.
4767 (info_args_command): Likewise.
4768 * symtab.c (info_variables_command): Likewise.
4769 (info_functions_command): Likewise.
4771 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4773 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4774 to extract string arguments.
4775 * common/common-utils.c (extract_string_maybe_quoted): New function.
4776 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4778 2019-07-11 Tom Tromey <tromey@adacore.com>
4780 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4781 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4782 * top.h (gdbinit): Don't declare.
4783 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4785 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4786 * top.c (gdb_init): Don't call init_cli_cmds.
4788 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4790 2019-07-11 Tom Tromey <tromey@adacore.com>
4792 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4793 after it has been moved.
4795 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4797 * valops.c (value_must_coerce_to_target): Change return type to
4799 * value.h (value_must_coerce_to_target): Likewise.
4801 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4803 * breakpoint.c (is_hardware_watchpoint): Remove
4804 forward-declaration.
4805 (is_masked_watchpoint): Change return type to bool.
4806 (is_tracepoint): Likewise.
4807 (is_breakpoint): Likewise.
4808 (is_hardware_watchpoint): Likewise.
4809 (is_watchpoint): Likewise.
4810 (is_no_memory_software_watchpoint): Likewise.
4811 (is_catchpoint): Likewise.
4812 (breakpoint_1): Make FILTER parameter's return type bool.
4813 is_masked_watchpoint): Change return type to bool.
4814 (save_breakpoints): Make FILTER parameter's return type bool.
4815 * breakpoint.h (is_breakpoint): Change return type to bool.
4816 (is_watchpoint): Likewise.
4817 (is_catchpoint): Likewise.
4818 (is_tracepoint): Likewise.
4820 2019-07-10 Tom Tromey <tom@tromey.com>
4822 * defs.h: Don't include gdbarch.h.
4823 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4824 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4825 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4826 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4827 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4828 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4829 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4830 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4831 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4832 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4833 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4834 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4835 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4836 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4837 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4838 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4839 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4840 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4841 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4842 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4843 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4844 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4845 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4846 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4847 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4848 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4849 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4851 2019-07-10 Tom Tromey <tromey@adacore.com>
4853 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4854 * breakpoint.c (init_ada_exception_breakpoint): Register as
4856 (print_one_breakpoint_location, print_one_breakpoint): Use
4857 is_ada_exception_catchpoint.
4858 * ada-lang.c (class ada_catchpoint_location): Pass
4859 bp_loc_software_breakpoint to bp_location constructor.
4860 (is_ada_exception_catchpoint): New function.
4862 2019-07-10 Tom Tromey <tromey@adacore.com>
4864 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4866 (struct arm_exidx_entry): New method operator<.
4867 (struct arm_exidx_data) <section_maps>: Change type.
4868 (arm_exidx_data_free): Remove.
4869 (arm_exidx_data_key): Change type. Move lower.
4870 (arm_exidx_new_objfile): Update.
4871 (arm_compare_exidx_entries): Remove.
4872 (arm_find_exidx_entry, _initialize_arm_tdep)
4874 2019-07-10 Tom Tromey <tromey@adacore.com>
4876 * solib-spu.c (ocl_program_data_key): Change type.
4877 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4880 2019-07-10 Tom Tromey <tromey@adacore.com>
4882 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4883 (struct solib_aix_inferior_data) <library_list>: Change type.
4884 (solib_aix_inferior_data_handle): Change type.
4885 (get_solib_aix_inferior_data): Update.
4886 (solib_aix_free_library_list): Remove.
4887 (library_list_start_library): Update.
4888 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4890 (solib_aix_get_library_list)
4891 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4892 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4894 2019-07-10 Tom Tromey <tromey@adacore.com>
4896 * solib-dsbt.c (struct dsbt_info): Add initializers.
4897 (solib_dsbt_pspace_data): Change type.
4898 (dsbt_pspace_data_cleanup): Remove.
4899 (get_dsbt_info, _initialize_dsbt_solib): Update.
4901 2019-07-10 Tom Tromey <tromey@adacore.com>
4903 * spu-tdep.c (spu_overlay_data): Change type.
4904 (spu_get_overlay_table, spu_overlay_new_objfile)
4905 (_initialize_spu_tdep): Update.
4907 2019-07-10 Tom Tromey <tromey@adacore.com>
4909 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4911 (dbx_objfile_data_key): Change type and declare later.
4912 (DBX_SYMFILE_INFO): Rewrite.
4913 * dbxread.c (dbx_objfile_data_key): Change type.
4914 (dbx_symfile_init): Update.
4915 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4916 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4917 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4919 2019-07-10 Tom Tromey <tromey@adacore.com>
4921 * jit.c (jit_program_space_key): Change type. Move lower.
4922 (get_jit_program_space_data): Update.
4923 (jit_program_space_data_cleanup): Remove.
4924 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4926 (struct jit_program_space_data): Add initializers.
4928 2019-07-10 Tom Tromey <tromey@adacore.com>
4930 * solib-darwin.c (struct darwin_info): Add initializers.
4931 (solib_darwin_pspace_data): Change type.
4932 (darwin_pspace_data_cleanup): Remove.
4933 (get_darwin_info, _initialize_darwin_solib): Update.
4935 2019-07-10 Tom Tromey <tromey@adacore.com>
4937 * remote-sim.c (struct sim_inferior_data): Add initializers,
4938 constructor, and destructor.
4939 (sim_inferior_data_key): Change type. Move lower.
4940 (check_for_duplicate_sim_descriptor): Update.
4941 (get_sim_inferior_data): Use new. Update.
4942 (~sim_inferior_data_cleanup): Rename from
4943 sim_inferior_data_cleanup. Simplify.
4944 (gdbsim_close_inferior, simulator_command)
4945 (sim_command_completer, _initialize_remote_sim): Update.
4946 (next_pid, INITIAL_PID): Move earlier.
4948 2019-07-10 Tom Tromey <tromey@adacore.com>
4950 * python/python-internal.h (create_thread_object): Return
4952 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4953 * python/py-inferior.c (struct threadlist_entry): Add
4955 <thread_obj>: Now a gdbpy_ref.
4956 (thread_to_thread_object): Update.
4957 (add_thread_object): Use new.
4958 (delete_thread_object): Use delete.
4959 (infpy_threads): Update.
4960 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4963 2019-07-10 Tom Tromey <tromey@adacore.com>
4965 * valops.c (value_cast): Specialize error message for Ada.
4967 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4969 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4971 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4973 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4974 bpstat_should_step): Return bool, adjust comments.
4975 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4976 bpstat_should_step): Likewise.
4978 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4980 * features/Makefile: Use feature target descriptions for Arm.
4981 * features/arm/arm-core.c: Generate new file.
4982 * features/arm/arm-fpa.c: Likewise.
4983 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4984 * features/arm/arm-m-profile.c: Likewise.
4985 * features/arm/arm-vfpv2.c: Likewise.
4986 * features/arm/arm-vfpv3.c: Likewise.
4987 * features/arm/xscale-iwmmxt.c: Likewise.
4988 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4990 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4992 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4995 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4997 * features/aarch64-pauth.c: Regenerate.
4999 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
5001 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
5003 (bpstat_what): Use false instead of 0.
5005 2019-07-09 Pedro Alves <palves@redhat.com>
5007 * break-catch-throw.c (is_exception_catchpoint): New.
5008 * breakpoint.c (print_one_breakpoint_location): New parameter
5009 'raw_loc'. Handle it. Use
5010 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5011 looking at the breakpoint's type.
5012 (print_one_breakpoint): If handling "maint info breakpoints", also
5013 print locations of exception catchpoints.
5014 * breakpoint.h (is_exception_catchpoint): Declare.
5016 2019-07-09 Pedro Alves <palves@redhat.com>
5018 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5020 (allocate_location_exception_catchpoint): New.
5021 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5022 (initialize_throw_catchpoint_ops): Install
5023 allocate_location_exception_catchpoint as allocate_location
5025 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5026 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5028 (breakpoint_address_is_meaningful): Delete.
5029 (bl_address_is_meaningful): New.
5030 (breakpoint_locations_match): Adjust comment.
5031 (bp_location_from_bp_type): New, factored out of...
5032 (bp_location::bp_location(breakpoint *)): ... this.
5033 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5035 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5036 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5037 breakpoint_address_is_meaningful.
5038 (bp_locations_compare): Adjust comment.
5039 (update_global_location_list): Use bl_address_is_meaningful
5040 instead of breakpoint_address_is_meaningful.
5041 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5043 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5044 * python/py-breakpoint.c (bppy_get_location): No longer check
5045 whether location is null.
5047 2019-07-09 Pedro Alves <palves@redhat.com>
5050 * breakpoint.c (print_one_breakpoint_location): Remove
5051 single-location assert.
5053 2019-07-09 Tom Tromey <tom@tromey.com>
5055 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5056 * configure: Rebuild.
5057 * configure.ac: Change common to gdbsupport.
5058 * gdbsupport: Rename from common.
5059 * acinclude.m4: Change common to gdbsupport.
5060 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5061 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5063 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5064 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5065 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5066 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5067 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5068 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5069 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5070 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5071 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5072 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5073 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5074 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5075 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5076 coff-pe-read.c, command.h, compile/compile-c-support.c,
5077 compile/compile-c.h, compile/compile-cplus-symbols.c,
5078 compile/compile-cplus-types.c, compile/compile-cplus.h,
5079 compile/compile-loc2c.c, compile/compile.c, completer.c,
5080 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5081 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5082 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5083 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5084 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5085 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5086 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5087 features/aarch64-core.c, features/aarch64-fpu.c,
5088 features/aarch64-pauth.c, features/aarch64-sve.c,
5089 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5090 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5091 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5092 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5093 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5094 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5095 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5096 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5097 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5098 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5099 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5100 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5101 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5102 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5103 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5104 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5105 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5106 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5107 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5108 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5109 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5110 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5111 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5112 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5113 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5114 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5115 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5116 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5117 minsyms.c, mips-linux-tdep.c, namespace.h,
5118 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5119 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5120 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5121 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5122 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5123 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5124 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5125 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5126 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5127 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5128 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5129 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5130 procfs.c, producer.c, progspace.h, psymtab.h,
5131 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5132 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5133 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5134 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5135 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5136 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5137 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5138 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5139 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5140 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5141 target-memory.c, target.c, target.h, target/waitstatus.c,
5142 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5143 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5144 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5145 unittests/array-view-selftests.c,
5146 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5147 unittests/common-utils-selftests.c,
5148 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5149 unittests/format_pieces-selftests.c,
5150 unittests/function-view-selftests.c,
5151 unittests/lookup_name_info-selftests.c,
5152 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5153 unittests/mkdir-recursive-selftests.c,
5154 unittests/observable-selftests.c,
5155 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5156 unittests/parse-connection-spec-selftests.c,
5157 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5158 unittests/scoped_fd-selftests.c,
5159 unittests/scoped_mmap-selftests.c,
5160 unittests/scoped_restore-selftests.c,
5161 unittests/string_view-selftests.c, unittests/style-selftests.c,
5162 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5163 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5164 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5165 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5166 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5167 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5169 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5171 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5173 (decode_digits_ordinary): Set explicit_line field in sal.
5174 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5175 symtab_and_line that was set on an explicit line number in
5176 assembler code. Do always update the recorded symtab and line if
5177 we do skip the prologue.
5179 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5181 * breakpoint.c (set_breakpoint_location_function): Remove
5182 explicit_loc parameter.
5183 (momentary_breakpoint_from_master): Update call to
5184 set_breakpoint_location_function.
5185 (add_location_to_breakpoint): Likewise.
5187 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5189 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5190 required features based on default bfd type when no specific bfd
5193 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5195 * NEWS: Mention that GDB printf and eval commands can now print
5196 C-style and Ada-style convenience var strings without
5197 calling the inferior.
5198 * printcmd.c (printf_c_string): Locally print GDB internal var
5199 instead of transiting via the inferior.
5200 (printf_wide_c_string): Likewise.
5202 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5204 PR breakpoints/25011
5205 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5207 2019-07-04 Tom Tromey <tom@tromey.com>
5210 * tui/tui-winsource.c (tui_clear_source_content): Update.
5211 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5212 (tui_update_breakpoint_info): Update.
5213 (tui_set_exec_info_content): Update.
5214 * tui/tui-source.c (tui_set_source_content_nil): Update.
5215 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5217 * tui/tui-data.h (enum tui_bp_flag): New.
5218 (tui_bp_flags): New enum flags type.
5219 (struct tui_source_element) <break_mode>: Change type. Rename
5221 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5222 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5224 * tui/tui-winsource.h: Fix comment.
5226 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5228 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5229 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5230 (store_fpregs_to_thread)
5231 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5232 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5233 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5234 (IWMMXT_REGS_SIZE): Add define.
5235 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5236 (fetch_vfp_regs, store_vfp_regs)
5237 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5238 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5240 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5242 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5244 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5245 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5246 (ARM_INT_REGISTER_SIZE): ...to this.
5247 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5248 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5249 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5250 (arm_linux_collect_gregset, supply_nwfpe_register)
5251 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5253 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5254 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5255 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5256 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5257 (arm_return_in_memory, arm_store_return_value)
5258 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5259 (arm_record_ld_st_multiple): Likewise.
5260 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5261 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5263 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5265 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5266 AARCH64_DISPLACED_MODIFIED_INSNS.
5267 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5268 (aarch64_displaced_step_copy_insn): Likewise.
5269 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5270 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5271 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5272 ARM_DISPLACED_MODIFIED_INSNS.
5273 * arm-tdep.c (arm_gdbarch_init): Likewise.
5274 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5275 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5276 (struct arm_displaced_step_closure): Use
5277 ARM_DISPLACED_MODIFIED_INSNS.
5279 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5281 * features/Makefile: Remove unused xml files.
5282 * features/aarch64.xml: Remove.
5283 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5284 * features/i386/amd64-avx-avx512.xml: Remove.
5285 * features/i386/amd64-avx-linux.xml: Remove.
5286 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5287 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5288 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5289 * features/i386/amd64-avx-mpx.xml: Remove.
5290 * features/i386/amd64-avx.xml: Remove.
5291 * features/i386/amd64-linux.xml: Remove.
5292 * features/i386/amd64-mpx-linux.xml: Remove.
5293 * features/i386/amd64-mpx.xml: Remove.
5294 * features/i386/amd64.xml: Remove.
5295 * features/i386/i386-avx-avx512-linux.xml: Remove.
5296 * features/i386/i386-avx-avx512.xml: Remove.
5297 * features/i386/i386-avx-linux.xml: Remove.
5298 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5299 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5300 * features/i386/i386-avx-mpx-linux.xml: Remove.
5301 * features/i386/i386-avx-mpx.xml: Remove.
5302 * features/i386/i386-avx.xml: Remove.
5303 * features/i386/i386-linux.xml: Remove.
5304 * features/i386/i386-mmx-linux.xml: Remove.
5305 * features/i386/i386-mmx.xml: Remove.
5306 * features/i386/i386-mpx-linux.xml: Remove.
5307 * features/i386/i386-mpx.xml: Remove.
5308 * features/i386/i386.xml: Remove.
5309 * features/i386/x32-avx-avx512-linux.xml: Remove.
5310 * features/i386/x32-avx-linux.xml: Remove.
5311 * features/i386/x32-linux.xml: Remove.
5313 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5315 * regformats/aarch64.dat: Remove.
5316 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5317 * regformats/i386/amd64-avx-linux.dat: Remove.
5318 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5319 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5320 * regformats/i386/amd64-linux.dat: Remove.
5321 * regformats/i386/amd64-mpx-linux.dat: Remove.
5322 * regformats/i386/amd64.dat: Remove.
5323 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5324 * regformats/i386/i386-avx-linux.dat: Remove.
5325 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5326 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5327 * regformats/i386/i386-linux.dat: Remove.
5328 * regformats/i386/i386-mmx-linux.dat: Remove.
5329 * regformats/i386/i386-mpx-linux.dat: Remove.
5330 * regformats/i386/i386.dat: Remove.
5331 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5332 * regformats/i386/x32-avx-linux.dat: Remove.
5333 * regformats/i386/x32-linux.dat: Remove.
5335 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5337 * aarch64-tdep.c: Remove xml self tests.
5338 * amd64-linux-tdep.c: Likewise.
5339 * amd64-tdep.c: Likewise.
5340 * i386-linux-tdep.c: Likewise.
5341 * i386-tdep.c: Likewise.
5343 2019-07-03 Pedro Alves <palves@redhat.com>
5346 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5347 (pipe_cmd_option_defs): New.
5348 (make_pipe_cmd_options_def_group): New.
5349 (pipe_command): Use gdb::option::process_options.
5350 (pipe_command_completer): New function.
5351 (_initialize_cli_cmds): Install completer for "pipe" command.
5353 2019-07-03 Pedro Alves <palves@redhat.com>
5355 * cli/cli-option.c (union option_value) <string>: New field.
5356 (struct option_def_and_value): Add ctor, move ctor, dtor and
5357 use DISABLE_COPY_AND_ASSIGN.
5358 (option_def_and_value::clear_value): New.
5359 (parse_option, save_option_value_in_ctx, get_val_type_str)
5360 (add_setshow_cmds_for_options): Handle var_string.
5361 * cli-option.h (union option_def::var_address) <string>: New
5363 (struct string_option_def): New.
5364 * maint-test-options.c (struct test_options_opts): Add default
5365 ctor and use DISABLE_COPY_AND_ASSIGN.
5366 <string_opt>: New field.
5367 (test_options_opts::~test_options_opts): New.
5368 (test_options_opts::dump): Also dump "-string".
5369 (test_options_option_defs): Install "string.
5371 2019-07-03 Pedro Alves <palves@redhat.com>
5373 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5374 option_value with a null enumeration.
5375 (complete_options): Save the option values in the context.
5376 (save_option_value_in_ctx): New, factored out from ...
5377 (process_options): ... here.
5378 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5380 * maint-test-options.c (test_options_opts::dump): New, factored
5382 (maintenance_test_options_command_mode): ... here.
5383 (maintenance_test_options_command_completion_result): Delete.
5384 (maintenance_test_options_command_completion_text): Update
5386 (maintenance_show_test_options_completion_result): Change
5387 prototype. Just print
5388 maintenance_test_options_command_completion_text.
5389 (save_completion_result): New.
5390 (maintenance_test_options_completer_mode): Pass options context to
5391 complete_options, and then save a dump.
5392 (_initialize_maint_test_options): Use add_cmd to install "maint
5393 show test-options-completion-result".
5395 2019-07-03 Pedro Alves <palves@redhat.com>
5397 * NEWS (New commands): Mention "with" and "maint with".
5398 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5399 (with_command, with_command_completer): New.
5400 (pipe_command): Adjust to new repeat_previous
5402 (_initialize_cli_cmds): Install the "with" command and its "w"
5404 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5406 * cli/cli-setshow.c (parse_cli_var_uinteger)
5407 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5408 argument strings for all var_types.
5409 (get_setshow_command_value_string): New, factored out from ...
5410 (do_show_command): ... this.
5411 * cli/cli-setshow.h: Include <string>.
5412 (get_setshow_command_value_string): Declare.
5413 * command.h (repeat_previous): Now returns const char *. Adjust
5415 * maint.c: Include "cli/cli-cmds.h".
5416 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5417 (_initialize_maint_cmds): Register the "maintenance with" command.
5418 * top.c (repeat_previous): Move bits from pipe_command here:
5419 Return the saved command line, if any; error out if there's no
5420 command to relaunch.
5422 2019-07-03 Pedro Alves <palves@redhat.com>
5424 * NEWS (New commands): Mention "maint set/show test-settings"
5425 instead of "maint test-settings".
5426 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5427 (maintenance_test_settings_set_list): Rename to ...
5428 (maintenance_set_test_settings_list): ... this.
5429 (maintenance_test_settings_show_list): Rename to ...
5430 (maintenance_show_test_settings_list): ... this.
5431 (maintenance_test_settings_cmd): Delete.
5432 (maintenance_test_settings_set_cmd): ...
5433 (maintenance_set_test_settings_cmd): ... this.
5434 (maintenance_test_settings_show_cmd): ...
5435 (maintenance_show_test_settings_cmd): ... this.
5436 (maintenance_test_settings_show_value_cmd):
5437 (maintenance_show_test_settings_value_cmd): ... this.
5438 (_initialize_maint_test_settings): No longer install the "maint
5439 test-settings" prefix command. Rename "maint test-settings set"
5440 to "maint set test-settings", and "maint test-settings show" to
5441 "maint show test-settings". Adjust all subcommands.
5443 2019-07-03 Pedro Alves <palves@redhat.com>
5445 * maint-test-settings.c: Fix file's intro comment. Replace all
5446 references to "test-options" with references to "test-settings",
5449 2019-07-03 Pedro Alves <palves@redhat.com>
5451 * maint-test-settings.c (maintenance_test_settings_xxx)
5452 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5454 (maintenance_test_settings_enums): Use them.
5455 (maintenance_test_settings_enum): Default to
5456 maintenance_test_settings_xxx.
5457 (_initialize_maint_test_settings): Initialize
5458 MAINTENANCE_TEST_SETTINGS_FILENAME.
5460 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5462 * breakpoint.h (remove_breakpoints_inf): Change return type to
5463 void, move function documentation here.
5464 * breakpoint.c (remove_breakpoints_inf): Change return type to
5465 void, move function documentation to header.
5467 2019-07-02 Pedro Alves <palves@redhat.com>
5469 * NEWS (Completion improvements): Mention "info threads".
5470 * thread.c (struct info_threads_opts, info_threads_option_defs)
5471 (make_info_threads_options_def_group): New.
5472 (info_threads_command): Use gdb::option::process_options.
5473 (info_threads_command_completer): New.
5474 (_initialize_thread): Use gdb::option::build_help to build the
5475 help text for "info threads".
5477 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5479 * defs.h (generic_load): Move from here...
5480 * symfile.h (generic_load): ... to here. Rename name parameter
5482 * symfile.c (generic_load): Add comment.
5484 2019-07-01 Tom Tromey <tromey@adacore.com>
5487 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5488 declaration of without_params. Fix formatting.
5490 2019-07-01 Tom Tromey <tromey@adacore.com>
5492 * ada-exp.y (find_primitive_type): Update.
5493 * ada-lang.h (ada_lookup_symbol): Update.
5494 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5496 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5498 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5500 PR breakpoints/24541
5501 * gdbarch.c: Regenerate.
5502 * gdbarch.h: Regenerate.
5503 * gdbarch.sh: Add 'stap_adjust_register'.
5504 * i386-tdep.c: Include '<unordered_set>'.
5505 (i386_stap_adjust_register): New function.
5506 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5507 * stap-probe.c (stap_parse_register_operand): Call
5508 'gdbarch_stap_adjust_register'.
5510 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5513 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5514 * python/python.c (do_start_initialization): Use 'xmalloc'
5515 instead of 'PyMem_Malloc'.
5517 2019-06-28 Tom Tromey <tromey@adacore.com>
5519 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5522 2019-06-27 Tom Tromey <tromey@adacore.com>
5524 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5526 (arm_find_mapping_symbol, arm_record_special_symbol)
5527 (_initialize_arm_tdep): Update.
5528 (arm_objfile_data_free): Remove.
5530 2019-06-27 Tom Tromey <tromey@adacore.com>
5532 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5533 to cp_print_static_field.
5535 2019-06-26 Tom Tromey <tromey@adacore.com>
5537 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5538 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5541 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5543 * features/aarch64-core.c (create_feature_aarch64_core):
5545 * features/aarch64-core.xml: Add cpsr flags.
5547 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5549 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5550 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5552 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5554 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5556 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5558 (arm_record_special_symbol): Don't insert new symbol in sorted
5559 position, push it at the end.
5561 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5563 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5564 (arm_mapping_symbol_s): Remove.
5565 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5566 (arm_mapping_symbol_vec): New typedef.
5567 (struct arm_per_objfile): Add constructor.
5568 <section_maps>: Change type to
5569 std::unique_ptr<arm_mapping_symbol_vec[]>.
5570 (arm_compare_mapping_symbols): Remove.
5571 (arm_find_mapping_symbol): Adjust to section_maps type change.
5572 (arm_objfile_data_free): Call delete on arm_per_objfile.
5573 (arm_record_special_symbol): Adjust to section_maps type change.
5574 Allocate arm_per_objfile with new.
5576 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5578 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5579 with the command prefix.
5581 2019-06-25 Tom Tromey <tom@tromey.com>
5583 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5584 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5586 2019-06-25 Tom Tromey <tom@tromey.com>
5588 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5590 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5593 2019-06-25 Tom Tromey <tom@tromey.com>
5595 * tui/tui-winsource.c
5596 (tui_source_window_base::set_is_exec_point_at): Add check against
5599 2019-06-25 Tom Tromey <tom@tromey.com>
5601 * tui/tui-source.c (tui_set_source_content): Don't check before
5603 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5605 2019-06-25 Tom Tromey <tom@tromey.com>
5607 * tui/tui-winsource.h (tui_update_source_window_as_is)
5608 (tui_alloc_source_buffer, tui_line_is_displayed)
5609 (tui_addr_is_displayed): Change type of win_info.
5610 * tui/tui-winsource.c (tui_update_source_window_as_is)
5611 (tui_clear_source_content, tui_show_source_line)
5612 (tui_show_source_content, tui_source_window_base::refill)
5613 (tui_source_window_base::set_is_exec_point_at)
5614 (tui_source_window_base::set_is_exec_point_at)
5615 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5616 (tui_alloc_source_buffer, tui_line_is_displayed)
5617 (tui_addr_is_displayed): Change type of win_info. Update.
5618 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5619 (tui_source_window_base::do_make_visible_with_new_height):
5621 * tui/tui-source.c (tui_set_source_content)
5622 (tui_set_source_content_nil)
5623 (tui_source_window::do_scroll_vertical): Update.
5624 * tui/tui-layout.c (show_layout): Update.
5625 * tui/tui-disasm.c (tui_set_disassem_content)
5626 (tui_disasm_window::do_scroll_vertical): Update.
5627 * tui/tui-data.h (tui_win_content): Remove.
5628 (struct tui_gen_win_info) <content, content_size>: Remove.
5629 (struct tui_source_element): Add initializers and destructor.
5630 (union tui_which_element, struct tui_win_element): Remove.
5631 (struct tui_source_window_base) <content>: New field.
5632 (struct tui_data_window): Remove destructor.
5633 (tui_alloc_content, tui_free_win_content)
5634 (tui_free_all_source_wins_content): Don't declare.
5635 * tui/tui-data.c (tui_initialize_static_data): Update.
5636 (init_content_element, tui_alloc_content): Remove.
5637 (~tui_gen_win_info): Update.
5638 (~tui_data_window, tui_free_all_source_wins_content)
5639 (tui_free_win_content, free_content, free_content_elements):
5642 2019-06-25 Tom Tromey <tom@tromey.com>
5644 * tui/tui-winsource.h (tui_clear_source_content)
5645 (tui_erase_source_content, tui_show_source_content): Change type
5647 * tui/tui-winsource.c (tui_clear_source_content)
5648 (tui_erase_source_content, tui_show_source_content): Change type
5650 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5651 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5653 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5655 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5657 2019-06-25 Tom Tromey <tom@tromey.com>
5659 * tui/tui-winsource.c (tui_clear_source_content)
5660 (tui_source_window_base::set_is_exec_point_at): Update.
5661 * tui/tui-source.c (tui_set_source_content_nil): Update.
5662 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5664 * tui/tui-data.c (init_content_element): Update.
5666 2019-06-25 Tom Tromey <tom@tromey.com>
5668 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5669 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5670 * tui/tui-layout.c (init_and_make_win): Update.
5671 * tui/tui.h (enum tui_win_type): Update.
5672 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5673 tui_win_is_auxillary.
5674 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5675 tui_win_is_auxillary.
5677 2019-06-25 Tom Tromey <tom@tromey.com>
5679 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5680 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5681 (tui_delete_data_content_windows, tui_display_all_data)
5682 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5684 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5685 * tui/tui-regs.c (tui_last_regs_line_no)
5686 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5687 (tui_show_registers): Update.
5688 (tui_show_register_group): Return void. Update.
5689 (tui_display_registers_from, tui_display_reg_element_at_line)
5690 (tui_display_registers_from_line, tui_check_register_values):
5692 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5694 (struct tui_data_window) <regs_content>: Now a std::vector.
5695 <regs_content_count>: Remove.
5696 (tui_add_content_elements, tui_free_data_content): Don't declare.
5697 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5698 (init_content_element): Remove DATA_WIN case. Add assert.
5699 (tui_add_content_elements): Remove.
5700 (tui_data_window): Update.
5701 (tui_free_data_content): Remove.
5702 (free_content_elements): Remove DATA_WIN case.
5704 2019-06-25 Tom Tromey <tom@tromey.com>
5706 * tui/tui-data.c (tui_data_item_window): Update.
5707 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5708 * tui/tui-windata.c (tui_display_all_data)
5709 (tui_display_data_from_line): Update.
5710 (tui_check_data_values): Remove.
5711 * tui/tui-regs.c (tui_show_register_group)
5712 (tui_display_reg_element_at_line): Update.
5713 * tui/tui-hooks.c (tui_register_changed)
5714 (tui_refresh_frame_and_register_information): Call
5715 tui_check_register_values.
5716 * tui/tui-data.h (struct tui_data_window) <data_content,
5717 data_content_count, data_type>: Remove.
5718 (enum tui_data_type): Remove.
5720 * tui/tui-data.c (tui_data_window::clear_detail)
5721 (~tui_data_window): Update.
5723 2019-06-25 Tom Tromey <tom@tromey.com>
5725 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5727 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5728 Rename from tui_first_data_item_displayed. Update.
5729 (tui_data_window::refresh_all)
5730 (tui_data_window::do_scroll_vertical): Update.
5731 * tui/tui-data.h (struct tui_data_window)
5732 <first_data_item_displayed>: Declare new method.
5734 2019-06-25 Tom Tromey <tom@tromey.com>
5736 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5737 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5739 (tui_initialize_static_data): ...here.
5741 2019-06-25 Tom Tromey <tom@tromey.com>
5743 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5744 (tui_display_registers_from, tui_check_register_values): Update.
5745 (tui_display_register): Remove win_info parameter; update.
5746 (tui_get_register): Change type of parameters.
5747 * tui/tui-data.h (struct tui_data_element): Remove.
5748 (union tui_which_element) <data>: Remove.
5749 <data_window>: Change type.
5750 (struct tui_data_item_window): New.
5751 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5753 (~tui_data_item_window): New destructor.
5754 (free_content_elements): Remove DATA_ITEM_WIN case.
5756 2019-06-25 Tom Tromey <tom@tromey.com>
5758 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5761 2019-06-25 Tom Tromey <tom@tromey.com>
5763 * tui/tui-data.h (struct tui_command_element): Remove.
5764 (union tui_which_element) <command>: Remove.
5765 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5767 (free_content_elements): Remove CMD_WIN case.
5769 2019-06-25 Tom Tromey <tom@tromey.com>
5771 * tui/tui-layout.c (tui_set_layout): Update.
5772 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5773 * tui/tui-data.c (layout_def): Update.
5775 2019-06-25 Tom Tromey <tom@tromey.com>
5777 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5778 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5779 (tui_source_window_base::set_new_height): Update.
5780 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5782 (tui_set_locator_fullname, tui_set_locator_info)
5783 (tui_show_frame_info): Update.
5784 * tui/tui-source.c (tui_set_source_content)
5785 (tui_source_is_displayed): Update.
5786 * tui/tui-layout.c (show_source_disasm_command, show_data)
5787 (show_source_or_disasm_and_command): Update.
5788 * tui/tui-disasm.c (tui_set_disassem_content)
5789 (tui_get_begin_asm_address): Update.
5790 * tui/tui-data.h (struct tui_locator_element): Remove.
5791 (union tui_which_element) <locator>: Remove.
5792 (struct tui_locator_window): New.
5793 (tui_locator_win_info_ptr): Change return type.
5794 * tui/tui-data.c (_locator): Change type.
5795 (tui_locator_win_info_ptr): Change return type.
5796 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5797 (tui_alloc_content): Add assert.
5799 2019-06-25 Tom Tromey <tom@tromey.com>
5801 * tui/tui-winsource.c
5802 (tui_exec_info_window::maybe_allocate_content): New method.
5803 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5804 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5805 (make_source_or_disasm_window): Add cast.
5806 * tui/tui-data.h (union tui_which_element) <simple_string>:
5808 (struct tui_source_info): New.
5809 (struct tui_source_window_base) <execution_info>: Change type.
5810 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5811 case, and add assert.
5812 (tui_alloc_content): Add assert.
5814 2019-06-25 Tom Tromey <tom@tromey.com>
5816 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5817 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5818 * tui/tui-data.c (tui_alloc_win_info): Remove.
5820 2019-06-25 Tom Tromey <tom@tromey.com>
5822 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5823 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5826 2019-06-25 Tom Tromey <tom@tromey.com>
5828 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5829 make_visible_with_new_height method.
5830 (tui_win_info::make_visible_with_new_height): New method.
5831 (tui_source_window_base::do_make_visible_with_new_height)
5832 (tui_data_window::do_make_visible_with_new_height)
5833 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5834 (make_visible_with_new_height): Remove.
5835 (tui_resize_all, tui_adjust_win_heights): Use
5836 make_visible_with_new_height method.
5837 * tui/tui-data.h (struct tui_win_info)
5838 <do_make_visible_with_new_height, make_visible_with_new_height>:
5840 (struct tui_source_window_base, struct tui_data_window)
5841 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5844 2019-06-25 Tom Tromey <tom@tromey.com>
5846 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5848 (update_tab_width): Call update_tab_width method.
5849 * tui/tui-data.h (struct tui_win_info)
5850 (struct tui_source_window_base) <update_tab_width>: New methods.
5852 2019-06-25 Tom Tromey <tom@tromey.com>
5854 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5856 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5858 (tui_gen_win_info::make_visible): Update.
5859 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5861 * tui/tui-data.h (enum tui_box): New enum.
5862 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5864 2019-06-25 Tom Tromey <tom@tromey.com>
5866 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5867 init_and_make_win for EXEC_INFO_WIN.
5868 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5870 (struct tui_win_info) <~tui_win_info>: Inline.
5871 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5873 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5874 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5876 (tui_initialize_static_data): Update.
5877 (~tui_gen_win_info): Handle more cleanup here.
5878 (~tui_source_window_base): Delete "execution_info".
5879 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5881 2019-06-25 Tom Tromey <tom@tromey.com>
5883 * tui/tui-layout.c (make_command_window): Don't set
5885 (show_source_disasm_command): Call the reset method.
5886 (show_data): Don't set can_highlight. Call the reset method.
5887 (tui_gen_win_info::reset): Rename from init_gen_win_info
5888 (init_and_make_win): Simplify. Return tui_gen_win_info.
5889 (show_source_or_disasm_and_command): Call the reset method.
5890 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5891 (struct tui_cmd_window): Set can_highlight.
5893 2019-06-25 Tom Tromey <tom@tromey.com>
5895 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5897 (tui_make_visible, tui_make_invisible): Rewrite.
5898 (tui_win_info::make_visible): Remove.
5899 (tui_source_window_base::make_visible): Update.
5900 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5901 method. Moved from...
5902 (struct tui_win_info) <make_visible>: ...here.
5904 2019-06-25 Tom Tromey <tom@tromey.com>
5906 * tui/tui-winsource.c
5907 (tui_source_window_base::do_scroll_horizontal): Remove direction
5909 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5910 direction parameter.
5911 * tui/tui-win.c (tui_win_info::forward_scroll)
5912 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5913 (tui_win_info::right_scroll): Update.
5914 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5915 direction parameter.
5916 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5917 direction parameter.
5918 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5919 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5920 Remove direction parameter.
5921 (struct tui_source_window_base, struct tui_source_window)
5922 (struct tui_disasm_window, struct tui_data_window)
5923 (struct tui_cmd_window): Update.
5925 2019-06-25 Tom Tromey <tom@tromey.com>
5927 * tui/tui-winsource.h (tui_set_exec_info_content)
5928 (tui_show_exec_info_content, tui_erase_exec_info_content)
5929 (tui_clear_exec_info_content, tui_update_exec_info): Change
5930 argument to tui_source_window_base.
5931 * tui/tui-winsource.c (tui_set_exec_info_content)
5932 (tui_show_exec_info_content, tui_erase_exec_info_content)
5933 (tui_clear_exec_info_content, tui_update_exec_info): Change
5934 argument to tui_source_window_base.
5936 2019-06-25 Tom Tromey <tom@tromey.com>
5938 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5939 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5941 2019-06-25 Tom Tromey <tom@tromey.com>
5943 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5946 2019-06-25 Tom Tromey <tom@tromey.com>
5948 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5950 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5952 * tui/tui-source.c (tui_set_source_content): Update.
5953 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5955 2019-06-25 Tom Tromey <tom@tromey.com>
5957 * tui/tui-win.c (window_name_completer, tui_set_focus)
5958 (tui_all_windows_info): Use name method.
5959 * tui/tui-data.h (struct tui_gen_win_info)
5960 (struct tui_source_window, struct tui_disasm_window)
5961 (struct tui_data_window, struct tui_cmd_window) <name>: New
5963 (tui_win_name): Don't declare.
5964 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5965 (tui_win_name): Remove.
5967 2019-06-25 Tom Tromey <tom@tromey.com>
5969 * tui/tui-winsource.h (tui_update_source_window)
5970 (tui_update_source_window_as_is): Change parameter type.
5971 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5972 to be a tui_source_window_base.
5973 (tui_update_source_window_as_is): Likewise.
5974 * tui/tui-win.c (make_visible_with_new_height): Update.
5976 2019-06-25 Tom Tromey <tom@tromey.com>
5978 * tui/tui-winsource.c (tui_erase_source_content)
5979 (tui_show_source_content, tui_show_exec_info_content)
5980 (tui_erase_exec_info_content): Use refresh_window method.
5981 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5982 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5983 from tui_refresh_win.
5984 (tui_data_window::refresh_window): New method.
5985 (tui_win_info::refresh, tui_source_window_base::refresh)
5986 (tui_refresh_all): Use refresh_window method.
5987 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5989 * tui/tui-regs.c (tui_display_register): Call refresh_window
5991 * tui/tui-layout.c (show_source_disasm_command)
5992 (show_source_or_disasm_and_command): Call refresh_window method.
5993 * tui/tui-data.h (struct tui_gen_win_info)
5994 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5997 2019-06-25 Tom Tromey <tom@tromey.com>
5999 * tui/tui.c (tui_rl_other_window, tui_enable)
6000 (tui_is_window_visible, tui_get_command_dimension): Update.
6001 * tui/tui-winsource.c (tui_update_source_window_as_is)
6002 (tui_clear_source_content, tui_erase_source_content)
6003 (tui_show_source_line, tui_source_window_base::refill)
6004 (tui_source_window_base::do_scroll_horizontal)
6005 (tui_source_window_base::set_is_exec_point_at)
6006 (tui_update_breakpoint_info, tui_set_exec_info_content)
6007 (tui_alloc_source_buffer, tui_line_is_displayed)
6008 (tui_addr_is_displayed): Update.
6009 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6010 (tui_check_and_display_highlight_if_needed)
6011 (tui_win_info::make_visible, tui_win_info::refresh)
6012 (tui_refresh_all): Update.
6013 * tui/tui-windata.c (tui_first_data_item_displayed)
6014 (tui_delete_data_content_windows, tui_erase_data_content)
6015 (tui_display_all_data, tui_data_window::refresh_all)
6016 (tui_check_data_values): Update.
6017 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6018 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6019 (tui_win_info::backward_scroll, tui_refresh_all_win)
6020 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6021 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6022 (tui_source_window_base::set_new_height)
6023 (tui_data_window::set_new_height)
6024 (make_invisible_and_set_new_height)
6025 (make_visible_with_new_height, new_height_ok)
6026 (parse_scrolling_args): Update.
6027 * tui/tui-stack.c (tui_show_frame_info): Update.
6028 * tui/tui-source.c (tui_set_source_content)
6029 (tui_set_source_content_nil, tui_source_is_displayed)
6030 (tui_source_window::do_scroll_vertical): Update.
6031 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6032 (tui_display_registers_from, tui_display_reg_element_at_line)
6033 (tui_check_register_values, tui_reg_command): Update.
6034 * tui/tui-layout.c (tui_default_win_height)
6035 (show_source_disasm_command, show_data, init_and_make_win)
6036 (show_source_or_disasm_and_command): Update.
6037 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6038 (tui_redisplay_readline, tui_mld_flush)
6039 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6041 * tui/tui-disasm.c (tui_set_disassem_content)
6042 (tui_disasm_window::do_scroll_vertical): Update.
6043 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6045 (struct tui_win_info): Derive from tui_gen_win_info.
6046 <~tui_win_info>: Mark as override.
6047 <generic>: Remove member.
6048 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6049 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6050 (~tui_data_window, ~tui_win_info)
6051 (tui_free_all_source_wins_content): Update.
6052 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6054 2019-06-25 Tom Tromey <tom@tromey.com>
6056 * tui/tui-layout.c (init_and_make_win): Use new.
6057 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6058 destructor, initializers.
6059 (tui_alloc_generic_win_info): Don't declare.
6060 * tui/tui-data.c (_locator): Add argument to constructor.
6061 (source_win, disasm_win): New globals.
6062 (exec_info): Remove.
6063 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6065 (tui_alloc_generic_win_info): Remove.
6066 (init_content_element): Use new.
6067 (tui_win_info::tui_win_info): Update.
6068 (free_content_elements) <case DATA_WIN>: Use delete.
6070 2019-06-25 Tom Tromey <tom@tromey.com>
6072 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6073 * tui/tui-windata.c (tui_first_data_item_displayed)
6074 (tui_delete_data_content_windows): Update.
6075 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6076 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6077 (tui_display_registers_from, tui_check_register_values): Update.
6078 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6080 * tui/tui-data.c (init_content_element): Update. Allocate the new
6082 (tui_free_data_content): Update.
6083 (free_content_elements) <case DATA_WIN>: Free the window.
6085 2019-06-25 Tom Tromey <tom@tromey.com>
6087 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6089 * tui/tui-layout.c (make_command_window)
6090 (show_source_disasm_command, show_data, init_and_make_win)
6091 (show_source_or_disasm_and_command): Update.
6092 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6094 <can_highight, is_highlighted>: Now bool.
6095 (tui_set_win_highlight): Don't declare.
6096 * tui/tui-data.c (tui_set_win_highlight): Remove.
6098 2019-06-25 Tom Tromey <tom@tromey.com>
6100 * tui/tui-wingeneral.c (make_visible): Remove check of window
6103 2019-06-25 Tom Tromey <tom@tromey.com>
6105 * tui/tui-win.c (tui_win_info::max_height)
6106 (tui_cmd_window::max_height): New methods.
6107 (new_height_ok): Call max_height.
6108 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6109 <max_height>: New method.
6111 2019-06-25 Tom Tromey <tom@tromey.com>
6113 * tui/tui-win.c (tui_source_window_base::set_new_height)
6114 (tui_data_window::set_new_height): New methods.
6115 (make_invisible_and_set_new_height): Call set_new_height method.
6116 * tui/tui-data.h (struct tui_win_info)
6117 (struct tui_source_window_base, struct tui_data_window)
6118 <set_new_height>: New method.
6120 2019-06-25 Tom Tromey <tom@tromey.com>
6122 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6123 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6124 tui_refresh_data_win.
6125 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6127 (tui_refresh_all_win): Call the refresh_all method.
6128 (tui_set_focus): Likewise.
6129 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6130 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6133 2019-06-25 Tom Tromey <tom@tromey.com>
6135 * tui/tui-winsource.h (tui_refill_source_window)
6136 (tui_set_is_exec_point_at): Don't declare.
6137 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6138 (tui_source_window_base::refill): Rename from
6139 tui_refill_source_window.
6140 (tui_source_window_base::do_scroll_horizontal): Update.
6141 (tui_source_window_base::set_is_exec_point_at): Rename from
6142 tui_set_is_exec_point_at.
6143 (tui_update_all_breakpoint_info): Update.
6144 * tui/tui-stack.c (tui_show_frame_info): Update.
6145 * tui/tui-layout.c (show_data): Add cast.
6146 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6147 * tui/tui-data.h (struct tui_source_window_base) <refill,
6148 set_is_exec_point_at>: New methods.
6149 (tui_source_windows, tui_add_to_source_windows): Update types.
6150 (tui_add_to_source_windows): Remove redundant declaration.
6151 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6152 (tui_source_windows): Change return type.
6153 (tui_clear_source_windows_detail): Update.
6154 (tui_add_to_source_windows): Change type of parameter.
6155 (tui_free_all_source_wins_content): Update.
6157 2019-06-25 Tom Tromey <tom@tromey.com>
6159 * tui/tui-wingeneral.c (tui_win_info::refresh)
6160 (tui_source_window_base::refresh): New methods.
6161 (tui_refresh_all): Call the refresh method.
6162 * tui/tui-data.h (struct tui_win_info)
6163 (struct tui_source_window_base) <refresh>: New method.
6165 2019-06-25 Tom Tromey <tom@tromey.com>
6167 * tui/tui.h (tui_is_window_visible): Return bool.
6168 * tui/tui.c (tui_is_window_visible): Return bool.
6169 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6170 (tui_make_visible, tui_make_invisible)
6171 (tui_win_info::make_visible)
6172 (tui_source_window_base::make_visible, make_all_visible)
6173 (tui_make_all_visible, tui_make_all_invisible): Update.
6174 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6175 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6177 (struct tui_win_info, struct tui_source_window_base)
6178 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6179 * tui/tui-data.c (tui_init_generic_part): Update.
6181 2019-06-25 Tom Tromey <tom@tromey.com>
6183 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6184 (tui_source_window_base::make_visible): New methods.
6185 (make_all_visible): Make method call.
6186 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6187 (struct tui_source_window_base, struct tui_cmd_window): Override
6189 (tui_win_is_source_type): Don't declare.
6190 * tui/tui-data.c (tui_win_is_source_type): Remove.
6192 2019-06-25 Tom Tromey <tom@tromey.com>
6194 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6197 2019-06-25 Tom Tromey <tom@tromey.com>
6199 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6200 Inline constructor. Add initializers for members.
6201 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6202 constructors; now inline in class.
6204 2019-06-25 Tom Tromey <tom@tromey.com>
6206 * tui/tui-regs.c (tui_show_registers): Update.
6207 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6209 * tui/tui-data.c (tui_data_window::clear_detail)
6210 (tui_data_window): Update.
6212 2019-06-25 Tom Tromey <tom@tromey.com>
6214 * tui/tui-windata.c (tui_display_all_data)
6215 (tui_display_data_from_line, tui_display_data_from)
6216 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6218 * tui/tui-regs.c (tui_last_regs_line_no)
6219 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6220 (tui_show_registers, tui_show_register_group)
6221 (tui_display_registers_from, tui_display_reg_element_at_line)
6222 (tui_display_registers_from_line, tui_check_register_values)
6223 (tui_reg_next, tui_reg_prev): Update.
6224 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6225 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6227 (struct tui_win_info) <detail>: Remove. Add new fields from
6229 (TUI_DATA_WIN): Add cast.
6230 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6231 (~tui_data_window): Simplify.
6233 2019-06-25 Tom Tromey <tom@tromey.com>
6235 * tui/tui-layout.c (show_source_disasm_command)
6236 (show_source_or_disasm_and_command): Update.
6237 * tui/tui-io.c (update_cmdwin_start_line)
6238 (tui_redisplay_readline): Update.
6239 * tui/tui-data.h (struct tui_command_info): Remove.
6240 (struct tui_win_info) <detail>: Remove command_info member.
6241 (struct tui_data_window) <start_line>: New member, from
6243 (TUI_CMD_WIN): Add casts.
6245 2019-06-25 Tom Tromey <tom@tromey.com>
6247 * tui/tui-winsource.c (tui_update_source_window)
6248 (tui_refill_source_window)
6249 (tui_source_window_base::do_scroll_horizontal)
6250 (tui_update_breakpoint_info, tui_set_exec_info_content)
6251 (tui_show_exec_info_content, tui_erase_exec_info_content)
6252 (tui_clear_exec_info_content): Update.
6253 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6255 * tui/tui-win.c (make_invisible_and_set_new_height)
6256 (make_visible_with_new_height): Update.
6257 * tui/tui-source.c (tui_set_source_content)
6258 (tui_show_symtab_source): Update.
6259 * tui/tui-layout.c (extract_display_start_addr)
6260 (show_source_disasm_command, show_data)
6261 (make_source_or_disasm_window)
6262 (show_source_or_disasm_and_command): Update.
6263 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6264 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6266 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6267 to tui_source_window_base.
6268 (struct tui_win_info) <detail>: Remove source_info member.
6269 (struct tui_source_window_base) <has_locator>: Inline.
6270 Move contents from tui_source_info; rename has_locator member to
6272 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6273 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6275 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6277 (tui_free_all_source_wins_content): Cast to
6278 tui_source_window_base.
6280 2019-06-25 Tom Tromey <tom@tromey.com>
6282 * tui/tui-win.c (make_invisible_and_set_new_height)
6283 (make_visible_with_new_height): Call has_locator method.
6284 * tui/tui-layout.c (show_source_disasm_command, show_data)
6285 (show_source_or_disasm_and_command): Update for bool change.
6286 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6287 (tui_win_info) <has_locator>: New method.
6288 (struct tui_source_window_base) <has_locator>: New method.
6289 (tui_win_has_locator): Don't declare.
6290 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6291 from tui_win_has_locator.
6292 (tui_source_window_base): Use false, not FALSE.
6294 2019-06-25 Tom Tromey <tom@tromey.com>
6296 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6297 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6298 clear_detail method directly.
6299 (tui_clear_win_detail): Remove.
6301 2019-06-25 Tom Tromey <tom@tromey.com>
6303 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6304 "this", not TUI_DISASM_WIN.
6306 2019-06-25 Tom Tromey <tom@tromey.com>
6308 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6310 * tui/tui-winsource.c
6311 (tui_source_window_base::do_scroll_horizontal): Rename from
6312 tui_horizontal_source_scroll.
6313 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6314 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6315 from tui_vertical_data_scroll.
6316 * tui/tui-win.h (tui_scroll): Don't declare.
6317 * tui/tui-win.c (tui_win_info::forward_scroll)
6318 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6319 (tui_win_info::right_scroll): Rename and update.
6320 (tui_scroll_forward_command, tui_scroll_backward_command)
6321 (tui_scroll_left_command, tui_scroll_right_command): Update.
6322 (tui_scroll): Remove.
6323 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6324 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6325 from tui_vertical_source_scroll.
6326 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6327 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6328 from tui_vertical_disassem_scroll.
6329 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6330 do_scroll_horizontal>: New methods.
6331 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6333 (struct tui_source_window_base): Add do_scroll_horizontal.
6334 (struct tui_source_window, struct tui_disasm_window): Add
6336 (struct tui_data_window, struct tui_cmd_window): Add
6337 do_scroll_horizontal and do_scroll_vertical.
6338 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6340 2019-06-25 Tom Tromey <tom@tromey.com>
6342 * tui/tui-data.h (struct tui_source_window_base): New struct.
6343 (struct tui_source_window): Derive from tui_source_window_base.
6344 (struct tui_disasm_window): New struct.
6345 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6346 from tui_source_window::clear_detail.
6347 (tui_source_window_base): Rename from tui_source_window.
6348 (~tui_source_window_base): Rename from ~tui_source_window.
6349 (tui_alloc_win_info): Create a tui_disasm_window.
6351 2019-06-25 Tom Tromey <tom@tromey.com>
6353 * tui/tui-data.h (struct tui_source_window)
6354 (struct tui_data_window): Declare destructors.
6355 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6357 (tui_win_info): Simplify.
6359 2019-06-25 Tom Tromey <tom@tromey.com>
6361 * tui/tui-winsource.c (tui_display_main)
6362 (tui_update_source_windows_with_addr)
6363 (tui_update_all_breakpoint_info): Update.
6364 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6365 (new_height_ok, parse_scrolling_args): Update.
6366 * tui/tui-stack.c (tui_show_frame_info): Update.
6367 * tui/tui-data.h (struct tui_list): Remove.
6368 (tui_source_windows): Return a reference to a std::vector.
6369 * tui/tui-data.c (source_windows): Now a std::vector.
6370 (tui_source_windows): Change return type.
6371 (tui_clear_source_windows): Rewrite.
6372 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6373 (tui_free_all_source_wins_content): Rewrite.
6375 2019-06-25 Tom Tromey <tom@tromey.com>
6377 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6378 (struct tui_data_window, struct tui_cmd_window): Declare
6379 clear_detail method.
6380 * tui/tui-data.c (tui_source_window::clear_detail)
6381 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6383 (tui_clear_win_detail): Simplify.
6385 2019-06-25 Tom Tromey <tom@tromey.com>
6387 * tui/tui-layout.c (make_source_window, make_disasm_window)
6388 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6389 Return the new window.
6390 (show_source_disasm_command, show_data)
6391 (show_source_or_disasm_and_command): Update.
6393 2019-06-25 Tom Tromey <tom@tromey.com>
6395 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6396 parameter. Return the new window.
6397 (show_source_disasm_command): Update and remove NULL check.
6398 (show_source_or_disasm_and_command): Update.
6400 2019-06-25 Tom Tromey <tom@tromey.com>
6402 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6404 2019-06-25 Tom Tromey <tom@tromey.com>
6406 * tui/tui-data.h (struct tui_win_info): Make constructor
6407 protected. Make destructor virtual. Add initializers.
6408 (tui_source_window, tui_data_window, tui_cmd_window): New
6410 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6411 constructor. Add "type" parameter.
6412 (tui_source_window, tui_data_window, tui_cmd_window): New
6414 (tui_alloc_win_info): Instantiate the appropriate subclass.
6416 2019-06-25 Tom Tromey <tom@tromey.com>
6418 * tui/tui-win.c (tui_resize_all): Use delete.
6419 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6421 (tui_free_window): Don't declare.
6422 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6425 2019-06-25 Tom Tromey <tom@tromey.com>
6427 * tui/tui-data.h (struct tui_win_info): Add constructor.
6428 * tui/tui-data.c (tui_alloc_win_info): Use new.
6429 (tui_free_window): Use delete.
6431 2019-06-22 Tom Tromey <tom@tromey.com>
6433 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6435 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6437 2019-06-22 Tom Tromey <tom@tromey.com>
6439 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6441 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6443 2019-06-22 Tom de Vries <tdevries@suse.de>
6445 * dwarf2read.c (create_addrmap_from_aranges)
6446 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6449 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6451 * dwarf2read.h (dwarf2_section_info_def): Remove.
6452 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6453 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6454 std::vector<dwarf2_section_info>.
6455 (struct dwo_file) <~dwo_file>: Remove.
6456 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6458 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6459 (dwarf2_read_debug_names): Likewise.
6460 (create_debug_types_hash_table): Change parameter type to
6461 array_view, adjust code accordingly.
6462 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6463 (partial_die_info::fixup): Likewise.
6464 (determine_prefix): Likewise.
6465 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6467 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6469 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6471 <~dwo_file>: Remove call to gdb_bfd_unref.
6472 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6473 gdb_bfd_ref_ptr::get.
6475 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6477 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6479 * dwarf2read.c (struct dwo_file): Initialize fields.
6481 (free_dwo_file): Remove, move content to ~dwo_file.
6482 (struct dwo_file_deleter): Remove.
6483 (dwo_file_up>: Remove custom deleter.
6484 (free_dwo_files): Remove.
6485 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6487 (process_skeletonless_type_units): Call unique_ptr::get.
6488 (allocate_dwo_file_hash_table): Add deleter to created hash
6489 table. Change return type to htab_up.
6490 (lookup_dwo_file_slot): Don't memset dwo_file, call
6492 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6493 (create_dwo_unit_in_dwp_v2): Likewise.
6494 (open_and_init_dwo_file): Likewise.
6495 (free_dwo_file_from_slot): Remove.
6497 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6499 * dwarf2read.h (struct dwarf2_section_info) <readin,
6500 is_virtual>: Change type to bool.
6501 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6504 2019-06-19 Tom Tromey <tom@tromey.com>
6506 * tui/tui-data.h (tui_init_content_element): Don't declare.
6508 2019-06-19 Tom Tromey <tom@tromey.com>
6510 * tui/tui-data.h (tui_init_win_info): Don't declare.
6512 2019-06-19 Tom de Vries <tdevries@suse.de>
6514 * dwarf2read.h (abstract_to_concrete): Change type to
6515 std::unordered_map<sect_offset, std::vector<sect_offset>,
6516 gdb::hash_enum<sect_offset>>.
6518 2019-06-19 Tom Tromey <tromey@adacore.com>
6520 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6521 EVAL_AVOID_SIDE_EFFECTS specially.
6523 2019-06-19 Tom Tromey <tromey@adacore.com>
6525 * source-cache.c (highlighter): New global.
6526 (source_cache::get_source_lines): Create a highlighter on demand.
6528 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6530 * defs.h (deprecated_interactive_hook): Delete declaration.
6531 * interps.c (clear_interpreter_hooks): Remove use of
6532 deprecated_interactive_hook.
6533 * top.c (deprecated_interactive_hook): Delete definition.
6534 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6536 2019-06-18 Tom de Vries <tdevries@suse.de>
6539 * dwarf2read.h (abstract_to_concrete): Change type from
6540 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6541 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6542 * dwarf2read.c (read_variable): Update.
6543 (dwarf2_fetch_die_loc_sect_off): Update.
6545 2019-06-17 Tom de Vries <tdevries@suse.de>
6548 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6549 accessing parent[parent_len - 1].
6551 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6554 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6555 call dtrace_process_dof with NULL dof.
6557 2019-06-16 Tom de Vries <tdevries@suse.de>
6560 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6562 2019-06-16 Tom Tromey <tom@tromey.com>
6564 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6565 (make_all_visible): Use address of member.
6567 2019-06-16 Tom Tromey <tom@tromey.com>
6569 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6570 (tui_free_window, free_content, free_content_elements): Remove
6572 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6574 * tui/tui-regs.c (tui_show_register_group)
6575 (tui_display_registers_from, tui_display_reg_element_at_line):
6576 Remove unnecessary cast.
6578 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6580 * linux-nat.c (normal_mask): Delete.
6581 (_initialize_linux_nat): Don't initialise normal_mask.
6583 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6586 * dwarf-index-write.h (write_psymtabs_to_index): Add
6587 dwz_basename parameter.
6588 * dwarf-index-write.c (write_gdbindex): Move file writing to
6589 write_gdbindex_1. Change return type void.
6590 (assert_file_size): Move up, remove filename parameter.
6591 (write_gdbindex_1): New function.
6592 (write_debug_names): Change return type to void, call
6594 (struct index_wip_file): New struct.
6595 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6596 file logic to index_wip_file. Write index for dwz file if
6598 (save_gdb_index_command): Pass basename of dwz file, if present.
6599 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6600 build-id of dwz file, if present.
6601 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6602 (dwarf2_get_dwz_file): Likewise.
6603 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6604 (dwarf2_get_dwz_file): Likewise.
6606 2019-06-16 Tom Tromey <tom@tromey.com>
6608 * coffread.c (process_coff_symbol): Use xstrdup.
6609 * value.c (create_internalvar): Use xstrdup.
6611 2019-06-16 Tom Tromey <tom@tromey.com>
6613 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6614 * breakpoint.c (stopin_command, stopat_command)
6615 (until_break_command, decode_location_default): Remove unnecessary
6617 * utils.c (subset_compare): Remove unnecessary cast.
6618 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6620 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6622 * infcmd.c (path_command): Remove unnecessary cast.
6623 * coffread.c (decode_type): Remove unnecessary cast.
6624 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6625 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6626 * tui/tui-stack.c (tui_show_locator_content)
6627 (tui_show_frame_info): Remove unnecessary cast.
6628 * tui/tui-win.c (tui_scroll_forward_command)
6629 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6630 (parse_scrolling_args): Remove unnecessary cast.
6631 * tui/tui-data.c (init_win_info, tui_del_window)
6632 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6633 (free_content_elements): Remove unnecessary cast.
6634 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6636 * tui/tui-source.c (tui_set_source_content)
6637 (tui_vertical_source_scroll): Remove unnecessary cast.
6638 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6640 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6641 * tui/tui-regs.c (tui_display_registers_from)
6642 (tui_display_register): Remove unnecessary cast.
6643 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6644 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6645 (make_visible): Remove unnecessary cast.
6646 * tui/tui-winsource.c (tui_erase_source_content)
6647 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6649 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6650 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6651 * stabsread.c (read_type, read_array_type, read_range_type):
6652 Remove unnecessary cast.
6653 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6654 (parse_symbol, parse_type, upgrade_type, parse_external)
6655 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6657 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6659 2019-06-16 Tom Tromey <tom@tromey.com>
6661 * tui/tui-data.c (tui_alloc_generic_win_info)
6662 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6665 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6666 Andrew Burgess <andrew.burgess@embecosm.com>
6668 * f-typeprint.c (f_print_type): Don't return early for not
6669 associated or not allocated types.
6670 (f_type_print_varspec_suffix): Add print_rank parameter and print
6671 ranks of array types in case they dangling.
6672 (f_type_print_base): Add print_rank parameter.
6674 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6676 * NEWS: Mention new MI commands.
6677 * break-catch-throw.c (enum exception_event_kind): Move to
6679 (print_mention_exception_catchpoint): Output text as a single
6681 (catch_exception_command_1): Rename to...
6682 (catch_exception_event): ...this, make non-static, update header
6683 command, and change some parameter types.
6684 (catch_catch_command): Update for changes to
6685 catch_exception_command_1.
6686 (catch_throw_command): Likewise.
6687 (catch_rethrow_command): Likewise.
6688 * breakpoint.c (enum exception_event_kind): Delete.
6689 * breakpoint.h (enum exception_event_kind): Moved here from
6690 break-catch-throw.c.
6691 (catch_exception_event): Declare.
6692 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6693 (mi_cmd_catch_throw): New function.
6694 (mi_cmd_catch_rethrow): New function.
6695 (mi_cmd_catch_catch): New function.
6696 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6697 'catch-catch' entries.
6698 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6699 (mi_cmd_catch_rethrow): Declare.
6700 (mi_cmd_catch_catch): Declare.
6702 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6704 * annotate.c (annotate_source_line): Change return type to void,
6705 update implementation to match.
6706 * annotate.h (annotate_source_line): Change return type to void,
6707 update header comment.
6708 * stack.c (print_frame_info): Don't change what frame information
6709 is printed based on whether annotations are on or not.
6711 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6713 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6714 (annotate_source): Make static.
6715 (annotate_source_line): Moved from source.c and renamed from
6716 identify_source_line. Update the return type.
6717 * annotate.h (annotate_source): Delete declaration.
6718 (annotate_source_line): Declaration moved from source.h, and
6719 renamed from identify_source_line. Return type updated.
6720 * source.c (identify_source_line): Moved to annotate.c and renamed
6721 to annotate_source_line.
6722 (info_line_command): Remove check of annotation_level.
6723 * source.h (identify_source_line): Move declaration to annotate.h
6724 and rename to annotate_source_line.
6725 * stack.c: Add 'annotate.h' include.
6726 (print_frame_info): Remove check of annotation_level before
6727 calling annotate_source_line.
6729 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6731 * source-cache.c (source_cache::get_plain_source_lines): Use
6732 open_source_file_with_line_charpos instead of just
6733 open_source_file, remove call to find_source_lines.
6734 (source_cache::get_source_lines): Likewise.
6735 * source.c (find_source_lines): Make static.
6736 (get_filename_and_charpos): Renamed into...
6737 (open_source_file_with_line_charpos): ..this along with changes to
6738 return a scoped_fd, and some other minor clean ups.
6739 (identify_source_line): Use open_source_file_with_line_charpos.
6740 (search_command_helper): Use open_source_file_with_line_charpos
6741 instead of just open_source_file, remove call to
6743 * source.h (open_source_file_with_line_charpos): Declare new
6745 (find_source_lines): Delete declaration.
6747 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6749 * source.c (get_filename_and_charpos): Remove fullname
6751 (identify_source_line): Update call to get_filename_and_charpos.
6753 2019-06-14 Tom Tromey <tromey@adacore.com>
6756 * ui-style.h (skip_ansi_escape): Update comment.
6757 * ui-file.h (class no_terminal_escape_file): New class.
6758 * ui-file.c (no_terminal_escape_file::write)
6759 (no_terminal_escape_file::puts): New methods.
6760 * cli/cli-logging.c (handle_redirections): Use
6761 no_terminal_escape_file.
6763 2019-06-14 Tom Tromey <tromey@adacore.com>
6765 * NEWS: Move convenience variable news above Python news.
6767 2019-06-14 Tom Tromey <tom@tromey.com>
6769 * gnulib: Move directory to top-level.
6770 * configure.ac: Don't configure gnulib.
6771 * configure: Rebuild.
6772 * common/common-defs.h: Use new path to gnulib.
6773 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6775 (INCGNU): Look in new gnulib location.
6776 (HFILES_NO_SRCDIR): Remove gnulib files.
6777 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6778 (generated_files): Remove GNULIB_H.
6779 ($(LIBGNU), all-lib): Remove targets.
6780 (distclean): Don't mention GNULIB_BUILDDIR.
6781 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6783 2019-06-14 Tom Tromey <tromey@adacore.com>
6785 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6786 Warn if symbol file does not provide any symbols.
6788 2019-06-14 Tom Tromey <tromey@adacore.com>
6790 * source.c (find_and_open_source): Respect basenames_may_differ.
6792 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6794 * annotate.c (annotate_breakpoints_invalid): Make use of
6795 scoped_restore_terminal_state.
6796 (annotate_frames_invalid): Likewise.
6798 2019-06-14 Tom Tromey <tromey@adacore.com>
6800 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6801 allow assignment to an internalvar.
6803 2019-06-14 Tom Tromey <tromey@adacore.com>
6805 * ada-lex.l: Allow "_" in attribute names.
6807 2019-06-14 Tom Tromey <tromey@adacore.com>
6810 * regcache.c (registers_changed): Don't call alloca.
6811 * top.c (execute_command): Don't call alloca.
6813 2019-06-13 Pedro Alves <palves@redhat.com>
6815 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6816 'expression'. When parsing an expression, error out if there's
6817 junk after "unlimited".
6818 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6819 (do_set_command): Adjust calls to is_unlimited_literal.
6821 2019-06-13 Pedro Alves <palves@redhat.com>
6823 * compile/compile.c (make_compile_options_def_group): Add braces
6824 around array_view initializer.
6825 * thread.c (make_thread_apply_all_options_def_group)
6826 (make_thread_apply_all_options_def_group): Likewise.
6828 2019-06-13 Pedro Alves <palves@redhat.com>
6830 * NEWS (New commands): Mention "maint test-options
6831 require-delimiter", "maint test-options unknown-is-error", "maint
6832 test-options unknown-is-operand" and "maint show
6833 test-options-completion-result".
6834 (New command options, command completion): New section.
6835 (Completion improvements): New section.
6836 Mention that you can abbreviate "unlimited".
6838 2019-06-13 Pedro Alves <palves@redhat.com>
6840 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6841 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6842 * unittests/cli-utils-selftests.c (test_parse_flags)
6843 (test_parse_flags_qcs): Delete.
6844 (test_cli_utils): Don't call deleted functions.
6846 2019-06-13 Pedro Alves <palves@redhat.com>
6848 * thread.c: Include "cli/cli-option.h".
6849 (tp_array_compar_ascending): Global.
6850 (tp_array_compar): Delete function.
6851 (tp_array_compar_ascending, tp_array_compar_descending): New
6853 (ascending_option_def, qcs_flag_option_def)
6854 (thr_qcs_flags_option_defs)
6855 (make_thread_apply_all_options_def_group)
6856 (make_thread_apply_options_def_group): New.
6857 (thread_apply_all_command): Use gdb::option::process_options.
6858 (thread_apply_command_completer)
6859 (thread_apply_all_command_completer): New.
6860 (thread_apply_command): Use gdb::option::process_options.
6861 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6862 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6863 to generate help text of "thread apply". Adjust "taas"'s help.
6864 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6865 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6867 2019-06-13 Pedro Alves <palves@redhat.com>
6869 * thread.c (thread_apply_command): Check for invalid TID with
6870 isdigit instead of !isalpha.
6872 2019-06-13 Pedro Alves <palves@redhat.com>
6874 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6875 (validate_flags_qcs): New.
6876 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6877 (validate_flags_qcs): Declare.
6878 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6879 (make_frame_apply_options_def_group): New.
6880 (frame_apply_command_count): Process options with
6881 gdb::option::process_options.
6882 (frame_apply_completer): New.
6883 (frame_apply_level_completer, frame_apply_all_completer)
6884 (frame_apply_completer): New.
6885 (_initialize_stack): Update help of "frame apply", "frame apply
6886 level", "frame apply all" and "faas" to mention supported options
6887 and install command completers.
6888 * stack.h (frame_apply_all_completer): Declare.
6889 * thread.c: Include "stack.h".
6890 (tfaas_command): Add "--".
6891 (_initialize_thread): Update help "tfaas" to mention supported
6892 options and install command completer.
6894 2019-06-13 Pedro Alves <palves@redhat.com>
6896 * completer.c (complete_nested_command_line): New.
6897 (gdb_completion_word_break_characters_throw): Add assertion.
6898 * completer.h (complete_nested_command_line): Declare.
6900 2019-06-13 Pedro Alves <palves@redhat.com>
6902 * stack.c (parse_backtrace_qualifiers): New.
6903 (backtrace_command): Use it.
6904 (backtrace_command_completer): Complete on qualifiers.
6906 2019-06-13 Pedro Alves <palves@redhat.com>
6908 * frame.c: Include "cli/cli-option.h.
6909 (user_set_backtrace_options): New.
6910 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6912 (get_prev_frame): Adjust.
6913 (boolean_option_def, uinteger_option_def)
6914 (set_backtrace_option_defs): New.
6915 (_initialize_frame): Adjust and use
6916 gdb::option::add_setshow_cmds_for_options to install "set
6917 backtrace past-main" and "set backtrace past-entry".
6918 * frame.h: Include "cli/cli-option.h".
6919 (struct frame_print_options): Forward declare.
6920 (print_frame_arguments_all, print_frame_arguments_scalars)
6921 (print_frame_arguments_none): Declare.
6922 (print_entry_values): Delete declaration.
6923 (struct frame_print_options, user_frame_print_options): New.
6924 (struct set_backtrace_options): New.
6925 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6926 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6927 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6928 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6929 (list_args_or_locals): Add frame_print_options parameter.
6930 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6931 * python/py-framefilter.c (enumerate_args): Pass down
6932 USER_FRAME_PRINT_OPTIONS.
6933 * stack.c: Include "cli/cli-option.h".
6934 (print_frame_arguments_all, print_frame_arguments_scalars)
6935 (print_frame_arguments_none): Declare.
6936 (print_raw_frame_arguments, print_entry_values): Delete.
6937 (user_frame_print_options): New.
6938 (boolean_option_def, enum_option_def, frame_print_option_defs):
6940 (struct backtrace_cmd_options): New.
6941 (bt_flag_option_def): New.
6942 (backtrace_command_option_defs): New.
6943 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6944 (print_frame_arg, read_frame_arg, print_frame_args)
6945 (print_frame_info, print_frame): Add frame_print_options parameter
6947 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6948 (backtrace_command_1): Add frame_print_options and
6949 backtrace_cmd_options parameters and use them.
6950 (make_backtrace_options_def_group): New.
6951 (backtrace_command): Process command options with
6952 gdb::option::process_options.
6953 (backtrace_command_completer): New.
6954 (_initialize_stack): Extend "backtrace"'s help to mention
6955 supported options. Install completer for "backtrace".
6956 Install some settings commands with add_setshow_cmds_for_options.
6958 2019-06-13 Pedro Alves <palves@redhat.com>
6960 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6961 and that "set/show print raw frame-arguments" are now deprecated.
6963 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6965 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6966 * stack.c (_initialize_stack): Install "set/show print
6967 raw-frame-arguments", and deprecate "set/show print raw
6969 * valprint.c (_initialize_valprint): Deprecate "set/show print
6972 2019-06-13 Pedro Alves <palves@redhat.com>
6974 * compile/compile.c (struct compile_options): New.
6975 (compile_flag_option_def, compile_command_option_defs)
6976 (make_compile_options_def_group): New.
6977 (compile_file_command): Handle options with
6978 gdb::option::process_options.
6979 (compile_file_command_completer): New function.
6980 (compile_code_command): Handle options with
6981 gdb::option::process_options.
6982 (compile_code_command_completer): New function.
6983 (_initialize_compiler): Install completers for "compile code" and
6984 "compile file". Mention available options in "compile code" and
6985 "compile code"'s help.
6986 * completer.c (advance_to_completion_word): New, factored out from
6988 (advance_to_expression_complete_word_point): ... this.
6989 (advance_to_filename_complete_word_point): New.
6990 * completer.h (advance_to_filename_complete_word_point): New
6993 2019-06-13 Pedro Alves <palves@redhat.com>
6995 * compile/compile.c: Include "cli/cli-option.h".
6996 (compile_print_value): Scope data pointer is now a
6997 value_print_options pointer; adjust.
6998 (compile_print_command): Process options. Scope data pointer is
6999 now a value_print_options pointer; adjust.
7000 (_initialize_compile): Update "compile print"'s help to include
7001 supported options. Install a completer for "compile print".
7002 * cp-valprint.c (show_vtblprint, show_objectprint)
7003 (show_static_field_print): Delete.
7004 (_initialize_cp_valprint): Don't install "set print
7005 static-members", "set print vtbl", "set print object" here.
7006 * printcmd.c: Include "cli/cli-option.h" and
7007 "common/gdb_optional.h".
7008 (print_command_parse_format): Rework to fill in a
7009 value_print_options instead of a format_data.
7010 (print_value): Change parameter type from format_data pointer to
7011 value_print_options reference. Adjust.
7012 (print_command_1): Process options. Adjust to pass down a
7013 value_print_options.
7014 (print_command_completer): New.
7015 (_initialize_printcmd): Install print_command_completer as
7016 handle_brkchars completer for the "print" command. Update
7017 "print"'s help to include supported options.
7018 * valprint.c: Include "cli/cli-option.h".
7019 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7020 here from cp-valprint.c.
7021 (boolean_option_def, uinteger_option_def)
7022 (value_print_option_defs, make_value_print_options_def_group):
7023 New. Use gdb::option::add_setshow_cmds_for_options to install
7024 "set print elements", "set print null-stop", "set print repeats",
7025 "set print pretty", "set print union", "set print array", "set
7026 print address", "set print symbol", "set print array-indexes".
7027 * valprint.h: Include <string> and "cli/cli-option.h".
7028 (make_value_print_options_def_group): Declare.
7029 (print_value): Change parameter type from format_data pointer to
7030 value_print_options reference.
7031 (print_command_completer): Declare.
7033 2019-06-13 Pedro Alves <palves@redhat.com>
7035 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7036 (COMMON_SFILES): Add maint-test-settings.c.
7037 * cli/cli-decode.c (boolean_enums): New global, factored out from
7039 (add_setshow_boolean_cmd): ... here.
7040 * cli/cli-decode.h (boolean_enums): Declare.
7041 * cli/cli-option.c: New file.
7042 * cli/cli-option.h: New file.
7043 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7044 factored out from ...
7045 (parse_cli_boolean_value(const char *)): ... this.
7046 (is_unlimited_literal): Change parameter type to pointer to
7047 pointer. Adjust and advance ARG pointer.
7048 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7049 (parse_cli_var_enum): New, factored out from ...
7050 (do_set_command): ... this. Adjust.
7051 * cli/cli-setshow.h (parse_cli_boolean_value)
7052 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7053 (parse_cli_var_enum): Declare.
7054 * cli/cli-utils.c: Include "cli/cli-option.h".
7055 (get_ulongest): New.
7056 * cli/cli-utils.h (get_ulongest): Declare.
7057 (check_for_argument): New overloads.
7058 * maint-test-options.c: New file.
7060 2019-06-13 Pedro Alves <palves@redhat.com>
7062 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7063 parse a range if "-" is at the end of the string.
7065 2019-06-13 Pedro Alves <palves@redhat.com>
7067 * cli/cli-setshow.c (parse_auto_binary_operation)
7068 (parse_cli_boolean_value): Don't allow "o".
7070 2019-06-13 Pedro Alves <palves@redhat.com>
7072 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7073 * NEWS: Mention maint test-settings KIND.
7074 * maint-test-settings.c: New file.
7076 2019-06-13 Pedro Alves <palves@redhat.com>
7078 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7080 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7083 2019-06-13 Pedro Alves <palves@redhat.com>
7085 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7088 2019-06-13 Pedro Alves <palves@redhat.com>
7090 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7092 2019-06-13 Pedro Alves <palves@redhat.com>
7094 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7095 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7097 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7098 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7100 (check_for_argument): Skip spaces after argument.
7102 2019-06-13 Pedro Alves <palves@redhat.com>
7104 * thread.c (thread_apply_command): Adjust TID parsing.
7105 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7106 detected before end of string.
7107 (tid_is_in_list): Error out if LIST is invalid.
7109 2019-06-13 Pedro Alves <palves@redhat.com>
7111 * completer.c (complete_line_internal_1): Rewind completion word
7113 (completion_tracker::advance_custom_word_point_by): Change
7114 parameter type to int.
7115 * completer.h (completion_tracker::advance_custom_word_point_by):
7118 2019-06-13 Pedro Alves <palves@redhat.com>
7120 * completer.c (advance_to_completion_word): Handle delimiters.
7122 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7124 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7126 2019-06-11 Tom Tromey <tom@tromey.com>
7128 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7129 (xmalloc_failed): Move to alloc.c.
7130 * alloc.c: New file.
7131 * Makefile.in (COMMON_SFILES): Add alloc.c.
7133 2019-06-11 Tom Tromey <tom@tromey.com>
7135 * nat/linux-waitpid.c: Don't include server.h.
7136 (linux_debug): Remove.
7137 (my_waitpid): Update.
7139 2019-06-11 Tom Tromey <tromey@adacore.com>
7141 * infcall.c (_initialize_infcall): Remove trailing newline from
7143 * user-regs.c (_initialize_user_regs): Remove trailing newline
7145 * typeprint.c (_initialize_typeprint): Remove trailing newline
7147 * reverse.c (_initialize_reverse): Remove trailing newlines from
7149 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7151 * language.c (add_set_language_command): Remove trailing newline
7153 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7155 * disasm.c (_initialize_disasm): Remove trailing newline from
7157 * top.c (init_main): Remove trailing newline from help.
7158 * interps.c (_initialize_interpreter): Remove trailing newline
7160 * btrace.c (_initialize_btrace): Remove trailing newlines from
7162 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7164 * python/python.c (_initialize_python): Remove trailing newline
7166 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7168 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7169 from help. Reformat some text.
7170 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7172 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7175 2019-06-11 Tom Tromey <tromey@adacore.com>
7177 * darwin-nat.c (darwin_decode_exception_message)
7178 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7180 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7182 * valops.c (value_slice): Check for not allocated or not
7185 2019-06-10 Tom de Vries <tdevries@suse.de>
7188 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7189 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7192 2019-06-10 Tom de Vries <tdevries@suse.de>
7195 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7196 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7198 2019-06-10 Tom de Vries <tdevries@suse.de>
7201 * symtab.c (struct demangled_name_entry): Add language field.
7202 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7203 static minimal symbol". Set and use language field.
7205 2019-06-10 Tom Tromey <tromey@adacore.com>
7207 * ada-lang.c (_initialize_ada_language): Update help text.
7209 2019-06-10 Tom Tromey <tromey@adacore.com>
7211 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7213 * guile/guile.c (handle_boot_error): Don't end warning with a
7215 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7216 warning with a newline.
7217 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7219 (s12z_frame_cache): Likewise.
7220 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7222 * solib-svr4.c (disable_probes_interface): Don't end warning with
7224 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7226 * python/python.c (do_finish_initialization): Don't end warning
7229 2019-06-10 Tom Tromey <tom@tromey.com>
7231 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7232 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7235 2019-06-10 Tom Tromey <tromey@adacore.com>
7237 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7239 (elf_new_init): Don't call stabsread_new_init.
7240 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7241 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7242 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7244 2019-06-10 Tom de Vries <tdevries@suse.de>
7248 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7250 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7252 * source.c (find_and_open_source): Also rewrite relative file
7255 2019-04-26 Amos Bird <amosbird@gmail.com>
7257 * annotate.c (annotate_thread_exited): Add "thread-exited"
7260 2019-06-06 Tom Tromey <tromey@adacore.com>
7262 * maint.h (class scoped_command_stats): Use
7263 DISABLE_COPY_AND_ASSIGN.
7264 <print_time>: New method.
7265 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7267 (scoped_command_stats::print_time): New method.
7269 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7271 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7272 instructions of lengths 6 or 8 bytes.
7274 2019-06-04 Pedro Alves <palves@redhat.com>
7276 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7278 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7279 * breakpoint.c (condition_completer): Likewise.
7280 * cli/cli-dump.c (scan_expression): Likewise.
7281 * common/filestuff.c (mkdir_recursive): Likewise.
7282 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7283 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7284 (gdb_abspath): Likewise.
7285 * compile/compile-cplus-types.c
7286 (compile_cplus_instance::decl_name): Likewise.
7287 * completer.c (complete_explicit_location):
7288 (signal_completer, reg_or_group_completer_1): Likewise.
7289 * cp-support.c (cp_remove_params_if_any): Likewise.
7290 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7291 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7292 * infcmd.c (strip_bg_char): Likewise.
7293 * linespec.c (copy_token_string): Likewise.
7294 * mi/mi-main.c (output_cores): Likewise.
7295 * psymtab.c (psymtab_search_name):
7296 * symfile.c (test_set_ext_lang_command): Likewise.
7297 * target.c (target_fileio_read_stralloc): Likewise.
7298 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7299 * value.c (complete_internalvar): Likewise.
7301 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7303 Add objfile property to gdb.Type.
7304 * NEWS: Mention Python API addition.
7305 * python/py-type.c (typy_get_objfile): New method.
7307 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7309 * NEWS: Mention the new set|show style [title|highlight].
7310 Mention changes to "show style", "help" and "apropos".
7312 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7314 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7315 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7316 instead of print_help_for_command.
7317 (print_doc_of_command): New function.
7318 (help_list): Add 'apropos -v word' suggestion.
7319 (print_help_for_command): Style the command name using title style.
7320 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7321 (_initialize_cli_cmds): Describe -v in apropos_command help.
7323 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7325 * cli/cli-style.h (cli_style_option): Add name in constructor,
7326 add m_name class member, add constructor with intensity,
7327 add name class function.
7328 (cli_style_option::add_setshow_commands): Remove name argument.
7329 (highlight_style, title_style): New styles.
7330 * cli/cli-style.c (do_show): New function that shows a style
7331 characteristic styling the style name with itself.
7332 (set_style_name): New function.
7333 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7334 Update all callers according to the changes in cli/cli-style.h.
7335 * utils.h (fputs_highlighted): New function.
7336 * utils.c (fputs_highlighted): Likewise.
7338 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7340 * NEWS: Mention new pipe command and new convenience variables.
7342 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7344 * cli/cli-cmds.c (pipe_command): New function.
7345 (_initialize_cli_cmds): Call add_com for pipe_command.
7346 Define | as an alias for pipe.
7347 (exit_status_set_internal_vars): New function.
7348 (shell_escape): Call exit_status_set_internal_vars.
7349 cli/cli-decode.c (find_command_name_length): Recognize | as
7350 a single character command.
7352 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7354 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7355 top.c (execute_command_to_ui_file): New function, mostly a copy
7356 of execute_command_to_string.
7357 (execute_command_to_string): Implement by calling
7358 execute_command_to_ui_file.
7360 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7362 * top.h (saved_command_line): Remove declaration.
7363 * top.c (previous_saved_command_line, previous_repeat_arguments):
7365 (saved_command_line): Make static, define together with other
7367 (dont_repeat): Clear repeat_arguments.
7368 (repeat_previous, get_saved_command_line, save_command_line):
7370 (gdb_init): Initialize saved_command_line
7371 and previous_saved_command_line.
7372 * main.c (captured_main_1): Remove saved_command_line initialization.
7373 * event-top.c (handle_line_of_input): Update to use
7374 the new 'repeat' related functions instead of direct access to
7376 * command.h (repeat_previous, get_saved_command_line,
7377 save_command_line): New declarations.
7378 (dont_repeat): Add comment.
7380 2019-05-30 Tom Tromey <tromey@adacore.com>
7382 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7384 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7386 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7389 * completer.c (complete): Initialize variable word.
7391 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7393 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7394 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7395 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7396 'body' is NULL to the outter 'if', protecting the '!is_define'
7399 2019-05-29 Tom Tromey <tromey@adacore.com>
7401 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7402 (dwarf_unknown): New function.
7403 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7404 (dwarf_type_encoding_name): Use dwarf_unknown.
7406 2019-05-29 Tom Tromey <tromey@adacore.com>
7409 * cp-valprint.c (cp_print_value_fields): Call
7410 cp_print_static_field inside "try".
7412 2019-05-29 Tom Tromey <tromey@adacore.com>
7414 * inflow.c (struct terminal_info): Add default operator=.
7415 * configure: Rebuild.
7416 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7417 -Wdeprecated-copy-dtor, -Wredundant-move.
7419 2019-05-29 Tom Tromey <tromey@adacore.com>
7422 * infcmd.c (print_return_value_1): Handle finish_print
7424 (show_print_finish): New function.
7425 (_initialize_infcmd): Add "set/show print finish" commands.
7426 * valprint.c (user_print_options): Initialize new member.
7427 * valprint.h (struct value_print_options) <finish_print>: New
7430 2019-05-28 Tom Tromey <tromey@adacore.com>
7432 * ada-lang.c (ada_remove_Xbn_suffix)
7433 (find_old_style_renaming_symbol)
7434 (parse_old_style_renaming): Remove.
7435 (ada_find_renaming_symbol): Don't call
7436 find_old_style_renaming_symbol.
7437 (ada_is_renaming_symbol): Rename from
7438 ada_find_renaming_symbol. Remove "block" parameter. Return
7440 (ada_read_var_value): Update and simplify.
7441 * ada-exp.y (write_var_or_type): Remove old code.
7443 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7446 * event-top.c: Remove include comment.
7447 * inflow.c (class scoped_ignore_sigttou): Move from here...
7448 * inflow.h (class scoped_ignore_sigttou): ...to here.
7449 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7450 * top.c: Remove include comment.
7452 2019-05-27 Tom Tromey <tom@tromey.com>
7456 2019-05-22 Tom Tromey <tromey@adacore.com>
7458 * target.c (target_follow_exec): Constify parameter.
7459 * target-delegates.c: Rebuild.
7460 * remote.c (remote_target::follow_exec): Constify parameter.
7461 * infrun.c (follow_exec): Constify parameter.
7462 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7463 (target_follow_exec): Likewise.
7465 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7467 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7468 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7470 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7472 * NEWS: Add debugredirect and testsuite sections.
7474 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7476 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7477 target descriptions using exclusively floating point register name
7480 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7483 * f-lang.c (build_fortran_types): Handle the case where
7484 gdbarch_floatformat_for_type returns a nullptr.
7486 2019-05-21 Tom de Vries <tdevries@suse.de>
7489 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7491 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7494 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7496 * i386-tdep.c (i386_floatformat_for_type): Use
7497 floatformats_ia64_quad for the 16-byte floating point component
7498 within a fortran 32-byte complex number.
7500 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7502 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7503 delete default constructor.
7504 (find_partial_die): Update to return const struct.
7505 (partial_die_parent_scope): Move variable declaration into scope
7506 of its use and change its type to auto.
7507 (guess_partial_die_structure_name): Likewise.
7508 (partial_die_info::fixup): Likewise.
7510 2019-05-17 Tom Tromey <tromey@adacore.com>
7512 * source.c (find_and_open_source): Remove cast.
7514 2019-05-17 Tom Tromey <tromey@adacore.com>
7516 * annotate.c (annotate_source): Make "filename" const.
7517 * annotate.h (annotate_source): Use const.
7519 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7521 * disasm.c (set_disassembler_options): Send errors to stderr.
7523 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7525 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7526 (cli_interp_base::set_logging): Check debug_redirect.
7527 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7528 * cli/cli-logging.c (debug_redirect): Add static variable.
7529 (pop_output_files): Add default param.
7530 (handle_redirections): Print debug setting.
7531 (show_logging_command): Likewise.
7532 (_initialize_cli_logging): Add debugredirect command.
7533 * interps.c (current_interp_set_logging): Add debug_redirect
7535 * interps.h (set_logging): Add debug_redirect parameter.
7536 (current_interp_set_logging): Likewise.
7537 * mi/mi-common.h: Likewise.
7538 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7540 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7541 Tom Tromey <tromey@adacore.com>
7543 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7545 * cli/cli-interp.h (make_logging_output): Remove declaration.
7546 * cli/cli-logging.c (make_logging_output): Remove function.
7547 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7549 * ui-file.c (tee_file::tee_file): Remove bools.
7550 (tee_file::~tee_file): Remove deletes.
7551 * ui-file.h (tee_file): Remove bools.
7553 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7555 * mi/mi-cmds.h (mi_cmd_complete): New function.
7556 * mi/mi-main.c (mi_cmd_complete): Likewise.
7557 * mi/mi-cmds.c: Define new MI command -complete.
7558 * NEWS: Mention new -complete command.
7560 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7562 * completer.h (complete): New function.
7563 * completer.c (complete): Likewise.
7564 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7565 function defined in completer.h.
7567 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7569 * MAINTAINERS (Write After Approval): Add myself.
7571 2019-05-17 Tom de Vries <tdevries@suse.de>
7574 * dwarf2read.c (struct cu_partial_die_info): New struct.
7575 (find_partial_die): Return cu_partial_die_info.
7576 (partial_die_parent_scope, guess_partial_die_structure_name)
7577 (partial_die_info::fixup): Handle new return type of find_partial_die.
7579 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7581 PR breakpoints/24541
7582 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7583 "std::string", simplifying the algorithm.
7585 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7587 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7588 (stap_static_probe_ops::get_probes): Likewise.
7590 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7592 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7593 '-')" and "else if".
7594 (stap_parse_single_operand): Join checks for
7595 "gdbarch_stap_parse_special_token_p" and
7596 "gdbarch_stap_parse_special_token" in the same "if" statement.
7597 Invert check when verifying for operation on register
7600 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7602 * stap-probe.c (stap_get_opcode): Update comment.
7603 (stap_get_expected_argument_type): Likewise.
7604 (handle_stap_probe): Likewise.
7606 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7608 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7609 return type to 'bool'. Adjust comment. Use 'bool' when
7611 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7612 * stap-probe.c (stap_parse_argument_1): Likewise.
7613 (stap_is_operator): Likewise.
7614 (stap_is_generic_prefix): Likewise.
7615 (stap_is_register_prefix): Likewise.
7616 (stap_is_register_indirection_prefix): Likewise.
7617 (stap_is_integer_prefix): Likewise.
7618 (stap_generic_check_suffix): Likewise.
7619 (stap_check_integer_suffix): Likewise.
7620 (stap_check_register_suffix): Likewise.
7621 (stap_check_register_indirection_suffix): Likewise.
7622 (stap_parse_register_operand): Likewise.
7623 (stap_parse_single_operand): Likewise.
7624 (stap_parse_argument_1): Likewise.
7625 (stap_probe::get_argument_count): Likewise.
7626 (stap_is_operator): Likewise.
7628 2019-05-16 Tom Tromey <tromey@adacore.com>
7630 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7633 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7635 * linux-thread-db.c (try_thread_db_load_1): Change return type
7637 (try_thread_db_load): Likewise.
7638 (try_thread_db_load_from_pdir_1): Likewise.
7639 (try_thread_db_load_from_pdir): Likewise.
7640 (try_thread_db_load_from_sdir): Likewise.
7641 (try_thread_db_load_from_dir): Likewise.
7642 (thread_db_load_search): Likewise.
7643 (has_libpthread): Likewise.
7644 (thread_db_load): Likewise.
7646 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7648 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7649 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7650 NULL, and complain/return if that's the case.
7652 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7654 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7655 (advance, posn, abstract_read_memory): New functions.
7656 [struct mem_read_abstraction]: New struct.
7657 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7659 2019-05-14 Tom Tromey <tromey@adacore.com>
7661 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7662 value is not lval_memory.
7664 2019-05-14 Tom Tromey <tromey@adacore.com>
7666 * solib.c (info_sharedlibrary_command): Style the file name.
7668 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7670 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7671 (aarch64_vnv_type): Likewise.
7672 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7673 * common/tdesc.c: Likewise.
7674 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7675 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7676 * features/aarch64-fpu.xml: Add ieee half view.
7677 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7678 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7679 * gdbtypes.h (struct builtin_type): Likewise.
7680 (struct objfile_type): Likewise.
7682 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7684 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7686 * location.h (string_to_event_location): Likewise.
7688 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7692 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7694 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7695 New variable declaration.
7696 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7698 (print_one_breakpoint): Use ui_out::test_flags and new global
7699 variable to compute use_fixed_output.
7700 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7702 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7703 (mi_multi_location_breakpoint_output_fixed): Remove.
7704 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7706 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7707 fix_multi_location_breakpoint_output flag if version >= 3.
7708 * ui-out.h (enum ui_out_flag)
7709 <fix_multi_location_breakpoint_output>: New enumerator.
7711 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7713 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7715 2019-05-10 Tom Tromey <tromey@adacore.com>
7717 * ada-lang.c (catch_ada_completer): New function.
7718 (_initialize_ada_language): Use it.
7720 2019-05-10 Tom Tromey <tromey@adacore.com>
7722 * thread.c (print_thread_info): Make "requested_threads" const.
7723 * gdbthread.h (print_thread_info): Make "requested_threads"
7725 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7726 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7728 2019-05-08 Tom Tromey <tom@tromey.com>
7730 * gdbtypes.c (objfile_type_data): Change type.
7731 (objfile_type, _initialize_gdbtypes): Update.
7733 2019-05-08 Tom Tromey <tom@tromey.com>
7735 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7736 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7737 (_initialize_dwarf2_frame): Update.
7739 2019-05-08 Tom Tromey <tom@tromey.com>
7741 * objc-lang.c (objc_objfile_data): Change type.
7742 (find_methods): Update.
7743 (_initialize_objc_lang): Remove.
7745 2019-05-08 Tom Tromey <tom@tromey.com>
7747 * stabsread.c (rs6000_builtin_type_data): Change type.
7748 (rs6000_builtin_type, _initialize_stabsread): Update.
7750 2019-05-08 Tom Tromey <tom@tromey.com>
7752 * mips-tdep.c (mips_pdr_data): Remove.
7753 (_initialize_mips_tdep): Update.
7755 2019-05-08 Tom Tromey <tom@tromey.com>
7757 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7758 (hppa_init_objfile_priv_data, read_unwind_info)
7759 (find_unwind_entry, _initialize_hppa_tdep): Update.
7761 2019-05-08 Tom Tromey <tom@tromey.com>
7763 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7764 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7766 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7768 2019-05-08 Tom Tromey <tom@tromey.com>
7770 * mdebugread.c (basic_type_data): Change type.
7771 (basic_type, _initialize_mdebugread): Update.
7773 2019-05-08 Tom Tromey <tom@tromey.com>
7775 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7777 2019-05-08 Tom Tromey <tom@tromey.com>
7779 * nto-tdep.c (nto_inferior_data_reg): Change type.
7780 (nto_inferior_data): Update.
7781 (nto_inferior_data_cleanup, nto_new_inferior_data)
7782 (_initialize_nto_tdep): Remove.
7783 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7785 2019-05-08 Tom Tromey <tom@tromey.com>
7787 * ada-lang.c (struct ada_inferior_data): Add initializers.
7788 (ada_inferior_data): Change type.
7789 (ada_inferior_data_cleanup): Remove.
7790 (get_ada_inferior_data, ada_inferior_exit)
7791 (struct ada_pspace_data): Add initializers, destructor.
7792 (ada_pspace_data_handle): Change type.
7793 (get_ada_pspace_data): Update.
7794 (ada_pspace_data_cleanup): Remove.
7796 2019-05-08 Tom Tromey <tom@tromey.com>
7798 * coffread.c (struct coff_symfile_info): Add initializers.
7799 (coff_objfile_data_key): Move lower. Change type.
7800 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7802 (coff_free_info): Remove.
7804 2019-05-08 Tom Tromey <tom@tromey.com>
7806 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7807 (fbsd_pspace_data_handle): Move lower. Change type.
7808 (get_fbsd_pspace_data): Update.
7809 (fbsd_pspace_data_cleanup): Remove.
7810 (_initialize_fbsd_tdep): Update.
7812 2019-05-08 Tom Tromey <tom@tromey.com>
7814 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7815 (get_ada_tasks_pspace_data): Update.
7816 (ada_tasks_pspace_data_cleanup): Remove.
7817 (_initialize_tasks): Update.
7818 (ada_tasks_inferior_data_handle): Change type.
7819 (get_ada_tasks_inferior_data): Update.
7820 (ada_tasks_inferior_data_cleanup): Remove.
7821 (struct ada_tasks_pspace_data): Add initializers.
7823 2019-05-08 Tom Tromey <tom@tromey.com>
7825 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7826 * symfile-debug.c (debug_sym_get_probes): Change type.
7827 * stap-probe.c (handle_stap_probe):
7828 (stap_static_probe_ops::get_probes): Change type.
7829 * probe.h (class static_probe_ops) <get_probes>: Change type.
7830 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7831 (parse_probes_in_pspace): Update.
7832 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7834 (any_static_probe_ops::get_probes): Change type.
7835 * elfread.c (elfread_data): New typedef.
7836 (probe_key): Change type.
7837 (elf_get_probes): Likewise. Update.
7838 (probe_key_free): Remove.
7839 (_initialize_elfread): Update.
7840 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7842 (dtrace_process_dof_probe, dtrace_process_dof)
7843 (dtrace_static_probe_ops::get_probe): Change type.
7845 2019-05-08 Tom Tromey <tom@tromey.com>
7847 * xcoffread.c (struct xcoff_symfile_info): Rename from
7848 coff_symfile_info. Add initializers.
7849 (xcoff_objfile_data_key): Move lower. Change type.
7850 (XCOFF_DATA): Rewrite.
7851 (xcoff_free_info): Remove.
7852 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7853 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7854 (xcoff_initial_scan): Update.
7856 2019-05-08 Tom Tromey <tom@tromey.com>
7858 * solib-svr4.c (struct svr4_info): Add initializers and
7860 <probes_table>: Now an htab_up.
7861 (solib_svr4_pspace_data): Change type.
7862 (free_probes_table): Simplify.
7863 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7864 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7865 (probes_table_remove_objfile_probes, register_solib_event_probe)
7866 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7867 (_initialize_svr4_solib): Update.
7869 2019-05-08 Tom Tromey <tom@tromey.com>
7871 * remote.c (remote_pspace_data): Change type.
7872 (remote_pspace_data_cleanup): Remove.
7873 (get_remote_exec_file, set_pspace_remote_exec_file)
7874 (_initialize_remote): Update.
7876 2019-05-08 Tom Tromey <tom@tromey.com>
7878 * breakpoint.c (breakpoint_objfile_key): Change type.
7879 (get_breakpoint_objfile_data): Update.
7880 (free_breakpoint_objfile_data): Remove.
7881 (_initialize_breakpoint): Update.
7883 2019-05-08 Tom Tromey <tom@tromey.com>
7885 * linux-tdep.c (struct linux_info): Add initializers.
7886 (linux_inferior_data): Move. Change type.
7887 (invalidate_linux_cache_inf): Update.
7888 (linux_inferior_data_cleanup): Remove.
7889 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7891 2019-05-08 Tom Tromey <tom@tromey.com>
7893 * auxv.c (auxv_inferior_data): Move. Change type.
7894 (auxv_inferior_data_cleanup): Remove.
7895 (invalidate_auxv_cache_inf): Rewrite.
7896 (get_auxv_inferior_data, _initialize_auxv): Update.
7898 2019-05-08 Tom Tromey <tom@tromey.com>
7900 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7901 (symfile_debug_objfile_data_key): Change type.
7902 (symfile_debug_installed, debug_qf_has_symbols)
7903 (debug_qf_find_last_source_symtab)
7904 (debug_qf_forget_cached_source_info)
7905 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7906 (debug_qf_print_stats, debug_qf_dump)
7907 (debug_qf_expand_symtabs_for_function)
7908 (debug_qf_expand_all_symtabs)
7909 (debug_qf_expand_symtabs_with_fullname)
7910 (debug_qf_map_matching_symbols)
7911 (debug_qf_expand_symtabs_matching)
7912 (debug_qf_find_pc_sect_compunit_symtab)
7913 (debug_qf_map_symbol_filenames)
7914 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7915 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7916 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7917 (debug_sym_read_linetable, debug_sym_relocate): Update.
7918 (symfile_debug_free_objfile): Remove.
7919 (install_symfile_debug_logging, _initialize_symfile_debug):
7922 2019-05-08 Tom Tromey <tom@tromey.com>
7924 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7925 allocate_on_obstack.
7926 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7927 (get_dwarf2_per_objfile): Update.
7928 (set_dwarf2_per_objfile): Remove.
7929 (dwarf2_has_info, dwarf2_get_section_info): Update.
7930 (dwarf2_free_objfile): Remove.
7931 (_initialize_dwarf2_read): Update.
7933 2019-05-08 Tom Tromey <tom@tromey.com>
7935 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7937 <unsupported_script_warning_printed,
7938 script_not_found_warning_printed>: Now bool.
7939 (auto_load_pspace_data): Change type.
7940 (~auto_load_pspace_info): Rename from
7941 auto_load_pspace_data_cleanup.
7942 (get_auto_load_pspace_data, init_loaded_scripts_info)
7943 (clear_section_scripts, maybe_print_unsupported_script_warning)
7944 (maybe_print_script_not_found_warning, _initialize_auto_load):
7947 2019-05-08 Tom Tromey <tom@tromey.com>
7949 * objfiles.c (objfile_pspace_info): Add destructor and
7951 (objfiles_pspace_data): Change type.
7952 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7953 (get_objfile_pspace_data): Update.
7954 (objfiles_bfd_data): Change type.
7955 (get_objfile_bfd_data): Update.
7956 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7958 2019-05-08 Tom Tromey <tom@tromey.com>
7960 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7962 (get_catch_syscall_inferior_data): Update.
7963 (catch_syscall_inferior_data_cleanup): Remove.
7964 (_initialize_break_catch_syscall): Update.
7966 2019-05-08 Tom Tromey <tom@tromey.com>
7968 * inflow.c (struct terminal_info): Add destructor and
7970 (inflow_inferior_data): Change type.
7971 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7972 (get_inflow_inferior_data, inflow_inferior_exit)
7973 (swap_terminal_info, _initialize_inflow): Update.
7975 2019-05-08 Tom Tromey <tom@tromey.com>
7977 * target-dcache.c (target_dcache_cleanup): Remove.
7978 (target_dcache_aspace_key): Change type.
7979 (target_dcache_init_p, target_dcache_invalidate)
7980 (target_dcache_get, target_dcache_get_or_init)
7981 (_initialize_target_dcache): Update.
7982 * dcache.h (struct dcache_deleter): New.
7984 2019-05-08 Tom Tromey <tom@tromey.com>
7986 * symtab.c (struct symbol_cache): Add destructor and
7988 (symbol_cache_key): Move. Change type.
7989 (make_symbol_cache, free_symbol_cache): Remove.
7990 (get_symbol_cache): Update.
7991 (symbol_cache_cleanup): Remove.
7992 (ALL_PSPACES, symbol_cache_flush)
7993 (maintenance_print_symbol_cache)
7994 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7997 2019-05-08 Tom Tromey <tom@tromey.com>
7999 * symtab.c (struct main_info): Add destructor and initializers.
8000 (main_progspace_key): Move. Change type.
8001 (get_main_info): Update.
8002 (main_info_cleanup): Remove.
8003 (_initialize_symtab): Update.
8005 2019-05-08 Tom Tromey <tom@tromey.com>
8007 * registry.h (DECLARE_REGISTRY): Define the _key class.
8009 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8011 * NEWS: Merge two 'New commands' sections.
8013 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8015 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8016 parameter and use Ada language definition instead.
8017 (ada_val_print_ptr): Remove unused language parameter.
8018 (ada_val_print_num): Remove language parameter and use Ada language
8020 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8022 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8023 parameter and use Ada language definition instead.
8024 (ada_val_print_1): Update all ada_val_print_xxx calls.
8025 Remove language parameter.
8026 (ada_val_print): Update ada_val_print_1 call.
8028 2019-05-08 Tom Tromey <tromey@adacore.com>
8030 * remote.c (remote_hw_watchpoint_limit)
8031 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8034 2019-05-08 Tom Tromey <tromey@adacore.com>
8036 * maint.c (_initialize_maint_cmds): Move initialization code to
8038 (watchdog, show_watchdog): Move to remote.c.
8039 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8041 (_initialize_remote): Move initialization code from maint.c.
8042 * defs.h (watchdog): Don't declare.
8044 2019-05-08 Tom Tromey <tromey@adacore.com>
8046 * tui/tui-interp.c: Include main.h.
8047 * interps.c: Include main.h.
8048 * main.h (interpreter_p): Declare.
8049 * defs.h (interpreter_p): Don't declare.
8051 2019-05-08 Tom Tromey <tromey@adacore.com>
8053 * dwarf2loc.c: Include dwarf2read.h.
8054 * defs.h (read_unsigned_leb128): Don't declare.
8055 * dwarf2read.h (read_unsigned_leb128): Declare.
8057 2019-05-08 Tom Tromey <tromey@adacore.com>
8059 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8062 2019-05-08 Tom Tromey <tromey@adacore.com>
8064 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8065 when no wrap column is set.
8067 2019-05-08 Tom Tromey <tromey@adacore.com>
8069 * c-lang.c (c_get_string): Handle non-C-style arrays.
8071 2019-05-08 Tom Tromey <tromey@adacore.com>
8073 * typeprint.c (print_offset_data::update): Print the bit offset,
8074 not the number of bits remaining.
8076 2019-05-08 Tom Tromey <tromey@adacore.com>
8078 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8079 padding at end of comment.
8081 2019-05-08 Tom Tromey <tromey@adacore.com>
8083 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8086 2019-05-06 Tom Tromey <tom@tromey.com>
8088 * common/scoped_mmap.c: Include common-defs.h.
8089 * common/scoped_mmap.h: Don't include config.h.
8091 2019-05-04 Tom Tromey <tom@tromey.com>
8093 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8094 (struct aarch64_call_info): Add initializers.
8095 <si>: Now a std::vector.
8096 (pass_on_stack, aarch64_push_dummy_call): Update.
8098 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8099 Tom Tromey <tom@tromey.com>
8101 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8102 (ppc_threads): Now a std::vector. Now static.
8103 (hwdebug_find_thread_points_by_tid)
8104 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8107 2019-05-04 Tom Tromey <tom@tromey.com>
8109 * arc-tdep.c (arc_tdesc_init): Return bool.
8111 2019-05-04 Tom Tromey <tom@tromey.com>
8113 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8114 Use gdb_assert_not_reached.
8116 2019-05-04 Tom Tromey <tom@tromey.com>
8118 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8121 2019-05-04 Tom Tromey <tom@tromey.com>
8123 * arc-tdep.c (arc_tdesc_init): Use bool.
8125 2019-05-04 Tom Tromey <tom@tromey.com>
8127 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8129 2019-05-04 Tom Tromey <tom@tromey.com>
8131 * cli/cli-cmds.c (valid_command_p): Return bool.
8133 2019-05-04 Tom Tromey <tom@tromey.com>
8135 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8136 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8138 2019-05-04 Raul Tambre <raul@tambre.ee>
8140 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8141 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8142 operator for comparison.
8144 2019-05-04 Tom Tromey <tom@tromey.com>
8146 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8147 (lookup_partial_symbol, print_partial_symbols)
8148 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8149 (psymbol_compare): Update.
8150 (add_psymbol_to_bcache): Clear the entire psymbol.
8151 (maintenance_check_psymtabs): Update.
8152 * psympriv.h (struct partial_symbol): Don't derive from
8153 general_symbol_info.
8154 <obj_section, unrelocated_address, address,
8155 set_unrelocated_address>: Update.
8156 <ginfo>: New member.
8157 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8158 (debug_names::write_psymbols): Update.
8160 2019-05-04 Tom de Vries <tdevries@suse.de>
8162 * contrib/cc-with-tweaks.sh: Support -n arg.
8164 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8166 * corelow.c (core_target::detach): Ensure frame cache and
8167 register caches are cleared.
8168 inferior.c (exit_inferior_1): Likewise.
8170 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8171 Tom Tromey <tom@tromey.com>
8173 * dictionary.c (collate_pending_symbols_by_language): Remove
8174 "struct" from foreach.
8175 * symtab.c (lookup_global_symbol_from_objfile)
8176 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8178 * ser-tcp.c (net_open): Remove "struct" from foreach.
8179 * objfiles.c (objfile_relocate, objfile_rebase)
8180 (objfile_has_symbols): Remove "struct" from foreach.
8181 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8183 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8185 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8186 "struct" from foreach.
8187 * ada-lang.c (create_excep_cond_exprs)
8188 (ada_exception_catchpoint_cond_string): Remove "struct" from
8191 2019-05-03 Tom Tromey <tromey@adacore.com>
8193 * ada-exp.y (convert_char_literal): Check suffix of each
8196 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8199 * ada-exp.y (yywrap): Don't define.
8200 * ada-lex.l (%option): Add noyywrap
8203 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8205 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8206 _WIN32_WINNT to the XP level, unless already defined to a higher
8209 * unittests/parse-connection-spec-selftests.c:
8211 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8214 * symfile.c (find_separate_debug_file): Remove colon from the
8215 drive spec of DOS/Windows file names of the target, so that the
8216 file name produced from DEBUGDIR and the target's directory will
8217 be valid on DOS/Windows systems.
8219 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8221 * rust-lang.c (val_print_struct): Handle printing structures
8224 2019-05-02 Tom Tromey <tromey@adacore.com>
8226 * valarith.c (_initialize_valarith): Remove.
8228 2019-05-01 Tom Tromey <tromey@adacore.com>
8230 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8233 2019-05-01 Tom Tromey <tromey@adacore.com>
8235 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8236 for big-endian copies.
8238 2019-04-30 Ali Tamur <tamur@google.com>
8239 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8240 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8241 (read_3_bytes): New function.
8243 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8245 * windows-nat.c (main_thread_id): Delete.
8246 (handle_output_debug_string): Replace main_thread_id by
8247 current_event.dwThreadId.
8248 (fake_create_process): Likewise.
8249 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8250 Do not set main_thread_id.
8251 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8252 current_event.dwThreadId.
8253 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8255 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8257 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8258 Use current_event.dwThreadId instead of main_thread_id.
8260 2019-04-30 Tom Tromey <tromey@adacore.com>
8262 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8263 (create_excep_cond_exprs): Iterate over program spaces.
8264 (ada_exception_catchpoint_cond_string): Examine all minimal
8265 symbols for exception types.
8267 2019-04-30 Tom Tromey <tromey@adacore.com>
8270 * dwarf2read.c (process_structure_scope): Handle case where type
8271 has template parameters but no symbol was created.
8273 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8274 Chris January <chris.january@arm.com>
8276 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8278 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8280 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8282 * f-typeprint.c (f_print_type): Update rules for printing
8284 (f_type_print_varspec_suffix): Likewise.
8286 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8287 Chris January <chris.january@arm.com>
8289 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8292 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8294 * f-lang.c (build_fortran_types): Change name of void type to
8296 * f-typeprint.c (f_type_print_base): Print the name of the void
8297 type, rather than a fixed string.
8298 * f-valprint.c (f_decorations): Use lower case void string.
8300 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8301 Chris January <chris.january@arm.com>
8303 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8306 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8307 Chris January <chris.january@arm.com>
8308 David Lecomber <david.lecomber@arm.com>
8310 * f-exp.y (BINOP_INTRINSIC): New token.
8311 (exp): New parser rule handling BINOP_INTRINSIC.
8312 (f77_keywords): Add new builtin procedures.
8313 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8314 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8315 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8316 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8317 (print_unop_subexp_f): New function.
8318 (print_binop_subexp_f): New function.
8319 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8320 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8321 (dump_subexp_body_f): Likewise.
8322 (operator_check_f): Likewise.
8323 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8324 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8326 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8328 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8330 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8331 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8332 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8333 (operator_length_f): New fuction.
8334 (print_subexp_f): New function.
8335 (op_name_f): New function.
8336 (dump_subexp_body_f): New function.
8337 (operator_check_f): New function.
8338 (exp_descriptor_f): Replace standard expression handling functions
8340 * gdb/fortran-operator.def: New file.
8341 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8342 * gdb/std-operator.def: Remove UNOP_KIND.
8344 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8346 * std-operator.def: Remove unbalanced, stray double quote
8349 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8350 Chris January <chris.january@arm.com>
8351 Daniel Everett <daniel.everett@arm.com>
8352 Nick Forrington <nick.forrington@arm.com>
8353 Richard Bunt <richard.bunt@arm.com>
8355 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8356 of depth when printing anonymous structs or unions.
8357 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8358 Don't print either the top-level value, or the children if the
8359 max-depth is exceeded.
8360 (ppscm_print_children): When printing the key of a map, allow one
8361 extra level of depth.
8362 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8363 print either the top-level value, or the children if the max-depth
8365 (print_children): When printing the key of a map, allow one extra
8367 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8368 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8369 (user_print_options): Initialise max_depth field.
8370 (val_print_scalar_or_string_type_p): New function.
8371 (val_print): Check to see if the max depth has been reached.
8372 (val_print_check_max_depth): Define new function.
8373 (show_print_max_depth): New function.
8374 (_initialize_valprint): Add 'print max-depth' option.
8375 * valprint.h (struct value_print_options) <max_depth>: New field.
8376 (val_print_check_max_depth): Declare new function.
8377 * NEWS: Document new feature.
8379 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8381 * ada-lang.c (ada_language_defn): Initialise new field.
8382 * c-lang.c (c_is_string_type_p): New function.
8383 (c_language_defn): Initialise new field.
8384 (cplus_language_defn): Initialise new field.
8385 (asm_language_defn): Initialise new field.
8386 (minimal_language_defn): Initialise new field.
8387 * c-lang.h (c_is_string_type_p): Declare new function.
8388 * d-lang.c (d_language_defn): Initialise new field.
8389 * f-lang.c (f_is_string_type_p): New function.
8390 (f_language_defn): Initialise new field.
8391 * go-lang.c (go_is_string_type_p): New function.
8392 (go_language_defn): Initialise new field.
8393 * language.c (default_is_string_type_p): New function.
8394 (unknown_language_defn): Initialise new field.
8395 (auto_language_defn): Initialise new field.
8396 * language.h (struct language_defn) <la_is_string_type_p>: New
8398 (default_is_string_type_p): Declare new function.
8399 * m2-lang.c (m2_language_defn): Initialise new field.
8400 * objc-lang.c (objc_language_defn): Initialise new field.
8401 * opencl-lang.c (opencl_language_defn): Initialise new field.
8402 * p-lang.c (pascal_is_string_type_p): New function.
8403 (pascal_language_defn): Initialise new field.
8404 * rust-lang.c (rust_is_string_type_p): New function.
8405 (rust_language_defn): Initialise new field.
8407 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8409 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8411 * ada-lang.c (ada_language_defn): Initialise new field.
8412 * c-lang.c (c_language_defn): Likewise.
8413 (cplus_language_defn): Likewise.
8414 (asm_language_defn): Likewise.
8415 (minimal_language_defn): Likewise.
8416 * d-lang.c (d_language_defn): Likewise.
8417 * f-lang.c (f_language_defn): Likewise.
8418 * go-lang.c (go_language_defn): Likewise.
8419 * language.c (unknown_language_defn): Likewise.
8420 (auto_language_defn): Likewise.
8421 * m2-lang.c (m2_language_defn): Likewise.
8422 * objc-lang.c (objc_language_defn): Likewise.
8423 * opencl-lang.c (opencl_language_defn): Likewise.
8424 * p-lang.c (pascal_language_defn): Likewise.
8425 * rust-lang.c (rust_language_defn): Likewise.
8427 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8429 * ada-lang.c (ada_is_character_type): Change return type to bool.
8430 (ada_is_string_type): Likewise.
8431 * ada-lang.h (ada_is_character_type): Update declaration
8432 (ada_is_string_type): Likewise.
8434 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8436 Support style in 'frame|thread apply'
8438 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8439 * record.c (record_start, record_stop): Update callers of
8440 execute_command_to_string with false.
8441 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8442 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8444 (class string_file): New constructor with term_out parameter.
8445 Override methods term_out and can_emit_style_escape. New member
8447 (class stdio_file): Override can_emit_style_escape.
8448 (class tee_file): Override term_out and can_emit_style_escape.
8449 * utils.h (can_emit_style_escape): Remove.
8450 * utils.c (can_emit_style_escape): Likewise.
8451 Update all callers of can_emit_style_escape (SOMESTREAM) to
8452 SOMESTREAM->can_emit_style_escape.
8453 * source-cache.c (source_cache::get_source_lines): Likewise.
8454 * stack.c (frame_apply_command_count): Call execute_command_to_string
8455 passing the term_out characteristic of the current gdb_stdout.
8456 * thread.c (thr_try_catch_cmd): Likewise.
8457 * top.c (execute_command_to_string): pass term_out parameter
8458 to construct the string_file for the command output.
8459 * ui-file.c (term_cli_styling): New function (most code moved
8460 from utils.c can_emit_style_escape).
8461 (string_file::string_file, string_file::can_emit_style_escape,
8462 stdio_file::can_emit_style_escape, tee_file::term_out,
8463 tee_file::can_emit_style_escape): New functions.
8465 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8467 * NEWS: Mention the new set|show may-call-functions.
8468 * infcall.c (may_call_functions_p): New variable.
8469 (show_may_call_functions_p): New function.
8470 (call_function_by_hand_dummy): Throws an error if not
8472 (_initialize_infcall): Call add_setshow_boolean_cmd for
8475 2019-04-25 Keith Seitz <keiths@redhat.com>
8478 * cp-support.c (inspect_type): Don't attempt substitutions
8479 of symbol with the same name.
8481 2019-04-25 Tom Tromey <tromey@adacore.com>
8484 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8487 2019-04-25 Tom Tromey <tromey@adacore.com>
8489 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8491 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8492 (gdb_xml_parser::parse): Use std::move.
8493 * python/python-internal.h (gdbpy_convert_exception): Take a const
8495 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8497 * python/py-utils.c (gdbpy_convert_exception): Take a const
8499 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8501 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8503 * mi/mi-main.c (mi_print_exception): Take a const reference.
8504 * main.c (handle_command_errors): Take a const reference.
8505 * linespec.c (parse_linespec): Use std::move.
8506 * infcall.c (run_inferior_call): Use std::move.
8507 (call_function_by_hand_dummy): Use std::move.
8508 * exec.c (try_open_exec_file): Use std::move.
8509 * exceptions.h (exception_print, exception_fprintf)
8510 (exception_print_same): Update.
8511 * exceptions.c (print_exception, exception_print)
8512 (exception_fprintf, exception_print_same): Change parameters to
8514 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8515 * common/new-op.c: Use std::move.
8516 * common/common-exceptions.h (struct gdb_exception): Add move
8518 (struct gdb_exception_error, struct gdb_exception_quit, struct
8519 gdb_quit_bad_alloc): Change constructor to move constructor.
8520 (throw_exception): Change parameter to rvalue reference.
8521 * common/common-exceptions.c (throw_exception): Take rvalue
8523 * cli/cli-interp.c (safe_execute_command): Use std::move.
8524 * breakpoint.c (insert_bp_location, location_to_sals): Use
8527 2019-04-25 Tom Tromey <tromey@adacore.com>
8529 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8530 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8531 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8532 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8533 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8534 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8535 guile/scm-value.c: Use unpack.
8536 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8537 gdbscm_gdb_exception.
8538 (gdbscm_throw_gdb_exception): Likewise.
8539 (struct gdbscm_gdb_exception): New.
8540 (unpack): New function.
8541 (gdbscm_wrap): Use unpack.
8543 2019-04-25 Tom Tromey <tromey@adacore.com>
8545 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8546 (gdb_rl_callback_handler): Use std::move.
8547 * common/common-exceptions.h (struct gdb_exception): Add move
8548 assignment operator.
8549 (throw_exception_sjlj): Change "exception" to const reference.
8550 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8551 (throw_exception_sjlj): Change "exception" to const reference.
8553 2019-04-25 Tom Tromey <tromey@adacore.com>
8555 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8556 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8557 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8559 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8561 * mi/mi-interp.c (mi_interp::exec): Update.
8562 * linespec.c (parse_linespec): Update.
8563 * infcall.c (run_inferior_call): Update.
8564 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8565 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8566 (gdbscm_lookup_global_symbol): Update.
8567 * guile/scm-param.c (gdbscm_parameter_value): Update.
8568 * guile/scm-frame.c (gdbscm_frame_read_register)
8569 (gdbscm_frame_read_var): Update.
8570 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8571 * exec.c (try_open_exec_file): Update.
8572 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8573 (gdb_rl_callback_handler): Update.
8574 * common/common-exceptions.h (exception_none): Don't declare.
8575 * common/common-exceptions.c (exception_none): Don't define.
8576 (struct catcher) <exception>: Update.
8577 * cli/cli-interp.c (safe_execute_command): Update.
8578 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8580 2019-04-25 Ali Tamur <tamur@google.com>
8582 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8583 (read_attribute_value): Likewise.
8584 (dwarf2_read_addr_index): Update comment.
8585 (read_str_index): Add DW_FORM_strx.
8586 (dwarf2_string_attr): Likewise.
8587 (dwarf2_const_value_attr): Likewise.
8588 (dump_die_shallow): Likewise.
8589 (dwarf2_fetch_constant_bytes): Likewise.
8590 (skip_form_bytes): Likewise.
8591 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8593 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8597 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8598 OFFSET. Verify if current mapping contains an ELF header.
8599 (linux_find_memory_regions_full): Adjust call to
8602 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8603 Kang Li <kanglictf@gmail.com>
8607 * dwarf2-frame.c (read_initial_length): Be consistent about using
8608 unsigned representation of length.
8609 (decode_frame_entry_1): Likewise. Check for wraparound of
8610 end pointer as well as buffer overflow.
8612 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8614 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8617 2019-04-24 Tom Tromey <tromey@adacore.com>
8619 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8621 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8623 * s12z-tdep.c (s12z_unwind_pc): Delete.
8624 (s12z_unwind_sp): Delete.
8625 (s12z_gdbarch_init): Don't register deleted functions with
8628 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8630 * rl78-tdep.c (rl78_unwind_sp): Delete.
8631 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8633 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8635 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8636 (xstormy16_unwind_pc): Delete.
8637 (xstormy16_dummy_id): Delete.
8638 (xstormy16_gdbarch_init): Don't register deleted functions with
8641 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8643 * vax-tdep.c (vax_unwind_pc): Delete.
8644 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8646 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8648 * v850-tdep.c (v850_unwind_sp): Delete.
8649 (v850_unwind_pc): Delete.
8650 (v850_dummy_id): Delete.
8651 (v850_gdbarch_init): Don't register deleted functions with
8654 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8656 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8657 (tilegx_unwind_pc): Delete.
8658 (tilegx_unwind_dummy_id): Delete.
8659 (tilegx_gdbarch_init): Don't register deleted functions with
8662 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8664 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8665 (tic6x_dummy_id): Delete.
8666 (tic6x_gdbarch_init): Don't register deleted functions with
8669 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8671 * sparc-tdep.c (sparc_unwind_pc): Delete.
8672 (sparc32_gdbarch_init): Don't register deleted function with
8675 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8677 * sh-tdep.c (sh_unwind_sp): Delete.
8678 (sh_unwind_pc): Delete.
8679 (sh_dummy_id): Delete.
8680 (sh_gdbarch_init): Don't register deleted functions with
8683 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8685 * score-tdep.c (score_unwind_sp): Delete.
8686 (score_unwind_pc): Delete.
8687 (score_dummy_id): Delete.
8688 (score_gdbarch_init): Don't register deleted functions with
8691 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8693 * rx-tdep.c (rx_unwind_pc): Delete.
8694 (rx_unwind_sp): Delete.
8695 (rx_dummy_id): Delete.
8696 (rx_gdbarch_init): Don't register deleted functions with
8697 gdbarch. Update comment.
8699 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8701 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8702 (rs6000_dummy_id): Delete.
8703 (rs6000_gdbarch_init): Don't register deleted functions with
8706 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8708 * or1k-tdep.c (or1k_dummy_id): Delete.
8709 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8711 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8713 * nios2-tdep.c (nios2_dummy_id): Delete.
8714 (nios2_unwind_sp): Delete.
8715 (nios2_gdbarch_init): Don't register deleted functions with
8718 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8720 * nds32-tdep.c (nds32_dummy_id): Delete.
8721 (nds32_unwind_pc): Delete.
8722 (nds32_unwind_sp): Delete.
8723 (nds32_gdbarch_init): Don't register deleted functions with
8726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8728 * msp430-tdep.c (msp430_unwind_pc): Delete.
8729 (msp430_unwind_sp): Delete.
8730 (msp430_dummy_id): Delete.
8731 (msp430_gdbarch_init): Don't register deleted functions with
8734 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8736 * moxie-tdep.c (moxie_unwind_sp): Delete.
8737 (moxie_unwind_pc): Delete.
8738 (moxie_dummy_id): Delete.
8739 (moxie_gdbarch_init): Don't register deleted functions with
8742 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8744 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8745 (mn10300_unwind_pc): Delete.
8746 (mn10300_unwind_sp): Delete.
8747 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8749 (mn10300_frame_unwind_init): Don't register deleted functions with
8752 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8754 * mep-tdep.c (mep_unwind_pc): Delete.
8755 (mep_unwind_sp): Delete.
8756 (mep_dummy_id): Delete.
8757 (mep_gdbarch_init): Don't register deleted functions with
8760 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8762 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8763 (m68hc11_unwind_sp): Delete.
8764 (m68hc11_gdbarch_init): Don't register deleted functions with
8767 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8769 * m32r-tdep.c (m32r_unwind_sp): Delete.
8770 (m32r_unwind_pc): Delete.
8771 (m32r_dummy_id): Delete.
8772 (m32r_gdbarch_init): Don't register deleted functions with
8775 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8777 * m32c-tdep.c (m32c_unwind_pc): Delete.
8778 (m32c_unwind_sp): Delete.
8779 (m32c_dummy_id): Delete.
8780 (m32c_gdbarch_init): Don't register deleted functions with
8783 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8785 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8786 (lm32_unwind_pc): Delete.
8787 (lm32_dummy_id): Delete.
8788 (lm32_gdbarch_init): Don't register deleted functions with
8791 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8793 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8794 (iq2000_unwind_pc): Delete.
8795 (iq2000_dummy_id): Delete.
8796 (iq2000_gdbarch_init): Don't register deleted functions with
8799 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8801 * nds32-tdep.c (nds32_type_align): Delete.
8802 (nds32_push_dummy_call): Use type_align instead.
8804 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8806 * arm-tdep.c (arm_type_align): Only handle vector override case.
8807 (arm_push_dummy_call): Use type_align.
8808 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8810 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8812 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8814 (pass_on_stack): Use type_align.
8815 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8818 2019-04-23 Tom Tromey <tromey@adacore.com>
8820 * dwarf2read.c (line_header::file_name_at): Remove unused
8823 2019-04-23 Tom de Vries <tdevries@suse.de>
8826 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8830 2019-03-27 Ali Tamur <tamur@google.com>
8832 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8833 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8834 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8835 (dwarf_expr_context::get_addr_index): Likewise
8836 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8837 (symbol_needs_eval_context::get_addr_index): Likewise
8838 (disassemble_dwarf_expression): Add DW_OP_addrx
8839 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8840 (read_cutu_die_from_dwo): Update comment
8841 (skip_one_die): Add DW_FORM_addrx
8842 (read_attribute_value): Likewise
8843 (var_decode_location): Add DW_OP_addrx
8844 (dwarf2_const_value_attr): Add DW_FORM_addrx
8845 (dump_die_shallow): Likewise
8846 (dwarf2_fetch_constant_bytes): Likewise
8847 (decode_locdesc): Add DW_OP_addrx
8848 (skip_form_bytes): Add DW_FORM_addrx
8850 2019-04-22 Ali Tamur <tamur@google.com>
8852 * MAINTAINERS (Write After Approval): Add self.
8854 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8856 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8857 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8858 (open_symbol_file_object): Likewise.
8859 (svr4_default_sos): Add info parameter.
8860 (svr4_read_so_list): Likewise.
8861 (svr4_current_sos_direct): Adjust functions calls to pass down
8863 (svr4_current_sos_1): Add info parameter.
8864 (svr4_current_sos): Call get_svr4_info, pass info down to
8866 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8868 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8870 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8872 (probes_table_remove_objfile_probes): Likewise.
8873 (register_solib_event_probe): Add info parameter.
8874 (solist_update_incremental): Pass info parameter down to
8876 (disable_probes_interface): Add info parameter.
8877 (svr4_handle_solib_event): Pass current_program_space to
8878 get_svr4_info. Adjust disable_probes_interface cleanup.
8879 (svr4_create_probe_breakpoints): Add info parameter, pass it
8880 down to register_solib_event_probe.
8881 (svr4_create_solib_event_breakpoints): Add info parameter,
8882 pass it down to svr4_create_probe_breakpoints.
8883 (enable_break): Pass info down to
8884 svr4_create_solib_event_breakpoints.
8885 (svr4_solib_create_inferior_hook): Pass current_program_space to
8887 (svr4_clear_solib): Likewise.
8889 2019-04-22 Pedro Alves <palves@redhat.com>
8891 * solib-svr4.c (svr4_free_objfile_observer): New.
8892 (probe_and_action::objfile): New field.
8893 (probes_table_htab_remove_objfile_probes)
8894 (probes_table_remove_objfile_probes): New functions.
8895 (register_solib_event_probe): Add 'objfile' parameter. Store it
8896 in the new probe_and_action. Don't store the probe in 'lookup'.
8897 (svr4_create_probe_breakpoints): Pass objfile to
8898 register_solib_event_probe.
8899 (_initialize_svr4_solib): Register a free_objfile observer.
8901 2019-04-19 Tom Tromey <tom@tromey.com>
8903 * common/queue.h: Remove.
8905 2019-04-19 Tom Tromey <tom@tromey.com>
8907 * event-loop.c: Don't include "common/queue.h".
8909 2019-04-19 Tom Tromey <tom@tromey.com>
8911 * remote.c (remote_target): Use delete.
8912 * remote-notif.h: Include <list>, not "common/queue.h".
8913 (notif_client_p): Remove typedef.
8914 (remote_notif_state): Add constructor, destructor, initializer.
8915 <notif_queue>: Now a std::list.
8916 (remote_notif_state_xfree): Don't declare.
8917 * remote-notif.c (remote_notif_process, handle_notification)
8918 (remote_notif_state_allocate): Update.
8919 (~remote_notif_state): Rename from remote_notif_state_xfree.
8921 2019-04-19 Tom Tromey <tom@tromey.com>
8923 * symfile.c (reread_symbols): Update.
8924 * objfiles.c (objfile_register_static_link)
8925 (objfile_lookup_static_link): Update
8926 (~objfile) Don't delete static_links.
8927 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8929 2019-04-19 Tom Tromey <tom@tromey.com>
8931 * type-stack.h (struct type_stack) <insert>: Constify string.
8932 * type-stack.c (type_stack::insert): Constify string.
8933 * gdbtypes.h (lookup_template_type): Update.
8934 (address_space_name_to_int): Update.
8935 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8937 (lookup_template_type): Make name const.
8938 * c-exp.y: Update rules.
8939 (lex_one_token, classify_name, classify_inner_name)
8940 (c_print_token): Update.
8941 * p-exp.y: Update rules.
8943 * f-exp.y: Update rules.
8945 * d-exp.y: Update rules.
8946 (lex_one_token, classify_name, classify_inner_name): Update.
8947 * parse.c (write_dollar_variable, copy_name): Return std::string.
8948 * parser-defs.h (copy_name): Change return type.
8949 * m2-exp.y: Update rules.
8951 * go-exp.y (lex_one_token): Update.
8953 (classify_unsafe_function, classify_packaged_name)
8954 (classify_name, yylex): Update.
8956 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8958 * configure.ac: add --enable-source-highlight switch.
8959 * configure: Regenerate.
8960 * top.c (print_gdb_version): plumb --enable-source-highlight
8961 status to "show configuration".
8963 2019-04-19 Tom Tromey <tromey@adacore.com>
8965 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8967 (empty_record, ada_template_to_fixed_record_type_1)
8968 (template_to_static_fixed_type)
8969 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8970 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8971 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8974 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8977 * source.c (print_source_lines_base): Advance "iter" when a
8978 control character is seen.
8980 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8982 * inferior.h (struct infcall_suspend_state_deleter):
8983 Catch exception in destructor to avoid crash.
8985 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8987 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8988 close to the add_com "shell".
8990 2019-04-18 Tom Tromey <tromey@adacore.com>
8992 * process-stratum-target.h (class process_stratum_target)
8993 <stratum>: Add "final".
8995 2019-04-17 Tom Tromey <tromey@adacore.com>
8997 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8998 against nullptr before use.
9000 2019-04-17 Alan Hayward <alan.hayward@arm.com>
9002 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
9004 2019-04-17 Jim Wilson <jimw@sifive.com>
9005 Andrew Burgess <andrew.burgess@embecosm.com>
9007 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9008 code read might fail, assume 4-byte breakpoint in that case.
9010 2019-04-15 Leszek Swirski <leszeks@google.com>
9012 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9013 rather than a hand-rolled POD check when checking for forced MEMORY
9016 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9018 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9019 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9021 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9022 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9023 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9026 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9028 * aarch64-linux-nat.c
9029 (aarch64_linux_nat_target::thread_architecture): Add override.
9030 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9033 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9035 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9037 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9039 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9040 target types of size 96-bits, add some additional comments, and
9041 check that the builtin type we found was the correct size.
9043 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9045 * utils.c (prompt_for_continue): Don't restore the styling at the
9046 end, as applied_style has the wrong value. This fixes styling in
9047 long lists of file names that are interrupted by the "Continue?"
9050 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9052 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9053 * c-lang.c (c_language_defn): Likewise.
9054 (cplus_language_defn): Likewise.
9055 (asm_language_defn): Likewise.
9056 (minimal_language_defn): Likewise.
9057 * d-lang.c (d_language_defn): Likewise.
9058 * f-lang.c (f_language_defn): Likewise.
9059 * go-lang.c (go_language_defn): Likewise.
9060 * language.c (unknown_language_defn): Likewise.
9061 (auto_language_defn): Likewise.
9062 * language.h (struct language_defn): Remove la_magic field.
9063 (LANG_MAGIC): Delete.
9064 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9065 * objc-lang.c (objc_language_defn): Likewise.
9066 * opencl-lang.c (opencl_language_defn): Likewise.
9067 * p-lang.c (pascal_language_defn): Likewise.
9068 * rust-lang.c (rust_language_defn): Likewise.
9070 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9072 * riscv-tdep.c (riscv_type_align): New function.
9073 (riscv_type_alignment): Delete.
9074 (riscv_arg_location): Use 'type_align'.
9075 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9077 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9079 * gdbtypes.c (type_align): A struct with no non-static fields also
9082 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9084 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9086 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9088 (riscv_struct_info::analyse): New implementation using new
9089 analyse_inner member function.
9090 (riscv_struct_info::field_offset): New member function.
9091 (riscv_struct_info::m_offsets): New member variable.
9092 (riscv_struct_info::analyse_inner): New private member function,
9093 takes the old implementation of riscv_struct_info::analyse but
9094 extended to track field offsets.
9095 (riscv_call_arg_struct): Update the struct folding special cases
9096 to handle cases where empty C++ structs, which are non-zero
9098 (riscv_arg_location): Initialise the length of each location, a
9099 non-zero length now indicates the location is in use.
9100 (riscv_push_dummy_call): Allow for the first location having a
9101 non-zero offset when setting up arguments.
9102 (riscv_return_value): Likewise, but for return values.
9104 2019-04-11 Tom Tromey <tromey@adacore.com>
9106 * utils.c (internal_vproblem): Make "msg" const.
9108 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9110 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9111 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9112 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9113 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9115 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9117 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9119 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9120 of amd64_collect_native_gregset.
9121 (amd64_linux_nat_target::store_registers): Likewise.
9123 2019-04-10 Tom Tromey <tom@tromey.com>
9125 * symtab.c (lookup_global_symbol_from_objfile)
9126 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9127 * objfiles.h (class separate_debug_iterator): New.
9128 (class separate_debug_range): New.
9129 (struct objfile) <separate_debug_objfiles>: New method.
9130 (objfile_separate_debug_iterate): Don't declare.
9131 * objfiles.c (separate_debug_iterator::operator++): Rename from
9132 objfile_separate_debug_iterate.
9133 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9135 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9138 2019-04-10 Tom Tromey <tom@tromey.com>
9140 * symfile.c (reread_symbols): Remove old comment.
9141 * objfiles.c (free_all_objfiles): Fix a typo.
9143 2019-04-10 Tom Tromey <tom@tromey.com>
9145 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9146 * minsyms.c (lookup_minimal_symbol): Use foreach.
9147 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9148 (lookup_minimal_symbol_solib_trampoline): Likewise.
9149 * symfile.c (reread_symbols): Use foreach.
9151 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9152 Tom Tromey <tromey@adacore.com>
9155 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9156 (rust_lex_int_test): Change "value" to be LONGEST.
9157 (rust_lex_tests): Add test for long integer literal.
9159 2019-04-09 Tom Tromey <tromey@adacore.com>
9161 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9163 (extended_remote_target::attach): Update.
9164 (remote_target::remote_notice_new_inferior): Update.
9165 (remote_target::add_current_inferior_and_thread): Update.
9166 * inferior.c (exit_inferior_1): Use "false".
9167 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9169 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9171 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9172 the "start" command.
9174 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9176 * python/py-inferior.c (infpy_thread_from_thread_handle):
9177 Adjust comments to reflect renaming of thread_from_thread_handle
9178 to thread_from_handle. Adjust keywords. Fix type error message.
9179 (inferior_object_methods): Add thread_from_handle. Retain
9180 thread_from_thread_handle, but mark it as deprecated.
9182 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9184 * gdbthread.h (find_thread_by_handle): Revise declaration.
9185 * thread.c (find_thread_by_handle): Likewise. Adjust
9187 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9188 support for buffer objects as handles.
9190 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9192 * python/py-infthread.c (thpy_thread_handle): New function.
9193 (thread_object_methods): Register thpy_thread_handle.
9195 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9197 * gdbthread.h (thread_to_thread_handle): Declare.
9198 * thread.c (gdbtypes.h): Include.
9199 (thread_to_thread_handle): New function.
9201 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9202 (target_thread_info_to_thread_handle): Declare.
9203 * target.c (target_thread_info_to_thread_handle): New function.
9204 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9205 * target-delegates.c: Regenerate.
9207 * linux-thread-db.c (class thread_db_target): Add method
9208 thread_info_to_thread_handle.
9209 (thread_db_target::thread_info_to_thread_handle): Define.
9210 * remote.c (class remote_target): Add new method
9211 thread_info_to_thread_handle.
9212 (remote_target::thread_info_to_thread_handle): Define.
9214 2019-04-08 Pedro Alves <palves@redhat.com>
9216 * common/common-exceptions.c (throw_exception): Don't create
9217 named object to throw; throw directly.
9218 (throw_it): Likewise. Don't initialize gdb_exception::message
9219 here, with new; pass FMT and AP to the ctor instead.
9220 * common/common-exceptions.h: Include <string>.
9221 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9222 const char *, va_list)): New ctor. Use std::make_shared.
9223 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9225 (gdb_exception_error::gdb_exception_error(enum errors, const char
9227 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9229 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9231 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9232 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9235 2019-04-08 Tom Tromey <tom@tromey.com>
9237 * valops.c (value_rtti_indirect_type): Replace throw_exception
9239 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9241 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9243 * target.c (target_translate_tls_address): Replace throw_exception
9245 * stack.c (frame_apply_command_count): Replace throw_exception
9247 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9249 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9251 * rs6000-tdep.c (rs6000_frame_cache)
9252 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9253 * remote.c: Replace throw_exception with throw.
9254 * record-full.c (record_full_message, record_full_wait_1)
9255 (record_full_restore): Replace throw_exception with throw.
9257 (get_thread_current_frame_id, record_btrace_start_replaying)
9258 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9259 (cmd_record_btrace_start): Replace throw_exception with throw.
9260 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9262 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9263 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9265 (find_linespec_symbols): Replace throw_exception with throw.
9266 * infrun.c (displaced_step_prepare, resume): Replace
9267 throw_exception with throw.
9268 * infcmd.c (post_create_inferior): Replace throw_exception with
9270 * inf-loop.c (inferior_event_handler): Replace throw_exception
9272 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9273 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9274 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9275 (get_prev_frame_always, get_frame_pc_if_available)
9276 (get_frame_address_in_block_if_available, get_frame_language):
9277 Replace throw_exception with throw.
9278 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9279 throw_exception with throw.
9280 * eval.c (fetch_subexp_value, evaluate_var_value)
9281 (evaluate_funcall, evaluate_subexp_standard): Replace
9282 throw_exception with throw.
9283 * dwarf2loc.c (call_site_find_chain)
9284 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9285 Replace throw_exception with throw.
9286 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9288 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9290 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9291 * completer.c (complete_line_internal): Replace throw_exception
9293 * compile/compile-object-run.c (compile_object_run): Replace
9294 throw_exception with throw.
9295 * cli/cli-script.c (process_next_line): Replace throw_exception
9297 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9298 (btrace_enable, btrace_maint_update_pt_packets): Replace
9299 throw_exception with throw.
9300 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9301 throw_exception with throw.
9302 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9303 throw_exception with throw.
9304 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9305 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9306 * aarch64-tdep.c (aarch64_make_prologue_cache)
9307 (aarch64_make_stub_cache): Replace throw_exception with throw.
9309 2019-04-08 Tom Tromey <tom@tromey.com>
9311 * common/common-exceptions.c (throw_exception): Rename from
9312 throw_exception_cxx. Remove old copy. Make argument const.
9313 (throw_it): Create and throw exception objects directly.
9314 * common/common-exceptions.h (throw_exception): Make argument
9316 (struct gdb_exception_error): Add constructor.
9317 (struct gdb_exception_quit): Add constructor.
9319 2019-04-08 Tom Tromey <tom@tromey.com>
9321 * common/common-exceptions.h (exception_rethrow): Don't declare.
9322 (TRY_SJLJ): Update comment.
9323 (TRY, CATCH, END_CATCH): Remove.
9324 * common/common-exceptions.c (exception_rethrow): Remove.
9326 2019-04-08 Tom Tromey <tom@tromey.com>
9328 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9330 (gdb_exception_error): Rename from
9331 gdb_exception_RETURN_MASK_ERROR.
9332 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9333 (gdb_quit_bad_alloc): Update.
9334 * aarch64-tdep.c: Update.
9335 * ada-lang.c: Update.
9336 * ada-typeprint.c: Update.
9337 * ada-valprint.c: Update.
9338 * amd64-tdep.c: Update.
9339 * arch-utils.c: Update.
9340 * break-catch-throw.c: Update.
9341 * breakpoint.c: Update.
9343 * c-varobj.c: Update.
9344 * cli/cli-cmds.c: Update.
9345 * cli/cli-interp.c: Update.
9346 * cli/cli-script.c: Update.
9347 * common/common-exceptions.c: Update.
9348 * common/new-op.c: Update.
9349 * common/selftest.c: Update.
9350 * compile/compile-c-symbols.c: Update.
9351 * compile/compile-cplus-symbols.c: Update.
9352 * compile/compile-object-load.c: Update.
9353 * compile/compile-object-run.c: Update.
9354 * completer.c: Update.
9355 * corelow.c: Update.
9357 * cp-support.c: Update.
9358 * cp-valprint.c: Update.
9359 * darwin-nat.c: Update.
9360 * disasm-selftests.c: Update.
9361 * dtrace-probe.c: Update.
9362 * dwarf-index-cache.c: Update.
9363 * dwarf-index-write.c: Update.
9364 * dwarf2-frame-tailcall.c: Update.
9365 * dwarf2-frame.c: Update.
9366 * dwarf2loc.c: Update.
9367 * dwarf2read.c: Update.
9369 * event-loop.c: Update.
9370 * event-top.c: Update.
9372 * f-valprint.c: Update.
9373 * fbsd-tdep.c: Update.
9374 * frame-unwind.c: Update.
9376 * gdbtypes.c: Update.
9377 * gnu-v3-abi.c: Update.
9378 * guile/guile-internal.h: Update.
9379 * guile/scm-block.c: Update.
9380 * guile/scm-breakpoint.c: Update.
9381 * guile/scm-cmd.c: Update.
9382 * guile/scm-disasm.c: Update.
9383 * guile/scm-frame.c: Update.
9384 * guile/scm-lazy-string.c: Update.
9385 * guile/scm-math.c: Update.
9386 * guile/scm-param.c: Update.
9387 * guile/scm-ports.c: Update.
9388 * guile/scm-pretty-print.c: Update.
9389 * guile/scm-symbol.c: Update.
9390 * guile/scm-symtab.c: Update.
9391 * guile/scm-type.c: Update.
9392 * guile/scm-value.c: Update.
9393 * i386-linux-tdep.c: Update.
9394 * i386-tdep.c: Update.
9395 * inf-loop.c: Update.
9396 * infcall.c: Update.
9400 * language.c: Update.
9401 * linespec.c: Update.
9402 * linux-fork.c: Update.
9403 * linux-nat.c: Update.
9404 * linux-tdep.c: Update.
9405 * linux-thread-db.c: Update.
9407 * mi/mi-cmd-break.c: Update.
9408 * mi/mi-cmd-stack.c: Update.
9409 * mi/mi-interp.c: Update.
9410 * mi/mi-main.c: Update.
9411 * objc-lang.c: Update.
9412 * p-valprint.c: Update.
9414 * ppc-linux-tdep.c: Update.
9415 * printcmd.c: Update.
9416 * python/py-arch.c: Update.
9417 * python/py-breakpoint.c: Update.
9418 * python/py-cmd.c: Update.
9419 * python/py-finishbreakpoint.c: Update.
9420 * python/py-frame.c: Update.
9421 * python/py-framefilter.c: Update.
9422 * python/py-gdb-readline.c: Update.
9423 * python/py-inferior.c: Update.
9424 * python/py-infthread.c: Update.
9425 * python/py-lazy-string.c: Update.
9426 * python/py-linetable.c: Update.
9427 * python/py-objfile.c: Update.
9428 * python/py-param.c: Update.
9429 * python/py-prettyprint.c: Update.
9430 * python/py-progspace.c: Update.
9431 * python/py-record-btrace.c: Update.
9432 * python/py-record.c: Update.
9433 * python/py-symbol.c: Update.
9434 * python/py-type.c: Update.
9435 * python/py-unwind.c: Update.
9436 * python/py-utils.c: Update.
9437 * python/py-value.c: Update.
9438 * python/python.c: Update.
9439 * record-btrace.c: Update.
9440 * record-full.c: Update.
9441 * remote-fileio.c: Update.
9443 * riscv-tdep.c: Update.
9444 * rs6000-aix-tdep.c: Update.
9445 * rs6000-tdep.c: Update.
9446 * rust-exp.y: Update.
9447 * rust-lang.c: Update.
9448 * s390-tdep.c: Update.
9449 * selftest-arch.c: Update.
9450 * solib-dsbt.c: Update.
9451 * solib-frv.c: Update.
9452 * solib-spu.c: Update.
9453 * solib-svr4.c: Update.
9455 * sparc64-linux-tdep.c: Update.
9457 * symfile-mem.c: Update.
9458 * symmisc.c: Update.
9462 * tracefile-tfile.c: Update.
9463 * tui/tui.c: Update.
9464 * typeprint.c: Update.
9465 * unittests/cli-utils-selftests.c: Update.
9466 * unittests/parse-connection-spec-selftests.c: Update.
9468 * valprint.c: Update.
9471 * windows-nat.c: Update.
9472 * x86-linux-nat.c: Update.
9473 * xml-support.c: Update.
9475 2019-04-08 Tom Tromey <tom@tromey.com>
9477 * xml-support.c: Use C++ exception handling.
9478 * x86-linux-nat.c: Use C++ exception handling.
9479 * windows-nat.c: Use C++ exception handling.
9480 * varobj.c: Use C++ exception handling.
9481 * value.c: Use C++ exception handling.
9482 * valprint.c: Use C++ exception handling.
9483 * valops.c: Use C++ exception handling.
9484 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9486 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9487 * typeprint.c: Use C++ exception handling.
9488 * tui/tui.c: Use C++ exception handling.
9489 * tracefile-tfile.c: Use C++ exception handling.
9490 * top.c: Use C++ exception handling.
9491 * thread.c: Use C++ exception handling.
9492 * target.c: Use C++ exception handling.
9493 * symmisc.c: Use C++ exception handling.
9494 * symfile-mem.c: Use C++ exception handling.
9495 * stack.c: Use C++ exception handling.
9496 * sparc64-linux-tdep.c: Use C++ exception handling.
9497 * solib.c: Use C++ exception handling.
9498 * solib-svr4.c: Use C++ exception handling.
9499 * solib-spu.c: Use C++ exception handling.
9500 * solib-frv.c: Use C++ exception handling.
9501 * solib-dsbt.c: Use C++ exception handling.
9502 * selftest-arch.c: Use C++ exception handling.
9503 * s390-tdep.c: Use C++ exception handling.
9504 * rust-lang.c: Use C++ exception handling.
9505 * rust-exp.y: Use C++ exception handling.
9506 * rs6000-tdep.c: Use C++ exception handling.
9507 * rs6000-aix-tdep.c: Use C++ exception handling.
9508 * riscv-tdep.c: Use C++ exception handling.
9509 * remote.c: Use C++ exception handling.
9510 * remote-fileio.c: Use C++ exception handling.
9511 * record-full.c: Use C++ exception handling.
9512 * record-btrace.c: Use C++ exception handling.
9513 * python/python.c: Use C++ exception handling.
9514 * python/py-value.c: Use C++ exception handling.
9515 * python/py-utils.c: Use C++ exception handling.
9516 * python/py-unwind.c: Use C++ exception handling.
9517 * python/py-type.c: Use C++ exception handling.
9518 * python/py-symbol.c: Use C++ exception handling.
9519 * python/py-record.c: Use C++ exception handling.
9520 * python/py-record-btrace.c: Use C++ exception handling.
9521 * python/py-progspace.c: Use C++ exception handling.
9522 * python/py-prettyprint.c: Use C++ exception handling.
9523 * python/py-param.c: Use C++ exception handling.
9524 * python/py-objfile.c: Use C++ exception handling.
9525 * python/py-linetable.c: Use C++ exception handling.
9526 * python/py-lazy-string.c: Use C++ exception handling.
9527 * python/py-infthread.c: Use C++ exception handling.
9528 * python/py-inferior.c: Use C++ exception handling.
9529 * python/py-gdb-readline.c: Use C++ exception handling.
9530 * python/py-framefilter.c: Use C++ exception handling.
9531 * python/py-frame.c: Use C++ exception handling.
9532 * python/py-finishbreakpoint.c: Use C++ exception handling.
9533 * python/py-cmd.c: Use C++ exception handling.
9534 * python/py-breakpoint.c: Use C++ exception handling.
9535 * python/py-arch.c: Use C++ exception handling.
9536 * printcmd.c: Use C++ exception handling.
9537 * ppc-linux-tdep.c: Use C++ exception handling.
9538 * parse.c: Use C++ exception handling.
9539 * p-valprint.c: Use C++ exception handling.
9540 * objc-lang.c: Use C++ exception handling.
9541 * mi/mi-main.c: Use C++ exception handling.
9542 * mi/mi-interp.c: Use C++ exception handling.
9543 * mi/mi-cmd-stack.c: Use C++ exception handling.
9544 * mi/mi-cmd-break.c: Use C++ exception handling.
9545 * main.c: Use C++ exception handling.
9546 * linux-thread-db.c: Use C++ exception handling.
9547 * linux-tdep.c: Use C++ exception handling.
9548 * linux-nat.c: Use C++ exception handling.
9549 * linux-fork.c: Use C++ exception handling.
9550 * linespec.c: Use C++ exception handling.
9551 * language.c: Use C++ exception handling.
9552 * jit.c: Use C++ exception handling.
9553 * infrun.c: Use C++ exception handling.
9554 * infcmd.c: Use C++ exception handling.
9555 * infcall.c: Use C++ exception handling.
9556 * inf-loop.c: Use C++ exception handling.
9557 * i386-tdep.c: Use C++ exception handling.
9558 * i386-linux-tdep.c: Use C++ exception handling.
9559 * guile/scm-value.c: Use C++ exception handling.
9560 * guile/scm-type.c: Use C++ exception handling.
9561 * guile/scm-symtab.c: Use C++ exception handling.
9562 * guile/scm-symbol.c: Use C++ exception handling.
9563 * guile/scm-pretty-print.c: Use C++ exception handling.
9564 * guile/scm-ports.c: Use C++ exception handling.
9565 * guile/scm-param.c: Use C++ exception handling.
9566 * guile/scm-math.c: Use C++ exception handling.
9567 * guile/scm-lazy-string.c: Use C++ exception handling.
9568 * guile/scm-frame.c: Use C++ exception handling.
9569 * guile/scm-disasm.c: Use C++ exception handling.
9570 * guile/scm-cmd.c: Use C++ exception handling.
9571 * guile/scm-breakpoint.c: Use C++ exception handling.
9572 * guile/scm-block.c: Use C++ exception handling.
9573 * guile/guile-internal.h: Use C++ exception handling.
9574 * gnu-v3-abi.c: Use C++ exception handling.
9575 * gdbtypes.c: Use C++ exception handling.
9576 * frame.c: Use C++ exception handling.
9577 * frame-unwind.c: Use C++ exception handling.
9578 * fbsd-tdep.c: Use C++ exception handling.
9579 * f-valprint.c: Use C++ exception handling.
9580 * exec.c: Use C++ exception handling.
9581 * event-top.c: Use C++ exception handling.
9582 * event-loop.c: Use C++ exception handling.
9583 * eval.c: Use C++ exception handling.
9584 * dwarf2read.c: Use C++ exception handling.
9585 * dwarf2loc.c: Use C++ exception handling.
9586 * dwarf2-frame.c: Use C++ exception handling.
9587 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9588 * dwarf-index-write.c: Use C++ exception handling.
9589 * dwarf-index-cache.c: Use C++ exception handling.
9590 * dtrace-probe.c: Use C++ exception handling.
9591 * disasm-selftests.c: Use C++ exception handling.
9592 * darwin-nat.c: Use C++ exception handling.
9593 * cp-valprint.c: Use C++ exception handling.
9594 * cp-support.c: Use C++ exception handling.
9595 * cp-abi.c: Use C++ exception handling.
9596 * corelow.c: Use C++ exception handling.
9597 * completer.c: Use C++ exception handling.
9598 * compile/compile-object-run.c: Use C++ exception handling.
9599 * compile/compile-object-load.c: Use C++ exception handling.
9600 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9601 * compile/compile-c-symbols.c: Use C++ exception handling.
9602 * common/selftest.c: Use C++ exception handling.
9603 * common/new-op.c: Use C++ exception handling.
9604 * cli/cli-script.c: Use C++ exception handling.
9605 * cli/cli-interp.c: Use C++ exception handling.
9606 * cli/cli-cmds.c: Use C++ exception handling.
9607 * c-varobj.c: Use C++ exception handling.
9608 * btrace.c: Use C++ exception handling.
9609 * breakpoint.c: Use C++ exception handling.
9610 * break-catch-throw.c: Use C++ exception handling.
9611 * arch-utils.c: Use C++ exception handling.
9612 * amd64-tdep.c: Use C++ exception handling.
9613 * ada-valprint.c: Use C++ exception handling.
9614 * ada-typeprint.c: Use C++ exception handling.
9615 * ada-lang.c: Use C++ exception handling.
9616 * aarch64-tdep.c: Use C++ exception handling.
9618 2019-04-08 Tom Tromey <tom@tromey.com>
9620 * xml-support.c (gdb_xml_parser::parse): Update.
9621 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9622 * value.c (show_convenience): Update.
9623 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9624 (test_parse_flags_qcs): Update.
9625 * thread.c (thr_try_catch_cmd): Update.
9626 * target.c (target_translate_tls_address): Update.
9627 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9628 (info_frame_command_core, frame_apply_command_count): Update.
9629 * rust-exp.y (rust_lex_exception_test): Update.
9630 * riscv-tdep.c (riscv_print_one_register_info): Update.
9631 * remote.c (remote_target::enable_btrace): Update.
9632 * record-btrace.c (record_btrace_enable_warn): Update.
9633 * python/py-utils.c (gdbpy_convert_exception): Update.
9634 * printcmd.c (do_one_display, print_variable_and_value): Update.
9635 * mi/mi-main.c (mi_print_exception): Update.
9636 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9637 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9638 * linux-nat.c (linux_nat_target::attach): Update.
9639 * linux-fork.c (class scoped_switch_fork_info): Update.
9640 * infrun.c (displaced_step_prepare): Update.
9641 * infcall.c (call_function_by_hand_dummy): Update.
9642 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9643 * gnu-v3-abi.c (print_one_vtable): Update.
9644 * frame.c (get_prev_frame_always): Update.
9645 * f-valprint.c (info_common_command_for_block): Update.
9646 * exec.c (try_open_exec_file): Update.
9647 * exceptions.c (print_exception, exception_print)
9648 (exception_fprintf, exception_print_same): Update.
9649 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9650 * dwarf-index-cache.c (index_cache::store)
9651 (index_cache::lookup_gdb_index): Update.
9652 * darwin-nat.c (maybe_cache_shell): Update.
9653 * cp-valprint.c (cp_print_value_fields): Update.
9654 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9655 (gcc_cplus_symbol_address): Update.
9656 * compile/compile-c-symbols.c (gcc_convert_symbol)
9657 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9658 * common/selftest.c: Update.
9659 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9661 (exception_try_scope_entry, exception_try_scope_exit): Don't
9663 (struct exception_try_scope): Remove.
9664 (TRY): Don't use exception_try_scope.
9665 (struct gdb_exception): Add constructor, operator=.
9667 (struct gdb_exception_RETURN_MASK_ALL)
9668 (struct gdb_exception_RETURN_MASK_ERROR)
9669 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9670 (struct gdb_quit_bad_alloc): Update.
9671 * common/common-exceptions.c (exception_none): Change
9673 (struct catcher) <state, exception>: Initialize inline.
9674 <prev>: Remove member.
9675 (current_catcher): Remove.
9676 (catchers): New global.
9677 (exceptions_state_mc_init): Simplify.
9678 (catcher_pop): Remove.
9679 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9680 (try_scope_depth, exception_try_scope_entry)
9681 (exception_try_scope_exit): Remove.
9682 (throw_exception_sjlj): Update.
9683 (exception_messages, exception_messages_size): Remove.
9684 (throw_it): Simplify.
9685 (gdb_exception_sliced_copy): Remove.
9686 (throw_exception_cxx): Update.
9687 * cli/cli-script.c (script_from_file): Update.
9688 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9690 * ada-valprint.c (ada_val_print): Update.
9691 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9692 (create_excep_cond_exprs): Update.
9694 2019-04-08 Tom Tromey <tom@tromey.com>
9696 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9697 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9698 (TRY, CATCH, END_CATCH): Remove some definitions.
9699 * common/common-exceptions.c: Don't use GDB_XCPT.
9700 (catcher_list_size): Remove.
9701 (throw_exception, throw_it): Simplify.
9703 2019-04-05 Tom Tromey <tom@tromey.com>
9705 Revert the header-sorting patch.
9706 * ft32-tdep.c: Revert.
9707 * frv-tdep.c: Revert.
9708 * frv-linux-tdep.c: Revert.
9710 * frame-unwind.c: Revert.
9711 * frame-base.c: Revert.
9712 * fork-child.c: Revert.
9713 * findvar.c: Revert.
9714 * findcmd.c: Revert.
9715 * filesystem.c: Revert.
9716 * filename-seen-cache.h: Revert.
9717 * filename-seen-cache.c: Revert.
9718 * fbsd-tdep.c: Revert.
9719 * fbsd-nat.h: Revert.
9720 * fbsd-nat.c: Revert.
9721 * f-valprint.c: Revert.
9722 * f-typeprint.c: Revert.
9724 * extension.h: Revert.
9725 * extension.c: Revert.
9726 * extension-priv.h: Revert.
9727 * expprint.c: Revert.
9730 * exceptions.c: Revert.
9731 * event-top.c: Revert.
9732 * event-loop.c: Revert.
9734 * elfread.c: Revert.
9735 * dwarf2read.h: Revert.
9736 * dwarf2read.c: Revert.
9737 * dwarf2loc.c: Revert.
9738 * dwarf2expr.h: Revert.
9739 * dwarf2expr.c: Revert.
9740 * dwarf2-frame.c: Revert.
9741 * dwarf2-frame-tailcall.c: Revert.
9742 * dwarf-index-write.h: Revert.
9743 * dwarf-index-write.c: Revert.
9744 * dwarf-index-common.c: Revert.
9745 * dwarf-index-cache.h: Revert.
9746 * dwarf-index-cache.c: Revert.
9747 * dummy-frame.c: Revert.
9748 * dtrace-probe.c: Revert.
9751 * disasm-selftests.c: Revert.
9752 * dictionary.c: Revert.
9753 * dicos-tdep.c: Revert.
9754 * demangle.c: Revert.
9757 * darwin-nat.h: Revert.
9758 * darwin-nat.c: Revert.
9759 * darwin-nat-info.c: Revert.
9760 * d-valprint.c: Revert.
9761 * d-namespace.c: Revert.
9764 * csky-tdep.c: Revert.
9765 * csky-linux-tdep.c: Revert.
9766 * cris-tdep.c: Revert.
9767 * cris-linux-tdep.c: Revert.
9768 * cp-valprint.c: Revert.
9769 * cp-support.c: Revert.
9770 * cp-namespace.c: Revert.
9772 * corelow.c: Revert.
9773 * corefile.c: Revert.
9774 * continuations.c: Revert.
9775 * completer.h: Revert.
9776 * completer.c: Revert.
9777 * complaints.c: Revert.
9778 * coffread.c: Revert.
9779 * coff-pe-read.c: Revert.
9780 * cli-out.h: Revert.
9781 * cli-out.c: Revert.
9782 * charset.c: Revert.
9783 * c-varobj.c: Revert.
9784 * c-valprint.c: Revert.
9785 * c-typeprint.c: Revert.
9787 * buildsym.c: Revert.
9788 * buildsym-legacy.c: Revert.
9789 * build-id.h: Revert.
9790 * build-id.c: Revert.
9792 * bsd-uthread.c: Revert.
9793 * breakpoint.h: Revert.
9794 * breakpoint.c: Revert.
9795 * break-catch-throw.c: Revert.
9796 * break-catch-syscall.c: Revert.
9797 * break-catch-sig.c: Revert.
9798 * blockframe.c: Revert.
9800 * bfin-tdep.c: Revert.
9801 * bfin-linux-tdep.c: Revert.
9802 * bfd-target.c: Revert.
9804 * ax-general.c: Revert.
9807 * avr-tdep.c: Revert.
9809 * auto-load.c: Revert.
9810 * arm-wince-tdep.c: Revert.
9811 * arm-tdep.c: Revert.
9812 * arm-symbian-tdep.c: Revert.
9813 * arm-pikeos-tdep.c: Revert.
9814 * arm-obsd-tdep.c: Revert.
9815 * arm-nbsd-tdep.c: Revert.
9816 * arm-nbsd-nat.c: Revert.
9817 * arm-linux-tdep.c: Revert.
9818 * arm-linux-nat.c: Revert.
9819 * arm-fbsd-tdep.c: Revert.
9820 * arm-fbsd-nat.c: Revert.
9821 * arm-bsd-tdep.c: Revert.
9822 * arch-utils.c: Revert.
9823 * arc-tdep.c: Revert.
9824 * arc-newlib-tdep.c: Revert.
9825 * annotate.h: Revert.
9826 * annotate.c: Revert.
9827 * amd64-windows-tdep.c: Revert.
9828 * amd64-windows-nat.c: Revert.
9829 * amd64-tdep.c: Revert.
9830 * amd64-sol2-tdep.c: Revert.
9831 * amd64-obsd-tdep.c: Revert.
9832 * amd64-obsd-nat.c: Revert.
9833 * amd64-nbsd-tdep.c: Revert.
9834 * amd64-nbsd-nat.c: Revert.
9835 * amd64-nat.c: Revert.
9836 * amd64-linux-tdep.c: Revert.
9837 * amd64-linux-nat.c: Revert.
9838 * amd64-fbsd-tdep.c: Revert.
9839 * amd64-fbsd-nat.c: Revert.
9840 * amd64-dicos-tdep.c: Revert.
9841 * amd64-darwin-tdep.c: Revert.
9842 * amd64-bsd-nat.c: Revert.
9843 * alpha-tdep.c: Revert.
9844 * alpha-obsd-tdep.c: Revert.
9845 * alpha-nbsd-tdep.c: Revert.
9846 * alpha-mdebug-tdep.c: Revert.
9847 * alpha-linux-tdep.c: Revert.
9848 * alpha-linux-nat.c: Revert.
9849 * alpha-bsd-tdep.c: Revert.
9850 * alpha-bsd-nat.c: Revert.
9851 * aix-thread.c: Revert.
9853 * addrmap.c: Revert.
9854 * ada-varobj.c: Revert.
9855 * ada-valprint.c: Revert.
9856 * ada-typeprint.c: Revert.
9857 * ada-tasks.c: Revert.
9858 * ada-lang.c: Revert.
9859 * aarch64-tdep.c: Revert.
9860 * aarch64-ravenscar-thread.c: Revert.
9861 * aarch64-newlib-tdep.c: Revert.
9862 * aarch64-linux-tdep.c: Revert.
9863 * aarch64-linux-nat.c: Revert.
9864 * aarch64-fbsd-tdep.c: Revert.
9865 * aarch64-fbsd-nat.c: Revert.
9866 * aarch32-linux-nat.c: Revert.
9868 2019-04-05 Tom Tromey <tom@tromey.com>
9870 * ft32-tdep.c: Sort headers.
9871 * frv-tdep.c: Sort headers.
9872 * frv-linux-tdep.c: Sort headers.
9873 * frame.c: Sort headers.
9874 * frame-unwind.c: Sort headers.
9875 * frame-base.c: Sort headers.
9876 * fork-child.c: Sort headers.
9877 * findvar.c: Sort headers.
9878 * findcmd.c: Sort headers.
9879 * filesystem.c: Sort headers.
9880 * filename-seen-cache.h: Sort headers.
9881 * filename-seen-cache.c: Sort headers.
9882 * fbsd-tdep.c: Sort headers.
9883 * fbsd-nat.h: Sort headers.
9884 * fbsd-nat.c: Sort headers.
9885 * f-valprint.c: Sort headers.
9886 * f-typeprint.c: Sort headers.
9887 * f-lang.c: Sort headers.
9888 * extension.h: Sort headers.
9889 * extension.c: Sort headers.
9890 * extension-priv.h: Sort headers.
9891 * expprint.c: Sort headers.
9892 * exec.h: Sort headers.
9893 * exec.c: Sort headers.
9894 * exceptions.c: Sort headers.
9895 * event-top.c: Sort headers.
9896 * event-loop.c: Sort headers.
9897 * eval.c: Sort headers.
9898 * elfread.c: Sort headers.
9899 * dwarf2read.h: Sort headers.
9900 * dwarf2read.c: Sort headers.
9901 * dwarf2loc.c: Sort headers.
9902 * dwarf2expr.h: Sort headers.
9903 * dwarf2expr.c: Sort headers.
9904 * dwarf2-frame.c: Sort headers.
9905 * dwarf2-frame-tailcall.c: Sort headers.
9906 * dwarf-index-write.h: Sort headers.
9907 * dwarf-index-write.c: Sort headers.
9908 * dwarf-index-common.c: Sort headers.
9909 * dwarf-index-cache.h: Sort headers.
9910 * dwarf-index-cache.c: Sort headers.
9911 * dummy-frame.c: Sort headers.
9912 * dtrace-probe.c: Sort headers.
9913 * disasm.h: Sort headers.
9914 * disasm.c: Sort headers.
9915 * disasm-selftests.c: Sort headers.
9916 * dictionary.c: Sort headers.
9917 * dicos-tdep.c: Sort headers.
9918 * demangle.c: Sort headers.
9919 * dcache.h: Sort headers.
9920 * dcache.c: Sort headers.
9921 * darwin-nat.h: Sort headers.
9922 * darwin-nat.c: Sort headers.
9923 * darwin-nat-info.c: Sort headers.
9924 * d-valprint.c: Sort headers.
9925 * d-namespace.c: Sort headers.
9926 * d-lang.c: Sort headers.
9927 * ctf.c: Sort headers.
9928 * csky-tdep.c: Sort headers.
9929 * csky-linux-tdep.c: Sort headers.
9930 * cris-tdep.c: Sort headers.
9931 * cris-linux-tdep.c: Sort headers.
9932 * cp-valprint.c: Sort headers.
9933 * cp-support.c: Sort headers.
9934 * cp-namespace.c: Sort headers.
9935 * cp-abi.c: Sort headers.
9936 * corelow.c: Sort headers.
9937 * corefile.c: Sort headers.
9938 * continuations.c: Sort headers.
9939 * completer.h: Sort headers.
9940 * completer.c: Sort headers.
9941 * complaints.c: Sort headers.
9942 * coffread.c: Sort headers.
9943 * coff-pe-read.c: Sort headers.
9944 * cli-out.h: Sort headers.
9945 * cli-out.c: Sort headers.
9946 * charset.c: Sort headers.
9947 * c-varobj.c: Sort headers.
9948 * c-valprint.c: Sort headers.
9949 * c-typeprint.c: Sort headers.
9950 * c-lang.c: Sort headers.
9951 * buildsym.c: Sort headers.
9952 * buildsym-legacy.c: Sort headers.
9953 * build-id.h: Sort headers.
9954 * build-id.c: Sort headers.
9955 * btrace.c: Sort headers.
9956 * bsd-uthread.c: Sort headers.
9957 * breakpoint.h: Sort headers.
9958 * breakpoint.c: Sort headers.
9959 * break-catch-throw.c: Sort headers.
9960 * break-catch-syscall.c: Sort headers.
9961 * break-catch-sig.c: Sort headers.
9962 * blockframe.c: Sort headers.
9963 * block.c: Sort headers.
9964 * bfin-tdep.c: Sort headers.
9965 * bfin-linux-tdep.c: Sort headers.
9966 * bfd-target.c: Sort headers.
9967 * bcache.c: Sort headers.
9968 * ax-general.c: Sort headers.
9969 * ax-gdb.h: Sort headers.
9970 * ax-gdb.c: Sort headers.
9971 * avr-tdep.c: Sort headers.
9972 * auxv.c: Sort headers.
9973 * auto-load.c: Sort headers.
9974 * arm-wince-tdep.c: Sort headers.
9975 * arm-tdep.c: Sort headers.
9976 * arm-symbian-tdep.c: Sort headers.
9977 * arm-pikeos-tdep.c: Sort headers.
9978 * arm-obsd-tdep.c: Sort headers.
9979 * arm-nbsd-tdep.c: Sort headers.
9980 * arm-nbsd-nat.c: Sort headers.
9981 * arm-linux-tdep.c: Sort headers.
9982 * arm-linux-nat.c: Sort headers.
9983 * arm-fbsd-tdep.c: Sort headers.
9984 * arm-fbsd-nat.c: Sort headers.
9985 * arm-bsd-tdep.c: Sort headers.
9986 * arch-utils.c: Sort headers.
9987 * arc-tdep.c: Sort headers.
9988 * arc-newlib-tdep.c: Sort headers.
9989 * annotate.h: Sort headers.
9990 * annotate.c: Sort headers.
9991 * amd64-windows-tdep.c: Sort headers.
9992 * amd64-windows-nat.c: Sort headers.
9993 * amd64-tdep.c: Sort headers.
9994 * amd64-sol2-tdep.c: Sort headers.
9995 * amd64-obsd-tdep.c: Sort headers.
9996 * amd64-obsd-nat.c: Sort headers.
9997 * amd64-nbsd-tdep.c: Sort headers.
9998 * amd64-nbsd-nat.c: Sort headers.
9999 * amd64-nat.c: Sort headers.
10000 * amd64-linux-tdep.c: Sort headers.
10001 * amd64-linux-nat.c: Sort headers.
10002 * amd64-fbsd-tdep.c: Sort headers.
10003 * amd64-fbsd-nat.c: Sort headers.
10004 * amd64-dicos-tdep.c: Sort headers.
10005 * amd64-darwin-tdep.c: Sort headers.
10006 * amd64-bsd-nat.c: Sort headers.
10007 * alpha-tdep.c: Sort headers.
10008 * alpha-obsd-tdep.c: Sort headers.
10009 * alpha-nbsd-tdep.c: Sort headers.
10010 * alpha-mdebug-tdep.c: Sort headers.
10011 * alpha-linux-tdep.c: Sort headers.
10012 * alpha-linux-nat.c: Sort headers.
10013 * alpha-bsd-tdep.c: Sort headers.
10014 * alpha-bsd-nat.c: Sort headers.
10015 * aix-thread.c: Sort headers.
10016 * agent.c: Sort headers.
10017 * addrmap.c: Sort headers.
10018 * ada-varobj.c: Sort headers.
10019 * ada-valprint.c: Sort headers.
10020 * ada-typeprint.c: Sort headers.
10021 * ada-tasks.c: Sort headers.
10022 * ada-lang.c: Sort headers.
10023 * aarch64-tdep.c: Sort headers.
10024 * aarch64-ravenscar-thread.c: Sort headers.
10025 * aarch64-newlib-tdep.c: Sort headers.
10026 * aarch64-linux-tdep.c: Sort headers.
10027 * aarch64-linux-nat.c: Sort headers.
10028 * aarch64-fbsd-tdep.c: Sort headers.
10029 * aarch64-fbsd-nat.c: Sort headers.
10030 * aarch32-linux-nat.c: Sort headers.
10032 2019-04-04 Tom Tromey <tom@tromey.com>
10034 * varobj.c (varobj_create): Update.
10035 * rust-exp.y (struct rust_parser) <update_innermost_block,
10036 lookup_symbol>: New methods.
10037 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10039 (rust_parser::rust_lookup_type)
10040 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10041 * printcmd.c (display_command, do_one_display): Update.
10042 * parser-defs.h (struct parser_state) <parser_state>: Add
10043 "tracker" parameter.
10044 (block_tracker): New member.
10045 (class innermost_block_tracker) <innermost_block_tracker>: Add
10047 <reset>: Remove method.
10048 (innermost_block): Don't declare.
10049 (null_post_parser): Update.
10050 * parse.c (innermost_block): Remove global.
10051 (write_dollar_variable): Update.
10052 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10053 Remove "tracker_types" parameter.
10054 (parse_expression): Add "tracker" parameter.
10055 (parse_expression_for_completion): Update.
10056 (null_post_parser): Add "tracker" parameter.
10057 * p-exp.y: Update rules.
10058 * m2-exp.y: Update rules.
10059 * language.h (struct language_defn) <la_post_parser>: Add
10060 "tracker" parameter.
10061 * go-exp.y: Update rules.
10062 * f-exp.y: Update rules.
10063 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10065 * d-exp.y: Update rules.
10066 * c-exp.y: Update rules.
10067 * breakpoint.c (set_breakpoint_condition): Create an
10068 innermost_block_tracker.
10069 (watch_command_1): Likewise.
10070 * ada-lang.c (resolve): Add "tracker" parameter.
10071 (resolve_subexp): Likewise.
10072 * ada-exp.y (write_var_from_sym): Update.
10074 2019-04-04 Tom Tromey <tom@tromey.com>
10076 * type-stack.h: New file.
10077 * type-stack.c: New file.
10078 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10080 (insert_into_type_stack, insert_type, push_type, push_type_int)
10081 (insert_type_address_space, pop_type, pop_type_int)
10082 (pop_typelist, pop_type_stack, append_type_stack)
10083 (push_type_stack, get_type_stack, push_typelist)
10084 (follow_type_instance_flags, follow_types): Don't declare.
10085 * parse.c (type_stack): Remove global.
10086 (parse_exp_in_context): Update.
10087 (insert_into_type_stack, insert_type, push_type, push_type_int)
10088 (insert_type_address_space, pop_type, pop_type_int)
10089 (pop_typelist, pop_type_stack, append_type_stack)
10090 (push_type_stack, get_type_stack, push_typelist)
10091 (follow_type_instance_flags, follow_types): Remove (moved to
10093 * f-exp.y (type_stack): New global.
10095 (push_kind_type, f_parse): Update.
10096 * d-exp.y (type_stack): New global.
10099 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10101 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10102 (HFILES_NO_SRCDIR): Add type-stack.h.
10104 2019-04-04 Tom Tromey <tom@tromey.com>
10106 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10107 (rust_parser::convert_ast_to_expression, rust_parse)
10108 (rust_lex_test_completion, rust_lex_tests): Update.
10109 * parser-defs.h (struct expr_completion_state): New.
10110 (struct parser_state) <parser_state>: Add completion parameter.
10111 <mark_struct_expression, mark_completion_tag>: New methods.
10112 <parse_completion, m_completion_state>: New members.
10113 (prefixify_expression, null_post_parser): Update.
10114 (mark_struct_expression, mark_completion_tag): Don't declare.
10115 * parse.c (parse_completion, expout_last_struct)
10116 (expout_tag_completion_type, expout_completion_name): Remove
10118 (parser_state::mark_struct_expression)
10119 (parser_state::mark_completion_tag): Now methods.
10120 (prefixify_expression): Add last_struct parameter.
10121 (prefixify_subexp): Likewise.
10122 (parse_exp_1): Update.
10123 (parse_exp_in_context): Add cstate parameter. Update.
10124 (parse_expression_for_completion): Create an
10125 expr_completion_state.
10126 (null_post_parser): Add "completion" parameter.
10127 * p-exp.y: Update rules.
10129 * language.h (struct language_defn) <la_post_parser>: Add
10130 "completing" parameter.
10131 * go-exp.y: Update rules.
10132 (lex_one_token): Update.
10133 * expression.h (parse_completion): Don't declare.
10134 * d-exp.y: Update rules.
10135 (lex_one_token): Update rules.
10136 * c-exp.y: Update rules.
10137 (lex_one_token): Update.
10138 * ada-lang.c (resolve): Add "parse_completion" parameter.
10139 (resolve_subexp): Likewise.
10140 (ada_resolve_function): Likewise.
10142 2019-04-04 Tom Tromey <tom@tromey.com>
10144 * parser-defs.h (struct parser_state) <start_arglist,
10145 end_arglist>: New methods.
10146 <arglist_len, m_funcall_chain>: New members.
10147 (arglist_len, start_arglist, end_arglist): Don't declare.
10148 * parse.c (arglist_len, funcall_chain): Remove global.
10149 (start_arglist, end_arglist): Remove functions.
10150 (parse_exp_in_context): Update.
10151 * p-exp.y: Update rules.
10152 * m2-exp.y: Update rules.
10153 * go-exp.y: Update rules.
10154 * f-exp.y: Update rules.
10155 * d-exp.y: Update rules.
10156 * c-exp.y: Update rules.
10158 2019-04-04 Tom Tromey <tom@tromey.com>
10160 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10161 lex_operator, push_back>: New methods.
10163 (rust_parser::lex_hex, lex_escape): Rename and update.
10164 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10165 (rust_parser::lex_operator): Rename and update.
10166 (rust_parser::lex_number, rustyylex, rustyyerror)
10167 (rust_lex_test_init, rust_lex_test_sequence)
10168 (rust_lex_test_push_back, rust_lex_tests): Update.
10169 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10171 <lexptr, prev_lexptr>: New members.
10172 (lexptr, prev_lexptr): Don't declare.
10173 * parse.c (lexptr, prev_lexptr): Remove globals.
10174 (parse_exp_in_context): Update.
10175 * p-exp.y (yylex, yyerror): Update.
10176 * m2-exp.y (parse_number, yylex, yyerror): Update.
10177 * go-exp.y (lex_one_token, yyerror): Update.
10178 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10179 * d-exp.y (lex_one_token, yyerror): Update.
10180 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10181 (lex_one_token, yyerror): Update.
10182 * ada-lex.l (YY_INPUT): Update.
10183 (rewind_to_char): Update.
10184 * ada-exp.y (yyerror): Update.
10186 2019-04-04 Tom Tromey <tom@tromey.com>
10188 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10189 * parser-defs.h (struct parser_state) <parser_state>: Add new
10191 <comma_terminates>: New member.
10192 (comma_terminates): Don't declare global.
10193 * parse.c (comma_terminates): Remove global.
10194 (parse_exp_in_context): Update.
10195 * p-exp.y (yylex): Update.
10196 * m2-exp.y (yylex): Update.
10197 * go-exp.y (lex_one_token): Update.
10198 * f-exp.y (yylex): Update.
10199 * d-exp.y (lex_one_token): Update.
10200 * c-exp.y (lex_one_token): Update.
10201 * ada-lex.l: Update.
10203 2019-04-04 Tom Tromey <tom@tromey.com>
10205 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10206 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10207 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10208 * parser-defs.h (paren_depth): Don't declare.
10209 * parse.c (paren_depth): Remove global.
10210 (parse_exp_in_context): Update.
10211 * p-exp.y (paren_depth): New global.
10212 (pascal_parse): Initialize it.
10213 * m2-exp.y (paren_depth): New global.
10214 (m2_parse): Initialize it.
10215 * go-exp.y (paren_depth): New global.
10216 (go_parse): Initialize it.
10217 * f-exp.y (paren_depth): New global.
10218 (f_parse): Initialize it.
10219 * d-exp.y (paren_depth): New global.
10220 (d_parse): Initialize it.
10221 * c-exp.y (paren_depth): New global.
10222 (c_parse): Initialize it.
10223 * ada-lex.l (paren_depth): New global.
10224 (lexer_init): Initialize it.
10226 2019-04-04 Tom Tromey <tom@tromey.com>
10228 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10229 (rust_parser::convert_ast_to_type)
10230 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10231 * parser-defs.h (struct parser_state) <parser_state>: Add
10232 parameters. Initialize new members.
10233 <expression_context_block, expression_context_pc>: New members.
10234 * parse.c (expression_context_block, expression_context_pc):
10236 (parse_exp_in_context): Update.
10237 * p-exp.y: Update all rules.
10239 * m2-exp.y: Update all rules.
10241 * go-exp.y (yylex): Update.
10242 * f-exp.y (yylex): Update.
10243 * d-exp.y: Update all rules.
10245 * c-exp.y: Update all rules.
10246 (lex_one_token, classify_name, yylex, c_parse): Update.
10247 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10249 2019-04-04 Tom Tromey <tom@tromey.com>
10251 * gdbarch.h, gdbarch.c: Rebuild.
10252 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10254 (struct stap_parse_info): Replace "parser_state" with
10256 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10257 (parser_state): New class.
10258 * parse.c (expr_builder): Rename.
10259 (expr_builder::release): Rename.
10260 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10261 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10262 (write_exp_elt_longcst, write_exp_elt_floatcst)
10263 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10264 (write_exp_string_vector, write_exp_bitstring)
10265 (write_exp_msymbol, mark_struct_expression)
10266 (write_dollar_variable)
10267 (insert_type_address_space, increase_expout_size): Replace
10268 "parser_state" with "expr_builder".
10269 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10270 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10271 "parser_state" with "expr_builder".
10273 2019-04-04 Tom Tromey <tom@tromey.com>
10275 * rust-exp.y: Replace "parse_language" with method call.
10277 (yylex): Replace "parse_language" with method call.
10279 (yylex): Replace "parse_language" with method call.
10280 * go-exp.y (classify_name): Replace "parse_language" with method
10282 * f-exp.y (yylex): Replace "parse_language" with method call.
10283 * d-exp.y (lex_one_token): Replace "parse_language" with method
10286 (lex_one_token, classify_name, yylex): Replace "parse_language"
10288 * ada-exp.y (find_primitive_type, type_char)
10289 (type_system_address): Replace "parse_language" with method call.
10291 2019-04-04 Tom Tromey <tom@tromey.com>
10293 * rust-exp.y: Replace "parse_gdbarch" with method call.
10294 * parse.c (write_dollar_variable, insert_type_address_space):
10295 Replace "parse_gdbarch" with method call.
10296 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10298 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10300 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10301 "parse_gdbarch" with method call.
10302 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10304 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10305 "parse_gdbarch" with method call.
10306 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10307 "parse_gdbarch" with method call.
10308 * c-exp.y (parse_type, parse_number, classify_name): Replace
10309 "parse_gdbarch" with method call.
10310 * ada-lex.l: Replace "parse_gdbarch" with method call.
10311 * ada-exp.y (parse_type, find_primitive_type, type_char)
10312 (type_system_address): Replace "parse_gdbarch" with method call.
10314 2019-04-04 Tom Tromey <tom@tromey.com>
10316 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10317 * stap-probe.c (stap_parse_argument): Update.
10318 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10319 initial_size parameter.
10320 * rust-exp.y (rust_lex_tests): Update.
10321 * parse.c (parser_state): Update.
10322 (parse_exp_in_context): Update.
10323 * parser-defs.h (struct parser_state) <parser_state>: Remove
10324 "initial_size" parameter.
10326 2019-04-04 Tom Tromey <tom@tromey.com>
10328 * parser-defs.h (increase_expout_size): Don't declare.
10329 * parse.c (increase_expout_size): Now static.
10331 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10333 * gnu-nat.c (gnu_nat_target::wait): Fix
10334 target_waitstatus_to_string call.
10336 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10338 * eval.c (evaluate_subexp_standard): Handle internal functions
10339 during Fortran function call handling.
10341 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10343 * NEWS: Mention new internal functions.
10344 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10345 (read_base_type): Use dwarf2_init_complex_target_type.
10346 * value.c (creal_internal_fn): New function.
10347 (cimag_internal_fn): New function.
10348 (_initialize_values): Register new internal functions.
10350 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10352 * infrun.c (stop_all_threads): If debug_infrun, always
10353 trace the wait status after wait_one, using
10354 target_waitstatus_to_string and target_pid_to_str.
10355 (handle_inferior_event): Replace various trace of
10356 wait status kind by a single trace.
10357 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10358 wait status kind image by target_waitstatus_to_string.
10359 * target/waitstatus.c (target_waitstatus_to_string): Fix
10362 2019-04-01 Tom Tromey <tromey@adacore.com>
10365 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10367 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10368 Pedro Alves <palves@redhat.com>
10370 * top.c (quit_force): Call 'finalize_values'.
10371 * value.c (finalize_values): New function.
10372 * value.h (finalize_values): Declare.
10374 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10376 * NEWS: Announce $_gdb_major and $_gdb_minor.
10378 * top.c (init_gdb_version_vars): New function.
10379 (gdb_init): Call init_gdb_version_vars.
10381 2019-03-29 Tom Tromey <tromey@adacore.com>
10383 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10384 help text. Remove dead code.
10386 2019-03-29 Keith Seitz <keiths@redhat.com>
10388 From Siddhesh Poyarekar:
10389 * f-lang.h (f77_get_upperbound): Return LONGEST.
10390 (f77_get_lowerbound): Likewise.
10391 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10392 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10394 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10395 plongest to format print it.
10396 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10397 (f77_get_upperbound): Likewise.
10398 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10399 LOWER_BOUND to LONGEST.
10400 (f77_create_arrayprint_offset_tbl): Likewise.
10402 2019-03-29 Keith Seitz <keiths@redhat.com>
10404 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10405 %s/pulongest for TYPE_LENGTH instead of %d in format
10407 * ada-typerint.c (ada_print_type): Likewise.
10408 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10409 * compile/compile-c-support.c (generate_register_struct): Likewise.
10410 * gdbtypes.c (recursive_dump_type): Likewise.
10411 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10412 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10413 instead of %d in format strings.
10414 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10415 to std::min to ULONGEST.
10416 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10417 instead of %d in format strings.
10418 * tracepoint.c (info_scope_command): Likewise.
10419 * typeprint.c (print_offset_data::update)
10420 (print_offset_data::finish): Likewise.
10421 * xtensa-tdep.c (xtensa_store_return_value)
10422 (xtensa_push_dummy_call): Likewise.
10424 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10426 * windows-nat.c (display_selector): Fixed format specifications
10429 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10431 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10433 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10435 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10436 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10437 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10438 (nios2_linux_init_abi): Install it.
10440 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10442 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10444 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10446 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10448 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10449 Tom Tromey <tromey@adacore.com>
10451 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10453 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10455 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10456 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10457 method to compute the bounds of range types. Also print "[evaluated]"
10458 if the bounds' values come from a dynamic evaluation.
10460 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10462 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10463 whitespace when pretty printing is on.
10465 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10467 * ppc-linux-nat.c: Add include.
10469 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10471 * NEWS: Mention AArch64 Pointer Authentication.
10473 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10475 * arm-linux-nat.c: Add include.
10477 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10479 * source-cache.c (source_cache::get_source_lines): Re-read
10480 fullname after calling open_source_file.
10482 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10484 * NEWS: Mention TLS support for FreeBSD.
10486 2019-03-25 Tom Tromey <tromey@adacore.com>
10488 * minsyms.c (BUNCH_SIZE): Update comment.
10489 (~minimal_symbol_reader): Remove old comment.
10490 (compact_minimal_symbols): Update comment.
10491 (minimal_symbol_reader::install): Remove old comment. Update
10494 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10496 * s390-linux-nat.c: Add include.
10498 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10500 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10501 Call linux_get_hwcap.
10502 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10504 (aarch64_linux_get_hwcap): Remove function.
10505 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10507 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10509 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10510 * linux-tdep.c (linux_get_hwcap): Add function.
10511 (linux_get_hwcap2): Likewise.
10512 * linux-tdep.h (linux_get_hwcap): Add declaration.
10513 (linux_get_hwcap2): Likewise.
10514 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10515 (ppc_linux_get_hwcap2): Likewise.
10516 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10518 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10519 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10520 (ppc_linux_nat_target::read_description): Likewise.
10521 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10522 * s390-linux-nat.c: Likewise.
10523 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10525 2019-03-24 Tom Tromey <tom@tromey.com>
10527 * ada-lang.c (standard_lookup): Simplify initialization.
10528 (ada_lookup_symbol_nonlocal): Simplify return.
10529 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10530 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10531 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10532 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10534 * solib.c (solib_global_lookup): Simplify.
10535 * symtab.c (null_block_symbol): Remove.
10536 (symbol_cache_lookup): Simplify returns.
10537 (lookup_language_this): Simplify returns.
10538 (lookup_symbol_aux): Simplify return.
10539 (lookup_local_symbol): Simplify returns.
10540 (lookup_global_symbol_from_objfile): Simplify return.
10541 (lookup_symbol_in_objfile_symtabs)
10542 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10543 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10544 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10545 * cp-namespace.c (cp_lookup_bare_symbol)
10546 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10547 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10548 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10549 (cp_lookup_symbol_via_imports): Simplify initialization.
10550 (find_symbol_in_baseclass): Likewise.
10551 * symtab.h (null_block_symbol): Remove.
10552 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10553 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10554 (d_lookup_symbol_module): Likewise.
10555 (find_symbol_in_baseclass): Simplify initialization.
10557 2019-03-24 Tom Tromey <tom@tromey.com>
10559 * expression.h: Don't include symtab.h.
10560 (struct block): Forward declare.
10562 2019-03-24 Tom Tromey <tom@tromey.com>
10564 * c-exp.y (typebase): Remove casts.
10565 * gdbtypes.c (lookup_unsigned_typename, )
10566 (lookup_signed_typename): Remove cast.
10567 * eval.c (parse_to_comma_and_eval): Remove cast.
10568 * parse.c (write_dollar_variable): Remove cast.
10569 * block.h (struct block) <superblock>: Now const.
10570 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10571 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10572 (map_block): Make "block" const.
10573 * symfile.h (struct quick_symbol_functions)
10574 <map_matching_symbols>: Constify block argument to "callback".
10575 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10577 (find_pc_sect_compunit_symtab): Make "b" const.
10578 (find_symbol_at_address): Likewise.
10579 (search_symbols): Likewise.
10580 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10581 (dw2_debug_names_lookup_symbol): Likewise.
10582 (dw2_map_matching_symbols): Update.
10583 * p-valprint.c (pascal_val_print): Remove "block".
10584 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10585 (aux_add_nonlocal_symbols): Make "block" const.
10586 (resolve_subexp): Remove cast.
10587 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10589 (iterate_over_file_blocks): Likewise.
10590 * f-exp.y (%union) <bval>: Remove.
10591 * coffread.c (patch_opaque_types): Make "b" const.
10592 * spu-tdep.c (spu_catch_start): Make "block" const.
10593 * c-valprint.c (print_unpacked_pointer): Remove "block".
10594 * symmisc.c (dump_symtab_1): Make "b" const.
10595 (block_depth): Make "block" const.
10596 * d-exp.y (%union) <bval>: Remove.
10597 * cp-support.h (cp_lookup_rtti_type): Update.
10598 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10599 * psymtab.c (psym_lookup_symbol): Make "block" const.
10600 (maintenance_check_psymtabs): Make "b" const.
10601 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10602 (enumerate_locals, enumerate_args): Update.
10603 * python/py-symtab.c (stpy_global_block): Make "block" const.
10604 (stpy_static_block): Likewise.
10605 * inline-frame.c (block_starting_point_at): Make "new_block"
10607 * block.c (find_block_in_blockvector): Make return type const.
10608 (blockvector_for_pc_sect): Make "b" const.
10609 (find_block_in_blockvector): Make "b" const.
10611 2019-03-23 Tom Tromey <tom@tromey.com>
10613 * varobj.c (varobj_create): Update.
10614 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10615 * printcmd.c (display_command, do_one_display): Don't reset
10617 * parser-defs.h (enum innermost_block_tracker_type): Move to
10619 (innermost_block): Update comment.
10620 * parse.c (parse_exp_1): Add tracker_types parameter.
10621 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10622 tracker_types parameter. Reset innermost_block.
10623 (parse_exp_in_context): Remove.
10624 (parse_expression_for_completion): Update.
10625 * objfiles.c (~objfile): Don't reset expression_context_block or
10627 * expression.h (enum innermost_block_tracker_type): Move from
10629 (parse_exp_1): Add tracker_types parameter.
10630 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10631 reset innermost_block.
10633 2019-03-23 Tom Tromey <tom@tromey.com>
10635 * objfiles.h: Include bcache.h.
10637 2019-03-23 Tom Tromey <tom@tromey.com>
10639 * linespec.c (get_current_search_block): Use
10640 scoped_restore_current_language.
10641 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10643 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10644 Jiong Wang <jiong.wang@arm.com>
10646 * aarch64-linux-tdep.c
10647 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10649 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10651 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10652 Jiong Wang <jiong.wang@arm.com>
10654 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10656 (aarch64_analyze_prologue_test): Add PACIASP test.
10657 (aarch64_prologue_prev_register): Unmask PC value.
10659 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10660 Jiong Wang <jiong.wang@arm.com>
10662 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10663 (aarch64_dwarf2_prev_register): Unmask PC value.
10664 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10665 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10666 DW_CFA_AARCH64_negate_ra_state.
10667 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10669 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10670 Jiong Wang <jiong.wang@arm.com>
10672 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10674 (aarch64_pseudo_register_name): Likewise.
10675 (aarch64_pseudo_register_type): Likewise.
10676 (aarch64_pseudo_register_reggroup_p): Likewise.
10677 (aarch64_gdbarch_init): Add pauth registers.
10678 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10679 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10680 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10681 (struct gdbarch_tdep): Add regnum for ra_state.
10683 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10684 Jiong Wang <jiong.wang@arm.com>
10686 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10688 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10689 Jiong Wang <jiong.wang@arm.com>
10691 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10693 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10694 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10695 (aarch64_gdbarch_init): Add puth registers.
10696 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10697 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10698 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10700 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10701 Jiong Wang <jiong.wang@arm.com>
10703 * aarch64-linux-nat.c
10704 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10705 * aarch64-linux-tdep.c
10706 (aarch64_linux_core_read_description): Likewise.
10707 (aarch64_linux_get_hwcap): New function.
10708 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10709 (aarch64_linux_get_hwcap): New declaration.
10711 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10712 Jiong Wang <jiong.wang@arm.com>
10714 * aarch64-linux-nat.c
10715 (aarch64_linux_nat_target::read_description): Add pauth param.
10716 * aarch64-linux-tdep.c
10717 (aarch64_linux_core_read_description): Likewise.
10718 * aarch64-tdep.c (struct target_desc): Add in pauth.
10719 (aarch64_read_description): Add pauth param.
10720 (aarch64_gdbarch_init): Likewise.
10721 * aarch64-tdep.h (aarch64_read_description): Likewise.
10722 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10723 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10724 * features/Makefile: Add new files.
10725 * features/aarch64-pauth.c: New file.
10726 * features/aarch64-pauth.xml: New file.
10728 2019-03-20 Tom Tromey <tromey@adacore.com>
10730 * infrun.c (handle_inferior_event): Rename from
10731 handle_inferior_event_1. Create a scoped_value_mark.
10732 (handle_inferior_event): Remove.
10734 2019-03-19 Tom Tromey <tromey@adacore.com>
10736 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10737 * infrun.h (print_stop_event): Add "displays" parameter.
10738 * infrun.c (print_stop_event): Add "displays" parameter.
10740 2019-03-19 Pedro Alves <palves@redhat.com>
10742 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10743 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10744 to -1. Fix TABs vs spaces.
10745 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10746 * tui/tui-out.h (tui_ui_out) Add intro comments.
10747 <m_line, m_start_of_line>: In-class initialize, and add describing
10750 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10752 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10754 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10756 2019-03-18 Pedro Alves <palves@redhat.com>
10757 Eli Zaretskii <eliz@gnu.org>
10759 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10760 m_line and m_start_of_line.
10762 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10764 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10765 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10766 it returns a newline. This fixes a regression in TU mode, whereby
10767 the next line is output on the same screen line as the user input.
10769 2019-03-18 Tom Tromey <tromey@adacore.com>
10771 * minsyms.c (minimal_symbol_reader::install): Remove call to
10774 2019-03-18 Pedro Alves <palves@redhat.com>
10776 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10778 (apply_style): New, factored out from ...
10779 (apply_ansi_escape): ... this. Handle reverse video mode.
10780 (tui_set_reverse_mode): New function.
10781 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10782 * tui/tui-winsource.c (tui_show_source_line): Use
10783 tui_set_reverse_mode instead of setting A_STANDOUT.
10784 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10785 New setter methods.
10787 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10789 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10792 2019-03-18 Tom Tromey <tromey@adacore.com>
10794 * ada-lang.c (empty_array): Add "high" parameter.
10795 (ada_evaluate_subexp): Update.
10797 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10799 * unittests/string_view-selftests.c: Define
10800 _initialize_string_view_selftests unconditionally.
10802 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10805 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10807 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10810 * windows-nat.c (display_selector): Fix format specifiers.
10812 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10814 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10815 tui_refill_source_window instead of tui_refresh_win, to update the
10816 current execution line. This fixes redisplay of the current line
10817 when stepping through the code with "next" or "step".
10819 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10821 * source-cache.c (source_cache::get_source_lines): Call
10822 find_source_lines to initialize s->nlines. This fixes vertical
10823 scrolling of TUI source window when the DOWN arrow is pressed.
10825 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10827 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10828 linux-thread-db.c (_initialize_thread_db): Likewise.
10830 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10832 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10833 wclrtoeol in tui_show_source_line". This reverts changes made in
10834 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10836 2019-03-15 Tom Tromey <tom@tromey.com>
10838 * symtab.h (struct minimal_symbol): Derive from
10839 general_symbol_info.
10840 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10841 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10842 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10843 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10844 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10845 (MSYMBOL_SEARCH_NAME): Update.
10846 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10847 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10848 * minsyms.c (minimal_symbol_reader::record_full): Update.
10850 2019-03-15 Tom Tromey <tom@tromey.com>
10852 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10854 2019-03-15 Tom Tromey <tom@tromey.com>
10856 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10857 unique_xmalloc_ptr.
10858 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10860 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10861 (build_minimal_symbol_hash_tables)
10862 (minimal_symbol_reader::install): Update.
10864 2019-03-15 Tom Tromey <tom@tromey.com>
10866 * symtab.c (create_demangled_names_hash): Update.
10867 (symbol_set_names): Update.
10868 * objfiles.h (struct objfile_per_bfd_storage)
10869 <demangled_names_hash>: Now an htab_up.
10870 * objfiles.c (objfile_per_bfd_storage): Simplify.
10872 2019-03-15 Tom Tromey <tom@tromey.com>
10874 * objfiles.h (struct objfile_per_bfd_storage): Declare
10876 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10878 (get_objfile_bfd_data): Use new. Don't initialize
10880 (free_objfile_per_bfd_storage): Remove.
10881 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10883 2019-03-15 Tom Tromey <tom@tromey.com>
10885 * symfile.c (reread_symbols): Update.
10886 * objfiles.c (objfile::objfile): Update.
10887 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10888 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10890 (minimal_symbol_reader::install): Update.
10891 (terminate_minimal_symbol_table): Remove.
10892 * jit.c (jit_object_close_impl): Update.
10894 2019-03-15 Tom Tromey <tom@tromey.com>
10896 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10899 2019-03-15 Tom Tromey <tom@tromey.com>
10901 * objfiles.h (struct objfile_per_bfd_storage)
10902 <demangled_hash_languages>: Now a bitset.
10903 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10904 (lookup_minimal_symbol): Update.
10906 2019-03-15 Tom Tromey <tom@tromey.com>
10908 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10909 Don't return the symbol.
10910 * coffread.c (record_minimal_symbol): Use record_full.
10912 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10914 The MS-Windows port of ncurses fails to switch to a color pair if
10915 one or both of the colors are the implicit default colors. This
10916 change records the default colors when TUI is initialized, and
10917 then specifies them explicitly when a color pair uses the default
10918 colors. This allows color styling in TUI mode on MS-Windows.
10920 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10922 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10923 colors in ncurses_norm_attr.
10924 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10925 "none", replace it with the default color recorded in
10928 2019-03-14 Tom Tromey <tromey@adacore.com>
10930 * source-cache.h (class source_cache) <get_source_lines>: Return
10932 * source-cache.c (source_cache::extract_lines): Handle case where
10933 first_pos==npos. Return std::string.
10934 (source_cache::get_source_lines): Update.
10936 2019-03-14 Tom Tromey <tromey@adacore.com>
10938 * NEWS: Add item for "style sources" commands.
10939 * source-cache.c (source_cache::get_source_lines): Check
10941 * cli/cli-style.c (source_styling): New global.
10942 (_initialize_cli_style): Add "style sources" commands.
10943 (show_style_sources): New function.
10944 * cli/cli-style.h (source_styling): Declare.
10946 2019-03-14 Pedro Alves <palves@redhat.com>
10947 Tom Tromey <tromey@adacore.com>
10949 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10950 * tui/tui-winsource.c (tui_refill_source_window): New function,
10952 (tui_horizontal_source_scroll): ... here. Move some logic.
10953 * cli/cli-style.c (set_style_enabled): Notify new observable.
10954 * tui/tui-hooks.c (tui_redisplay_source): New function.
10955 (tui_attach_detach_observers): Attach or detach
10956 tui_redisplay_source.
10957 * observable.h (source_styling_changed): New observable.
10958 * observable.c: Define source_styling_changed observable.
10960 2019-03-13 Tom Tromey <tromey@adacore.com>
10962 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10963 (i386_gnu_nat_target::store_registers): Update.
10964 * target-debug.h (target_debug_print_std_string): New macro.
10965 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10966 * windows-tdep.c (display_one_tib): Update.
10967 * tui/tui-stack.c (tui_make_status_line): Update.
10968 * top.c (print_inferior_quit_action): Update.
10969 * thread.c (thr_try_catch_cmd): Update.
10970 (add_thread_with_info): Update.
10971 (thread_target_id_str): Update.
10972 (thr_try_catch_cmd): Update.
10973 (thread_command): Update.
10974 (thread_find_command): Update.
10975 * record-btrace.c (record_btrace_target::info_record)
10976 (record_btrace_resume_thread, record_btrace_target::resume)
10977 (record_btrace_cancel_resume, record_btrace_step_thread)
10978 (record_btrace_target::wait, record_btrace_target::wait)
10979 (record_btrace_target::wait, record_btrace_target::stop): Update.
10980 * progspace.c (print_program_space): Update.
10981 * process-stratum-target.c
10982 (process_stratum_target::thread_address_space): Update.
10983 * linux-fork.c (linux_fork_mourn_inferior)
10984 (detach_checkpoint_command, info_checkpoints_command)
10985 (linux_fork_context): Update.
10986 (linux_fork_detach): Update.
10987 (class scoped_switch_fork_info): Update.
10988 (delete_checkpoint_command): Update.
10989 * infrun.c (follow_fork_inferior): Update.
10990 (follow_fork_inferior): Update.
10991 (proceed_after_vfork_done): Update.
10992 (handle_vfork_child_exec_or_exit): Update.
10993 (follow_exec): Update.
10994 (displaced_step_prepare_throw): Update.
10995 (displaced_step_restore): Update.
10996 (start_step_over): Update.
10997 (resume_1): Update.
10998 (clear_proceed_status_thread): Update.
11000 (print_target_wait_results): Update.
11001 (do_target_wait): Update.
11002 (context_switch): Update.
11003 (stop_all_threads): Update.
11004 (restart_threads): Update.
11005 (finish_step_over): Update.
11006 (handle_signal_stop): Update.
11007 (switch_back_to_stepped_thread): Update.
11008 (keep_going_pass_signal): Update.
11009 (print_exited_reason): Update.
11010 (normal_stop): Update.
11011 * inferior.c (inferior_pid_to_str): Change return type.
11012 (print_selected_inferior): Update.
11013 (add_inferior): Update.
11014 (detach_inferior): Update.
11015 * dummy-frame.c (fprint_dummy_frames): Update.
11016 * dcache.c (dcache_info_1): Update.
11017 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11018 (btrace_fetch, btrace_clear): Update.
11019 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11020 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11022 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11023 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11024 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11025 * gdbarch.c, gdbarch.h: Rebuild.
11026 * gdbarch.sh (core_pid_to_str): Change return type.
11027 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11029 (windows_nat_target::pid_to_str): Change return type.
11030 (windows_delete_thread): Update.
11031 (windows_nat_target::attach): Update.
11032 (windows_nat_target::files_info): Update.
11033 * target-delegates.c: Rebuild.
11034 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11036 (sol_thread_target::pid_to_str): Change return type.
11037 * remote.c (class remote_target) <pid_to_str>: Change return
11039 (remote_target::pid_to_str): Change return type.
11040 (extended_remote_target::attach, remote_target::remote_stop_ns)
11041 (remote_target::remote_notif_remove_queued_reply)
11042 (remote_target::push_stop_reply, remote_target::disable_btrace):
11044 (extended_remote_target::attach): Update.
11045 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11047 (gdbsim_target::pid_to_str): Change return type.
11048 * ravenscar-thread.c (struct ravenscar_thread_target)
11049 <pid_to_str>: Change return type.
11050 (ravenscar_thread_target::pid_to_str): Change return type.
11051 * procfs.c (class procfs_target) <pid_to_str>: Change return
11053 (procfs_target::pid_to_str): Change return type.
11054 (procfs_target::attach): Update.
11055 (procfs_target::detach): Update.
11056 (procfs_target::fetch_registers): Update.
11057 (procfs_target::store_registers): Update.
11058 (procfs_target::wait): Update.
11059 (procfs_target::files_info): Update.
11060 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11061 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11063 (nto_procfs_target::pid_to_str): Change return type.
11064 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11065 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11067 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11068 (exit_lwp): Update.
11069 (attach_proc_task_lwp_callback, get_detach_signal)
11070 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11071 (linux_nat_target::resume, wait_lwp, stop_callback)
11072 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11073 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11074 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11075 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11076 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11078 (inf_ptrace_target::attach): Update.
11079 (inf_ptrace_target::files_info): Update.
11080 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11082 (go32_nat_target::pid_to_str): Change return type.
11083 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11084 (gnu_nat_target::wait): Update.
11085 (gnu_nat_target::wait): Update.
11086 (gnu_nat_target::resume): Update.
11087 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11088 (fbsd_nat_target::wait): Update.
11089 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11091 (darwin_nat_target::attach): Update.
11092 * corelow.c (class core_target) <pid_to_str>: Change return type.
11093 (core_target::pid_to_str): Change return type.
11094 * target.c (normal_pid_to_str): Change return type.
11095 (default_pid_to_str): Likewise.
11096 (target_pid_to_str): Change return type.
11097 (target_translate_tls_address): Update.
11098 (target_announce_detach): Update.
11099 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11101 (bsd_uthread_target::pid_to_str): Change return type.
11102 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11104 (bsd_kvm_target::pid_to_str): Change return type.
11105 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11107 (aix_thread_target::pid_to_str): Change return type.
11108 * target.h (struct target_ops) <pid_to_str>: Change return type.
11109 (target_pid_to_str, normal_pid_to_str): Likewise.
11110 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11112 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11114 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11116 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11118 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11120 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11123 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11125 * NEWS: Mention that the new default MI version is 3. Mention
11126 changes to the output of commands and events that deal with
11127 multi-location breakpoints.
11128 * breakpoint.c: Include "mi/mi-out.h".
11129 (print_one_breakpoint): Change output syntax if using MI version
11131 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11133 (mi_multi_location_breakpoint_output_fixed): New.
11134 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11135 (mi_cmd_fix_multi_location_breakpoint_output): New.
11136 (mi_multi_location_breakpoint_output_fixed): New.
11137 * mi/mi-cmds.c (mi_cmds): Register command
11138 -fix-multi-location-breakpoint-output.
11139 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11142 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11144 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11145 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11146 instantiate mi_ui_out based on interpreter name.
11147 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11148 * mi/mi-main.c (mi_load_progress): Likewise.
11150 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11152 * NEWS: Combine separate "New targets" sections for 8.3.
11154 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11156 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11157 (ppcfbsd_init_abi): Install gdbarch
11158 "fetch_tls_load_module_address" and "get_thread_local_address"
11161 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11163 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11164 (riscv_fbsd_init_abi): Install gdbarch
11165 "fetch_tls_load_module_address" and "get_thread_local_address"
11168 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11170 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11171 (i386fbsd_init_abi): Install gdbarch
11172 "fetch_tls_load_module_address" and "get_thread_local_address"
11175 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11177 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11178 (amd64fbsd_init_abi): Install gdbarch
11179 "fetch_tls_load_module_address" and "get_thread_local_address"
11182 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11184 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11185 (struct fbsd_pspace_data): New type.
11186 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11187 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11188 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11189 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11190 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11192 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11194 * gdbtypes.c (lookup_struct_elt): New function.
11195 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11196 * gdbtypes.h (struct struct_elt): New type.
11197 (lookup_struct_elt): New prototype.
11199 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11201 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11202 remove disabled code block.
11204 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11206 * gdbarch.sh (get_thread_local_address): New method.
11207 * gdbarch.h, gdbarch.c: Regenerate.
11208 * target.c (target_translate_tls_address): Use
11209 gdbarch_get_thread_local_address if present instead of
11210 target::get_thread_local_address.
11212 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11214 * target.h (target::get_thread_local_address): Update comment.
11216 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11218 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11219 objfile->separate_debug_objfile_backlink if not NULL.
11221 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11223 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11224 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11225 (amd64bsd_store_inferior_registers): Likewise.
11226 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11227 Enable segment base registers.
11228 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11229 PT_GETFSBASE and PT_GETGSBASE.
11230 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11232 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11233 segment base registers.
11234 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11236 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11238 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11239 Update calls to i386_target_description to add 'segments'
11241 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11242 add segment base registers.
11243 * arch/i386.c (i386_create_target_description): Add 'segments'
11244 parameter to enable segment base registers.
11245 * arch/i386.h (i386_create_target_description): Likewise.
11246 * features/i386/32bit-segments.xml: New file.
11247 * features/i386/32bit-segments.c: Generate.
11248 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11249 call to i386_target_description to add 'segments' parameter.
11250 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11251 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11252 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11253 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11254 if feature is present.
11255 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11256 Add 'segments' parameter to call to i386_target_description.
11257 (i386_target_description): Add 'segments' parameter to enable
11258 segment base registers.
11259 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11260 to call to i386_target_description.
11261 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11262 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11263 Define I386_NUM_REGS.
11264 (i386_target_description): Add 'segments' parameter to enable
11265 segment base registers.
11267 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11270 * source-cache.c: #undef open and close, to avoid unresolved
11271 externals during linking.
11273 2019-03-12 Tom Tromey <tromey@adacore.com>
11275 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11276 const. Add initializers.
11277 (_initialize_remote): Don't initialize ptid globals.
11279 2019-03-12 Pedro Alves <palves@redhat.com>
11281 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11283 2019-03-12 Pedro Alves <palves@redhat.com>
11285 * cp-name-parser.y (main): Remove unused 'len' variable.
11287 2019-03-12 Tom Tromey <tromey@adacore.com>
11289 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11290 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11292 2019-03-12 Tom Tromey <tromey@adacore.com>
11294 * linux-nat.c (iterate_over_lwps): Update.
11295 (stop_callback): Remove parameter.
11296 (stop_wait_callback, detach_callback, resume_set_callback)
11297 (select_singlestep_lwp_callback, set_ignore_sigint)
11298 (status_callback, resumed_callback, resume_clear_callback)
11299 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11301 (linux_nat_target::detach, linux_nat_target::resume)
11302 (linux_stop_and_wait_all_lwps, select_event_lwp)
11303 (linux_nat_filter_event, linux_nat_wait_1)
11304 (linux_nat_target::kill, linux_nat_target::stop)
11305 (linux_nat_target::stop): Update.
11306 (linux_nat_resume_callback): Change type.
11307 (resume_stopped_resumed_lwps, count_events_callback)
11308 (select_event_lwp_callback): Likewise.
11309 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11310 * arm-linux-nat.c (struct update_registers_data): Remove.
11311 (update_registers_callback): Change type.
11312 (arm_linux_insert_hw_breakpoint1): Update.
11313 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11315 (x86_linux_dr_set_addr): Update.
11316 (x86_linux_dr_set_control): Update.
11317 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11318 (iterate_over_lwps): Use gdb::function_view.
11319 * nat/aarch64-linux-hw-point.c (struct
11320 aarch64_dr_update_callback_param): Remove.
11321 (debug_reg_change_callback): Change type.
11322 (aarch64_notify_debug_reg_change): Update.
11323 * s390-linux-nat.c (s390_refresh_per_info): Update.
11325 2019-03-11 Tom Tromey <tromey@adacore.com>
11327 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11328 redundant assignment to "this_cu".
11330 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11332 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11334 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11336 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11338 (rank_one_type): ... this.
11340 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11342 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11344 (rank_one_type): ... this.
11346 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11348 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11350 (rank_one_type): ... this.
11352 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11354 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11356 (rank_one_type): ... this.
11358 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11360 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11362 (rank_one_type): ... this.
11364 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11366 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11368 (rank_one_type): ... this.
11370 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11372 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11374 (rank_one_type): ... this.
11376 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11378 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11380 (rank_one_type): ... this.
11382 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11384 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11386 (rank_one_type): ... this.
11388 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11390 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11392 (rank_one_type): ... this.
11394 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11396 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11398 (rank_one_type): ... this.
11400 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11402 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11404 (rank_one_type): ... this.
11406 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11408 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11409 inferior-events' shows the example events.
11411 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11413 Support styling on native MS-Windows console
11416 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11417 on MS-Windows if $TERM is not defined.
11419 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11421 * posix-hdep.c (gdb_console_fputs):
11422 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11424 * ui-file.h (gdb_console_fputs): Add prototype.
11426 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11427 back to fputs only if the former returns zero.
11429 2019-03-07 Tom Tromey <tom@tromey.com>
11431 * symmisc.c (print_symbol_bcache_statistics): Update.
11432 (print_objfile_statistics): Update.
11433 * symfile.c (allocate_symtab): Update.
11434 * stabsread.c: Don't include bcache.h.
11435 * psymtab.h (struct psymbol_bcache): Don't declare.
11436 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11437 (psymbol_bcache_init, psymbol_bcache_free)
11438 (psymbol_bcache_get_bcache): Don't declare.
11439 * psymtab.c (struct psymbol_bcache): Remove.
11440 (psymtab_storage::psymtab_storage): Update.
11441 (psymtab_storage::~psymtab_storage): Update.
11442 (psymbol_bcache_init, psymbol_bcache_free)
11443 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11444 (add_psymbol_to_bcache): Update.
11445 (allocate_psymtab): Update.
11446 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11447 macro_cache>: No longer pointers.
11448 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11449 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11450 * macrotab.c (macro_bcache): Update.
11451 * macroexp.c: Don't include bcache.h.
11452 * gdbtypes.c (check_types_worklist): Update.
11453 (types_deeply_equal): Remove TRY/CATCH. Update.
11454 * elfread.c (elf_symtab_read): Update.
11455 * dwarf2read.c: Don't include bcache.h.
11456 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11457 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11458 (print_bcache_statistics, bcache_memory_used): Don't declare.
11459 (struct bcache): Move from bcache.c. Add constructor, destructor,
11460 methods. Rename all data members.
11461 * bcache.c (struct bcache): Move to bcache.h.
11462 (bcache::expand_hash_table): Rename from expand_hash_table.
11464 (bcache::insert): Rename from bcache_full.
11465 (bcache::compare): Rename from bcache_compare.
11466 (bcache_xmalloc): Remove.
11467 (bcache::~bcache): Rename from bcache_xfree.
11468 (bcache::print_statistics): Rename from print_bcache_statistics.
11469 (bcache::memory_used): Rename from bcache_memory_used.
11471 2019-03-07 Pedro Alves <palves@redhat.com>
11473 * infrun.c (normal_stop): Also check for
11474 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11476 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11478 * f-lang.c (value_from_host_double): Moved to...
11479 * value.c (value_from_host_double): ...here.
11480 * value.h (value_from_host_double): Declare.
11481 * guile/scm-math.c (vlscm_convert_typed_number): Use
11482 value_from_host_double.
11483 (vlscm_convert_number): Likewise.
11484 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11485 * python/py-value.c (convert_value_from_python): Likewise.
11487 2019-03-06 Tom Tromey <tom@tromey.com>
11489 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11491 2019-03-06 Tom Tromey <tom@tromey.com>
11493 * utils.h (free_current_contents): Don't declare.
11494 * utils.c (free_current_contents): Remove.
11496 2019-03-06 Tom Tromey <tom@tromey.com>
11498 * top.c (quit_force): Update.
11499 * main.c (captured_command_loop): Update.
11500 * common/new-op.c (operator new): Update.
11501 * common/common-exceptions.c (struct catcher)
11502 <save_cleanup_chain>: Remove member.
11503 (exceptions_state_mc_init): Update.
11504 (exception_try_scope_entry): Return nullptr.
11505 (exception_try_scope_exit, exception_rethrow)
11506 (throw_exception_sjlj, throw_exception_cxx): Update.
11507 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11508 (all_cleanups, do_cleanups, discard_cleanups)
11509 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11510 (restore_cleanups, restore_final_cleanups): Don't declare.
11511 (do_final_cleanups): Remove parameter.
11512 * common/cleanups.c (cleanup_chain, make_cleanup)
11513 (make_cleanup_dtor, all_cleanups, do_cleanups)
11514 (discard_my_cleanups, discard_cleanups)
11515 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11516 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11517 (null_cleanup): Remove.
11518 (do_final_cleanups): Remove parameter.
11520 2019-03-06 Tom Tromey <tom@tromey.com>
11522 * remote.c (remote_target::remote_parse_stop_reply): Use
11523 unique_xmalloc_ptr.
11525 2019-03-06 Tom Tromey <tom@tromey.com>
11527 * stabsread.c (struct stabs_field_info): Rename from field_info.
11528 <list, fnlist>: Add initializers.
11529 <obstack>: New member.
11530 (read_member_functions, read_struct_fields, read_baseclasses):
11531 Allocate on obstack. Don't use cleanups.
11532 (read_one_struct_field, read_member_functions, read_struct_fields)
11533 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11534 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11535 (read_struct_type): Update.
11537 2019-03-06 Tom Tromey <tom@tromey.com>
11539 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11540 * common/filestuff.h (make_cleanup_close): Don't declare.
11541 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11544 2019-03-06 Tom Tromey <tom@tromey.com>
11546 * solib-aix.c: Use make_scope_exit.
11548 2019-03-06 Tom Tromey <tom@tromey.com>
11550 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11551 Use make_scope_exit.
11553 2019-03-06 Tom Tromey <tom@tromey.com>
11555 * solib-svr4.c (disable_probes_interface): Remove parameter.
11556 (svr4_handle_solib_event): Use make_scope_exit.
11558 2019-03-06 Tom Tromey <tom@tromey.com>
11560 * remote.c (struct stop_reply_deleter): Remove.
11561 (stop_reply_up): Update.
11562 (struct stop_reply): Derive from notif_event. Don't typedef.
11563 <regcache>: Now a std::vector.
11564 (stop_reply_xfree): Remove.
11565 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11566 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11567 (remote_target::discard_pending_stop_replies): Use delete.
11568 (remote_target::remote_parse_stop_reply): Update.
11569 (remote_target::process_stop_reply): Update.
11570 * remote-notif.h (struct notif_event): Add virtual destructor.
11571 Remove "dtr" member.
11572 (struct notif_client) <alloc_event>: Return a unique_ptr.
11573 (notif_event_xfree): Don't declare.
11574 (notif_event_up): New typedef.
11575 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11576 (notif_event_xfree, do_notif_event_xfree): Remove.
11577 (remote_notif_state_xfree): Update.
11579 2019-03-06 Tom Tromey <tom@tromey.com>
11581 * infrun.c (displaced_step_clear_cleanup): Now a
11582 forward_scope_exit type.
11583 (displaced_step_prepare_throw): Update.
11584 (displaced_step_fixup): Update.
11586 2019-03-06 Tom Tromey <tom@tromey.com>
11588 * inferior.h (class inferior): Update comment.
11589 * gdbthread.h (class thread_info): Update comment.
11591 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11592 Tom Tromey <tom@tromey.com>
11594 * stabsread.h (struct stab_section_list): Remove.
11595 (coffstab_build_psymtabs): Update.
11596 * dbxread.c (symbuf_sections): Now a std::vector.
11597 (sect_idx): New global.
11598 (fill_symbuf): Update.
11599 (coffstab_build_psymtabs): Change type of stabsects parameter.
11601 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11603 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11604 (coff_locate_sections): Update.
11605 (coff_symfile_read): Remove cleanups. Update.
11606 (init_stringtab): Add storage parameter.
11607 (free_stringtab, free_stringtab_cleanup): Remove.
11608 (init_lineno): Add storage parameter.
11609 (free_linetab, free_linetab_cleanup): Remove.
11611 2019-03-06 Pedro Alves <palves@redhat.com>
11613 * linux-fork.c (fork_info::clobber_regs): Delete.
11614 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11615 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11617 (scoped_switch_fork_info::scoped_switch_fork_info)
11618 (checkpoint_command, linux_fork_context): Adjust
11619 fork_save_infrun_state calls.
11621 2019-03-06 Pedro Alves <palves@redhat.com>
11623 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11624 (inf_has_multiple_threads): Return 'bool' and rewrite using
11625 inferior_info::threads().
11627 2019-03-06 Pedro Alves <palves@redhat.com>
11629 * linux-fork.c: Include <list>.
11630 (fork_list): Now a std::list instance.
11631 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11632 (forks_exist_p, find_last_fork): Adjust.
11633 (new_fork): Delete.
11635 (add_fork): Adjust.
11636 (free_fork): Delete, folded into fork_info::~fork_info().
11637 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11639 (init_fork_list): Delete.
11640 (linux_fork_killall, linux_fork_mourn_inferior)
11641 (linux_fork_detach, info_checkpoints_command): Adjust.
11642 (_initialize_linux_fork): No longer call init_fork_list.
11644 2019-03-06 Pedro Alves <palves@redhat.com>
11646 * linux-fork.c (new_fork): New, split out of ...
11647 (add_fork): ... this. Return void. Move "first fork" special
11648 case from here, to ...
11649 (checkpoint_command): ... here.
11650 * linux-linux.h (add_fork): Return void.
11652 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11654 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11656 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11657 Chris January <chris.january@arm.com>
11658 David Lecomber <david.lecomber@arm.com>
11660 * f-exp.y: New token, UNOP_INTRINSIC.
11661 (exp): New pattern using UNOP_INTRINSIC token.
11662 (f77_keywords): Add 'abs' keyword.
11663 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11664 (value_from_host_double): New function.
11665 (evaluate_subexp_f): Support UNOP_ABS.
11667 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11669 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11672 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11674 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11675 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11676 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11678 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11680 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11682 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11683 Chris January <chris.january@arm.com>
11685 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11686 * f-exp.y: Define 'KIND' token.
11687 (exp): New pattern for KIND expressions.
11688 (ptype): Handle types with a kind extension.
11689 (direct_abs_decl): Extend to spot kind extensions.
11690 (f77_keywords): Add 'kind' to the list.
11691 (push_kind_type): New function.
11692 (convert_to_kind_type): New function.
11693 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11694 * parse.c (operator_length_standard): Likewise.
11695 * parser-defs.h (enum type_pieces): Add tp_kind.
11696 * std-operator.def: Add UNOP_KIND.
11698 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11700 * f-exp.y (f_parse): Set yydebug.
11702 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11704 * f-lang.c (evaluate_subexp_f): New function.
11705 (exp_descriptor_f): New global.
11706 (f_language_defn): Use exp_descriptor_f instead of
11707 exp_descriptor_standard.
11709 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11711 * f-exp.y (struct token): Add comments.
11712 (dot_ops): Remove uppercase versions and the end marker.
11713 (f77_keywords): Likewise.
11714 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11715 entries in the dot_ops array are case insensitive, and use
11716 strncasecmp to compare strings. Also some whitespace cleanup in
11717 this area. Similar for the f77_keywords array, except entries in
11718 this list might be case sensitive.
11720 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11722 * f-exp.y (struct f77_boolean_val): Add comments.
11723 (boolean_values): Remove uppercase versions, and end marker.
11724 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11725 and use strncasecmp to achieve case insensitivity. Additionally,
11726 perform whitespace cleanup around this code.
11728 2019-03-06 Tom Tromey <tromey@adacore.com>
11730 * remote-sim.c (gdbsim_target_open): Use result of
11733 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11734 Dirk Schubert <dirk.schubert@arm.com>
11735 Chris January <chris.january@arm.com>
11737 * eval.c (evaluate_subexp_standard): Call Fortran argument
11739 * f-lang.c (struct value): A value which can be passed into a
11740 Fortran function call.
11741 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11743 (struct type): Value ready for a Fortran function call.
11744 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11746 * f-lang.h (fortran_argument_convert): Declaration.
11747 (fortran_preserve_arg_pointer): Declaration.
11748 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11750 2019-03-05 Tom Tromey <tromey@adacore.com>
11752 * python/py-prettyprint.c (print_string_repr): Remove #if.
11753 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11755 2019-03-05 Tom Tromey <tromey@adacore.com>
11757 * target.c (the_dummy_target): Move later. Change type to
11759 (initialize_targets): Don't initialize the_dummy_target.
11761 2019-03-05 Tom Tromey <tromey@adacore.com>
11763 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11764 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11766 2019-03-05 Tom Tromey <tromey@adacore.com>
11768 * windows-nat.c (windows_nat_target::attach)
11769 (windows_nat_target::detach): Don't call gdb_flush.
11770 * valprint.c (generic_val_print, val_print, val_print_string):
11771 Don't call gdb_flush.
11772 * utils.c (defaulted_query): Don't call gdb_flush.
11773 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11774 * target.c (target_announce_detach): Don't call gdb_flush.
11775 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11776 * remote.c (extended_remote_target::attach): Don't call
11778 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11779 * printcmd.c (do_examine): Don't call gdb_flush.
11780 (info_display_command): Don't call gdb_flush.
11781 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11782 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11783 * memattr.c (info_mem_command): Don't call gdb_flush.
11784 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11785 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11786 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11787 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11788 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11789 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11790 (gnu_nat_target::detach): Don't call gdb_flush.
11791 * f-valprint.c (f_val_print): Don't call gdb_flush.
11792 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11793 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11794 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11796 * c-valprint.c (c_val_print): Don't call gdb_flush.
11797 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11799 2019-03-05 Tom Tromey <tromey@adacore.com>
11801 * varobj.c (update_dynamic_varobj_children): Update.
11802 (install_default_visualizer): Use reset, not release.
11803 * value.c (set_internalvar): Update.
11804 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11805 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11806 ATTRIBUTE_UNUSED_RESULT.
11808 2019-03-05 Tom Tromey <tromey@adacore.com>
11810 * remote.c (class scoped_remote_fd) <release>: Add
11811 ATTRIBUTE_UNUSED_RESULT.
11813 2019-03-05 Tom Tromey <tromey@adacore.com>
11815 * macroexp.c (struct macro_buffer) <release>: Add
11816 ATTRIBUTE_UNUSED_RESULT.
11818 2019-03-05 Tom Tromey <tromey@adacore.com>
11820 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11821 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11822 ATTRIBUTE_UNUSED_RESULT.
11824 2019-03-05 Tom Tromey <tromey@adacore.com>
11826 * common/scoped_fd.h (class scoped_fd) <release>: Add
11827 ATTRIBUTE_UNUSED_RESULT.
11829 2019-03-05 Tom Tromey <tromey@adacore.com>
11831 * parser-defs.h (struct parser_state) <release>: Add
11832 ATTRIBUTE_UNUSED_RESULT.
11834 2019-03-05 Tom Tromey <tromey@adacore.com>
11836 * utils.h (class gdb_argv) <release>: Add
11837 ATTRIBUTE_UNUSED_RESULT.
11838 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11840 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11842 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11843 for-loop range, to avoid compiler warnings.
11845 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11846 avoid compiler warnings about unused variables.
11848 * NEWS: Mention end of support for native debugging on MS-Windows
11852 * common/netstuff.c:
11853 * gdbserver/gdbreplay.c
11854 * gdbserver/remote-utils.c:
11856 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11857 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11858 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11859 'getaddrinfo' and 'freeaddrinfo' were not available before
11860 Windows XP, and mingw.org's MinGW headers by default define
11861 _WIN32_WINNT to 0x500.
11863 2019-03-01 Gary Benson <gbenson@redhat.com>
11865 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11867 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11868 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11871 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11872 set_sigint_trap, clear_sigint_trap.
11874 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11876 * target.c (target_detach): Clear the regcache and the
11879 2019-02-27 Pedro Alves <palves@redhat.com>
11881 * utils.c (set_screen_size): When we cap the height/width sizes,
11882 tweak the corresponding command variable to show "unlimited":
11884 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11885 Pedro Alves <palves@redhat.com>
11887 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11888 before calling rl_set_screen_size.
11890 2019-02-27 Tom Tromey <tromey@adacore.com>
11892 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11894 * python/py-value.c: Remove Python 2.4 workaround.
11895 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11897 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11898 Python 2.4 workaround.
11899 * python/python-internal.h: Remove Python 2.4 comment.
11900 (Py_ssize_t): Don't define.
11901 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11902 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11903 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11904 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11905 * python/python.c (do_start_initialization): Remove Python 2.4
11907 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11908 (print_children): Remove Python 2.4 workaround.
11909 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11911 (CHARBUFFERPROC_NAME): Remove.
11912 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11913 Python 2.4 workaround.
11915 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11917 * NEWS: Note minimum Python version.
11919 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11921 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11922 code from these functions. Remove corresponding ifdefs. Use
11923 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11924 Remove gotos and target of gotos.
11925 (infpy_search_memory): Likewise.
11927 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11929 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11930 (hppa_gdbarch_init): Don't register deleted functions with
11933 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11935 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11936 (h8300_unwind_sp): Delete.
11937 (h8300_dummy_id): Delete.
11938 (h8300_gdbarch_init): Don't register deleted functions with
11941 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11943 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11944 (ft32_unwind_pc): Delete.
11945 (ft32_unwind_sp): Delete.
11946 (ft32_gdbarch_init): Don't register deleted functions with
11949 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11951 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11952 (frv_unwind_pc): Delete.
11953 (frv_unwind_sp): Delete.
11954 (frv_gdbarch_init): Don't register deleted functions with
11957 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11959 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11960 (riscv_unwind_pc): Delete.
11961 (riscv_unwind_sp): Delete.
11962 (riscv_gdbarch_init): Don't register deleted functions with
11965 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11967 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11968 (csky_unwind_pc): Delete.
11969 (csky_unwind_sp): Delete.
11970 (csky_gdbarch_init): Don't register deleted functions with
11973 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11975 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11976 (cris_unwind_pc): Delete.
11977 (cris_unwind_sp): Delete.
11978 (cris_gdbarch_init): Don't register deleted functions with
11981 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11983 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11984 (bfin_unwind_pc): Delete.
11985 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11987 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11989 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11990 (arm_unwind_pc): Delete.
11991 (arm_unwind_sp): Delete.
11992 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11994 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11996 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11997 (arc_unwind_pc): Delete.
11998 (arc_unwind_sp): Delete.
11999 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
12001 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12003 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
12004 (alpha_unwind_pc): Delete.
12005 (alpha_gdbarch_init): Don't register deleted functions with
12008 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12010 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12011 (aarch64_unwind_pc): Delete.
12012 (aarch64_unwind_sp): Delete.
12013 (aarch64_gdbarch_init): Don't register deleted functions with
12016 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12018 * gdbtypes.c (type_align): Don't consider static members when
12019 computing structure alignment.
12021 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12023 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12024 return 0 for other types.
12025 * arch-utils.c (default_type_align): Always return 0.
12026 * gdbarch.h: Regenerate.
12027 * gdbarch.sh (type_align): Extend comment.
12028 * gdbtypes.c (type_align): Add additional comments, always call
12029 gdbarch_type_align before applying the default rules.
12030 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12031 generic code will then apply a suitable default.
12032 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12033 types, return 0 for other types.
12035 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12037 * NEWS: Create a new section for the next release branch.
12038 Rename the section of the current branch, now that it has
12041 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12043 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12044 * version.in: Bump version to 8.3.50.DATE-git.
12046 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12048 * aix-thread.c (ptid_cmp): Remove unused variable.
12049 (get_signaled_thread): Likewise.
12050 (store_regs_user_thread): Likewise.
12051 (store_regs_kernel_thread): Likewise.
12052 (fetch_regs_kernel_thread): Remove shadowed variable.
12054 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12056 * features/riscv/32bit-cpu.xml: Add register numbers.
12057 * features/riscv/32bit-fpu.c: Regenerate.
12058 * features/riscv/32bit-fpu.xml: Add register numbers.
12059 * features/riscv/64bit-cpu.xml: Add register numbers.
12060 * features/riscv/64bit-fpu.c: Regenerate.
12061 * features/riscv/64bit-fpu.xml: Add register numbers.
12063 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12065 * NEWS: Mention two argument form of gdb.Value constructor.
12066 * python/py-value.c (convert_buffer_and_type_to_value): New
12068 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12069 Add support for handling an optional second argument. Call
12070 convert_buffer_and_type_to_value as appropriate.
12071 * python/python-internal.h (Py_buffer_deleter): New struct.
12072 (Py_buffer_up): New typedef.
12074 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12076 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12077 instead of releasing ownership.
12079 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12081 * dwarf2read.c (open_and_init_dwp_file): Call
12082 elf_numsections instead of bfd_count_sections to initialize
12083 dwp_file->num_sections.
12085 2019-02-25 Tom Tromey <tromey@adacore.com>
12087 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12089 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12091 * gcore.in: Add '--readnever' option when invoking GDB.
12093 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12095 * MAINTAINERS: Update my email address.
12097 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12099 * build-id.c (build_id_to_debug_bfd_1): New function.
12100 (build_id_to_debug_bfd): Look for separate debug file in
12103 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12105 * gdbarch.sh: Update the copyright year range that is placed into
12108 2019-02-22 Keith Seitz <keiths@redhat.com>
12111 * linespec.c (create_sals_line_offset): Search for the default
12112 symtab's filename instead of its fullname.
12114 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12116 * NEWS: Update style defaults.
12118 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12120 * main.c (captured_main_1): Disable styling in batch mode.
12122 2019-02-20 Tom Tromey <tom@tromey.com>
12124 * symtab.c (symtab_symbol_info): Fix typos.
12126 2019-02-20 Tom Tromey <tromey@adacore.com>
12128 * findcmd.c (_initialize_mem_search): Use upper case for
12129 metasyntactic variables.
12131 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12133 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12134 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12136 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12138 * top.h (source_file_name): Change to std::string.
12139 * top.c (source_file_name): Likewise.
12140 (command_line_input): Adjust.
12141 * cli/cli-script.c (script_from_file): Adjust.
12143 2019-02-19 Tom Tromey <tromey@adacore.com>
12145 * ravenscar-thread.c
12146 (ravenscar_thread_target::update_thread_list): Don't call
12147 ada_build_task_list.
12148 * ada-lang.h (ada_build_task_list): Don't declare.
12149 * ada-tasks.c (struct ada_tasks_inferior_data)
12150 <task_list_valid_p>: Now bool.
12151 (read_known_tasks, ada_task_list_changed)
12152 (ada_tasks_invalidate_inferior_data): Update.
12153 (read_known_tasks_array): Return bool.
12154 (read_known_tasks_list): Likewise.
12155 (read_known_tasks): Return void.
12156 (ada_build_task_list): Now static.
12158 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12160 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12161 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12163 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12165 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12166 variant for ada_tasks_pspace_data_handle and
12167 ada_tasks_inferior_data_handle.
12168 (ada_tasks_pspace_data_cleanup): New function.
12169 (ada_tasks_inferior_data_cleanup): New function.
12171 2019-02-17 Tom Tromey <tom@tromey.com>
12173 * macrotab.h (macro_source_fullname): Return a std::string.
12174 * macrotab.c (macro_include, check_for_redefinition)
12175 (macro_undef, macro_lookup_definition, foreach_macro)
12176 (foreach_macro_in_scope): Update.
12177 (macro_source_fullname): Return a std::string.
12178 * macrocmd.c (show_pp_source_pos): Update.
12180 2019-02-17 Tom Tromey <tom@tromey.com>
12182 * macrocmd.c (show_pp_source_pos): Style the file names.
12184 2019-02-17 Tom Tromey <tom@tromey.com>
12187 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12189 2019-02-17 Tom Tromey <tom@tromey.com>
12191 * ada-lang.c (user_select_syms): Use filtered printing.
12192 * utils.c (wrap_style): New global.
12193 (desired_style): Remove.
12194 (emit_style_escape): Add stream parameter.
12195 (set_output_style, reset_terminal_style, prompt_for_continue):
12197 (flush_wrap_buffer): Only flush gdb_stdout.
12198 (wrap_here): Set wrap_style.
12199 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12200 treat escape sequences as a character. Change when wrap buffer is
12202 (fputs_styled): Do not set the output style when the default is
12204 * ui-style.h (struct ui_file_style) <is_default>: New method.
12205 * source.c (print_source_lines_base): Emit escape sequences in one
12208 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12210 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12211 integers and enumeration types.
12213 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12215 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12216 instead of lookup_symbol_in_language
12217 (do_exact_match): New function.
12218 (ada_get_symbol_name_matcher): Return do_exact_match when
12219 doing a verbatim match.
12221 2019-02-15 Tom Tromey <tromey@adacore.com>
12223 * ravenscar-thread.c (ravenscar_thread_target::resume)
12224 (ravenscar_thread_target::wait): Special case wildcard requests.
12226 2019-02-15 Tom Tromey <tromey@adacore.com>
12228 * ravenscar-thread.c (base_ptid): Remove.
12229 (struct ravenscar_thread_target) <close>: New method.
12230 <m_base_ptid>: New member.
12231 <update_inferior_ptid, active_task, task_is_currently_active,
12232 runtime_initialized>: Declare methods.
12233 <ravenscar_thread_target>: Add constructor.
12234 (ravenscar_thread_target::task_is_currently_active)
12235 (ravenscar_thread_target::update_inferior_ptid)
12236 (ravenscar_runtime_initialized): Rename. Now methods.
12237 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12238 (ravenscar_thread_target::update_thread_list): Update.
12239 (ravenscar_thread_target::active_task): Now method.
12240 (ravenscar_thread_target::store_registers)
12241 (ravenscar_thread_target::prepare_to_store)
12242 (ravenscar_thread_target::prepare_to_store)
12243 (ravenscar_thread_target::mourn_inferior): Update.
12244 (ravenscar_inferior_created): Use "new" to create target.
12245 (ravenscar_thread_target::get_ada_task_ptid): Update.
12246 (_initialize_ravenscar): Don't initialize base_ptid.
12247 (ravenscar_ops): Remove global.
12249 2019-02-15 Tom Tromey <tromey@adacore.com>
12251 * target.h (push_target): Declare new overload.
12252 * target.c (push_target): New overload, taking an rvalue reference.
12253 * remote.c (remote_target::open_1): Use push_target overload.
12254 * corelow.c (core_target_open): Use push_target overload.
12256 2019-02-15 Tom Tromey <tromey@adacore.com>
12258 * ravenscar-thread.c (is_ravenscar_task)
12259 (ravenscar_task_is_currently_active): Return bool.
12260 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12261 (_initialize_ravenscar): Remove "(void)".
12262 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12265 2019-02-15 Tom Tromey <tromey@adacore.com>
12267 * ravenscar-thread.c (ravenscar_runtime_initializer)
12268 (has_ravenscar_runtime, get_running_thread_id)
12269 (ravenscar_thread_target::resume): Fix indentation.
12271 2019-02-15 Tom Tromey <tromey@adacore.com>
12273 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12274 from ravenscar_arch_ops.
12275 (sparc_ravenscar_ops::fetch_registers)
12276 (sparc_ravenscar_ops::store_registers): Now methods.
12277 (sparc_ravenscar_prepare_to_store): Remove.
12278 (sparc_ravenscar_ops): Redefine.
12279 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12280 methods and destructor. Remove members.
12281 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12282 (ravenscar_thread_target::store_registers)
12283 (ravenscar_thread_target::prepare_to_store): Update.
12284 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12286 (struct ppc_ravenscar_powerpc_ops): Derive from
12287 ravenscar_arch_ops.
12288 (ppc_ravenscar_powerpc_ops::fetch_registers)
12289 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12290 (ppc_ravenscar_powerpc_ops): Redefine.
12291 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12292 (ppc_ravenscar_e500_ops::fetch_registers)
12293 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12294 (ppc_ravenscar_e500_ops): Redefine.
12295 * aarch64-ravenscar-thread.c
12296 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12297 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12298 (aarch64_ravenscar_fetch_registers)
12299 (aarch64_ravenscar_store_registers): Now methods.
12300 (aarch64_ravenscar_ops): Redefine.
12302 2019-02-15 Tom Tromey <tromey@adacore.com>
12304 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12305 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12306 (ravenscar_thread_target::stopped_by_watchpoint)
12307 (ravenscar_thread_target::stopped_data_address)
12308 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12310 2019-02-15 Tom Tromey <tromey@adacore.com>
12312 * ravenscar-thread.c: Fix some typos.
12314 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12315 Tom Tromey <tromey@adacore.com>
12317 * ada-lang.c (ada_exception_sal): Change addr_string to a
12319 (create_ada_exception_catchpoint): Update.
12321 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12322 Tom Tromey <tromey@adacore.com>
12324 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12325 (bp_location_ops): Remove.
12326 (base_breakpoint_allocate_location): Update.
12327 (free_bp_location): Update.
12328 * ada-lang.c (class ada_catchpoint_location)
12329 <ada_catchpoint_location>: Remove ops parameter.
12330 (ada_catchpoint_location_dtor): Remove.
12331 (ada_catchpoint_location_ops): Remove.
12332 (allocate_location_exception): Update.
12333 * breakpoint.h (struct bp_location_ops): Remove.
12334 (class bp_location) <bp_location>: Remove bp_location_ops
12336 <~bp_location>: Add destructor.
12339 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12340 Pedro Alves <palves@redhat.com>
12342 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12345 2019-02-14 David Michael <fedora.dm0@gmail.com>
12346 Samuel Thibault <samuel.thibault@gnu.org>
12347 Thomas Schwinge <thomas@codesourcery.com>
12349 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12350 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12352 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12354 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12355 (check_empty): Use "const char *".
12357 * gnu-nat.c (gnu_nat_target::detach): Instead of
12358 'detach_inferior (pid)' call
12359 'detach_inferior (find_inferior_pid (pid))'.
12361 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12362 'nat/fork-inferior.o'.
12363 * gnu-nat.c: #include "nat/fork-inferior.h".
12365 * gnu-nat.c (gnu_nat_target::detach): Instead of
12366 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12367 * gnu-nat.h: #include "inf-child.h".
12368 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12369 'i386_gnu_nat_target::fetch_registers'.
12370 (gnu_store_registers): Rename/move to
12371 'i386_gnu_nat_target::store_registers'.
12373 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12374 * gnu-nat.h (mach_thread_info): New function.
12375 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12377 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12379 2019-02-14 Frederic Konrad <konrad@adacore.com>
12381 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12383 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12385 * windows-nat.c (windows_add_thread): Add new parameter
12386 "main_thread_p" with default value set to false. Update
12387 function documentation as well as all callers.
12388 (windows_delete_thread): Likewise.
12389 (fake_create_process): Update call to windows_add_thread.
12390 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12391 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12392 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12393 call to windows_delete_thread.
12395 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12397 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12399 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12401 * symfile.c (find_separate_debug_file): Use canonical path of
12402 sysroot with child_path instead of gdb_sysroot if it is valid.
12404 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12406 * symfile.c (find_separate_debug_file): Use child_path to
12407 determine if an object file is under a sysroot.
12409 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12411 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12412 unittests/child-path-selftests.c.
12413 * common/pathstuff.c (child_path): New function.
12414 * common/pathstuff.h (child_path): New prototype.
12415 * unittests/child-path-selftests.c: New file.
12417 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12419 * symfile.c (find_separate_debug_file): Look for separate debug
12420 files in debug directories under the sysroot.
12422 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12424 * symtab.h (struct minimal_symbol data_p): New const method.
12425 (struct minimal_symbol text_p): Likewise.
12426 * symtab.c (output_source_filename): Use file name style
12427 to print file name.
12428 (print_symbol_info): Likewise.
12429 (print_msymbol_info): Use address style to print addresses.
12430 Use function name style to print executable text symbols.
12431 (expand_symtab_containing_pc): Use data_p.
12432 (find_pc_sect_compunit_symtab): Likewise.
12434 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12436 * breakpoint.c (describe_other_breakpoints): Use address style
12437 to print addresses.
12438 (say_where): Likewise.
12440 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12442 * ada-typeprint.c (print_func_type): Print function name
12443 style to print function name.
12444 * c-typeprint.c (c_print_type_1): Likewise.
12446 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12448 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12451 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12453 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12456 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12458 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12459 TYPE_CODE_REF types.
12461 2019-02-08 Jim Wilson <jimw@sifive.com>
12463 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12464 (riscv_linux_fregset): New.
12465 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12467 2019-02-07 Tom Tromey <tom@tromey.com>
12469 * thread.c (thread_cancel_execution_command): Update.
12470 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12472 (struct thread_fsm_ops): Remove.
12473 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12474 (thread_fsm_should_stop, thread_fsm_return_value)
12475 (thread_fsm_set_finished, thread_fsm_finished_p)
12476 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12478 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12479 * infrun.c (clear_proceed_status_thread)
12480 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12481 (print_stop_event): Update.
12482 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12484 (step_command_fsm_ops): Remove.
12485 (new_step_command_fsm): Remove.
12487 (step_command_fsm::should_stop): Rename from
12488 step_command_fsm_should_stop.
12489 (step_command_fsm::clean_up): Rename from
12490 step_command_fsm_clean_up.
12491 (step_command_fsm::do_async_reply_reason): Rename from
12492 step_command_fsm_async_reply_reason.
12493 (struct until_next_fsm): Inherit from thread_fsm. Add
12495 (until_next_fsm_ops): Remove.
12496 (new_until_next_fsm): Remove.
12497 (until_next_fsm::should_stop): Rename from
12498 until_next_fsm_should_stop.
12499 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12500 (until_next_fsm::do_async_reply_reason): Rename from
12501 until_next_fsm_async_reply_reason.
12502 (struct finish_command_fsm): Inherit from thread_fsm. Add
12503 constructor. Change type of breakpoint.
12504 (finish_command_fsm_ops): Remove.
12505 (new_finish_command_fsm): Remove.
12506 (finish_command_fsm::should_stop): Rename from
12507 finish_command_fsm_should_stop.
12508 (finish_command_fsm::clean_up): Rename from
12509 finish_command_fsm_clean_up.
12510 (finish_command_fsm::return_value): Rename from
12511 finish_command_fsm_return_value.
12512 (finish_command_fsm::do_async_reply_reason): Rename from
12513 finish_command_fsm_async_reply_reason.
12514 (finish_command): Update.
12515 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12517 (call_thread_fsm_ops): Remove.
12518 (call_thread_fsm::call_thread_fsm): Rename from
12519 new_call_thread_fsm.
12520 (call_thread_fsm::should_stop): Rename from
12521 call_thread_fsm_should_stop.
12522 (call_thread_fsm::should_notify_stop): Rename from
12523 call_thread_fsm_should_notify_stop.
12524 (run_inferior_call, call_function_by_hand_dummy): Update.
12525 * cli/cli-interp.c (should_print_stop_to_console): Update.
12526 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12527 Add constructor. Change type of location_breakpoint,
12529 (until_break_fsm_ops): Remove.
12530 (new_until_break_fsm): Remove.
12531 (until_break_fsm::should_stop): Rename from
12532 until_break_fsm_should_stop.
12533 (until_break_fsm::clean_up): Rename from
12534 until_break_fsm_clean_up.
12535 (until_break_fsm::do_async_reply_reason): Rename from
12536 until_break_fsm_async_reply_reason.
12537 (until_break_command): Update.
12538 * thread-fsm.c: Remove.
12539 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12541 2019-02-07 Tom Tromey <tom@tromey.com>
12543 * yy-remap.h: Add include guard.
12544 * xtensa-tdep.h: Add include guard.
12545 * xcoffread.h: Rename include guard.
12546 * varobj-iter.h: Add include guard.
12547 * tui/tui.h: Rename include guard.
12548 * tui/tui-winsource.h: Rename include guard.
12549 * tui/tui-wingeneral.h: Rename include guard.
12550 * tui/tui-windata.h: Rename include guard.
12551 * tui/tui-win.h: Rename include guard.
12552 * tui/tui-stack.h: Rename include guard.
12553 * tui/tui-source.h: Rename include guard.
12554 * tui/tui-regs.h: Rename include guard.
12555 * tui/tui-out.h: Rename include guard.
12556 * tui/tui-layout.h: Rename include guard.
12557 * tui/tui-io.h: Rename include guard.
12558 * tui/tui-hooks.h: Rename include guard.
12559 * tui/tui-file.h: Rename include guard.
12560 * tui/tui-disasm.h: Rename include guard.
12561 * tui/tui-data.h: Rename include guard.
12562 * tui/tui-command.h: Rename include guard.
12563 * tic6x-tdep.h: Add include guard.
12564 * target/waitstatus.h: Rename include guard.
12565 * target/wait.h: Rename include guard.
12566 * target/target.h: Rename include guard.
12567 * target/resume.h: Rename include guard.
12568 * target-float.h: Rename include guard.
12569 * stabsread.h: Add include guard.
12570 * rs6000-tdep.h: Add include guard.
12571 * riscv-fbsd-tdep.h: Add include guard.
12572 * regformats/regdef.h: Rename include guard.
12573 * record.h: Rename include guard.
12574 * python/python.h: Rename include guard.
12575 * python/python-internal.h: Rename include guard.
12576 * python/py-stopevent.h: Rename include guard.
12577 * python/py-ref.h: Rename include guard.
12578 * python/py-record.h: Rename include guard.
12579 * python/py-record-full.h: Rename include guard.
12580 * python/py-record-btrace.h: Rename include guard.
12581 * python/py-instruction.h: Rename include guard.
12582 * python/py-events.h: Rename include guard.
12583 * python/py-event.h: Rename include guard.
12584 * procfs.h: Add include guard.
12585 * proc-utils.h: Add include guard.
12586 * p-lang.h: Add include guard.
12587 * or1k-tdep.h: Rename include guard.
12588 * observable.h: Rename include guard.
12589 * nto-tdep.h: Rename include guard.
12590 * nat/x86-linux.h: Rename include guard.
12591 * nat/x86-linux-dregs.h: Rename include guard.
12592 * nat/x86-gcc-cpuid.h: Add include guard.
12593 * nat/x86-dregs.h: Rename include guard.
12594 * nat/x86-cpuid.h: Rename include guard.
12595 * nat/ppc-linux.h: Rename include guard.
12596 * nat/mips-linux-watch.h: Rename include guard.
12597 * nat/linux-waitpid.h: Rename include guard.
12598 * nat/linux-ptrace.h: Rename include guard.
12599 * nat/linux-procfs.h: Rename include guard.
12600 * nat/linux-osdata.h: Rename include guard.
12601 * nat/linux-nat.h: Rename include guard.
12602 * nat/linux-namespaces.h: Rename include guard.
12603 * nat/linux-btrace.h: Rename include guard.
12604 * nat/glibc_thread_db.h: Rename include guard.
12605 * nat/gdb_thread_db.h: Rename include guard.
12606 * nat/gdb_ptrace.h: Rename include guard.
12607 * nat/fork-inferior.h: Rename include guard.
12608 * nat/amd64-linux-siginfo.h: Rename include guard.
12609 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12610 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12611 * nat/aarch64-linux.h: Rename include guard.
12612 * nat/aarch64-linux-hw-point.h: Rename include guard.
12613 * mn10300-tdep.h: Add include guard.
12614 * mips-linux-tdep.h: Add include guard.
12615 * mi/mi-parse.h: Rename include guard.
12616 * mi/mi-out.h: Rename include guard.
12617 * mi/mi-main.h: Rename include guard.
12618 * mi/mi-interp.h: Rename include guard.
12619 * mi/mi-getopt.h: Rename include guard.
12620 * mi/mi-console.h: Rename include guard.
12621 * mi/mi-common.h: Rename include guard.
12622 * mi/mi-cmds.h: Rename include guard.
12623 * mi/mi-cmd-break.h: Rename include guard.
12624 * m2-lang.h: Add include guard.
12625 * location.h: Rename include guard.
12626 * linux-record.h: Rename include guard.
12627 * linux-nat.h: Add include guard.
12628 * linux-fork.h: Add include guard.
12629 * i386-darwin-tdep.h: Rename include guard.
12630 * hppa-linux-offsets.h: Add include guard.
12631 * guile/guile.h: Rename include guard.
12632 * guile/guile-internal.h: Rename include guard.
12633 * gnu-nat.h: Rename include guard.
12634 * gdb-stabs.h: Rename include guard.
12635 * frv-tdep.h: Add include guard.
12636 * f-lang.h: Add include guard.
12637 * event-loop.h: Add include guard.
12638 * darwin-nat.h: Rename include guard.
12639 * cp-abi.h: Rename include guard.
12640 * config/sparc/nm-sol2.h: Rename include guard.
12641 * config/nm-nto.h: Rename include guard.
12642 * config/nm-linux.h: Add include guard.
12643 * config/i386/nm-i386gnu.h: Rename include guard.
12644 * config/djgpp/nl_types.h: Rename include guard.
12645 * config/djgpp/langinfo.h: Rename include guard.
12646 * compile/gcc-cp-plugin.h: Add include guard.
12647 * compile/gcc-c-plugin.h: Add include guard.
12648 * compile/compile.h: Rename include guard.
12649 * compile/compile-object-run.h: Rename include guard.
12650 * compile/compile-object-load.h: Rename include guard.
12651 * compile/compile-internal.h: Rename include guard.
12652 * compile/compile-cplus.h: Rename include guard.
12653 * compile/compile-c.h: Rename include guard.
12654 * common/xml-utils.h: Rename include guard.
12655 * common/x86-xstate.h: Rename include guard.
12656 * common/version.h: Rename include guard.
12657 * common/vec.h: Rename include guard.
12658 * common/tdesc.h: Rename include guard.
12659 * common/selftest.h: Rename include guard.
12660 * common/scoped_restore.h: Rename include guard.
12661 * common/scoped_mmap.h: Rename include guard.
12662 * common/scoped_fd.h: Rename include guard.
12663 * common/safe-iterator.h: Rename include guard.
12664 * common/run-time-clock.h: Rename include guard.
12665 * common/refcounted-object.h: Rename include guard.
12666 * common/queue.h: Rename include guard.
12667 * common/ptid.h: Rename include guard.
12668 * common/print-utils.h: Rename include guard.
12669 * common/preprocessor.h: Rename include guard.
12670 * common/pathstuff.h: Rename include guard.
12671 * common/observable.h: Rename include guard.
12672 * common/netstuff.h: Rename include guard.
12673 * common/job-control.h: Rename include guard.
12674 * common/host-defs.h: Rename include guard.
12675 * common/gdb_wait.h: Rename include guard.
12676 * common/gdb_vecs.h: Rename include guard.
12677 * common/gdb_unlinker.h: Rename include guard.
12678 * common/gdb_unique_ptr.h: Rename include guard.
12679 * common/gdb_tilde_expand.h: Rename include guard.
12680 * common/gdb_sys_time.h: Rename include guard.
12681 * common/gdb_string_view.h: Rename include guard.
12682 * common/gdb_splay_tree.h: Rename include guard.
12683 * common/gdb_setjmp.h: Rename include guard.
12684 * common/gdb_ref_ptr.h: Rename include guard.
12685 * common/gdb_optional.h: Rename include guard.
12686 * common/gdb_locale.h: Rename include guard.
12687 * common/gdb_assert.h: Rename include guard.
12688 * common/filtered-iterator.h: Rename include guard.
12689 * common/filestuff.h: Rename include guard.
12690 * common/fileio.h: Rename include guard.
12691 * common/environ.h: Rename include guard.
12692 * common/common-utils.h: Rename include guard.
12693 * common/common-types.h: Rename include guard.
12694 * common/common-regcache.h: Rename include guard.
12695 * common/common-inferior.h: Rename include guard.
12696 * common/common-gdbthread.h: Rename include guard.
12697 * common/common-exceptions.h: Rename include guard.
12698 * common/common-defs.h: Rename include guard.
12699 * common/common-debug.h: Rename include guard.
12700 * common/cleanups.h: Rename include guard.
12701 * common/buffer.h: Rename include guard.
12702 * common/btrace-common.h: Rename include guard.
12703 * common/break-common.h: Rename include guard.
12704 * cli/cli-utils.h: Rename include guard.
12705 * cli/cli-style.h: Rename include guard.
12706 * cli/cli-setshow.h: Rename include guard.
12707 * cli/cli-script.h: Rename include guard.
12708 * cli/cli-interp.h: Rename include guard.
12709 * cli/cli-decode.h: Rename include guard.
12710 * cli/cli-cmds.h: Rename include guard.
12711 * charset-list.h: Add include guard.
12712 * buildsym-legacy.h: Rename include guard.
12713 * bfin-tdep.h: Add include guard.
12714 * ax.h: Rename include guard.
12715 * arm-linux-tdep.h: Add include guard.
12716 * arm-fbsd-tdep.h: Add include guard.
12717 * arch/xtensa.h: Rename include guard.
12718 * arch/tic6x.h: Add include guard.
12719 * arch/i386.h: Add include guard.
12720 * arch/arm.h: Rename include guard.
12721 * arch/arm-linux.h: Rename include guard.
12722 * arch/arm-get-next-pcs.h: Rename include guard.
12723 * arch/amd64.h: Add include guard.
12724 * arch/aarch64-insn.h: Rename include guard.
12725 * arch-utils.h: Rename include guard.
12726 * annotate.h: Add include guard.
12727 * amd64-darwin-tdep.h: Rename include guard.
12728 * aarch64-linux-tdep.h: Add include guard.
12729 * aarch64-fbsd-tdep.h: Add include guard.
12730 * aarch32-linux-nat.h: Add include guard.
12732 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12734 * macrotab.c (macro_define_internal): New function that
12735 factorizes macro_define_object_internal and macro_define_function
12737 (macro_define_object_internal): Use macro_define_internal.
12738 (macro_define_function): Likewise.
12740 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12742 * macrocmd.c (extract_identifier): Return
12743 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12746 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12748 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12750 2019-02-05 Tom Tromey <tom@tromey.com>
12752 * target.c (target_stack::unpush): Move assertion earlier.
12754 2019-01-30 Tom Tromey <tom@tromey.com>
12757 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12758 (gdbpy_parse_and_eval): Likewise.
12759 * python/python-internal.h (gdbpy_allow_threads): New class.
12761 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12763 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12764 (aarch64_fbsd_fpregmap): Move earlier.
12765 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12766 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12767 instead of individual calls to trad_frame_set_reg_addr.
12768 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12770 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12771 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12772 instead of individual calls to trad_frame_set_reg_addr.
12774 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12776 * CONTRIBUTE: Replace contribution list with wiki link.
12778 2019-01-25 Tom Tromey <tom@tromey.com>
12780 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12782 2019-01-25 Tom Tromey <tom@tromey.com>
12784 * xtensa-linux-nat.c: Fix common/ includes.
12785 * xml-support.h: Fix common/ includes.
12786 * xml-support.c: Fix common/ includes.
12787 * x86-linux-nat.c: Fix common/ includes.
12788 * windows-nat.c: Fix common/ includes.
12789 * varobj.h: Fix common/ includes.
12790 * varobj.c: Fix common/ includes.
12791 * value.c: Fix common/ includes.
12792 * valops.c: Fix common/ includes.
12793 * utils.c: Fix common/ includes.
12794 * unittests/xml-utils-selftests.c: Fix common/ includes.
12795 * unittests/utils-selftests.c: Fix common/ includes.
12796 * unittests/unpack-selftests.c: Fix common/ includes.
12797 * unittests/tracepoint-selftests.c: Fix common/ includes.
12798 * unittests/style-selftests.c: Fix common/ includes.
12799 * unittests/string_view-selftests.c: Fix common/ includes.
12800 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12801 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12802 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12803 * unittests/rsp-low-selftests.c: Fix common/ includes.
12804 * unittests/parse-connection-spec-selftests.c: Fix common/
12806 * unittests/optional-selftests.c: Fix common/ includes.
12807 * unittests/offset-type-selftests.c: Fix common/ includes.
12808 * unittests/observable-selftests.c: Fix common/ includes.
12809 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12810 * unittests/memrange-selftests.c: Fix common/ includes.
12811 * unittests/memory-map-selftests.c: Fix common/ includes.
12812 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12813 * unittests/function-view-selftests.c: Fix common/ includes.
12814 * unittests/environ-selftests.c: Fix common/ includes.
12815 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12816 * unittests/common-utils-selftests.c: Fix common/ includes.
12817 * unittests/cli-utils-selftests.c: Fix common/ includes.
12818 * unittests/array-view-selftests.c: Fix common/ includes.
12819 * ui-file.c: Fix common/ includes.
12820 * tui/tui-io.c: Fix common/ includes.
12821 * tracepoint.h: Fix common/ includes.
12822 * tracepoint.c: Fix common/ includes.
12823 * tracefile-tfile.c: Fix common/ includes.
12824 * top.h: Fix common/ includes.
12825 * top.c: Fix common/ includes.
12826 * thread.c: Fix common/ includes.
12827 * target/waitstatus.h: Fix common/ includes.
12828 * target/waitstatus.c: Fix common/ includes.
12829 * target.h: Fix common/ includes.
12830 * target.c: Fix common/ includes.
12831 * target-memory.c: Fix common/ includes.
12832 * target-descriptions.c: Fix common/ includes.
12833 * symtab.h: Fix common/ includes.
12834 * symfile.c: Fix common/ includes.
12835 * stap-probe.c: Fix common/ includes.
12836 * spu-linux-nat.c: Fix common/ includes.
12837 * sparc-nat.c: Fix common/ includes.
12838 * source.c: Fix common/ includes.
12839 * solib.c: Fix common/ includes.
12840 * solib-target.c: Fix common/ includes.
12841 * ser-unix.c: Fix common/ includes.
12842 * ser-tcp.c: Fix common/ includes.
12843 * ser-pipe.c: Fix common/ includes.
12844 * ser-base.c: Fix common/ includes.
12845 * selftest-arch.c: Fix common/ includes.
12846 * s12z-tdep.c: Fix common/ includes.
12847 * rust-exp.y: Fix common/ includes.
12848 * rs6000-aix-tdep.c: Fix common/ includes.
12849 * riscv-tdep.c: Fix common/ includes.
12850 * remote.c: Fix common/ includes.
12851 * remote-notif.h: Fix common/ includes.
12852 * remote-fileio.h: Fix common/ includes.
12853 * remote-fileio.c: Fix common/ includes.
12854 * regcache.h: Fix common/ includes.
12855 * regcache.c: Fix common/ includes.
12856 * record-btrace.c: Fix common/ includes.
12857 * python/python.c: Fix common/ includes.
12858 * python/py-type.c: Fix common/ includes.
12859 * python/py-inferior.c: Fix common/ includes.
12860 * progspace.h: Fix common/ includes.
12861 * producer.c: Fix common/ includes.
12862 * procfs.c: Fix common/ includes.
12863 * proc-api.c: Fix common/ includes.
12864 * printcmd.c: Fix common/ includes.
12865 * ppc-linux-nat.c: Fix common/ includes.
12866 * parser-defs.h: Fix common/ includes.
12867 * osdata.c: Fix common/ includes.
12868 * obsd-nat.c: Fix common/ includes.
12869 * nat/x86-linux.c: Fix common/ includes.
12870 * nat/x86-linux-dregs.c: Fix common/ includes.
12871 * nat/x86-dregs.h: Fix common/ includes.
12872 * nat/x86-dregs.c: Fix common/ includes.
12873 * nat/ppc-linux.c: Fix common/ includes.
12874 * nat/mips-linux-watch.h: Fix common/ includes.
12875 * nat/mips-linux-watch.c: Fix common/ includes.
12876 * nat/linux-waitpid.c: Fix common/ includes.
12877 * nat/linux-ptrace.h: Fix common/ includes.
12878 * nat/linux-ptrace.c: Fix common/ includes.
12879 * nat/linux-procfs.c: Fix common/ includes.
12880 * nat/linux-personality.c: Fix common/ includes.
12881 * nat/linux-osdata.c: Fix common/ includes.
12882 * nat/linux-namespaces.c: Fix common/ includes.
12883 * nat/linux-btrace.h: Fix common/ includes.
12884 * nat/linux-btrace.c: Fix common/ includes.
12885 * nat/fork-inferior.c: Fix common/ includes.
12886 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12887 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12888 * nat/aarch64-linux.c: Fix common/ includes.
12889 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12890 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12891 * namespace.h: Fix common/ includes.
12892 * mips-linux-tdep.c: Fix common/ includes.
12893 * minsyms.c: Fix common/ includes.
12894 * mi/mi-parse.h: Fix common/ includes.
12895 * mi/mi-main.c: Fix common/ includes.
12896 * mi/mi-cmd-env.c: Fix common/ includes.
12897 * memrange.h: Fix common/ includes.
12898 * memattr.c: Fix common/ includes.
12899 * maint.h: Fix common/ includes.
12900 * maint.c: Fix common/ includes.
12901 * main.c: Fix common/ includes.
12902 * machoread.c: Fix common/ includes.
12903 * location.c: Fix common/ includes.
12904 * linux-thread-db.c: Fix common/ includes.
12905 * linux-nat.c: Fix common/ includes.
12906 * linux-fork.c: Fix common/ includes.
12907 * inline-frame.c: Fix common/ includes.
12908 * infrun.c: Fix common/ includes.
12909 * inflow.c: Fix common/ includes.
12910 * inferior.h: Fix common/ includes.
12911 * inferior.c: Fix common/ includes.
12912 * infcmd.c: Fix common/ includes.
12913 * inf-ptrace.c: Fix common/ includes.
12914 * inf-child.c: Fix common/ includes.
12915 * ia64-linux-nat.c: Fix common/ includes.
12916 * i387-tdep.c: Fix common/ includes.
12917 * i386-tdep.c: Fix common/ includes.
12918 * i386-linux-tdep.c: Fix common/ includes.
12919 * i386-linux-nat.c: Fix common/ includes.
12920 * i386-go32-tdep.c: Fix common/ includes.
12921 * i386-fbsd-tdep.c: Fix common/ includes.
12922 * i386-fbsd-nat.c: Fix common/ includes.
12923 * guile/scm-type.c: Fix common/ includes.
12924 * guile/guile.c: Fix common/ includes.
12925 * go32-nat.c: Fix common/ includes.
12926 * gnu-nat.c: Fix common/ includes.
12927 * gdbthread.h: Fix common/ includes.
12928 * gdbarch-selftests.c: Fix common/ includes.
12929 * gdb_usleep.c: Fix common/ includes.
12930 * gdb_select.h: Fix common/ includes.
12931 * gdb_bfd.c: Fix common/ includes.
12932 * gcore.c: Fix common/ includes.
12933 * fork-child.c: Fix common/ includes.
12934 * findvar.c: Fix common/ includes.
12935 * fbsd-nat.c: Fix common/ includes.
12936 * event-top.c: Fix common/ includes.
12937 * event-loop.c: Fix common/ includes.
12938 * dwarf2read.c: Fix common/ includes.
12939 * dwarf2loc.c: Fix common/ includes.
12940 * dwarf2-frame.c: Fix common/ includes.
12941 * dwarf-index-cache.c: Fix common/ includes.
12942 * dtrace-probe.c: Fix common/ includes.
12943 * disasm-selftests.c: Fix common/ includes.
12944 * defs.h: Fix common/ includes.
12945 * csky-tdep.c: Fix common/ includes.
12946 * cp-valprint.c: Fix common/ includes.
12947 * cp-support.h: Fix common/ includes.
12948 * cp-support.c: Fix common/ includes.
12949 * corelow.c: Fix common/ includes.
12950 * completer.h: Fix common/ includes.
12951 * completer.c: Fix common/ includes.
12952 * compile/compile.c: Fix common/ includes.
12953 * compile/compile-loc2c.c: Fix common/ includes.
12954 * compile/compile-cplus-types.c: Fix common/ includes.
12955 * compile/compile-cplus-symbols.c: Fix common/ includes.
12956 * command.h: Fix common/ includes.
12957 * cli/cli-dump.c: Fix common/ includes.
12958 * cli/cli-cmds.c: Fix common/ includes.
12959 * charset.c: Fix common/ includes.
12960 * build-id.c: Fix common/ includes.
12961 * btrace.h: Fix common/ includes.
12962 * btrace.c: Fix common/ includes.
12963 * breakpoint.h: Fix common/ includes.
12964 * breakpoint.c: Fix common/ includes.
12966 (enum agent_op): Fix common/ includes.
12967 * ax-general.c (struct aop_map): Fix common/ includes.
12968 * ax-gdb.c: Fix common/ includes.
12969 * auxv.c: Fix common/ includes.
12970 * auto-load.c: Fix common/ includes.
12971 * arm-tdep.c: Fix common/ includes.
12972 * arch/riscv.c: Fix common/ includes.
12973 * arch/ppc-linux-common.c: Fix common/ includes.
12974 * arch/i386.c: Fix common/ includes.
12975 * arch/arm.c: Fix common/ includes.
12976 * arch/arm-linux.c: Fix common/ includes.
12977 * arch/arm-get-next-pcs.c: Fix common/ includes.
12978 * arch/amd64.c: Fix common/ includes.
12979 * arch/aarch64.c: Fix common/ includes.
12980 * arch/aarch64-insn.c: Fix common/ includes.
12981 * arch-utils.c: Fix common/ includes.
12982 * amd64-windows-tdep.c: Fix common/ includes.
12983 * amd64-tdep.c: Fix common/ includes.
12984 * amd64-sol2-tdep.c: Fix common/ includes.
12985 * amd64-obsd-tdep.c: Fix common/ includes.
12986 * amd64-nbsd-tdep.c: Fix common/ includes.
12987 * amd64-linux-tdep.c: Fix common/ includes.
12988 * amd64-linux-nat.c: Fix common/ includes.
12989 * amd64-fbsd-tdep.c: Fix common/ includes.
12990 * amd64-fbsd-nat.c: Fix common/ includes.
12991 * amd64-dicos-tdep.c: Fix common/ includes.
12992 * amd64-darwin-tdep.c: Fix common/ includes.
12993 * agent.c: Fix common/ includes.
12994 * ada-lang.h: Fix common/ includes.
12995 * ada-lang.c: Fix common/ includes.
12996 * aarch64-tdep.c: Fix common/ includes.
12998 2019-01-25 Tom Tromey <tom@tromey.com>
13000 * common/create-version.sh: Use common/version.h.
13002 2019-01-24 Pedro Alves <palves@redhat.com>
13004 * infrun.c (signal_stop, signal_print, signal_program)
13005 (signal_catch, signal_pass): Now arrays instead of pointers.
13006 (update_signals_program_target, do_target_resume)
13007 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13008 * linux-nat.c (linux_nat_target::pass_signals)
13009 (linux_nat_target::create_inferior, linux_nat_target::attach):
13011 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13012 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13013 * procfs.c (procfs_target::pass_signals): Adjust.
13014 * record-full.c (record_full_target::resume): Adjust.
13015 * remote.c (remote_target::pass_signals)
13016 (remote_target::program_signals): Adjust.
13017 * target-debug.h (target_debug_print_signals): Now takes a
13018 gdb::array_view as parameter. Adjust.
13019 * target.h (target_ops) <pass_signals, program_signals>: Replace
13020 pointer and length parameters with gdb::array_view.
13021 (target_pass_signals, target_program_signals): Likewise.
13022 * target-delegates.c: Regenerate.
13024 2019-01-24 Pedro Alves <palves@redhat.com>
13026 * common/forward-scope-exit.h
13027 (forward_scope_exit::forward_scope_exit): Pass arguments to
13028 m_bind_function directly, instead of creating a std::bind and
13031 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13033 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13034 for static members.
13035 (pass_in_v_vfp_candidate): Likewise.
13037 2019-01-23 Tom Tromey <tom@tromey.com>
13038 Pedro Alves <palves@redhat.com>
13040 * regcache.c (class regcache_invalidator): Remove.
13041 (regcache::raw_write): Use make_scope_exit.
13043 2019-01-23 Tom Tromey <tom@tromey.com>
13045 * ui-out.h (class ui_out_emit_type): Update comment.
13047 2019-01-23 Tom Tromey <tom@tromey.com>
13049 * infrun.c (fetch_inferior_event): Update comment.
13051 2019-01-23 Tom Tromey <tom@tromey.com>
13052 Pedro Alves <palves@redhat.com>
13054 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13056 (fetch_inferior_event): Use SCOPE_EXIT.
13059 2019-01-23 Tom Tromey <tom@tromey.com>
13060 Pedro Alves <palves@redhat.com>
13062 * infrun.c (disable_thread_events): Delete.
13063 (stop_all_threads): Use SCOPE_EXIT.
13065 2019-01-23 Tom Tromey <tom@tromey.com>
13066 Pedro Alves <palves@redhat.com>
13068 * symfile.c: Include forward-scope-exit.h.
13069 (clear_symtab_users_cleanup): Replace forward declaration with
13070 a FORWARD_SCOPE_EXIT.
13071 (syms_from_objfile_1): Use the forward_scope_exit and
13072 gdb::optional instead of cleanup_function.
13073 (reread_symbols): Use the forward_scope_exit instead of
13075 (clear_symtab_users_cleanup): Remove function.
13077 2019-01-23 Tom Tromey <tom@tromey.com>
13078 Pedro Alves <palves@redhat.com>
13080 * linux-nat.c: Include scope-exit.h.
13081 (cleanup_target_stop): Remove.
13082 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13085 2019-01-23 Tom Tromey <tom@tromey.com>
13086 Pedro Alves <palves@redhat.com>
13088 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13089 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13091 2019-01-23 Tom Tromey <tom@tromey.com>
13092 Andrew Burgess <andrew.burgess@embecosm.com>
13093 Pedro Alves <palves@redhat.com>
13095 * infrun.c (fetch_inferior_event): Use scope_exit.
13096 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13097 * top.c (execute_command): Use scope_exit.
13098 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13099 * utils.c (do_bpstat_clear_actions_cleanup)
13100 (make_bpstat_clear_actions_cleanup): Remove.
13102 2019-01-23 Tom Tromey <tom@tromey.com>
13103 Pedro Alves <palves@redhat.com>
13105 * infrun.c: Include "common/scope-exit.h"
13106 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13107 (wait_for_inferior): Use SCOPE_EXIT.
13108 (fetch_inferior_event): Use scope_exit.
13110 2019-01-23 Tom Tromey <tom@tromey.com>
13111 Pedro Alves <palves@redhat.com>
13113 * breakpoint.c (create_breakpoint): Remove cleanup.
13115 2019-01-23 Tom Tromey <tom@tromey.com>
13116 Andrew Burgess <andrew.burgess@embecosm.com>
13117 Pedro Alves <palves@redhat.com>
13119 2019-01-23 Pedro Alves <palves@redhat.com>
13121 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13123 2019-01-23 Pedro Alves <palves@redhat.com>
13124 Andrew Burgess <andrew.burgess@embecosm.com>
13126 * gdbthread.h: Include "common/forward-scope-exit.h".
13127 (scoped_finish_thread_state): Redefine custom class in terms of
13128 forward_scope_exit.
13130 2019-01-23 Pedro Alves <palves@redhat.com>
13131 Andrew Burgess <andrew.burgess@embecosm.com>
13133 * common/forward-scope-exit.h: New file.
13135 2019-01-23 Pedro Alves <palves@redhat.com>
13136 Andrew Burgess <andrew.burgess@embecosm.com>
13137 Tom Tromey <tom@tromey.com>
13139 * common/scope-exit.h: New file.
13141 2019-01-23 Pedro Alves <palves@redhat.com>
13143 * common/preprocessor.h (ESC): Rename to ...
13144 (ESC_PARENS): ... this.
13145 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13146 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13148 2019-01-23 Tom Tromey <tom@tromey.com>
13150 * language.h (class scoped_switch_to_sym_language_if_auto):
13151 Initialize m_lang in both cases.
13153 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13155 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13158 2019-01-22 Tom Tromey <tom@tromey.com>
13160 * corelow.c: Do not include sys/file.h.
13162 2019-01-22 Tom Tromey <tom@tromey.com>
13164 * tui/tui-wingeneral.h: Include gdb_curses.h.
13166 2019-01-22 Tom Tromey <tom@tromey.com>
13168 * source-cache.h (class source_cache) <get_source_lines,
13169 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13171 2019-01-22 Tom Tromey <tom@tromey.com>
13173 * remote-fileio.h (struct remote_target): Declare.
13175 2019-01-22 Tom Tromey <tom@tromey.com>
13177 * python/py-arch.c: Do not include py-ref.h.
13178 * python/py-bpevent.c: Do not include py-ref.h.
13179 * python/py-cmd.c: Do not include py-ref.h.
13180 * python/py-continueevent.c: Do not include py-ref.h.
13181 * python/py-event.h: Do not include py-ref.h.
13182 * python/py-evtregistry.c: Do not include py-ref.h.
13183 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13184 * python/py-frame.c: Do not include py-ref.h.
13185 * python/py-framefilter.c: Do not include py-ref.h.
13186 * python/py-function.c: Do not include py-ref.h.
13187 * python/py-infevents.c: Do not include py-ref.h.
13188 * python/py-linetable.c: Do not include py-ref.h.
13189 * python/py-objfile.c: Do not include py-ref.h.
13190 * python/py-param.c: Do not include py-ref.h.
13191 * python/py-prettyprint.c: Do not include py-ref.h.
13192 * python/py-progspace.c: Do not include py-ref.h.
13193 * python/py-symbol.c: Do not include py-ref.h.
13194 * python/py-symtab.c: Do not include py-ref.h.
13195 * python/py-type.c: Do not include py-ref.h.
13196 * python/py-unwind.c: Do not include py-ref.h.
13197 * python/py-utils.c: Do not include py-ref.h.
13198 * python/py-value.c: Do not include py-ref.h.
13199 * python/py-varobj.c: Do not include py-ref.h.
13200 * python/py-xmethods.c: Do not include py-ref.h.
13201 * python/python.c: Do not include py-ref.h.
13202 * varobj.c: Do not include py-ref.h.
13204 2019-01-22 Tom Tromey <tom@tromey.com>
13206 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13207 keyword for bcache.
13209 2019-01-22 Tom Tromey <tom@tromey.com>
13211 * compile/compile-cplus-types.c: Remove a comment by #include.
13213 2019-01-22 Tom Tromey <tom@tromey.com>
13215 * compile/gcc-c-plugin.h: Include compile-internal.h.
13217 2019-01-22 Tom Tromey <tom@tromey.com>
13219 * stabsread.c (EXTERN): Do not define.
13220 (symnum, next_symbol_text_func, processing_gcc_compilation)
13221 (within_function, global_sym_chain, global_stabs)
13222 (previous_stab_code, this_object_header_files)
13223 (n_this_object_header_files)
13224 (n_allocated_this_object_header_files): Define.
13225 * stabsread.h (EXTERN): Never define. Use "extern".
13227 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13229 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13232 2019-01-21 Tom Tromey <tom@tromey.com>
13234 * ui-out.c: Fix includes.
13235 * tui/tui-source.c: Fix includes.
13236 * target.c: Fix includes.
13237 * remote.c: Fix includes.
13238 * regcache.c: Fix includes.
13239 * python/py-block.c: Fix includes.
13240 * printcmd.c: Fix includes.
13241 * or1k-tdep.c: Fix includes.
13242 * mi/mi-main.c: Fix includes.
13243 * m32r-tdep.c: Fix includes.
13244 * csky-tdep.c: Fix includes.
13245 * compile/compile-cplus-types.c: Fix includes.
13246 * cli/cli-interp.c: Fix includes.
13248 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13250 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13253 2019-01-16 Tom Tromey <tom@tromey.com>
13255 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13257 (struct objfile) <msymbols_range>: Move from top level.
13258 <msymbols>: New method.
13259 (class objfile_msymbols): Remove.
13260 * symtab.c (default_collect_symbol_completion_matches_break_on):
13262 * symmisc.c (dump_msymbols): Update.
13263 * stabsread.c (scan_file_globals): Update.
13264 * objc-lang.c (info_selectors_command, info_classes_command)
13265 (find_methods): Update.
13266 * minsyms.c (find_solib_trampoline_target): Update.
13267 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13268 * coffread.c (coff_symfile_read): Update.
13269 * ada-lang.c (ada_lookup_simple_minsym)
13270 (ada_collect_symbol_completion_matches): Update.
13272 2019-01-16 Tom Tromey <tom@tromey.com>
13274 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13275 type. Remove no-argument constructor.
13276 <iterator::operator++>: Simplify.
13278 <end>: Use minimal_symbol_count.
13280 2019-01-16 Tom Tromey <tom@tromey.com>
13282 * objfiles.h (struct objfile) <psymtabs>: New method.
13283 (class objfile_psymtabs): Remove.
13284 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13286 <range>: New method.
13287 (require_partial_symbols): Change return type.
13288 * psymtab.c (require_partial_symbols)
13289 (psym_expand_symtabs_matching): Update.
13290 * mdebugread.c (parse_partial_symbols): Update.
13291 * dbxread.c (dbx_end_psymtab): Update.
13293 2019-01-15 Tom Tromey <tom@tromey.com>
13295 * symtab.c (lookup_objfile_from_block)
13296 (lookup_symbol_in_objfile_symtabs)
13297 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13298 (find_line_symtab, info_sources_command)
13299 (default_collect_symbol_completion_matches_break_on)
13300 (make_source_files_completion_list): Update.
13301 * symmisc.c (print_objfile_statistics, dump_objfile)
13302 (maintenance_print_symbols, maintenance_info_symtabs)
13303 (maintenance_check_symtabs, maintenance_info_line_tables):
13305 * source.c (select_source_symtab)
13306 (forget_cached_source_info_for_objfile): Update.
13307 * objfiles.h (class objfile_compunits): Remove.
13308 (struct objfile) <compunits_range>: New typedef.
13309 (compunits): New method.
13310 * objfiles.c (objfile_relocate1): Update.
13311 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13312 * maint.c (count_symtabs_and_blocks): Update.
13313 * linespec.c (iterate_over_all_matching_symtabs): Update.
13314 * cp-support.c (add_symbol_overload_list_qualified): Update.
13315 * coffread.c (coff_symtab_read): Update.
13316 * ada-lang.c (add_nonlocal_symbols)
13317 (ada_collect_symbol_completion_matches)
13318 (ada_add_global_exceptions): Update.
13320 2019-01-15 Tom Tromey <tom@tromey.com>
13322 * progspace.h (program_space) <objfiles_safe_range>: New
13324 <objfiles_safe>: New method.
13325 * objfiles.h (class all_objfiles_safe): Remove.
13326 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13327 * jit.c (jit_inferior_exit_hook): Update.
13329 2019-01-17 Tom Tromey <tom@tromey.com>
13331 * progspace.h (program_space) <objfiles_range>: New typedef.
13332 <objfiles>: New method.
13333 <objfiles_head>: Rename from objfiles.
13334 (object_files): Update.
13335 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13336 * guile/scm-pretty-print.c
13337 (ppscm_find_pretty_printer_from_objfiles): Update.
13338 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13339 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13341 * python/py-progspace.c (pspy_get_objfiles): Update.
13342 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13344 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13345 (objfpy_lookup_objfile_by_build_id): Update.
13346 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13347 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13349 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13350 (expand_symtab_containing_pc, lookup_objfile_from_block)
13351 (lookup_static_symbol, basic_lookup_transparent_type)
13352 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13353 (find_line_symtab, info_sources_command)
13354 (default_collect_symbol_completion_matches_break_on)
13355 (make_source_files_completion_list, find_main_name): Update.
13356 * symmisc.c (print_symbol_bcache_statistics)
13357 (print_objfile_statistics, maintenance_print_symbols)
13358 (maintenance_print_msymbols, maintenance_print_objfiles)
13359 (maintenance_info_symtabs, maintenance_check_symtabs)
13360 (maintenance_expand_symtabs, maintenance_info_line_tables):
13362 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13363 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13364 (map_overlay_command, unmap_overlay_command)
13365 (simple_overlay_update, expand_symtabs_matching)
13366 (map_symbol_filenames): Update.
13367 * symfile-debug.c (set_debug_symfile): Update.
13368 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13370 * source.c (select_source_symtab, forget_cached_source_info):
13372 * solib.c (solib_read_symbols): Update.
13373 * solib-spu.c (append_ocl_sos): Update.
13374 * psymtab.c (maintenance_print_psymbols)
13375 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13376 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13377 * printcmd.c (info_symbol_command): Update.
13378 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13380 * objfiles.h (class all_objfiles): Remove.
13381 * objfiles.c (have_partial_symbols, have_full_symbols)
13382 (have_minimal_symbols, qsort_cmp, update_section_map)
13383 (shared_objfile_contains_address_p)
13384 (default_iterate_over_objfiles_in_search_order): Update.
13385 * objc-lang.c (info_selectors_command, info_classes_command)
13386 (find_methods): Update.
13387 * minsyms.c (find_solib_trampoline_target): Update.
13388 * maint.c (maintenance_info_sections)
13389 (maintenance_translate_address, count_symtabs_and_blocks):
13391 * main.c (captured_main_1): Update.
13392 * linux-thread-db.c (try_thread_db_load_from_pdir)
13393 (has_libpthread): Update.
13394 * linespec.c (iterate_over_all_matching_symtabs)
13395 (search_minsyms_for_name): Update.
13396 * jit.c (jit_find_objf_with_entry_addr): Update.
13397 * hppa-tdep.c (find_unwind_entry)
13398 (hppa_lookup_stub_minimal_symbol): Update.
13399 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13401 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13402 (elf_gnu_ifunc_resolve_by_got): Update.
13403 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13404 * dwarf-index-write.c (save_gdb_index_command): Update.
13405 * cp-support.c (add_symbol_overload_list_qualified): Update.
13406 * breakpoint.c (create_overlay_event_breakpoint)
13407 (create_longjmp_master_breakpoint)
13408 (create_std_terminate_master_breakpoint)
13409 (create_exception_master_breakpoint): Update.
13410 * blockframe.c (find_pc_partial_function): Update.
13411 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13412 (ada_collect_symbol_completion_matches)
13413 (ada_add_global_exceptions): Update.
13415 2019-01-17 Tom Tromey <tom@tromey.com>
13417 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13419 (solib_target_parse_libraries): Change return type.
13420 (library_list_start_segment, library_list_start_section)
13421 (library_list_end_library, library_list_start_library); Update.
13422 (solib_target_free_library_list): Remove.
13423 (solib_target_parse_libraries): Remove cleanup. Change return
13425 (solib_target_current_sos): Update.
13427 2019-01-17 Tom Tromey <tromey@bapiya>
13429 * valprint.c: Replace "the the" with "the".
13430 * symtab.c: Replace "the the" with "the".
13431 * solib.c: Replace "the the" with "the".
13432 * solib-dsbt.c: Replace "the the" with "the".
13433 * linespec.c: Replace "the the" with "the".
13434 * dwarf2loc.h: Replace "the the" with "the".
13435 * amd64-windows-tdep.c: Replace "the the" with "the".
13436 * aarch64-tdep.c: Replace "the the" with "the".
13438 2019-01-16 Keith Seitz <keiths@redhat.com>
13441 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13442 <builder>: Rename to ..
13443 <m_builder>: ... this and make private.
13444 (dwarf2_cu::get_builder): New method. Change all users of
13445 `builder' to use this method.
13446 (dwarf2_start_symtab): Move to ...
13447 (dwarf2_cu::start_symtab): ... here. Update all callers
13448 (setup_type_unit_groups): Move to ...
13449 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13451 (dwarf2_cu::reset_builder): New method.
13452 (process_full_compunit, process_full_type_unit): Use
13453 dwarf2_cu::reset_builder.
13454 (follow_die_offset): Record the ancestor CU if it is different
13455 from the followed DIE's CU.
13456 (follow_die_sig_1): Likewise.
13458 2019-01-15 Tom Tromey <tom@tromey.com>
13460 * remote.c (class remote_state) <buf>: Now a char_vector.
13461 <buf_size>: Remove.
13462 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13464 (remote_target::getpkt_or_notif_sane_1)
13465 (remote_target::getpkt_sane)
13466 (remote_target::getpkt_or_notif_sane): Likewise.
13467 (class remote_target) <putpkt>: New overload.
13468 (remote_target::read_frame): Change type of "buf_p". Remove
13469 sizeof_p parameter.
13470 (packet_ok): New overload.
13471 (packet_check_result): New overload.
13474 2019-01-14 Tom Tromey <tom@tromey.com>
13476 * remote-notif.c (handle_notification, remote_notif_ack)
13477 (remote_notif_parse): Make "buf" const.
13478 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13480 (remote_notif_parse, remote_notif_ack, handle_notification):
13482 * remote.c (remote_notif_stop_parse): Make "buf" const.
13483 (remote_target::remote_parse_stop_reply): Make "buf" const.
13484 (remote_notif_stop_ack): Make "buf" const.
13486 2019-01-14 Tom Tromey <tom@tromey.com>
13488 * remote.c (remote_console_output): Make parameter const.
13490 2019-01-14 Tom Tromey <tom@tromey.com>
13492 * target-debug.h (target_debug_print_signals): Constify.
13493 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13494 * procfs.c (procfs_target::pass_signals): Update.
13495 * linux-nat.c (linux_nat_target::pass_signals): Update.
13496 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13497 * target-delegates.c: Rebuild.
13498 * remote.c (remote_target::program_signals): Update.
13499 (remote_target::pass_signals): Update.
13500 * target.c (target_pass_signals): Constify argument.
13501 (target_program_signals): Likewise.
13502 * target.h (struct target_ops) <pass_signals, program_signals>:
13504 (target_pass_signals, target_program_signals): Constify argument.
13506 2019-01-14 Tom Tromey <tom@tromey.com>
13509 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13511 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13513 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13515 * rs6000-tdep.c: Include reggroups.h.
13516 (IS_V_ALIAS_PSEUDOREG): Define.
13517 (rs6000_register_name): Return names for the "vX" aliases.
13518 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13519 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13520 aliases. Call default_register_reggroup_p for all other
13522 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13524 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13525 Handle "vX" aliases.
13526 (v_alias_pseudo_register_collect): New function.
13527 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13528 (rs6000_gdbarch_init): Initialize "vX" aliases as
13529 pseudo-registers. Restore registration of
13530 rs6000_pseudo_register_reggroup_p with
13531 set_tdesc_pseudo_register_reggroup_p.
13533 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13535 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13536 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13537 set_gdbarch_num_pseudo_regs.
13539 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13541 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13542 Remove arg prefixname, add do_set and do_show.
13543 Add member functions set_list and show_list.
13544 * cli/cli-style.c (class cli_style_option): Update accordingly.
13545 (style_set_list): Move to file scope.
13546 (style_show_list): Likewise.
13547 (set_style): Call help_list.
13548 (show_style): Call cmd_show_list.
13549 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13550 Update to use the new macro.
13552 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13554 * ada-lang.c (_initialize_ada_language): Expand the help text
13555 for the "catch exception" command.
13557 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13559 * symtab.c (matching_obj_sections): Initialize obj,
13560 declare it closer to its usage.
13562 2019-01-10 Tom Tromey <tom@tromey.com>
13564 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13565 (basic_inf_threads_range): Remove.
13566 (inf_threads_range, inf_non_exited_threads_range)
13567 (safe_inf_threads_range): Use next_adapter.
13569 2019-01-10 Keith Seitz <keiths@redhat.com>
13573 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13574 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13576 2019-01-10 Keith Seitz <keiths@redhat.com>
13580 * dictionary.c (pending_to_vector): Remove.
13581 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13582 Remove _1 suffix, replacing functions of the same name. Update
13584 (dict_create_hashed, dict_create_hashed_expandable)
13585 (dict_create_linear, dict_create_linear_expandable, dict_free)
13586 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13587 Make functions static.
13589 2019-01-10 Keith Seitz <keiths@redhat.com>
13593 * dictionary.h (struct dictionary): Replace declaration with
13595 (dict_create_hashed, dict_create_hashed_expandable)
13596 (dict_create_linear, dict_create_linear_expandable)
13597 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13598 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13599 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13600 taking multidictionary argument.
13601 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13602 * block.h (struct block) <dict>: Change to multidictionary
13603 and rename `multidict'.
13604 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13605 symmisc.c: Update all dictionary references to multidictionary.
13607 2019-01-10 Keith Seitz <keiths@redhat.com>
13611 * dictionary.c: Include unordered_map.
13612 (pending_to_vector): New function.
13613 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13614 Rewrite the non-"_1" functions to take vector instead
13616 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13617 "new" _1 versions of the same name.
13618 (multidictionary): Define.
13619 (std::hash<enum language): New definition.
13620 (collate_pending_symbols_by_language, mdict_create_hashed)
13621 (mdict_create_hashed_expandable, mdict_create_linear)
13622 (mdict_create_linear_expandable, mdict_free)
13623 (find_language_dictionary, create_new_language_dictionary)
13624 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13625 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13626 (mdict_size, mdict_empty): New functions.
13627 * dictionary.h (mdict_iterator): Define.
13629 2019-01-10 Pedro Alves <palves@redhat.com>
13631 * breakpoint.c (read_uploaded_action)
13632 (create_tracepoint_from_upload): Adjust to use
13633 gdb::unique_xmalloc_ptr.
13634 * ctf.c (ctf_write_uploaded_tp):
13635 (SET_ARRAY_FIELD): Use emplace_back.
13636 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13637 * tracefile-tfile.c (tfile_write_uploaded_tp):
13638 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13639 gdb::unique_xmalloc_ptr.
13640 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13641 at_string, cond_string, cmd_strings>: Replace char pointers
13642 with gdb::unique_xmalloc_ptr.
13644 2019-01-10 Pedro Alves <palves@redhat.com>
13646 * solib-target.c (library_list_start_library): Don't xstrdup name.
13648 2019-01-10 Pedro Alves <palves@redhat.com>
13650 * mdebugread.c (parse_partial_symbols): Use
13651 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13653 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13655 * linux-fork.c (scoped_switch_fork_info)
13656 <~scoped_switch_fork_info>: Fix incorrect variable name.
13658 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13660 * linux-fork.c (scoped_switch_fork_info)
13661 <scoped_switch_fork_info>: Make explicit.
13662 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13664 2019-01-10 Tom Tromey <tom@tromey.com>
13666 * objfiles.h (objfile::reset_psymtabs): Update.
13667 * objfiles.c (objfile::objfile): Update.
13668 * psymtab.h (psymtab_storage::obstack): Update.
13669 (psymtab_storage::m_obstack): Use gdb::optional.
13670 (class psymtab_storage): Update comment. Remove objfile
13672 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13674 2019-01-10 Tom Tromey <tom@tromey.com>
13676 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13677 <free_psymtabs>: Now private.
13678 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13679 (allocate_psymtab): Use new method.
13681 2019-01-10 Tom Tromey <tom@tromey.com>
13683 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13684 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13685 * mdebugread.c (parse_partial_symbols): Use
13686 allocate_dependencies.
13687 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13688 allocate_dependencies.
13689 (process_psymtab_comp_unit_reader)
13690 (build_type_psymtab_dependencies): Likewise.
13691 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13693 2019-01-10 Tom Tromey <tom@tromey.com>
13695 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13696 PSYMBOL_SET_LANGUAGE.
13697 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13699 2019-01-10 Tom Tromey <tom@tromey.com>
13701 * psymtab.h (psymtab_storage::obstack): New method.
13702 <m_obstack>: Rename from obstack; now private.
13703 * psymtab.c (psymtab_storage): Update.
13704 * dwarf2read.c (create_addrmap_from_index)
13705 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13708 2019-01-10 Tom Tromey <tom@tromey.com>
13710 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13711 * objfiles.h (objfile::reset_psymtabs): New method.
13713 2019-01-10 Tom Tromey <tom@tromey.com>
13715 * symmisc.c (print_symbol_bcache_statistics): Update.
13716 (print_objfile_statistics): Update.
13717 * symfile.c (reread_symbols): Update.
13718 * psymtab.h (class psymtab_storage): New.
13719 * psymtab.c (psymtab_storage): New constructor.
13720 (~psymtab_storage): New destructor.
13721 (require_partial_symbols): Update.
13722 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13723 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13724 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13725 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13726 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13727 (start_psymtab_common, end_psymtab_common)
13728 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13729 (allocate_psymtab): Update.
13730 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13732 (dump_psymtab_addrmap, maintenance_print_psymbols)
13733 (maintenance_check_psymtabs): Update.
13734 (class objfile_psymtabs): Move to objfiles.h.
13735 * psympriv.h (discard_psymtab): Now inline.
13736 (psymtab_discarder::psymtab_discarder): Update.
13737 (psymtab_discarder::~psymtab_discarder): Update.
13738 (ALL_OBJFILE_PSYMTABS): Rewrite.
13739 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13740 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13742 <partial_symtabs>: New field.
13743 (class objfile_psymtabs): Move from psymtab.h. Update.
13744 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13746 (objfile::~objfile): Don't destroy psymbol_cache.
13747 * mdebugread.c (parse_partial_symbols): Update.
13748 * dwarf2read.c (create_addrmap_from_index)
13749 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13750 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13751 (add_partial_subprogram, dwarf2_ranges_read): Update.
13752 * dwarf-index-write.c (write_address_map)
13753 (write_one_signatured_type, recursively_write_psymbols)
13754 (class debug_names, class debug_names, write_psymtabs_to_index):
13757 2019-01-10 Tom Tromey <tom@tromey.com>
13759 * symtab.h (SYMBOL_SET_NAMES): Update.
13760 (symbol_set_names): Update.
13761 (MSYMBOL_SET_NAMES): Update.
13762 * symtab.c (symbol_set_names): Change argument to be an
13763 objfile_per_bfd_storage.
13764 * psymtab.c (add_psymbol_to_bcache): Update.
13765 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13767 2019-01-10 Tom Tromey <tom@tromey.com>
13769 * symtab.c (create_demangled_names_hash): Change argument to be an
13770 objfile_per_bfd_storage.
13771 (symbol_set_names): Update.
13773 2019-01-10 Tom Tromey <tom@tromey.com>
13775 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13777 * psymtab.c (init_psymbol_list): Do nothing if already called.
13778 * psympriv.h (init_psymbol_list): Add comment.
13779 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13781 * dbxread.c (dbx_symfile_read): Unconditionally call
13784 2019-01-10 Tom Tromey <tom@tromey.com>
13786 * xcoffread.c (scan_xcoff_symtab): Update.
13787 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13789 * mdebugread.c (parse_partial_symbols)
13790 (handle_psymbol_enumerators): Update.
13791 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13792 * dbxread.c (read_dbx_symtab): Update.
13793 * psympriv.h (psymbol_placement): New enum.
13794 (add_psymbol_to_list): Update.
13796 2019-01-10 Tom Tromey <tom@tromey.com>
13798 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13799 static_psymbols parameters.
13800 (scan_xcoff_symtab): Update.
13801 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13802 static_psymbols parameters.
13803 * psympriv.h (start_psymtab_common): Update.
13804 * mdebugread.c (parse_partial_symbols): Update.
13805 * dwarf2read.c (create_partial_symtab): Update.
13806 * dbxread.c (read_dbx_symtab): Update.
13807 (start_psymtab): Remove global_psymbols and static_psymbols
13810 2019-01-10 Tom Tromey <tom@tromey.com>
13812 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13813 * psymtab.c (allocate_psymtab): Add comment.
13814 * psympriv.h (allocate_psymtab): Add comment.
13815 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13817 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13819 2019-01-10 Tom Tromey <tom@tromey.com>
13821 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13823 * mipsread.c: Include mdebugread.h.
13824 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13826 * elfread.c: Include mdebugread.h.
13828 2019-01-09 Tom Tromey <tom@tromey.com>
13830 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13831 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13832 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13833 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13834 (psym_lookup_symbol, psym_find_last_source_symtab)
13835 (psym_forget_cached_source_info, psym_print_stats)
13836 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13837 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13838 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13839 (psym_find_compunit_symtab_by_address)
13840 (maintenance_print_psymbols, maintenance_info_psymtabs)
13841 (maintenance_check_psymtabs): Use ranged for.
13842 * psymtab.h (class objfile_psymtabs): New.
13843 (require_partial_symbols): Return objfile_psymtabs.
13844 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13846 2019-01-09 Tom Tromey <tom@tromey.com>
13848 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13849 (find_pc_mapped_section, list_overlays_command)
13850 (map_overlay_command, unmap_overlay_command)
13851 (simple_overlay_update): Use all_objfiles.
13852 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13853 * printcmd.c (info_symbol_command): Use all_objfiles.
13854 * objfiles.h (ALL_OBJSECTIONS): Remove.
13855 * maint.c (maintenance_translate_address): Use all_objfiles.
13856 * gcore.c (gcore_create_callback): Use all_objfiles.
13857 (objfile_find_memory_regions): Likewise.
13859 2019-01-09 Tom Tromey <tom@tromey.com>
13861 * symtab.c (find_line_symtab, info_sources_command)
13862 (make_source_files_completion_list): Use objfile_compunits.
13863 * source.c (select_source_symtab): Use objfile_compunits.
13864 * objfiles.h (struct objfile): Update comment.
13865 (ALL_OBJFILES): Remove.
13866 (ALL_FILETABS): Remove.
13867 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13870 2019-01-09 Tom Tromey <tom@tromey.com>
13872 * symmisc.c (print_objfile_statistics, dump_objfile)
13873 (maintenance_print_symbols): Use compunit_filetabs.
13874 * source.c (forget_cached_source_info_for_objfile): Use
13876 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13877 (ALL_FILETABS): Use compunit_filetabs.
13878 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13879 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13881 2019-01-09 Tom Tromey <tom@tromey.com>
13883 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13884 (compunit_filetabs): New.
13885 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13887 (info_sources_command, make_source_files_completion_list): Remove
13889 * symmisc.c (print_objfile_statistics, dump_objfile)
13890 (maintenance_print_symbols): Remove declaration.
13891 (maintenance_info_symtabs): Use compunit_filetabs.
13892 (maintenance_info_line_tables): Likewise.
13893 * source.c (select_source_symtab): Change local variable name.
13894 (forget_cached_source_info_for_objfile): Remove declaration.
13895 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13896 * objfiles.c (objfile_relocate1): Remove declaration.
13897 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13899 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13900 * coffread.c (coff_symtab_read): Remove declaration.
13901 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13904 2019-01-09 Tom Tromey <tom@tromey.com>
13906 * symtab.c (lookup_objfile_from_block)
13907 (find_pc_sect_compunit_symtab, search_symbols)
13908 (default_collect_symbol_completion_matches_break_on): Use
13910 * objfiles.h (ALL_COMPUNITS): Remove.
13911 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13912 * cp-support.c (add_symbol_overload_list_qualified): Use
13914 * ada-lang.c (ada_collect_symbol_completion_matches)
13915 (ada_add_global_exceptions): Use objfile_compunits.
13917 2019-01-09 Tom Tromey <tom@tromey.com>
13919 * source.c (select_source_symtab)
13920 (forget_cached_source_info_for_objfile): Remove declaration.
13921 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13923 * maint.c (count_symtabs_and_blocks): Remove declaration.
13924 * cp-support.c (add_symbol_overload_list_qualified): Remove
13926 * coffread.c (coff_symtab_read): Remove declaration.
13927 * symtab.c (lookup_symbol_in_objfile_symtabs)
13928 (basic_lookup_transparent_type_1): Use objfile_compunits.
13929 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13930 (info_sources_command, search_symbols)
13931 (default_collect_symbol_completion_matches_break_on)
13932 (make_source_files_completion_list): Remove declaration.
13933 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13934 (ada_collect_symbol_completion_matches)
13935 (ada_add_global_exceptions): Remove declaration.
13936 * linespec.c (iterate_over_all_matching_symtabs): Use
13938 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13939 (class objfile_compunits): New.
13940 (ALL_COMPUNITS): Use objfile_compunits.
13941 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13942 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13944 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13946 2019-01-09 Tom Tromey <tom@tromey.com>
13948 * symtab.c (search_symbols)
13949 (default_collect_symbol_completion_matches_break_on): Use
13951 * ada-lang.c (ada_lookup_simple_minsym)
13952 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13953 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13954 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13956 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13957 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13958 * objc-lang.c (find_methods): Use objfile_msymbols.
13959 (info_selectors_command, info_classes_command): Likewise.
13960 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13961 * objfiles.h (class objfile_msymbols): New.
13962 (ALL_OBJFILE_MSYMBOLS): Remove.
13963 (ALL_MSYMBOLS): Remove.
13965 2019-01-09 Tom Tromey <tom@tromey.com>
13967 * common/next-iterator.h (next_adapter): Add Iterator template
13969 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13970 (class all_objfiles_safe): New.
13971 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13972 * objfiles.c (put_objfile_before): Update comment.
13973 (add_separate_debug_objfile): Likewise.
13974 (free_all_objfiles): Use all_objfiles_safe.
13975 (objfile_purge_solibs): Likewise.
13977 2019-01-09 Tom Tromey <tom@tromey.com>
13979 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13980 (expand_symtab_containing_pc, lookup_static_symbol)
13981 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13982 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13984 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13985 * breakpoint.c (create_overlay_event_breakpoint)
13986 (create_longjmp_master_breakpoint)
13987 (create_std_terminate_master_breakpoint)
13988 (create_exception_master_breakpoint): Use all_objfiles.
13989 * linux-thread-db.c (try_thread_db_load_from_pdir)
13990 (has_libpthread): Use all_objfiles.
13991 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13992 * linespec.c (iterate_over_all_matching_symtabs)
13993 (search_minsyms_for_name): Use all_objfiles.
13994 * maint.c (maintenance_info_sections): Use all_objfiles.
13995 * main.c (captured_main_1): Use all_objfiles.
13996 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13997 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13998 * guile/scm-pretty-print.c
13999 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
14000 * solib-spu.c (append_ocl_sos): Use all_objfiles.
14001 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
14002 (maintenance_print_msymbols): Use all_objfiles.
14003 * source.c (select_source_symtab): Use all_objfiles.
14004 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
14005 * symfile.c (remove_symbol_file_command)
14006 (expand_symtabs_matching, map_symbol_filenames): Use
14008 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14010 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14011 * objc-lang.c (find_methods): Use all_objfiles.
14012 * objfiles.c (have_partial_symbols, have_full_symbols)
14013 (have_minimal_symbols, qsort_cmp)
14014 (default_iterate_over_objfiles_in_search_order): Use
14016 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14017 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14018 (maintenance_check_psymtabs): Use all_objfiles.
14019 (ALL_PSYMTABS): Remove.
14020 * compile/compile-object-run.c (do_module_cleanup): Use
14022 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14023 * cp-support.c (add_symbol_overload_list_qualified): Use
14025 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14027 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14028 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14030 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14031 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14032 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14034 * solib.c (solib_read_symbols): Use all_objfiles
14036 2019-01-09 Tom Tromey <tom@tromey.com>
14038 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14039 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14041 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14042 * symmisc.c (print_symbol_bcache_statistics)
14043 (print_objfile_statistics, maintenance_print_objfiles)
14044 (maintenance_info_symtabs, maintenance_check_symtabs)
14045 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14047 * source.c (forget_cached_source_info): Use all_objfiles.
14048 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14049 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14050 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14051 * objfiles.c (update_section_map): Use all_objfiles.
14052 (shared_objfile_contains_address_p): Likewise.
14053 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14054 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14056 2019-01-09 Tom Tromey <tom@tromey.com>
14058 * common/next-iterator.h: New file.
14059 * objfiles.h (class all_objfiles): New.
14060 (struct objfile_iterator): New.
14062 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14064 * NEWS: Move the description of the changed "frame", "select-frame",
14065 and "info frame" commands to the Changed commands section.
14067 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14069 * gdbtypes.c (check_stub_method_group): Remove handling of old
14071 * linespec.c (find_methods): Likewise.
14072 * stabsread.c (read_member_functions): Likewise.
14073 * valops.c (search_struct_method): Likewise.
14074 (value_struct_elt_for_reference): Likewise.
14075 * NEWS: Mention this change.
14077 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14079 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14080 print_source_lines.
14081 * source.c (print_source_lines_base): Update line number check.
14082 (print_source_lines): New function.
14083 (source_lines_range::source_lines_range): New function.
14084 * source.h (class source_lines_range): New class.
14085 (print_source_lines): New declaration.
14087 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14089 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14091 2019-01-08 Tom Tromey <tom@tromey.com>
14092 Simon Marchi <simon.marchi@ericsson.com>
14095 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14096 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14097 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14098 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14099 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14100 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14102 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14104 * source.c (select_source_symtab): Move header comment to
14105 declaration in source.h.
14106 (forget_cached_source_info_for_objfile): Likewise.
14107 (forget_cached_source_info): Likewise.
14108 (identify_source_line): Likewise.
14109 * source.h (identify_source_line): Move declaration from symtab.h
14110 and add comment from source.c
14111 (print_source_lines): Likewise.
14112 (forget_cached_source_info_for_objfile): Likewise.
14113 (forget_cached_source_info): Likewise.
14114 (select_source_symtab): Likewise.
14115 (enum print_source_lines_flag): Move definition from symtab.h.
14116 * symtab.h (identify_source_line): Move declaration to source.h.
14117 (print_source_lines): Likewise.
14118 (forget_cached_source_info_for_objfile): Likewise.
14119 (forget_cached_source_info): Likewise.
14120 (select_source_symtab): Likewise.
14121 (enum print_source_lines_flag): Move definition to source.h.
14122 * tui/tui-hooks.c: Add 'source.h' include.
14124 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14126 * source.c (print_source_lines_base): Handle requests to print
14127 reverse line number sequences, and guard against empty lines
14130 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14132 * source.c (print_source_lines_base): Fix skip of '\r' if next
14135 2019-01-06 Tom Tromey <tom@tromey.com>
14137 * c-exp.y (struct c_parse_state) <macro_original_text,
14138 expansion_obstack>: New member.
14139 (macro_original_text, expansion_obstack): Remove globals.
14140 (scan_macro_expansion, scanning_macro_expansion)
14141 (finished_macro_expansion): Update.
14142 (scan_macro_cleanup): Remove.
14143 (yylex, c_parse): Update.
14145 2019-01-06 Tom Tromey <tom@tromey.com>
14147 * c-exp.y (struct c_parse_state) <strings>: New member.
14148 (operator_stoken): Update.
14150 2019-01-06 Tom Tromey <tom@tromey.com>
14152 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14153 (union type_stack_elt) <typelist_val>: Now a pointer to
14155 (type_stack_cleanup): Don't declare.
14156 (push_typelist): Update.
14157 * parse.c (pop_typelist): Return a std::vector.
14158 (push_typelist): Take a std::vector.
14159 (follow_types): Update. Do not free args.
14160 (type_stack_cleanup): Remove.
14161 * c-exp.y (struct c_parse_state): New.
14162 (cpstate): New global.
14163 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14164 (nonempty_typelist): Update.
14165 (func_mod): Create a new vector.
14166 (c_parse): Create a c_parse_state.
14167 (check_parameter_typelist): Do not delete params.
14168 (function_method): Update. Do not delete type_list.
14170 2019-01-06 Tom Tromey <tom@tromey.com>
14173 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14175 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14176 (print_return_value): Likewise.
14178 2019-01-05 Tom Tromey <tom@tromey.com>
14180 * contrib/cleanup_check.py: Remove.
14181 * contrib/gcc-with-excheck: Remove.
14182 * contrib/exsummary.py: Remove.
14183 * contrib/excheck.py: Remove.
14185 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14187 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14188 NULL. Initialize tpprev to NULL instead of assigning it
14189 to NULL on the next statement.
14190 * windows-nat.c (windows_delete_thread): Remove check for
14191 main_thread_id before printing thread exit notifications.
14192 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14193 Remove thread ID check against main_thread_id.
14194 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14195 windows_delete_thread.
14196 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14198 2019-01-04 Tom Tromey <tom@tromey.com>
14200 * compile/compile.c (_initialize_compile): Use upper case for
14201 metasyntactic variables.
14202 * symmisc.c (_initialize_symmisc): Use upper case for
14203 metasyntactic variables.
14204 * psymtab.c (_initialize_psymtab): Use upper case for
14205 metasyntactic variables.
14206 * demangle.c (demangle_command): Use upper case for metasyntactic
14208 (_initialize_demangler): Likewise.
14209 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14212 2019-01-03 Tom Tromey <tom@tromey.com>
14214 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14216 2019-01-03 Tom Tromey <tom@tromey.com>
14218 * python/py-symtab.c (salpy_str): Update.
14219 (struct salpy_sal_object) <symtab>: Now a PyObject.
14220 (salpy_dealloc): Update.
14221 (del_objfile_sal): Use gdbpy_ref.
14223 2019-01-03 Tom Tromey <tom@tromey.com>
14225 * python/py-type.c (convert_field): Use new_reference. Return
14227 (make_fielditem): Return gdbpy_ref.
14228 (typy_fields): Update.
14229 (typy_getitem): Update.
14230 (field_name): Return gdbpy_ref. Use new_reference.
14231 (typy_iterator_iternext): Update.
14233 2019-01-03 Tom Tromey <tom@tromey.com>
14235 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14237 2019-01-03 Tom Tromey <tom@tromey.com>
14239 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14240 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14241 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14242 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14243 (pspy_set_type_printers): Likewise.
14244 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14245 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14246 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14247 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14248 (objfpy_set_type_printers): Likewise.
14250 2019-01-03 Tom Tromey <tom@tromey.com>
14252 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14253 (gdbpy_print_stack): Use gdbpy_err_fetch.
14254 * python/python-internal.h (class gdbpy_err_fetch): New class.
14255 (class gdbpy_enter) <m_error_type, m_error_value,
14256 m_error_traceback>: Remove.
14257 <m_error>: New member.
14258 (gdbpy_exception_to_string): Don't declare.
14259 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14260 * python/py-value.c (convert_value_from_python): Use
14262 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14263 gdbpy_exception_to_string.
14264 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14265 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14268 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14270 * linux-nat.c (delete_lwp_cleanup): Delete.
14271 (struct lwp_deleter): New struct.
14272 (lwp_info_up): New typedef.
14273 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14276 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14278 * linux-fork.c (class scoped_switch_fork_info): New class.
14279 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14281 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14283 * valops.c (find_overload_match): Remove use of null_cleanup, and
14284 calls to do_cleanups.
14286 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14288 * compile/compile-cplus-types.c
14289 (compile_cplus_instance::decl_name): Handle changes to
14291 * cp-support.c (cp_func_name): Update header comment, update
14293 * cp-support.h (cp_func_name): Update return type in declaration.
14294 * valops.c (find_overload_match): Move temp_func local to top
14295 level of function and change its type. Use temp_func to hold and
14296 delete temporary string obtained from cp_func_name.
14298 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14300 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14301 gdb::char_vector, remove cleanup, and update uses of `msg`.
14303 2019-01-03 Jim Wilson <jimw@sifive.com>
14305 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14307 2019-01-02 Tom Tromey <tom@tromey.com>
14309 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14310 (tdesc_parse_xml): Remove cleanups.
14311 * target-descriptions.h (make_cleanup_free_target_description):
14313 (target_desc_deleter): New struct.
14314 (target_desc_up): New typedef.
14315 * target-descriptions.c (target_desc_deleter::operator()): Rename
14316 from free_target_description.
14317 (make_cleanup_free_target_description): Remove.
14319 2019-01-02 Tom Tromey <tom@tromey.com>
14321 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14322 constructor, destructor.
14323 (linespec_parser): Remove typedef.
14324 (~linespec_parser): Rename from linespec_parser_delete.
14325 (linespec_lex_to_end, linespec_complete_label)
14326 (linespec_complete): Update.
14327 (decode_line_full): Remove cleanups.
14328 (decode_line_1): Update.
14330 2019-01-02 Tom Tromey <tom@tromey.com>
14332 * python/python-internal.h (inferior_to_inferior_object): Change
14334 * python/py-exitedevent.c (create_exited_event_object): Update.
14335 * python/py-inferior.c (inferior_to_inferior_object): Return
14337 (python_new_inferior, python_inferior_deleted)
14338 (thread_to_thread_object, delete_thread_object)
14339 (build_inferior_list, gdbpy_selected_inferior): Update.
14340 * python/py-infthread.c (create_thread_object): Update. Also fail
14341 if inferior_to_inferior_object fails.
14343 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14345 * inferior.h (class inferior) <displaced_step_state>: New field.
14346 * infrun.h (struct displaced_step_state): Move here from
14347 infrun.c. Initialize fields, add constructor.
14348 <inf>: Remove field.
14349 <reset>: New method.
14350 * infrun.c (struct displaced_step_inferior_state): Move to
14352 (displaced_step_inferior_states): Remove.
14353 (get_displaced_stepping_state): Adust.
14354 (displaced_step_in_progress_any_inferior): Adjust.
14355 (displaced_step_in_progress_thread): Adjust.
14356 (displaced_step_in_progress): Adjust.
14357 (add_displaced_stepping_state): Remove.
14358 (get_displaced_step_closure_by_addr): Adjust.
14359 (remove_displaced_stepping_state): Remove.
14360 (infrun_inferior_exit): Call displaced_step_state.reset.
14361 (use_displaced_stepping): Don't check for NULL.
14362 (displaced_step_prepare_throw): Call
14363 get_displaced_stepping_state.
14364 (displaced_step_fixup): Don't check for NULL.
14365 (prepare_for_detach): Don't check for NULL.
14367 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14369 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14370 in case of call that did not complete.
14372 2019-01-02 Andrey Utkin <autkin@undo.io>
14374 * symfile.c (find_separate_debug_file): Fix search of debug files for
14377 2019-01-02 Tom Tromey <tom@tromey.com>
14379 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14381 * python/py-frame.c (frapy_older): Remove cast.
14382 (frapy_newer): Likewise.
14383 * python/py-breakpoint.c (local_setattro): Remove cast.
14384 * python/py-arch.c (archpy_name): Remove local variable.
14385 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14387 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14389 * unittests/basic_string_view/element_access/char/empty.cc:
14390 Fix year range in copyright header.
14392 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14394 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14396 <operator==>: Update with for removed field.
14398 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14399 <isa_features>: ...this.
14400 <abi_features>: New field.
14401 (riscv_isa_flen): Update comment.
14402 (riscv_abi_xlen): New declaration.
14403 (riscv_abi_flen): New declaration.
14404 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14406 (riscv_abi_xlen): New function.
14407 (riscv_isa_flen): Update to get answer from isa_features.
14408 (riscv_abi_flen): New function.
14409 (riscv_has_fp_abi): Update to get answer from abi_features.
14410 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14412 (riscv_call_info) <xlen, flen>: Update comment.
14413 (riscv_call_arg_struct): Remove invalid assertions
14414 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14416 (riscv_gdbarch_init): Gather isa features and abi features
14417 separately, ensure both match on the gdbarch when reusing an old
14418 gdbarch. Relax an error check to allow 32-bit abi float to run on
14419 a target with 64-bit float hardware.
14421 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14423 * source.c (search_command_helper): Stop reverse search
14424 when line 1 has been searched.
14426 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14428 * record-full.c (record_full_base_target::close): Rewrite
14429 record_full_core_buf_list free logic.
14431 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14433 * break-catch-syscall.c (print_one_catch_syscall): xfree
14436 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14438 * top.c (print_gdb_version): Update Copyright year in version
14441 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14443 Update copyright year range in all GDB files.
14445 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14447 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14449 For older changes see ChangeLog-2018.
14455 version-control: never